query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
3d2d8194264f26a50fd1cfc1588a041f
/ Name: getTicks Purpose: Return the number of ticks left Parameters: N/A Return: int
[ { "docid": "83bb5626fd45e03eed5ee3089c92540b", "score": "0.7420569", "text": "public int getTicks()\n {\n return ticks;\n }", "title": "" } ]
[ { "docid": "ca662558aec8bbdd8f4d5400e6e503b1", "score": "0.74912345", "text": "public int getTicks() {\n \n return ticks;\n }", "title": "" }, { "docid": "fd46936afac49612235b98d978144910", "score": "0.7455828", "text": "public int getTicks() {\n\t\treturn ticks;\n\t}", "title": "" }, { "docid": "01f1d77e5a86b9b16b55b298741d7f2d", "score": "0.7113729", "text": "public static int getTimeForNrTicks(int ticks) {\r\n \treturn ticks*tickInterval;\r\n }", "title": "" }, { "docid": "6ff9735edc09460ed063f68d787e95ed", "score": "0.7040469", "text": "long getTick();", "title": "" }, { "docid": "4564d4ddb0f791330e3de8813fb2dd88", "score": "0.64451647", "text": "public static long getTickTime() {\n return tickTime;\n }", "title": "" }, { "docid": "04e0f609b6354b15fcd11b79a1e5d462", "score": "0.6399498", "text": "public long getTick() {\n return tick;\n }", "title": "" }, { "docid": "b90107364b28a81494a804cfeedb7a26", "score": "0.63471985", "text": "private int getNoteTicks(NoteLength parsed) {\n double working = parsed.getNoteLength() * header.getLength().getDefaultNoteLength();\n working = working/header.getTempo().getBeatLength().getNoteLength();\n int numTicks = (int) (working*ticksPerBeat);\n return numTicks;\n }", "title": "" }, { "docid": "082615eef47723598c14e9af9f95937f", "score": "0.6285374", "text": "public int getTickTime(){\n\t\t\treturn TickTime;\n\t\t}", "title": "" }, { "docid": "7ffd22e3f1eae6a28b1d1688450c2378", "score": "0.6282563", "text": "public int getTick() {\n return this.tick;\n }", "title": "" }, { "docid": "41868b6d6b1aa6392953420afb5c3b8d", "score": "0.6273106", "text": "public long getTick() {\n return tick_;\n }", "title": "" }, { "docid": "35074281210f9831f96d15db2535c985", "score": "0.6241685", "text": "public long getTick() {\n return tick_;\n }", "title": "" }, { "docid": "d61052f65b73f04edb281c06641061e3", "score": "0.6184869", "text": "public int getStartTick() {\n\treturn startTick;\n }", "title": "" }, { "docid": "31fbb30401596729da0a3765ce0b4958", "score": "0.61526936", "text": "public int getNoDamageTicks();", "title": "" }, { "docid": "38b63e71206656fb88fcf239ad696b8a", "score": "0.612187", "text": "int getFireTicks();", "title": "" }, { "docid": "a1f44e5d081f851aa86cfed801223b0f", "score": "0.6105169", "text": "public long getTimeTicksNow();", "title": "" }, { "docid": "0d8a95b781835f13dac1490718318fb2", "score": "0.6102699", "text": "int getMaxAirTicks();", "title": "" }, { "docid": "40bd44f0b92319164ac66d7749f5e15e", "score": "0.6088372", "text": "int getMaxNoDamageTicks();", "title": "" }, { "docid": "027dc7396898305bc4d4e1cb8cb675df", "score": "0.60472137", "text": "public SimpleIntegerProperty getyTicks() {\n return yTicks;\n }", "title": "" }, { "docid": "4963e128b8eb7fee753c4084bd9ad72f", "score": "0.59508806", "text": "public int getEndTick() {\n\treturn endTick;\n }", "title": "" }, { "docid": "4d4a3ecff10d1eba389e5c1f9d2b9223", "score": "0.593753", "text": "int findNextTick(int tick) throws IllegalArgumentException;", "title": "" }, { "docid": "f84159354bb0feac37312e1698601df3", "score": "0.59302354", "text": "public int ticksPerTileWalked();", "title": "" }, { "docid": "0c1dce1f8d72224f56b2e30c3449908a", "score": "0.5918489", "text": "public void inc_tick_count() {this.tick_count = this.get_tick_count() + 1;}", "title": "" }, { "docid": "581456f3cc1c016a2ca2618e35171dfc", "score": "0.5877513", "text": "@Override\n public int convertTicks(int tick) {\n return (tick / this.tickRate) * 1000;\n }", "title": "" }, { "docid": "087c768614e6ae605c4565d718578040", "score": "0.5852744", "text": "public long getTicksBetweenDamage() {\r\n\t\treturn ticksBetweenDamage;\r\n\t}", "title": "" }, { "docid": "dd929a6b29623fd3cb55c85ed86bbe9f", "score": "0.58264595", "text": "protected final long convertToTicks(long milliseconds) {\n\t\tdouble curtick = 20.0;\n\t\ttry {\n\t\t\tcurtick = MinecraftServer.getServer().recentTps[0];\n\t\t} catch (NullPointerException npe) {}\n\t\treturn (long) ( (double) milliseconds / (1000.0 / curtick));\n\t}", "title": "" }, { "docid": "b54ef26d6e7033505628deb0c0f80c2d", "score": "0.57891506", "text": "public int getElapsedTime() {\n\treturn this.endTick - this.startTick;\n }", "title": "" }, { "docid": "e62475049d09ba82953e116d77480651", "score": "0.57293004", "text": "public int getTickPeriods() {\r\n return tickPeriods;\r\n }", "title": "" }, { "docid": "075b4ff27f101d7e9576063e3c609da0", "score": "0.56758344", "text": "public static long ElapsedTime()\r\n\t{\r\n\t\tlong elapsedtime=(StartTicking()-StopTicking())/1000;\r\n\t\treturn elapsedtime;\r\n\t}", "title": "" }, { "docid": "bf6f22a04390db7e330a189e74ca94e3", "score": "0.56140685", "text": "public float getTickMarkInsideLength() {\n return this.tickMarkInsideLength;\n }", "title": "" }, { "docid": "aeb932ff58eb5eb275a809be780b9c5c", "score": "0.5566242", "text": "void convertToTicks(int tempo);", "title": "" }, { "docid": "ca2a701f1e0d634f452df71e09c62ad8", "score": "0.5564149", "text": "java.lang.String getTickSize();", "title": "" }, { "docid": "ca2a701f1e0d634f452df71e09c62ad8", "score": "0.5564149", "text": "java.lang.String getTickSize();", "title": "" }, { "docid": "6c74081423974a895686f90c4fad51ba", "score": "0.5554015", "text": "public static long StartTicking()\r\n\t{\r\n\t\tSystem.out.println(\"press 1 to start time\");\r\n\t\tsc.nextInt();\r\n\t\tlong start=System.currentTimeMillis();\r\n\t\tSystem.out.println(start);\r\n\t\treturn start;\r\n\t}", "title": "" }, { "docid": "73ca2436a7591a388c25eb39a4caadeb", "score": "0.55258644", "text": "public final long getBalanceTicks() {\n return (this.m_losses - this.m_wins);\n }", "title": "" }, { "docid": "c33b6bbad1b9b8bcb74bbf2cce2bc78d", "score": "0.5524859", "text": "public int tickRate()\n {\n return 10;\n }", "title": "" }, { "docid": "6ba2c934558994f87f66da67cb26d4aa", "score": "0.55131114", "text": "@Override\npublic int getTicksLived() {\n\treturn 0;\n}", "title": "" }, { "docid": "05c38c965e89de0bf2acfd5c744c75ad", "score": "0.54975075", "text": "public long getSchedBeforeTimeXml() throws Exception {\n return SchedBeforeTime.Ticks;\n }", "title": "" }, { "docid": "ad6eee5ce84daaa264c734dc1c54e127", "score": "0.547506", "text": "public static long toTicks(int seconds) {\r\n\t\treturn seconds * 20l;\r\n\t}", "title": "" }, { "docid": "0a19e8110db2d6bb247d02530748c1cd", "score": "0.54564124", "text": "int getStickersCount();", "title": "" }, { "docid": "607cfdc2ca3584bbd00d7e67e4ff9756", "score": "0.5453062", "text": "int getTimeleft();", "title": "" }, { "docid": "e1a533741b0409ead2d348ac13710c37", "score": "0.54323334", "text": "private void ticktock(){\r\n\t\tEventBus.getInstance().publish(Event.TimeTick, Integer.toString(count), null);\r\n\t\t--count;\r\n\t\tif (count==-1){\r\n\t\t\ttimeUp();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "079449ed200cf7411ecaf166d310a5df", "score": "0.5394284", "text": "public int getActivationTicks() {\n\t\treturn this.dataManager.get(ACTIVATION_TICKS);\n\t}", "title": "" }, { "docid": "a7b3893277a7a3ea725503ccf9dba4de", "score": "0.5394032", "text": "int getPicks();", "title": "" }, { "docid": "c9bebaaf19bba47ab25040df39cafecf", "score": "0.53874785", "text": "public void tick() {\n \t\r\n \ttickTime.set(tickTime.get()+1);\r\n \tif(tickTime.get()==Long.MAX_VALUE) {\r\n \t\tSystem.err.println(\"Maximum time value reached!\");\r\n \t}\r\n \t\r\n \ttickListener.forEach( tl -> tl.onTick());\r\n }", "title": "" }, { "docid": "cb961984f85c1972350e3bd2ddeffd3d", "score": "0.5379351", "text": "public static long getTime() {\n\t\t// we get the \"timer ticks\" from the high resolution timer\n\t\t// multiply by 1000 so our end result is in milliseconds\n\t\t// then divide by the number of ticks in a second giving\n\t\t// us a nice clear time in milliseconds\n\t\treturn (Sys.getTime() * 1000) / timerTicksPerSecond;\n\t}", "title": "" }, { "docid": "f6ee70f3c9a858f12cc1e06eb6daf395", "score": "0.53730834", "text": "public static int toSeconds(long ticks) {\r\n\t\treturn (int) (ticks / 20l);\r\n\t}", "title": "" }, { "docid": "a10b5093f7836f4efaaf75cf4ba0b4ca", "score": "0.5368696", "text": "public int tickRate()\n {\n return 20;\n }", "title": "" }, { "docid": "319a74366083ff5a6e044481357796de", "score": "0.5353502", "text": "public Paint getTickMarkPaint() {\n return this.tickMarkPaint;\n }", "title": "" }, { "docid": "17092ddf15684cc175b325d7eb2f41f5", "score": "0.5346344", "text": "public static int ticksToSimulatedSeconds(int ticks)\n {\n return ticks * SECONDS_PER_DAY / TICKS_PER_SIMULATED_DAY;\n }", "title": "" }, { "docid": "1d6fbb5eab172c8f12c0b20d854b857a", "score": "0.5342365", "text": "public int getOutputWheelTicks(){\n return (motor1.getCurrentPosition() - motor2.getCurrentPosition())/2;\n }", "title": "" }, { "docid": "375e3d9279c8b9c2d70ad08b240e8972", "score": "0.53413033", "text": "private int getLeftGutter(DrawingPanel panel) {\n int gutter = 40;\n if(ylog) {\n return gutter+10;\n }\n int height = panel.getHeight()-topGutter-bottomGutter;\n int numberYTickMarks = 2+height/(labelFontMetrics.getHeight()+10);\n numberYTickMarks = (int) (numberYTickMarks/panel.getImageRatio());\n double yTickSize = roundUp((ytickMax-ytickMin)/numberYTickMarks);\n // Compute y starting point so it is a multiple of yTickSize.\n double yStart = yTickSize*Math.ceil(ytickMin/yTickSize);\n int numfracdigits = numFracDigits(yTickSize);\n double chop = Math.abs(yTickSize/100);\n if((yTickSize==0)||(Math.abs((ytickMax-yStart)/yTickSize)>50)) {\n return gutter;\n }\n double ypos = yStart;\n int sh = labelFontMetrics.getHeight();\n for(int i = 0; i<=numberYTickMarks; i++) {\n String yticklabel = formatNum(ypos, numfracdigits, chop);\n int sw = labelFontMetrics.stringWidth(yticklabel);\n gutter = Math.max(sw+2*sh, gutter);\n ypos += yTickSize;\n }\n return Math.min(gutter, panel.getWidth());\n }", "title": "" }, { "docid": "7df29f474e3c9ac1fc56c748f8edd153", "score": "0.53342986", "text": "private int consume(double ticks) {\n \t\tif (totalParent == 0 || totalForChildren == 0) // this monitor has no available work to report\n \t\t\treturn 0;\n \n \t\tusedForChildren += ticks;\n \n \t\tif (usedForChildren > totalForChildren)\n \t\t\tusedForChildren = totalForChildren;\n \t\telse if (usedForChildren < 0.0)\n \t\t\tusedForChildren = 0.0;\n \n \t\tint parentPosition = (int) (totalParent * usedForChildren / totalForChildren);\n \t\tint delta = parentPosition - usedForParent;\n \n \t\tusedForParent = parentPosition;\n \t\treturn delta;\n \t}", "title": "" }, { "docid": "fea4403cbb481ea9a94b1538cc959056", "score": "0.5326865", "text": "public Paint getTickLabelPaint() {\n return this.tickLabelPaint;\n }", "title": "" }, { "docid": "d3d70724c3aab5923f2173c17aa44105", "score": "0.5286087", "text": "public String getTickSize() {\n\t\treturn tickSize;\n\t}", "title": "" }, { "docid": "b429f5fd7876191c01630b3c13241a1d", "score": "0.5280279", "text": "public int getTicksLived() {\n\t\tint ticksLived = 0;\n\t\tfor (MinecartMember<?> member : this) {\n\t\t\tticksLived = Math.max(ticksLived, member.getEntity().getTicksLived());\n\t\t}\n\t\treturn ticksLived;\n\t}", "title": "" }, { "docid": "d652d1a6633c71a00dd83708bb379bb3", "score": "0.527021", "text": "public String getUnit() {\r\n return \"ticks\";\r\n }", "title": "" }, { "docid": "091ff5b4b9892ada2cdd9eec8c2c30d0", "score": "0.5269601", "text": "boolean hasTick();", "title": "" }, { "docid": "899592cb475bc80b23b7145a85135dbf", "score": "0.5252574", "text": "public abstract List refreshTicks(Graphics2D g2, \n AxisState state,\n Rectangle2D dataArea,\n RectangleEdge edge);", "title": "" }, { "docid": "6668bfe2f3537f2972d1c028ecd15624", "score": "0.5242551", "text": "public long getFallTick() {\n return fallTick;\n }", "title": "" }, { "docid": "24154007ada8f5aa76e5f601f4008637", "score": "0.52317065", "text": "public static long StopTicking()\r\n\t{\r\n\t\tSystem.out.println(\"press 2 to stop time\");\r\n\t\tsc.nextInt();\r\n\t\tlong stop=System.currentTimeMillis();\r\n\t\tSystem.out.println(stop);\t\r\n\t\treturn stop;\r\n\t}", "title": "" }, { "docid": "af302fb9fb28ad6954e446725c4c96d8", "score": "0.5190193", "text": "public long getTickRequests() {\n return tickRequests.get();\n }", "title": "" }, { "docid": "1024b40ecee7c1aaff932af3fd638b65", "score": "0.5184973", "text": "public final long getLossTicks() {\n return this.m_losses;\n }", "title": "" }, { "docid": "20c8de8ca9a08031ec860c4566ec2a83", "score": "0.5155853", "text": "static double getEncoderTicks() { return -1; }", "title": "" }, { "docid": "7dd9d8ff1355a979268e4b9f79b8d9fc", "score": "0.51320106", "text": "public abstract String getTickMarkLabel(Number value);", "title": "" }, { "docid": "154a0f1d15375414495ca32eeaa8f016", "score": "0.51273", "text": "public static long ticksToSimulatedSeconds(long ticks)\n {\n return ticks * SECONDS_PER_DAY / TICKS_PER_SIMULATED_DAY;\n }", "title": "" }, { "docid": "a531b40464f281aeb5feb0688923a014", "score": "0.5110268", "text": "public double totalCountLeft();", "title": "" }, { "docid": "c05b2a19633214c451ac8b5cda821a86", "score": "0.5106856", "text": "static public float getPrimaryTickSize() {\n\t\treturn AScale.primaryTickSize;\n\t}", "title": "" }, { "docid": "8589c34a48bd3338cf4fc9f88168fddb", "score": "0.5102061", "text": "public int getThingsPerTick() {\n return thingsPerTick;\n }", "title": "" }, { "docid": "70fed3dae65d50d296927b54e6521901", "score": "0.509966", "text": "com.google.protobuf.ByteString\n getTickSizeBytes();", "title": "" }, { "docid": "70fed3dae65d50d296927b54e6521901", "score": "0.509966", "text": "com.google.protobuf.ByteString\n getTickSizeBytes();", "title": "" }, { "docid": "ab85ead6c22873514aa85bbaa2d5b52f", "score": "0.5097264", "text": "public static Long timeToTicks(Long time) {\n return Math.max(1, (time / 50));\n }", "title": "" }, { "docid": "d1e9933c0add3ea9e21fa549b5ec2083", "score": "0.5091315", "text": "public abstract int getNumberOfAxes();", "title": "" }, { "docid": "333620b030af114c602059e5f986b3a2", "score": "0.50893825", "text": "@Override\r\n\tpublic int getTickCount()\r\n\t{\r\n\t\treturn (int) RepastEssentials.GetTickCount();\r\n\t}", "title": "" }, { "docid": "5ff66446d93caf38cc7ba968829efbc9", "score": "0.50808907", "text": "private long waitForNextTick() {\n long deadline = tickDuration * (tick + 1);\n\n for (; ; ) {\n final long currentTime = now();\n long sleepTimeMs = (deadline - currentTime + 999999) / 1000000; // 保证sleep的粒度最少为1ms\n\n if (sleepTimeMs <= 0) {\n if (currentTime == Long.MIN_VALUE) {\n return -Long.MAX_VALUE;\n } else {\n return currentTime;\n }\n }\n\n // Check if we run on windows, as if thats the case we will need\n // to round the sleepTime as workaround for a bug that only\n // affect\n // the JVM if it runs on windows.\n //\n // See https://github.com/netty/netty/issues/356\n if (JavaUtils.isWindows()) {\n sleepTimeMs = sleepTimeMs / 10 * 10;\n }\n\n try {\n Thread.sleep(sleepTimeMs);\n } catch (InterruptedException e) {\n if (WORKER_STATE_UPDATER.get(HashedWheelTimer.this) == WORKER_STATE_SHUTDOWN) {\n return Long.MIN_VALUE;\n }\n }\n }\n }", "title": "" }, { "docid": "74e8d2f03823c89926de6fe5cb284905", "score": "0.50786424", "text": "int getLeftX();", "title": "" }, { "docid": "f9eaf97712278842410ac0a4602c23ee", "score": "0.5076952", "text": "public int getTimeleft() {\n return timeleft_;\n }", "title": "" }, { "docid": "65c7771a09da55781346b1e21494299c", "score": "0.50729775", "text": "public int getTimeleft() {\n return timeleft_;\n }", "title": "" }, { "docid": "5a3d1437b1a1ecf207f5dfa842c9479e", "score": "0.50561625", "text": "@Override\n public void onTick(long timeLeft) {\n }", "title": "" }, { "docid": "83d9f16f6178c50514d0aa0e92bc0c46", "score": "0.50309235", "text": "@Override\n public void onTick(long l) {\n }", "title": "" }, { "docid": "c419defc81e455038b9ca3979d17d7fe", "score": "0.50081956", "text": "public java.lang.String getTickSize() {\n java.lang.Object ref = tickSize_;\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 tickSize_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "c419defc81e455038b9ca3979d17d7fe", "score": "0.50081956", "text": "public java.lang.String getTickSize() {\n java.lang.Object ref = tickSize_;\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 tickSize_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a29ddc433d43ba5220f05c82682494e7", "score": "0.500638", "text": "private int getTimeInterval() {\n return (intervalGenerator.getNext()*1000);\n }", "title": "" }, { "docid": "6a3eb69c25d97ac1dd606e8d407c9b7e", "score": "0.5005695", "text": "public void timeTick()\n {\n minutos.increment();\n if ( minutos.getValue() == 0) {\n horas.increment();\n }\n updateHoraActual();\n }", "title": "" }, { "docid": "9c2931b35e1c8d5293943bb786d8693c", "score": "0.5002271", "text": "public static int thieMillis() {\n return Calendar.getInstance().get(Calendar.MILLISECOND);\n }", "title": "" }, { "docid": "c5908f9ac67c66bcc588b0b66f830e03", "score": "0.50005364", "text": "public static double[] calcAxisInterval(double min, double max, int ticks, boolean intStep) {\n\t\tdouble range = max - min;\n\t\tif (ticks ==0) ticks = 1;\n\t\tdouble step = 0.0;\n\n\t\t// From the range and the number of ticks, work out a suitable tick size\n\t\tstep = getStep(range, ticks, intStep);\n\t\t\n\t\t// We don't want labels that plot off the end of the graph, so reduce the ticks if needed\n\t\tticks = (int) Math.ceil(range / step);\n\t\t// Now find the first value before the minimum.\n\t\tdouble startValue = roundToSignificantFigures(Math.round(min/step) * step, 6);\n\n\t\t// We want ticks that go all the way to the end, so resize the tick list if needed\n\n//\t\tint newticks = (int)((max - startValue) / step + 1);\n//\t\tif (newticks < ticks * 3 && newticks > ticks) {\n//\t\t\tticks = newticks;\n//\t\t\tstep = getStep(range, ticks);\n//\t\t}\n\t\tif (ticks > MAX_TICKS) {\n\t\t\tticks = MAX_TICKS; // safety check\n\t\t\tstep = getStep(range, ticks, intStep);\n\t\t}\n\t\tif (ticks < 0) {\n\t\t\tticks = 1;\n\t\t\tstep = getStep(range, ticks, intStep);\n\t\t}\n\t\t\n\t\tdouble[] tickList = new double[ticks];\n\n\t\tif (ticks == 1) { // special case where we do not have room for a label so only some labels are plotted\n\t\t\t//double midValue = roundToSignificantFigures(Math.round(range/2/step) * step, 6);\n\t\t\ttickList[0] = startValue;\n\t\t} else \tif (ticks == 2) {\n\t\t\tdouble midValue = roundToSignificantFigures(startValue + step, 6);\n\t\t\ttickList[0] = startValue;\n\t\t\ttickList[1] = midValue;\n\t\t} else\n\t\tif (ticks > 0)\n\t\t\ttickList[0] = startValue;\n\t\tfor (int i=1; i< ticks; i++) {\n\t\t\tstartValue = roundToSignificantFigures(startValue + step, 6);\n\t\t\t//val = Math.round(val/step) * step;\n\t\t\ttickList[i] = startValue;\n\t\t}\n\t\t\n\t\treturn tickList;\n\t}", "title": "" }, { "docid": "012a1f412000d52a94f97e186dc9f254", "score": "0.49908522", "text": "float GetLeftX()\n\t{\n\t return GetRawAxis(AxisNumber.LEFT_X_AXIS_NUM);\n\t}", "title": "" }, { "docid": "d333652994e31be5996db9f35c128ff7", "score": "0.49898478", "text": "double delta(double a, double b, int tick);", "title": "" }, { "docid": "2fdbcc9b1142f9a9a269912883eebaa3", "score": "0.49802488", "text": "public long getSchedAfterTimeXml() throws Exception {\n return SchedAfterTime.Ticks;\n }", "title": "" }, { "docid": "2ecbdedc221d4c9e10c3d995549a3635", "score": "0.49796382", "text": "@Override\r\n\t\t\tpublic void onTick(long leftTimeInMilliseconds) {\r\n\t\t\t\t// long seconds = leftTimeInMilliseconds / 1000;\r\n\t\t\t\t// mprogressBar.setProgress((int)seconds);\r\n\t\t\t\t// tv.setText(String.format(\"%02d\", seconds/60) + \":\" +\r\n\t\t\t\t// String.format(\"%02d\", seconds%60));\r\n\t\t\t\t// progress_tv.setText(String.format(\"%02d\", seconds%60));\r\n\t\t\t\t// progressbar\r\n\r\n\t\t\t}", "title": "" }, { "docid": "38c77e4209108ab1f747547d3cb6070d", "score": "0.49788567", "text": "public static long getMillisFromTicks(long hi, long lo) {\n long ticks = ((hi << 32) | lo);\n return ticks / 10000; // 100 ns = 0.0001 ms\n }", "title": "" }, { "docid": "899e6d4a0ff10a0793832903d7dbb749", "score": "0.4971421", "text": "public int getLineInterval(){\n long timeSpanInDays = getFillLine().getTimeSpanInDays();\n return (timeSpanInDays <= GraphStyle.GRID_LINES) ?\n 1 : (int) Math.ceil(timeSpanInDays / GraphStyle.GRID_LINES);\n }", "title": "" }, { "docid": "fbc9c468b7539128f530e41bc52ccae7", "score": "0.49606866", "text": "public void onTick(long t)\n {\n }", "title": "" }, { "docid": "2b7fdf31998c5f36bce131b4ee0f7396", "score": "0.49567592", "text": "void setFireTicks(int ticks);", "title": "" }, { "docid": "49b7b05ab9369635681e5aadf5916a28", "score": "0.49490306", "text": "public int getSyncTick(boolean sync)\n {\n Output output = sound.getOutput();\n MidiClock clock = output.getInput().getMidiClock();\n if (sync && clock.isSyncing())\n {\n return clock.getTick();\n }\n else\n {\n return output.getTick();\n }\n }", "title": "" }, { "docid": "7c3e7fef766da4cc2b94108b36f3ce0d", "score": "0.49484634", "text": "public int getTimeLeft() {\n\t\treturn timeLeft;\n\t}", "title": "" }, { "docid": "c67c8eff4802963ec8a92cb36342b9d0", "score": "0.49455813", "text": "@Override\npublic void setTicksLived(int arg0) {\n\t\n}", "title": "" }, { "docid": "a95c46f447a54ef9111996f99ffa9e8f", "score": "0.4933727", "text": "public Label getLblTriesLeft(){\n \treturn this.lbl_triesLeft;\n }", "title": "" }, { "docid": "021c1c0b78e4b9ac4df7565306204739", "score": "0.4933427", "text": "void tick(int numberOfTicks) {\r\n for (int i = 0; i != numberOfTicks; i++) {\r\n tick();\r\n }\r\n }", "title": "" }, { "docid": "41b5f0e34246212eefc4d223a39c777e", "score": "0.49326572", "text": "public int getAngleOutputWheelTicks(){\n return (motor1.getCurrentPosition() + motor2.getCurrentPosition())/2;\n }", "title": "" }, { "docid": "f10295fbff94f9b64a43f07123c30229", "score": "0.4930938", "text": "public int getNumberOfDifferentTimeLags(){\n return (int) Math.round(Math.ceil( 1.f * (tauMax-tauMin+1) / tauStep));\n }", "title": "" } ]
cde93718e5a783cc5a1553488f139499
Setter method: for the X coordinate of the bubble.
[ { "docid": "7f09978922c7103a526976063ff01c79", "score": "0.73370844", "text": "public final void setX(final float xPos) {\r\n rootBubble.setX(xPos);\r\n }", "title": "" } ]
[ { "docid": "164b26366ed80f734ed21408cf528590", "score": "0.7495376", "text": "public void setX(double x)\r\n {\r\n myXPosition = x;\r\n }", "title": "" }, { "docid": "deaa70d754511ad4e8c0c1b3139717c3", "score": "0.7493887", "text": "public void setXPosition( int x ) { this.x = x; }", "title": "" }, { "docid": "3bb36fd6e625f0f1026df8d1daaec0d7", "score": "0.7440659", "text": "public void setX(int x) {\n mX = x;\n }", "title": "" }, { "docid": "049fa734a3791093d2a7959cbc6e947a", "score": "0.73066694", "text": "public void setX(int newX) {\n xCoord = newX;\n }", "title": "" }, { "docid": "3f671f8a9fd80a95962aae0fad42c92e", "score": "0.73061943", "text": "public final void setX( int x )\n {\n int oldX = this.x;\n this.x = x;\n resetDimension();\n firePropertyChange( PROP_X, oldX, x );\n }", "title": "" }, { "docid": "fe339c76aeea0d5e24d5cd2785ea7ae8", "score": "0.72467357", "text": "public void setPositionX(int value) {\n this.positionX = value;\n }", "title": "" }, { "docid": "95a745afdd908218152ff7f410eb90c6", "score": "0.7227619", "text": "public void setX(double x) {\n this.xcoord = x;\n }", "title": "" }, { "docid": "2c49f3aece759f15c0689a07960a9883", "score": "0.71511745", "text": "public void setXPos(int x) ;", "title": "" }, { "docid": "78753e6d838da0003a87a83e2a6e9e7e", "score": "0.71477944", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "37d3258d574fec1b50f33700cc3523b8", "score": "0.712115", "text": "public void setX(int x){\n\t\tm_x = x;\n\t}", "title": "" }, { "docid": "1547ad97e98f028c57adc5aa5ac015e0", "score": "0.7110825", "text": "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "title": "" }, { "docid": "1547ad97e98f028c57adc5aa5ac015e0", "score": "0.7110825", "text": "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "title": "" }, { "docid": "1547ad97e98f028c57adc5aa5ac015e0", "score": "0.7110825", "text": "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "title": "" }, { "docid": "1547ad97e98f028c57adc5aa5ac015e0", "score": "0.7110825", "text": "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "title": "" }, { "docid": "1547ad97e98f028c57adc5aa5ac015e0", "score": "0.7110825", "text": "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "title": "" }, { "docid": "2657a3107c5cf8b60309e934e98cfe3f", "score": "0.7105932", "text": "public void setX(Number x){\n getWidgetModel().setPropertyValue(AbstractWidgetModel.PROP_XPOS, x);\n }", "title": "" }, { "docid": "32aa6e4aea5fafb67b7ee148b32e0814", "score": "0.7094507", "text": "public void setX(int xPos){\n\t\tx=xPos;\n\t}", "title": "" }, { "docid": "79d2905e3a184494c269544e7ffc3844", "score": "0.70524395", "text": "public void setX(int x) {\r\n this.x = x;\r\n }", "title": "" }, { "docid": "79d2905e3a184494c269544e7ffc3844", "score": "0.70524395", "text": "public void setX(int x) {\r\n this.x = x;\r\n }", "title": "" }, { "docid": "79d2905e3a184494c269544e7ffc3844", "score": "0.70524395", "text": "public void setX(int x) {\r\n this.x = x;\r\n }", "title": "" }, { "docid": "9dd6d6ff88f451588b012801650a62f7", "score": "0.7042529", "text": "public void setX(int x) {\n\t\tmX = x;\n\t}", "title": "" }, { "docid": "ab6f7cb36f81f56192d735faecd20075", "score": "0.70326555", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "ab6f7cb36f81f56192d735faecd20075", "score": "0.70326555", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "ab6f7cb36f81f56192d735faecd20075", "score": "0.70326555", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "ab6f7cb36f81f56192d735faecd20075", "score": "0.70326555", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "ab6f7cb36f81f56192d735faecd20075", "score": "0.70326555", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "ab6f7cb36f81f56192d735faecd20075", "score": "0.70326555", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "ab6f7cb36f81f56192d735faecd20075", "score": "0.70326555", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "ab6f7cb36f81f56192d735faecd20075", "score": "0.70326555", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "a44a9aca6b3c38c15a7b69bcb7c2eda1", "score": "0.7032175", "text": "void setXPos(double XPos);", "title": "" }, { "docid": "ae14297c98b9a5cb11cb223dd63491fd", "score": "0.70297766", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "ae14297c98b9a5cb11cb223dd63491fd", "score": "0.70297766", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "ae14297c98b9a5cb11cb223dd63491fd", "score": "0.70297766", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "ae14297c98b9a5cb11cb223dd63491fd", "score": "0.70297766", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "ae14297c98b9a5cb11cb223dd63491fd", "score": "0.70297766", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "ae14297c98b9a5cb11cb223dd63491fd", "score": "0.70297766", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "ae14297c98b9a5cb11cb223dd63491fd", "score": "0.70297766", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "ae14297c98b9a5cb11cb223dd63491fd", "score": "0.70297766", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "2620ad420c01b3813406e4d812ef21ad", "score": "0.70207083", "text": "public void setX(int x){\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "818f252c497974f991f26670c16b8d1c", "score": "0.7009351", "text": "public void setX(int x) {\r\n\t\t_x = x;\r\n\t}", "title": "" }, { "docid": "c6e4e0109dbc1bbeb10035e293511e91", "score": "0.6964616", "text": "public void setX(double value) {\n\t\tthis.x = value;\n\t}", "title": "" }, { "docid": "4f3ba847fc276e7e8fe792f195a21e4d", "score": "0.6935462", "text": "private void setXCoordinate(int xCoordinate) { this.xCoordinate = xCoordinate; }", "title": "" }, { "docid": "7aa9f7ff8a576a9ca2b08576de3b9912", "score": "0.69233453", "text": "public void setX (int x) {\r\n this.x = x;\r\n }", "title": "" }, { "docid": "fc2665cad3a90480c7029a1349593459", "score": "0.69089556", "text": "public void setX(int x)\n {\n this.x = x;\n }", "title": "" }, { "docid": "8cdc0960dc3b027572bc103e539bb766", "score": "0.68986195", "text": "public void setX(double x) {\n\t\t\n\t\txPos = x;\n\t\tivBullet.setX(xPos);\t\n\t}", "title": "" }, { "docid": "e7acf22d15542b9b7ff10034f9804706", "score": "0.68868804", "text": "public void setX (double x) {\n myPrevX = myX;\n myX = boundCoordinate(x);\n }", "title": "" }, { "docid": "5cd2231a7923e243d08ee3c6d5453904", "score": "0.6880334", "text": "public void setX(double x) {\r\n\t\tposition[0] = x;\r\n\t}", "title": "" }, { "docid": "07273f14eb7efee77b3b77209f49fb4e", "score": "0.68729126", "text": "public void setX(int x)\n {\n this.x = x;\n }", "title": "" }, { "docid": "dc05ad0f8ff4b030c4abe5ea1c5df5fa", "score": "0.68366724", "text": "public final float getX() {\r\n return rootBubble.getX();\r\n }", "title": "" }, { "docid": "bf3b859c0be1426c845652596672fecb", "score": "0.68320656", "text": "public void setX(int x){\n this.x = x;\n }", "title": "" }, { "docid": "47e1f686817bba4389609c758982aa75", "score": "0.68312114", "text": "void setPositionX(int positionX);", "title": "" }, { "docid": "4b24d653a3827d0fd3286ee10651c71d", "score": "0.6807745", "text": "@Override\n\t\tpublic final void setX(double x)\n\t\t\t{\n\t\t\t\tdouble diffX = x - this.x;\n\t\t\t\tthis.moveX(diffX);\n\t\t\t}", "title": "" }, { "docid": "f25c93729650c0f5de97f196ec004f78", "score": "0.68020654", "text": "@Override\r\n\tpublic void setX(double x) {\r\n\t\tif(isCentered)\r\n\t\t\tcenterX = x;\r\n\t\telse\r\n\t\t\ttextX = x;\r\n\t\trecalcCoords();\r\n\t}", "title": "" }, { "docid": "186746139a04b5a51e129179bb98ed7d", "score": "0.6783037", "text": "public void setX(int x){\n this.x = x;\n }", "title": "" }, { "docid": "29756230ac09fe5fe56c416e203fdfe5", "score": "0.67769533", "text": "@Override\n public void setxPos(int xPos) {\n\t\tthis.xPos = xPos;\n\t}", "title": "" }, { "docid": "49e9c76d009f98864f047f7aaa6283cd", "score": "0.67765355", "text": "public void setX(double x) {\r\n this.x = x;\r\n }", "title": "" }, { "docid": "5dfc12f7c7a6b21ac9e72f73edc94d27", "score": "0.6775294", "text": "void setX(double x) {\n this.x = x;\n }", "title": "" }, { "docid": "fdcbae800d9814694921080dfc04ea66", "score": "0.6772967", "text": "public void setX(double X){\r\n\t\tthis.x = X;\r\n\t}", "title": "" }, { "docid": "207e03cc96309322b20c8792e2bb1b5a", "score": "0.67695737", "text": "public void setX(int x) {\n\t\tthis.posX = x;\n\t\tthis.resized = true;\n\t\tthis.repaint();\n\t}", "title": "" }, { "docid": "0fb62a692849d403043b9356d7badd00", "score": "0.67441106", "text": "public int getPointX() {\n\t\treturn pointX;\n\t}", "title": "" }, { "docid": "b3bb448cee4089f972e87cf51ef4d6eb", "score": "0.67314", "text": "public void setOriginX(double value) {\n this.originX = value;\n }", "title": "" }, { "docid": "66a5c536dc97f4058c739b34bc78ef9e", "score": "0.67272854", "text": "public void setX(double x) {\n this.x = x;\n }", "title": "" }, { "docid": "66a5c536dc97f4058c739b34bc78ef9e", "score": "0.67272854", "text": "public void setX(double x) {\n this.x = x;\n }", "title": "" }, { "docid": "66a5c536dc97f4058c739b34bc78ef9e", "score": "0.67272854", "text": "public void setX(double x) {\n this.x = x;\n }", "title": "" }, { "docid": "f9ddded495cc9ec15e130c62296d5e50", "score": "0.67270184", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t\tif (this.x < 0) {\n\t\t\tthis.x = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "01717f242bce65c25d1c6601a5ae37ad", "score": "0.6706599", "text": "public void setX(double x){\r\n this.x = x;\r\n }", "title": "" }, { "docid": "3255910e2c0e65c7ba456047c17d1549", "score": "0.6700566", "text": "public void setX(int newX){\n\t\tthis.x = newX;\n\t}", "title": "" }, { "docid": "d7037499e526e7a2bf1fffe38627f001", "score": "0.6695032", "text": "public void setXPos(int x) {\n\t\txPos = x;\n\t}", "title": "" }, { "docid": "79783b92756e083d33515019af3c112d", "score": "0.66794896", "text": "public void setSizeX(int value) {\r\n this.sizeX = value;\r\n }", "title": "" }, { "docid": "40634b9405b548c9d025e5bb26923f83", "score": "0.6665558", "text": "public void setX(double x) {\n\t\tm_x = x;\n\t}", "title": "" }, { "docid": "c7d45e50b19f707bb6984c701bc8a9eb", "score": "0.6661615", "text": "public Builder setPositionX(float value) {\n bitField0_ |= 0x00800000;\n positionX_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "146413833d6a638773e5e7a382bced6c", "score": "0.6652229", "text": "public void setX(double x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "146413833d6a638773e5e7a382bced6c", "score": "0.6652229", "text": "public void setX(double x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "146413833d6a638773e5e7a382bced6c", "score": "0.6652229", "text": "public void setX(double x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "a6ed404a7c6be1039712582b95ccedb8", "score": "0.6644802", "text": "public void setX(int newX) {\r\n x = newX;\r\n }", "title": "" }, { "docid": "4f9d4c7dfe8aa676126f3be23a9ec91b", "score": "0.663706", "text": "@Override\n public float getX() {\n super.getX();\n return this.xPos;\n }", "title": "" }, { "docid": "f9035a352d6c3b2d46d2afdbf1260eea", "score": "0.66335565", "text": "public void setX(float x){\r\n\t\tthis.x = x;\r\n\t}", "title": "" }, { "docid": "266cde823dc6c63454b3a855af760ca6", "score": "0.6632013", "text": "public void setXpos(float xpos) {\n\t\tthis.xpos = xpos;\n\t}", "title": "" }, { "docid": "afb4344a1ef89a9e176e65cd943ed7f1", "score": "0.6626375", "text": "@Override\n\tpublic void setX(float x) {\n\n\t}", "title": "" }, { "docid": "742c6881b7832c55d41219e55a02a59b", "score": "0.66261584", "text": "@Override\n\tpublic int getPositionX() {\n\t\treturn positionX;\n\t}", "title": "" }, { "docid": "12f5f610395731d4a14d584d1e4e50bf", "score": "0.66230386", "text": "private void setPosX(int posX) {\r\n\t\tthis.posX = posX;\r\n\t}", "title": "" }, { "docid": "48f1d27850aa39106cc682b50148dcdf", "score": "0.662066", "text": "public void setXposition( double newX){\n\t\txPosition = newX;\n\t}", "title": "" }, { "docid": "7de7b7a694c7d1415c016fd634f1ea0d", "score": "0.6613866", "text": "public void setPosX(int posX){\r\n\t\tthis.posX = posX;\r\n\t}", "title": "" }, { "docid": "963b644069389753db02af2848d23608", "score": "0.6611892", "text": "@java.lang.Override\n public float getXPos() {\n return xPos_;\n }", "title": "" }, { "docid": "8b8d982a7bfb38ad056bfe8639db8130", "score": "0.66106415", "text": "@Override\r\n\tpublic void setX(Float x){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7bf37bfe099eba0717e6ca52ec4d8710", "score": "0.66049993", "text": "protected void setX(double x){\n this.view.setTranslateX(x);\n }", "title": "" }, { "docid": "ebda30d8b29a23758973bf35c2c2ce1b", "score": "0.6602107", "text": "@Override\n\tpublic void setXPostion(float xPostion_) {\n\t\t\n\t}", "title": "" }, { "docid": "ac7ef9391cef6d778999ad06816bcdb9", "score": "0.6592426", "text": "public void setX(int x) {\n this.box.x = x;\n }", "title": "" }, { "docid": "570e274fc0a6c5ff3820abe935a63280", "score": "0.65914524", "text": "public void setX( double x )\n\t{\n\t\tthis.m_x = x;\n\t}", "title": "" }, { "docid": "39674d428cb16e8298239bc54908d57e", "score": "0.6588497", "text": "public void setX(float x) {\n this.x = x;\n }", "title": "" }, { "docid": "fcaa053ff130a79f47463f775b3ae5c0", "score": "0.6581098", "text": "public void setX(float x) {\r\n\t\tthis.x = x;\r\n\t}", "title": "" }, { "docid": "fcaa053ff130a79f47463f775b3ae5c0", "score": "0.6581098", "text": "public void setX(float x) {\r\n\t\tthis.x = x;\r\n\t}", "title": "" }, { "docid": "d803803e181534c5a688316e32928b9a", "score": "0.656845", "text": "public void setX(float x)\n {\n this.x = x;\n }", "title": "" }, { "docid": "6c439bed577e342bad4a6bf3267d84cb", "score": "0.65613866", "text": "public void setX(double x)\n\t{\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "0631a54ee6b157b85f4fbb86c378c722", "score": "0.65569", "text": "public void setX(double pX)\n {\n // X = PX\n x = pX;\n }", "title": "" }, { "docid": "8c48fae9510de1cffa174e761c7e02b2", "score": "0.6554934", "text": "@java.lang.Override\n public float getXPos() {\n return xPos_;\n }", "title": "" }, { "docid": "b1642381d8eb34b7600bfa4e2d4640e7", "score": "0.6547006", "text": "@Override\n\tpublic float getX() {\n\t\treturn xPos;\n\t}", "title": "" }, { "docid": "b242e5829d91c5bf65e05f63bd3fcdbc", "score": "0.6545877", "text": "public Builder setXpos(int value) {\n bitField0_ |= 0x00000002;\n xpos_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "63b4e634d63e13f1dc7aa02de1990f97", "score": "0.6529448", "text": "public float getPositionX() {\n return positionX_;\n }", "title": "" }, { "docid": "4a38e9b46f6a93cf21d7434029997453", "score": "0.6524804", "text": "@Override\n public double getX() {\n return xPos;\n }", "title": "" } ]
1cab955cac0ece3b6407532959a4c65b
add a travel to this user
[ { "docid": "34f76999b5e5b74f09efaa886ed906d1", "score": "0.76012516", "text": "public void addTravel(Travel travel) {\n notNull(travel, \"Travel can not be null\");\n travels.add(travel);\n }", "title": "" } ]
[ { "docid": "f24cb7e62061d5d1a543dbe7004c6418", "score": "0.6443538", "text": "public static void addJourneyToUser(final String userID, final Journey journey) {\n ValueEventListener valueEventListener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot snapshot) {\n User user = snapshot.getValue(User.class);\n if (user == null) return;\n user.setNumOfTrips(user.getJourneyIDs().size() + 1);\n user.addJourneyID(journey.getJourneyID());\n updateUser(userID, user);\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n };\n getUserDatabaseReference(userID).addListenerForSingleValueEvent(valueEventListener);\n }", "title": "" }, { "docid": "eb5a29d1deebec969390dd8956463612", "score": "0.6261246", "text": "public void addUser(User add) {\r\n\t\tusers.add(add);\r\n\t}", "title": "" }, { "docid": "52910efc44ccd1d1e25fd828cef96ba9", "score": "0.6254203", "text": "public void add(User user) {\n System.out.println(\"model.User added successfully\");\n }", "title": "" }, { "docid": "2455d53c9b010affa8e3dfb02f280bc4", "score": "0.61490315", "text": "public void addNewTrip(Trip trip){\n model.addNewTrip(trip);\n view.addedNewTrip();\n }", "title": "" }, { "docid": "e9dfb778d3adf8e92c5c2d156ffe6106", "score": "0.6146989", "text": "public void addUser(int id, User user);", "title": "" }, { "docid": "95bfdde5074825c20da1e39b6f25c24c", "score": "0.6144116", "text": "@Override\n\tpublic synchronized void addNewTravelDetails(List<UserTravel> userTravelDetails) {\n\t\tSession session = _sessionFactory.openSession();\n\t\tTransaction transaction = null;\n\t\ttry {\n\t\t\ttransaction = session.beginTransaction();\n\t\t\tint i = 0;\n\t for(UserTravel travel : userTravelDetails) {\t \t\n\t \tsession.save(travel);\n\t \tif(i == 50) {\n\t \t\tsession.flush(); //flush a batch of inserts and release memory:\n\t \t\tsession.clear();\n\t \t}\n\t \ti++;\n\t }\t \t\n\t\t\ttransaction.commit();\n\t\t} catch (HibernateException ex) {\n\t\t\tif (transaction != null) {\n\t\t\t\ttransaction.rollback();\n\t\t\t}\n\t\t\tex.printStackTrace();\n\t\t\tLogger.getLogger(\"con\").info(\"Exception: \" + ex.getMessage());\t\t\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t}", "title": "" }, { "docid": "48343b4d5ebbd7e1eaba9a8d3af62cdf", "score": "0.61407185", "text": "private void addVisitor(UserList ul) {\n long user = (long) controller.getUser();\n if (ul.getCreator().getId() != user) {\n service.addVisitor(ul.getUniqueID(), user, new AsyncCallback<Void>() {\n @Override\n public void onFailure(Throwable caught) {\n }\n\n @Override\n public void onSuccess(Void result) {\n }\n });\n }\n }", "title": "" }, { "docid": "f3745ae0b294c450aa3a0a3b37c394b7", "score": "0.6137507", "text": "public void addPerson(Person toAdd)\n\t{\n\t\tpassengers.add(toAdd);\n\t\tfloorRequests.add(toAdd.getDestination());\n\t\tif (dir < 0) {\n\t\t\tif (toAdd.getDestination() < floorDir) {//wants to go down more than its already going down\n\t\t\t\tsetFloor(toAdd.getDestination());\n\t\t\t}\n\t\t} else if (dir > 0) {\n\t\t\tif (toAdd.getDestination() > floorDir) {//wants to go down more than its already going down\n\t\t\t\tsetFloor(toAdd.getDestination());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "db8feb071d37d6418f4a09fd992bbf09", "score": "0.6130309", "text": "public void addTunnel(UserTunnel tunnel) {\n this.access();\n tunnels.put(tunnel.getUUID().toString(), tunnel);\n }", "title": "" }, { "docid": "6bf38fb5524a63335fbe42b631ddd20c", "score": "0.60508305", "text": "public void userAddTopo(User user, Topo topo)\n {\n\n List<Topo> topoList = user.getTopos();\n\n topoList.add(topo);\n\n user.setTopos(topoList);\n\n userRepository.save(user);\n }", "title": "" }, { "docid": "5ab98a7a9bfced1ed7506d90df3c67e4", "score": "0.60458815", "text": "@Override\n\tpublic void add(User user) {\n\t\tSystem.out.println(\"Öğrenci kaydı tamamlandı: \" + user.getFirstName() + \" \" + user.getLastName());\n\t}", "title": "" }, { "docid": "1ac293c3434daee5b8f37f20aac706ca", "score": "0.60377485", "text": "public void addUser(User user) {\r\n users.add(user);\r\n }", "title": "" }, { "docid": "2bf0a065fee523a2602ba2311982016c", "score": "0.60244393", "text": "void addUserFollowUser(UsuarioUsuario userUser);", "title": "" }, { "docid": "a6155376550aa5975a7eb99addf333de", "score": "0.6022471", "text": "public void ajouterTour(Tower tour)\r\n {\r\n tours.add(tour);\r\n }", "title": "" }, { "docid": "963ca5177b92cf9998d1d220f532e3d1", "score": "0.601036", "text": "public void addUser(User user)\n {\n this.users.add(user);\n }", "title": "" }, { "docid": "d17c555892924bb4cced1716f4b384f7", "score": "0.59999466", "text": "public void addUser(User user) {\n users.add(user);\n }", "title": "" }, { "docid": "b88fd3e6ecc4ec2163dd7d8f12b4792e", "score": "0.59981847", "text": "void addUsers(User user);", "title": "" }, { "docid": "b8256dc99a46c21996dfcee5354c910e", "score": "0.598049", "text": "void addUserToPlace(String userName, String placeId);", "title": "" }, { "docid": "96b7d43dc5c971841111f22d90d250e6", "score": "0.5913051", "text": "@OnClick(R.id.newLocationButton) void addNewLocation() {\n if ( ParseUser.getCurrentUser() == null ) {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n }\n //otherwise go to the add page\n else {\n Intent intent = new Intent(this, NewLocationActivity.class);\n startActivity(intent);\n }\n }", "title": "" }, { "docid": "e03b66323e8e33a6cea57822642e2ab7", "score": "0.58978766", "text": "public void addTravel(double distanceTravelled) {\n positionInLane += distanceTravelled;\n Logger.getInstance().logDebug(getName(), simEngine.getCurrentSimTime(), \"position in lane: \" + positionInLane);\n // update total travelled distance\n totalTravelledDistance += distanceTravelled;\n }", "title": "" }, { "docid": "ec527fbe93744f02b737563500ceb07e", "score": "0.58818454", "text": "public void addTravel(TravelInfo travelinfo, Integer ntravelers, String journeyclass) {\n Travel newTravel = new Travel(travelinfo, ntravelers, journeyclass);\n this._travels.add(newTravel);\n }", "title": "" }, { "docid": "3c80e55d56762de84265e4ed8cc5480e", "score": "0.5875558", "text": "public void addUser(User user) {\n this.userList.add(user);\n }", "title": "" }, { "docid": "f72141ce0e8ea8acb0e6b87ebf1a6f61", "score": "0.5872095", "text": "public void addTravelCard(String name) {\n\t\tthis.TravelCards.add(new TravelCards(name));\n\t\n\t\n\t}", "title": "" }, { "docid": "0dab53e3b794a8f821b877fb2a3fcc71", "score": "0.58538026", "text": "@Override\n\tpublic void addUser(UserInf user) {\n\t\tuserInfMapper.insert(user);\n\t}", "title": "" }, { "docid": "b844d5c21c23b088db53058c51f1b9b8", "score": "0.58479506", "text": "public synchronized void addUser(User u) { //o que esta mal ? passo a classe Server ?\r\n\t\tuserTable.add(u); //zona critica\r\n\t}", "title": "" }, { "docid": "57757863e03825d3743d70645af92499", "score": "0.5843517", "text": "@Override\r\n\tpublic void addAccount(User user) {\n\t\t\r\n\t}", "title": "" }, { "docid": "f119b7d06d4cf5ad47fea3a24972cc04", "score": "0.5815936", "text": "private void userAdd(String user) {\n users.add(user);\n }", "title": "" }, { "docid": "8ec265d6cec5d6734bfe40332ef367a1", "score": "0.5812458", "text": "@Override\n\tpublic void adduser(User user) {\n\t\tgetSession().save(user);\n\t}", "title": "" }, { "docid": "6379eff24ed2e105227fab3a6d1b0d6d", "score": "0.58064276", "text": "public void addUser(User user){\n\t\tusers.add(user);\n\t}", "title": "" }, { "docid": "20fee7e62bd4029985ae726cab606681", "score": "0.5799002", "text": "public Trip(String tripId, String userId, String name, String location) {\n\t\tsuper();\n\t\tthis.tripId = tripId;\n\t\tthis.userId = userId;\n\t\tthis.name = name;\n\t\tthis.location.add(location);\n\t}", "title": "" }, { "docid": "52968804800e6de78a9a8a5a467f065e", "score": "0.5797725", "text": "public void takeTravel(Travel travel, long idOfDriver)\n {\n travel.setIdOfDriver(idOfDriver);\n travel.setMyTravelStatus(Travel.TravelStatus.IN_THERAPY);\n DateFormat fornatd1=new SimpleDateFormat(\"dd.MM.yyyy\");\n Date date=new Date();\n travel.setFirstHour(fornatd1.format(date));\n myRefTravel.child(travel.getId().toString()).setValue(travel);\n\n }", "title": "" }, { "docid": "5af49203fa85c913cb2fe2fb447e7c1f", "score": "0.57734495", "text": "public void addOffer(TravelOffer t) {\n\t\ttravels.add(t);\n\t\tthis.fireTableRowsInserted(travels.size(), travels.size());\n\t}", "title": "" }, { "docid": "3b5aaa282a8328ae1a70ed8f81a2fc96", "score": "0.57647204", "text": "@RequestMapping(value = \"/register/adduser\", method = RequestMethod.POST)\n public String registerUser(@ModelAttribute(\"user\") User user, Model model) {\n userService.addUser(user);\n return \"redirect:/tasks\";\n }", "title": "" }, { "docid": "a426f7eeb6293463f8534ec35637c64e", "score": "0.57544184", "text": "public void add(User entity) {\n\t\t\r\n\t}", "title": "" }, { "docid": "89e7da0b0f6421aa094bd0170bc175f6", "score": "0.57316816", "text": "@Override\n public void add(User model) {\n model.setId(count++);\n users.put(model.getId(), model);\n }", "title": "" }, { "docid": "f67112d497e7e03e24615513a672ac85", "score": "0.5708422", "text": "@Override\r\n\tpublic void addUser() {\n\t\tSystem.out.println(\"addUser\");\r\n\t}", "title": "" }, { "docid": "00308515c08ca4c92c781675b11200e4", "score": "0.5703888", "text": "@Override\n\tpublic void add(User user) {\n\t\tuserDao.add(user);\n\n\t}", "title": "" }, { "docid": "69e35ff57181d86bce1ddad859b97b78", "score": "0.57031626", "text": "@Override\r\n\tpublic void addUser(UserLogin userLogin) {\n\t\t\r\n\t\tpassengerDao.addUser(userLogin);\r\n\t}", "title": "" }, { "docid": "608cbf3d84a82b3dd905de6afdd5a027", "score": "0.56953627", "text": "public void add(User user) {\n\t\taddOverlay(new UserOverlayItem(getMapView().getContext(), user));\n\t}", "title": "" }, { "docid": "d25dba3aa2ba95fbcb0450885f64de05", "score": "0.5674859", "text": "public void transportAddButtonAction(TravelType travelType, int distance) {\n try {\n CO2Response res = ClientApplication.sendAddTransportRequest(travelType, distance);\n AlertBox.display(\"By choosing to travel by: \" + travelType + \" you reduced CO2 by \"\n + res.getCO2Reduction() + \" grams. Good job!\", \"Success!\");\n } catch (RestClientException e) {\n AlertBox.display(\"An error occurred:\\n\" + e.getMessage(), \"Something went wrong\");\n }\n showMainMenu();\n }", "title": "" }, { "docid": "ab59f1ea1f0cbd322b2f743563193e69", "score": "0.56748146", "text": "public void putTourist(Tourist tourist){\n tourists.add(tourist);\n tourist.setInTravel(true);\n }", "title": "" }, { "docid": "cdf44d36ff128bfba1a6dc1e58210443", "score": "0.5673159", "text": "@Override\n\tpublic int add(User user) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "b80b0ddbda993662b249946ea298b7e0", "score": "0.5671831", "text": "void addUser(User newUser) {\t\t\n\t\taccounts.add(newUser);\n\t\tuserIndex = accounts.size()-1;\n\t\tcurrentUser = accounts.get(userIndex);\n\t\t\n\t\tview.getChoice().add(newUser.getName());\n\t\tview.getChoice().select(newUser.getName());\n\t\tview.getLblBalanceAmt().setText(Double.toString(newUser.getAcctBalance()));\t\t\n\t}", "title": "" }, { "docid": "0d8c5612fbc7fb642c220f101bd96783", "score": "0.56530005", "text": "@Transactional\n\tpublic void add(User user) {\n\t\tud.add(user);\n\t}", "title": "" }, { "docid": "ededf62d73be30fb579e088013b3bb0d", "score": "0.56403404", "text": "public void addNewUser(User user) {\n mDataBase.child(user.getUserID()).updateChildren(user.toMap());\n }", "title": "" }, { "docid": "f2cc1debbf964f8c81adee1677c15893", "score": "0.56320393", "text": "gov.nih.nlm.ncbi.www.SeqFeatDataDocument.SeqFeatData.User addNewUser();", "title": "" }, { "docid": "e20b5b1cd49a38a57243d002bc0c3cd8", "score": "0.560945", "text": "public String addTravelGuide(TravelGuide guide);", "title": "" }, { "docid": "bab7baf43d956f46b90a84ae524e78c8", "score": "0.55964535", "text": "public void addFriend(User user) {\n\t\tthymeLeafDAO.addFriend(user);\n\t}", "title": "" }, { "docid": "9acd7ad09665b9fb630996586e2f17cb", "score": "0.5596361", "text": "@Override\n\tpublic void create(UserVO vo) throws Exception {\n\t\tsession.insert(namespace + \".create\", vo);\n\t\t\n\t\tMap<String,Object> map = new HashMap<>();\n\t\tmap.put(\"uno\", vo.getUno());\n\t\tString split[] = vo.getLocation().split(\",\");\n\t\tfor(int i=0;i<split.length;i++) {\n\t\t\tsplit[i] = split[i].trim();\n\t\t}\n\t\tmap.put(\"locations\", split);\n\t\tsession.insert(namespace+\".addLocation\", map);\n\t}", "title": "" }, { "docid": "d1923a9a48d7b02833a0f7ddac3cc0c6", "score": "0.5590111", "text": "public void add(){\n System.out.println(\"UserDao.add---------\");\n }", "title": "" }, { "docid": "9e87bc6abd2c6a5de8ee3e315519c268", "score": "0.554353", "text": "public void addUser(User user) {\n\t\tusers.add(user);\n\t}", "title": "" }, { "docid": "3947efc0883a3c931ec5fde7c0602a50", "score": "0.5534888", "text": "@Override\n\tpublic void addUser(String user) {\n\t\t\n\t}", "title": "" }, { "docid": "df3acaf90a1adf29e7e929e4e7497aaf", "score": "0.553225", "text": "public void setAddUser(Long addUser) {\r\n this.addUser = addUser;\r\n }", "title": "" }, { "docid": "d72d55e80689c6f40cd885fa0a4822e0", "score": "0.551845", "text": "public void addUser(User user) {\n\t\tuserMapper.inser(user);\n\t}", "title": "" }, { "docid": "47ed3eb2db70fe79e91d8e07063f02df", "score": "0.55047315", "text": "@Transactional\r\n\tpublic void addUser(text t) throws Exception {\n\t\tuserdao.adduser(t);\r\n\t}", "title": "" }, { "docid": "fc878552af22ab5b5f88a18a4b86c2eb", "score": "0.55000085", "text": "public void addRestaurant(Restaurant r){\n\t\t\n\t}", "title": "" }, { "docid": "b0236fa13bf5fb4937acf070eb6e5da3", "score": "0.5486659", "text": "@Override\n\tpublic void addUser(User user) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "31d97d9aa758a543f37407ecd56b7fa7", "score": "0.54861844", "text": "@Override\n\tpublic void addUserinfo(Userinfo tt) {\n\t\tUserinfoDao.addUserinfo(tt);\n\t}", "title": "" }, { "docid": "4efd15ed7c6d29d9bbfd2a2f63f9f94d", "score": "0.5479019", "text": "void addUser(User user)\n {\n this.users.add(user);\n userMaster.add(user);\n }", "title": "" }, { "docid": "e6ebe9c0d496539bfd548305878f497a", "score": "0.54760146", "text": "void addDestination(Destination destination);", "title": "" }, { "docid": "fe8415cefd5e60143cbba9fed77ffc78", "score": "0.5454291", "text": "@Override\n\tpublic boolean add(User mUser) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5188d7a105e6fd3ab416875cc8890ad8", "score": "0.5421901", "text": "@Override\n public void clickOnAddAddress() {\n if (getView() != null) {\n Realm realm = Realm.getDefaultInstance();\n AddressRealm addressRealm;\n if (mAddressDTO == null) {\n addressRealm = new AddressRealm(getView().getUserAddress());\n int key;\n try {\n key = realm.where(AddressRealm.class).max(\"id\").intValue() + 1;\n } catch (Exception e) {\n key = 1;\n }\n addressRealm.setId(key);\n } else {\n addressRealm = new AddressRealm(mAddressDTO);\n }\n\n realm.executeTransaction(realm1 -> realm1.insertOrUpdate(addressRealm));\n realm.close();\n Flow.get(getView()).goBack();\n }\n }", "title": "" }, { "docid": "46fd308bf715d5e954e19773cae92d25", "score": "0.5419368", "text": "public void addUser(UserAccount newUser)\n\t{\n\t\tif(newUser == null)\n\t\t{\n\t\t\tSystem.out.println(\"Object is empty\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\tusers.add(newUser);\n\t\tif(fileWrite)\n\t\t{\n\t\t\toutputStream();\n\t\t}\n\t}", "title": "" }, { "docid": "ce6a643bc765744432403f273c634d01", "score": "0.5418319", "text": "private void addUser(UserWrapper user) {\n UserView userView = (UserView) userViews.get(numberOfUsers);\n userView.drawRetro();\n RotateTransition rotator = new RotateTransition(Duration.millis(500), userView);\n rotator.setAxis(Rotate.Y_AXIS);\n rotator.setFromAngle(0);\n rotator.setToAngle(90);\n rotator.setInterpolator(Interpolator.LINEAR);\n rotator.setCycleCount(1);\n rotator.play();\n rotator.setOnFinished(event -> {\n userView.drawUserCanvas(user);\n RotateTransition secondRotator = new RotateTransition(Duration.millis(500), userView);\n secondRotator.setAxis(Rotate.Y_AXIS);\n secondRotator.setFromAngle(270);\n secondRotator.setToAngle(360);\n secondRotator.setInterpolator(Interpolator.LINEAR);\n secondRotator.setCycleCount(1);\n secondRotator.play();\n });\n\n numberOfUsers++;\n }", "title": "" }, { "docid": "431352d375df4f2cf4d5a2898e55fb4c", "score": "0.541181", "text": "public void addRoute(Route r){\n this.list.add(r);\n }", "title": "" }, { "docid": "47e4cc4cb1fa2cc2c1c1cd60b43d8eb4", "score": "0.5407397", "text": "public void add(User user) {\n logger.debug(\"Adding new user\");\n // Retrieve session from Hibernate\n Session session = sessionFactory.getCurrentSession();\n // Save\n session.save(user);\n }", "title": "" }, { "docid": "4048b5acb046ec346629bc3c9ac574d5", "score": "0.54055434", "text": "public void addRoute(Route route){\n routes.addRoute(route);\n }", "title": "" }, { "docid": "f77fadd306436276a1576ae59166a2aa", "score": "0.54043335", "text": "@Override\n\tpublic boolean addUser(UserModel user) {\n\t\t//check if user is null\n\t\tif(user.equals(null))\n\t\t{\n\t\t\tSystem.out.println(\"Error in UsersBusinessService.addUser: User is null\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//use create method from data service and return bool\n\t\treturn service.create(user);\n\t}", "title": "" }, { "docid": "b729b0f79c10735878c8832b4ee27da3", "score": "0.5402156", "text": "@Override\n public int addUserInfo(UserInfo user) {\n\t return userDao.addUserInfo(user);\n }", "title": "" }, { "docid": "249c932647a7ffeb69971d6463f90b0c", "score": "0.5396759", "text": "void addHotel(HotelModel hotel);", "title": "" }, { "docid": "38559678a107f9b5c56539936c059081", "score": "0.5395106", "text": "public void add(User user){\n if(user.getLevel() ==null) user.setLevel(Level.BASIC);\n userDao.add(user);\n }", "title": "" }, { "docid": "0aa705f44f305a152674b0d3195cbfff", "score": "0.53946716", "text": "public void addUser(Doctor doctor) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_DOCTOR_NAME, doctor.getName());\n values.put(COLUMN_DOCTOR_EMAIL, doctor.getEmail());\n values.put(COLUMN_DOCTOR_PASSWORD, doctor.getPassword());\n\n // Inserting Row\n long v =db.insert(TABLE_DOCTOR, null, values);\n db.close();\n }", "title": "" }, { "docid": "8bfb75ddb7c71a9a35b793630430f40c", "score": "0.5391974", "text": "public void putNewUser(String name) {\r\n this.users.add(name);\r\n this.ui.onUserInRoomEnteredOrDisconnected(true);\r\n }", "title": "" }, { "docid": "ed14146c517cf33e2d18019463aa423e", "score": "0.53916746", "text": "@Transactional\r\n\t@Override\r\n\tpublic void addInfo(UserVO user) throws Exception {\n\t\tdao.addInfo(user);\r\n\t}", "title": "" }, { "docid": "5e7159e12a52ffc255842995e9ab6e23", "score": "0.53907675", "text": "@Override\n\tpublic UserDto addUser(UserDto user) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "01d6557a4c4b8fabb7745c50cd34ef01", "score": "0.538469", "text": "void newUser(String user)\n \t{\n \t\tlistModel.add(user);\n \t\tinvalidate();\n \t}", "title": "" }, { "docid": "41c493553a0474500ade2bdee260e72f", "score": "0.5383345", "text": "@Override\r\n\tpublic boolean addUser(User user) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "cc3d156c0c63a92f0b48f241116d061b", "score": "0.5380547", "text": "@Override\n\tpublic int add(User user) {\n\t\tcon = DBManager.getConnection();\n\t\tString sql = \"insert into t_user values (?,?,?,?)\";\n\t\t\n\t\ttry {\n\t\t\tps = con.prepareStatement(sql);\n\t\t\tps.setString(1, user.getUname());\n\t\t\tps.setString(2, user.getUpwd());\n\t\t\tps.setString(3, user.getEdu());\n\t\t\tps.setInt(4, user.getSex());\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tDBManager.close(ps, con);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "c0eea8f12498bcbe7abd73d9d4552d28", "score": "0.5380151", "text": "public void addUser(UserInfo a) {\n\t\tlist.add(a);\n\t}", "title": "" }, { "docid": "d102516a65a6c62725fca0897115b418", "score": "0.5376683", "text": "@Override\r\n\tpublic boolean add(User user) throws Exception {\n\t\tboolean flag = false;\r\n\t\tif(userMapper.add(user) > 0)\r\n\t\t\tflag = true;\r\n\t\treturn flag;\r\n\t}", "title": "" }, { "docid": "393637bde178bf2613014a7199a1be06", "score": "0.5375938", "text": "LocationDto addLocation(LocationDto locationDto);", "title": "" }, { "docid": "f4a247443c5f1990cdd329ea74893fdc", "score": "0.53727365", "text": "public void addUser(User user) {\n this.userListMap.put(user, new ArrayList<>());\n }", "title": "" }, { "docid": "80aaeadddca9349d63378adfc233c01a", "score": "0.53716046", "text": "@Override\n \tpublic IVehicle addRoadUser(\n \t\t\tVehicleFactory.VehicleType vehicleType, \n \t\t\tfloat drivenLaneDistance,\n \t\t\tILane lane, \n \t\t\tCharacter character, \n \t\t\tPhysics physics) throws Exception {\n \t\tIVehicle vehicle = VehicleFactory.createVehicle(vehicleType, lane, drivenLaneDistance);\n \t\t\n \t\tthis.createDriver(character, physics, vehicle);\n \t\t\n \t\treturn vehicle;\n \t}", "title": "" }, { "docid": "c42b76a2c1d398e8be267f157102f6fe", "score": "0.537121", "text": "public void addUser(UserRegisterDetails user){\n disposable.add(\n apiService.getUsersApi().createUser(user)\n .subscribeOn(Schedulers.newThread())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribeWith(new DisposableSingleObserver<UserRegisterDetails>() {\n @Override\n public void onSuccess(@io.reactivex.annotations.NonNull UserRegisterDetails createdUser) {\n setIsCreatedLiveData(OperationResponseModel.successfulResponse(\"Add\"));\n }\n @Override\n public void onError(@io.reactivex.annotations.NonNull Throwable e) {\n setIsCreatedLiveData(OperationResponseModel.failedResponse(\"Add\",e));\n e.printStackTrace();\n }\n })\n );\n }", "title": "" }, { "docid": "94382cf0a61f57f6da156d73ad193a22", "score": "0.5370868", "text": "public void AddTeleport(Teleport t) {\n t.SetInventory(this);\n teleports.add(t);\n }", "title": "" }, { "docid": "99686f50e07a939250afb30d9622c65e", "score": "0.5370157", "text": "@Override\n\tpublic UserBooking addUserBooking(UserBooking userBooking) {\n\t\treturn this.userService.save(userBooking);\n\t}", "title": "" }, { "docid": "18a89b7b7690b0039de7d6dfdabd69b4", "score": "0.5363016", "text": "@Transactional\n\t@Override\n\tpublic void addUser(User user) {\n\t\tdao.addUser(user);\n\t}", "title": "" }, { "docid": "0896be3cde242748552c1b7b7693f103", "score": "0.5353903", "text": "private void addNewuser() {\n String username = txtNewUserName.getText();\n String password = txtNewPassword.getText();\n User.Role role = (User.Role) cmbNewUserRole.getSelectedItem();\n\n if (!username.isEmpty() && !password.isEmpty()) {\n User userToInsert = new User();\n userToInsert.setUserName(username);\n userToInsert.setPassword(password);\n userToInsert.setRole(role);\n\n mc.userController.insertUser(userToInsert);\n\n loadAllUsers();\n refreshAllFields();\n\n } else {\n JOptionPane.showMessageDialog(this, \"Username or password canot be empty\");\n }\n }", "title": "" }, { "docid": "61da52c3107531f9a2ccdc5fa315360e", "score": "0.5351316", "text": "public boolean addUser(Usuario e) {return usuarios.add(e);}", "title": "" }, { "docid": "199820ef5199ccc610f3375eee01af79", "score": "0.5350203", "text": "private void addUser(String name, int amount) {\n \t\tSQLiteDatabase writable = db.getWritableDatabase();\n \t\tContentValues values = new ContentValues();\n \t\tvalues.put(NAME_PEOPLE, name);\n \t\tvalues.put(AMOUNT_PEOPLE, amount);\n \t\twritable.insertOrThrow(TABLE_NAME_PEOPLE, null, values);\n \t}", "title": "" }, { "docid": "195ed57a13dc7939da81cfd7a0da0dbb", "score": "0.53486407", "text": "@Override\n\t\tpublic void add(User user) {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "title": "" }, { "docid": "3e36d902dddffd5c39aaed6d7747f806", "score": "0.53425145", "text": "public void addVisto(String userName){\n vistoPor.add(userName);\n }", "title": "" }, { "docid": "969fb0c8c9c1aa69e80557d46f3be7ac", "score": "0.534242", "text": "@Override\n\tpublic boolean add(User user) {\n\t\tboolean flag = false;\n\t\tString sql = \"insert into user\"+\n\t\t\"(uid,tname,uname,upass,utype,ustate,uclass)\"+\n\t\t\t\t\"values(?,?,?,?,?,?,?);\";\t\t\n\t\tif(JdbcUtils.executeSQL(sql, user.getUid(),user.getTname(),user.getUname(),user.getUpass(),user.getUtype(),user.getUstate(),user.getUclass())>0)\n\t\t\tflag = true;\n\t\treturn flag;\n\t}", "title": "" }, { "docid": "6d62b82d371804773323818cb54847c7", "score": "0.5334879", "text": "public void enter(User user) {\n visitors.add(user);\n }", "title": "" }, { "docid": "087f3c1e32aa8aae78888c67ad8ccddb", "score": "0.5327021", "text": "private void AddPartner() {\n addNewLabel.setText(\"Please add the partner's name\");\n String name = textField.getText();\n addNewLabel.setText(\"Please add the number of years they've been with us\");\n int year = Integer.valueOf(textField.getText());\n addNewLabel.setText(\"How many events are we partnered for?\");\n int eventsAttended = Integer.valueOf(textField.getText());\n int memberID = generateNewID();\n addNewLabel.setText(\"Your partner has been added.\");\n Member userGenerated = new Member(name, year, eventsAttended, memberID);\n memberSet.add(userGenerated);\n }", "title": "" }, { "docid": "ad1b25fa08671ca51f24dad36b81a1ae", "score": "0.53256434", "text": "@Override\n\tpublic int addPilot(Pilote add) {\n\t\ttry {\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(add);\n\t\t\tsession.getTransaction().commit();\n\t\t\treturn 1;\n\t\t} catch (HibernateException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "7f27f721853250db0b53b063f90db403", "score": "0.5317429", "text": "@Override\r\n\tpublic void addUser(User user) {\n\t\tuserMapper.addUser(user);\r\n\t\tuser.setUserId(userMapper.getUsers(user).getUserId());\r\n\t\tuserMapper.addUInfo(user);\r\n\t\tuserMapper.addUserInfo(user.getUserId(), user.getUserId());\r\n\t}", "title": "" }, { "docid": "cdbb5d0f8b1e1d52748b0fe8ebff9359", "score": "0.5314152", "text": "public void addNewUser(String name) {\n users.add(new User(name));\n }", "title": "" }, { "docid": "51317e77d2311c0783c7b11288bb2a57", "score": "0.53118664", "text": "public void addFlight(Flight flight){\n flights.add(flight);\n }", "title": "" }, { "docid": "925006b3e31211b5f45a4409a715f1ad", "score": "0.5310538", "text": "@POST(\"user/add\")\n Call<FrugalistResponse.User> addUser(\n @Header(\"Authorization\") String auth,\n @Query(\"id\") String id,\n @Query(\"name\") String name\n );", "title": "" } ]
572e1c5ea64505670a5b065869d42bdb
This method is used to print log after returning arguments from method execution
[ { "docid": "50f7611d239571c651bcc970e378f1ef", "score": "0.63522536", "text": "public void logAfterReturningMethod(JoinPoint jointPoint, Object result) {\n\n\t\tStringBuffer logStr = new StringBuffer();\n\n\t\tlogStr.append(\"\\nAOP calling Returning Method: \\nMethod Full Signature : \"\n\t\t\t\t+ jointPoint.getSignature().toLongString()\n\t\t\t\t+ \"\\nName : \"\n\t\t\t\t+ jointPoint.getSignature().getName());\n\n\t\t/**\n\t\t * Note: Assumption application all dao's are returning lists other than\n\t\t * any object/primitive type\n\t\t */\n\n\t\tif (result != null) {\n\t\t\tlogStr.append(\"\\nMethod \");\n\n\t\t\tif (result instanceof List<?>) {\n\t\t\t\tList<?> list = (List<?>) result;\n\n\t\t\t\tif (list != null)\n\t\t\t\t\tlogStr.append(\"Return value is a List & size is: \"\n\t\t\t\t\t\t\t+ list.size());\n\t\t\t} else {\n\t\t\t\tlogStr.append(\"Returned value is:\" + result);\n\t\t\t}\n\t\t}\n\n\t\tlogStr.append(SEPERATOR);\n\n\t\tlog.debug(logStr.toString());\n\t}", "title": "" } ]
[ { "docid": "4dfb18d8064968635efca206819dba0d", "score": "0.7378849", "text": "protected abstract String log ();", "title": "" }, { "docid": "c153d64199958cc134e522efa91c9b5f", "score": "0.6993935", "text": "public void printLog() ;", "title": "" }, { "docid": "6607574824604d3a053fe2fc82a5fbc1", "score": "0.6972875", "text": "public void log() {}", "title": "" }, { "docid": "350c5d2986006f8e8917040b8c21dbe6", "score": "0.6770594", "text": "void log();", "title": "" }, { "docid": "513da7c6ba315cb1ddd5b6ffd90c6628", "score": "0.6671922", "text": "public void log() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5418ad6cce764b1a822a980aeff015cf", "score": "0.6586142", "text": "@Override\n\tpublic void afterReturning(Object object, Method method, Object[] args, Object target) throws Throwable {\n\t\tlogger.log(Level.INFO, args[0] + \" ÉóºËÊý¾ÝÍê³É¡£¡£¡£\");\n\t}", "title": "" }, { "docid": "380beabee3c614309e0a308030518b30", "score": "0.6391623", "text": "Log() { }", "title": "" }, { "docid": "ccbbbc0e383165591035ddd178b784e2", "score": "0.6356296", "text": "private void printlog() {\r\n log.printLog();\r\n }", "title": "" }, { "docid": "e129914bc4156fa7b63ac6072f8c6038", "score": "0.63391155", "text": "private void logParameterEntry(String arg0, Serializable arg1) {\n\t\tSystem.out.println(\"logged\");\n\t}", "title": "" }, { "docid": "0341b32413ed86866d9ecef1efdf9e3d", "score": "0.610504", "text": "String getLog();", "title": "" }, { "docid": "37a22f0036bed1b8f8033b4dd349775f", "score": "0.5972874", "text": "protected String printData() {\n return this.log.toString();\n }", "title": "" }, { "docid": "c610953d2cb3caaffca686a2aac0325c", "score": "0.5938511", "text": "@Override\n public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\n System.out.println(System.currentTimeMillis());\n // logging ......\n\n Object result = method.invoke(target, args);\n\n System.out.println(System.currentTimeMillis());\n // logging ......\n\n return result;\n }", "title": "" }, { "docid": "0951b67227bb7d331dbb1368aedb1af9", "score": "0.59328836", "text": "@Override\n public String getLogs() {\n return \"Alex\";\n }", "title": "" }, { "docid": "5f5910e5da6f09a713b0a47158bb30ce", "score": "0.59322876", "text": "public void DataLog(){\n }", "title": "" }, { "docid": "a09c085465250c6919943199ee6fee56", "score": "0.5920686", "text": "private void log() {\n\t\tSystem.out.println(\"____________\");\r\n\t\tbot.getStrategy().log();\r\n\t}", "title": "" }, { "docid": "d96adf310b90ae61812d51c2eb8075fd", "score": "0.5911797", "text": "@Override\r\n\tpublic String logging() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4de525e3fba776ebb255e5a641939af7", "score": "0.5904387", "text": "String getDebugArgs();", "title": "" }, { "docid": "cef8c5efc9b3f0858a9d907e6ca70f78", "score": "0.5893543", "text": "String logLevel(ExecutableElement method);", "title": "" }, { "docid": "952354ab6bdc670694d91bf01f718fbe", "score": "0.5893337", "text": "private static void log(String message) {\n }", "title": "" }, { "docid": "bec95c62c218710523e8e06d54bbaaad", "score": "0.58719337", "text": "public void logInfo(String str);", "title": "" }, { "docid": "6e899f406c999a44db792b8896e950bc", "score": "0.58698976", "text": "public void log(String string);", "title": "" }, { "docid": "b4eacc9b64705d0c6c54c6cbd583cfe5", "score": "0.58682394", "text": "public void writeLog();", "title": "" }, { "docid": "39d3b23b76a874d5c810f33474aaf34b", "score": "0.58164257", "text": "public void hookSystemLog(View view) {\n // 参数含义: Java类,hooke method name, param1, param2..., XC_MethodReplacement()\n DexposedBridge.findAndHookMethod(Log.class, \"e\", String.class, String.class, new XC_MethodReplacement() {\n @Override\n protected Object replaceHookedMethod(MethodHookParam param) throws Throwable {\n String tag = (String) param.args[0]; // 原函数的第1个参数\n String msg = (String) param.args[1]; // 原函数的第2个参数\n textView.append(tag + \"::::\" + msg + \"\\n\");\n // 原函数的返回值,除非原函数返回值类型为void,否则不能省略或者返回null\n return new Integer(1);\n }\n });\n }", "title": "" }, { "docid": "e7f0fce1a3e18f9ab275fe3ba9c69f46", "score": "0.58052254", "text": "protected void logResult(@Nonnull final SignatureSigningParameters params) {\n if (log.isDebugEnabled()) {\n log.debug(\"Resolved SignatureSigningParameters:\");\n \n final Key signingKey = CredentialSupport.extractSigningKey(params.getSigningCredential());\n if (signingKey != null) {\n log.debug(\"\\tSigning credential with key algorithm: {}\", signingKey.getAlgorithm());\n } else {\n log.debug(\"\\tSigning credential: null\"); \n }\n \n log.debug(\"\\tSignature algorithm URI: {}\", params.getSignatureAlgorithm()); \n \n log.debug(\"\\tSignature KeyInfoGenerator: {}\", params.getKeyInfoGenerator() != null ? \"present\" : \"null\");\n \n log.debug(\"\\tReference digest method algorithm URI: {}\", params.getSignatureReferenceDigestMethod()); \n log.debug(\"\\tReference canonicalization algorithm URI: {}\", \n params.getSignatureReferenceCanonicalizationAlgorithm()); \n \n log.debug(\"\\tCanonicalization algorithm URI: {}\", params.getSignatureCanonicalizationAlgorithm()); \n log.debug(\"\\tHMAC output length: {}\", params.getSignatureHMACOutputLength()); \n }\n }", "title": "" }, { "docid": "2680eb462001862cfa3ab3e774ff2001", "score": "0.5800679", "text": "public void log() {\n\t\tlog(\"\");\n\t}", "title": "" }, { "docid": "722b098e56fb84055c2e909074c5e38f", "score": "0.58004683", "text": "@Override\n public void log(String message) {\n }", "title": "" }, { "docid": "837e8ba160e16a4e9fed9a9a4a21d0b7", "score": "0.5797152", "text": "@Override\n protected void dbg(String msg){\n System.out.println(msg);\n }", "title": "" }, { "docid": "8a9674eea8600f6af2698ef5ad0ff5f3", "score": "0.572383", "text": "private void log( String message )\n\t{\n\t\tSystem.out.println( \"BuilderFederate : \" + message );\n\t}", "title": "" }, { "docid": "7a673d09e1340d7e37d25901932e40d8", "score": "0.57216156", "text": "public void logAfterMethod(JoinPoint jointPoint) {\n\n\t\tStringBuffer logStr = new StringBuffer();\n\n\t\tlogStr.append(\"\\nInvoking After Method: \\nMethod Full Signature : \"\n\t\t\t\t+ jointPoint.getSignature().toLongString() + \"\\nName : \"\n\t\t\t\t+ jointPoint.getSignature().getName() + SEPERATOR);\n\n\t\tlog.debug(logStr.toString());\n\t}", "title": "" }, { "docid": "c7452c01a84ab5367489d69b3c8f2858", "score": "0.5710478", "text": "@Override\n public void logInvocationReport(StatsSnapshot stats) {}", "title": "" }, { "docid": "4066f75f3509292083209336037adace", "score": "0.5709568", "text": "void log(EgymLogRecord logRecord);", "title": "" }, { "docid": "a62b1c734f3d189f632c7ac97b21eadc", "score": "0.57075405", "text": "private void logDebug(String msg, Object... args) {\n if (requestId != null && log.isDebugEnabled()) {\n log.debug(requestId + msg, args);\n }\n }", "title": "" }, { "docid": "205195cdc7262c038ef5891bd8c120d4", "score": "0.5699512", "text": "public void log(LogRecord logRecord);", "title": "" }, { "docid": "4e316746980a2703781250d1e01dce39", "score": "0.5691551", "text": "public void afterLogonSuccess(){\n\n\t}", "title": "" }, { "docid": "e3af1f4f47e1d6fad769cf5e6e89e4c8", "score": "0.569041", "text": "private void log(String msg) {\n System.out.println(TAG + \" - \" + msg);\n }", "title": "" }, { "docid": "f462c3d19b7d15d2b3e458ab318795d7", "score": "0.5678698", "text": "public void logBeforeMethod(JoinPoint jointPoint) {\n\t\tStringBuffer logStr = new StringBuffer();\n\n\t\tlogStr.append(\"\\nInvoking Before Method: \\nMethod Full Signature : \"\n\t\t\t\t+ jointPoint.getSignature().toLongString() + \"\\nName : \"\n\t\t\t\t+ jointPoint.getSignature().getName()\n\t\t\t\t+ \"\\nArguments Passed are :\");\n\n\t\tfor (Object arg : jointPoint.getArgs()) {\n\n\t\t\tif (arg != null)\n\t\t\t\tlogStr.append(\" \" + arg.toString());\n\t\t}\n\n\t\tlogStr.append(SEPERATOR);\n\n\t\tlog.debug(logStr.toString());\n\t}", "title": "" }, { "docid": "56ac735e95d3d9443816cd98e56f3770", "score": "0.5678363", "text": "@Override\r\n\tpublic void excute(Object... args) {\n\r\n\t}", "title": "" }, { "docid": "10d8c4ed59dfd5bd28f65a47605b0dfd", "score": "0.5675759", "text": "@Override\n public void updateLog()\n {\n\n }", "title": "" }, { "docid": "4d3326ad059535dd6baf8e11feaf6840", "score": "0.5669238", "text": "private static void printLogs(String webUrl, String reqParam, String method) {\n if (ENABLE_LOG) {\n char[] chars = reqParam.toCharArray();\n String reqParameter = \"\";\n for (char aChar : chars) {\n if ('&' == aChar) {\n reqParameter += \"\\n\";\n } else {\n reqParameter += aChar;\n }\n }\n Log.e(\"Web URl ==>\", String.valueOf(webUrl));\n Log.e(\"Method ==>\", String.valueOf(method));\n Log.e(\"Request Parameters ==>>\", String.valueOf(reqParameter));\n }\n }", "title": "" }, { "docid": "f846ca16dff3668ff97d7a3d2f753e76", "score": "0.5651817", "text": "LoggingRequest loggingRequest();", "title": "" }, { "docid": "384dacf7c6724b830285f67e711fc838", "score": "0.5639174", "text": "@Override\r\n\tpublic Object invoke(MethodInvocation mi) throws Throwable {\n\t\tString name = (String)mi.getArguments()[0];\r\n\t\tSystem.out.println(name + \" around before...\");\r\n\t\tObject obj = mi.proceed();\r\n\t\t//Object obj = null;\r\n\t\tSystem.out.println(name+ \" around after...\");\r\n\t\treturn obj;\r\n\t}", "title": "" }, { "docid": "9bc6b7bf717b2fc5a3b7900106d695ff", "score": "0.5633294", "text": "public Log getLog();", "title": "" }, { "docid": "ebc114129b546b42a55b79615d9de9c7", "score": "0.56330746", "text": "void log(String line);", "title": "" }, { "docid": "46306338ab936f6f9b34efc5b2795035", "score": "0.563047", "text": "private void constructLog() {\r\n historyString = new String(\"Convert4Dto3D()\\n\");\r\n }", "title": "" }, { "docid": "d66b31ae1faca9f001c0b02b299dc334", "score": "0.5628313", "text": "public java.lang.String getArg0(){\n return localArg0;\n }", "title": "" }, { "docid": "d66b31ae1faca9f001c0b02b299dc334", "score": "0.5628313", "text": "public java.lang.String getArg0(){\n return localArg0;\n }", "title": "" }, { "docid": "b23ec553f40aff96af68a5cb555ff7cb", "score": "0.5619101", "text": "public LogTarget info();", "title": "" }, { "docid": "be29e0165e9b5874aec938e6877e8c54", "score": "0.5618191", "text": "public abstract String getArgs();", "title": "" }, { "docid": "d96393f62c023765f44841e8cde53004", "score": "0.5614666", "text": "@Override\n\tpublic void logInfo() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"(#iteration=\");\n\t\tsb.append(iteration);\n\t\tsb.append(\"): miu=\");\n\t\tsb.append(miu);\n\t\tsb.append(\",sigmaSqrt=\");\n\t\tsb.append(sigmaSqrt);\n\t\tsb.append(\",logLikelihood=\");\n\t\tsb.append(logLikelihood);\n\t\t// for (int i = 0; i < PIs.length; i++) {\n\t\t// sb.append(\"\\t\");\n\t\t// sb.append(PIs[i]);\n\t\t// }\n\t\tSystem.out.println(sb.toString());\n\t}", "title": "" }, { "docid": "5e4aae3570a56975b76681b78c7ddcf6", "score": "0.5613395", "text": "public static void\npostInfo(String methodName, String formatString )\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoDebugError error = new SoDebugError();\n String str = new String();\n\n // Same stuff as in base class\n// char buf[10000];\n// va_list ap;\n//\n// va_start(ap, formatString);\n// vsprintf(buf, formatString, ap);\n// va_end(ap);\n\n str = \"Inventor: in \";\n str += methodName;\n str += \"(): \";\n //str += buf;\n str += formatString;\n\n error.severity = Severity.INFO;\n error.setDebugString(str/*.getString()*/);\n error.handleError();\n}", "title": "" }, { "docid": "c5e4bd6b477767bb464d149178b3003c", "score": "0.5596447", "text": "@Override\n\t\tnative void logImpl(int level, String name, String msg);", "title": "" }, { "docid": "a13f0f0c0fb2aaf97a3b49cf4f01eb87", "score": "0.5591884", "text": "@Around(\"@annotation(LogExecutionTime)\")\n public Object around(ProceedingJoinPoint joinPoint) throws Throwable {\n\n logger.info(\"Lets find out if it actually logs \");\n Object result =null;\n try {\n result =joinPoint.proceed();\n return result;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return result;\n }", "title": "" }, { "docid": "0aa2f0d018c072447ab65e90739cdc87", "score": "0.5571435", "text": "public void printCurrentParameters() {\n\tLog.d(DEBUG_TAG, \"Current parameters: \"\n\t\t\t+ current_parameters.toString());\n}", "title": "" }, { "docid": "801509fa5d89155d1d8af750eef36836", "score": "0.5569736", "text": "public LogTarget debug();", "title": "" }, { "docid": "ad033db85351e6da9088b739c4e19462", "score": "0.55646944", "text": "@Override\r\n\tpublic void internal_invoke(Object param)\r\n\t{\n\t\tSystem.out.println(\"Batch command: [\" + param.toString() + \"]\");\r\n\t}", "title": "" }, { "docid": "4694e0b15a5c0ed4f6c4d8af395151a1", "score": "0.5557868", "text": "public void logDebug(String str);", "title": "" }, { "docid": "3b6040eaef301dfab220f7ba3afd0988", "score": "0.5553413", "text": "private static void dolog(String... args) {\n if (args.length != 1) {\n System.out.println(\"Incorrect operands.\");\n exit(0);\n }\n Gitlet structure = new Gitlet(true);\n structure.getBranches(branchlocale);\n Branch active = structure.getactiveBranch();\n Commit curr = active.pointer();\n while (curr != null) {\n System.out.println(\"===\");\n System.out.println(\"commit \" + curr.getsha());\n if (curr.getmm() != null) {\n System.out.println(\"Merge: \" + curr.getmerges());\n System.out.println(curr.getdate());\n System.out.println(curr.getmessage());\n } else {\n System.out.println(curr.getdate());\n System.out.println(curr.getmessage());\n }\n System.out.println(\"\");\n curr = curr.getparent();\n }\n\n }", "title": "" }, { "docid": "99bd8742813ca0780aa513ab74af16bc", "score": "0.55469066", "text": "public void printStackTrace () {\n }", "title": "" }, { "docid": "220c8b30371f7be026ff62ff98e6633c", "score": "0.5544048", "text": "void handleLogBloc();", "title": "" }, { "docid": "75c1b79a7b201427d6a005d82ed24267", "score": "0.5517572", "text": "public void writeLogToInfo();", "title": "" }, { "docid": "d1e793da6adcd8c73e1f4597a5b8941b", "score": "0.55091935", "text": "private static void log(String str) {\n System.out.println(str);\n }", "title": "" }, { "docid": "d1e793da6adcd8c73e1f4597a5b8941b", "score": "0.55091935", "text": "private static void log(String str) {\n System.out.println(str);\n }", "title": "" }, { "docid": "d1e793da6adcd8c73e1f4597a5b8941b", "score": "0.55091935", "text": "private static void log(String str) {\n System.out.println(str);\n }", "title": "" }, { "docid": "cd9ceacca804e93e66a518aa10d01079", "score": "0.5507762", "text": "public static void main(String[] args) {\n\n int age = 0;\n try{\n logger.debug(\"1111\");\n age = 10/0;\n logger.debug(\"2222\");\n }catch (Exception e){\n logger.error(e.getMessage(),e.getCause());\n //throw\n }\n }", "title": "" }, { "docid": "93eadef7049125d291c1debed2d58e65", "score": "0.54954946", "text": "public void log(){\n \tdrivetrain.log();\n \t//shooter.log();\n \t//basket.log();\n }", "title": "" }, { "docid": "d039b82edb483895df036872dc9bd652", "score": "0.5495457", "text": "public LogTarget trace();", "title": "" }, { "docid": "22a5a06f6edd35786c7bdacee8e110c5", "score": "0.5487131", "text": "@Override\n\tpublic String getLog() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "717841db3b6bf08545f013c83f771741", "score": "0.54824156", "text": "public static void main(String[] args) {\n\t\tLogger.log(\"hello world\");\r\n\t\tLogger.log(\"Test\");\r\n\t}", "title": "" }, { "docid": "89c67d43da33e2b331616c8e051cbefb", "score": "0.5482374", "text": "private void printTestResults(ITestResult result) {\n\n Reporter.log(\"Test Method resides in \" + result.getTestClass().getName(), true);\n\n if (result.getParameters().length != 0) {\n\n String params = null;\n\n for (Object parameter : result.getParameters()) {\n\n params += parameter.toString() + \",\";\n\n }\n\n Reporter.log(\"Test Method had the following parameters : \" + params, true);\n\n }\n\n String status = null;\n\n switch (result.getStatus()) {\n\n case ITestResult.SUCCESS:\n\n status = \"Pass\";\n\n break;\n\n case ITestResult.FAILURE:\n\n status = \"Failed\";\n\n break;\n\n case ITestResult.SKIP:\n\n status = \"Skipped\";\n\n }\n\n Reporter.log(\"Test Status: \" + status, true);\n\n }", "title": "" }, { "docid": "dbaa230c6b86deac2d5d396233d3d1e1", "score": "0.5467787", "text": "private void log(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.server.sip.SipSessionListenerProxy.log(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionListenerProxy.log(java.lang.String):void\");\n }", "title": "" }, { "docid": "c73d6a2eb751e1d16e1c5a341c53db4d", "score": "0.54655915", "text": "private static void printArgumentResults() {\r\n\t\tSystem.out.println(\"Starting to Execute FrankenArticleGenerator\\n\");\r\n\t\tSystem.out.println(\"Number of requested articles: \" + nbRequestedArticles);\r\n\t\tSystem.out.println(\"Input Folder Paths: \");\r\n\t\tSystem.out.println(\"\\t Input TEI Articles Path: \" + inputTeiFolderPath);\r\n\t\tSystem.out.println(\"Output Folder Paths: \");\r\n\t\tSystem.out.println(\"\\t Output Synthetic TEI Articles Path: \" + teiOutputFolderPath);\r\n\t\tSystem.out.println(\"\\t Output Synthetic PDF Articles Path: \" + pdfOutputFolderPath);\r\n\t}", "title": "" }, { "docid": "3618587a7c2a5b7a6ddb29313823dbdc", "score": "0.54632556", "text": "abstract void logImpl(int level, String name, String msg);", "title": "" }, { "docid": "e31ff97460dd6d7c3f6e02bb63e0d5f2", "score": "0.5461602", "text": "public void printLog(PrintStream out) ;", "title": "" }, { "docid": "b6aaf590855c02975edfa814b253c1de", "score": "0.5460313", "text": "private void logCompletedPattern() {\n }", "title": "" }, { "docid": "32c60c45251a710ad15cbded2832ab46", "score": "0.5452787", "text": "private String returnValueDebugString(final Method method, final Object returnValue) {\n final String value = method.getReturnType()\n .getName()\n .equals(\"void\") ? \"\" : \"=\" + (returnValue == null ? \"null\" : returnValue.toString());\n return method.getReturnType()\n .getName() + value + \"\\n\";\n }", "title": "" }, { "docid": "1172feafab5dbd79fb4ed82e365e1736", "score": "0.54519016", "text": "public java.lang.String getArgs0(){\n return localArgs0;\n }", "title": "" }, { "docid": "1172feafab5dbd79fb4ed82e365e1736", "score": "0.54519016", "text": "public java.lang.String getArgs0(){\n return localArgs0;\n }", "title": "" }, { "docid": "1172feafab5dbd79fb4ed82e365e1736", "score": "0.54519016", "text": "public java.lang.String getArgs0(){\n return localArgs0;\n }", "title": "" }, { "docid": "1172feafab5dbd79fb4ed82e365e1736", "score": "0.54519016", "text": "public java.lang.String getArgs0(){\n return localArgs0;\n }", "title": "" }, { "docid": "61f43ea9a09b6a0e7b93238f3b3abfdc", "score": "0.54428375", "text": "public void logInfo(Object... args) {\n LogUtils.logInfo(logger, args);\n }", "title": "" }, { "docid": "d530f13d0312249f0f30b5b311b8f069", "score": "0.54398686", "text": "@Override\n public void run() {\n try {\n Toast.makeText(sdkJavaActivity, loginfo, Toast.LENGTH_SHORT).show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "eb435d210efa42b90f77066470f30438", "score": "0.54320484", "text": "private void constructLog() {\r\n historyString = new String(\"Eye Segmentation()\\n\");\r\n }", "title": "" }, { "docid": "38234370a79e90bbf3673fba9baed010", "score": "0.5431793", "text": "private void log(String str){\n \n Log.e(\"$$$$$$$$$$\", str);\n }", "title": "" }, { "docid": "4fe9a6dfbc288d5ba3c754103710f9b6", "score": "0.54247385", "text": "@Override\r\n\tpublic void debug(String fmt, Object... args) {\n\t\t\r\n\t}", "title": "" }, { "docid": "52f76dc729c59b4c07a9721917dca4c1", "score": "0.5424665", "text": "public static void log() {\n System.out.println(sCurrent.toJson());\n }", "title": "" }, { "docid": "37da3a922f947ee67acba267c8f10954", "score": "0.5423501", "text": "public static void logd(String log) {\n }", "title": "" }, { "docid": "c5416de64426f0b719df4a897f21c441", "score": "0.54224175", "text": "private static void doSomething(String ret) {\n System.out.println(ret);\n }", "title": "" }, { "docid": "a66d6f9ce002c604e4566680876d285a", "score": "0.5416152", "text": "@Override\r\n\tpublic void info(String fmt, Object... args) {\n\t\t\r\n\t}", "title": "" }, { "docid": "e73dd5663b0e34a83f1fca5b4892a524", "score": "0.54143155", "text": "@Override\n\tpublic void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {\n\t\tSystem.out.println(\"HijackAfterMethod : After method hijacked!\");\n\t}", "title": "" }, { "docid": "779083e98dd71f2717001fe452adea24", "score": "0.54092795", "text": "@AroundInvoke\n\tpublic Object intercept(InvocationContext ic) throws Exception {\n\t\tlog.entering(ic.getTarget().getClass().getName(), ic.getMethod().getName());\n\t\tlog.log(Level.INFO, \">>> user {0} invoced the method {1}.{2}({3})\",\n\t\t\t\tnew Object[] { \"Anonimous\", ic.getTarget().getClass().getName(), ic.getMethod().getName(),\n\t\t\t\t\t\tArrays.deepToString(ic.getParameters()) });\n\t\ttry {\n\t\t\treturn ic.proceed();\n\t\t} finally {\n\t\t\tlog.exiting(ic.getTarget().getClass().getName(), ic.getMethod().getName());\n\t\t\tlog.info(() -> \"<<< \" + ic.getTarget().getClass().getName() + \"-\" + ic.getMethod().getName());\n\t\t}\n\t}", "title": "" }, { "docid": "76ffc4898e6ab8eda839d24c48dc39af", "score": "0.54058397", "text": "void log(java.lang.String message);", "title": "" }, { "docid": "d965db31b5679dcf0d24adc1de08d372", "score": "0.5405188", "text": "public void debug(Object caller, Object message);", "title": "" }, { "docid": "eb3153606e7a3062df5a8f5ac83e144f", "score": "0.54051244", "text": "protected void logEvent() {\n LOG.debug(getDescription());\n }", "title": "" }, { "docid": "ebe4f2347170c6a411796dbd26f63767", "score": "0.5403911", "text": "public interface LogCalllback {\n void show(String str);\n}", "title": "" }, { "docid": "00b1fa19c5a53e3b83b91a0df9ac53c2", "score": "0.5403289", "text": "public String getLog(){\n //\n return log.append(\"\\n\").toString();\n }", "title": "" }, { "docid": "cf410685e33387aeeb887a8cbfa212d4", "score": "0.5396767", "text": "public static void log(String str) {\n System.out.println(str);\n }", "title": "" }, { "docid": "76ff8a08e5bccef9841897042b61aa65", "score": "0.5389705", "text": "@Override\n public void accept(StackWalker.StackFrame stackFrame) {\n System.out.println(stackFrame);\n }", "title": "" }, { "docid": "d35ffc216052bc4dc7e9b17103e711cf", "score": "0.5387396", "text": "private String classMethodDebugString(final ProceedingJoinPoint call, final Method method) {\n return \"Class: \" + call.getTarget()\n .getClass()\n .getName() + \"\\nMethodName: \" + method.getName();\n }", "title": "" }, { "docid": "3dc2945afcbb36c8afcfaa723064cce0", "score": "0.5383479", "text": "public static void printInfo (){\n\n }", "title": "" }, { "docid": "a3e5018b8811a6f6f40587a75862e720", "score": "0.5383204", "text": "@Override\n\tpublic void Log(String Log) {\n\t\tSystem.out.println(createLogs(Log)); \n\t}", "title": "" } ]
8de0e87008ed4f2fbefa58fc3d1c9208
NoteManager noteManager = NoteManager.getInstance(context); noteManager.delete(note.getId()); notes.remove(note); notifyDataSetChanged(); return true;
[ { "docid": "2aa82d296b6de4f610a04d605db187e8", "score": "0.74345773", "text": "@Override\n public boolean onLongClick(View view) {\n new AlertDialog.Builder(context)\n .setTitle(\"Delete\")\n .setMessage(\"Are you sure to delete this note?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n NoteManager.getInstance(context).delete(note.getId());\n notes.remove(note);\n notifyDataSetChanged();\n }\n }).setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n }).show();\n return true;\n }", "title": "" } ]
[ { "docid": "2b4df10bddc4e7f112ba1abf55766042", "score": "0.77664155", "text": "@Override\n public void onClick(View v) {\n \t\tnotesService.removeNote(note.getId());\n getLoaderManager().restartLoader(0, null, NoteManagerPersonalNotesFragment.this);\n \tmAdapter.notifyDataSetChanged();\n mQuickAction.dismiss();\n }", "title": "" }, { "docid": "a0503d5381482f3e5ed1f79ebff652e5", "score": "0.7695249", "text": "private void deleteNote() {\n Boolean result = databaseHelper.deleteNote(note);\n databaseHelper.close();\n if (result) {\n Toast.makeText(NoteActivity.this, getResources().getString(R.string.alert_delete), Toast.LENGTH_LONG).show();\n // Stop alarm service\n stopService(new Intent(this,AlarmService.class));\n // start alarm service\n startService(new Intent(this,AlarmService.class));\n // Close activity\n finish();\n }\n }", "title": "" }, { "docid": "3301d961af587e9c93dd3025b5bed48b", "score": "0.7392896", "text": "public void deleteNote(){\n //The database is not finished loading yet\n if (theDB == null) {\n Toast.makeText(this, \"Try again in a few seconds.\", Toast.LENGTH_SHORT).show();\n }\n //This is a new note that has never been saved\n else if(date == null){\n Toast.makeText(this, \"Note deleted\", Toast.LENGTH_SHORT).show();\n finish();\n }\n //This is a loaded note\n else{\n String selection = \"date = \" + date;\n theDB.delete(\"notes\", selection, null);\n\n //Remove loaded note\n date = null;\n\n Toast.makeText(this, \"Note deleted\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }", "title": "" }, { "docid": "f25108a827864aa0e0ec487cb3df790f", "score": "0.7390994", "text": "private final void deleteNote() {\n if (mCursor != null) {\n mCursor.close();\n mCursor = null;\n getContentResolver().delete(mUri, null, null);\n mText.setText(\"\");\n }\n }", "title": "" }, { "docid": "fc18e9dd4837be76b44867d84f9e780b", "score": "0.72870094", "text": "@Override\n public void onDeleteNoteClicked(Note note) {\n mNoteDao.delete(note);\n //delete note from adapter\n mNotesAdapter.deleteNoteById(note.getId());\n }", "title": "" }, { "docid": "aee2b09c565a782237bf42d913e4f9c5", "score": "0.71982914", "text": "public void deleteItem()\n {\n noteListener.handleDeleteItem(getSnapshots().getSnapshot(getAdapterPosition()));\n }", "title": "" }, { "docid": "0ddbe6dc1354c41db6dc5b2d6e21bd92", "score": "0.71595794", "text": "int deleteByPrimaryKey(String noteId);", "title": "" }, { "docid": "6fa0d16a03993ddb568e7c394bbc3d7b", "score": "0.7149171", "text": "@Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, final int position, long id) {\n new AlertDialog.Builder(Notebook.this)\n .setIcon(android.R.drawable.ic_delete)\n .setTitle(\"Delete Note\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n notes.remove(position);\n noteAdapter.notifyDataSetChanged();\n try {\n sharedPreferences.edit().putString(\"notes\", NotebookSerializer.serialize(Notebook.notes)).apply();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n return true;\n }", "title": "" }, { "docid": "faede83ff4c33126655e85e81db20154", "score": "0.7128132", "text": "public void cancelNote_button(View view) {\n if (noteId == -1) {\n\n notesList.remove(notesList.size() - 1);\n arrayAdapter.notifyDataSetChanged();\n\n notesAddressList.remove(notesAddressList.size() - 1);\n arrayAdapter.notifyDataSetChanged();\n\n notesCalenderList.remove(notesCalenderList.size() - 1);\n arrayAdapter.notifyDataSetChanged();\n\n }\n\n if (android.os.Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP) {\n Intent in = new Intent(AddAndEditNoteActivity.this, ListNotesActivity.class);\n startActivity(in);\n }\n finish();\n }", "title": "" }, { "docid": "0d0af6d1212061de937710bc70446b78", "score": "0.7088972", "text": "void deleteNote(Notes toBeDeleted);", "title": "" }, { "docid": "73dd81c4e069ae7e0942bd362e55052c", "score": "0.6897672", "text": "@Override\r\n public void removeNotes(List<Currency> noteList) {\n\r\n }", "title": "" }, { "docid": "089405809e20a769af1afdd0e868f3d4", "score": "0.689463", "text": "public void onPositiveClick(){\n deleteNote();\n }", "title": "" }, { "docid": "4ab8cd32a50ad9e69eb0378f8b1b2a73", "score": "0.68397546", "text": "public boolean deleteNote(Activity activity, long id) {\n ContentResolver cr = activity.getContentResolver();\n int quantity = cr.delete(Uri.withAppendedPath(Note.kContentURI, \"id/\"+id), null, null);\n Log.v(kTag, \"Deleted \"+ quantity +\" note(s)\");\n return true;\n }", "title": "" }, { "docid": "e38b96d336ebeec4f624619b4e369f84", "score": "0.68378687", "text": "private void deleteAllNotes() {\n int rowsDeleted = getContentResolver().delete(NoteContract.NoteEntry.CONTENT_URI, null, null);\n Log.v(\"MainAcivity\", rowsDeleted+\" rows deleted from the note database\");\n }", "title": "" }, { "docid": "7da5423d2308afad7efc221b241cc618", "score": "0.6822606", "text": "@Override\n public void onClick(View v) {\n mDb.delete(mWord.getId());\n //33) set the notify to recyclerview update the list\n notifyItemRemoved(getAdapterPosition());\n }", "title": "" }, { "docid": "31c0799e35ace2e989473ac7f9e66085", "score": "0.67899996", "text": "private void deleteNote(int position) {\n db.deleteNote(notesList.get(position));\n\n // removing the note from the list\n notesList.remove(position);\n mAdapter.notifyItemRemoved(position);\n\n toggleEmptyNotes();\n }", "title": "" }, { "docid": "e070eb24d471fd06b6a796e5928cb446", "score": "0.67358255", "text": "public boolean deleteNotes(String timeCreated) {\n SQLiteDatabase database = dbHelper.getWritableDatabase();\n try {\n\n int value = database.delete(DbConstants.ACIM_NOTES_TABLE, DbConstants.TIME_CREATED + \" = ?\", new String[]{timeCreated});\n\n Log.d(TAG, DbConstants.ACIM_NOTES_TABLE + \"data deleted \"+value);\n database.close();\n if(value==0){\n return false;\n }\n }catch (Exception e){\n database.close();\n e.printStackTrace();\n return false;\n }\n return true;\n\n }", "title": "" }, { "docid": "9f33470de6a4c1122c830ff993bcb142", "score": "0.6734229", "text": "private void deleteCurrentItem() {\n\n // creating an alert dialog asking for confirmation\n AlertDialog.Builder builder = new AlertDialog.Builder(mContext);\n builder.setTitle(mResources.getString(R.string.question_remove));\n builder.setPositiveButton(mResources.getString(R.string.ok), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n // if there is only one worker, informing the user that it can't be deleted\n if (StoreWorkerModel.getInstance().getStoreWorkersNumber() == 1) {\n Toast.makeText(mContext, mResources.getString(R.string.cant_remove_last), Toast.LENGTH_LONG).show();\n dialog.cancel();\n }\n\n // if there is more than one task\n else {\n\n // removing worker from the model\n int id = StoreWorkerModel.getInstance().removeStoreWorker(mPosition);\n\n // making adapter redraw everything\n notifyDataSetChanged();\n\n // removing task from the shared prefs\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.remove(mResources.getString(R.string.worker) + id);\n editor.apply();\n }\n }\n });\n builder.setNegativeButton(mResources.getString(R.string.cancel), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // if cancel button was pressed discarding the dialog\n dialog.cancel();\n }\n });\n builder.show();\n }", "title": "" }, { "docid": "fdf974b3f90fe8062451346694bec427", "score": "0.6717262", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int i, long l) {\n Log.d(\"DEBUG\", \"onItemClick:2\");\n String s = taskAdapter1.getItem(i);\n taskAdapter1.remove(s);\n db.deleteMyTask(s);\n taskAdapter1.notifyDataSetChanged();\n taskAdapter.notifyDataSetChanged();\n Toast.makeText(getActivity(), \"Task completed!\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "20b92dded084ecb98ed382099c278907", "score": "0.67167246", "text": "@Override\n protected Void doInBackground(Note... notes) {\n noteDao.delete(notes[0]);\n return null;\n }", "title": "" }, { "docid": "870b4c644c933f741f703300b23824d0", "score": "0.6715521", "text": "public void bind(Note note, int position) {\n tvNote.setText(note.getText());\n// Log.i(\"ID_NOTE_BEGIN\", \"\" + note.getId());\n\n\n //click to edit/view\n tvNote.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Log.i(\"POSITION\", \" \" + position);\n\n Intent intent = new Intent(context, EditNoteActivity.class);\n long id = note.getId();\n Log.i(\"ID_NOTE_LONG\", \"\" + note.getId());\n\n\n intent.putExtra(\"ID\", String.valueOf(id));\n// intent.putExtra(\"TEXT\", note.getText());\n Log.i(\"ID_NOTE\", \"\" + id);\n\n activity.startActivityForResult(intent, EDIT_NOTE);\n\n }\n });\n\n tvNote.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View view) {\n// NoteManager noteManager = NoteManager.getInstance(context);\n// noteManager.delete(note.getId());\n//\n// notes.remove(note);\n// notifyDataSetChanged();\n// return true;\n new AlertDialog.Builder(context)\n .setTitle(\"Delete\")\n .setMessage(\"Are you sure to delete this note?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n NoteManager.getInstance(context).delete(note.getId());\n notes.remove(note);\n notifyDataSetChanged();\n }\n }).setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n }).show();\n return true;\n }\n });\n }", "title": "" }, { "docid": "535dfe24346d9f8dc575fe3bfe909f76", "score": "0.6704817", "text": "void deleteNote(Long id);", "title": "" }, { "docid": "f3cb7eef275f071b7370f2eb66bdaabb", "score": "0.6695344", "text": "@Override\n public void onClick(View view) {\n boolean res = new DatabaseManager(context).deleteFr(holder.txt_username.getText().toString());\n if (res){\n Toast.makeText(context, \"از لیست دوستان حذف شد\", Toast.LENGTH_SHORT).show();\n ((Friend_List) context).items.remove(position);\n ((Friend_List) context).Myadapter.notifyDataSetChanged();\n // new Friend_List(context).items.remove(position);\n // new Friend_List(context).Myadapter.notifyDataSetChanged();\n }else {\n Toast.makeText(context, \"حذف نشد\", Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "318ed741cdaf91711541290779180235", "score": "0.66910666", "text": "@Override\r\n public void deleteItem() {\n \r\n }", "title": "" }, { "docid": "d77e4cd45fa26419548319490143f426", "score": "0.66608405", "text": "public void deleteItem() {\n\t\t\n\t}", "title": "" }, { "docid": "edb1c106b6345097f5094e01433b040f", "score": "0.6653603", "text": "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == B_REQUEST_CODE)\n {\n if (resultCode == -1)\n {\n Note updatedNote = (Note) data.getSerializableExtra(\"updatedNote\");\n noteList.add(0, updatedNote);\n noteAdapter.notifyDataSetChanged();\n //String text = data.getStringExtra(\"updatedNote\");\n //userText.setText(text);\n Toast.makeText(this, \"Changes saved ! \", Toast.LENGTH_LONG).show();\n Log.d(TAG, \"onActivityResult: Added new Note: \" + resultCode);\n }\n //This is when user press cancel.\n else if(resultCode == 0){\n Toast.makeText(this, \"Changes discarded ! \", Toast.LENGTH_LONG).show();\n Log.d(TAG, \"onActivityResult: Discarded result Code: \" + resultCode);\n }\n //This condition handles update request for the notes.\n else\n {\n Note updatedNote = (Note) data.getSerializableExtra(\"updatedNote\");\n noteList.add(0, updatedNote);\n noteList.remove(removeNote);\n noteAdapter.notifyDataSetChanged();\n\n Toast.makeText(this, \"Changes Updated ! \", Toast.LENGTH_LONG).show();\n Log.d(TAG, \"onActivityResult: Changes Updated result Code: \" + resultCode);\n }\n }\n else {\n Log.d(TAG, \"onActivityResult: Request Code \" + requestCode);\n }\n getSupportActionBar().setTitle(\"Multi Notes(\" + noteList.size() + \")\");\n }", "title": "" }, { "docid": "b33a4a23f35999f420f83aafcfdd2e18", "score": "0.6653322", "text": "@Override\n public void onClick(View view) {\n\n\n DatabaseHandler db = new DatabaseHandler(context);\n db.deleteItem(id); // item deleted from db\n\n\n items.remove(getAdapterPosition()); // we have to delete the card that the item is shown on to the user\n notifyItemRemoved(getAdapterPosition());\n\n dialog.dismiss();\n\n }", "title": "" }, { "docid": "cc6dee6cee7888bf5d62d3e61630761b", "score": "0.66104645", "text": "public void delete(final Note note){\n dbWriteExecutor.execute(\n new Runnable() {\n @Override\n public void run() {\n mNoteDao.delete(note);\n }\n }\n );\n }", "title": "" }, { "docid": "1b2f7f9b8a96c3623067dafafb4d82c3", "score": "0.65702176", "text": "@Test\n public void deleteTestNotes() {\n Context appContext = InstrumentationRegistry.getTargetContext();\n\n NotesDbAdapter notesAdapter = new NotesDbAdapter(appContext);\n notesAdapter.open();\n\n notesAdapter.deleteNotesWhere(NotesDbAdapter.NOTE_KEY_TITLE + \" LIKE '\" + TEST_PREFIX_NOTE + \"%'\");\n\n notesAdapter.close();\n }", "title": "" }, { "docid": "9709eb9f702ab25dc6de99fd89833955", "score": "0.6565004", "text": "public void deleteNote(int index) {\n notes.remove(index);\n }", "title": "" }, { "docid": "3ad9d360a4925bf3d800c3958c6bc797", "score": "0.6556037", "text": "@Query(\"DELETE FROM note_table\")\n void deleteAllNotes();", "title": "" }, { "docid": "89e7091a3fe1880599dedd5f979e5e96", "score": "0.65399337", "text": "@Override\n\tpublic boolean deleteNote(NoteBean note) {\n\t\treturn noteDao.deleteNote(note);\n\t}", "title": "" }, { "docid": "bb2455aec486f27d6bf006cdb32cdc8a", "score": "0.6519712", "text": "void onItemDeleted();", "title": "" }, { "docid": "8c72443413d156adb68108aa28777fde", "score": "0.65081877", "text": "public void clearList()\n {\n if (mListNotes != null)\n {\n mListNotes.clear();\n notifyDataSetChanged();\n }\n\n }", "title": "" }, { "docid": "7affb40e46d73db74852e2efdff48e8e", "score": "0.6482582", "text": "public boolean delete(Note note) {\n Log.i(LOGGING_TAG, String.format(\"Marking %s for deletion\", note.getKey()));\n /* Setup values */\n ContentValues values = new ContentValues();\n values.put(DELETED, true);\n values.put(SYNCED, false);\n /* Perform query */\n return writeNote(values, note) != null;\n }", "title": "" }, { "docid": "4f52b0b775ae556dbb96aa3540686a32", "score": "0.64777994", "text": "public void onNoteDeleted(int deletedItemPosition)\n {\n if (mListNotes != null)\n {\n mListNotes.remove(deletedItemPosition);\n notifyItemRemoved(deletedItemPosition);\n }\n }", "title": "" }, { "docid": "56aaf79cdc24fbb986ffe8bf25493c02", "score": "0.6471101", "text": "@Override\n public void onClick(View v) {\n Delete(position);\n\n //delete in listview\n list.remove(position);\n adapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "4520300bf58440d3e607cc421a669e76", "score": "0.6469872", "text": "public void delete(Note note) {\n new DeleteNoteAsyncTask(noteDao).execute(note);\n }", "title": "" }, { "docid": "4520300bf58440d3e607cc421a669e76", "score": "0.6469872", "text": "public void delete(Note note) {\n new DeleteNoteAsyncTask(noteDao).execute(note);\n }", "title": "" }, { "docid": "441845d4727d363eea5cf7942f88f7ce", "score": "0.64650285", "text": "public void deleteNote(int id) { noteMapper.delete(id); }", "title": "" }, { "docid": "aa1b4072d5a8711b0ab45d6512df5304", "score": "0.64624286", "text": "@Delete\n void delete(CourseNote note);", "title": "" }, { "docid": "557634b4c8e4b510defba4408ad9d44b", "score": "0.6428817", "text": "@Override\n public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) {\n int position = viewHolder.getAdapterPosition();\n //remove item from database\n Location location = Location.findById(Location.class,allLocations.get(position).getId());\n location.delete();\n //remove from list\n allLocations.remove(position);\n locationAdapter.notifyItemRemoved(position);\n locationAdapter.notifyItemRangeChanged(position,allLocations.size());//we used \"getAdapterPosition()\" to get item position (int)\n\n Toast.makeText(getActivity(),\"item removed\",Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "e214a429125a6419805c2cd37bf3dc28", "score": "0.64217705", "text": "@Security.Authenticated(Secured.class)\n public static Result deleteNote(long id){\n System.out.println(\"Inside delete note---\" + id);\n String query = \"DELETE FROM keywords WHERE keyword_entry_id = \"+id;\n SqlUpdate down = Ebean.createSqlUpdate(query);\n down.execute();\n NoteInfo.find().ref(id).delete();\n NoteEntry.find().ref(id).delete();\n //getGalleryFileIds();\n isSearchResult = true;\n List<NoteInfo> noteList = new ArrayList<NoteInfo>();\n noteList = SearchEntries.searchAllNotes();\n return ok(MyNotes.render(\"MyNotes\", Secured.isLoggedIn(ctx()),\n Secured.getUserInfo(ctx()), noteList, isSearchResult));\n }", "title": "" }, { "docid": "32af9a5d3b5f48ae50c1db10103debf2", "score": "0.64211607", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_notebook);\n sharedPreferences = this.getSharedPreferences(\"com.sarahcreasman.writestuff\", Context.MODE_PRIVATE);\n noteList = (ListView) findViewById(R.id.notebook_list);\n intent = new Intent(getApplicationContext(), NotebookPage.class);\n if(notes.size() == 0) {\n }\n try {\n notes = (ArrayList<String>) NotebookSerializer.deserialize(sharedPreferences.getString(\"notes\", NotebookSerializer.serialize(notes)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n noteAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_single_choice, notes);\n noteList.setAdapter(noteAdapter);\n noteList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n intent.putExtra(\"note\", notes.get(position));\n cur = position;\n startActivity(intent);\n }\n });\n\n // Sets notes to delete if title is held down\n noteList.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\n @Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, final int position, long id) {\n // Generates alert to confirm that deletion is what user wants\n new AlertDialog.Builder(Notebook.this)\n .setIcon(android.R.drawable.ic_delete)\n .setTitle(\"Delete Note\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n notes.remove(position);\n noteAdapter.notifyDataSetChanged();\n try {\n sharedPreferences.edit().putString(\"notes\", NotebookSerializer.serialize(Notebook.notes)).apply();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n return true;\n }\n });\n }", "title": "" }, { "docid": "0dfe906349abf269de5b34a47f66fa93", "score": "0.6413329", "text": "synchronized public boolean kill(Note note) {\n Log.w(LOGGING_TAG, String.format(\"Killing %s\", note.getKey()));\n final SQLiteDatabase db = dbHelper.getWritableDatabase();\n boolean success = false;\n /* Perform query */\n try {\n db.beginTransaction();\n int rows = db.delete(DATABASE_TABLE, BaseColumns._ID + \"=\" + note.getId(), null);\n success = rows == 1;\n if (success) { db.setTransactionSuccessful(); }\n } finally {\n db.endTransaction();\n db.close();\n }\n return success;\n }", "title": "" }, { "docid": "6dd2849859e3bc993b87baf54af15fee", "score": "0.6400835", "text": "int deleteByExample(NoteExample example);", "title": "" }, { "docid": "312627af459f9dd5a8d47aa5205c984b", "score": "0.6397948", "text": "public void delete() {\n\n onUpdated();\n\n // if never saved before\n if (getId() == -1) {\n return;\n }\n\n Uri uri = Uri.parse(TodoContentProvider.CONTENT_TODO_URI + \"/\" + getProjectId() + \"/toDoId/\" + getId());\n\n Utils.getAppContext().getContentResolver().delete(\n uri, // Uri\n null, // selection\n null // selectionArgs\n );\n }", "title": "" }, { "docid": "d6315bdd7822e232df0df83c6b4e3ada", "score": "0.6389889", "text": "public void deleteAllNotes() {\n new DeleteAllNotesAsyncTask(noteDao).execute();\n }", "title": "" }, { "docid": "e04f89eb5de38fa87841e1a73beb5df2", "score": "0.6388844", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long id) {\n\n String taskId = \"/\" + id;\n getContentResolver().delete(Uri.parse(TasksContract.CONTENT_URI + taskId), null, null);\n Toast.makeText(MainActivity.this, \"Please click on button Delete\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "22d0cd1892b991e6415d1bb3dbd1884e", "score": "0.63781863", "text": "public void deleteAllNotes() {\n new DeleteAllNotesNoteAsyncTask(noteDao).execute();\n }", "title": "" }, { "docid": "2dfd0bce6f4b25e51a9b8f5b2f18bd3e", "score": "0.6364217", "text": "public void deleteCurrentItem() {\n\t}", "title": "" }, { "docid": "707604031626b58880f9d698aae0586a", "score": "0.6343747", "text": "private void resetNotes(Context ctx) {\n for (Note note : this.noteDao.findAll()) {\n this.noteDao.remove(note);\n }\n ctx.redirect(\"/admin\");\n }", "title": "" }, { "docid": "51a38d6001755a7eb549ae4f96342095", "score": "0.6342248", "text": "void removeNote(MusicNote n);", "title": "" }, { "docid": "1bb3c940f31727ef0d90f9b721ed44f1", "score": "0.6334378", "text": "@Override\n\tpublic void remove(int meetingNoteNo) {\n\t\tdao.remove(meetingNoteNo);\n\t}", "title": "" }, { "docid": "febcf08ec737a4479f578faec305ccd9", "score": "0.63316923", "text": "private void eliminar(){\n DBAdapter db= new DBAdapter(this);\n db.open();\n db.eliminarTodos();\n db.close();\n }", "title": "" }, { "docid": "9486af5e28f14abdb640915dcba873dc", "score": "0.6327547", "text": "@Override\n public void run() {\n list.remove(position);\n //update the job deleted status\n dbAdapter.changeDeleteStatus(noteId, is_deleted);\n mRecyclerViewAdapter.notifyItemRemoved(position);\n mRecyclerViewAdapter.notifyItemRangeChanged(position, list.size());\n if (deleted_header != null) {\n list.remove(position - 1);\n mRecyclerViewAdapter.notifyItemRemoved(position - 1);\n mRecyclerViewAdapter.notifyItemRangeChanged(position - 1, list.size());\n }\n mRecyclerViewAdapter.mItemManger.closeAllItems();\n }", "title": "" }, { "docid": "0f1428452dfb24b959a6f8b4b91617e6", "score": "0.63229036", "text": "@Delete\n Single<Integer> delete(Collection<Note> note);", "title": "" }, { "docid": "8bf82691769f73848226f0e96648ca3a", "score": "0.6306866", "text": "public void deleteAppNotification(String appNotificationId){\n SQLiteDatabase db = assetDatabaseOpenHelper.openDatabase();\n String deleteQuery = \"DELETE FROM APP_NOTIFICATION WHERE APP_NOTIFICATION_ID ='\"+appNotificationId+\"'\";\n\n db.execSQL(deleteQuery);\n\n }", "title": "" }, { "docid": "57651fca12f5fb642d5014b813bdb90e", "score": "0.6304502", "text": "@Override\n public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) {\n Note currentNote = mAdapter.getNoteAt(viewHolder.getAdapterPosition());\n mViewModel.delete(currentNote);\n Toast.makeText(MainActivity.this, \"Note deleted\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "b0c9ac983817363683aaa916147377bd", "score": "0.629816", "text": "public void onClick(DialogInterface dialog, int which) {\n databaseReference = FirebaseDatabase.getInstance().getReference(\"Users_appointment\")\n .child(userId1).child(orderNumberId1);\n databaseReference.removeValue();\n\n databaseReference = FirebaseDatabase.getInstance().getReference(\"Owner_appointment\")\n .child(ownerId1).child(orderNumberId1);\n databaseReference.removeValue();\n\n databaseReference1 = FirebaseDatabase.getInstance().getReference(\"Appointment_service\")\n .child(userId1).child(orderNumberId1);\n databaseReference1.removeValue();\n\n appointments.clear();\n notifyItemRemoved(position);\n notifyItemRangeChanged(position, appointments.size());\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "28ad835e65903d5ade48ce83864d08a6", "score": "0.62955534", "text": "public void onClick(DialogInterface dialog, int which) {\n DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference().child(\"Notice\").child(model.getUniqueKey());\n databaseReference.removeValue();\n Toast.makeText(context, \"notice Deleted Successfully\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "7d05d05d06d2447551c1e2820603be79", "score": "0.6294347", "text": "public boolean deleteReminder(int id) {\n SQLiteDatabase database = dbHelper.getWritableDatabase();\n try {\n\n int value = database.delete(DbConstants.REMINDER_TABLE, DbConstants.ID + \" = ?\", new String[]{id+\"\"});\n\n Log.d(TAG, DbConstants.REMINDER_TABLE + \"data deleted \"+value);\n database.close();\n if(value==0){\n return false;\n }\n }catch (Exception e){\n database.close();\n e.printStackTrace();\n return false;\n }\n return true;\n\n }", "title": "" }, { "docid": "285bcb1ec577fe6d7a077184ec61304a", "score": "0.6279332", "text": "@Test\n public void removeNoteTest() {\n List list = this.modelThree.getNotes();\n assertEquals(list.size(), 3);\n assertTrue(this.modelThree.removeNote(\n INote.builder().setOctave(2).setKey(Key.C).setStartBeat(0).setDuration(4).build()));\n list = this.modelThree.getNotes();\n assertEquals(list.size(), 2);\n }", "title": "" }, { "docid": "5a980ab1a5c9882ec4d25a0dff82a2ca", "score": "0.627217", "text": "@Override\r\n public void onClick(View v) {\n text.remove(index);\r\n notifyDataSetChanged();\r\n removetag(index);\r\n Toast.makeText(context, textView.getText().toString() + \" 已删除\",\r\n Toast.LENGTH_SHORT).show();\r\n }", "title": "" }, { "docid": "ef009941ccf5344c3d4a81c9dd936bad", "score": "0.6267671", "text": "public void delete_button_clicked()\n {\n DatabaseHelper dh = new DatabaseHelper(this);\n //Log.d(\"delete_\",\"deleting here \"+Integer.toString(id));\n dh.delete(id);\n Log.d(\"delete_\",\"deleted from function\");\n\n }", "title": "" }, { "docid": "b796bf9cc6ab5eee54619571c8ba5b78", "score": "0.62660205", "text": "public void deleteOnFirebase(String noteId) {\n Log.e(TAG, \"Delete on firebase \" + noteId);\n if (userUid == null) return;\n modifyFirebaseState();\n DatabaseReference ref = database.getReference()\n .child(Note.getChild(userUid));\n ref.child(noteId).removeValue();\n Log.e(TAG, \"Delete OK\");\n }", "title": "" }, { "docid": "5c3770c06f7cdf0e8af1bcac219d2d1a", "score": "0.62654334", "text": "public void deleteNote(long id) {\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\n\t\tString string = String.valueOf(id);\n\t\tdb.execSQL(\"DELETE FROM \" + DATABASE_TABLE_NAME + \" WHERE \" + COLID\n\t\t\t\t+ \"=\" + id + \"\");\n\t}", "title": "" }, { "docid": "fc03b301b725a48029a754d66d5bcab9", "score": "0.6253487", "text": "@Override\n public boolean onLongClick(View view) {\n\n final int pos = recyclerView.getChildLayoutPosition(view);\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n removeNote(pos);\n //Toast.makeText(getApplicationContext(), \"Deleted\", Toast.LENGTH_SHORT).show();\n }\n });\n\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n }\n });\n\n builder.setMessage(\"Delete \" + notesList.get(pos).getNotes_title() + \"?\");\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n return true;\n }", "title": "" }, { "docid": "af0cdee26bc842647387c193559a87a0", "score": "0.6253177", "text": "int deleteByPrimaryKey(Integer itemid);", "title": "" }, { "docid": "9f174450f544186168b6e44acbdddd57", "score": "0.62242025", "text": "@Override\n public void onClick(View view) {\n dbAdapter.changeDeleteStatus(noteId, undo_deleted); //update the job to undeleted\n if(noteTypeLaunchedFrom == null) {//only reinsert the note if the Detailed view was not launched from JOB recyclerview\n if (deleted_header != null) {\n list.add(position - 1, deleted_note);\n mRecyclerViewAdapter.notifyItemInserted(position - 1);\n mRecyclerViewAdapter.notifyItemRangeChanged(position - 1, list.size());\n list.add(position - 1, deleted_header);\n mRecyclerViewAdapter.notifyItemInserted(position - 1);\n mRecyclerViewAdapter.notifyItemRangeChanged(position - 1,\n list.size());\n } else {\n list.add(position, deleted_note);\n mRecyclerViewAdapter.notifyItemInserted(position);\n mRecyclerViewAdapter.notifyItemRangeChanged(position, list.size());\n }\n }else{\n notifyRecyclerViewChanged();\n }\n }", "title": "" }, { "docid": "59eecb54c8ebebc10ff1edfd2c33d6dd", "score": "0.6222557", "text": "public void DeleteItem(View view){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"*** Warning ***\");\n builder.setIcon(R.drawable.ic_warning_black_24dp);\n builder.setMessage(R.string.deleteTask)\n .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mydb.deleteTask(Task_To_Update);\n Toast.makeText(getApplicationContext(), \"Deleted Successfully\",\n Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(getApplicationContext(),MainActivity.class);\n startActivity(intent);\n }\n })\n .setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n AlertDialog d = builder.create();\n d.show();\n }", "title": "" }, { "docid": "2729f3d408abf89e91e172ba269e758a", "score": "0.62146", "text": "@Override\n public void onItemLongClicked(int position) {\n items.remove(position);\n // Notify the adapter of the deletion\n itemsAdapter.notifyItemRemoved(position);\n // Create a Toast to notify user that item was deleted successfully\n Toast.makeText(getApplicationContext(), \"Item was removed\", Toast.LENGTH_SHORT).show();\n saveItems();\n }", "title": "" }, { "docid": "2812be1998686208dfec3b3e22d6792a", "score": "0.62125295", "text": "int deleteByPrimaryKey(Integer recId);", "title": "" }, { "docid": "4662eb41f0563aae5295f9cd21907f4f", "score": "0.6207062", "text": "public void Eliminar_todo(){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Estas segurto que quieres eliminar todo\");\n builder.setTitle(\"Precaucion\");\n builder.setPositiveButton(\"Si\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n datosOpenHelper = new BaseDatosOpenHelper(ActShowTiempos.this);\n conexion = datosOpenHelper.getWritableDatabase();\n conexion.delete(FeedEntry.TABLE_NAME, null, null);\n Intent it = new Intent(ActShowTiempos.this, ActShowTiempos.class);\n startActivityForResult(it, 0);\n conexion.close();\n }\n });\n\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n AlertDialog dialog=builder.create();\n dialog.show();\n }", "title": "" }, { "docid": "800f3027d499a48f5aa1bde6ad28c799", "score": "0.6183432", "text": "@Override\n public void onDelete(int position) {\n }", "title": "" }, { "docid": "bd690bb256667688878c9d1e79cc33d6", "score": "0.61827636", "text": "@Override\n public void onClick(View view) {\n adapter.restoreItem(deletedModel, deletedPosition);\n }", "title": "" }, { "docid": "bd690bb256667688878c9d1e79cc33d6", "score": "0.61827636", "text": "@Override\n public void onClick(View view) {\n adapter.restoreItem(deletedModel, deletedPosition);\n }", "title": "" }, { "docid": "48565fefb8621c3cccace251bfb00a82", "score": "0.6164106", "text": "public void jobDone (final long noteId){\n getActivity().getIntent().putExtra(MainActivity.JOB_DONE, false);\n //work out if a deleted note\n Boolean job_already_done = getActivity().getIntent()\n .getBooleanExtra(MainActivity.DELETED_NOTES, false);\n //set up the database adapter\n dbAdapter = new NotesDbAdapter(getActivity().getBaseContext());\n dbAdapter.open();\n //if this was launched from a JOB details view which was launched from referral, as we are returning to referral need to make sure list for this section is JOB\n if(noteTypeLaunchedFrom != null){\n switch (noteTypeLaunchedFrom){\n case REFERRAL:\n list = dbAdapter.getNotes(deleted_notes, MainActivity.TypeofNote.JOB);\n break;\n }\n }\n //find note position in header containing jobslist\n for (int i=0; i < list.size(); i++){\n long noteIdtocheck = list.get(i).getNoteId();\n if(noteIdtocheck == noteId) {\n position = i;\n break;\n }\n }\n if(!job_already_done) { //allows the same code to change the note from deleted to none deleted\n is_deleted = 1;\n undo_deleted = 0; //allow for the undo button to do the opposite\n what_happened_to_note = getString(R.string.marked_done); //set the words of the snackbar\n }else {\n is_deleted = 0;\n undo_deleted = 1; //if UNDO action in snackbar clicked changes back to a completed job\n what_happened_to_note = getString(R.string.restored_snackbar_string);\n }\n snackbar_words = getString(R.string.jobSingular) + \" \" + what_happened_to_note;\n //create a copy of the note to be deleted so it can be re-added\n final Note deleted_note = list.get(position);\n //remove the view from the recyclerview and show the snackbar\n //if the DETAIL view with the job done code was launched from somthing other thatn the JOB recyclerview, only show the snackbar\n if(noteTypeLaunchedFrom == null) {\n //work out if the above and below note is a header and remove the above header if this is true\n final int ITEM_TYPE_HEADER = 0;\n if (mRecyclerViewAdapter.getItemViewType(position - 1) == ITEM_TYPE_HEADER) {\n if (position + 1 >= list.size() ||\n mRecyclerViewAdapter.getItemViewType(position + 1) == ITEM_TYPE_HEADER) {\n deleted_header = (Header) list.get(position - 1);\n }\n }\n //alter note\n Handler handler = new Handler();\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n //remove from the visible list\n list.remove(position);\n //update the job deleted status\n dbAdapter.changeDeleteStatus(noteId, is_deleted);\n mRecyclerViewAdapter.notifyItemRemoved(position);\n mRecyclerViewAdapter.notifyItemRangeChanged(position, list.size());\n if (deleted_header != null) {\n list.remove(position - 1);\n mRecyclerViewAdapter.notifyItemRemoved(position - 1);\n mRecyclerViewAdapter.notifyItemRangeChanged(position - 1, list.size());\n }\n mRecyclerViewAdapter.mItemManger.closeAllItems();\n }\n };\n handler.removeCallbacks(runnable);\n handler.postDelayed(runnable, 50);\n }\n //snackbar code\n Snackbar snackbar = Snackbar\n .make(fragmentLayout, snackbar_words, Snackbar.LENGTH_LONG)\n .setAction(R.string.undo, new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //irrespective of what lunch the deatiled view with the done button\n dbAdapter.changeDeleteStatus(noteId, undo_deleted); //update the job to undeleted\n if(noteTypeLaunchedFrom == null) {//only reinsert the note if the Detailed view was not launched from JOB recyclerview\n if (deleted_header != null) {\n list.add(position - 1, deleted_note);\n mRecyclerViewAdapter.notifyItemInserted(position - 1);\n mRecyclerViewAdapter.notifyItemRangeChanged(position - 1, list.size());\n list.add(position - 1, deleted_header);\n mRecyclerViewAdapter.notifyItemInserted(position - 1);\n mRecyclerViewAdapter.notifyItemRangeChanged(position - 1,\n list.size());\n } else {\n list.add(position, deleted_note);\n mRecyclerViewAdapter.notifyItemInserted(position);\n mRecyclerViewAdapter.notifyItemRangeChanged(position, list.size());\n }\n }else{\n notifyRecyclerViewChanged();\n }\n }\n })\n .setActionTextColor(Color.RED);\n snackbar.show();\n snackbar.setCallback(new Snackbar.Callback() {\n @Override\n public void onDismissed(Snackbar snackbar, int event) {\n super.onDismissed(snackbar, event);\n dbAdapter.close();\n }\n });\n }", "title": "" }, { "docid": "c33bb06bcf61100a73f5b8ae6ba606ad", "score": "0.6164103", "text": "int deleteByPrimaryKey(Integer infroId);", "title": "" }, { "docid": "adf69efaacb6a0dbeabd29f5da5cc758", "score": "0.61637795", "text": "private final void cancelNote() {\n if (mCursor != null) {\n \tString tmp = mText.getText().toString();\n \t//if (mState == STATE_EDIT) {\n // Put the original note text back into the database\n //mCursor.close();\n //mCursor = null;\n //ContentValues values = new ContentValues();\n //values.put(Notes.NOTE, mOriginalContent);\n //getContentResolver().update(mUri, values, null, null);\n \tmText.setText(mOriginalContent);\n //} else if (mState == STATE_INSERT) {\n // We inserted an empty note, make sure to delete it\n //deleteNote();\n //mText.setText(\"\");\n //}\n \tmOriginalContent = tmp;\n }\n //mCursor.requery();\n //setResult(RESULT_CANCELED);\n //finish();\n }", "title": "" }, { "docid": "8cd60a478980726d079cc99285605098", "score": "0.6159552", "text": "public void SwipeRemoved(){\n //membuat objek ItemTouchHelper.SimpleCallback dengan dragDirs 0 dan touch ke kanan\n ItemTouchHelper.SimpleCallback touch = new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.RIGHT) {\n @Override\n public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {\n return false;\n }\n //method untuk mendefinikan action swiped untuk penghapusan data\n @Override\n public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) {\n int position = viewHolder.getAdapterPosition(); //membuat variabel int dari viewHolder.getAdapterPosition\n Notes current = adapter.getData(position); //mendapatkan data posisi bertipe class Notes\n\n if (direction == ItemTouchHelper.RIGHT){ //jika arah usap layar ke kanan\n if (databaseHelper.removeData(current.getTodo())){ //dan jika database menghapus data\n adapter.deleteData(position); //maka adapter akan menghapus data berdasarkan posisi\n //membuat notifikasi snackbar Note Deleted\n Snackbar.make(findViewById(R.id.coordinator), \"Note Deleted\",1000).show();\n }\n }\n\n }\n };\n //membuat objek ItemTouchHelper(touch)\n ItemTouchHelper helper = new ItemTouchHelper(touch);\n //mengatach ke RecyclerView\n helper.attachToRecyclerView(rView);\n\n\n\n }", "title": "" }, { "docid": "f8902d6a5a060231846f35e0c243e85c", "score": "0.6132958", "text": "@Override\n public void onClick(View v) {\n categoryHeader.remove(position);\n categoryDataModels.remove(position);\n categoryHash.remove(groupPosition);\n exListAdapter.notifyDataSetChanged();\n saveData();\n remove_confirm.dismiss();\n }", "title": "" }, { "docid": "e1d5476ceccac575ec8589ad559abeba", "score": "0.6132946", "text": "public void deleteTabel(SQLiteDatabase db)\n {\n\n }", "title": "" }, { "docid": "e95324290aab463096be4c81c02a3c58", "score": "0.61327267", "text": "@Override\r\n\tpublic void delete() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e95324290aab463096be4c81c02a3c58", "score": "0.61327267", "text": "@Override\r\n\tpublic void delete() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c78864eee71e5771f5d5a72df91db46a", "score": "0.613081", "text": "public void hapusNote(int whichItem){\n noteList.remove(whichItem);\n notifyDataSetChanged();\n if (apaSound){soundPool.play(sHapus, 1, 1, 0, 0, 1);}\n }", "title": "" }, { "docid": "4cfd96d75d4c698f384c7496b4f40627", "score": "0.6113565", "text": "public boolean updateNoteitems_Delete(String item_Id,String status) {\n\t\t\t\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\t\t\t\tContentValues args = new ContentValues();\n\t\t\t\t\targs.put(NoteshareDatabaseHelper.NOTE_DELETE_STATUS,status);\n\t\t\t\t\treturn db.update(NoteshareDatabaseHelper.NOTE_TABLE_NAME, args,\n\t\t\t\t\t\t\tNoteshareDatabaseHelper.NOTE_ID + \"=\" + item_Id,\n\t\t\t\t\t\t\tnull) > 0;\n\t\t\t\t}", "title": "" }, { "docid": "f3efa1bbb5133506bdca56c661c493b6", "score": "0.6100434", "text": "private void deleteFromDb(final Events event) {\n DatabaseReference dr=FirebaseDatabase.getInstance().getReference(\"Symposium/Events/\"+event.name);\n dr.removeValue().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(ef.getContext(),\"event deleted successfully\",Toast.LENGTH_LONG).show();\n list.remove(event);\n listFull.remove(event);\n notifyDataSetChanged();\n ef.progressBar.setVisibility(View.GONE);\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(ef.getContext(),\"error occurred please try again\",Toast.LENGTH_LONG).show();\n ef.progressBar.setVisibility(View.GONE);\n }\n });\n }", "title": "" }, { "docid": "3175456dd7f826319f27425f29efde9f", "score": "0.60997456", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int i, long l) {\n Log.d(\"DEBUG\", \"onItemClick:\");\n String s = taskAdapter.getItem(i);\n taskAdapter1.add(s);\n db.insertMyTask(s);\n taskAdapter.remove(s);\n db.deleteOpenTask(s);\n taskAdapter1.notifyDataSetChanged();\n taskAdapter.notifyDataSetChanged();\n Toast.makeText(getActivity(), \"Task picked!\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "58c47daa21a2b37f6e3f18c51e223090", "score": "0.60854614", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n String selection = DatabaseHelper.COL_TITLE + \" = \\\"\" + friend.getName() + \"\\\"\";\n int rowsDeleted = activity.getContentResolver().delete(DBContentProvider.CONTENT_URI, selection, null);\n\n if (rowsDeleted > 0) {\n Toast.makeText(activity, \"Deleted!\", Toast.LENGTH_SHORT).show();\n\n //reloading data\n activity.showAllFriends();\n } else {\n Toast.makeText(activity, \"Error!\", Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "68d3362e216236b0fa31dc8dc289ac90", "score": "0.608034", "text": "int deleteByPrimaryKey(Integer followid);", "title": "" }, { "docid": "bc39d48a681f34c97a6c102c2e70db54", "score": "0.60782784", "text": "public void clearNote() {\n genClient.clear(CacheKey.note);\n }", "title": "" }, { "docid": "09f8e66a038024383cf6d548d5cdff1d", "score": "0.6073905", "text": "int deleteByPrimaryKey(String questionNo);", "title": "" }, { "docid": "7efcb24bc3a98fe0dbc7abe7c263ec42", "score": "0.6070718", "text": "private void deleteAndCancelReminders() {\n Uri reminderUri = Uri.parse(Contract.Reminder.CONTENT_URI_REMINDER + \"/\" + this.reminderId);\n int numberOfDeletedRows = getContentResolver().delete(reminderUri, null, null);\n //cancel reminder\n if (numberOfDeletedRows > 0) {\n Intent alarmIntent = new Intent(this, ReminderBroadcastReceiver.class);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(this, reminderId, alarmIntent, PendingIntent.FLAG_NO_CREATE);\n AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n if (alarmManager != null && pendingIntent != null) {\n alarmManager.cancel(pendingIntent);\n }\n\n }\n }", "title": "" }, { "docid": "f5f39b89d2f44e6a1a3246230603e97e", "score": "0.60646445", "text": "int deleteByPrimaryKey(Integer idBeneficiario);", "title": "" }, { "docid": "bb694aefb32129ea9fa7b19e7681a396", "score": "0.60585606", "text": "@Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n Delete(position);\n\n //delete in listview\n list.remove(position);\n adapter.notifyDataSetChanged();\n return false;\n }", "title": "" }, { "docid": "eedbeae6e5d71be9ef009d6a1b6ef973", "score": "0.6055089", "text": "int deleteByPrimaryKey(Integer repliesId);", "title": "" }, { "docid": "5db76dd23d7d6b8937dc58fbf6338fe4", "score": "0.60528666", "text": "int deleteByPrimaryKey(Integer questionId);", "title": "" }, { "docid": "d4f7cd92a6e2d09e7cfbb3ffcd8849e9", "score": "0.6048004", "text": "@Override\n public void onClick(View view) {\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(context, AlertReceiver.class);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, model.id, intent, 0);\n alarmManager.cancel(pendingIntent);\n //MedicinArray.remove(position);\n // Toast.makeText(context, \"\"+position, Toast.LENGTH_SHORT).show();\n\n //delete data\n FirebaseDatabase.getInstance().getReference().child(\"User\").child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .child(\"MedicineInfo\").child(model.key).removeValue();\n\n //delete image\n FirebaseStorage.getInstance().getReference().child(\"Images\").child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .child(\"medicine_\"+model.key+\".jpg\").delete();\n// FirebaseDatabase.getInstance().getReference().child(\"User\").child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n// .child(\"MedicineInfo\").setValue(MedicinArray);\n\n }", "title": "" }, { "docid": "3bf809748df7b557b2ad0f261a8b2300", "score": "0.6044825", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n DatabaseReference dbr= FirebaseDatabase.getInstance().getReference(\"productos\").child(IDs.get(pos));\n Log.d(\"hecotrr\", \"Database Reference: \"+dbr.toString());\n dbr.removeValue();\n IDs.remove(pos);\n productos.remove(pos);\n notifyItemRemoved(pos);\n notifyItemRangeChanged(pos, getItemCount());\n dialog.dismiss();\n }", "title": "" } ]
a6e6bd35f85600c221343461da6656da
string key = 1;
[ { "docid": "9da345219a183e224496f1063189bffa", "score": "0.0", "text": "public Builder setKeyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n key_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "db42a4593427e6acf3600708ad44a6d6", "score": "0.77934206", "text": "String key();", "title": "" }, { "docid": "afd8aabc382b82688289a75d8156144d", "score": "0.75473493", "text": "String newKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.73285234", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.73285234", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.73285234", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.73285234", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.73285234", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.73285234", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.73285234", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.73285234", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.73285234", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.73285234", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.73285234", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.73285234", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.73285234", "text": "String getKey();", "title": "" }, { "docid": "648b1f16beb064af3da136ebaa3993ef", "score": "0.72281116", "text": "private String getString(String key) {\n return key;\r\n }", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.7086222", "text": "int getKey();", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.7086222", "text": "int getKey();", "title": "" }, { "docid": "c65b786263a9582e1284de8056fd2ec4", "score": "0.6940718", "text": "public char getKey(){ return key;}", "title": "" }, { "docid": "69f66e8d8cc60806bf8b85f455f06a2b", "score": "0.68315065", "text": "void setKey(String key);", "title": "" }, { "docid": "b225003589ff44ed2a7f5fa621d5a57f", "score": "0.682817", "text": "public void setKey(int key){\r\n this.key = key; \r\n }", "title": "" }, { "docid": "5be907878110accae8e5f3d0e3c06f6a", "score": "0.6813856", "text": "public static String getKey(){\n\t\treturn key;\n\t}", "title": "" }, { "docid": "8e59d07b305dd3fad527ffd7758585d0", "score": "0.6810235", "text": "String setKey(String newKey);", "title": "" }, { "docid": "370e68bf56692ba42f45c83fd408aa81", "score": "0.6778801", "text": "public java.lang.String getKey(){\n return localKey;\n }", "title": "" }, { "docid": "26c907004c95dbe06cc39635947c2efc", "score": "0.6746262", "text": "int getInt(String key);", "title": "" }, { "docid": "302a4a83c00d38a9475afd72eeb694b4", "score": "0.6730969", "text": "int getKey(int i);", "title": "" }, { "docid": "ee4a38824e911354617ed651815322f1", "score": "0.672378", "text": "String getString(String key);", "title": "" }, { "docid": "edcb311f66e65e4fe2d3375a8ca2d963", "score": "0.67143905", "text": "public int getKey(){\n return key;\n }", "title": "" }, { "docid": "64b630c2f1ac721ce0f8986f035e7f11", "score": "0.6653117", "text": "private void setKey(String key){\n\t\tthis.key=key;\n\t}", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.66526175", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.66526175", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.66526175", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.66526175", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.66526175", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.66526175", "text": "java.lang.String getKey();", "title": "" }, { "docid": "4a3b8133190622a75076f3a7cb1ae06a", "score": "0.6651311", "text": "public static String getKey() {\t\t\n\t\treturn key;\n\t}", "title": "" }, { "docid": "fe8e8e47e0180bd38ae33c97eafd5ca6", "score": "0.66483605", "text": "String get(Integer key);", "title": "" }, { "docid": "7e963952996b075177d3476e18d19623", "score": "0.66445863", "text": "Object getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.66409653", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.66409653", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.66409653", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.66409653", "text": "public String getKey();", "title": "" }, { "docid": "7dfb8b5d486235e3b6c7e029f8d9181c", "score": "0.66396964", "text": "void setKey(int key);", "title": "" }, { "docid": "fc9296c9c5ebef074b99ecf4fa22781e", "score": "0.66133547", "text": "void setKey(java.lang.String key);", "title": "" }, { "docid": "1939e6c32cee2562293fda184d1dbea8", "score": "0.65936774", "text": "abstract public String getKey();", "title": "" }, { "docid": "eeb3ef04046712adacabadeaba953b7f", "score": "0.6585219", "text": "public String key() {\n return key;\n }", "title": "" }, { "docid": "eeb3ef04046712adacabadeaba953b7f", "score": "0.6585219", "text": "public String key() {\n return key;\n }", "title": "" }, { "docid": "aed26ba691796c3792bd216c1bed6b19", "score": "0.6541336", "text": "void setKey(final String key);", "title": "" }, { "docid": "bb962167c088aa355db6a7a6081cce47", "score": "0.651465", "text": "public int get(int key) {\n return 1;\n }", "title": "" }, { "docid": "83edcb5a50fcc91d73ecf36b9eea1449", "score": "0.648429", "text": "String getKey(int index);", "title": "" }, { "docid": "5c91ebc89774709d483839a0b85d53e8", "score": "0.6470373", "text": "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "title": "" }, { "docid": "f1e0e9a6c3ef1f3602f92c967ac56a33", "score": "0.6430582", "text": "public String getKey() {\n\treturn key;\n }", "title": "" }, { "docid": "aa8838adefae3d91a4010387dc8f69ec", "score": "0.6413114", "text": "K key();", "title": "" }, { "docid": "aa8838adefae3d91a4010387dc8f69ec", "score": "0.6413114", "text": "K key();", "title": "" }, { "docid": "c3354a692c546a59e6a4fc93b60a07b8", "score": "0.63926923", "text": "private void setKey(String key) {\n this.key = key;\n }", "title": "" }, { "docid": "75ba6704e0b29e4e26c64bccb8e1188a", "score": "0.6391046", "text": "public String getString(String key);", "title": "" }, { "docid": "64ce6af2f9a2deac4ea9ca5f236440b6", "score": "0.638015", "text": "void setKey(int i, int key);", "title": "" }, { "docid": "87b4389d4700e8b3c679e47a1453bf98", "score": "0.63776386", "text": "public void setKey(int key);", "title": "" }, { "docid": "87b4389d4700e8b3c679e47a1453bf98", "score": "0.63776386", "text": "public void setKey(int key);", "title": "" }, { "docid": "afa4e4626e61f2d33a30e17a328e3dbf", "score": "0.6373726", "text": "public String getKey(){\n\t\treturn key;\n\t}", "title": "" }, { "docid": "e793e517a59b182b88f7cfed661e6abf", "score": "0.6325737", "text": "public void setKey(char key){ this.key = key;}", "title": "" }, { "docid": "e929cca678f5f11e38a7390ee64cbdf5", "score": "0.6321761", "text": "private final static String getKey( Integer id ) {\n\t\treturn \"\" + id ;\n\t}", "title": "" }, { "docid": "c92ced23c34f732e7f67f9f27714e563", "score": "0.6321723", "text": "T key();", "title": "" }, { "docid": "eb6766db2b86b362e52310fbb75f21e4", "score": "0.6312535", "text": "void add(String key);", "title": "" }, { "docid": "b270d01f5e5bfee7091dc25373e3b7fc", "score": "0.63116014", "text": "static int getKey(String raw) {\n\t\tint key = 0;\n\t\tfor (int i = 0; i < raw.length(); i++) {\n\t\t\tkey = key * HASH_VALUE + raw.charAt(i);\n\t\t}\n\t\tif (key < 0) {\n\t\t\tkey = -key;\n\t\t}\n\t\treturn key % HASH_SIZE;\n\t}", "title": "" }, { "docid": "6e44ea5510549b724f8c71f0ae9fd67e", "score": "0.6306277", "text": "String put(Integer key, String value);", "title": "" }, { "docid": "f38decc6417bd292e0a96924963aed03", "score": "0.6295079", "text": "private void setKey() {\n\t\t \n\t}", "title": "" }, { "docid": "7033c00ea15ae224ce52985db887e9d4", "score": "0.62872946", "text": "private int hashOf(String key) {\n return key.length();\n }", "title": "" }, { "docid": "2bd02fedb481de7be0d9d305cf66dc4d", "score": "0.6276443", "text": "String key(R request);", "title": "" }, { "docid": "273f28e15246573244803638f6d9079b", "score": "0.6273259", "text": "public abstract String mapItemToKey(String str);", "title": "" }, { "docid": "9c94275cc7ac35ea14d2f4e5a32a2258", "score": "0.62559205", "text": "public short key();", "title": "" }, { "docid": "167142f88af1b78f901eda8e0d9868ff", "score": "0.625504", "text": "void setKeyNumber(int number)\r\n {\r\n number_of_key = number;\r\n }", "title": "" }, { "docid": "120399feab67d15046ab02380007b58d", "score": "0.62469906", "text": "@Override\n default String getKey(){\n return key();\n }", "title": "" }, { "docid": "c3b30bc094c95c2a1beb9fb2227874f6", "score": "0.6238771", "text": "default String normalizeKey(String key) {\r\n\t\treturn key.intern();\r\n\t}", "title": "" }, { "docid": "66c69ce64647878168a2f2b52a337264", "score": "0.6222908", "text": "String process_key () throws BaseException;", "title": "" }, { "docid": "d988b446eb29ab3bec8a5ff73d5a0340", "score": "0.6216906", "text": "public String getKey() {\n return key;\n }", "title": "" }, { "docid": "d988b446eb29ab3bec8a5ff73d5a0340", "score": "0.6216906", "text": "public String getKey() {\n return key;\n }", "title": "" }, { "docid": "91ac010b504bbc93e87ff927fdb6e374", "score": "0.62028956", "text": "public String generateKey(String str, String key)\n{\n int x = str.length();\n \n for (int i = 0; ; i++)\n {\n if (x == i)\n i = 0;\n if (key.length() == str.length())\n break;\n key+=(key.charAt(i));\n }\n return key;\n}", "title": "" }, { "docid": "c1cfdc1f211b1940aeb780707cabbe87", "score": "0.62019664", "text": "public String key() {\n return this.key;\n }", "title": "" }, { "docid": "c1cfdc1f211b1940aeb780707cabbe87", "score": "0.62019664", "text": "public String key() {\n return this.key;\n }", "title": "" }, { "docid": "c1cfdc1f211b1940aeb780707cabbe87", "score": "0.62019664", "text": "public String key() {\n return this.key;\n }", "title": "" }, { "docid": "c1cfdc1f211b1940aeb780707cabbe87", "score": "0.62019664", "text": "public String key() {\n return this.key;\n }", "title": "" }, { "docid": "8c15f1e66d0a3b2b01831ed5b704ef38", "score": "0.6200969", "text": "@Override\n public int key() {\n return this.key;\n }", "title": "" }, { "docid": "122865c63b0a60a15d90f8a3525ae3f1", "score": "0.6194746", "text": "private int hash1(T key) {\n return (key.toString().charAt(0) + key.toString().length())%newTable.length;\r\n }", "title": "" }, { "docid": "dc58027e5fcf64f4e36415c589adad15", "score": "0.6190114", "text": "public void inc(String key);", "title": "" }, { "docid": "aa2a05d48a3cdec3af91dde21853b40c", "score": "0.6188582", "text": "public String getKey()\n\t{\n\t\treturn key;\n\t}", "title": "" }, { "docid": "ba90c8c12a2190d3bb616aa0fab3ac22", "score": "0.616357", "text": "public String getMinKey();", "title": "" }, { "docid": "f7004dcef90c0a4a12dfe897f92d4ddc", "score": "0.61619586", "text": "public void setKey(String key) {\n this.key = key;\n }", "title": "" }, { "docid": "14555ef973b45711b7afa6445f797dbb", "score": "0.61511606", "text": "@Override\n public String getKey() {\n return key;\n }", "title": "" }, { "docid": "015225661433daf96031dd3cf0b76dab", "score": "0.61473584", "text": "public int getKey() {\r\n return key;\r\n }", "title": "" }, { "docid": "de41509315c194e9920e0f12ef9cff77", "score": "0.61345756", "text": "public String getKey() {\r\n return key;\r\n }", "title": "" }, { "docid": "de41509315c194e9920e0f12ef9cff77", "score": "0.61345756", "text": "public String getKey() {\r\n return key;\r\n }", "title": "" }, { "docid": "de41509315c194e9920e0f12ef9cff77", "score": "0.61345756", "text": "public String getKey() {\r\n return key;\r\n }", "title": "" }, { "docid": "77be166ae7c14b34ef97f06a1101c6bd", "score": "0.6122845", "text": "byte[] getKey();", "title": "" }, { "docid": "5f595561dcd9034bbe8e4a619e85a61b", "score": "0.61185485", "text": "public void setKey(String key) {\r\n this.key = key;\r\n }", "title": "" }, { "docid": "962575841682b48e718cfdf55db37dcc", "score": "0.61137635", "text": "public void setKey(final String key);", "title": "" }, { "docid": "962575841682b48e718cfdf55db37dcc", "score": "0.61137635", "text": "public void setKey(final String key);", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.61131763", "text": "K getKey();", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.61131763", "text": "K getKey();", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.61131763", "text": "K getKey();", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.61131763", "text": "K getKey();", "title": "" } ]
07ecfbd9d9d23bd7101bd4ca39fd2076
E' apresentada a lista de titulos de todas as seccoes de topo do documento, precedido pelo seu identificador unico.
[ { "docid": "acdb68754ca7166aac34009c14b98e91", "score": "0.0", "text": "public ArrayList<String> listTopSections() {\n\t return super.listSections();\n }", "title": "" } ]
[ { "docid": "f08663ff6b9b13285ec2855a0266c8cb", "score": "0.6465089", "text": "List<Topo> getLoanTopos(Utilisateur utilisateur);", "title": "" }, { "docid": "2314707a2c1f43298f55c69fa5f9232a", "score": "0.58820045", "text": "Collection<Dominio> consultarTiposDocumentos();", "title": "" }, { "docid": "fa6d034b68ec8cbce3ad094258441137", "score": "0.58748686", "text": "public List<Documento> getDocumentos() {\n if (info.getUser().getLista().getId() == 6 || info.getUser().getLista().getId() == 7) {\r\n return gest.devolverDoc();\r\n } else {\r\n return gest.usuarioDocumentos(info.getUser().getId());\r\n }\r\n \r\n }", "title": "" }, { "docid": "2178566f6cd2f68c24d316031d8f9a6a", "score": "0.5830939", "text": "public br.gov.cultura.DitelAdm.wsdl.TipoConferencia[] listarTiposConferencia(java.lang.String siglaSistema, java.lang.String identificacaoServico, java.lang.String idUnidade) throws java.rmi.RemoteException;", "title": "" }, { "docid": "7751af481843e281b8569c0eef7289e6", "score": "0.58108944", "text": "@Override\r\n\tpublic List<Utente> listaUtentiScadenze() throws Eccezione {\n\t\tList<Long> idUtentiScadenze = PrestitoDao.listaIdUtentiScadenze();\r\n\t\tList<Utente> utenti = new ArrayList<>();\r\n\t\t// per ogni id utente trovato, recuper l'utente corrispondente\r\n\t\tfor(Long id: idUtentiScadenze) {\r\n\t\t\tutenti.add(UtenteDao.cercaUtentePerId(id));\r\n\t\t}\r\n\t\treturn utenti;\r\n\t}", "title": "" }, { "docid": "d266e02a3853e8bf55cfa79f98eaaba7", "score": "0.57342666", "text": "private Collection<Integer> consultarOrdemServicoPorCodigoCliente(Integer codigoCliente, Integer documentoCobranca, String origemOrdemServico)\r\n\t\t\tthrows ControladorException {\r\n\r\n\t\tSet colecaoOS = new HashSet();\r\n\r\n\t\ttry {\r\n\t\t\tCollection colecaoOSRASolicitantes = repositorioOrdemServico.recuperaOSPorCodigoClienteRASolicitante(codigoCliente);\r\n\t\t\tcolecaoOS.addAll(colecaoOSRASolicitantes);\r\n\r\n\t\t\tCollection colecaoOSClienteImovel = repositorioOrdemServico.recuperaOSPorCodigoCliente(codigoCliente, origemOrdemServico);\r\n\t\t\tcolecaoOS.addAll(colecaoOSClienteImovel);\r\n\r\n\t\t\tif (documentoCobranca != null) {\r\n\t\t\t\tCollection colecaoOSCobrancaDocumento = repositorioOrdemServico.recuperaOSPorCodigoClienteCobrancaDocumento(codigoCliente);\r\n\t\t\t\tcolecaoOS.addAll(colecaoOSCobrancaDocumento);\r\n\t\t\t}\r\n\r\n\t\t} catch (ErroRepositorioException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new ControladorException(\"erro.sistema\", e);\r\n\r\n\t\t}\r\n\r\n\t\treturn colecaoOS;\r\n\t}", "title": "" }, { "docid": "121e71b77c37c7a13a3f786cbe403299", "score": "0.5637188", "text": "public void listar() {\n if (!(this.cabeza == null && this.cola == null)) {\n\n // creamos el nodo que nos va a recorres la lista nodo \n // por nodo imprimedo el valor que hay en cada nodo \n NodoSimple aux = cabeza;\n // ciclo por el cual el nodo recorre la lista hasta que la cola tenga el valor de null\n int i = 0;\n while (aux != null) {\n System.out.println(\"el dato :\" + \"[\" + aux.getdato() + \"]\" + \" \" + \"esta en la posicion\"\n + \"(\" + i + \")\" + \"de la lista\");\n\n aux = aux.getsiguiente();\n i++;\n }\n }\n\n }", "title": "" }, { "docid": "14bc536061c7cec14e6d3ed88556acea", "score": "0.5617247", "text": "public void listarConceptos () {\n CreaQuery query = new CreaQuery();\n setList(query.selectConceptos(id_proyecto, id_presupuesto, id_partida, id_subpartida));\n \n //System.out.println(id_partida);\n //System.out.println(id_proyecto +\" \"+ id_presupuesto);\n /*try {\n con.close();\n }catch(SQLException e) {\n System.out.println(e.getMessage());\n }*/\n \n \n \n }", "title": "" }, { "docid": "1b51c2c61489261329b1f5219c792d8f", "score": "0.5608891", "text": "public String listarSensores(){\r\n String str = \"\";\r\n for(Paciente x:pacientes){//Para cada paciente do sistema ele armazena uma string com os padroes do protocolo de comunicação\r\n str += x.getNick()+\"-\"+x.getNome()+\"#\";\r\n }\r\n return str;\r\n }", "title": "" }, { "docid": "22174f622117cb812134f1afae1bb1c8", "score": "0.5606013", "text": "private void caricamentoListe() {\n\t\tcaricaListaGruppoAttivitaIva();\n\t}", "title": "" }, { "docid": "d8d82f93a1f6fa5030b5fa21facc2483", "score": "0.55822206", "text": "public List<Cliente> getTuttiClienti() {\r\n\r\n\t\treturn cDAO.getTuttiClienti();\r\n\t}", "title": "" }, { "docid": "f768f78a506631241b46ff0ff23bd442", "score": "0.55645055", "text": "public void mostrarLista(){\n Nodo recorrer=inicio;\n while(recorrer!=null){\n System.out.print(\"[\"+recorrer.Nombre+\", \"+recorrer.Telefono+\"]-->\");\n recorrer=recorrer.siguiente;\n }\n }", "title": "" }, { "docid": "36e9e514cb7b60e444b39e650d2734eb", "score": "0.55641246", "text": "void listarContatos(){\r\n for(Contato contato: contatos){\r\n contato.imprimirContato();\r\n }\r\n }", "title": "" }, { "docid": "996cdb714bb945bdf66a02c1d887faba", "score": "0.55324566", "text": "List<Tarjeta> obtenerTarjetasDeUsuario(Long usuarioId);", "title": "" }, { "docid": "a345d387b8d8742eb3b0f73a352f11d8", "score": "0.5512418", "text": "private List<Ponderacion> ponderar(Collection<Tarea> coleccionTareas,Date fecha) {\n \tponderar(fecha);\n \t\n \tList<Ponderacion> p = new ArrayList<Ponderacion>();\n\n logger.info(\"Crear la lista de las ponderaciones del subconj. de tareas\");\n \n \tfor (Tarea tarea : coleccionTareas) {\n if (tarea.isRealizada()) continue;\n p.add(tarea.getPonderacion());\n }\n \treturn p;\n }", "title": "" }, { "docid": "0fc95a8967cfb9dfc83d672d33122866", "score": "0.5500033", "text": "public List<DocumentoSunat> getListaPorOrdenCompraYTipoDocumento(Object o) throws DAOException{\r\n\t\tList<DocumentoSunat> lista = null;\r\n\t\ttry{\r\n\t\t\tlista = (List) getSqlMapClientTemplate().queryForList(getNameSpace() + \".getListaPorOrdenCompraYTipoDoc\", o);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new DAOException (e);\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "title": "" }, { "docid": "314ba9a6fb3830890ea4462c5ed3d614", "score": "0.54992884", "text": "public void cargarDatosContaminantes(){\n listaconta=lectorcont.getContaminantes();\n System.out.println(\"Datos cargados en Lista Contaminantes\");\n }", "title": "" }, { "docid": "9e68a49209376e540a3ab0bbe8d4eaae", "score": "0.54860365", "text": "public List<Topo> listeTopoByLoanerId(Integer loanerId) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a249520ae8c1db6f7599781ae4bf389e", "score": "0.5458919", "text": "public List<Cliente> getListaClienteActivoSinUsuario() {\n EntityManager em = getEntityManager();\n \n try {\n \n String consulta = \"select c from Cliente c where c.idUsuario is null and c.estado like 'ACTIVO' order by coalesce(c.nombre,c.razonSocial)\";\n Query q = em.createQuery(consulta); \n return q.getResultList();\n \n }finally {\n em.close();\n }\n }", "title": "" }, { "docid": "d7a25cf20dc87aac4bb398ad9601bb41", "score": "0.5457055", "text": "public List<Cliente> getListaClienteOrdenados() {\n EntityManager em = getEntityManager();\n \n try {\n \n String consulta = \"select c from Cliente c order by coalesce(c.nombre,c.razonSocial) \";\n Query q = em.createQuery(consulta); \n return q.getResultList();\n \n }finally {\n em.close();\n }\n }", "title": "" }, { "docid": "48654b62f7aab05b4907c5f15be008ab", "score": "0.5436018", "text": "List<Tarjeta> obtenerTarjetasDeUsuarioV2(Long usuarioId);", "title": "" }, { "docid": "a461ab53d94b0eed3cf719a79022abfe", "score": "0.5425235", "text": "public List darSucesores() {\n\t\treturn l;\n\t}", "title": "" }, { "docid": "9cad85e81fa528d92e2edf1d66a2a1a0", "score": "0.54214084", "text": "List<DtoCliente> listar();", "title": "" }, { "docid": "621114878bfc9e1ef85fa4390688116c", "score": "0.5417354", "text": "public TipoReferenciaList getSegmentos(){\n return localSegmentos;\n }", "title": "" }, { "docid": "6bfdef64789895610f0decc10c7db19c", "score": "0.54111636", "text": "private static void listTiendasWithEmpleado() {\n System.out.println();\n\n Empleado empleado = selectEmpleado();\n System.out.println();\n\n if (empleado != null) {\n List<EmpleadosTiendas> relsEmpleadoTiendas = empleado.getTiendas();\n\n if (relsEmpleadoTiendas.size() > 0) {\n for (EmpleadosTiendas rel : relsEmpleadoTiendas) {\n Tienda tienda = rel.getTienda();\n\n System.out.println(tienda.getId() + \". \"\n + tienda.getNombre()\n + \" - \" + tienda.getCiudad()\n + \" (\" + tienda.getProvincia().getNome() + \")\"\n + \" (jornada: \" + rel.getJornada() + \")\"\n );\n }\n } else {\n System.out.println(\"No hay tiendas en las que trabaje el empleado seleccionado\");\n }\n }\n }", "title": "" }, { "docid": "99ab4619e90c226f3612333a143afaa1", "score": "0.5382992", "text": "private static void listEmpleadosFromTienda() {\n System.out.println();\n\n Tienda tienda = selectTienda();\n System.out.println();\n\n if (tienda != null) {\n List<EmpleadosTiendas> empleados = tienda.getEmpleados();\n\n if (empleados.size() > 0) {\n for (EmpleadosTiendas e : empleados) {\n Empleado empleado = e.getEmpleado();\n\n System.out.println(empleado.getId() + \". \"\n + empleado.getNombreCompleto()\n + \" (jornada: \" + e.getJornada() + \")\"\n );\n }\n } else {\n System.out.println(\"No hay empleados en la tienda seleccionada\");\n }\n }\n }", "title": "" }, { "docid": "d928581497a280f93803a08666604f47", "score": "0.53808594", "text": "private static void listTiendasWithProducto() {\n System.out.println();\n\n Producto producto = selectProducto();\n System.out.println();\n\n if (producto != null) {\n List<ProductosTiendas> relsProductoTiendas = producto.getTiendas();\n\n if (relsProductoTiendas.size() > 0) {\n for (ProductosTiendas rel : relsProductoTiendas) {\n Tienda tienda = rel.getTienda();\n\n System.out.println(tienda.getId() + \". \"\n + tienda.getNombre()\n + \" - \" + tienda.getCiudad()\n + \" (\" + tienda.getProvincia().getNome() + \")\"\n + \" (stock: \" + rel.getStock() + \")\"\n );\n }\n } else {\n System.out.println(\"No hay tiendas en las que se venda el producto seleccionado\");\n }\n }\n }", "title": "" }, { "docid": "8382c59c4a9195fbb8fcab1a49ca6266", "score": "0.53698045", "text": "public void listar() {\n // Verificamos que la lista este vacia\n if (!vacia()) {\n // Crea una nodo y lo inicializamos en el inicio\n NodoCircular aux = inicio;\n // Posicion de los elementos de la lista.\n int i = 0;\n // Recorre la lista hasta llegar nuevamente al incio de la lista.\n do {\n System.out.println(\"el dato :\" + \" \" + \"[\" + aux.getDato().getNombre() + \"]\" + \" \" + \"esta en la posicion:\"\n + \" \" + \"(\" + i + \")\" + \"de la lista\");\n // Avanza al siguiente nodo.\n aux = aux.getSiguiente();\n // Incrementa el contador del ciclo\n i++;\n } while (aux != inicio);\n }\n System.out.println(\"\");\n }", "title": "" }, { "docid": "67bd409eb0a8e3b41e769c146049b19e", "score": "0.5365546", "text": "@Override\n public List<String> getListaPkIdSubcategoriasDasDoencasSeleccionadas()\n {\n//InterCidHipoteseDiagnosticoBean.getInstanciaBean().getListaPkIdSubcategoriasDasDoencasSeleccionadas()\n//System.err.print(\"Teste 3: ambConsulta.devolveValor(): Doenças: \" + super.getListaPkIdSubcategoriasDasDoencasSeleccionadas().toString()); \n return super.getListaPkIdSubcategoriasDasDoencasSeleccionadas();\n }", "title": "" }, { "docid": "2bfda3528439c535b7459be3b440251d", "score": "0.53581387", "text": "public br.gov.cultura.DitelAdm.wsdl.TipoProcedimento[] listarTiposProcedimento(java.lang.String siglaSistema, java.lang.String identificacaoServico, java.lang.String idUnidade, java.lang.String idSerie) throws java.rmi.RemoteException;", "title": "" }, { "docid": "3935ade734f12f41f36f2132295c77e8", "score": "0.53442734", "text": "@Override\r\n\tpublic List<Cliente> listar() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f8bf45eb837cfec586f5b6174119512f", "score": "0.53342396", "text": "public List<DetallesTiposCotizantes> getListaDetallesTiposCotizantes() {\n if (listaDetallesTiposCotizantes == null) {\n listaDetallesTiposCotizantes = new ArrayList<DetallesTiposCotizantes>();\n listaDetallesTiposCotizantes = administrarDetallesTiposCotizantes.detallesTiposCotizantes(tipoCotizanteSeleccionado.getSecuencia());\n RequestContext context = RequestContext.getCurrentInstance();\n context.update(\"form:datosDetallesTiposCotizantes\");\n\n }\n return listaDetallesTiposCotizantes;\n }", "title": "" }, { "docid": "77891567f8e0775f90f266afeb9634b7", "score": "0.53192484", "text": "private void listarInformacion() {\n\n try {\n listaSolicitudes\n = this.getConsultarDevolucionContribuyenteService().listaSolicitudesPorContribuyente(getRfc(), String.valueOf(getMostrarSolicitudId()), getTipoSolicitudId(), String.valueOf(getEjercicioId()));\n totalSolicitudes = listaSolicitudes.size();\n\n if (ConstantesPaginador.NO_COLS_PAGINA_DEV_CONT < totalSolicitudes) {\n this.muestraPaginador = Boolean.TRUE;\n } else {\n this.muestraPaginador = Boolean.FALSE;\n }\n\n this.verColumnasPago = getMostrarSolicitudId().equals(ConstantesDyCNumerico.VALOR_13) ? Boolean.TRUE : Boolean.FALSE;\n } catch (SIATException siate) {\n getLogger().error(\"Hubo un error al mostrar las solicitudes a solventar: \" + siate);\n }\n\n }", "title": "" }, { "docid": "b7a2f7f9bc284dd9cd374b9b7796894c", "score": "0.53151405", "text": "private static void opcionOrganizar() {\n File carpeta = seleccionarDirectori();\n if (carpeta == null) {\n System.out.println(\"Se ha cancelat\");\n return;\n }\n OrganizarCarpeta novaOrg = new OrganizarCarpeta(carpeta);\n novaOrg.organitzarCarpetaPerFecha();\n }", "title": "" }, { "docid": "023f55b7a9fa868bbead507d80b7aff3", "score": "0.5312815", "text": "@Override\n\tpublic List<GENERACIONCODIGOS> subirServidor(String... strings) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "49fa87d087f634756f707fca14824f6e", "score": "0.52924556", "text": "public ContatoList getContatos(){\n return localContatos;\n }", "title": "" }, { "docid": "49fa87d087f634756f707fca14824f6e", "score": "0.52924556", "text": "public ContatoList getContatos(){\n return localContatos;\n }", "title": "" }, { "docid": "ce34dd97a0805696a276ccbad4d6f3a8", "score": "0.5292223", "text": "public List<DomandaTirocinio> getAllDomande() {\r\n List<DomandaTirocinio> newList = new ArrayList<>();\r\n\r\n for (Studente s: studenti) {\r\n newList.addAll(s.getDomandeTirocinio());\r\n }\r\n\r\n return newList;\r\n }", "title": "" }, { "docid": "b2810712cddc56738f306ec3fd0a255a", "score": "0.52881145", "text": "public void iniciarOleada() {\r\n\t\tfor (Infectado e : nivel.getEntidadesDeOleada()) {\r\n\t\t\tentidadesAA.add(e);\r\n\t\t\toleada.add(e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9ad54c78df51204e0e3e33934c433311", "score": "0.5286944", "text": "public String getSpettacoloId(){\r\n\t\treturn idSpettacolo;\r\n\t}", "title": "" }, { "docid": "8b61a1493be2f7aaed3863aface5f9ef", "score": "0.52840525", "text": "@Local\npublic interface TopoDao {\n\n /**\n * Renvoit le topo qui possède cet ID.\n *\n * @param topoID\n * @return topo de type Topo\n */\n Topo getTopoByID(Integer id);\n\n /**\n * Recherche les topos dans la BDD correspondant aux paramètres.\n *\n * @param regionID (Integer)\n * @param pseudo (String)\n * @param keywords (String)\n * @return List of Topo\n */\n List<Topo> searchTopos(Integer regionID, String pseudo, String keywords);\n\n /**\n * Ajoute un nouveau topo dans la BDD.\n *\n * @param topo de type Topo\n */\n void persist(Topo topo);\n\n /**\n * Met à jour le topo dans la BDD.\n *\n * @param topo de type Topo\n */\n void update(Topo topo);\n\n /**\n * Supprime le topo de la BDD.\n *\n * @param topo de type Topo\n */\n void remove(Topo topo);\n\n /**\n * Ajoute un utilisateur à la liste de demande de prêt pour un topo.\n *\n * @param topo\n * @param utilisateur\n */\n void addDemandePret(Topo topo, Utilisateur utilisateur);\n\n /**\n * Renvoit la liste des topos que possède cet utilisateur.\n *\n * @param utilisateur propriétaire des topos de type Utilisateur\n * @return liste de type Topo\n */\n List<Topo> getOwnTopos(Utilisateur utilisateur);\n\n /**\n * Renvoit la liste des topos que cet utilisateur a en cours d'emprunt.\n *\n * @param utilisateur\n * @return Une liste de Topo\n */\n List<Topo> getLoanTopos(Utilisateur utilisateur);\n\n /**\n * Renvoit la liste des topos dont cet utilisateur à fait une demande de prêt.\n *\n * @param utilisateur qui a fait la demande de prêt.\n * @return liste Set de type Topo\n */\n Set<Topo> getDemandePretTopos(Utilisateur utilisateur);\n\n /**\n * Renvoit l'utilisateur correspondant à l'ID\n *\n * @param userID\n * @return Utilisateur\n */\n Utilisateur getUserByID(Integer userID);\n\n /**\n * Accepte la demande de l'utilisateur pour ce topo.\n * Ajoute à l'utilisateur le topo en cours de pret,\n * retire l'utilisateur de la liste de demande de prêt.\n * Rend le topo indisponible.\n *\n * @param topo\n * @param user\n */\n void acceptDemandTopo(Topo topo, Utilisateur user);\n\n /**\n * Refuse ou annule la demande de l'utilisateur pour ce topo.\n * Retire l'utilisateur demandeur de la liste du topo.\n *\n * @param topo\n * @param user\n */\n void refuseDemandTopo(Topo topo, Utilisateur user);\n\n /**\n * Supprime l'utilisateur en cours de prêt dans le topo\n * et change le statut du topo en disponible.\n *\n * @param topoID\n */\n void cancelPretTopo(Topo topo);\n\n}", "title": "" }, { "docid": "0e0b48eb399b80ef54aa6e8b974c19b1", "score": "0.5280948", "text": "List<Tarjeta> obtenerTarjetasDeCuenta(Long cuentaId);", "title": "" }, { "docid": "ccd49a51fa95c73bd9912f8e52f9768d", "score": "0.5280295", "text": "List<Tarjeta> obtenerTarjetasDeUsuarioV3(Long usuarioId);", "title": "" }, { "docid": "ff6d857bbd5b152851f37956576b02eb", "score": "0.52712214", "text": "public List<Cliente> ListarClientes();", "title": "" }, { "docid": "a528d6f84b79f59c54ef4286b49752f2", "score": "0.52706146", "text": "public List<Usuario> listarTecnicosGrupo(Encargado e) {\n\t\tSystem.out.println(\"hasta acá llega la cedula: \"+e.getCedula());\n\t\tList<Usuario> todos = em.createNamedQuery(\"tecnicosDelGrupoDelEncargado\").setParameter(1,em.getReference(Encargado.class, e.getCedula())).getResultList();\n\t\treturn todos;\n\t}", "title": "" }, { "docid": "1bc2005a0ea76853f2a0516552c07e2e", "score": "0.5265411", "text": "public Collection<OrdemServicoHelper> pesquisarOrdensServicosAssociados(Integer idregistroAtendimento) throws ControladorException {\r\n\t\tCollection<OrdemServicoHelper> colecaoOs = new ArrayList<OrdemServicoHelper>();\r\n\t\ttry {\r\n\t\t\tCollection retornoColecao = repositorioOrdemServico.pesquisarOrdensServicosAssociados(idregistroAtendimento);\r\n\r\n\t\t\tif (retornoColecao != null && !retornoColecao.isEmpty()) {\r\n\r\n\t\t\t\tIterator itera = retornoColecao.iterator();\r\n\t\t\t\t\r\n\t\t\t\tOrdemServico os = null;\r\n\t\t\t\t\r\n\t\t\t\tServicoTipo servTipo = null;\r\n\t\t\t\t\r\n\t\t\t\twhile (itera.hasNext()) {\r\n\t\t\t\t\tObject[] retorno = (Object[]) itera.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\tos = new OrdemServico();\r\n\t\t\t\t\t\r\n\t\t\t\t\tservTipo = new ServicoTipo();\r\n\t\t\t\t\t \r\n\t\t\t\t\tOrdemServicoHelper osHelper = new OrdemServicoHelper();\r\n\t\t\t\t\t\r\n\t\t\t\t\tos.setId((Integer) retorno[0]);\r\n\t\t\t\t\tos.setDataGeracao((Date) retorno[1]);\r\n\t\t\t\t\tservTipo.setId((Integer) retorno[2]);\r\n\t\t\t\t\tservTipo.setDescricao((String) retorno[3]);\r\n\t\t\t\t\tos.setServicoTipo(servTipo);\t\t\t\t\t\r\n\t\t\t\t\tos.setDataEncerramento((Date) retorno[4]);\r\n\t\t\t\t\tos.setDescricaoParecerEncerramento((String) retorno[5]);\r\n\r\n\t\t\t\t\tObterDescricaoSituacaoOSHelper obterDescricaoSituacaoOSHelper = this.obterDescricaoSituacaoOS(os.getId());\r\n\t\t\t\t\t\r\n\t\t\t\t\tosHelper.setNumeroOrdemServico(os.getId().toString());\r\n\t\t\t\t\tosHelper.setIdServicoTipo(os.getServicoTipo().getId().toString());\r\n\t\t\t\t\tosHelper.setDescricaoServicoTipo(os.getServicoTipo().getDescricao());\r\n\t\t\t\t\tosHelper.setDataGeracao(Util.formatarData(os.getDataGeracao()));\r\n\t\t\t\t\tosHelper.setDataEncerramento(Util.formatarData(os.getDataGeracao()));\r\n\t\t\t\t\tosHelper.setSituacao(obterDescricaoSituacaoOSHelper.getDescricaoSituacao());\r\n\t\t\t\t\tosHelper.setParecerEncerramento(os.getDescricaoParecerEncerramento());\r\n\r\n\t\t\t\t\tcolecaoOs.add(osHelper);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (ErroRepositorioException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tthrow new ControladorException(\"erro.sistema\", ex);\r\n\t\t}\r\n\r\n\t\treturn colecaoOs;\r\n\t}", "title": "" }, { "docid": "f6586cb7728d38d888c32fca949ca157", "score": "0.5257682", "text": "public ArrayList<TreeMap<String, String>> listarClientes() throws Exception{\n\t\t\n\t\tArrayList<TreeMap<String, String>> clientes = new ArrayList<TreeMap<String,String>>();\n\t\tTreeMap datos;\n\t\t\n\t\tfor(int i = 0; i < (new MultiCliente()).listar().size(); i++){\n\t\t\t\n\t\t\tdatos = (new MultiCliente()).listar().get(i).toTreeMap();\n\t\t\tclientes.add(datos);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn clientes;\n\t\t\n\t}", "title": "" }, { "docid": "7c5b2d03218f2cb254e5a8c51c2e9495", "score": "0.52569854", "text": "public List<Topo> listeTopoByBorrowerId(Integer borrowerId) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8629a947a7a582e75b7516aa49ba8be0", "score": "0.5256337", "text": "public TreeMap<Integer, String> cargarCursoEstudiante() {\n TreeMap<Integer, String> listaCursos = new TreeMap<Integer, String>();\n ConexionBD con = new ConexionBD();\n ResultSet rs = con.EjecutarQuery(\"SELECT IDCurso, Nombre_Curso FROM cursos \");\n try {\n while (rs.next()) {\n int id = rs.getInt(\"IDCurso\");\n String curso = rs.getString(\"Nombre_Curso\");\n listaCursos.put(id, curso);\n }\n } catch (SQLException ex) {\n con.Desconectar();\n return null;\n }\n con.Desconectar();\n return listaCursos;\n }", "title": "" }, { "docid": "ab506c118f84d8057d7f40bb81febb64", "score": "0.5242067", "text": "public List<Titular> getTitularesContas() {\n\t\t//String select = \"select distinct t from Titular t left join fetch t.Contas\";\n\t\t\n\t\t//TypedQuery <Titular> query = em.createQuery(select, Titular.class);\n\t\tTypedQuery <Titular> query = em.createNamedQuery(\"getTitularesContas\",Titular.class);\n\t\t\n\t\treturn query.getResultList();\n\t}", "title": "" }, { "docid": "d468919a2078cc53cd650e4c67dfb6f9", "score": "0.52413225", "text": "public TipoReferenciaList getInstrucoes(){\n return localInstrucoes;\n }", "title": "" }, { "docid": "7182b68302e6c48e89aa557c6220d50f", "score": "0.52399915", "text": "private void sustituirPadresCursos() {\n for (int i = 0; i < listaCursos.size(); i++) {\n Curso curso = listaCursos.get(i);\n Curso cursoPadre = daoCurso.buscar(curso.getIdPadre());\n\n if (cursoPadre != null) {\n curso.setNombre_padre(daoCurso.buscar(curso.getIdPadre()).getNombre_cas());\n }\n }\n }", "title": "" }, { "docid": "43d5a6e5a597914aac8f4d6311be6d10", "score": "0.52379894", "text": "public String getIdSpettacolo() {\r\n\t\treturn idSpettacolo;\r\n\t}", "title": "" }, { "docid": "3cce5ed133d2759c11985440a5d2d0b3", "score": "0.5227079", "text": "public void tornaIndietro() {\n\tControllerSchermataPrincipaleCliente.visualizzaSchermataPrincipaleCliente();\n }", "title": "" }, { "docid": "8306aaddb649cd33ed59880f27de9618", "score": "0.5222562", "text": "public List<SectorLaboral> listaSectores () throws Exception{\r\n\t\treturn daoInfoLab.listaSectores();\r\n\t}", "title": "" }, { "docid": "e15bb03b66c08458b0678345fdc31bd4", "score": "0.5219495", "text": "List<CodigoDescripcionType> consultarTiposDocumento();", "title": "" }, { "docid": "fa88b4d520eab73c2e0d2012a85c09a2", "score": "0.5214739", "text": "void buscarContato(String identificador){\r\n int pos = encontraContato(identificador);\r\n if(pos == -1) System.out.println(\"Contato não encontrado!\");\r\n else contatos.get(pos).imprimirContato();\r\n }", "title": "" }, { "docid": "fee0553d163f094bda904be9a1d263dd", "score": "0.52112234", "text": "public List<Cliente> getTodosClientes() {\t\t\r\n\t\tList<Cliente> retorno = this.clienteDAO.getLista();\r\n\t\treturn retorno;\r\n\t}", "title": "" }, { "docid": "cd775e60f64dbf3e208854bf0e342b64", "score": "0.5197995", "text": "public void seccionA(){\n conexion.delete();\n\n\n\n for (int i = 0; i <= 13; i++){\n String dato = \"\" + lista.get(0).get(i);\n String nuevoDato = dato.replace(\" \", \"\");\n conexion.insert(nuevoDato, nuevoDato);\n grafo.addNode(nuevoDato).addAttribute(\"ui.label\", nuevoDato);\n\n }\n\n for (int i = 1; i <= 13; i++){\n for (int j = 1; j <= 13; j++){\n int numero = Integer.parseInt(\"\"+lista.get(i).get(j));\n if(numero > 0){\n String envia = \"\"+lista.get(0).get(j-1);\n String enviador = envia.replace(\" \", \"\");\n String recibe = \"\"+lista.get(0).get(i-1);\n String recibidor = recibe.replace(\" \" ,\"\");\n\n edges[contador] = grafo.addEdge(enviador + recibidor,enviador ,recibidor);\n edges[contador].addAttribute(\"length\", numero);\n edges[contador].addAttribute(\"label\",\"\"+edges[contador].getNumber(\"length\"));\n conexion.relate(recibidor,enviador, \"\"+numero );\n contador =+ 1;\n }\n\n }\n }\n grafo.display(true);\n }", "title": "" }, { "docid": "5547149705ddcdccc4e90978ab49a204", "score": "0.51927257", "text": "private void dibujarObstaculos() {\n ArrayList<Obstaculo> obstaculos = meuMundo.getObstaculos();\n for (Obstaculo o : obstaculos) {\n if (o.getTipo().equals(Obstaculo.Tipo.NORMAL)) {\n spritebatch.draw(AssetsXogo.pinchoNegro, o.getPosicion().x, o.getPosicion().y, o.getTamano().x, o.getTamano().y);\n }\n if (o.getTipo().equals(Obstaculo.Tipo.INVERSO)) {\n spritebatch.draw(AssetsXogo.pinchoInverso, o.getPosicion().x, o.getPosicion().y, o.getTamano().x, o.getTamano().y);\n }\n }\n }", "title": "" }, { "docid": "4ceb214a25e47a3ba85289c44a7c4e8b", "score": "0.51883173", "text": "public void GenerarTitulos(int destino) {\n Object[] titulos = new Object[destino + 1];\n for (int i = 0; i < destino; i++) {\n titulos[i] = \"Ciudad\" + String.valueOf(i + 1);\n }\n titulos[destino] = \"Recursos\";\n getMiModelo().setColumnIdentifiers(titulos);\n getMiModelo().setColumnCount(destino + 1);\n getMiModelo().setRowCount(numero_origenes + 1);\n getMiModelo().setValueAt(\"<<<Disponibilidad\", numero_origenes, destino);\n }", "title": "" }, { "docid": "8cb580a2e7bcfc2fbadc35ee9df0af1e", "score": "0.5176128", "text": "private static void opcionCoordenadas() {\n File carpeta = seleccionarDirectori();\n if (carpeta == null) {\n System.out.println(\"Se ha cancelat\");\n return;\n }\n for (File fitxer : carpeta.listFiles()) {\n if (fitxer.isFile()) {\n Coordenades c = Coordenades.coordenadesDesdeImatge(fitxer);\n if (c.teCoordenades()) {\n System.out.print(\"NOMBRE: \" + fitxer.getName() + \". COORDENADAS \");\n System.out.println(c);\n }\n }\n }\n }", "title": "" }, { "docid": "ee250f57bffeb416ab4bf7c9504ea4c8", "score": "0.5159107", "text": "public br.gov.cultura.DitelAdm.wsdl.Cargo[] listarCargos(java.lang.String siglaSistema, java.lang.String identificacaoServico, java.lang.String idUnidade, java.lang.String idCargo) throws java.rmi.RemoteException;", "title": "" }, { "docid": "5c1d3b960e85bc1386e70ec65919ce91", "score": "0.5156239", "text": "private void caricaListaTipologiaOperazioneCassa() {\n\t\tmodel.setListaTipologiaOperazioneCassa(Arrays.asList(TipologiaOperazioneCassa.values()));\n\t}", "title": "" }, { "docid": "8991031940ba090bebe112d9757f10de", "score": "0.515594", "text": "@Override\r\n public void listarPersonalizados() {\r\n for (Carro personalizados : getPersonalizados()) {\r\n System.out.println(\"Categoria: \"+personalizados.getCategoria()+\", Marca: \"+personalizados.getMarca()+\", Modelo: \"+personalizados.getModelo()+\", Placa: \"+personalizados.getPlaca()+\", Precio: \"+personalizados.getPrecio());\r\n }\r\n }", "title": "" }, { "docid": "6bd8d1d2ca5ee83a867a190cd7867bf2", "score": "0.5153544", "text": "public List<RegistroSesion> listarSesiones();", "title": "" }, { "docid": "122db4065b196d5d00d0cae6dfe9b064", "score": "0.5152713", "text": "public List<ProductoConteoEntity> consultaProductosConteo(Integer conteo) {\n List<ProductoConteoEntity> rta = null;\n try {\n this.initOperation();\n Criteria crit = sesion.createCriteria(ProductoConteoEntity.class);\n crit.createAlias(\"conteo\", \"con\");\n crit.createAlias(\"producto\", \"prod\");\n crit.add(Restrictions.eq(\"con.id\", conteo));\n crit.setFetchMode(\"conteo\", FetchMode.JOIN);\n crit.setFetchMode(\"producto\", FetchMode.JOIN);\n crit.setFetchMode(\"producto.referencia\", FetchMode.JOIN);\n crit.setFetchMode(\"producto.marca\", FetchMode.JOIN);\n crit.setFetchMode(\"producto.categoria\", FetchMode.JOIN);\n crit.setFetchMode(\"producto.subcuenta\", FetchMode.JOIN);\n crit.addOrder(Order.desc(\"id\"));\n rta = crit.list();\n\n } catch (Exception e) {\n e.printStackTrace();\n\n }\n return rta;\n }", "title": "" }, { "docid": "f5867acadaa815167fc31963849c71a8", "score": "0.5152364", "text": "public List<Segnalazione> trovaSegnalazioni() {\n\t\tList<Segnalazione> Segnalazioni = em.createQuery(\"SELECT s FROM Segnalazione s \", Segnalazione.class)\n\t\t\t\t.getResultList()\n\t\t\t\t;\n\n\t\treturn Segnalazioni;\t\t\n\t}", "title": "" }, { "docid": "97498e5c06438cbc768e5998352a4c2f", "score": "0.51461375", "text": "public String doPrepararListadoVacio() {\r\n lista = null;\r\n\r\n return \"/tipoclase/listado\";\r\n }", "title": "" }, { "docid": "b5f9abd6f3fb5302172798b217f9f434", "score": "0.51459575", "text": "public List<Viaje> getAllTrips() throws SQLException {\n ArrayList<Viaje> todos = new ArrayList<>();\n String sql = \"SELECT * FROM viaje\";\n PreparedStatement statement = conn.prepareStatement(sql);\n ResultSet result = statement.executeQuery();\n while (result.next()) {\n int id = result.getInt(1);\n int conductor = result.getInt(3);\n int usuario = result.getInt(2);\n LocalDateTime fecha = result.getTimestamp(4).toLocalDateTime();\n todos.add(new Viaje(id, conductor, usuario, fecha));\n }\n return todos;\n }", "title": "" }, { "docid": "4b5da645b2d20bd125dee88ba26b8bf7", "score": "0.51444954", "text": "@Override\n\tpublic List<Usuario> listaTrabajadores() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c00aaaf0d6b3ae8730f4a7c32c9b120b", "score": "0.51414627", "text": "public static void AfficherComposantes()\n\t\t{\n\t\t\t//Former les Composantes fortements Connexes\n\t\t\tPartitionnement();\n\t\t\t//Collecte des composantes fortements connexes\n\t\t\tint partie =1;\n\t\t\tArrayList<Ville> Array = Ramasser(partie);\n\t\t\tArrayList<ArrayList<Ville>> TAB =new ArrayList<ArrayList<Ville>>(); \n\t\t\twhile(!Array.isEmpty())\n\t\t\t{\n\t\t\t\tpartie++;\n\t\t\t\tTAB.add(Array);\n\t\t\t\tArray = Ramasser(partie);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Les Composantes Fortement Connexes : \");\n\t\t\tint i = 1 ; \n\t\t\tfor(ArrayList<Ville> partition : TAB)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"\\nLa Partion N°\"+i+\" : \");\n\t\t\t\tfor(Ville V : partition)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"-\"+V.getNom());\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "6d2343b5750f7ee47096e443218b4402", "score": "0.5141442", "text": "public List<OportunidadeDia> getListaOportunidadeDia_PodePossuir()\n\t{\n\t\tif (!daoListaoportunidadeDiaPodePossuir)\n {\n OportunidadeDiaServico srv = FabricaServico.getInstancia().getOportunidadeDiaServico(FabricaServico.TIPO_SQLITE);\n\t\tlistaoportunidadeDiaPodePossuir = srv.getPorReferenteAProduto(vo.getId());\n\t\tDCLog.dStack(DCLog.LAZY_LOADER, this, \"Produto.getListaOportunidadeDia_PodePossuir()\",QTDE_LOG_LAZY_LOADER);\n }\n //if (listaoportunidadeDiaPodePossuir==null) {\n\t\t//\tDCLog.d(DCLog.ITEM_NULL, this, \"Produto.getListaOportunidadeDia_PodePossuir() est? null\");\n\t\t//}\n\t\treturn listaoportunidadeDiaPodePossuir;\n\t}", "title": "" }, { "docid": "ebede69e45c7714c32b18de5ef6de07b", "score": "0.51393807", "text": "private TreeMap<String, ArrayList<String>> crearDiccionario() {\n Vertice verAd;\n String id;\n ArrayList<String> adyac = new ArrayList<>();\n TreeMap<String, ArrayList<String>> dict = new TreeMap<>();\n\n for (Vertice vertice : vertices) {\n\n //se guardan bien la lista de vertices\n dict.put(vertice.getId(), new ArrayList<>());\n\n }\n ArrayList<String> ad = new ArrayList<>();\n for (Vertice vertice : vertices) {\n\n vertice.getAristas().forEach((arista) -> {\n ad.add(arista.getFin().getId());\n });\n dict.get(vertice.getId()).addAll(ad);\n ad.clear();\n\n }\n\n return dict;\n }", "title": "" }, { "docid": "0979abd841ecbd4f73ddcf09746bf069", "score": "0.5133774", "text": "public List<OrdenPedido> getPedidosCreados(){\n\n this.listaOrdenesCreadasActual.clear();\n try {\n this.listaOrdenesCreadasActual.addAll((service.getListaOrdenPedido(0)==null)? new ArrayList<>() : service.getListaOrdenPedido(0));\n } catch (ElementoNoEncontradoException e) {\n e.printStackTrace();\n }\n\n return this.listaOrdenesCreadasActual;\n\n }", "title": "" }, { "docid": "ebee794897964e991c0b5c9a9d5f8a0f", "score": "0.5132962", "text": "public List<Cliente> getListaClienteActivo() {\n EntityManager em = getEntityManager();\n \n try {\n \n String consulta = \"select c from Cliente c where c.estado like 'ACTIVO' order by coalesce(c.nombre,c.razonSocial) \";\n Query q = em.createQuery(consulta); \n return q.getResultList();\n \n }finally {\n em.close();\n }\n }", "title": "" }, { "docid": "37a0753d9d9b7b1dc55e443d75bc1551", "score": "0.5132363", "text": "public List<DocumentoCartera> listarPorEmpresa(int idEmpresa) {\n return elementoDAO.findByEmpresa(empresaDAO.findById(idEmpresa).get());\n }", "title": "" }, { "docid": "7436473f09445f09e6277a6da9e48307", "score": "0.5131675", "text": "List<TareaDTO> obtenerTareasPeticion( Long lPeticion ) throws BusinessException;", "title": "" }, { "docid": "009c6d200165dc61d612fe720332b161", "score": "0.5131502", "text": "List<CodigoDescripcionType> consultarTiposTributo();", "title": "" }, { "docid": "98fb80bc865362b1fca1edb9e0169573", "score": "0.5128867", "text": "public List getTodosClientes(){\n return this.clientes;\n }", "title": "" }, { "docid": "8e89c34be5d2297a18e2c3d9c8f533b0", "score": "0.51263636", "text": "@GetMapping(\"/obtenerTipoCliente\")\n\t\t public List<TipoCliente> findAllTipoCliente(){\n\t\t return tipoClienteService.findAll();\n\t\t }", "title": "" }, { "docid": "300c04a47e05d9dfa40d5852ab78a73d", "score": "0.5121205", "text": "public List<TareaDTO> mostrarTareasDelProyecto(Long idProyecto);", "title": "" }, { "docid": "9efd8250d767d8c809b84153664a339c", "score": "0.5117134", "text": "public void getCidadesPeloEstado() {\n if (pessoaFisica.getEstadoFk() != null) {\r\n cidadeNatList = CidadeBO.getByStateId(pessoaFisica.getEstadoFk().getId());\r\n } else {\r\n cidadeNatList.clear();\r\n }\r\n if (endereco.getEstadoFk() != null) {\r\n cidadeEndList = CidadeBO.getByStateId(endereco.getEstadoFk().getId());\r\n } else {\r\n cidadeEndList.clear();\r\n }\r\n if (pessoaFisica.getEstadoEleitoralFk() != null) {\r\n cidadeEleList = CidadeBO.getByStateId(pessoaFisica.getEstadoEleitoralFk().getId());\r\n } else {\r\n cidadeEleList.clear();\r\n }\r\n }", "title": "" }, { "docid": "02586b0f0dba6f979718c2b0a3ad76c2", "score": "0.51078475", "text": "public List<TipoDocumento> getTodos();", "title": "" }, { "docid": "5e6c20562df63da486adf75c1f652f9e", "score": "0.51074755", "text": "public List<Estudiante> getEstudiantesOrdenados() {\n\t\tEntityManager em = emf.createEntityManager();\n\t\tList<Estudiante> listado = em.createQuery(\"SELECT E FROM Estudiante E ORDER BY E.apellido ASC \", Estudiante.class)\n\t\t\t\t.getResultList();\n\n\t\treturn listado;\n\t}", "title": "" }, { "docid": "709798d3de440c8693aeae9b435948c8", "score": "0.5102093", "text": "public GerenciarEleitores(Logado logado) {\n initComponents();\n this.logado = logado;\n this.logado.setTitle(\"Lista de Pessoas cadastradas no sistema\");\n this.atualizar();\n }", "title": "" }, { "docid": "1ae212d85a2cb2ed3746821d8b563a71", "score": "0.51014996", "text": "public static String listar(int[] pilha, int topo) {\r\n //String de retorno\r\n String temp = \"\";\r\n for (int i = 0; i < topo; i++) {\r\n temp = temp + (i) + \"-\" + pilha[i] + \"\\n\";\r\n }\r\n return temp;\r\n }", "title": "" }, { "docid": "c6525ff99cddc6aa25e861cece1c7f0b", "score": "0.50978655", "text": "public String doPrepararListado() {\r\n return \"/tipoclase/listado\";\r\n }", "title": "" }, { "docid": "c3f91ca3d56b03839e2be01bed61c7ee", "score": "0.5097147", "text": "private java.util.List<ws.Serie> findSerieConTitulo(java.lang.String titulo) {\n ws.DrawdedeWebService port = service.getDrawdedeWebServicePort();\n return port.findSerieConTitulo(titulo);\n }", "title": "" }, { "docid": "b46d302c4e3ef0bf9a05406c64eeebdd", "score": "0.50956917", "text": "@Override\r\n public void listarDeportivos() {\r\n for (Carro deportivo : getDeportivos()) {\r\n System.out.println(\"Categoria: \"+deportivo.getCategoria()+\", Marca: \"+deportivo.getMarca()+\", Modelo: \"+deportivo.getModelo()+\", Placa: \"+deportivo.getPlaca()+\", Precio: \"+deportivo.getPrecio());\r\n \r\n }\r\n }", "title": "" }, { "docid": "3c3a2ac548e7286792ee72ef286aae79", "score": "0.5093827", "text": "private static void listTiendas() {\n System.out.println();\n\n List<Tienda> tiendas = empresa.getTiendas();\n\n if (tiendas.size() > 0) {\n showList(tiendas);\n } else {\n System.out.println(\"No hay tiendas en la base de datos\");\n }\n }", "title": "" }, { "docid": "b02d36e8e9f3c661dd9b5ef1449f5aa9", "score": "0.50818586", "text": "public ListaPeliculasUsuario(Usuario usu, ArrayList<Usuario> listaUsuarios, ArrayList<Pelicula> listaPeliculas, ArrayList<Prestamos> listaPrestamos,ArrayList<String> generos) {\n initComponents();\n \n listaPeliculas2 = listaPeliculas;\n listaUsuarios2 = listaUsuarios;\n listaPrestamos2 = listaPrestamos;\n usu2 = usu;\n //muestro la lista de películas\n mostrarLista(listaPeliculas);\n \n }", "title": "" }, { "docid": "4edb868784a5e6510eb7d102fbb8da69", "score": "0.5077686", "text": "@Override\n\tpublic List<FacturaDTO> ensamblarListaDTOs(List<FacturaDominio> listaDominios) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0073435cdf77317144d2a6550fb65e43", "score": "0.50765246", "text": "List<GrupoUsuarioMenu> listarGrupoUsuarioMenu(GrupoUsuarioMenuDTO grupoUsuarioMenu) throws Exception;", "title": "" }, { "docid": "65a4e4ccf358a596d1813ce1a1cdf443", "score": "0.5076071", "text": "public void listar() {\n if (!esVacia()) {\n // Crea una copia de la lista.\n Numero aux = getpFirst();\n // Posicion de los elementos de la lista.\n int i = 0;\n // Recorre la lista hasta el final.\n while (aux != null) {\n // Imprime en pantalla el valor del nodo.\n System.out.print(i + \".[ \" + aux.getNumero() + \" ]\");\n // Avanza al siguiente nodo.\n aux = aux.getpNext();\n // Incrementa el contador de la posión.\n i++;\n }\n }\n }", "title": "" }, { "docid": "7eb512711fe80c1eac3709155e23fc44", "score": "0.5069239", "text": "public List getPuntajeObtenidoList();", "title": "" }, { "docid": "b4fa6d373e831a585ea21b8be4589e64", "score": "0.50659084", "text": "public void ElectMySelf(){\n for (Node_Edge e : vars.getAllNodes()) {\n if(e.getPortIn()!=Port){\n //System.out.println(\"foreach: \"+e.getPortIn());\n new VoteClient(id, Port, e, vars, \"NewCoordinator\").start();\n }\n }\n //l'if serve nel qual caso sia appena stato eletto un nuovo coordinatore non si rischia di eleggerne 2\n if(vars.getNewCordinator()==null){\n //vars.setNewCordinator(new Node);\n vars.setParentType(\"Cloud\");\n vars.setParentPort(1337);\n vars.setParentId(1);\n Client client = Client.create();\n WebResource webResource = client.resource(\"http://localhost:1337/node/newCoordinator/\"+id);\n ClientResponse response = webResource.accept(\"application/json\").get(ClientResponse.class);\n if(response.getStatus()==200){\n System.out.println(\"\\nIl nodo Corrente è stato eletto coordinatore\");\n }\n }\n /*else {\n System.out.println(\"\\nnon sono riuscito ad inserire il nuovo root\\n\");\n }*/\n }", "title": "" }, { "docid": "18dbbb1c5766461c0a8ef2b24e319221", "score": "0.506201", "text": "public List<PguTipoPagos> doBuscarConceptosCecomp() {\n return lstConceptosPGU = gestorTipoPagosService.buscarTodosConceptosCecomp(nom_curso);\n }", "title": "" }, { "docid": "9ccd5b7372fefd19919c811c64d88119", "score": "0.50557846", "text": "@Override\n\tpublic List<Locacao> todos() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "120e42f9bdfe40c76a7d8ef15c2aa543", "score": "0.50495106", "text": "public abstract List<OrdenVenta> listarOrdenVenta(EntityManager sesion,Planta planta);", "title": "" }, { "docid": "83912c9742d18109dd32f5a481a30470", "score": "0.50393593", "text": "@Override\r\n\tpublic List<TopoLine> findAll() {\n\t\treturn topoLineDao.findAll();\r\n\t}", "title": "" } ]
b2ba4714033f5a115f64324769dfda9e
Check if the string is null, empty, or 1 character only
[ { "docid": "9609c9b02097b29491cb9344605cfca7", "score": "0.0", "text": "public static boolean isPalindrome(String str, Boolean ignoreCase) {\n if (str == null || str.isEmpty() || str.length() <= 1)\n return true;\n\n\n int left = 0;\n int right = str.length() - 1;\n\n while (left < right) {\n\n if (!ignoreCase && str.charAt(left) != str.charAt(right))\n return false;\n\n if (ignoreCase && Character.toUpperCase(str.charAt(left)) != Character.toUpperCase(str.charAt(right)))\n return false;\n\n left++;\n right--;\n }\n\n return true;\n\n }", "title": "" } ]
[ { "docid": "a890008a4c4e77dbed2596368335c3ef", "score": "0.74232644", "text": "private boolean hasValue (String s) { return s != null && s.length() != 0; }", "title": "" }, { "docid": "f96fa067a1efa9f06dc87c2521259ea0", "score": "0.7399153", "text": "abstract boolean canMatchEmptyString();", "title": "" }, { "docid": "bc48794b4d5c19b1c78562b93f838244", "score": "0.72583055", "text": "private static final boolean isEmpty(String s) {\n return s == null || s.trim().length() < 1;\n }", "title": "" }, { "docid": "55814db0935aea8e4633f5a779fe49bd", "score": "0.715298", "text": "private boolean checkForEmptyString(Object value)\n\t{\n\t\tif (value == null || value.toString().isEmpty()) \n\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "43506cd2aa9d18e98ef27e49b4aa8fa3", "score": "0.70673394", "text": "private static boolean isBlank(String str)\r\n/* 254: */ {\r\n/* 255: */ int length;\r\n/* 256:300 */ if ((str == null) || ((length = str.length()) == 0)) {\r\n/* 257:301 */ return true;\r\n/* 258: */ }\r\n/* 259: */ int length;\r\n/* 260:302 */ for (int i = length - 1; i >= 0; i--) {\r\n/* 261:303 */ if (!Character.isWhitespace(str.charAt(i))) {\r\n/* 262:304 */ return false;\r\n/* 263: */ }\r\n/* 264: */ }\r\n/* 265:306 */ return true;\r\n/* 266: */ }", "title": "" }, { "docid": "8ede14f29393327a3b50d7a9e0319d64", "score": "0.6993162", "text": "boolean canMatchEmptyString() {\n return false;\n }", "title": "" }, { "docid": "f7e3e077f92bb7548751b0569db23168", "score": "0.69665956", "text": "public static boolean isEmpty(String value) {\r\n\t\treturn value == null || value.length() < 1;\r\n\t}", "title": "" }, { "docid": "8cc402d221fc1d626e8599a6c46becc1", "score": "0.68944997", "text": "private boolean checkForEmpty(String str){\r\n\t\tString sourceStr = str;\r\n\t\tif(StringUtils.isBlank(sourceStr)){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "1b196e9e2ee6b4d3e5cacd851f27547d", "score": "0.6888448", "text": "private static boolean isEmpty(CharSequence str) {\n return str == null || str.length() == 0;\n }", "title": "" }, { "docid": "6de2a11b420c0d35d30e6707398eb0b3", "score": "0.68820345", "text": "private boolean isStringValid(String s){\n int[] result = getLeftRightCount(s);\n return result[0] == 0 && result[1] == 0;\n }", "title": "" }, { "docid": "ef2a3b11a354d37d7b641438c4b76a3f", "score": "0.688086", "text": "protected boolean notEmpty(String s) {\n return s != null && s.length() != 0;\n }", "title": "" }, { "docid": "390374d2a3640f83ec51fd67fd4ad8f4", "score": "0.68709385", "text": "private static boolean isEmpty(String str) {\n return str == null || str.trim().isEmpty();\n }", "title": "" }, { "docid": "661f5a42e82ebf6930d3721e3286ccc7", "score": "0.6869366", "text": "private boolean isEmpty(String string) {\n\t\treturn string == null || string.isEmpty();\n\t}", "title": "" }, { "docid": "0475fb9b073c760e92ff31117bf9efb8", "score": "0.68620807", "text": "private static boolean isBlank(CharSequence str) {\n int strLen;\n if (str == null || (strLen = str.length()) == 0) {\n return true;\n }\n for (int i = 0; i < strLen; i++) {\n if ((Character.isWhitespace(str.charAt(i)) == false)) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "f6ead89203bee3ee92dbd35609d5c648", "score": "0.68587875", "text": "private static boolean isEmpty(CharSequence str) {\n if (str == null || str.length() == 0) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "301f415bcaea70c1a796c94d1be2e233", "score": "0.68253386", "text": "public static boolean isNotNull(String txt){\n return txt!=null && txt.trim().length()>0 ? true: false;\n }", "title": "" }, { "docid": "fa146bd705dc3e7fd023fff73080db7c", "score": "0.6796542", "text": "static boolean isNullOrEmpty(String str){\n if(str == null){\n return true;\n }\n if(str.isEmpty()){\n return true;\n }\n if(str.length() == 0){\n return true;\n }\n if(str.equalsIgnoreCase(\" \")){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "0a68621ea793b5097cff390d75f5fcc3", "score": "0.6767036", "text": "public static boolean isNotNull(String txt){\n\t\treturn txt!=null && txt.trim().length()>0 ? true: false;\n\t}", "title": "" }, { "docid": "2209c6e256f0832c9396009bfdffffca", "score": "0.67554396", "text": "public boolean validString(String str){\n if(!str.equals(null) && str.length() <= this.MAX_LEN){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "42cd181cadef2ef9654b85164d763a41", "score": "0.67489845", "text": "private boolean isEmpty(String str) {\n return (str == null) || (str.equals(\"\"));\n }", "title": "" }, { "docid": "f69fc2f36ca8b8ff507f42fc8d0afc2c", "score": "0.6703649", "text": "public static boolean isBlank(String text) {\n return text == null || isBlank(text.toCharArray());\n }", "title": "" }, { "docid": "590b5e66d6aedf8618c99b022b91c2a5", "score": "0.669188", "text": "private static boolean hasString(String value) {\n if (!value.trim().equals(\"\") && value.length() > 0) {\n return true;\n }\n\n return false;\n\n }", "title": "" }, { "docid": "e1f00815f6b8b9448768d1f9a8dad75d", "score": "0.6679964", "text": "protected boolean isEmpty(String s) {\n return s == null || s.trim().isEmpty();\n }", "title": "" }, { "docid": "cd282d539c11fa4040b96c9f857db6a3", "score": "0.6674311", "text": "static boolean isNullOrEmpty(String string) {\n return string == null || string.isEmpty();\n }", "title": "" }, { "docid": "9098ed70270eb3ae23b5b95cd1f45cf4", "score": "0.6667122", "text": "private boolean isEmpty(String s) {\n return s == null || \"\".equals(s);\n }", "title": "" }, { "docid": "48fc3834a6c320417b9d946273f60ad0", "score": "0.66659665", "text": "private final static boolean isEmpty(String field) {\n return field == null || field.trim().length() == 0;\n }", "title": "" }, { "docid": "11753929cdbe5e4920b14a03b2553fa3", "score": "0.6652152", "text": "boolean hasChar();", "title": "" }, { "docid": "17b2fe6329a4074d303c7310cb19aae2", "score": "0.66227394", "text": "public static boolean isBlankOrNullString(String s){\n return s == null || s.isEmpty() || s.equalsIgnoreCase(\"\");\n }", "title": "" }, { "docid": "1e24facaa1c0b7e81e2ab1f87472b170", "score": "0.66190714", "text": "@Test\n\tpublic void nonEmptyString() {\n\t\tString s = \" H \";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}", "title": "" }, { "docid": "4c5f57658e9150226913afeffee6fa74", "score": "0.6615997", "text": "public static boolean isNotNull(String txt) {\n return txt != null && txt.trim().length() > 0 ? true : false;\n }", "title": "" }, { "docid": "5b3b5f1b6dc8707b3e2ea7fb69aba0e0", "score": "0.6587011", "text": "public static boolean checkEmptiness(String str) {\r\n return str != null && !str.trim().equals(\"\");\r\n }", "title": "" }, { "docid": "1cef1e545cf2569a36dd0583dbc983cc", "score": "0.65709364", "text": "public static boolean isStringFullEmpty(String string) {\n\t\treturn !string.isBlank() && !string.isEmpty();\n\t}", "title": "" }, { "docid": "1cf1e2cf3f1d99c61e17b125f205502e", "score": "0.65673095", "text": "static boolean containsNoData(String str) {\n return \"\".equals(str) || \"-\".equals(str);\n }", "title": "" }, { "docid": "8cff45c44dcf300cdc3c2405c25d32ce", "score": "0.6523968", "text": "private final boolean emptyVal(String val) {\n return ((val == null) || (val.length() == 0));\n }", "title": "" }, { "docid": "042fbab360c79003a8186a7c5bac234b", "score": "0.6521657", "text": "public static boolean isEmpty(String string) {\n\treturn null == string || string.trim().isEmpty();\n }", "title": "" }, { "docid": "8b999b42f18773976c164eaab8e3e88a", "score": "0.6512172", "text": "public boolean isZeroLength() {\r\n return value.length() == 0;\r\n }", "title": "" }, { "docid": "e2bfb165f267fc53dc71faf9d561ce1c", "score": "0.64974797", "text": "public boolean isNotEmpty(String input){\r\n if(input == null) return false;\r\n if(input.isEmpty()) return false;\r\n return true;\r\n }", "title": "" }, { "docid": "1b2adaf90641ad9b76b67910fe07526f", "score": "0.64969563", "text": "public static boolean isEmpty(CharSequence str) {\n if (str == null || str.length() == 0 || \"null\".equals(str))\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "87c91484f59003e3265da3250e0a71d4", "score": "0.64930016", "text": "public static boolean hasLength(CharSequence str) {\n\t\treturn (str != null && str.length() > 0);\n\t}", "title": "" }, { "docid": "50ba78c5eb1c8e8d652f1af7255ee4b5", "score": "0.6483719", "text": "public static boolean isEmpty( String input )\n {\n if ( input == null || \"\".equals( input ) )\n return true;\n\n for ( int i = 0; i < input.length(); i++ )\n {\n char c = input.charAt( i );\n if ( c != ' ' && c != '\\t' && c != '\\r' && c != '\\n' )\n {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "bb431210009d4867ba1a43999ac40834", "score": "0.64743966", "text": "public static boolean isEmpty(CharSequence str) {\r\n if (str == null || str.length() == 0)\r\n return true;\r\n else\r\n return false;\r\n }", "title": "" }, { "docid": "e16a440bd54ffc5925fd138cbed99bb9", "score": "0.64487976", "text": "public static boolean isEmpty(CharSequence str) {\r\n\t\tif (str == null || str.length() == 0) return true;\r\n\t\telse return false;\r\n\t}", "title": "" }, { "docid": "546d2e657db7766a4de92edd4efb6491", "score": "0.6444164", "text": "public static boolean isEmpty(String value)\n {\n return (isNull(value)) || value.trim().length() == 0;\n }", "title": "" }, { "docid": "546d2e657db7766a4de92edd4efb6491", "score": "0.6444164", "text": "public static boolean isEmpty(String value)\n {\n return (isNull(value)) || value.trim().length() == 0;\n }", "title": "" }, { "docid": "2242927f039dad4c93f9361916300c99", "score": "0.6418694", "text": "@Test\n\tpublic void zeroLength() {\n\t\tString s = \"\";\n\t\tassertTrue(\"Zero length string\", StringUtil.isEmpty(s));\n\t}", "title": "" }, { "docid": "c2b8d093a905ebc2a2f3b5bc56007ef4", "score": "0.64035016", "text": "private static boolean validName(String name) {\n return name != null && !name.strip().isBlank();\n }", "title": "" }, { "docid": "d3ba33dc74e12ed6058840aa2d5ee6d2", "score": "0.6390334", "text": "public static boolean isValid(String str) {\r\n\t\tif(str != null && !str.isEmpty())\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "44942c7f3390612429ffe5bf77747fa7", "score": "0.6381589", "text": "public static boolean isEmpty(String s) {\n return s == null || s.isEmpty();\n }", "title": "" }, { "docid": "2da71b32f70a1b14ddf6cc9f3d8a625a", "score": "0.63805574", "text": "public static boolean stringNullOrEmpty ( String string ) {\r\n if ( string == null ) return true;\r\n if ( string.isEmpty() ) return true;\r\n return false;\r\n }", "title": "" }, { "docid": "846570ccdbce4a75e6d85e630f50dcba", "score": "0.6373694", "text": "private boolean isValidInput(String input) \r\n {\r\n\t \r\n return input!=null&&input.length()<=10;\r\n \r\n }", "title": "" }, { "docid": "9bef2b16422d1278e36a0d094c2db318", "score": "0.63696676", "text": "public static boolean isEmpty(CharSequence str) {\n return str == null || str.length() == 0;\n }", "title": "" }, { "docid": "5b5dc0a4ade8c1ab3e84d502f07b092c", "score": "0.63673544", "text": "public static boolean isBlank(String string) {\n if (string == null || string.length() == 0)\n return true;\n\n int l = string.length();\n for (int i = 0; i < l; i++) {\n if (!isWhitespace(string.codePointAt(i)))\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "fac9dc9996cd84a94ffb4e003c4f1b82", "score": "0.6365408", "text": "public static boolean isBlank(String str)\n {\n if( str == null || str.length() == 0 )\n return true;\n return false;\n }", "title": "" }, { "docid": "cc9242d9d831710640295499d4e5347d", "score": "0.6363", "text": "public static boolean isEmptyOrNullString (final String in) {\n\t\treturn StringUtils.EMPTY_STRING.equals(in);\n\t}", "title": "" }, { "docid": "88610e106794776651a9c542645e53c3", "score": "0.6361666", "text": "public static boolean isCharacter(String word) {\r\n\t\treturn word.length() == 1;\r\n\t}", "title": "" }, { "docid": "794adee0d0baf94fa3f010fc66b89735", "score": "0.6359902", "text": "public static String checkString(String s) {\n if(s==null || s.length()==0) return null;\n return s;\n }", "title": "" }, { "docid": "9db6dc6c9c647a3b90e5631a68ea8612", "score": "0.6359517", "text": "public static Boolean IsStringNullOrEmpty(String value) {\n\t\treturn value == null || value == \"\" || value.length() == 0;\n\t}", "title": "" }, { "docid": "fb51c0326de89138fa61dffa22f09b36", "score": "0.6343836", "text": "boolean hasString();", "title": "" }, { "docid": "fa16d208e76b47041505ec65caf757fe", "score": "0.6340058", "text": "protected boolean isEmpty(String text) {\r\n if (text == null) {\r\n return true;\r\n }\r\n\r\n if (text.trim().length() == 0) {\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "6ff7b5b45203eb90d3dfb3d6901c24aa", "score": "0.6322732", "text": "public static boolean isEmptyOrNull(String content){\n if(content == null){\n return true;\n }else return content.trim().equals(\"\");\n }", "title": "" }, { "docid": "1d43b7635cb127d821a13b1cf6db8ca3", "score": "0.63221806", "text": "private boolean isAnyEmpty(){\n //get everything\n return (fname.getText().toString().trim().length() == 0)\n || (lname.getText().toString().trim().length() == 0)\n || (email.getText().toString().trim().length() == 0)\n || (password.getText().toString().trim().length() == 0);\n }", "title": "" }, { "docid": "789a248a8fdf75e474f2abbb45315f35", "score": "0.63034767", "text": "public static boolean isEmpty(String aString)\r\n {\r\n return aString==null || aString.trim().length()==0;\r\n }", "title": "" }, { "docid": "c49101c49005ec425c379a23e52cec1f", "score": "0.6296663", "text": "public static boolean isNotBlank(final CharSequence chars) {\r\n\t\treturn !isBlank(chars);\r\n\t}", "title": "" }, { "docid": "e76c0547fa37ecc6c504d71e815f54a8", "score": "0.62858486", "text": "public static boolean IsNullOrEmpty(String text) {\n\t\treturn text == null || text.length() == 0;\n\t}", "title": "" }, { "docid": "52474f17a9df51602a18f280b512cc02", "score": "0.6280949", "text": "private String checkNullString(String text) {\n if ( text.contains( \" \" )) {\n return null;\n }\n\n // otherwise, we're totally good\n return text;\n }", "title": "" }, { "docid": "91d8aada21a10f2d652fe640ad09c0c1", "score": "0.6275442", "text": "public boolean isNullOrEmpty(String str){\n \treturn str!=null && !str.isEmpty() ? false : true;\n }", "title": "" }, { "docid": "0eae4c32df4ea7d9b133507352eb9fbc", "score": "0.6272392", "text": "public static boolean isEmptyString(String s) {\n return (s==null || s.equals(\"\"));\n }", "title": "" }, { "docid": "9279c27cd8146b0a9bdbe122ccc08b80", "score": "0.6262742", "text": "public static boolean isEmpty(String text) {\n return text == null || text.isEmpty();\n }", "title": "" }, { "docid": "d6f5e072552d38e4f8f83cc3824acee6", "score": "0.6261563", "text": "public static boolean isGoodField(String input) {\n if (input == null || input.isEmpty() || input.length() < 6)\n return false;\n return true;\n }", "title": "" }, { "docid": "8a78d643192c702bbb380de309b45aaa", "score": "0.62581164", "text": "protected boolean checkEmpty(String line) {\n return line == null || line.isBlank();\n }", "title": "" }, { "docid": "cf7ffb90f5c418f7fba9373d4aacc7c0", "score": "0.6255699", "text": "private boolean isComboBoxEmpty(String entry){\n return entry == null || entry.isBlank();\n }", "title": "" }, { "docid": "4e7a0cb356beff8912d13334edcf063c", "score": "0.6254813", "text": "public static boolean isNullOrEmpty(String content){\n return (content !=null && !content.trim().isEmpty() ? false :true);\n }", "title": "" }, { "docid": "897a5c24656f6dd3304e8e7c2d5f1d8c", "score": "0.6253052", "text": "public boolean checkInput(String input){\n\t\t//make sure only input 0-9\n\t\tif(input.length() != 1){\n\t\t\treturn false;\n\t\t}\n\t\tchar c = input.charAt(0);\n\t\tif(!Character.isDigit(c)){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7853ac6bfc1d94949b18803163a97d34", "score": "0.62519026", "text": "public static boolean isBlank(String s) {\n if (s == null || s.isEmpty()) {\n return true;\n }\n int len = s.length();\n if (len == 1) {\n return Character.isWhitespace(s.charAt(0));\n }\n if (!Character.isWhitespace(s.charAt(len - 1))) {\n return false;\n }\n return is(s, Character::isWhitespace);\n }", "title": "" }, { "docid": "4c6dcdffcd9da5631bbf7b0ffd01b0a3", "score": "0.6250958", "text": "private boolean isBlank() {\n\t\tchar currentChar = data[index];\n\t\tif (currentChar == '\\r' || currentChar == '\\n' || currentChar == '\\t' || currentChar == ' ') {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f3cf4b107a257891fa47ce319a1dc1f0", "score": "0.6250648", "text": "public static boolean isBlank(String str) {\n int strLen;\n if (str == null || (strLen = str.length()) == 0) {\n return true;\n }\n for (int i = 0; i < strLen; i++) {\n if ((!Character.isWhitespace(str.charAt(i)))) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "95369948cbc105dfc774596c17b89dad", "score": "0.6250032", "text": "public static Boolean validateInput(String input) {\n\t\tString xInput = input.substring(0,1);\n\n\t\n\n\t\t\n\t\tboolean xIsLetter = Character.isLetter(xInput.charAt(0));\n\n\t\tif((!input.isEmpty()) || (!xIsLetter)) {\n\t\n\t\t\treturn false;\n\t\t} else {\n\n\t\t\treturn true; \n\t\t\t}\n\t\t}", "title": "" }, { "docid": "315e82fdd4bcc48c041aa846a6ac2f5d", "score": "0.62485456", "text": "public static boolean checkNullOrEmptyString(String inputString) {\n\t\treturn inputString == null || inputString.trim().isEmpty();\n\t}", "title": "" }, { "docid": "2930672c1ea6c0f7c9101e24623d9414", "score": "0.62442255", "text": "private boolean isAllChars(String fieldVal){\r\n // Get rid of all whitespace from the given string\r\n String val = fieldVal.replaceAll(\"\\\\s\", \"\").trim();\r\n // Check each character in the string to determine if it is a digit or not\r\n for (int i=0; i < val.length(); i++){\r\n // if we find a digit return false\r\n if (Character.isDigit(val.charAt(i))){\r\n return false;\r\n }\r\n }\r\n // if we get here then all characters in the string are letters\r\n return true;\r\n }", "title": "" }, { "docid": "58f9ad0188d2198ab85746b4803462a7", "score": "0.62437457", "text": "public abstract boolean isBlank() throws Exception;", "title": "" }, { "docid": "0c1ae7c324f4611b139332aca9798b10", "score": "0.6239063", "text": "public static boolean isBlank(String str) {\n int strLen;\n if (str != null && (strLen = str.length()) != 0) {\n for (int i = 0; i < strLen; ++i) {\n if (!Character.isWhitespace(str.charAt(i))) {\n return false;\n }\n }\n return true;\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "84ed4e380db4b1606bcce8ebfbb06819", "score": "0.62303925", "text": "public static boolean nullity(String param) {\n return (param == null || param.trim().equals(\"\"));\n }", "title": "" }, { "docid": "14d5a2a353040f9ebef5fcb7e7476f93", "score": "0.622974", "text": "public static boolean isEmpty(final String value) {\n\t\treturn value == null || value.trim().length() == 0 || \"null\".endsWith(value);\n\t}", "title": "" }, { "docid": "21e43b2bab31f551dc6feb9b301afbdb", "score": "0.6228815", "text": "public static boolean isNotEmpty(String text) {\r\n\t\treturn (!(text == null || text.isEmpty() || text.length() == 0 || text.equals(\"\")));\r\n\t}", "title": "" }, { "docid": "08eb17dd2647919957277f19c0eb42ef", "score": "0.6219219", "text": "public static boolean isBlank(String str) {\r\n int strLen;\r\n if (str == null || (strLen = str.length()) == 0) {\r\n return true;\r\n }\r\n for (int i = 0; i < strLen; i++) {\r\n if ((Character.isWhitespace(str.charAt(i)) == false)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "e76ddb768055ed1d81d6e9ef406eacb4", "score": "0.6211375", "text": "@Contract(\"null -> true\")\n public static boolean isBlankOrNull(final String arg) {\n return (arg == null || arg.replaceAll(\"\\\\s\", \"\").length() == 0);\n }", "title": "" }, { "docid": "50391047fa1034685ff50f1baab46a21", "score": "0.6209434", "text": "public static boolean isEmpty(String s) {\n return s == null || s.length() == 0;\n }", "title": "" }, { "docid": "f865d0d71efa3a803e430e141b219d00", "score": "0.6203177", "text": "public static boolean isBlankOrNull(String string) {\n\n //check if parameter is null\n if (string == null) return true;\n\n //check if string is empty\n if (string.isEmpty()) return true;\n\n //check if string consists of whitespaces only\n if (string.trim().isEmpty()) return true;\n\n //after all checks are negative\n return false;\n\n }", "title": "" }, { "docid": "f02497661ab0f88ee1614b9a265f1a52", "score": "0.6202603", "text": "private boolean isUserNameValid(String username) {\n if (username == null) {\n return false;\n } else {\n return !username.trim().isEmpty();\n }\n }", "title": "" }, { "docid": "e591248275b9e464ae768607e8a0c08c", "score": "0.62003887", "text": "public boolean isString();", "title": "" }, { "docid": "b68cc6c2a3acd88de1f5a775722577dd", "score": "0.61930645", "text": "boolean hasHasCharacter();", "title": "" }, { "docid": "42fd04b1dc978f06ebc184ba9d356eaa", "score": "0.61917454", "text": "public static boolean isEmpty(String s) {\r\n return (s == null) || (s.length() == 0);\r\n }", "title": "" }, { "docid": "b00a47ff76d56dca911e65efbbf2f3e2", "score": "0.618862", "text": "public static String requireNullOrNonEmpty(String str) {\n if (str != null && str.isEmpty()) {\n throw new IllegalArgumentException();\n }\n return str;\n }", "title": "" }, { "docid": "bfa909334baf97662c9de11abaea53fc", "score": "0.6182743", "text": "private static Boolean testUsername(String username){\n\t\t//Setting Up Regex -> All Numbers and Letters maximum 14 signs\n\t\tString pattern =\"[A-z1-9]{2,14}\";\n\t\tPattern p = Pattern.compile(pattern);\n\t\tMatcher m = p.matcher(username);\n\t\t\t\n\t\tif(m.matches() && !username.isEmpty()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "771e8b871a9acb28a021737c0a283386", "score": "0.6177286", "text": "public static boolean isBlank(String str) {\n\t\tboolean flag = false;\n\t\tif (str == null || \"\".equals(str.trim())) {\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}", "title": "" }, { "docid": "5d5a9844311de6ad04b02f500ebcf23c", "score": "0.6175641", "text": "protected boolean isEmpty(Object obj) {\r\n return (obj == null || obj instanceof String\r\n && ((String) obj).trim().length() == 0);\r\n }", "title": "" }, { "docid": "72aa11069624be50a27ede1fe2c44e68", "score": "0.6173955", "text": "public static boolean isEmpty(CharSequence str) {\n\t\treturn (str == null || str.toString().trim().length() == 0);\n\t}", "title": "" }, { "docid": "45a79a23a56e9803f53721650de025b0", "score": "0.61726505", "text": "public static boolean isEmpty(String value) {\n return ((value == null) || (value.trim().length() == 0));\n }", "title": "" }, { "docid": "c7818bb224495b1d8a86be91739186e5", "score": "0.61702824", "text": "public boolean canProvideString();", "title": "" }, { "docid": "0b1c020be3b76907916d57a5c75acd2a", "score": "0.61697096", "text": "public static boolean isBlank(final CharSequence chars) {\r\n\t\tif (isEmpty(chars)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tint stringLength = chars.length();\r\n\t\tfor (int i = 0; i < stringLength; i++) {\r\n\t\t\tif (!Character.isWhitespace(chars.charAt(i))) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "f70622f9448c0885b3f1512cf8184602", "score": "0.6165937", "text": "public static boolean isEmpty(String input) {\n if (input == null || input.isEmpty() || (\"\").equals(input.trim()))\n return true;\n return false;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "d3e6d7b0f887b64fb684f0e760df623b", "score": "0.0", "text": "public Tweet likeTweet(String id) {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "ef1b6c3f597a66c59960d73eadee6f25", "score": "0.6904447", "text": "private void apparence()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "4862518dedb9e169c3cc620e5ebe04c5", "score": "0.6696056", "text": "@Override\r\n\tpublic void atura() {\n\t\t\r\n\t}", "title": "" }, { "docid": "651ef6275f1a33ed6582a1599cab78d2", "score": "0.66211534", "text": "@Override\n\tpublic void bekle() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "c56ced5e9768caa7a88a0e86dc1d02eb", "score": "0.6557507", "text": "@Override\n\tpublic void pintate() {\n\t\t\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.6546559", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.62550694", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "761f5db0b07474bff2090f23a6693efb", "score": "0.6211042", "text": "private void Prodto() {\n\n\t}", "title": "" }, { "docid": "74578344538dd194907dffc0406cacac", "score": "0.6166714", "text": "@Override\n public void suicide() {\n \n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6153736", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "db51ad8e6f15ad35a767d84e1e1eda68", "score": "0.61275035", "text": "@Override\n\t\t\tpublic void cry() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e24a2515146ce17481b567e14f6d3258", "score": "0.6075012", "text": "public void retrievecart() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "fba36b6a112c0dbc3dd5aa61fe730a40", "score": "0.60609394", "text": "@Override\n\tpublic void subir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "280c1f1bfe3582788f566eafe40085dd", "score": "0.60448366", "text": "@Override\n \tpublic void init() {\n \t\t\n \t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "2ba22ff158b6e941041f9460eddd0944", "score": "0.5991409", "text": "@Override\n public void operation() {\n \n }", "title": "" }, { "docid": "afc2a2ef708681a23da24526386fa543", "score": "0.5979341", "text": "@Override\r\n\tpublic void demo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "951638c11e887c3f81bcc83306f4e413", "score": "0.5957303", "text": "@Override\r\n\tpublic void trunon() {\n\r\n\t}", "title": "" }, { "docid": "03a6fa2a6dc40f30e9f67797ea87ac0e", "score": "0.5950196", "text": "@Override\n\tvoid generate() {\n\t\t\n\t}", "title": "" }, { "docid": "86b315eabc97abef1ea325b454b16656", "score": "0.5934478", "text": "@Override\n\tpublic void veneno() {\n\t\t\n\t}", "title": "" }, { "docid": "4f4340003331db95a2feee0084056a02", "score": "0.59033096", "text": "@Override\n\tprotected void inicializar() {\n\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.58815277", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "a6c80a6456cfc74acaa16a2f9c3063c5", "score": "0.5881057", "text": "@Override\n\t\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "bf75e876384ccbd3516440064d914edb", "score": "0.585407", "text": "@Override\r\n\t\t\tpublic void process() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "22f2421f5b9cc11d1699c42857b4dfe9", "score": "0.5850562", "text": "protected void mo1582st() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.58336115", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "d07c1f5c9d405e36c1ebf9e7e586652e", "score": "0.5830177", "text": "private Solution() {\n /** Not using this function**/\n }", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5821835", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58195674", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "4112f041d618773e927eaf69a897467b", "score": "0.5817743", "text": "@Override\r\n\tpublic void tempup() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "8d9539007d174aa71cae3fdbfe4952c6", "score": "0.5801801", "text": "@Override \n\tpublic void init() {\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "5243b8d363dba36edfd9e64eb96cc9d5", "score": "0.57880706", "text": "@Override\n public int getStatus() {\n return 0;\n }", "title": "" }, { "docid": "b096eae650ba80789eb6446d859169a3", "score": "0.5776792", "text": "protected void mo1586sx() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "17cb0676e79dae45623dcbdd6cf2af58", "score": "0.5773822", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57732296", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c897821a3b00faa6e582b1c5bd5b3c6", "score": "0.57677484", "text": "@Override\r\n\tpublic void direksiyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "81ea0647fff57e17ec5107049b4dbf8b", "score": "0.57594514", "text": "@Override\n public int size() {\n return 1;\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5755988", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "33572cd017818797318a53dbacbc00b9", "score": "0.57530975", "text": "@Override\r\n\t\t\tpublic void initialize() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a8b768dae1b52549249069e4d6a9253f", "score": "0.57492036", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57409", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5736822", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4f5334e4c63e1b16e38cf957e8576a25", "score": "0.5735921", "text": "@Override\n\tpublic void getHaned() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.57304126", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "ba3ff1d644c6b502f46e78f3112e984c", "score": "0.57151", "text": "@Override\r\n\tpublic void toss() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57141805", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "20aa3abef3af4ea8bcf5e834227be04c", "score": "0.57137775", "text": "@Override\n\tpublic void Pessoa() {\n\t\t\n\t}", "title": "" }, { "docid": "6894ea3aa25d3dee3c3dd8331b9a9cdd", "score": "0.57120746", "text": "@Override\n\t public int correr() {\n\t return 7;\n\t }", "title": "" }, { "docid": "d7405dbb7f385c28de1f97859172342b", "score": "0.5705621", "text": "@Override\n\tpublic void affiche() {\n\t}", "title": "" }, { "docid": "f9fa4d6203b441d4a00a824c3219ddb2", "score": "0.5704342", "text": "@Override\n\tprotected void doOperate() {\n\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "af5603f291fb4fc9dd83e46e0602225b", "score": "0.56868714", "text": "@Override\r\n\tpublic void demo3() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.56740177", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "e8efac2ee01f452014413fb75d28b3a6", "score": "0.5659524", "text": "@Override\r\n\tpublic void initState() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1857996533d34551ac38dd34ec5213a3", "score": "0.56573755", "text": "public void koniecReplikacie() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
c60412cc6d5e2f4e49df4d21b46040c4
/ WARNING void declaration
[ { "docid": "436970ff286a56a6675304592757a5e4", "score": "0.0", "text": "public static Vec3d getLastTickPos(Entity entity, double d, double d2, double d3) {\n void z;\n void y;\n void x;\n Entity entity2;\n return new Vec3d((entity2.posX - entity2.lastTickPosX) * x, (entity2.posY - entity2.lastTickPosY) * y, (entity2.posZ - entity2.lastTickPosZ) * z);\n }", "title": "" } ]
[ { "docid": "f777356e2cd2fecd871f35f7e556fda8", "score": "0.72108984", "text": "public void mo3640e() {\n }", "title": "" }, { "docid": "a55a150557f80abcbd733ee3162b0661", "score": "0.71454316", "text": "private void m18301a() {\n }", "title": "" }, { "docid": "673a49ca299f4504a7a66fb69e6c009b", "score": "0.70711505", "text": "public final void mo23803a() {\n }", "title": "" }, { "docid": "3fb636b9ce0d711892980996a1771579", "score": "0.70504075", "text": "public final void mo53187a() {\n }", "title": "" }, { "docid": "609ec2ff060d9d4cb0276468f482734d", "score": "0.70258963", "text": "public void mo89673a() {\n }", "title": "" }, { "docid": "0b06f1c2066a7ed1df417a1383204e17", "score": "0.6973958", "text": "Internal internal();", "title": "" }, { "docid": "9c0be8b41abbc5a688c29d02287c4158", "score": "0.695707", "text": "public void wyjscie(){}", "title": "" }, { "docid": "7721677c9c247497df61f02707d2c6d5", "score": "0.6952746", "text": "void mo15172af();", "title": "" }, { "docid": "b6991105a4e7cbd1e588ff8cdb14842f", "score": "0.69508237", "text": "public final void mo42476a() {\n }", "title": "" }, { "docid": "f7f116289482c665b1ff96f89e43ca4d", "score": "0.69482386", "text": "public abstract void mo12294d();", "title": "" }, { "docid": "139ea0f3d70d919cb70c2f69d570b88f", "score": "0.69422543", "text": "protected abstract void mo928a();", "title": "" }, { "docid": "331695424e8d8fcf4826ab18908dfd77", "score": "0.6881734", "text": "public abstract void method_1572();", "title": "" }, { "docid": "90e9be10c2c69543036119c8db74189e", "score": "0.68747616", "text": "public void mo6944a() {\n }", "title": "" }, { "docid": "06c407b3cacc3e964dfd7296780a7d20", "score": "0.6873827", "text": "public abstract void mo79858d();", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6835993", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "28dd92179ac3bfad341327ce59ee469f", "score": "0.68328106", "text": "public abstract void func_void_m();", "title": "" }, { "docid": "1bce2a310aa52b19f3be7b0aac6a1a9e", "score": "0.6829621", "text": "public abstract void mo12293c();", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.68255436", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.68255436", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "59edca275ccea0faf581780e052bb6ec", "score": "0.6823122", "text": "public abstract void mo1272a();", "title": "" }, { "docid": "a461dc9f7c85437f03c14d9121971cec", "score": "0.6821543", "text": "public abstract void mo79853a();", "title": "" }, { "docid": "656716153b22493864f462d3892b023d", "score": "0.68119276", "text": "public abstract void mo79857c();", "title": "" }, { "docid": "ee34b65ca528d3c4001b7840ceae42b2", "score": "0.67994565", "text": "public void mo1957a() {\n }", "title": "" }, { "docid": "2bcac1bab4eaa6c9cc4cb7e33c684cef", "score": "0.67955744", "text": "public void mo1691a() {\n }", "title": "" }, { "docid": "8bf8511f65e0c2b04c8bd3242cfd3d0d", "score": "0.6787175", "text": "public void mo25201a() {\n }", "title": "" }, { "docid": "3214c460d6da423caaadf08f316ad1f8", "score": "0.67861617", "text": "public abstract void mo108290g();", "title": "" }, { "docid": "4998a23e108f49f0462e31c609123d9a", "score": "0.67704594", "text": "public abstract void mo33625a();", "title": "" }, { "docid": "e7317df0048a21a367c84f71c1012fdf", "score": "0.67595506", "text": "public abstract void mo108273c();", "title": "" }, { "docid": "4bcc8fa2b3c6534d7305a87ee6c35447", "score": "0.67580855", "text": "private void func() {\n \n }", "title": "" }, { "docid": "22fbe3c432bb52a17205f16f795361a6", "score": "0.6736945", "text": "void mo11418a();", "title": "" }, { "docid": "1b6e09a6782d50972c182ef576e82c8d", "score": "0.67328537", "text": "public void mo5729d() {\n }", "title": "" }, { "docid": "3211287bc24304a8ca2975647e8a262e", "score": "0.67327964", "text": "public void mo1702b() {\n }", "title": "" }, { "docid": "33c756cf2ce8d41ad824e84a24ee0d40", "score": "0.6713797", "text": "public abstract void mo108263b();", "title": "" }, { "docid": "7bae606b81a09973f2c6a24e6d6da027", "score": "0.6713236", "text": "public abstract void mo1274a();", "title": "" }, { "docid": "65761b81b9e7c262ab2053f890407576", "score": "0.6709092", "text": "public final void mo8975a() {\n }", "title": "" }, { "docid": "5aa411e5d69c31dfee719f50e04eb982", "score": "0.6688607", "text": "public abstract void mo108297j();", "title": "" }, { "docid": "bdf60988fbb0447dfac62ebd88326b2f", "score": "0.6688485", "text": "void mo120437a();", "title": "" }, { "docid": "46a622a9deb9400316afc85afd8426b9", "score": "0.6685212", "text": "public final void mo17831a() {\n }", "title": "" }, { "docid": "f7a3cfc3cd34493da5953062ac39cae7", "score": "0.6672046", "text": "public final void mo13186a() {\n }", "title": "" }, { "docid": "26dc20ae47f2ded4ac637bc65b07fdd8", "score": "0.6669676", "text": "void mo11413a();", "title": "" }, { "docid": "84b0935c8489dd17a90b3bfa3d439134", "score": "0.6668897", "text": "public abstract void mo79856b();", "title": "" }, { "docid": "10e00e5505d97435b723aeadb7afb929", "score": "0.666766", "text": "@Override\n\tpublic void pintar2() {\n\t\t\n\t}", "title": "" }, { "docid": "8dd6a2912f540d28725bf7312fd7e35e", "score": "0.66659766", "text": "void mo11414b();", "title": "" }, { "docid": "dc7f692f1f48fafed3a8d14c5b2641f7", "score": "0.66657585", "text": "public abstract void mo70772a();", "title": "" }, { "docid": "4cba9991e532069acd40832a700f9114", "score": "0.6665697", "text": "public final void mo472e() {\n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.66615987", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "dc8b529f53c0bc3cd0641964c8fc6c38", "score": "0.6661201", "text": "public abstract void mo1278b();", "title": "" }, { "docid": "c9b3b287cd8d385c7e20b73647868499", "score": "0.66590047", "text": "@Override\n\tpublic void helperVoidFcn() {\n\t\t\n\t}", "title": "" }, { "docid": "b08f4638320db7d0a618ea28376deec3", "score": "0.6650896", "text": "private static void atrim() {\n }", "title": "" }, { "docid": "e0cbdb33ae361893d684895427f83ba5", "score": "0.6645497", "text": "public abstract void mo41184k();", "title": "" }, { "docid": "976d247fc450b6e0bb9cd2bc281af4d9", "score": "0.6642697", "text": "void mo119515a();", "title": "" }, { "docid": "442bcdf3bf89dbd973e45a23a0f53629", "score": "0.6639198", "text": "void mo11417b();", "title": "" }, { "docid": "3931896366d26de9310ea38e66ff3804", "score": "0.66324174", "text": "@Override\r\n\tpublic void aoo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "19e7961b4db71d792a3277686bb4e2b8", "score": "0.6627899", "text": "public void mo42215a() {\n }", "title": "" }, { "docid": "22c7def62bb73abe9cb4faab1fe2e2a1", "score": "0.6622123", "text": "void mo11415a();", "title": "" }, { "docid": "08e1e596e0e9ddd90595996b16e271f4", "score": "0.6619305", "text": "public void mo41443a() {\n }", "title": "" }, { "docid": "01c0a566ed54d01d509ac8a69a857007", "score": "0.6615715", "text": "void mo40423a();", "title": "" }, { "docid": "40c821314a7a86a372e2a107ca92f6b1", "score": "0.6613925", "text": "private void Priva() {\n\r\n\t}", "title": "" }, { "docid": "952e79158b43e047eef7aea313cf44a4", "score": "0.6601716", "text": "void mo119518d();", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6601196", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6601196", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.65979546", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "b2bf47f57480a1654fc8b7bf217ab0e7", "score": "0.65864277", "text": "public abstract void mo3663a();", "title": "" }, { "docid": "d3b07050597919f6b6cd1ecb8eef6735", "score": "0.65835905", "text": "public abstract void mo79865j();", "title": "" }, { "docid": "b3896be067cafa7ad8a965c6093a6b5d", "score": "0.65767235", "text": "void mo11419b();", "title": "" }, { "docid": "e634836bc1d61a011e04bfb67a971792", "score": "0.65751344", "text": "@Override\r\n\tpublic void sair() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c3528b1422870e38ee2c59e99d30d9ce", "score": "0.65690315", "text": "public abstract void mo79863h();", "title": "" }, { "docid": "a33f09a3acd9a1e896f842021dadbbc1", "score": "0.65687394", "text": "public abstract void mo11267a();", "title": "" }, { "docid": "04019a0397769925ccd323657de698a6", "score": "0.6567259", "text": "public abstract void sperre();", "title": "" }, { "docid": "276c2f8fe91fb904497e18f63f036544", "score": "0.65598524", "text": "public abstract void mo108293h();", "title": "" }, { "docid": "7fdc27e0a6939633830e3e50c2ba0bd6", "score": "0.6558273", "text": "@Override\n\tpublic void oku2() {\n\t\t\n\t}", "title": "" }, { "docid": "7b631786c30198fbf214637f4184a17f", "score": "0.6556322", "text": "@Override\n\tvoid bla() {\n\t\t\n\t}", "title": "" }, { "docid": "bb1812ac9695e9e927bf9945d6e9c398", "score": "0.65544087", "text": "public void mo20031a() {\n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.6550435", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "c33547ac7c78c9400e68943114988906", "score": "0.65483797", "text": "void mo12714a();", "title": "" }, { "docid": "9e2502d79a3159242075695c2f0b0386", "score": "0.65460783", "text": "void mo10717a();", "title": "" }, { "docid": "a237729e61e9aa0446416cc9ac9821b1", "score": "0.6543169", "text": "public abstract void mo79859e();", "title": "" }, { "docid": "359987993ad84757f9d7a12eaf38d2d7", "score": "0.65385437", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "dfe2a4dd53dfbabe2a0d31bfe522c8f8", "score": "0.65375686", "text": "public final void mo466a() {\n }", "title": "" }, { "docid": "e3ea3ad0e8244c5fbb64fd1493cf9e0c", "score": "0.6531686", "text": "public abstract void mo79866k();", "title": "" }, { "docid": "bdda67d5a6e4e11f409f6b401016fe9e", "score": "0.653056", "text": "void mo24529a();", "title": "" }, { "docid": "328648884e38ebe46bd7786325704fc3", "score": "0.6521151", "text": "@Override\r\n\tpublic void t1() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0988c6fd58cf02386fde321085ec48c1", "score": "0.65144295", "text": "void mo113411a();", "title": "" }, { "docid": "236b4164d84148791d7537e3905c76b3", "score": "0.6514032", "text": "public final void mo80186e() {\n }", "title": "" }, { "docid": "f4f48197b3fa17ad117947be0d5a5650", "score": "0.65108794", "text": "public void mo2849x() {\n }", "title": "" }, { "docid": "7e5ae0ccdfa612568c57d47a43c72989", "score": "0.65091085", "text": "public void pintame() {\n }", "title": "" }, { "docid": "fe965b78e7b3941dd30c1ede0525e112", "score": "0.64967304", "text": "public void mo85487i() {\n }", "title": "" }, { "docid": "fbee2439d0e358ba09678805885ba88a", "score": "0.64965814", "text": "void mo90623a();", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.64964116", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b8cd427648ea50c94f93c47d407d10a0", "score": "0.6494205", "text": "public void mo3639d() {\n }", "title": "" }, { "docid": "376ecf66cd49fe8765882c6d1751a072", "score": "0.6493106", "text": "@Override\r\n\tpublic void d0() {\n\r\n\t}", "title": "" }, { "docid": "1dbcae784b20ff21c99fced92db1ef9f", "score": "0.6492036", "text": "public void mo39414I() {\n }", "title": "" }, { "docid": "93b2e35f46c3ddba8ce27c090c3c2fa0", "score": "0.64894855", "text": "public abstract void method_1571();", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.6486098", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "cdaaa6af27ec15a11b312197a5484f30", "score": "0.648339", "text": "public void mo8543a() {\n }", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.64785284", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.64785284", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "fcc5cb586ce24ae43fe8a1400501f7cb", "score": "0.6478288", "text": "public abstract void mo79861g();", "title": "" }, { "docid": "9a588234d6e5dee1d1740f5c36f86d0d", "score": "0.6473178", "text": "public abstract void mo71833b();", "title": "" }, { "docid": "2d2f25cd34d50aa807e770d7cf488607", "score": "0.647203", "text": "void mo85006b();", "title": "" }, { "docid": "c0c124e64210434ea9708eb3746ed08f", "score": "0.6463455", "text": "public abstract String method_1811();", "title": "" } ]
ef6078194aee34e217ac703d76fc09cf
Method to verify google play services on the device, will direct user to Google Play Store if not installed
[ { "docid": "d29041f934d6cae86516622904746c01", "score": "0.5835775", "text": "public static boolean servicesAvailable(FragmentActivity fragmentActivity) {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(fragmentActivity);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, fragmentActivity,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n if (DEBUG) Log.d(LOG, \"This device does not support Google Play Services.\");\n fragmentActivity.finish();\n }\n return false;\n }\n return true;\n }", "title": "" } ]
[ { "docid": "52c7363618438afbbf430583f299f8e5", "score": "0.7576292", "text": "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(this);\n // When Play services not found in device\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n // Show Error dialog to install Play services\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Toast.makeText(\n applicationContext,\n \"This device doesn't support Play services, App will not work normally\",\n Toast.LENGTH_LONG).show();\n finish();\n }\n return false;\n } /*else {\n Toast.makeText(\n applicationContext,\n \"This device supports Play services, App will work normally\",\n Toast.LENGTH_LONG).show();\n }*/\n return true;\n }", "title": "" }, { "docid": "c5a64bc99d3f226fe25f57df6f6a18e1", "score": "0.75298816", "text": "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getActivity().getApplicationContext());\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n Toast.makeText(getActivity().getApplicationContext(),\n \"This device is supported. Please download google play services\", Toast.LENGTH_LONG)\n .show();\n } else {\n Toast.makeText(getActivity().getApplicationContext(),\n \"This device is not supported.\", Toast.LENGTH_LONG)\n .show();\n //finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "36bd47d1e64c0d9d01c480bac6480d39", "score": "0.73818254", "text": "private void checkGooglePlayServices() {\n\n\n //Check whether this user has installed Google play service which is being used by Location updates.\n if (isGooglePlayServicesAvailable()) {\n\n //Passing null to indicate that it is executing for the first time.\n checkInternetConnection(null);\n\n } else {\n Toast.makeText(getApplicationContext(), R.string.no_google_playservice_available, Toast.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "6045868a61a552d5e35499df492ca85c", "score": "0.73633265", "text": "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n// Toast.makeText(getApplicationContext(),\n// \"This device is not supported.\", Toast.LENGTH_LONG)\n// .show();\n// finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "c1a79ee5b40d465f36114a53dcd1bf50", "score": "0.7308434", "text": "private boolean servicesConnected() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode)\n\t {\n\n // Continue\n return true;\n\t }\n\n\nToast.makeText(this, \"Google Play Services NotAvailable\", Toast.LENGTH_SHORT).show();\n\n\treturn false;\n\n}", "title": "" }, { "docid": "92e5f986e36cabba6146ffa96aa375d1", "score": "0.728805", "text": "public boolean checkPlayServices(Activity activity) {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(activity);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, activity,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n activity.finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "18c817e2340f5acf56c3ae90cacabb84", "score": "0.72457474", "text": "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(\"GCM\", \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "3cdc315bff8e6f21916aba0f90d2cf5b", "score": "0.72289336", "text": "private void checkGooglePlayServices() {\n int status = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this);\n if (status != ConnectionResult.SUCCESS) {\n Dialog errorDialog = GoogleApiAvailability.getInstance().getErrorDialog(this, status, 0);\n errorDialog.setOnDismissListener(dialog -> finish());\n errorDialog.show();\n }\n }", "title": "" }, { "docid": "7457f215341598cb24e2e693d3c9e480", "score": "0.72276217", "text": "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(getActivity());\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, getActivity(),\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Toast.makeText(getActivity().getApplicationContext(),\n \"This device is not supported.\", Toast.LENGTH_LONG)\n .show();\n getActivity().finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "cad8da1878603e7289681b557ea43877", "score": "0.7227004", "text": "private boolean checkPlayServices() {\n\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n if (resultCode != ConnectionResult.SUCCESS) {\n\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this, PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "0010626d762476d2073add0c382f165c", "score": "0.7175561", "text": "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"This device is not supported.\", Toast.LENGTH_LONG)\n .show();\n finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "a0eedc5a9ca38f9519efa7c3d710adb5", "score": "0.71620095", "text": "private boolean checkPlayServices() {\n\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n\n int resultCode = googleApiAvailability.isGooglePlayServicesAvailable(this);\n\n if (resultCode != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(resultCode)) {\n googleApiAvailability.getErrorDialog(this,resultCode,\n PLAY_SERVICES_REQUEST).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"This device is not supported.\", Toast.LENGTH_LONG)\n .show();\n finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "033e3d2a90ea88e4c2c6b93186bd2a17", "score": "0.7152255", "text": "private boolean checkGooglePlayServicesAvailable() {\n/*\n final int connectionStatusCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getActivity());\n if (GooglePlayServicesUtil.isUserRecoverableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n return false;\n }\n*/\n return true;\n }", "title": "" }, { "docid": "ff0efa4fb06ee1b60c5387a94030a2ab", "score": "0.7150785", "text": "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(getContext());\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, getActivity(),\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Toast.makeText(getContext(),\n \"This device is not supported.\", Toast.LENGTH_LONG)\n .show();\n this.getActivity().finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "c0c9256b4e5e6ccd1f0da4edbae573af", "score": "0.71400934", "text": "public boolean checkPlayServices() {\n if (BuildConfig.DEBUG) {\n return true;\n }\n\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getActivity());\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, getActivity(),\n GCMUtils.PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Utils.log(\"This device is not supported.\");\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "39eb9ba3e3383508febd420e1d6958e1", "score": "0.7139539", "text": "private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n\n Log.i(LOG_TAG, \"This device is not supported.\");\n //finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "60811f808e97c76430f0ee0ba525c4b8", "score": "0.71276367", "text": "private boolean checkPlayServices() {\r\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\r\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\r\n if (resultCode != ConnectionResult.SUCCESS) {\r\n if (apiAvailability.isUserResolvableError(resultCode)) {\r\n apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\r\n .show();\r\n } else {\r\n Log.i(TAG, \"This device is not supported.\");\r\n finish();\r\n }\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "2f55340f4248824d1ca909902e86d76b", "score": "0.710538", "text": "private boolean checkPlayServices() {\n\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n\n int resultCode = googleApiAvailability.isGooglePlayServicesAvailable(this);\n\n if (resultCode != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(resultCode)) {\n googleApiAvailability.getErrorDialog(this, resultCode,\n PLAY_SERVICES_REQUEST).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"This device is not supported.\", Toast.LENGTH_LONG)\n .show();\n finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "1fb16b77f42df62a1a68e2d1e13ade70", "score": "0.7100796", "text": "private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode, Constant.PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n MyLog.e(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "801e5781bcf0d80992efc73428b6e05a", "score": "0.70824444", "text": "private boolean checkPlayServices() {\r\n\t\tint resultCode = GooglePlayServicesUtil\r\n\t\t\t\t.isGooglePlayServicesAvailable(this);\r\n\t\tif (resultCode != ConnectionResult.SUCCESS) {\r\n\t\t\tif (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\r\n\t\t\t\tGooglePlayServicesUtil.getErrorDialog(resultCode, this,\r\n\t\t\t\t\t\tPLAY_SERVICES_RESOLUTION_REQUEST).show();\r\n\t\t\t} else {\r\n\t\t\t\tLog.i(TAG, \"This device is not supported.\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "0b7c6ab48ae3297f82cf6fde9185cee5", "score": "0.706047", "text": "private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "9212ec2cd6d2ef9fd23c296fb10c10a9", "score": "0.7055321", "text": "public static boolean checkPlayServices(final Activity context) {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(context);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n int PLAY_SERVICES_RESOLUTION_REQUEST = 9000;\n Dialog dialog = apiAvailability.getErrorDialog(context, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST, new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n context.finish();\n }\n });\n dialog.show();\n } else {\n Log.e(context.getPackageName(), \"This device is not supported.\");\n context.finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "bc5e8c843a70a9fc8cdc6ede10a86db0", "score": "0.70287865", "text": "private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(LOG_TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "bca34a0ef2cfd849b31b78c7387df64b", "score": "0.7016476", "text": "private void checkGooglePlayServices(Context context) {\n GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();\n int code = googleAPI.isGooglePlayServicesAvailable(context);\n switch (code){\n case ConnectionResult.SUCCESS: // Play services are up-to-date\n initGoogleMaps(mapViewSavedInstanceState); // Initialize Google maps\n break;\n case ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED:\n // Play services need to be updated before this app can proceed\n break;\n }\n }", "title": "" }, { "docid": "38de16bba44802999d89d2f6e0b436b6", "score": "0.70083547", "text": "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this, PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n Log.i(TAG, \"This device is supported.\");\n return true;\n }", "title": "" }, { "docid": "12d1f7693b49d4796b5093462f915ddd", "score": "0.7002494", "text": "private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "b0af086f7df8c74182e2384e80733751", "score": "0.69430727", "text": "private boolean checkGooglePlayServices() {\n\n GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();\n int result = googleAPI.isGooglePlayServicesAvailable(getActivity());\n\n if (result != ConnectionResult.SUCCESS) {\n if(googleAPI.isUserResolvableError(result)) {\n googleAPI.getErrorDialog(getActivity(), result, 0).show();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "09692b99d65119c8d9226c7fa1469031", "score": "0.6889423", "text": "public boolean checkPlayServices() {\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n int result = googleApiAvailability.isGooglePlayServicesAvailable(this);\n if(result != ConnectionResult.SUCCESS) {\n if(googleApiAvailability.isUserResolvableError(result)) {\n googleApiAvailability.getErrorDialog(this, result, 2404).show();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "2d5eb2e894670bab387755c98a53be7a", "score": "0.6866199", "text": "private boolean checkPlayServices() {\n GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();\n int result = googleAPI.isGooglePlayServicesAvailable(getContext());\n if (result != ConnectionResult.SUCCESS) {\n if (googleAPI.isUserResolvableError(result)) {\n googleAPI.getErrorDialog(getActivity(), result,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n }\n\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "ed158e0ce7f65f4cc4cf5153fd3eee8e", "score": "0.68582803", "text": "private boolean checkPlayServicesIsInstalled() {\n\t\tint status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\t\tif (status != ConnectionResult.SUCCESS) {\n\t\t\tif (GooglePlayServicesUtil.isUserRecoverableError(status)) {\n\t\t\t\treturn false;\n\t\t } else {\n\t\t errorPlaySevicesNotInstalled();\n\t\t finish();\n\t\t }\n\t\t return false;\n\t\t }\n\t\t return true;\n\t}", "title": "" }, { "docid": "6182d047201392ca3f87051ddb90cea3", "score": "0.68468577", "text": "private static void isGooglePlayInstalled(Context context) {\n PackageManager pm = context.getPackageManager();\n boolean app_installed = false;\n try {\n\n //context.getPackageManager().getProviderInfo()\n PackageInfo info = pm.getPackageInfo(\"com.android.vending\", PackageManager.GET_ACTIVITIES);\n String label = (String) info.applicationInfo.loadLabel(pm);\n app_installed = (label != null && !label.equals(\"Market\"));\n } catch (PackageManager.NameNotFoundException e) {\n app_installed = false;\n }\n System.out.println(\"Google play is: \" + app_installed);\n }", "title": "" }, { "docid": "4cf638db60219993cc198bdd35092e87", "score": "0.65383214", "text": "private boolean isGooglePlayServicesAvailable() {\r\n int requestCode = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this);\r\n if (ConnectionResult.SUCCESS != requestCode) {\r\n //Check type of error\r\n if (GoogleApiAvailability.getInstance().isUserResolvableError(requestCode)) {\r\n Utility.showToast(this, \"Google Play Service is not install/enabled in this device!\");\r\n //So notification\r\n GoogleApiAvailability.getInstance().showErrorNotification(this, requestCode);\r\n } else {\r\n Utility.showToast(this, \"This device does not support for Google Play Service!\");\r\n }\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "30c10d5982662f7f0092dac91bb81561", "score": "0.65260196", "text": "private boolean isGooglePlayServicesAvailable() {\n\t\tint resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\t\t// If Google Play services is available\n\t\tif (ConnectionResult.SUCCESS == resultCode) {\n\t\t\t// In debug mode, log the status\n\t\t\tLog.d(\"Location Updates\", \"Google Play services is available.\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "33eb3ae4df7595df767365d8d8f68fbe", "score": "0.6494645", "text": "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n // showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "title": "" }, { "docid": "0e90ced9e996af45dc245b52ab227d4c", "score": "0.64739734", "text": "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(getContext());\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "title": "" }, { "docid": "2e33038eb2923fb245ec71660136f541", "score": "0.6470092", "text": "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "title": "" }, { "docid": "2007ece1bc515afc802971c10ba2832a", "score": "0.633779", "text": "private boolean isGooglePlayServicesAvailable() {\n final int connectionStatusCode =\n GooglePlayServicesUtil.isGooglePlayServicesAvailable(getActivity());\n if (GooglePlayServicesUtil.isUserRecoverableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n return false;\n } else if (connectionStatusCode != ConnectionResult.SUCCESS ) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "c8d412f66b12f24d28ac36f4f26ffd12", "score": "0.6337744", "text": "public boolean isServicesOK(){\n Log.d(TAG,\"isServicesOK: checking Google Services version\");\n int available = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this);\n if(available == ConnectionResult.SUCCESS){\n //Everything is fine and user can make map requests\n Log.d(TAG, \"isServicesOK: Google Play Services is working\");\n return true;\n }\n else if (GoogleApiAvailability.getInstance().isUserResolvableError(available)){\n //Error occured but is fixable\n Log.d(TAG,\"isServicesOK: an error has occured but is fixable\");\n Dialog dialog = GoogleApiAvailability.getInstance().getErrorDialog(this,available , ERROR_DIALOG_REQUEST);\n dialog.show();\n }\n else{\n Toast.makeText(this, \"You cant make map request\", Toast.LENGTH_SHORT).show();\n }\n return false;\n }", "title": "" }, { "docid": "f6267a22d8eda370e5d4a7697ce77c04", "score": "0.6316355", "text": "private boolean isServiceOk() {\n Log.d(\"name\", \"isServicesOK: checking google services version\");\n\n int available = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(MainActivity.this);\n\n if(available == ConnectionResult.SUCCESS){\n //everything is fine and the user can make map requests\n Log.d(\"me\", \"isServicesOK: Google Play Services is working\");\n return true;\n }\n else if(GoogleApiAvailability.getInstance().isUserResolvableError(available)){\n //an error occured but we can resolve it\n Log.d(\"i\", \"isServicesOK: an error occured but we can fix it\");\n Dialog dialog = GoogleApiAvailability.getInstance().getErrorDialog(MainActivity.this, available, ERROR_DIALOG_REQUEST);\n dialog.show();\n }else{\n Toast.makeText(this, \"You can't make map requests\", Toast.LENGTH_SHORT).show();\n }\n return false;\n }", "title": "" }, { "docid": "825f69903a1470d73b0c147d92e4d2e9", "score": "0.62961596", "text": "public static boolean isGooglePlayServiceUpToDate(Context context){\n\t\tint status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);\n\t\t\n\t\tif(status == ConnectionResult.SUCCESS){\n\t\t\tLog.i(TAG, \"Google play services are up to date. Proceed...\");\n\t\t\treturn true;\n\t\t}\n\t\telse if(status == ConnectionResult.SERVICE_MISSING){\n\t\t\tLog.e(TAG, \"Google play services is missing. Try recovering user and update play services...\");\n\t\t\trecoverPlayServices(context, status);\n\t\t\treturn false;\n\t\t}\n\t\telse if(status == ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED){\n\t\t\tLog.w(TAG, \"Google play services update required.\");\n\t\t\trecoverPlayServices(context, status);\n\t\t\treturn false;\n\t\t}\n\t\telse if(status == ConnectionResult.SERVICE_DISABLED){\n\t\t\tLog.e(TAG, \"Google play services is disabled.\");\n\t\t\trecoverPlayServices(context, status);\n\t\t\treturn false;\n\t\t}\n\t\telse if(status == ConnectionResult.SERVICE_INVALID){\n\t\t\tLog.e(TAG, \"Google play services is invald.\");\n\t\t\trecoverPlayServices(context, status);\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e937c133be6fba54136c9217dff3cf37", "score": "0.6278197", "text": "private void errorPlaySevicesNotInstalled(){\n\t\tLog.i(\"UbicacionRecogidaActivity\",\n\t\t\t\t\"Google Plays Services not installed\");\n\t\tBundle args = new Bundle();\n\t\targs.putInt(\"title\", R.string.dialog_err_google_play_title);\n\t\targs.putInt(\"description\",R.string.dialog_err_google_play_descr\t);\n\t\tDialogAlert newFragment = DialogAlert.newInstance(args);\n\t\tnewFragment.show(fm, \"tagAvisoLocNotValid\");\t\t\n\t}", "title": "" }, { "docid": "ea9074b7564f8457e217eb3a9037d357", "score": "0.6264253", "text": "private boolean isGooglePlayServicesAvailable() {\n\t\tint resultCode = GooglePlayServicesUtil\n\t\t\t\t.isGooglePlayServicesAvailable(this);\n\t\tif (ConnectionResult.SUCCESS == resultCode) {\n\t\t\tif (Log.isLoggable(TAG, Log.DEBUG)) {\n\t\t\t\tLog.d(TAG, \"Google Play services is available.\");\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\tLog.e(TAG, \"Google Play services is unavailable.\");\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "902273553dd865e0ad4fc7cfda14b858", "score": "0.6225925", "text": "public boolean googlePlayServicesAvailable(){\n int available = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(getActivity());\n\n if(available == ConnectionResult.SUCCESS){\n //everything is fine and user can make map requests\n Toast.makeText(getActivity(), \"Google Play Services is working\", Toast.LENGTH_SHORT).show();\n return true;\n } else if (GoogleApiAvailability.getInstance().isUserResolvableError(available)){\n Dialog dialog = GoogleApiAvailability.getInstance().getErrorDialog(getActivity(), available, ERROR_DIALOG_REQUEST);\n dialog.show();\n } else {\n Toast.makeText(getActivity(), \"Can't make map requests, sorry...\", Toast.LENGTH_SHORT).show();\n }\n return false;\n }", "title": "" }, { "docid": "a6ed792593a0c21cd35f71f4dd92dda7", "score": "0.6210803", "text": "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(mainContext);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "title": "" }, { "docid": "f107d170a6387e3f54c440e0687996c1", "score": "0.6186627", "text": "public boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n int status = googleApiAvailability.isGooglePlayServicesAvailable(this);\n if (status != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(status)) {\n googleApiAvailability.getErrorDialog(this, status, 2404).show();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "f107d170a6387e3f54c440e0687996c1", "score": "0.6186627", "text": "public boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n int status = googleApiAvailability.isGooglePlayServicesAvailable(this);\n if (status != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(status)) {\n googleApiAvailability.getErrorDialog(this, status, 2404).show();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "768f58b9fdd3d14f2f217ff96995edda", "score": "0.6153687", "text": "private boolean isPlayServicesUpdateRequired() {\n int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this.getActivity());\n\n Log.i(LOG_TAG, \"google play status \" + status);\n\n return (status == ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED);\n }", "title": "" }, { "docid": "e08b2cae309b4e0301b8c4e29a32fa05", "score": "0.6146305", "text": "public boolean isServicesOK() {\n Log.d(TAG, \"isServicesOK: checking google services version\");\n int available = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(MainActivity.this);\n\n if (available == ConnectionResult.SUCCESS) {\n Log.d(TAG, \"isServicesOK: Google Play Services is working\");\n return true;\n } else if (GoogleApiAvailability.getInstance().isUserResolvableError(available)) {\n Log.d(TAG, \"isServicesOK: an error occured but it can be fixed\");\n Dialog dialog = GoogleApiAvailability.getInstance().getErrorDialog(MainActivity.this, available, ERROR_DIALOG_REQUEST);\n dialog.show();\n } else {\n Toast.makeText(this, \"You can't make map requests\", Toast.LENGTH_SHORT).show();\n }\n return false;\n }", "title": "" }, { "docid": "ac7708423693f5de1ee5a91c88ed46ad", "score": "0.6145441", "text": "public Boolean isServiceOk() {\n Log.d(TAG, \"is:serivceOK: Checking version\");\n int available = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(MainActivity.this);\n if (available == ConnectionResult.SUCCESS) {\n Log.d(TAG, \"is:serivceOK:google play service is Working\");\n return true;\n } else if (GoogleApiAvailability.getInstance().isUserResolvableError(available)) {\n Log.d(TAG, \"is:serivceOK:google play service is Working\");\n Dialog dialog = GoogleApiAvailability.getInstance().getErrorDialog(MainActivity.this, available, ERROR_DIALOG_REQUEST);\n dialog.show();\n } else {\n Toast.makeText(this, \"No puede hacer la solicitud del mapa\", Toast.LENGTH_SHORT).show();\n }\n return false;\n }", "title": "" }, { "docid": "de389017d29bc64020836bb7b16331ab", "score": "0.61014646", "text": "public void onClick(DialogInterface dialog, int id) {\n\n final String appPackageName = \"com.google.android.gms\";\n try {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"market://details?id=\" + appPackageName)));\n } catch (android.content.ActivityNotFoundException anfe) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=\" + appPackageName)));\n }\n }", "title": "" }, { "docid": "a880671143d59d55af5cc227029c6d7a", "score": "0.6084833", "text": "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "title": "" }, { "docid": "a880671143d59d55af5cc227029c6d7a", "score": "0.6084833", "text": "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "title": "" }, { "docid": "ba27f68d293f6ec4efdec7049eaa07bb", "score": "0.60813856", "text": "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(getContext());\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "title": "" }, { "docid": "d7532855939f175655ad33e99d84bd1e", "score": "0.60102147", "text": "private boolean servicesConnected() {\r\n\t\r\n\t // Check that Google Play services is available\r\n\t int resultCode =\r\n\t GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\r\n\t\r\n\t // If Google Play services is available\r\n\t if (ConnectionResult.SUCCESS == resultCode) {\r\n\t\r\n\t // In debug mode, log the status\r\n\t Log.d(GeofenceUtils.APPTAG, getString(R.string.play_services_available));\r\n\t\r\n\t // Continue\r\n\t return true;\r\n\t\r\n\t // Google Play services was not available for some reason\r\n\t } else {\r\n\t\r\n\t // Display an error dialog\r\n\t Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\r\n\t if (dialog != null) {\r\n\t ErrorDialogFragment errorFragment = new ErrorDialogFragment();\r\n\t errorFragment.setDialog(dialog);\r\n\t errorFragment.show(getFragmentManager(), GeofenceUtils.APPTAG);\r\n\t }\r\n\t return false;\r\n\t }\r\n\t}", "title": "" }, { "docid": "c8231fa5604e2118e2c487e1e341d75e", "score": "0.60025114", "text": "private void showGooglePlayServicesErrorDialog(final Context context, final int resultCode, int playServicesResolutionRequest) {\n\n if (!wasGooglePlayServicesDialogClosed) {\n //Create alert\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getResources().getString(R.string.google_play_services_error_message));\n builder.setPositiveButton(R.string.install, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //Start activity\n PendingIntent pendingIntent = GoogleApiAvailability.getInstance().getErrorResolutionPendingIntent(context, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST);\n try {\n pendingIntent.send();\n } catch (PendingIntent.CanceledException e) {\n e.printStackTrace();\n }\n }\n });\n builder.setNegativeButton(R.string.update_dialog_ahorano, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n wasGooglePlayServicesDialogClosed = true;\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.setCanceledOnTouchOutside(false);\n alertDialog.setOnKeyListener(new DialogInterface.OnKeyListener() {\n @Override\n public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_BACK) {\n // User cancelled the dialog\n wasGooglePlayServicesDialogClosed = true;\n }\n return false;\n }\n });\n alertDialog.show();\n }\n }", "title": "" }, { "docid": "cceef2ea10daaf089718b469b3f93a89", "score": "0.5982754", "text": "private boolean servicesConnected() {\n\t int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\t // If Google Play services is available\n\t if (ConnectionResult.SUCCESS == resultCode) {\n\t // In debug mode, log the status\n\t Log.d(\"Location Updates\", \"Google Play services is available.\");\n\t // Continue\n\t return true;\n\t // Google Play services was not available for some reason\n\t } else {\n\t // Get the error code\n\t //int errorCode = connectionResult.getErrorCode();\n\t // Get the error dialog from Google Play services\n\t Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(\n\t resultCode,\n\t this,\n\t CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n\t // If Google Play services can provide an error dialog\n\t if (errorDialog != null) {\n\t // Create a new DialogFragment for the error dialog\n\t ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n\t // Set the dialog in the DialogFragment\n\t errorFragment.setDialog(errorDialog);\n\t // Show the error dialog in the DialogFragment\n\t //errorFragment.show(getSupportFragmentManager(), \"Location Updates\");\n\t }\n\t return false;\n\t }\n\t }", "title": "" }, { "docid": "f316a93f8f7c1f44769ee07161ba05aa", "score": "0.59701854", "text": "private boolean servicesConnected() {\r\n\r\n // Check that Google Play services is available\r\n int resultCode =\r\n GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\r\n\r\n // If Google Play services is available\r\n if (ConnectionResult.SUCCESS == resultCode) {\r\n // In debug mode, log the status\r\n Log.d(LocationUtils.APPTAG, getString(R.string.play_services_available));\r\n\r\n // Continue\r\n return true;\r\n // Google Play services was not available for some reason\r\n } else {\r\n // Display an error dialog\r\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\r\n if (dialog != null) {\r\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\r\n errorFragment.setDialog(dialog);\r\n errorFragment.show(getSupportFragmentManager(), LocationUtils.APPTAG);\r\n }\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "d70ac57981f7ea3b0b434c161c1dfec4", "score": "0.5960145", "text": "public boolean servicesOK() {\r\n\r\n int isAvailable = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\r\n if (isAvailable == ConnectionResult.SUCCESS) {\r\n return true;\r\n } else if (GooglePlayServicesUtil.isUserRecoverableError(isAvailable)) {\r\n Dialog dialog =\r\n GooglePlayServicesUtil.getErrorDialog(isAvailable, this, ERROR_DIALOG_REQUEST);\r\n dialog.show();\r\n } else {\r\n Toast.makeText(this, R.string.unable_to_connect_to_mappingservice_toast, Toast.LENGTH_SHORT).show();\r\n }\r\n\r\n return false;\r\n }", "title": "" }, { "docid": "61b5a40081bc1c79180e07e02383bc4e", "score": "0.59172344", "text": "private void showInAppStore() {\n final String appPackageName = getPackageName();\n try {\n // google play store if it is installed\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"market://details?id=\" + appPackageName)));\n } catch (android.content.ActivityNotFoundException anfe) {\n // not found, open in browser\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=\" + appPackageName)));\n }\n }", "title": "" }, { "docid": "3f18d603b29e39bf4108324c5f0a61ed", "score": "0.5889543", "text": "private boolean servicesConnected() {\n\n // Check that Google Play services is available\n int resultCode =\n GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n // In debug mode, log the status\n Log.d(LocationUtils.APPTAG, getString(R.string.play_services_available));\n\n // Continue\n return true;\n // Google Play services was not available for some reason\n } else {\n // Display an error dialog\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n if (dialog != null) {\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n errorFragment.setDialog(dialog);\n errorFragment.show(getFragmentManager(), LocationUtils.APPTAG);\n }\n return false;\n }\n }", "title": "" }, { "docid": "99ed5f53052082fb235615eaa135e6a8", "score": "0.5877314", "text": "public boolean isPlayServiceAvailable() {\n int resultCode = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this);\n // If Google Play services is available\n\n return (ConnectionResult.SUCCESS == resultCode);\n }", "title": "" }, { "docid": "5d710d76baae222fe031a0159a8e48ec", "score": "0.5874047", "text": "private boolean servicesConnected() {\n int resultCode =\n GooglePlayServicesUtil.\n isGooglePlayServicesAvailable(this);\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n // In debug mode, log the status\n Log.d(\"Location Updates\",\n \"Google Play services is available.\");\n // Continue\n return true;\n // Google Play services was not available for some reason\n } else {\n \tConnectionResult connectionResult = new ConnectionResult(resultCode, null);\n // Get the error code\n int errorCode = connectionResult.getErrorCode();\n // Get the error dialog from Google Play services\n Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(\n errorCode,\n this,\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n // If Google Play services can provide an error dialog\n if (errorDialog != null) {\n // Create a new DialogFragment for the error dialog\n ErrorDialogFragment errorFragment =\n new ErrorDialogFragment();\n // Set the dialog in the DialogFragment\n errorFragment.setDialog(errorDialog);\n // Show the error dialog in the DialogFragment\n errorFragment.show(getFragmentManager(),\n \"Location Updates\");\n }\n return false;\n }\n }", "title": "" }, { "docid": "e6fc67d49ceae215112186c7402f1094", "score": "0.5871316", "text": "@Override\n public void onConnected(Bundle bundle) {\n // Connected to Google Play services.\n checkPermissions();\n\n }", "title": "" }, { "docid": "f89e1a3df4132d770db8f27b43113976", "score": "0.5827773", "text": "private void startStep1() {\n if (isGooglePlayServicesAvailable()) {\n\n //Passing null to indicate that it is executing for the first time.\n startStep2(null);\n\n } else {\n Toast.makeText(getApplicationContext(), R.string.no_google_playservice_available, Toast.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "2a503581d05706e7d006114312e21a55", "score": "0.581319", "text": "@Override\n public boolean isBillingAvailable(final String packageName) {\n Logger.d(\"isBillingAvailable() packageName: \", packageName);\n if (billingAvailable != null) {\n return billingAvailable; // return previously checked result\n }\n\n if (Utils.uiThread()) {\n throw new IllegalStateException(\"Must no be called from UI thread.\");\n }\n\n if (!packageExists(context, ANDROID_INSTALLER)) {\n Logger.d(\"isBillingAvailable() Google Play is not available.\");\n // don't set billingAvailable variable in case Google Play gets installed later\n return false;\n }\n\n final Intent intent = new Intent(GooglePlay.VENDING_ACTION);\n intent.setPackage(GooglePlay.ANDROID_INSTALLER);\n final List<ResolveInfo> infoList = context.getPackageManager().queryIntentServices(intent, 0);\n if (infoList == null || CollectionUtils.isEmpty(infoList)) {\n Logger.e(\"isBillingAvailable() billing service is not available, even though Google Play application seems to be installed.\");\n return false;\n }\n\n final CountDownLatch latch = new CountDownLatch(1);\n final boolean[] result = new boolean[1];\n serviceConnection = new ServiceConnection() {\n public void onServiceConnected(ComponentName name, IBinder service) {\n final IInAppBillingService mService = IInAppBillingService.Stub.asInterface(service);\n try {\n new Thread(() -> {\n try {\n final int response = mService.isBillingSupported(3, packageName, IabHelper.ITEM_TYPE_INAPP);\n result[0] = response == IabHelper.BILLING_RESPONSE_RESULT_OK;\n } catch (RemoteException e) {\n result[0] = false;\n Logger.e(\"isBillingAvailable() RemoteException while setting up in-app billing\", e);\n } catch (Exception e) {\n result[0] = false;\n Logger.e(\"isBillingAvailable() Exception while setting up in-app billing\", e);\n } finally {\n latch.countDown();\n unbind();\n }\n Logger.d(\"isBillingAvailable() Google Play result: \", result[0]);\n }).start();\n } catch (Exception e) {\n result[0] = false;\n Logger.e(\"isBillingAvailable() Exception while setting up in-app billing\", e);\n latch.countDown();\n unbind();\n }\n }\n\n public void onServiceDisconnected(ComponentName name) {/*do nothing*/}\n };\n try {\n if (context.bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE)) {\n try {\n latch.await();\n } catch (InterruptedException e) {\n Logger.e(\"isBillingAvailable() InterruptedException while setting up in-app billing\", e);\n }\n } else {\n result[0] = false;\n Logger.e(\"isBillingAvailable() billing is not supported. Initialization error.\");\n }\n } catch (Exception e) {\n latch.countDown();\n Logger.e(\"isBillingAvailable() billing is not supported. Initialization error. \", e);\n return false;\n }\n return (billingAvailable = result[0]);\n }", "title": "" }, { "docid": "56350d1fe7516579157894d45ea6d0da", "score": "0.5774016", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=\" + getPackageName()));\n startActivity(intent);\n popupStore.dismiss();\n }", "title": "" }, { "docid": "47be2234b5472000d9883ee092c86ebd", "score": "0.5757972", "text": "private boolean servicesAvailable() {\n\t\tint resultCode = GooglePlayServicesUtil\n\t\t\t\t.isGooglePlayServicesAvailable(this);\n\n\t\t// If Google Play services is available\n\n\t\treturn (ConnectionResult.SUCCESS == resultCode);\n\n\t}", "title": "" }, { "docid": "45b03ec2348b143b534deabcda1d34ad", "score": "0.57140535", "text": "private boolean servicesConnected() {\n\n // Check that Google Play services is available\n int resultCode =\n GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n // In debug mode, log the status\n Log.d(TAG, getString(R.string.play_services_available));\n\n // Continue\n return true;\n // Google Play services was not available for some reason\n } else {\n // Display an error dialog\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n if (dialog != null) {\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n errorFragment.setDialog(dialog);\n errorFragment.show(getSupportFragmentManager(), TAG);\n }\n return false;\n }\n }", "title": "" }, { "docid": "ee2ba40c02a3729c546eed8473c426ac", "score": "0.56642205", "text": "private void startStep1() {\n\n //Check whether this user has installed Google play service which is being used by Location updates.\n if (isGooglePlayServicesAvailable()) {\n\n //Passing null to indicate that it is executing for the first time.\n startStep2(null);\n\n } else {\n Toast.makeText(getApplicationContext(), R.string.running_no_google_playservice_available, Toast.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "35d1bb90e21b4fd0b7db3702931877d6", "score": "0.5645062", "text": "private boolean servicesConnected() {\n final int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(mActivity);\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n // In debug mode, log the status\n Logger.d(\"Location Updates\", \"Google Play services is available.\");\n // Continue\n return true;\n // Google Play services was not available for some reason\n } else {\n\n if (mConnectionResult != null) {\n // Get the error code\n final int errorCode = mConnectionResult.getErrorCode();\n // Get the error dialog from Google Play services\n final Dialog errorDialog = GooglePlayServicesUtil\n .getErrorDialog(errorCode, mActivity, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n // If Google Play services can provide an error dialog\n if (errorDialog != null) {\n // Create a new DialogFragment for the error dialog\n final ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n // Set the dialog in the DialogFragment\n errorFragment.setDialog(errorDialog);\n // Show the error dialog in the DialogFragment\n errorFragment.show(mActivity.getSupportFragmentManager(), \"Location Updates\");\n }\n }\n\n return false;\n }\n }", "title": "" }, { "docid": "085c91cc9cfcfd1040a50e7da2d4fd21", "score": "0.55918986", "text": "@Test()\n\tpublic void VerifyGooglePlayStoreloadedToDownloadSalesForceATest() {\n\n\t\tWebElement next=driver.findElement(By.xpath(\"//div[@class='rightScroll']//button\"));\n\t\twaitClickMethod(driver, next);\n\t\twaitClickMethod(driver, next);\n\n\t\tWebElement salesForceGooglePlayStore=driver.findElement(By.\n\t\t\t\txpath(\"//span[text()='Download SalesforceA']//following::button[@title='Google Play']\"\n\t\t\t\t\t\t)); \n\t\tdriver.executeScript(\"arguments[0].click();\", salesForceGooglePlayStore);\n\n\t\tString CurrentWindow=driver.getWindowHandle();\n\t\t\n\t\tSet<String> allWIndows=driver.getWindowHandles();\n\n\t\tfor (String string : allWIndows) {\n\n\t\t\tdriver.switchTo().window(string);\t\n\t\t}\n\n\n\t\tWebElement confirm=driver.findElement(By.xpath(\"//button[@onClick='goAhead()']\"));\n\t\tconfirm.click();\n\n\t\tString actualText=driver.findElement(By.xpath(\"//h1[@itemprop='name']//span\")).getText();\n\n\t\tAssert.assertEquals(actualText, expectedText);\n\t\t\n\t\tWebElement install= driver.findElement(By.xpath(\"//button[@aria-label='Install' and text()='Install']\"));\n\t\t\n\t\tif(install.isDisplayed())\n\t\t\tAssert.assertTrue(true);\n\t\t\n\t\telse\n\t\t\tAssert.assertFalse(false);\n\t\tdriver.switchTo().window(CurrentWindow);\n\t}", "title": "" }, { "docid": "df761d1f374c5c00a8371788fc53edd0", "score": "0.55819225", "text": "private boolean servicesConnected() {\n\t\tint resultCode = GooglePlayServicesUtil\n\t\t\t\t.isGooglePlayServicesAvailable(this);\n\n\t\t// If Google Play services is available\n\t\tif (ConnectionResult.SUCCESS == resultCode) {\n\n\t\t\treturn true;\n\t\t} else {\n\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "f4a79a039f332e9923ad739bd29006b4", "score": "0.5552804", "text": "protected boolean servicesConnected() {\n int resultCode =\n GooglePlayServicesUtil.\n isGooglePlayServicesAvailable(mContext);\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n // In debug mode, log the status\n Log.d(\"Location Updates\",\n \"Google Play services is available.\");\n // Continue\n return true;\n // Google Play services was not available for some reason.\n // resultCode holds the error code.\n } else {\n String errorString = GooglePlayServicesUtil.getErrorString(resultCode);\n Toast.makeText(mContext, errorString, Toast.LENGTH_LONG).show();\n Log.e(TAG, errorString);\n return true;\n }\n }", "title": "" }, { "docid": "7994cd5f70527ec1fdd6b5633ca76d3e", "score": "0.5547664", "text": "@Override\n protected void onActivityResult(\n int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch(requestCode) {\n case REQUEST_GOOGLE_PLAY_SERVICES:\n if (resultCode != RESULT_OK) {\n Dialog dialog = new AlertDialog.Builder(this)\n .setTitle(\"This app requires Google Play Services. Please install \" +\n \" Google Play Services on your device and relaunch this app.\")\n .setMessage(\"You must be online for this app to work.\")\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //do nothing\n }\n })\n .setPositiveButton(\"Okay\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //do nothing\n }\n })\n .show();\n } else {\n getData();\n }\n break;\n case REQUEST_ACCOUNT_PICKER:\n if (resultCode == RESULT_OK && data != null &&\n data.getExtras() != null) {\n String accountName =\n data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME);\n if (accountName != null) {\n SharedPreferences settings =\n getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(PREF_ACCOUNT_NAME, accountName);\n editor.apply();\n mCredential.setSelectedAccountName(accountName);\n getData();\n }\n }\n break;\n case REQUEST_AUTHORIZATION:\n if (resultCode == RESULT_OK) {\n getData();\n }\n break;\n }\n }", "title": "" }, { "docid": "2ff9aac482397d68375681d17be7463a", "score": "0.55265045", "text": "private void startSignInActivityForGoogle() {\n startActivityForResult(\n AuthUI.getInstance()\n .createSignInIntentBuilder()\n .setAvailableProviders(\n Collections.singletonList(new AuthUI.IdpConfig.GoogleBuilder().build())) //Google\n .setIsSmartLockEnabled(false, true)\n .build(), RC_SIGN_IN);\n }", "title": "" }, { "docid": "86b91351f06c1feb221da5f2f369b71f", "score": "0.5515822", "text": "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tcheckPlayServices();\n\t}", "title": "" }, { "docid": "815cfe31f2017ffc1cabfadd9daaea24", "score": "0.54802257", "text": "private void checkAPKUpdate() {\n }", "title": "" }, { "docid": "3eae3e0685094149437044291845cf69", "score": "0.5458101", "text": "@Test(description = \"Step 3 : Verify the presence of google play button.\", priority = 3)\r\n\tpublic void Step03_VerifyPresenceOfGooglePlayButton() throws Exception\r\n\t{\r\n\t\t\r\n\t\t//verify UpSell Banner Google Play button is displaying or not\r\n\t\tAssert.assertTrue(CustomFun.isElementPresent(By.xpath(ObjRepoProp.getProperty(\"homePageUpSellBarGooglePlayButton_XPATH\")),\r\n\t\tdriver), \"UpSell Banner Google Play button not present\");\r\n\t\tlog.info(\"Google play button is present in UpSell section\");\r\n\t\tReporter.log(\"<p>Google play button is present in UpSell section</p>\");\r\n\t}", "title": "" }, { "docid": "ec4311eae6f6adddcb986d2a852e3557", "score": "0.5445342", "text": "public void loginWithGoogle(View v) {\n loginWithGoogleBtn.setVisibility(View.GONE);\n loginWithGoogleProgressBar.setVisibility(View.VISIBLE);\n Intent signIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signIntent, GOOGLE_SIGN);\n }", "title": "" }, { "docid": "2c9b75686f3e5c36a783a4471cb2371b", "score": "0.5436959", "text": "@Override\n public void onFailure(@NonNull Exception e)\n {\n if (e instanceof ApiException)\n {\n //An error with the Google Play services API contains some additional details.\n ApiException apiException = (ApiException) e;\n game.DeviceCheck(false, true, ((ApiException) e).getStatusCode(), false, false);\n }\n else\n {\n //Some other error occurred.\n game.DeviceCheck(true, false, 0, false, false);\n }\n }", "title": "" }, { "docid": "40a9a2cfd61343f36604a02a05ae3fd8", "score": "0.5434477", "text": "public void onClick(View v) {\n googleSignIn();\n }", "title": "" }, { "docid": "40a9a2cfd61343f36604a02a05ae3fd8", "score": "0.5434477", "text": "public void onClick(View v) {\n googleSignIn();\n }", "title": "" }, { "docid": "0a94a932b0aa8b21e21ac741e33c095f", "score": "0.5421743", "text": "private void googleSignin(){\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "title": "" }, { "docid": "0b30735fd65fc451bc9b8044d8510bfb", "score": "0.53967005", "text": "@Override\n public void onActivityResult(\n int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch(requestCode) {\n case REQUEST_GOOGLE_PLAY_SERVICES:\n if (resultCode != RESULT_OK) {\n Toast.makeText(getActivity(),\n \"This app requires Google Play Services. Please install Google Play Services on your device and relaunch this app.\", Toast.LENGTH_LONG).show();\n } else {\n getResultsFromApi();\n }\n break;\n case REQUEST_ACCOUNT_PICKER:\n if (resultCode == RESULT_OK && data != null &&\n data.getExtras() != null) {\n String accountName =\n data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME);\n if (accountName != null) {\n SharedPreferences settings =\n getActivity().getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(PREF_ACCOUNT_NAME, accountName);\n editor.apply();\n mCredential.setSelectedAccountName(accountName);\n getResultsFromApi();\n }\n }\n break;\n case REQUEST_AUTHORIZATION:\n if (resultCode == RESULT_OK) {\n getResultsFromApi();\n }\n break;\n }\n }", "title": "" }, { "docid": "6711102494686e895b682fc940750ea5", "score": "0.5341639", "text": "private void looginGoogle() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "title": "" }, { "docid": "a8d2014e1555836d3085cea6a174ab91", "score": "0.53245544", "text": "private void showStore() {\n final String appPackageName = activity.getPackageName(); // getPackageName() from Context or Activity object\n try {\n activity.startActivity(\n new Intent(Intent.ACTION_VIEW, Uri.parse(\"market://details?id=\" + appPackageName))\n );\n } catch (android.content.ActivityNotFoundException anfe) {\n activity.startActivity(\n new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=\" + appPackageName))\n );\n }\n }", "title": "" }, { "docid": "dea9f5aea117a58875a3672a0cf54d73", "score": "0.5323812", "text": "public boolean isGoogleSigned(String packageName) {\n return false;\n }", "title": "" }, { "docid": "5a6fa0f7241b8b32b1ed6d797ec49da5", "score": "0.5294771", "text": "public void run() {\n\n int version = mPreferences.getInt(PREF.VERSION, 0);\n if (BuildConfig.VERSION_CODE != version) {\n // different version code:\n mPreferences.edit().clear().putInt(PREF.VERSION, BuildConfig.VERSION_CODE).apply();\n }\n\n if (mPreferences.getBoolean(PREF.DONT_SHOW_AGAIN, false)) {\n mListener.handlePositive();\n return;\n }\n\n if (!isPlayStoreInstalled()) {\n Log.d(TAG, \"No Play Store installed on device.\");\n if (!mRunWithoutPlayStore) {\n mListener.handleError();\n return;\n }\n }\n\n if (serviceUrl != null) {\n if (isNetworkAvailable()) {\n new GetParamsAsyncTask(mActivity, false).execute();\n }\n } else {\n showDialogIfRequired();\n }\n }", "title": "" }, { "docid": "5cfe7a041cb71405b154ce4874e64685", "score": "0.52835405", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == HyperTrack.REQUEST_CODE_LOCATION_SERVICES) {\n if (resultCode == Activity.RESULT_OK) {\n // Check if Location Settings are enabled to proceed\n checkForLocationSettings();\n\n } else {\n // Handle Enable Location Services request denied error\n Toast.makeText(this, R.string.enable_location_settings,\n Toast.LENGTH_SHORT).show();\n }\n }\n }", "title": "" }, { "docid": "bd05f877883b8544ee52af1b0af746e4", "score": "0.5272875", "text": "private void signGooglePlus() {\n\n\t\t\tif (!mPlusClient.isConnected()) {\n\t\t\t\tif (mConnectionResult == null) {\n\t\t\t\t\tmConnectionProgressDialog.show();\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmConnectionResult.startResolutionForResult(this,\n\t\t\t\t\t\t\t\tREQUEST_CODE_RESOLVE_ERR);\n\n\t\t\t\t\t} catch (SendIntentException e) {\n\t\t\t\t\t\t// Try connecting again.\n\t\t\t\t\t\tmConnectionResult = null;\n\t\t\t\t\t\tmPlusClient.connect();\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "245fd4d272335cf651c6babc6f98bb1c", "score": "0.525755", "text": "private String getGooglePlayInfo(){\r\n\t\tAccountManager manager = (AccountManager) getSystemService(ACCOUNT_SERVICE);\r\n\t\tAccount[] list = manager.getAccounts();\r\n\t\tString gmail = \"\";\r\n\r\n\t\tfor(Account account: list)\r\n\t\t{\r\n\t\t\tif(account.type.equalsIgnoreCase(\"com.google\"))\r\n\t\t\t{\r\n\t\t\t\tgmail = account.name;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(gmail.equals(\"\")){\r\n\t\t\tToast.makeText(getApplicationContext(), \"Couldn't retrieve Google Play account!\",\r\n\t\t\t\t\t Toast.LENGTH_LONG).show();\r\n\t\t}\r\n\t\t\r\n\t\treturn gmail;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7a1f3d40a3b941c68c3aab618c3818cf", "score": "0.5246377", "text": "private boolean checkInstalled(Intent intent, String appName) {\n if (getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY).isEmpty()) {\n Toast.makeText(this, appName + \" App not Installed\", Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "0c883df3c5d16bafa2ed0ffe45a42649", "score": "0.5221183", "text": "public void verify(View view) {\n Toast.makeText(getApplicationContext(),\"Verify clicked\",Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "d7660a04e8a436a8346befc118336b41", "score": "0.5218118", "text": "@Override\n public void onClick(View view) {\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(\"https://play.google.com/store/apps/details?id=org.ieee.mobile.mcoe.ieee&hl=en_IN\"));\n startActivity(i);\n }", "title": "" }, { "docid": "f63c549ea1543fc1b83163fb338f6f45", "score": "0.5142723", "text": "public void VerifyFingerprint() {\n KeyguardManager keyguardManager = (KeyguardManager) getContext().getSystemService(KEYGUARD_SERVICE);\n FingerprintManager fingerprintManager = (FingerprintManager) getContext().getSystemService(FINGERPRINT_SERVICE);\n\n // Verifica se o device tem o sensor de digital\n if (!fingerprintManager.isHardwareDetected()) {\n // Aqui o device nao tem o sensor de digital\n } else {\n // Aqui o device tem o sensor de digital\n // Verifica se tem permissao para a digital\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.USE_FINGERPRINT) !=\n PackageManager.PERMISSION_GRANTED) {\n // Precisa registrar pelo menos uma digital\n } else {\n // Aqui o device já tem ao menos uma digital cadastrada\n // Verifica se a segurança da tela de bloqueio está ativada ou não\n if (!keyguardManager.isKeyguardSecure()) {\n Toast.makeText(getContext(), \"\" + \"Lock screen security not enabled in Settings\", Toast.LENGTH_SHORT).show();\n } else {\n GenerateKeyCipher generateKeyCipher = new GenerateKeyCipher();\n generateKeyCipher.generateKey();\n if (generateKeyCipher.cipherInit()) {\n FingerprintManager.CryptoObject cryptoObject = new FingerprintManager.CryptoObject(generateKeyCipher.getcipher());\n FingerprintHandler helper = new FingerprintHandler(getContext());\n helper.startAuth(fingerprintManager, cryptoObject);\n\n }\n }\n }\n }\n }", "title": "" }, { "docid": "eab94119ce541ee5f6376ff7c4732d45", "score": "0.51163405", "text": "public void checkToken() {\n GoogleApiAvailability.getInstance().makeGooglePlayServicesAvailable(this).addOnFailureListener(new OnFailureListener() {\n public void onFailure(@NonNull Exception exc) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"getInstanceId scheduleJobiled : \");\n sb.append(exc.getMessage());\n LogUtil.write(sb.toString());\n }\n });\n FirebaseInstanceId.getInstance().getInstanceId().addOnCompleteListener(this.mCompleteListener);\n loginProcess();\n }", "title": "" }, { "docid": "6548c2849d15a34835902326b253c6e8", "score": "0.51141995", "text": "@Test(description = \"Step 4 : Verify Google play button is clickable.\", priority = 4)\r\n\tpublic void Step04_googlePlayButtonClickable() throws Exception\r\n\t{\r\n\t\tAssert.assertTrue(driver.findElement(By.xpath(ObjRepoProp.getProperty(\"homePageUpSellBarGooglePlayButton_XPATH\")))\r\n\t\t\t .isEnabled(),\"Google Play button is not able to click\");\r\n\t\tlog.info(\"Google play button is clickable in UpSell section\");\r\n\t\tReporter.log(\"<p>Google play button is clickable in UpSell section</p>\");\r\n\t}", "title": "" }, { "docid": "c901a2bfed882da3244a7d60d342c392", "score": "0.51083237", "text": "void signIn(){\n GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(this, GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN);\n\n //Performs the login into the google account\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "title": "" }, { "docid": "26b2d5ac08dd2cfda848f9b4a99fc645", "score": "0.50943625", "text": "private boolean gpscheck(){\n if (Build.VERSION.SDK_INT >=Build.VERSION_CODES.LOLLIPOP) {\n return manager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n }else{\n String gps = android.provider.Settings.Secure.getString(getContentResolver(),\n Settings.Secure.LOCATION_PROVIDERS_ALLOWED);\n if(gps.matches(\",*gps.*\")) {\n return true;\n\n }else{\n return false;\n }\n }\n\n }", "title": "" }, { "docid": "9a7d2ce771558d798f3e70d543787584", "score": "0.50925153", "text": "public void checkGoogleSignIn() {\n if (SharedPref.readInt(PrefType.AUTH_TYPE)!=0){\n if (SharedPref.readInt(PrefType.AUTH_TYPE) == Enums.GOOGLE_LOGIN)\n mBinding.btnGmailLogin.setText(\"Sign Out\");\n }\n\n\n\n }", "title": "" } ]
34ef25d92ee8aeb8a8aa0498dbf25a8d
/ Handles the input command of console
[ { "docid": "1b5c805ac3dedf23ed646b2ea5b79f83", "score": "0.0", "text": "public void handleCommand() throws IOException\n \t{\n \t\tcommand = command.toUpperCase();\n \t\t\n \t\t\n \t\tif(command.contains(\"RESIZE\"))\n \t\t{\n \t\t\tint spaces = 0;\n \t\t\tfor(int i = 0; i<command.length(); i++)\n \t\t\t{\n \t\t\t\tif(command.charAt(i) == ' ')\n \t\t\t\t{\n \t\t\t\t\tspaces++;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif(spaces == 0)\n \t\t\t{\n \t\t\t\tprint(\"No values specified..resize <x> <y>\");\n \t\t\t}\n \t\t\telse if(spaces == 1)\n \t\t\t{\n \t\t\t\tprint(\"Missing value..resize <x> <y>\");\n \t\t\t} \t\t\t\n \t\t\telse if(spaces == 2)\n \t\t\t{\n \t\t\t\tString[] pieces = command.split(\" \");\n \t\t\t\tint val1;\n \t\t\t\tint val2;\n \t\t\t\ttry\n \t\t\t\t{\n \t\t\t\t\tval1 = Integer.parseInt(pieces[1]);\n \t\t\t\t\tval2 = Integer.parseInt(pieces[2]);\n \t\t\t\t}\n \t\t\t\tcatch(NumberFormatException e)\n \t\t\t\t{\n \t\t\t\t\tprint(\"Incorrect format of 'resize' command entered. Correct format is: resize <x> <y>)\");\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t\t//closeConsole();\n \t\t\t\tresize(val1, val2);\n \t\t\t\tprint(\"Window size has been resized to (\" + val1 + \",\" + val2 + \").\");\n\n\n \t\t\t\t//showConsole();\n \t\t\t\t\n \t\t\t\treturn;\n\t\t\t\n \t\t\t}\n \t\t\telse\n \t\t\t{\n\t\t\t\t\tprint(\"Incorrect format of 'spawn' command entered. Correct format is: spawn <amount of bots> <radius>)\");\n \t\t\t\t\treturn; \t\t\t\t\n \t\t\t}\n\n \t\t\treturn;\n \t\t}\n \t\telse if(command.contains(\"SAVEMAP\") || command.contains(\"SAVE\"))\n \t\t{\n \t\t\tint spaces = 0;\n \t\t\tfor(int i = 0; i<command.length(); i++)\n \t\t\t{\n \t\t\t\tif(command.charAt(i) == ' ')\n \t\t\t\t{\n \t\t\t\t\tspaces++;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif(spaces == 1)\n \t\t\t{\n \t\t\t\tString[] pieces = command.split(\" \");\n \t\t\t\tString fileName = pieces[1];\n \t\t\t\tmapSaver.saveMap(currentMap, fileName);\n \t\t\t\t\n \t\t\t\tSystem.out.println(\"111111111111111111111111111111111111111111111\");\n \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t}\n \t\telse if(command.contains(\"LOADMAP\") || command.contains(\"LOAD\"))\n \t\t{\n \t\t\tString[] parts = command.split(\" \");\n \t\t\t\n \t\t\t\n \t\t\tif(parts.length == 2)\n \t\t\t{\n \t\t\t\tString fileName = parts[1];\n \t\t\t\tMap tempMap = mapSaver.loadMap(fileName);\n \t\t\t\tif(tempMap != null)\n \t\t\t\t{\n \t\t\t\t\tmaps.add(tempMap);\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t}\n \t\telse if(command.contains(\"SWITCHMAP\") || command.contains(\"SWITCH\"))\n \t\t{\n \t\t\tString[] parts = command.split(\" \");\t\n \t\t\tif(parts.length == 2)\n \t\t\t{\n \t\t\t\tString mapName = parts[1];\n \t\t\t\tMap tempMap = null;\n \t\t\t\tfor(int i = 0; i<maps.size(); i++)\n \t\t\t\t{\n\t\t\t\t\t//System.out.println(\"other\" + maps.get(i).name);\n\t\t\t\t\t//System.out.println(\"finding\" + mapName);\t\t\t\t\t\n \t\t\t\t\tif(maps.get(i).name.toUpperCase().equals(mapName))\n \t\t\t\t\t{\n \t\t\t\t\t\ttempMap = maps.get(i);\n\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(tempMap == null)\n \t\t\t\t\tprint(\"no map with the name was found\");\n \t\t\t\telse\n \t\t\t\t{\n\t \t\t\t\tcurrentMap.remove(player);\n\t \t\t\t\tcurrentMap = tempMap;\n\t \t\t \t\tplayer.setParent(currentMap);\n\t \t\t \t\tplayer.setLocation(100, 100);\n\t \t\t \t\tcurrentMap.add(player); \t\t\t\t\t\n \t\t\t\t}\n\t\t\t\t\t\n \t\t\t} \t\t\t \t\t\t\n \t\t} \n \t\telse if(command.contains(\"SET\"))\n \t\t{\n \t\t\tString[] parts = command.split(\" \");\n \t\t\tif(parts.length == 3)\n \t\t\t{\n \t\t\t\tswitch(parts[1])\n \t\t\t\t{\n \t\t\t\tcase \"WIDTH\":\n \t\t\t\t\tif(selectedEnt != null)\n \t\t\t\t\t{\n \t\t\t\t\t\tselectedEnt.setSize(Integer.parseInt(parts[2]), selectedEnt.getHeight());\n \t\t\t\t\t\t\n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase \"HEIGHT\":\n \t\t\t\t\tif(selectedEnt != null)\n \t\t\t\t\t{\n \t\t\t\t\t\tselectedEnt.setSize(selectedEnt.getWidth(), Integer.parseInt(parts[2]));\n \t\t\t\t\t}\n \t\t\t\t\tbreak; \t\t\t\t\n \t\t\t\tcase \"X\":\n \t\t\t\t\tif(selectedEnt != null)\n \t\t\t\t\t{\n \t\t\t\t\t\tselectedEnt.setX(Integer.parseInt(parts[2]));\n \t\t\t\t\t}\n \t\t\t\t\tbreak; \t \t\t\t\t\n \t\t\t\tcase \"Y\":\n \t\t\t\t\tif(selectedEnt != null)\n \t\t\t\t\t{\n \t\t\t\t\t\tselectedEnt.setY(Integer.parseInt(parts[2]));\n \t\t\t\t\t}\n \t\t\t\t\tbreak; \t\n \t\t\t\tcase \"SPRITE\":\n \t\t\t\t\tif(selectedEnt != null)\n \t\t\t\t\t{\n \t\t\t\t\t\tselectedEnt.setSprite(parts[2]);\n \t\t\t\t\t}\n \t\t\t\t\tbreak; \t\t\t\t\t\n \t\t\t\t\n \t\t\t\t}\n\t\n \t\t\t}\t\n \t\t}\n \t\t\n \t\t\n \t\t\n \t\tswitch(command)\n \t\t{\n \t\t\tcase \"DRAW\":\n \t\t\t\ttoggleDrawing();\n \t\t\t\treturn;\n \t\t\tcase \"DRAG\":\n \t\t\t\ttoggleDragging();\n \t\t\t\treturn; \t\t\t\t\n \t\t\tcase \"BORDER\":\n \t\t\t\tisBorder = true;\n \t\t\t\treturn;\n \t\t\tcase \"NEW MAP\":\n \t\t\t\tnewMap();\n \t\t\t\treturn;\n \t\t\tcase \"DRAW BOT\":\n \t\t\t\tif(!drawing)\n \t\t\t\t\ttoggleDrawing();\n \t\t\t\tselectedID = 1;\n \t\t\t\treturn;\n \t\t\tcase \"DRAW BOX\":\n \t\t\t\tif(!drawing)\n \t\t\t\t\ttoggleDrawing();\n \t\t\t\tselectedID = 0;\n \t\t\t\treturn; \n \t\t\tcase \"DRAW MOVING BOX\":\n \t\t\t\tif(!drawing)\n \t\t\t\t\ttoggleDrawing();\n \t\t\t\tselectedID = 2;\n \t\t\t\treturn; \n \t\t\tcase \"DRAW DECORATION\":\n \t\t\t\tif(!drawing)\n \t\t\t\t\ttoggleDrawing();\n \t\t\t\tselectedID = 3;\n \t\t\t\treturn; \t\t\t\t\n \t\t\tcase \"DRAW PORTAL\":\n \t\t\t\tif(!drawing)\n \t\t\t\t\ttoggleDrawing();\n \t\t\t\tselectedID = 4;\n \t\t\t\treturn; \n \t\t\tcase \"DRAW SPAWNER\":\n \t\t\t\tif(!drawing)\n \t\t\t\t\ttoggleDrawing();\n \t\t\t\tselectedID = 5;\n \t\t\t\treturn; \t\t\t\t\n \t\t\tcase \"PAUSE\": \n \t\t\t\ttogglePause();\n \t\t\t\treturn;\n \t\t\tcase \"DELETE\":\n \t\t\t\tdeleteSelection();\n \t\t\t\treturn;\n \t\t\tcase \"SWITCH MAP\":\n \t\t\t\tcurrentMap.remove(player);\n \t\t\t\tcurrentMap = maps.get(1);\n \t\t \t\t//maps.add(currentMap);\n \t\t \t\tplayer.setParent(currentMap);\n \t\t \t\tplayer.setLocation(100, 100);\n \t\t \t\tcurrentMap.add(player); \t\t\t\t\n \t\t\t\t\n \t\t\t\treturn;\n \t\t\tcase \"MAPS\":\n \t\t\t\tString list = \"\";\n \t\t\t\tfor(Map e: maps)\n \t\t\t\t{\n \t\t\t\t\tlist = list + e.name + \" \";\n \t\t\t\t}\n \t\t\t\t\t\n \t\t\t\tprint(list);\n \t\t\t\treturn;\n \t\t\tcase \"DUPLICATE\":\n \t\t\t\t\n\t\t\t\t\n \t\t}\n \t\t\n \t}", "title": "" } ]
[ { "docid": "c96380f06f9be032fe2b8bbbe831708b", "score": "0.75288886", "text": "private void handleInput(String in) throws Exception {\n switch (in.substring(0,2).trim()){\n case CLI_COMMAND_PS: { ps(); break; }\n case CLI_COMMAND_RUN: { create(in); break; }\n case CLI_COMMAND_RM: { remove(in); break; }\n case CLI_COMMAND_CB: { changeBehaviour(in); break;}\n case CLI_COMMAND_RA: { removeAll(); break;}\n case CLI_COMMAND_HE: { write(CLI_HELP, 0); break;}\n default: { throw new Exception(); }\n }\n }", "title": "" }, { "docid": "f1add84912f41ce9c3e20b85039395ca", "score": "0.7517136", "text": "public static void read_command(){\n try{\n argl = input.nextLine(); \n }catch (NoSuchElementException e){ // Exception levé lors de Ctrl+D\n argl = \"exit\";\n System.out.println(\"Bye.\");\n }\n }", "title": "" }, { "docid": "f9f791653f586b421dbcd0d034980911", "score": "0.7494583", "text": "void handleCommand(Console console, String command) throws Exception;", "title": "" }, { "docid": "e5bc8ef6bf0f0db5631f3e3404abc1ff", "score": "0.7446226", "text": "private void handleCommandLine() {\n Scanner kbd = new Scanner(System.in);\n System.out.println(\"Waiting for a command (enter 'help' for a\"\n + \" description of commands): \");\n String command = kbd.next();\n\n while (true) {\n switch (command) {\n case MessagingNodeCommand.HELP:\n helpMessage();\n break;\n case MessagingNodeCommand.LIST_PATHS:\n listPaths();\n break;\n case MessagingNodeCommand.LIST_PEERS:\n listPeers();\n break;\n case MessagingNodeCommand.EXIT:\n try {\n sendDeregisterRequest();\n } catch (IOException e) {\n System.out.println(\"Attempt to send deregistration request\"\n + \" failed; an I/O error occurred\");\n System.out.println(\"Details:\");\n e.printStackTrace();\n }\n break;\n default:\n System.out.println(\"Unrecognized command!\");\n }\n command = kbd.next();\n }\n }", "title": "" }, { "docid": "12dac5a9c9791499dcaf6819f8a51872", "score": "0.72557664", "text": "public String readCommand() {\n Scanner in = new Scanner(System.in);\n return in.nextLine();\n }", "title": "" }, { "docid": "9c6466fbbd4952ac94c7682834fc9854", "score": "0.72318494", "text": "private void processCommand() {\n String input = inputBox.getText();\n inputBox.setText(\"\");\n if (input.equals(\"Alarme\")) {\n alarmeOn();\n }\n engine.interpretCommand(input);\n }", "title": "" }, { "docid": "ecd95151d788074b25d454bdeef54635", "score": "0.7186004", "text": "private void queryForInput() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString command = null;\n\t\tdo {\n\t\t\tSystem.out.print(\"cmd> \");\n\t\t\ttry {\n\t\t\t\tcommand = br.readLine();\n\t\t\t\texecute(command);\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tSystem.out.println(\"IO error reading command!\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} while (!command.equalsIgnoreCase(\"exit\"));\n\n\t\tSystem.out.println(\"Exiting Registry.\");\n\t}", "title": "" }, { "docid": "e084147a582107006baae118050336ad", "score": "0.7155776", "text": "public String readCommand() {\n Scanner input = new Scanner(System.in);\n return input.nextLine();\n }", "title": "" }, { "docid": "5d346b50a6078428b8845c6c7eba8100", "score": "0.7139904", "text": "public String readCommand() {\n Scanner sc = new Scanner(System.in);\n return sc.nextLine();\n }", "title": "" }, { "docid": "f7a044502a8fb8814a863d87487655ca", "score": "0.70404947", "text": "@Override\r\npublic void run() {\r\n\tString input=\"\";\r\n\tSystem.out.println(\"** Greetings! please enter your desired command **\");\r\n\tSystem.out.println(\"** for the commands list type \\\"help\\\" , for GUI type \\\"GUI\\\" **\");\r\n\t\r\n\ttry {\r\n\t\twhile (flag){\r\n\t\t\tif(!(input=in.readLine()).isEmpty()){\r\n\t\t\t\tthis.inputCom=input;\r\n\t\t\t\tsetChanged();\r\n\t\t\t\tnotifyObservers(this.inputCom);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t} catch (IOException e) {\r\n\t\tSystem.out.println(\"invalid input error \");\r\n\t\te.printStackTrace();\r\n\t}\r\n\t\r\n\t\r\n}", "title": "" }, { "docid": "50ba01347ab1099d160c66d757bca0fb", "score": "0.7013404", "text": "private static void startCMD() {\n while (true) {\n System.out.print(\"Enter Command: \");\n processData(cin.nextLine().trim().split(\" \"));\n System.out.println();\n }\n }", "title": "" }, { "docid": "258f0eb04a8f00cb1922a207dd990995", "score": "0.69997185", "text": "@Override\r\n\tpublic String getInput() {\r\n\t\tscanner = new Scanner(System.in);\r\n\t\tString catched = scanner.nextLine();\r\n\t\t\r\n\t\tif(catched.equals(\"quit\")) {\r\n\t\t\tendProgram();\r\n\t\t}\r\n\t\t\r\n\t\treturn catched;\r\n\t}", "title": "" }, { "docid": "9a5c73d72003958723666248ccba7348", "score": "0.6998176", "text": "public static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter command\");\n\t char c = scan.next().charAt(0);\n\t \n\t switch(c) {\n\t\t case 'a':\n\t\t\t System.out.println(\"Your request is being processed\");\n\t\t\t break;\n\t\t case 'b':\n\t\t\t System.out.println(\"Thank you anyway for your consideration\");\n\t\t\t break;\n\t\t case 'c':\n\t\t\t System.out.println(\"Sorry, no help is currently available\");\n\t\t\t break;\n\t\t default:\n\t\t\t System.out.println(\"Invalid entry, please try again!\");\n\t\t\t \n\t } \n\t \n\t scan.close();\n\t\t\n\t}", "title": "" }, { "docid": "8544c1ff9b887faa2cb65bb55d0f79e2", "score": "0.69204646", "text": "private void executeCommand(String inputCommand)\n {\n if (\"A\".equalsIgnoreCase(inputCommand))\n {\n arrive();\n }\n else if (\"C\".equalsIgnoreCase(inputCommand))\n {\n service();\n }\n else if (\"T\".equalsIgnoreCase(inputCommand))\n {\n updateTime();\n }\n else if (\"P\".equalsIgnoreCase(inputCommand))\n {\n printStats();\n }\n else\n {\n stdin.nextLine();\n System.out.println(inputCommand.charAt(0) \n + \" is not a valid command!\");\n }\n }", "title": "" }, { "docid": "dbb9f047fe82a542932f01769444bb96", "score": "0.6827644", "text": "void onCommandSelected(String userInput);", "title": "" }, { "docid": "d039ab65a258d90e44eaef75f15673b2", "score": "0.68248737", "text": "public LineCommand(String inputCommand) {\n super(inputCommand);\n }", "title": "" }, { "docid": "6fdb34d6a063ef4a847df87bf1b6c3c4", "score": "0.67900777", "text": "@Override\r\n\tpublic void handleInput() {\n\t\t\r\n\t}", "title": "" }, { "docid": "be2a098660f05fe77df00df137e30618", "score": "0.6785814", "text": "@Override\r\n public void getInput(){\r\n\r\n String select;\r\n Scanner inFile = new Scanner (System.in);\r\n System.out.println(menuName + \"\\nPress Enter to Continue\");\r\n select = inFile.nextLine();\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "4b8e9dcb736005cd4c3207adcab28b7f", "score": "0.678247", "text": "private void interact() {\n System.out.println(\n \"\\nInput a command to interact with processes. Input 'help' for a \"\n + \"list of commands.\\n\" );\n boolean running = true;\n while ( running )\n {\n @SuppressWarnings( \"resource\" )\n Scanner scan = new Scanner( System.in );\n String[] input = scan.nextLine().toLowerCase().split( \"\\\\s+\" );\n running = execute( input );\n }\n System.exit( 0 );\n }", "title": "" }, { "docid": "b640701440b6592fe48c275c43cf1aa1", "score": "0.6771947", "text": "public static void main(String[] args) throws IOException{\n\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\tString filename = \"command_line_input.txt\";\r\n\r\n\t\ttry {\r\n\t\t\tFile outfile = new File(filename);\r\n\t\t\tScanner command = new Scanner(outfile);\r\n\t\t\tPrintWriter output = new PrintWriter(outfile);\r\n\t\t\tSystem.out.println(\"Please enter a command.\");\r\n\t\t\tString inp = input.nextLine();\r\n\t\t\tString string = \"@q\";\r\n\t\t\twhile (true) {\r\n\t\t\t\tif (inp.equals(string)) {\r\n\t\t\t\t\toutput.println(inp);\r\n\t\t\t\t\toutput.close();\r\n\t\t\t\t\tSystem.out.println(\"Program ended, goodbye!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\toutput.println(inp);\r\n\t\t\t\tSystem.out.println(\"Command entered, Please enter a command.\");\r\n\t\t\t\tinp = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"Error, file not found\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "db4c7ee8160af4526a30364ea1a972df", "score": "0.67716575", "text": "@Override\n\tpublic void handleInput() {\n\t\t\n\t}", "title": "" }, { "docid": "adbb6a0d27e8d6bd9386cac90fcadd64", "score": "0.6739759", "text": "private void processCommand(String command) {\n boolean notDone = true;\n String cmd = command;\n\n while (notDone) {\n if (cmd.equals(\"h\")) {\n doHit();\n notDone = false;\n } else if (cmd.equals(\"d\")) {\n doDouble();\n notDone = false;\n } else if (cmd.equals(\"s\")) {\n doStand();\n notDone = false;\n } else {\n System.out.println(\"Please make a valid selection...\");\n cmd = input.next();\n }\n }\n }", "title": "" }, { "docid": "e2b9a3172dc3867f09035d8b05835409", "score": "0.6717302", "text": "@Override\n\tpublic void handleCommand() {\n\t\n\t}", "title": "" }, { "docid": "b619668ad27605d4a8e235178a273638", "score": "0.6684583", "text": "public void run() {\n Scanner scanner = new Scanner(System.in);\n String input;\n\n do {\n input = scanner.nextLine();\n\n try {\n String[] commandArr = input.split(\" \");\n String command = commandArr[0];\n String[] arguments = input.substring(command.length()).split(\",\");\n\n switch (command.toLowerCase()) {\n case Constants.GET: {\n if (arguments.length != 1) {\n System.err.println(\"GET command can have only 1 argument.\");\n continue;\n }\n System.out.println(connection.send(input));\n break;\n }\n case Constants.SUBMIT: {\n if (arguments.length != 2) {\n System.err.println(\"SUBMIT command must contain 2 arguments.\");\n continue;\n }\n String key = arguments[0].trim();\n String value = arguments[1].trim();\n\n String response = connection.send(input);\n System.out.println(response.length() > 0 ? response : \"Successfully submitted \" + key + \", \" + value + \" to server at IP address of \" + ipAddress);\n break;\n }\n case Constants.EXIT: {\n connection.disconnect();\n return;\n }\n default:\n System.err.println(\"Command \" + commandArr[0] + \" not found.\");\n break;\n }\n } catch (Exception e) {\n System.err.println(\"Invalid command\");\n }\n } while (true);\n }", "title": "" }, { "docid": "8600063fbdeb33d9a39f29b53914b234", "score": "0.667225", "text": "public void inputEntered(String data) {\n\t\tif(commands.containsKey(data)) //does not deal with case sensitivity\n\t\t\tcommands.get(data).execute();\n\t\telse\n\t\t\tSystem.out.println(\"Sorry, we don't recognize that command\");\n\t}", "title": "" }, { "docid": "53d640d157c402eb3552af0adb8d79cc", "score": "0.6667772", "text": "private static String getInput() {\n return Terminal.readLine();\n }", "title": "" }, { "docid": "d06cd187b846697728cc8a62efe477dd", "score": "0.6663659", "text": "public static String consoleInput(){\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Elige una opcion:\");\n System.out.println(\"1 - Insert\");\n System.out.println(\"2 - PrintAll\");\n System.out.println(\"3 - Update field\");\n System.out.println(\"4 - Delete field\");\n System.out.println(\"5 - CodecRegistry insert\");\n System.out.println(\"0 - Salir\");\n String userInput = sc.nextLine();\n return userInput;\n }", "title": "" }, { "docid": "f84d815b675682250d3eedc2229d8397", "score": "0.6649504", "text": "public static void main(String[] args){\n\t\t//Takes in users command(s) as a string \n\t\tboolean exit = false; \n\t\tSystem.out.print(Message.WELCOME);\n\t\twhile(!exit) {\n\t\tSystem.out.print(Message.NEWCOMMAND);\n\t\tScanner console = new Scanner (System.in);\n\t\tString userInput = console.nextLine();\n\t\n\t\t\n\t\t//Splits the users input by searching for pipes and storing them into an array\n\t\t//We have to escape the pipe character because it has a different meaning alone\n\t\tString[] commands = userInput.split(\"\\\\|\"); \n\t\tSystem.out.print(Arrays.toString(commands));\n\t\tboolean noError=true; \n\t\t\n\t\tint numCommands = commands.length; \n\t\t//Loop checks each command for both a valid command AND a file \n\t\tfor( int x = 0; x < numCommands; x++) { \n\t\t\tif (undefinedCommand(commands[x])) {\n\t\t\t\tx = numCommands; \n\t\t\t\tnoError= false;\n\t\t\t}\n\t\t\tif(x!=numCommands && userExit(commands[x])) {\n\t\t\t\texit = true; \n\t\t\t\tx=numCommands; \n\t\t\t}\n\t\t\tif (x!= numCommands && invalidArgument(commands[x]) ) {\n\t\t\t\tx = numCommands; \n\t\t\t\tnoError= false;\n\t\t\t}\n\t\t\tif (x!=numCommands &&nonexistentFile(commands[x]) ) {\n\t\t\t\tx = numCommands; \n\t\t\t\tnoError= false;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//feed our array of commands into the sequential command builder\n\t\tif(noError) {\n\t\t\tSequentialCommandBuilder command = new SequentialCommandBuilder(commands); \n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "589da4b2b85690892b3840a80a128eaa", "score": "0.6641842", "text": "@Override\r\n\tpublic void commandEvent(String cmdString) {\n\t\tlogger.log(\"You entered: \" + cmdString);\r\n\t\t//1st, parse\r\n\t\t//2nd, execute\r\n\t}", "title": "" }, { "docid": "a18ddabc33c1210c6e004520968e0729", "score": "0.6626938", "text": "private static void handleConsoleInput(String[] tokens, String fullToken) throws IOException {\n if(!tokens[0].equals(\"\")){ //Checks that the input is valid\n if(\"/\".equalsIgnoreCase(String.valueOf(tokens[0].charAt(0)))){\n //If the input starts with a slash, it is recognised as a command and handled by the handleOnConsoleCommand method.\n handleOnConsoleCommand(tokens, fullToken);\n }\n else{\n //If the message doesn't start with a slash is recognised as normal message and broadcast.\n broadcastMessage(String.format(Messages.PrependTimeStamp(Messages.FullConsoleInput), fullToken));\n }\n }\n }", "title": "" }, { "docid": "760b7539417fa38a4c8a5aca336bb1cb", "score": "0.6622357", "text": "private void promptUser() throws IOException {\n\t\tfileName = \"\";\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tSystem.out.println(\"Enter command (help if you dont know what you doin'): \");\n\t\tString r = in.readLine();\n\t\tString delims = \"[ ]+\";\n\t\tString[] tokens = r.split(delims);\n\n\t\tfor (String s : tokens) {\n\t\t\tparser(s);\n\t\t}\n\t}", "title": "" }, { "docid": "e513c06250d17b9b6977c7f7bd99cb06", "score": "0.6589377", "text": "public String readUserCommand() {\n out.print(LINE_PREFIX + \"Input command: \");\n String fullLineInput = in.nextLine().trim();\n\n showToUser(\"[Command entered:\" + fullLineInput + \"]\");\n return fullLineInput;\n }", "title": "" }, { "docid": "08416513d9f0fa1de9679cd8cc678607", "score": "0.65834856", "text": "public abstract void handleCommand();", "title": "" }, { "docid": "2269d9ac326ccf632db19618dcb8a4d2", "score": "0.65803844", "text": "public void processCommand(String input) {\n if (!input.startsWith(commandPrefix)) throw new InvalidInputException(\"The input doesn't begin with the command prefix '\" + commandPrefix + \"'\", \"\");\n commandRegistry.forEach((clazz, commandObj) -> {\n SimpleCommand command = (SimpleCommand) commandObj;\n if (input.split(\" \")[0].replace(commandPrefix, \"\").toLowerCase().matches(command.getCommandName().pattern().toLowerCase())) {\n command.setArguments(input, this);\n try {\n command.onCommand();\n }catch(Exception ee) {\n SimpleCommandException ex = new SimpleCommandException(\"An uncaught %error occurred whilst executing \\\"\".replace(\"%error\", ee.getClass().getName()) + commandPrefix + command.getCommandName().toString() + \"\\\"\",\n ee.getMessage());\n ex.setStackTrace(ee.getStackTrace());\n throw ex;\n }\n }\n });\n }", "title": "" }, { "docid": "4f46b82a9d306ce76f4f541f5254d097", "score": "0.65751666", "text": "public static void main(String[] args){\n\t\t\r\n\t\tInputStreamReader input = new InputStreamReader(System.in);\t\t\t\t\r\n\t\tBufferedReader reader = new BufferedReader(input);\r\n\t\tString keyboardinput = \"\";\r\n\t\ttry {\r\n\t\t\tkeyboardinput = reader.readLine();\r\n\t\t}catch(IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.print(keyboardinput);\r\n\t\tSystem.out.println(\"han entered\");\r\n\r\n\t}", "title": "" }, { "docid": "6189bfab94b094fe524daea4b4cec857", "score": "0.65718555", "text": "public String readCommand() {\n return scan.nextLine();\n }", "title": "" }, { "docid": "bab2ff147f7401774949cdb19ab30f54", "score": "0.65704536", "text": "protected void startHandlingInput() {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString message = null;\n\t\t\n\t\twhile( true ) {\n\t\t\ttry {\n\t\t\t\tmessage = r.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Error reading user's message\");\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tif (message.startsWith(\"\\\\\")) {\n\t\t\t\t\t//parse the command\n\t\t\t\t\tif (message.equals(\"\\\\quit\")) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (message.startsWith(\"\\\\nick \")) {\n\t\t\t\t\t\tString newName = message.substring(6);\n\t\t\t\t\t\tChangeNickMessage cnm = new ChangeNickMessage(newName);\n\t\t\t\t\t\toos.writeObject(cnm);\n\t\t\t\t\t} else if (message.equals(\"\\\\\")) {\n\t\t\t\t\t\tSystem.out.println(getDateString() + \n\t\t\t\t\t\t\t\t\" [Client] Unknown command \\\"\\\"\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(getDateString() + \n\t\t\t\t\t\t\t\t\" [Client] Unknown command \\\"\" + \n\t\t\t\t\t\t\t\tmessage.substring(1) + \"\\\"\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//send the message to the server\n\t\t\t\t\tChatMessage chatMessage = new ChatMessage(message);\n\t\t\t\t\toos.writeObject(chatMessage);\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Error writing message to the server\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(getDateString() + \" [Client] Connection terminated.\");\n\t}", "title": "" }, { "docid": "89e6cffd50577b8abf2822e16fe41a96", "score": "0.6569759", "text": "private static void handleOnConsoleCommand(String[] tokens, String fullToken) throws IOException {\n if(\"/stop\".equalsIgnoreCase(tokens[0])){\n StopCommand.run(); //Runs stop command.\n }\n else if(\"/help\".equalsIgnoreCase(tokens[0])){\n HelpCommand.run(); //Runs help command.\n }\n else if(\"/list\".equalsIgnoreCase(tokens[0])){\n ListCommand.run(); //Runs list command.\n }\n else {\n //If no valid command is inputted the console is informed by an error message.\n System.out.println(Messages.PrependTimeStamp(Messages.UnknownCommand));\n }\n }", "title": "" }, { "docid": "0151aa176add103a195d27532cd2418a", "score": "0.6514746", "text": "public void readInput() {\n\t\tString[] input = sc.nextLine().toLowerCase().trim().split(\" \");\r\n\t\t\r\n\t\tswitch(input[0]) {\r\n\t\tcase \"enter\":\t//ideally synonymous words are recognized for convenience to the player\r\n\t\tcase \"goto\":\r\n\t\t\tif(input.length < 2) {System.out.println(\"Go to where? (Usage: goto/enter <locationName>)\"); break;} //not enough arguments\r\n\t\t\t\r\n\t\t\tlocation temp = currentLocation.getConnectionFromString(input[1]);\r\n\t\t\tif(temp == null) {\r\n\t\t\t\tSystem.out.println(\"\\\"\" + input[1] + \"\\\" not recognized.\");\r\n\t\t\t}else currentLocation = temp;\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"look\":\r\n\t\t\tif(input.length < 3) {System.out.println(\"(Usage: look <on/in/under> <containerName>)\"); break;} //not enough arguments\r\n\t\t\tif(currentLocation.getContainerFromString(input[2])==null) {System.out.println(\"\\\"\" + input[2] + \"\\\" not recognized.\"); break;}\r\n\t\t\tcurrentLocation.getContainerFromString(input[2]).look(input[1]);\r\n\t\t\tbreak;\r\n\t\tcase \"open\":\t//alternate way to look inside a container\r\n\t\t\tif(input.length < 2) {System.out.println(\"(Usage: open <containerName>)\"); break;} //not enough arguments\r\n\t\t\tif(currentLocation.getContainerFromString(input[1])==null) {System.out.println(\"\\\"\" + input[1] + \"\\\" not recognized.\"); break;}\r\n\t\t\tcurrentLocation.getContainerFromString(input[1]).look(\"in\");\r\n\t\t\tbreak;\r\n\t\tcase \"quit\":\r\n\t\t\tSystem.out.println(\"Ending Program.\");\r\n\t\t\tSystem.exit(0);\r\n\t\tcase \"?\":\r\n\t\tcase \"help\":\r\n\t\t\tSystem.out.println(\"--------------Recognized Commands--------------\\nenter, goto, look, open, quit,\\n-----------------------------------------------\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"\\\"\" + input[0] + \"\\\" not recognized.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a2c21a8c88d58622de7c9a1a7b12cd8b", "score": "0.6510789", "text": "private void execute(String userInput) \n {\n /**\n * Firts index is the command.\n * Second item is additional value such as direction.\n */\n String[] userInputWords = userInput.split(\" \");\n\n Command command = COMMANDS.get(userInputWords[0]);\n\n if(command == null)\n {\n System.out.println(\"I don't know what you mean...\");\n }\n else\n {\n // If the user command is 'go' and there is more than one word\n if(userInputWords[0].equals(\"go\") && userInputWords.length > 1)\n {\n //Gets the go command from commands collection\n command = COMMANDS.get(\"go\");\n\n /**\n * Cast command interface to GoCommand child class\n * and set direction from second word of the user input.\n */ \n ((GoCommand) command).setDirection(userInputWords[1]);\n }\n // If the user command is 'pick' and there is more than one word\n else if(userInputWords[0].equals(\"pick\") && userInputWords.length > 1)\n {\n //Gets the pick command from commands collection\n command = COMMANDS.get(\"pick\");\n\n /**\n * Cast command interface to PickCommand child class\n * and set the item name from second word\n * of the user input.\n */\n ((PickCommand) command).setItem(userInputWords[1]);\n }\n command.execute();\n }\n }", "title": "" }, { "docid": "90357be133631e76e290affbe140314e", "score": "0.649601", "text": "private void readInputCommands(String[] userInput) {\n try {\n switch (userInput[0]) {\n case \"add\":\n if (ich.validateInputParameters(userInput)) {\n abm.addContact(userInput[1], userInput[2], userInput[3]);\n break;\n }\n ich.throwInputParameterException(userInput);\n case \"list\":\n if (ich.validateInputParameters(userInput)) {\n abm.listContacts();\n break;\n }\n ich.throwInputParameterException(userInput);\n case \"search\":\n if (ich.validateInputParameters(userInput)) {\n abm.searchContacts(userInput[1]);\n break;\n }\n ich.throwInputParameterException(userInput);\n case \"delete\":\n if (ich.validateInputParameters(userInput)) {\n abm.deleteContact(userInput[1]);\n break;\n }\n ich.throwInputParameterException(userInput);\n case \"help\":\n if (ich.validateInputParameters(userInput)) {\n ich.help();\n break;\n }\n ich.throwInputParameterException(userInput);\n case \"quit\":\n if (ich.validateInputParameters(userInput)) {\n quitAddressBook();\n break;\n }\n ich.throwInputParameterException(userInput);\n default:\n log.info(\"User failed to enter a valid command: \" + userInput[0]);\n System.out.println(\"Invalid input command: \" + userInput[0] +\n \"\\nPlease try again, or type: \\\"help\\\" for a listContacts of available commands\");\n break;\n }\n } catch (Exception e) {\n log.log(Level.SEVERE, \"User failed to enter parameter requirement for: \" + userInput[0], e);\n }\n }", "title": "" }, { "docid": "d7d10f6c4f95c560027076cd3102f401", "score": "0.6473026", "text": "public void processUserInput() {\n\t\t\n\t\tString in = null;\n\t\twhile (true) {\n\t\t\t\n\t\t\t// Get user input.\n\t\t\tString selection = readUserInput(null).toLowerCase();\t\n\t\t\t\n\t\t\ttry{\n\t\t\t\t// Exit the application.\n\t\t\t\tif (\"x\".equals(selection))\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\tif (\"m\".equals(selection)) {\n\t\t\t\t\t\t// Display menu\n\t\t\t\t\t\tSystem.out.println(menu.toString());\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\telse \n\t\t\t\t\t\t// Read the input string.\n\t\t\t\t\t\tin = selection.trim();\n\t\n\t\t\t}\n\t\t\tcatch (Exception e){\n\t\t\t\t// System.out.println(e.toString());\n\t\t\t\tSystem.out.println(String.format(\"Input %s is not allowed%n\", selection));\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Select action to perform.\n\t\t\tswitch(in) {\n\t\t\t\n\t\t\t\tcase \"p1\": {\n\t\t\t\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\t// List the project buckets\n\t\t\t\t\t\tProjectCommands.listBuckets();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (IOException e){\n\t\t\t\t\t\tSystem.out.println(String.format(\"%s\", e.getMessage()));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcase \"b0\": {\n\t\t\t\t\ttry{\n\t\t\t\t\t\tString bucketName = readUserInput(\"Bucket name or just enter for default: \").toLowerCase();\t\n\t\t\t\t\t\tboolean created = BucketCommands.insertBucket(bucketName);\n\t\t\t\t\t\tif (created)\n\t\t\t\t\t\t\tBucketCommands.getBucket(bucketName);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e){\n\t\t\t\t\t\tSystem.out.println(String.format(\"%s\", e.getMessage()));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"b1\": {\n\t\t\t\t\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\tString bucketName = readUserInput(\"Bucket name or just enter for default: \").toLowerCase();\t\n\t\t\t\t\t\tif (bucketName == null)\n\t\t\t\t\t\t\tBucketCommands.getBucket(null);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tBucketCommands.getBucket(bucketName);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e){\n\t\t\t\t\t\tSystem.out.println(String.format(\"%s\", e.getMessage()));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"b2\": {\n\t\t\t\t\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\t\n\t\t\t\t\t\tString bucketName = \n\t\t\t\t\t\t\t\treadUserInput(\"Bucket name or just enter for default: \").toLowerCase();\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tObjectCommands.listObjects(bucketName);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e){\n\t\t\t\t\t\tSystem.out.println(String.format(\"%s\", e.getMessage()));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcase \"o1\": {\n\t\t\t\t\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\tString bucketName, objectName;\n\t\t\t\t\t\t// Get bucket and object names from the user.\n\t\t\t\t\t\tbucketName = readUserInput(\"Bucket name or just enter for default: \").toLowerCase();\t\n\t\t\t\t\t\tobjectName = readUserInput(\"Bucket name or just enter for default: \").toLowerCase();\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Call the object method.\n\t\t\t\t\t\tObjectCommands.getObject(bucketName, objectName);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e){\n\t\t\t\t\t\tSystem.out.println(String.format(\"%s\", e.getMessage()));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcase \"o2\": {\n\t\t\t\t\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\tObjectCommands.uploadObject(true);;\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e){\n\t\t\t\t\t\tSystem.out.println(String.format(\"%s\", e.getMessage()));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tdefault: {\n\t\t\t\t\tSystem.out.println(String.format(\"%s is not allowed\", selection));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\n\t\t}\n\t\tSimpleUI.Exit();\n\t\t\n\t}", "title": "" }, { "docid": "5d7339d71249908ff96610b78cb6d5b0", "score": "0.64683473", "text": "private void processMainCommand(String command) {\n switch (command) {\n case \"1\":\n addEntry();\n break;\n case \"2\":\n viewHabits();\n break;\n case \"3\":\n processEntriesMenu();\n break;\n default:\n System.out.println(\"Selection not valid...\");\n break;\n }\n }", "title": "" }, { "docid": "900c729ec23ce3430c0f52e535637490", "score": "0.64660287", "text": "public String readCommand() {\n return scanner.nextLine();\n }", "title": "" }, { "docid": "94e23c39dd60b9135966bc0df65d4d9b", "score": "0.64520264", "text": "private void runCommandLineInterface() {\n log.info(\"CommandLineInterface started\");\n autoSave.start();\n String[] input;\n while (run) {\n System.out.print(\"> \");\n input = readUserInput().split(\" \");\n readInputCommands(input);\n }\n abm.saveContactList();\n log.info(\"CommandLineInterface finished\");\n }", "title": "" }, { "docid": "92d3d2237d2cfb4cb3475dc232a8f02e", "score": "0.6446123", "text": "public static void main(String args[]) throws IOException {\n System.out.print(\"请输入指令:\");\n String instruction = (new BufferedReader(new InputStreamReader(System.in))).readLine();\n Robot robot = new Robot();\n robot.handle(instruction);\n String outString;\n outString = robot.output();\n System.out.print(\"控制结果:\" + outString);\n }", "title": "" }, { "docid": "049f164eb67cdb626ed0bb029cc94083", "score": "0.64426935", "text": "public static void handleInput(){\n printMenu();\n UserChoice userChoice = UserChoice.EXIT;\n int userChoiceIndex = Reader.askForInt(\"Your choice:\");\n try {\n userChoice = UserChoice.values()[userChoiceIndex-1];\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"Your choice is incorrect\");\n }\n\n switch (userChoice) {\n case USING_CONSTANT:\n handleConstantString();\n break;\n case MANUAL_INPUT:\n handleUserString();\n break;\n case EXIT:\n break;\n }\n }", "title": "" }, { "docid": "3c648a2bd94395b362577dd5abb38241", "score": "0.6421058", "text": "@Override\n protected void handleInput(String msg ) { //called when a msg is in the queue\n System.out.println(msg);\n if( msg.equals(\"startApp\")) explore();\n else\n msgDriven( new JSONObject(msg) );\n }", "title": "" }, { "docid": "dbe242b4956b6dd15eaf5cbb4389a561", "score": "0.64160734", "text": "public void listen() {\n String input = scanner.nextLine();\n handleCommand(input);\n this.listen();\n }", "title": "" }, { "docid": "3913c3aa9f0ca41fe46066dcc56a831a", "score": "0.64151955", "text": "void handle() throws IOException {\n if (null == handler) {\n println(\"Command not recognized: %s\", command());\n return;\n }\n if (handler == Exit.INSTANCE) {\n handler.handle(this);\n }\n CommandLineParser parser = commandLine();\n boolean help = parser.getBoolean(\"-h\", \"--help\");\n if (help) {\n Help.INSTANCE.showHelp(parser.command(), this);\n } else {\n try {\n session.handler(handler);\n handler.handle(this);\n } catch ($.Break b) {\n throw b;\n } catch (Exception e) {\n console.println(\"Error: \" + e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "4cb840235221d37acdc360d90d3a979a", "score": "0.6414311", "text": "void handleInputArgs(String[] args) {\n\t\tjcommander.addCommand(\"Global\", global);\n\t\tjcommander.addCommand(\"Local\", local);\n\t\tjcommander.addCommand(\"Fitting\", fitting);\n\t\tjcommander.addCommand(\"AffineGap\", affine);\n\t\tjcommander.addCommand(\"Overlap\", overlap);\n\t\tjcommander.addCommand(\"Semiglobal\", semiglobal);\n\t\t\t\t\n\t\ttry {\n\t\t\tjcommander.parse(args);\n\t\t} catch (ParameterException ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t\tshowUsage(jcommander);\n\t\t}\n\t\t\n\t\tif(parameters.isHelp()) {\n\t\t\tshowUsage(jcommander);\n\t\t}\n\t}", "title": "" }, { "docid": "14f3ba66e01fd99b2fed2b5ec4965b15", "score": "0.64081436", "text": "public String getUserCommand() {\n System.out.print(LINE_PREFIX + \"Enter command: \");\n String fullInputLine = scanner.nextLine();\n\n // silently consume all ignored lines\n while (shouldIgnore(fullInputLine)) {\n fullInputLine = scanner.nextLine();\n }\n\n TextUi.showToUser(\"[Command entered:\" + fullInputLine + \"]\");\n return fullInputLine;\n }", "title": "" }, { "docid": "1d1e787393ebf261a59bafdeb99fd00a", "score": "0.640334", "text": "private String getInput()\n {\n this.console.setCursor(Constants.ScreenLayout.USER_INPUT);\n this.console.clearFromCursorLine();\n this.console.out.print(\"> \");\n return this.console.console.readLine();\n }", "title": "" }, { "docid": "54901767dd804081c8408b77c2f6e9b9", "score": "0.6383161", "text": "public void run() throws java.io.IOException\n {\n stdin = new Scanner(System.in);\n mySim = new Simulation();\n String inputCommand = stdin.next();\n while (!\"Q\".equalsIgnoreCase(inputCommand))\n {\n executeCommand(inputCommand);\n inputCommand = stdin.next();\n }\n System.out.println();\n System.out.println(\"Quit (Q) command given.\");\n System.out.println(\"Statistics at end of the program are:\");\n printStats();\n System.out.println(\"Normal Termination of Program 4!\");\n }", "title": "" }, { "docid": "76c4cde87d7bd0d9ad016e318afa578f", "score": "0.6376808", "text": "private interface CmdHandler {\n\t\t// note that arg[0] will contain the command itself, so you'll\n\t\t// need to look for arg[1] for the first argument\n \t\tString execute(Connection conn, String[] args) throws IOException;\n\t}", "title": "" }, { "docid": "905eedd04152c77e1a852391bfc7a672", "score": "0.6375804", "text": "private void processCommandAfterHit(String command) {\n boolean notDone = true;\n String cmd = command;\n\n while (notDone) {\n if (cmd.equals(\"h\")) {\n doHit();\n notDone = false;\n } else if (cmd.equals(\"s\")) {\n doStand();\n notDone = false;\n } else {\n System.out.println(\"Please make a valid selection...\");\n cmd = input.next();\n }\n }\n }", "title": "" }, { "docid": "6e83997d84404228bc7eef33d0cdafa1", "score": "0.63673747", "text": "public void inputReceived() {\n if (myExecuteActionHandler != null) {\n myExecuteActionHandler.getConsoleCommunication().notifyInputReceived();\n }\n }", "title": "" }, { "docid": "87f4c7c839045d19edfd816ce4374f30", "score": "0.6357136", "text": "public String listen(String input) {\n String res = handleCommand(input);\n return res;\n }", "title": "" }, { "docid": "256c008a73f755696a1b70af75a330f6", "score": "0.6345735", "text": "@Override\n CommandInput call() throws Exception;", "title": "" }, { "docid": "95f4e8da3443629ecc0c3250e6c2f970", "score": "0.63407326", "text": "void processLaunchInput() {\n \t\n \tinput_parser = new InputParser(this);\n \t\n \tinput_parser.showCommandLine();\n \t\n \tinput_parser.parseLaunchInput();\n \t\n \t// \n \t\n \n }", "title": "" }, { "docid": "a93a8fec2e104b676ae9a98615ed2ca9", "score": "0.6324336", "text": "private void prompt(){\n \t\tSystem.out.print(\"> \");\n \t\tcurrentCommand = consoleScanner.nextLine();\n \t\tif(!properCommand(currentCommand.trim())){\n \t\t\tSystem.out.println(\"Not a recognized command.\");\n \t\t}\n \t\telse if(!completeCommand(currentCommand.trim())){\n \t\t\tSystem.out.println(\"That command cannot be completed at this time.\");\n \t\t}\n \t\tprompt();\n \t}", "title": "" }, { "docid": "6d5232b838f4b36bdf147cdff53e83d6", "score": "0.63224083", "text": "public static void main(String[] args) {\n String logo = \" ____ _ \\n\"\n + \"| _ \\\\ _ _| | _____ \\n\"\n + \"| | | | | | | |/ / _ \\\\\\n\"\n + \"| |_| | |_| | < __/\\n\"\n + \"|____/ \\\\__,_|_|\\\\_\\\\___|\\n\";\n System.out.println(\"Hello from\\n\" + logo);\n\n System.out.println(\"Hello! How can I help you?\");\n\n Scanner scanner = new Scanner(System.in);\n tasks = new ArrayList<>();\n CommandManager taskManager = new CommandManager();\n\n while (scanner.hasNext()) {\n String input = scanner.nextLine();\n\n if (input.equals(\"bye\")) {\n System.out.println(LINE + \"\\n\" + (char) 9 + (char) 9 + \"Bye! See you soon :)\\n\" + LINE);\n scanner.close();\n break;\n } else {\n System.out.println(taskManager.takeCommand(input, tasks));\n }\n\n }\n return;\n }", "title": "" }, { "docid": "56ca3ab95d2c9344d117384f896a9512", "score": "0.63197625", "text": "private void promptForPlayerMove() {\n\t\tSystem.out.println(\"Enter the number of the move you would like to make:\");\n\t\tSystem.out.println(\"1. Hit\");\n\t\tSystem.out.println(\"2. Stand\");\n\t\tString input = keyboardIn.nextLine();\n\t\twhile (!input.equals(\"1\") && !input.equals(\"2\")) {\n\t\t\tSystem.out.println(\"Invalid input, please enter valid command\");\n\t\t\tinput = keyboardIn.nextLine();\n\t\t}\n\t\tswitch (input) {\n\t\tcase \"1\":\n\t\t\thandleHit();\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\thandleStand();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "04192c760e7238b3f168ded1bdeb1b44", "score": "0.6316418", "text": "public void requestInput();", "title": "" }, { "docid": "9d15c6029c821f70e60bef8241de7d6b", "score": "0.6316175", "text": "public static void parseInput(String input){\n String[] args = input.split(\" \");\n String command = args[0];\n ArrayList<Integer> numbers = new ArrayList<Integer>();\n for(int i=1; i<args.length; i++){\n if(args[i].charAt(0) == '!') {\n int historyNum;\n try {\n historyNum = Integer.parseInt(args[i].substring(1));\n numbers.add((int)getHistory(historyNum));\n } catch (NumberFormatException e) {\n System.out.println(\"'\" + args[i] + \"' is not a valid input. Inputs must all be integers.\");\n } catch (IndexOutOfBoundsException e){\n System.out.println(\"'\" + args[i].substring(1) + \"' is not a valid history number\");\n }\n }else{\n try {\n numbers.add(Integer.parseInt(args[i]));\n } catch (Exception e) {\n System.out.println(\"'\" + args[i] + \"' is not a valid input. Inputs must all be integers.\");\n }\n }\n }\n if(command.equals(\"add\")) {\n System.out.println(add(numbers));\n } else if(command.equals(\"sub\")) {\n System.out.println(subtract(numbers));\n } else if(command.equals(\"mul\")) {\n System.out.println(multiply(numbers));\n } else if(command.equals(\"div\")) {\n System.out.println(divide(numbers));\n } else if(command.equals(\"history\")) {\n printHistory();\n } else if(command.equals(\"clear\")) {\n clearHistory();\n System.out.println(\"History Cleared\");\n } else if(command.equals(\"sq\")) {\n System.out.println(square(numbers));\n } else if(command.equals(\"exit\")) {\n System.out.println(\"Exiting.\");\n } else {\n System.out.println(\"Invalid command.\");\n }\n }", "title": "" }, { "docid": "96f44d660d6fbee53f9f7e253f07260a", "score": "0.63150245", "text": "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\t//output prompt\n\t\tSystem.out.println(\"Enter a line\");\n\t\t//wait for user to press enter and/or enter the input\n\t\tString line = input.nextLine();\n\t\t//print line\n\t\tSystem.out.println(\"You entered \"+ line);\n\t\t// now we want user to enter integer only \n\t\tint integer = input.nextInt();\n\t\tSystem.out.println(\"Enter a Integer\");\n\t\tSystem.out.println(\"The next Intger is: \"+ integer);\n\t}", "title": "" }, { "docid": "a999b45a4f1904f3e776498cba227c79", "score": "0.63083565", "text": "private String addCorrectCommand() {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString option = null;\r\n\t\tboolean correctCommand = false;\r\n\t\tdo {\r\n\t\t\toption = sc.nextLine();\r\n\t\t\toption = option.trim();\r\n\t\t\tcorrectCommand = Comand.content(option);\r\n\t\t} while (!correctCommand);\r\n\t\treturn option;\r\n\t}", "title": "" }, { "docid": "5186ca644e57e7ba1037265dc6e3aedb", "score": "0.62967366", "text": "public String getLine() {\n\t\tframe.toFront();\n\t\tframe.requestFocus();\n\n\t\twhile(!gotInput){\n\t\t\ttry {\n\t\t\t\tThread.sleep(200);\n\t\t\t}\n\t\t\tcatch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tgotInput = false;\n\t\tString line =commandInput.getText().toUpperCase();\n\t\tString ret = commandInput.getText();\n\t\tcommandInput.setText(\"\");\n\n\t\tif (line.equals(\"QUIT\") || line.equals(\"Q\") || line.equals(\"EXIT\")) {\n\t\t\tframe.dispose();\n\t\t}\n\t\telse if (line.contains(\"GUI\")) {\n\t\t\tString[] words = line.split(\"\\\\s+\");\n\t\t\tif (Integer.parseInt(words[1]) != 2) {\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\n\t}", "title": "" }, { "docid": "df0860d9e71f5481ed3a8d7de757fa04", "score": "0.6290648", "text": "java.lang.String getInput();", "title": "" }, { "docid": "0c7f225ef0dddeb2cd8f4aa7cd842878", "score": "0.62882805", "text": "public void inputLoop() {\n\t\tint command;\n\t\thelp();\n\t\twhile ((command = getCommand()) != EXITUI) {\n\t\t\tswitch (command) {\n\t\t\tcase ADDMEMBER:\n\t\t\t\tenrollMember();\n\t\t\t\tbreak;\n\t\t\tcase REMOVEMEMBER:\n\t\t\t\tremoveMember();\n\t\t\t\tbreak;\n\t\t\tcase ADDPRODUCT:\n\t\t\t\taddProduct();\n\t\t\t\tbreak;\n\t\t\tcase CHECKOUT:\n\t\t\t\tcheckoutMember();\n\t\t\t\tbreak;\n\t\t\tcase PROCESSSHIPMENT:\n\t\t\t\tprocessShipment();\n\t\t\t\tbreak;\n\t\t\tcase CHANGEPRICE:\n\t\t\t\tchangeProductPrice();\n\t\t\t\tbreak;\n\t\t\tcase GETPRODUCTINFO:\n\t\t\t\tgetProductInfo();\n\t\t\t\tbreak;\n\t\t\tcase GETMEMBERINFO:\n\t\t\t\tgetMemberInfo();\n\t\t\t\tbreak;\n\t\t\tcase PRINTTRANSACTIONS:\n\t\t\t\tprintTransations();\n\t\t\t\tbreak;\n\t\t\tcase LISTOUTSTANDINGORDERS:\n\t\t\t\tlistOutstandingOrders();\n\t\t\t\tbreak;\n\t\t\tcase LISTMEMBERS:\n\t\t\t\tgetMemberList();\n\t\t\t\tbreak;\n\t\t\tcase LISTPRODUCT:\n\t\t\t\tgetProductList();\n\t\t\t\tbreak;\n\t\t\tcase SAVE:\n\t\t\t\tsaveStore();\n\t\t\t\tbreak;\n\t\t\tcase HELP:\n\t\t\t\thelp();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Goodbye.\");\n\t}", "title": "" }, { "docid": "588af647c43ea9d97192dcf9c308c78a", "score": "0.62876654", "text": "public void actionPerformed(ActionEvent ae) {\n\t\tString input = textField.getText();\n\t\ttextField.setText(\"\");\n\n\t\tif (input.isEmpty()) return;\n\n\t\tpreviousCommands.add(input);\n\t\tif (previousCommandIndex != previousCommands.size()) {\n\t\t\tpreviousCommandIndex += 1;\n\t\t}\n\n\t\tString inputLCase = input.toLowerCase(); //ignore the case when comparing\n\n\t\tif (inputLCase.startsWith(Command.host)) {\n\t\t\thost(input.substring(Command.host.length()));\n\t\t} else if (inputLCase.equals(Command.hostNoArgument)) {\n\t\t\taddPlainMessage(\"Usage: /host port\");\n\t\t} else if (inputLCase.startsWith(Command.join)) {\n\t\t\tjoin(input.substring(Command.join.length()));\n\t\t} else if (inputLCase.equals(Command.joinNoArgument)) {\n\t\t\taddPlainMessage(\"Usage: /join ip:port [message]\");\n\t\t} else if (inputLCase.startsWith(Command.reconnect)) {\n\t\t\treconnect();\n\t\t} else if (inputLCase.startsWith(Command.boot)) {\n\t\t\tboot(input.substring(Command.boot.length()));\n\t\t} else if (inputLCase.startsWith(Command.bootNoArgument)) {\n\t\t\taddPlainMessage(\"Usage: /boot id\");\n\t\t} else if (inputLCase.startsWith(Command.disconnect)) {\n\t\t\tclose();\n\t\t} else if (inputLCase.startsWith(Command.exit) || inputLCase.startsWith(Command.quit)) {\n\t\t\tSystem.exit(0);\n\t\t} else if (inputLCase.startsWith(Command.changeName)) {\n\t\t\tchangeName(input.substring(Command.changeName.length()));\n\t\t} else if (inputLCase.equals(Command.seeName)) {\n\t\t\taddPlainMessage(\"Your name is \" + name);\n\t\t} else if (inputLCase.startsWith(Command.changeColor)) {\n\t\t\tchangeColor(input.substring(Command.changeColor.length()));\n\t\t} else if (inputLCase.equals(Command.seeColor)) {\n\t\t\tString colorString = String.format(\"(%s, %s, %s)\",\n\t\t\t\t\tcolor.getRed(), color.getGreen(), color.getBlue());\n\t\t\taddPlainMessage(\"Your color is \" + colorString);\n\t\t} else if (inputLCase.startsWith(Command.changeEncryptionType)) {\n\t\t\tchangeEncryptionType(input.substring(Command.changeEncryptionType.length()));\n\t\t} else if (inputLCase.equals(Command.seeEncryptionType)) {\n\t\t\taddPlainMessage(\"Your encryption type is \" + encryptionType);\n\t\t} else if (inputLCase.startsWith(Command.sendFile)) {\n\t\t\tsendFileRequest(input.substring(Command.sendFile.length()), \"\");\n\t\t} else if (inputLCase.equals(Command.sendFileNoArgument)) {\n\t\t\tsendFileRequest(\"\", \"\");\n\t\t} else if (inputLCase.startsWith(Command.sendFileEncrypted)) {\n\t\t\tsendFileRequestEncrypted(input.substring(Command.sendFileEncrypted.length()));\n\t\t} else if (inputLCase.equals(Command.sendFileEncryptedNoArgument)) {\n\t\t\taddPlainMessage(\"Usage: /sendfileencrypted type [message]\");\n\t\t} else if (inputLCase.startsWith(Command.acceptFile)) {\n\t\t\tacceptFile(input.substring(Command.acceptFile.length()));\n\t\t} else if (inputLCase.equals(Command.acceptFileNoArgument)) {\n\t\t\taddPlainMessage(\"Usage: /acceptfile port [message]\");\n\t\t} else if (inputLCase.startsWith(Command.rejectFile)) {\n\t\t\trejectFile(input.substring(Command.rejectFile.length()));\n\t\t} else if (inputLCase.equals(Command.rejectFileNoArgument)) {\n\t\t\trejectFile(\"\");\n\t\t} else if (inputLCase.startsWith(Command.seeHelp)) {\n\t\t\taddPlainMessage(helpMessage);\n\t\t} else { //not a command, let's send the message instead\n\t\t\tsendTextMessage(input);\n\t\t\taddTextMessage(input, color, \"You\");\n\t\t\treturn;\n\t\t}\n\t\tappendToPane(input, color);\n\t}", "title": "" }, { "docid": "f09fc735d45437fc9e9fecc667a2c3ff", "score": "0.6281752", "text": "public static void main(String[] args) {\n\n System.out.println(\"Enter a line of text:\");\n final Scanner scan = new Scanner(System.in);\n final String message = scan.nextLine();\n System.out.println(\"You entered: \\\"\" + message + \"\\\"\");\n scan.close();\n }", "title": "" }, { "docid": "9d175c1b4c922bf31fd263dbdb7887fd", "score": "0.6280845", "text": "private void handleInput(int delta) {\n\t\tmouseDX = Mouse.getDX();\n\t\tmouseDY = Mouse.getDY();\n\t\t\n\t\tif(Display.isCloseRequested()) {\n\t\t\trunning = false;\n\t\t}\n\t\t\n\t\twhile(Keyboard.next()) {\n\t\t\tif(con != null) {\n\t\t\t\tif(Keyboard.getEventKey() == Keyboard.KEY_BACK && Keyboard.getEventKeyState()) {\n\t\t\t\t\t// Remove last letter of the command\n\t\t\t\t\tcon.popLastLetter();\n\t\t\t\t} else if(Keyboard.getEventKey() == Keyboard.KEY_BACKSLASH) {\n\t\t\t\t\t// DO NOTHING \n\t\t\t\t} else if(Keyboard.getEventKey() == Keyboard.KEY_RETURN && Keyboard.getEventKeyState()) {\n\t\t\t\t\t// Execute given command\n\t\t\t\t\tcon.executeCommand();\n\t\t\t\t} else {\n\t\t\t\t\t// Append command with pressed character\n\t\t\t\t\tif(Keyboard.getEventKeyState()) {\n\t\t\t\t\t\tcon.appendCommand(Keyboard.getEventCharacter());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(Keyboard.getEventKey() == Keyboard.KEY_BACKSLASH && Keyboard.getEventKeyState()) {\n\t\t\t\tif(con == null) {\n\t\t\t\t\tcon = new Console(cam, this);\n\t\t\t\t} else {\n\t\t\t\t\tcon = null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Apply movement if console is not active\n\t\tif(con == null) {\n\t\t\t// Check for ctrl to crouch and shift to walk\n\t\t\tif(Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {\n\t\t\t\tcam.setMoveSpeed(cam.getWalkSpeed());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcam.setMoveSpeed(cam.getRunSpeed());\n\t\t\t}\n\t\t\t\n\t\t\t// Move forward\n\t\t\tif(Keyboard.isKeyDown(Keyboard.KEY_UP) || Keyboard.isKeyDown(Keyboard.KEY_W)) {\n\t\t\t\tcam.moveForward(delta);\n\t\t\t}\n\t\t\t// Move backwards\n\t\t\tif(Keyboard.isKeyDown(Keyboard.KEY_DOWN) || Keyboard.isKeyDown(Keyboard.KEY_S)) {\n\t\t\t\tcam.moveBackward(delta);\n\t\t\t}\t\t\t\t\t\n\t\t\t// Strafe right\n\t\t\tif(Keyboard.isKeyDown(Keyboard.KEY_D)) {\n\t\t\t\tcam.strafeRight(delta);\n\t\t\t}\t\t\n\t\t\t// Strafe left\n\t\t\tif(Keyboard.isKeyDown(Keyboard.KEY_A)) {\n\t\t\t\tcam.strafeLeft(delta);\n\t\t\t}\t\t\t\n\t\t\t// Turn right\n\t\t\tif(Keyboard.isKeyDown(Keyboard.KEY_RIGHT)) {\n\t\t\t\tcam.turnRight();\n\t\t\t}\t\t\t\n\t\t\t// Turn left\n\t\t\tif(Keyboard.isKeyDown(Keyboard.KEY_LEFT)) {\n\t\t\t\tcam.turnLeft();\n\t\t\t}\n\t\t\t// Jump\n\t\t\tif(Keyboard.isKeyDown(Keyboard.KEY_SPACE)) {\n\t\t\t\tif(cam.getOnGround()) {\n\t\t\t\t\tcam.jump();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Apply mouse movement to camera\n\t\t\tcam.setRY(cam.getRY()+mouseDX*cam.getSensitivity());\n\t\t\tcam.setRX(cam.getRX()-mouseDY*cam.getSensitivity());\n\t\t\t\n\t\t\t// Poll mouse events\n\t\t\twhile(Mouse.next()) {\n\t\t\t\tif(Mouse.isButtonDown(0)) {\n\t\t\t\t}\n\t\t\t}\n\t\t} // End if console is not active\n\t\t\n\t\tupdateFPS();\n\t}", "title": "" }, { "docid": "5748efcee77950a98f5ceeda1f718ac5", "score": "0.6275618", "text": "void receiveUserInput(String input);", "title": "" }, { "docid": "0a32a3d77e87ff869656fbd79789ccdc", "score": "0.6272892", "text": "@Override\n\tpublic void processCommand(Object cmd) {\n\n\t}", "title": "" }, { "docid": "d4cf30ec9f44e811c6195132be9c242b", "score": "0.62652785", "text": "public static void main(String[] args) {\n Level g = new Level();\n init(g);\n\n //\"game loop\" where I get user input and move the player\n Player p = new Player(\"Your Boy\", \"The OG\");\n p.setCurrentRoom(g.getRoom(\"hall\"));\n\n String response = \"\";\n Scanner in = new Scanner(System.in);\n while (true) {\n Level.Room currentRoom = p.getCurrentRoom();\n printInfo(currentRoom);\n response = in.nextLine();\n Command c = parseCommand(response);\n int spaceIndex = response.indexOf(\" \");\n c.init(p, response.substring(spaceIndex + 1)); //no if statemnt needed bc -1 + 1 = 0\n if (c instanceof QuitCommand) break;\n boolean action = c.execute();\n if (action) g.moveAllMobs();\n }\n\n }", "title": "" }, { "docid": "165d60130ac02b1ac34a6e7f6b7b86c8", "score": "0.6265013", "text": "@Override\r\n\tpublic String execute(File workingDir, String stdin) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "27c632b45a5b3c8a77213ccfef473318", "score": "0.6261759", "text": "public static String getCommand() {\n\t\tString command = \"\";\n\t\tboolean keepRunning = true;\n\t\twhile(keepRunning = true) {\n\t\t\tSystem.out.print(\"Enter Command: \");\n\t\t\tcommand = input.nextLine();\n\t\t\t if (command.equalsIgnoreCase(\"AC\")||command.equalsIgnoreCase(\"DC\")|| command.equalsIgnoreCase(\"AS\")\n ||command.equalsIgnoreCase(\"DS\")|| command.equalsIgnoreCase(\"P\")|| command.equalsIgnoreCase(\"Q\")) {\n return command;\n }\n\t\t\t\tSystem.out.println(\"Invalid option\");\n\t\t}\n\t\treturn command;\n\t}", "title": "" }, { "docid": "8d577f42660ff88335990b688d2698c4", "score": "0.6257181", "text": "public void run(){\n \t\tconsoleScanner = new Scanner(System.in);\n \t\tconsolePrint(\"Welcome to SimpleServer v1.0! Enter 'help' for a list of commands.\");\n \t\tconsolePrint(\"Please also remember to shut the logger ('shut_logger') before you shut down the server!\");\n \t\tprompt();\n \t}", "title": "" }, { "docid": "33fe7f670fa8dae173a825b0aa4c4c39", "score": "0.62515503", "text": "public static void run() {\n\t\tDessin dessin = new Dessin();\n\t\tjava.util.Scanner scanner = new java.util.Scanner(System.in);\n\t\tDrawingTui tui = new DrawingTui();\n\t\tString commande = \"\";\n\t\twhile (!commande.equals(\"exit\")) {\n\t\t\t//On récupère ce que tape l'utilisateur\n\t\t\tcommande = scanner.nextLine();\n\t\t\t//tui.nextCommand() reconnait le type de commande utilisée et crée l'objet\n\t\t\t//Command associé. La méthode next de cet objet exécute la commande.\n\t\t\ttui.nextCommand(commande).execute(dessin, commande);\n\t\t}\n\t\tscanner.close();\n\t}", "title": "" }, { "docid": "2d5d07d16ecd713cfcc03e0215c72e92", "score": "0.6246869", "text": "public static void main(String[] args) {\n\t\t\n\t\tInputStream systemIn = null;\n\t\t\n\t\ttry {\n\t\t\tsystemIn = System.in;\n\t\t\tif(systemIn.available() > 0){\n\t\t\tSystem.out.println(\"Line entered : \" + systemIn.read());\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tSystem.out.println(\"Exception while reading input \"+ ioe);\n\t\t}\n\t\t\n\t\t try { \n\t\t\t SerialComm s = new SerialComm();\n\t s.connect(\"/dev/cu.usbserial-DN00MZW8\"); // Adjust this to be the right port for your machine\n\t InputStream in = s.getInputStream();\n\t OutputStream out = s.getOutputStream();\n\t ViewOutputStream vis = new ViewOutputStream(out);\n\t while(true){\n\t \t while(systemIn.available() > 0){\n\t \t\t System.out.println(systemIn.read());\n\t \t\t vis.write(systemIn.read());\n\t \t }\n\t }\n\t // InputStream and OutputStream are now available for use\n\t // insert code below to use them\n\t \n\t \n\t }\n\t catch ( Exception e )\n\t {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t}", "title": "" }, { "docid": "eb36c49f355f784bdc532ed1f828f6eb", "score": "0.62467426", "text": "public void processCommand() {\n switch (currentCommand) {\n case NGCommands.COM_TOKEN:\n getTokenAndDeliver();\n break;\n case NGCommands.COM_NICK:\n if (!estaLogeado) {\n registerNickName();\n } else {\n System.out.println(\"Ya estas logeado\");\n }\n break;\n case NGCommands.COM_ROOMLIST:\n getAndShowRooms();\n break;\n case NGCommands.COM_ENTER:\n enterTheGame();\n break;\n case NGCommands.COM_HELP:\n NGCommands.printCommandsHelp();\n break;\n case NGCommands.COM_STATUS:\n break;\n case NGCommands.COM_QUIT:\n ngClient.disconnect();\n brokerClient.close();\n break;\n default:\n }\n }", "title": "" }, { "docid": "790c1fc6df83df715bc23bcc14153d1f", "score": "0.62450963", "text": "private void run () {\n Scanner scanner = new Scanner(System.in);\n\n while (running) {\n System.out.print(\"Command: \");\n String command = scanner.nextLine().trim();\n switch (command) {\n case \"i\":\n inputBoard(scanner); break;\n case \"p\":\n printBoard(); break;\n case \"q\":\n quit(); break;\n case \"?\":\n help(); break;\n case \"solve\":\n solve(); break;\n default:\n System.out.println(\"Unknown command. Type ? to see the commands list.\");\n break;\n }\n }\n }", "title": "" }, { "docid": "ab4ad01ed25d702c9c7a49d130b6c17b", "score": "0.624459", "text": "static boolean getUserCommand() throws IOException, ClassNotFoundException {\n myPrint(\"Yellow\", \"> Enter a command\");\n Boolean programIsOn = true;\n String cmdName = \"\";\n Scanner sc = new Scanner(System.in);\n String entry = sc.nextLine();\n String[] split = entry.split(\"\\\\s+\");\n if (split.length > 0) {\n cmdName = split[0];\n } else {\n return programIsOn;\n }\n\n switch (cmdName ) {\n\n default:\n myPrint(\"Red\",\"Command \" + cmdName + \" not valid, Please enter a valid command or try help\");\n break;\n\n case \"adduser\":\n addUser(entry);\n break;\n\n case \"addbook\":\n addBook(entry);\n break;\n\n case \"createborrow\":\n addBorrow(entry);\n break;\n\n case \"help\":\n displayHelp();\n break;\n\n case \"exit\":\n programIsOn = false;\n break;\n\n case \"edituser\":\n editUser(entry);\n break;\n\n case \"editbook\":\n editBook(entry);\n break;\n\n case \"removeuser\":\n removeUser(entry);\n break;\n\n case \"removebook\":\n removeBook(entry);\n break;\n\n case \"endborrow\":\n endBorrow(entry);\n break;\n\n case \"listusers\":\n listUsers();\n break;\n\n case \"listbooks\":\n listBooks();\n break;\n\n case \"listborrow\":\n listBorrows();\n break;\n\n case \"save\":\n save();\n break;\n\n case \"restore\":\n restore();\n break;\n\n }\n return programIsOn;\n }", "title": "" }, { "docid": "9441c9bb3350a9ee5c091b495cf0fa60", "score": "0.6244464", "text": "private static void inputMessage() {\n\t\tString input;\n\t\t\n\t\tscanner = new Scanner(System.in);\n\t\t\n\t\tprintPrompt(MESSAGE_PROMPT);\n\t\t\n\t\tinput = scanner.nextLine();\n\t\t\n\t\tif (!isValidMessage(input)) {\n\t\t\tprintResponse(INVALID_MESSAGE);\n\t\t\tprintPrompt(END_PROMPT);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tsetMessage(input);\n\t\tprintResponse(VALID_MESSAGE);\n\t}", "title": "" }, { "docid": "93905b06dc43ae40f01fa7c5b40b59e8", "score": "0.6238237", "text": "public void handleInput(String[] tokens){\n\n sf = new ClientViewSupportFunctions();\n\n switch (sf.nameToCorrectFormat(tokens[0])) {\n case \"End\" -> this.getClientSideConnection().send(new EndChoice());\n case \"Quit\" -> this.getClientSideConnection().send(new QuitChoice());\n case \"Move\" -> this.getClientSideConnection().send(new MoveData(Integer.parseInt(tokens[1]) - 1, Integer.parseInt(tokens[2]), Integer.parseInt(tokens[3])));\n case \"Build\" -> this.getClientSideConnection().send(new BuildData(Integer.parseInt(tokens[1]) - 1, Integer.parseInt(tokens[2]), Integer.parseInt(tokens[3]), sf.nameToCorrectFormat(tokens[4])));\n default -> System.out.println(\"Command not found\");\n }\n\n }", "title": "" }, { "docid": "81bb3f7fa1d37f8f26bec60467810576", "score": "0.6234253", "text": "protected void processCommand( byte command )\n { //System.out.println( \"processCommand: \" + (char) command + \" : \" + new String( argbuf, 1, argbuf[0] ) );\n try \n {\n int arg = 0;\n switch ( command )\n {\n case 'H': // cursor position to x, y or home\n case 'f': // cursor position to x, y or home\n if ( argbuf[0] > 0 )\n {\n cursor = bound-1 - ((rows-getArgument( 0 ))*columns) - (columns-getArgument( 1 ));\n }\n else\n { // return to top-left position\n cursor = bound - ( rows * columns );\n }\n break;\n \n case 'A': // cursor up by x\n if ( argbuf[0] == 0 ) \n {\n cursor = cursor - columns;\n }\n else\n {\n cursor = cursor - columns * getArgument( 0 );\n }\n break;\n \n case 'B': // cursor down by x\n if ( argbuf[0] == 0 ) \n {\n cursor = cursor + columns;\n }\n else\n {\n cursor = cursor + columns * getArgument( 0 );\n }\n break;\n \n case 'C': // cursor forward by x\n if ( argbuf[0] == 0 ) \n {\n cursor = cursor + 1;\n }\n else\n {\n cursor = cursor + getArgument( 0 );\n }\n break;\n \n case 'D': // cursor backward by x\n if ( argbuf[0] == 0 ) \n {\n cursor = cursor - 1;\n }\n else\n {\n cursor = cursor - getArgument( 0 );\n }\n break;\n \n case 'd': // cursor to row x (preserve column position)\n if ( argbuf[0] > 0 ) \n {\n cursor = bound - ((rows-getArgument( 0 )+1)*columns) + ( cursor % columns );\n }\n break;\n \n case 'G': // cursor to column x (preserve row position)\n if ( argbuf[0] > 0 ) \n {\n cursor = cursor - ( cursor % columns ) + getArgument( 0 );\n }\n break;\n \n case '@': // insert x blank spaces\n arg = getArgument( 0 );\n for ( int i = cursor + columns-(cursor%columns); i > cursor+arg; i-- )\n {\n buffer[i] = buffer[i-arg];\n }\n for ( int i = cursor; i < cursor+arg; i++ )\n {\n buffer[i] = ' ';\n }\n break;\n \n case 'L': // insert x blank lines (not from cursor?)\n arg = getArgument( 0 ) * columns;\n {\n int origin = cursor - (cursor%columns);\n for ( int i = bound; i >= origin+arg; i-- )\n {\n buffer[i] = buffer[i-arg];\n }\n for ( int i = origin; i < origin+arg; i++ )\n {\n buffer[i] = 0;\n }\n }\n break;\n \n case 'M': // delete x lines from cursor\n arg = getArgument( 0 ) * columns;\n for ( int i = cursor; i < bound; i++ )\n {\n if ( i < cursor + arg )\n {\n buffer[i] = buffer[i+arg];\n }\n else\n {\n buffer[i] = 0;\n }\n }\n break;\n \n case 'P': // delete x characters from cursor\n arg = getArgument( 0 );\n for ( int i = cursor; i%columns!=0; i++ )\n {\n if ( i < cursor + arg )\n {\n buffer[i] = buffer[i+arg];\n }\n else\n {\n buffer[i] = 0;\n }\n }\n break;\n \n case 's': // save cursor position\n savedCursor = cursor;\n break;\n\n case 'u': // restore cursor position\n cursor = savedCursor;\n break;\n \n case 'J': // clear region\n if ( argbuf[0] > 0 ) arg = getArgument( 0 );\n switch ( arg )\n {\n case 1: // from beginning of screen to cursor\n for ( int i = bound - rows * columns; i <= cursor; i++ )\n {\n buffer[i] = 0;\n }\n break;\n case 2: // clear all screen\n cursor = bound - rows * columns;\n for ( int i = cursor; i < bound; i++ )\n {\n buffer[i] = 0;\n }\n break;\n default: // from cursor to end of screen\n for ( int i = cursor; i < bound; i++ )\n {\n buffer[i] = 0;\n }\n break;\n }\n break;\n \n case 'K': // erase rest of line\n if ( argbuf[0] > 0 ) arg = getArgument( 0 );\n switch ( arg )\n {\n case 1: // from beginning of line to cursor\n buffer[cursor] = 0;\n for ( int i = cursor - (cursor % columns); i < cursor; i++ )\n {\n buffer[i] = 0;\n }\n break;\n case 2: // clear all line\n buffer[cursor - (cursor % columns)] = 0;\n for ( int i = cursor - (cursor % columns) + 1; i % columns != 0; i++ )\n {\n buffer[i] = 0;\n }\n break;\n default: // from cursor to end of line\n buffer[cursor] = 0;\n for ( int i = cursor+1; i % columns != 0; i++ )\n {\n buffer[i] = 0;\n }\n break;\n }\n break;\n \n case 'm': // set graphics mode\n int argc = getArgumentCount();\n for ( int i = 0; i < argc; i++ )\n {\n highlight = getArgument( i ) > 0;\n }\n break;\n \n case 'h': // set emulation option\n System.err.println( \"h: emulation mode not supported\" \n + \" : \" + new String( argbuf, 1, argbuf[0] ) );\n break;\n \n case 'l': // unset emulation option\n System.err.println( \"l: reset emulation mode not supported\" \n + \" : \" + new String( argbuf, 1, argbuf[0] ) );\n break;\n \n case 'p': // define keyboard mappings\n System.err.println( \"p: keyboard mappings not supported\" \n + \" : \" + new String( argbuf, 1, argbuf[0] ) );\n break;\n \n default:\n System.err.println( \"unsupported command: \" + (char) command \n + \" : \" + new String( argbuf, 1, argbuf[0] ) );\n \n }\n }\n catch ( Throwable t ) \n {\n // probably a parse exception or wrong number of args\n System.err.println( \"Error in processCommand: \" );\n t.printStackTrace();\n }\n }", "title": "" }, { "docid": "faf09697bace66984fb6a9afb2212a21", "score": "0.6230372", "text": "static void input() {\n\t\tnew Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tScanner input = new Scanner(System.in);\n\t\t\t\tString inputStr = \"\";\n\t\t\t\twhile(run) {\n\t\t\t\t\tinputStr = input.nextLine();\n\t\t\t\t\tString[] messageTo = inputStr.split(\",\");\n\t\t\t\t\tif(messageTo.length != 3) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tSendMessage(messageTo[0], messageTo[1], Integer.parseInt(messageTo[2]));\n\t\t\t\t\t/*System.out.println(\" \"\n\t\t\t\t\t\t\t+ \" me: \" + inputStr);*/\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t}", "title": "" }, { "docid": "896ce867e7a7803160ed7e84b96df600", "score": "0.62287307", "text": "public static void main(String[] args) {\n printBanner();\n Scanner in = new Scanner(System.in);\n String input = \"\";\n while(!input.equals(\"exit\")){\n input = in.nextLine();\n parseInput(input);\n }\n }", "title": "" }, { "docid": "cac6b707a5ed40f534ba14b6aedb8b2c", "score": "0.6227398", "text": "public static void main(String[] args) throws NoSuchAlgorithmException {\n System.out.println(\"Shortcut Messenger CLI\");\n\n availableCommands.add(\"bootstrap\");\n availableCommands.add(\"help\");\n availableCommands.add(\"exit\");\n\n try {\n ipTools = new IPTools();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n /* CLI doesn't support saved state - delete the file if exists */\n new StorageHandler().delete();\n\n while (!input.equals(\"exit\")) {\n System.out.print(\"\\n# \");\n\n input = sc.nextLine(); // read input from System.in\n inputWords = input.split(\"\\\\s+\"); // split string into words\n\n switch (inputWords[0]) {\n case \"help\":\n help();\n break;\n case \"bootstrap\":\n try {\n bootstrap();\n } catch (Exception e) {\n e.printStackTrace();\n }\n break;\n case \"register\":\n try {\n register();\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n case \"login\":\n try {\n login();\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n case \"message\":\n try {\n message();\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n case \"print\":\n print();\n break;\n case \"exit\":\n exit();\n break;\n default:\n System.out.println(\"Command not recognised. Please type help for a list of available commands\");\n break;\n }\n }\n }", "title": "" }, { "docid": "0caba856cfb8971947f43558ed227b01", "score": "0.6214281", "text": "public void parseInput(final String input) throws QuitException {\n CommandEnum chosenCommand = null;\n Matcher matcher = null;\n for (CommandEnum command : CommandEnum.values()) {\n matcher = command.getPattern().matcher(input);\n if (matcher.matches()) {\n chosenCommand = command;\n break;\n }\n }\n if (null != chosenCommand) {\n switch (chosenCommand) {\n case INSERISCI_CMD:\n writeChanges(matcher.group(1), dataManager::addPerson);\n break;\n case RIMUOVI_CMD:\n writeChanges(matcher.group(1), dataManager::removePerson);\n break;\n case ASSENTI_CMD:\n writeChanges(matcher.group(1), dataManager::addAbsentee);\n break;\n case PRESENTI_CMD:\n writeChanges(matcher.group(1), dataManager::removeAbsentee);\n break;\n case ESTRAI_CMD:\n pickOne();\n break;\n case LISTE_CMD:\n printLists();\n break;\n case SALVA_CMD:\n export(matcher.group(1).trim());\n break;\n case CARICA_CMD:\n load(matcher.group(1).trim());\n break;\n case HELP_CMD:\n printUsage();\n break;\n case QUIT_CMD:\n throw new QuitException();\n default:\n printStream.println(\"ERRORE: comando non supportato.\");\n }\n } else {\n printStream.println(\"Comando non supportato.\");\n }\n }", "title": "" }, { "docid": "1e6faa4de14be88f4c6ac734df6d7067", "score": "0.6213146", "text": "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tSystem.in.read();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "e9f37eee20f366873db86da9faac1c15", "score": "0.62115866", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tScanner input = new Scanner(System.in);\n\t\t\t\tString inputStr = \"\";\n\t\t\t\twhile(run) {\n\t\t\t\t\tinputStr = input.nextLine();\n\t\t\t\t\tString[] messageTo = inputStr.split(\",\");\n\t\t\t\t\tif(messageTo.length != 3) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tSendMessage(messageTo[0], messageTo[1], Integer.parseInt(messageTo[2]));\n\t\t\t\t\t/*System.out.println(\" \"\n\t\t\t\t\t\t\t+ \" me: \" + inputStr);*/\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "763f79486969dadcc2daa2edb18a5506", "score": "0.62107086", "text": "public void userInput() throws IOException\n\t{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader\n\t\t\t\t(System.in));\n\t\t\n\t\tSystem.out.print(\"Enter a prase: \");\n\t\t\n\t\tinput = reader.readLine().toLowerCase();\n\t\t\n\t}", "title": "" }, { "docid": "b4ea7236b39543f65793c6f9c446c63c", "score": "0.6198409", "text": "private void processCommands() {\n \n while (input.hasNextInt()) {\n \n \n int command = input.nextInt();\n System.out.println(\"The user entered \" + command + \" as their move\");\n\n //PROCCESS THE MOVE\n if (command == -1) { //ends the program\n System.out.println(\"Program termination called!\");\n return;\n // 1 and 2 is the ability number\n } else if (command == 1 || command == 2) { \n processMoveCommand(command);\n }\n }\n }", "title": "" }, { "docid": "1c7413364fa63d80e4fbf7c719806ace", "score": "0.6194559", "text": "public static void main(String[] args) {\n System.out.println(showInputDialog());\r\n }", "title": "" }, { "docid": "6750cdda69c87120e97f4fe414171bd6", "score": "0.6186637", "text": "public void run()\n {\n cs213 = new Team();\n boolean done = false;\n\n while (!done)\n {\n String command = stdin.nextLine();\n switch (command.charAt(0))\n { \n case 'A':\n add(command);\n\t\t break; \n case 'R':\n remove(command);\n break;\n case 'P':\n print();\n break;\n case 'Q':\n print();\n done = true;\n break;\n default:\n System.out.println(\"Command '\" + command.charAt(0) + \"' not supported!\");\n break;\n } \n }\n System.out.println(\"The team is ready to go!\");\n }", "title": "" }, { "docid": "669a68fcb37495a07c6d1d0e5dff402a", "score": "0.61812586", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Encoder/Decoder program\\n\" + HELP);\n\t\t\n\t\tdo {\n\t\t\tSystem.out.print(\"Enter command: \");\n\t\t\taction = sc.next().toUpperCase().charAt(0);\n\t\t\t\n\t\t\tswitch (action) {\n\t\t\t\tcase 'D':\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tSystem.out.print(\"Enter encoded text: \");\n\t\t\t\t\tinput = sc.nextLine();\n\t\t\t\t\tSystem.out.printf(\"Decoded text: %s%n\", Encoder.decode(input, Code.CAESAR));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'E':\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tSystem.out.print(\"Enter plaintext: \");\n\t\t\t\t\tinput = sc.nextLine();\n\t\t\t\t\tSystem.out.printf(\"Encoded text: %s%n\", Encoder.encode(input, Code.CAESAR));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'H':\n\t\t\t\t\tSystem.out.println(HELP);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'X':\n\t\t\t\t\tSystem.out.print(\"Are you sure you want to exit? (Y/N) \");\n\t\t\t\t\taction = sc.next().toUpperCase().charAt(0);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.err.printf(\"INVALID COMMAND: \\\"%c\\\"%n\", action);\n\t\t\t\t\tSystem.out.println(\"Enter \\\"H\\\" for help.\");\n\t\t\t}\n\t\t} while (action != 'Y');\n\t}", "title": "" }, { "docid": "ba237ea1aea1099754795033c6adeec4", "score": "0.61812085", "text": "public static void main(String[] args) throws IOException{\n\t\tInputStream in = System.in;\n\t\t\n\t\t\n\t\t/**\n\t\t * convert it into char stream\n\t\t */\n\t\tInputStreamReader reader = new InputStreamReader(in);\n\t\t\n\t\tBufferedReader br = new BufferedReader(reader);\n\t\t\n\t\tString str = null;\n\t\t\n\t\t\n\t\twhile (true) {\n\t\t\tstr = br.readLine();\n\t\t\tif (\"exit\".equals(str)) {\n\t\t\t\tSystem.out.println(\"goodbye~\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"you just type in: \"+ str);\n\t\t}\n\t\t\n\t\t\n\t\t/**\n\t\t * you can use the code above to write a Scanner to collect use keyboard input\n\t\t */\n\t\t\n\t}", "title": "" }, { "docid": "c5074a98efae7ba11516f099f77a6ba1", "score": "0.6154352", "text": "public static void main(String[] args) {\r\n\t\tSystem.out.println(\"User must enter Integer value. \"\r\n\t\t\t\t+ \"Reading from console continue while correct data is entered.\");\r\n\t\tConsoleReader.readInt();\r\n\t\tSystem.out.println(\"User must enter string:\");\r\n\t\tConsoleReader.readString();\r\n\t\tSystem.out.println(\"User must enter float value:\");\r\n\t\tConsoleReader.readFloat();\r\n\t\tSystem.out.println(\"User must enter char:\");\r\n\t\tConsoleReader.readChar();\r\n\t}", "title": "" }, { "docid": "4eed50b33e0ca700498495fa7e1589da", "score": "0.6151238", "text": "public void input()\n\t{\n\t\tSystem.out.println(\"Enter the car number\");\n\t\t\n\t\t\tcarNumber = myObj.nextInt(); //taking car number from user\n\t\t\n\t}", "title": "" } ]
0769164d662dd9efa7678f6c9fc27916
Represents the latest available observations of a replica set's current state. +optional +patchMergeKey=type +patchStrategy=merge repeated .k8s.io.api.extensions.v1beta1.ReplicaSetCondition conditions = 6;
[ { "docid": "eea6f3d6c9c4b2bfeacd274d83d2fc26", "score": "0.63918245", "text": "public Builder addAllConditions(\n java.lang.Iterable<\n ? extends io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition>\n values) {\n if (conditionsBuilder_ == null) {\n ensureConditionsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_);\n onChanged();\n } else {\n conditionsBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" } ]
[ { "docid": "3691413e762b51b122280a3fb1b1b689", "score": "0.7286105", "text": "public java.util.List<\n ? extends io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetConditionOrBuilder>\n getConditionsOrBuilderList() {\n return conditions_;\n }", "title": "" }, { "docid": "5ddf30e5ff27cc9724553845c80b9fe6", "score": "0.7194208", "text": "java.util.List<\n ? extends io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetConditionOrBuilder>\n getConditionsOrBuilderList();", "title": "" }, { "docid": "942f173ca6665fc2ebfad51caae2a5ab", "score": "0.7095142", "text": "io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition getConditions(int index);", "title": "" }, { "docid": "fa3ac473a27ee02d60de7d21d5ae4c9a", "score": "0.69930524", "text": "public java.util.List<io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition>\n getConditionsList() {\n return conditions_;\n }", "title": "" }, { "docid": "83046b4b3ddf3c826e9a98bf84f822ab", "score": "0.6945582", "text": "java.util.List<io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition>\n getConditionsList();", "title": "" }, { "docid": "3a800dae00d1466f165b1ffce01af1e4", "score": "0.6886677", "text": "public java.util.List<\n ? extends io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetConditionOrBuilder>\n getConditionsOrBuilderList() {\n if (conditionsBuilder_ != null) {\n return conditionsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(conditions_);\n }\n }", "title": "" }, { "docid": "9995e93e3e091bc3faab728e15a2701b", "score": "0.68497515", "text": "public io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetConditionOrBuilder\n getConditionsOrBuilder(int index) {\n return conditions_.get(index);\n }", "title": "" }, { "docid": "109b477fc10953b3fa6cb8e2429ef8b6", "score": "0.6604736", "text": "public java.util.List<io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition>\n getConditionsList() {\n if (conditionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(conditions_);\n } else {\n return conditionsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "2fa443e2efb88e56d06aad459ed3e625", "score": "0.6560279", "text": "io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetConditionOrBuilder\n getConditionsOrBuilder(int index);", "title": "" }, { "docid": "500ce7dfe21a6cd441fb031bf5fd2c71", "score": "0.6520487", "text": "public io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition getConditions(\n int index) {\n return conditions_.get(index);\n }", "title": "" }, { "docid": "56f3d64d5faf0b48b4843459c467c851", "score": "0.6505236", "text": "public io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetConditionOrBuilder\n getConditionsOrBuilder(int index) {\n if (conditionsBuilder_ == null) {\n return conditions_.get(index);\n } else {\n return conditionsBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "eb0acb92ce210b9d1fce49b1237ab3f3", "score": "0.6503533", "text": "io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition getConditions(int index);", "title": "" }, { "docid": "f3cdaff4b211193e1f6beab7c4b0ede9", "score": "0.6451853", "text": "public java.util.List<\n ? extends io.kubernetes.client.proto.V1beta1Extensions.DaemonSetConditionOrBuilder>\n getConditionsOrBuilderList() {\n return conditions_;\n }", "title": "" }, { "docid": "d7521ff76068af1d03c98cc06e0fb52a", "score": "0.63841116", "text": "java.util.List<\n ? extends io.kubernetes.client.proto.V1beta1Extensions.DaemonSetConditionOrBuilder>\n getConditionsOrBuilderList();", "title": "" }, { "docid": "273f721379a8d9a95f0703dbc0c17efc", "score": "0.6314396", "text": "public io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition getConditions(\n int index) {\n if (conditionsBuilder_ == null) {\n return conditions_.get(index);\n } else {\n return conditionsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "1df242cad3156560d98a61cf6be92d8e", "score": "0.6300475", "text": "public io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition.Builder\n addConditionsBuilder() {\n return getConditionsFieldBuilder()\n .addBuilder(\n io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition\n .getDefaultInstance());\n }", "title": "" }, { "docid": "836b100a293f163143441a11786c09bc", "score": "0.62352246", "text": "public Builder addConditions(\n io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition value) {\n if (conditionsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureConditionsIsMutable();\n conditions_.add(value);\n onChanged();\n } else {\n conditionsBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "c190a7d6910619633ac98c7d18aaf730", "score": "0.6230574", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetConditionOrBuilder\n getConditionsOrBuilder(int index) {\n return conditions_.get(index);\n }", "title": "" }, { "docid": "3abeebe42f7bfcc29ed981a5fca17040", "score": "0.62300473", "text": "public java.util.List<\n ? extends io.kubernetes.client.proto.V1beta1Extensions.DeploymentConditionOrBuilder>\n getConditionsOrBuilderList() {\n return conditions_;\n }", "title": "" }, { "docid": "e776c26b5acd5b728b607c70cde1752f", "score": "0.62107784", "text": "public java.util.List<\n ? extends io.kubernetes.client.proto.V1beta1Extensions.DaemonSetConditionOrBuilder>\n getConditionsOrBuilderList() {\n if (conditionsBuilder_ != null) {\n return conditionsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(conditions_);\n }\n }", "title": "" }, { "docid": "9937f2c5f1ec01eb9fd9a8fe71461b4f", "score": "0.6199758", "text": "io.kubernetes.client.proto.V1beta1Extensions.DaemonSetConditionOrBuilder getConditionsOrBuilder(\n int index);", "title": "" }, { "docid": "bba0b2fd6eac464ba2d3d402559e8037", "score": "0.61748934", "text": "java.util.List<io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition>\n getConditionsList();", "title": "" }, { "docid": "59e6a8dc413c702a8e2471a0fda8af15", "score": "0.615953", "text": "public java.util.List<io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition>\n getConditionsList() {\n return conditions_;\n }", "title": "" }, { "docid": "536ed4d4f7beac4454a2ca7399433814", "score": "0.6133217", "text": "java.util.List<\n ? extends io.kubernetes.client.proto.V1beta1Extensions.DeploymentConditionOrBuilder>\n getConditionsOrBuilderList();", "title": "" }, { "docid": "f16306126b6a9373000397967169748b", "score": "0.60275805", "text": "public java.util.List<\n io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition.Builder>\n getConditionsBuilderList() {\n return getConditionsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "8c3131a6a716887ee6182db9a8eec909", "score": "0.5978899", "text": "public java.util.List<\n ? extends io.kubernetes.client.proto.V1beta1Extensions.DeploymentConditionOrBuilder>\n getConditionsOrBuilderList() {\n if (conditionsBuilder_ != null) {\n return conditionsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(conditions_);\n }\n }", "title": "" }, { "docid": "c4be1e7118ef462ec59da42d2e1b9c80", "score": "0.5978195", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition getConditions(\n int index) {\n return conditions_.get(index);\n }", "title": "" }, { "docid": "e5f05ee2dbdab34747a9032c938cf380", "score": "0.5966058", "text": "public java.util.List<io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition>\n getConditionsList() {\n if (conditionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(conditions_);\n } else {\n return conditionsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "619e16e53ee9f92e18c571ebe4352d18", "score": "0.5905499", "text": "public java.util.List<io.kubernetes.client.proto.V1beta1Extensions.DeploymentCondition>\n getConditionsList() {\n return conditions_;\n }", "title": "" }, { "docid": "11428a4812a20bbecd37aeff3ce91736", "score": "0.5903126", "text": "io.kubernetes.client.proto.V1beta1Extensions.DeploymentCondition getConditions(int index);", "title": "" }, { "docid": "439cc712d233baba7aeaa9ed2f631809", "score": "0.58918476", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetConditionOrBuilder\n getConditionsOrBuilder(int index) {\n if (conditionsBuilder_ == null) {\n return conditions_.get(index);\n } else {\n return conditionsBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "dcf593b0f011fcbd4c15e8476b4f8854", "score": "0.5891583", "text": "java.util.List<io.kubernetes.client.proto.V1beta1Extensions.DeploymentCondition>\n getConditionsList();", "title": "" }, { "docid": "54e9143f9b9cef1de2d8032c01bbf2d4", "score": "0.57990897", "text": "public io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition.Builder\n getConditionsBuilder(int index) {\n return getConditionsFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "52ff2d1ab07a15f0528fed3f73ee1e71", "score": "0.5797822", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition getConditions(\n int index) {\n if (conditionsBuilder_ == null) {\n return conditions_.get(index);\n } else {\n return conditionsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "1b3d325760a73bbc749b2934558c1018", "score": "0.5752524", "text": "public Builder setConditions(\n int index, io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition value) {\n if (conditionsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureConditionsIsMutable();\n conditions_.set(index, value);\n onChanged();\n } else {\n conditionsBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "50860aa81d7d75e68d44e8e8b6295932", "score": "0.5707033", "text": "public java.util.List<io.kubernetes.client.proto.V1beta1Extensions.DeploymentCondition>\n getConditionsList() {\n if (conditionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(conditions_);\n } else {\n return conditionsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "26dc8521db6f6e59f95beec5921789a8", "score": "0.5685766", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DeploymentConditionOrBuilder\n getConditionsOrBuilder(int index) {\n return conditions_.get(index);\n }", "title": "" }, { "docid": "bffd72495a204e8d85d7e57a4d66af26", "score": "0.56479174", "text": "public Condition[] getConditions() {\n return conditions;\n }", "title": "" }, { "docid": "0fbc84b3d202d9940d01722de0234c59", "score": "0.5638922", "text": "public java.util.List<? extends org.spin.grpc.util.ConditionOrBuilder> \n getConditionsOrBuilderList() {\n return conditions_;\n }", "title": "" }, { "docid": "9cfa9470dfd1c0325287b05f4ea43e38", "score": "0.56169456", "text": "public Builder addAllConditions(\n java.lang.Iterable<\n ? extends io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition>\n values) {\n if (conditionsBuilder_ == null) {\n ensureConditionsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_);\n onChanged();\n } else {\n conditionsBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "557f2b4a2cce281640d5c3cfa4ca6d82", "score": "0.55468935", "text": "public int getConditionsCount() {\n return conditions_.size();\n }", "title": "" }, { "docid": "557f2b4a2cce281640d5c3cfa4ca6d82", "score": "0.55468935", "text": "public int getConditionsCount() {\n return conditions_.size();\n }", "title": "" }, { "docid": "557f2b4a2cce281640d5c3cfa4ca6d82", "score": "0.5546654", "text": "public int getConditionsCount() {\n return conditions_.size();\n }", "title": "" }, { "docid": "1c9c333454943f160e791c6126c304e0", "score": "0.55457217", "text": "public Builder addConditions(\n int index, io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition value) {\n if (conditionsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureConditionsIsMutable();\n conditions_.add(index, value);\n onChanged();\n } else {\n conditionsBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "4b39fa46213a90b405f35c1988dc4f28", "score": "0.5528324", "text": "public java.util.List<org.spin.grpc.util.Condition> getConditionsList() {\n return conditions_;\n }", "title": "" }, { "docid": "3fc1c364fc885ee33a148ece50a1a554", "score": "0.55190504", "text": "public int getConditionsCount() {\n return conditions_.size();\n }", "title": "" }, { "docid": "6de032871afef3caee6d0ab58e58109d", "score": "0.55190384", "text": "@java.lang.Override\n public int getConditionsCount() {\n return conditions_.size();\n }", "title": "" }, { "docid": "9e230ad1e67f72fae21c912eb4d8cc70", "score": "0.5501978", "text": "public int getConditionsCount() {\n return conditions_.size();\n }", "title": "" }, { "docid": "5a2ad601d29582ddd7e3712f3de62560", "score": "0.5468319", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DeploymentCondition getConditions(\n int index) {\n return conditions_.get(index);\n }", "title": "" }, { "docid": "dc385b29275e60a4130ba2c7b7fdaecd", "score": "0.5450322", "text": "io.kubernetes.client.proto.V1beta1Extensions.DeploymentConditionOrBuilder\n getConditionsOrBuilder(int index);", "title": "" }, { "docid": "55fd59e375a621b29706e4a12547d551", "score": "0.5425992", "text": "public LinkedList<Integer> getConditions() {\r\n\t\treturn conditions;\r\n\t}", "title": "" }, { "docid": "c0328f3f27a9895d77f19bca954fcf23", "score": "0.5358739", "text": "@Override \n\tpublic int getNumberOfConditions()\n\t{\n\t\treturn 8;\n\t}", "title": "" }, { "docid": "f371e2fd32a29051ec3756fae47c4a83", "score": "0.5346535", "text": "public Builder addAllConditions(\n java.lang.Iterable<\n ? extends io.kubernetes.client.proto.V1beta1Extensions.DeploymentCondition>\n values) {\n if (conditionsBuilder_ == null) {\n ensureConditionsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_);\n onChanged();\n } else {\n conditionsBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "99564bae5e54ee479090174ab944dcb2", "score": "0.5338778", "text": "public java.util.List<io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition.Builder>\n getConditionsBuilderList() {\n return getConditionsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "fa881ef7ad6202d1e5abb4dcdac3cf25", "score": "0.52929926", "text": "public java.util.List<? extends org.spin.grpc.util.ConditionOrBuilder> \n getConditionsOrBuilderList() {\n if (conditionsBuilder_ != null) {\n return conditionsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(conditions_);\n }\n }", "title": "" }, { "docid": "1542c4ba0d1f9e0c9f6cd37145508509", "score": "0.529027", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DeploymentConditionOrBuilder\n getConditionsOrBuilder(int index) {\n if (conditionsBuilder_ == null) {\n return conditions_.get(index);\n } else {\n return conditionsBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "d703a2c6b513356cc3c74adccd68047f", "score": "0.52871364", "text": "public org.spin.grpc.util.ConditionOrBuilder getConditionsOrBuilder(\n int index) {\n return conditions_.get(index);\n }", "title": "" }, { "docid": "382d1fd31b1dd225658263b05d1bde15", "score": "0.5250078", "text": "private ReplicaSetCondition(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "e8fdc0d1c6ffa21177d34399aaff102d", "score": "0.5244381", "text": "public Builder clearConditions() {\n conditions_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000200);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2fc0f050944a95683ccce1710ee30a19", "score": "0.52227086", "text": "public Builder clearConditions() {\n if (conditionsBuilder_ == null) {\n conditions_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000040);\n onChanged();\n } else {\n conditionsBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "59be97d0d8994be64464857300e8aefa", "score": "0.5215111", "text": "public io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition.Builder\n addConditionsBuilder(int index) {\n return getConditionsFieldBuilder()\n .addBuilder(\n index,\n io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetCondition\n .getDefaultInstance());\n }", "title": "" }, { "docid": "19c87dcd77d5f6f7f4e69ad376395636", "score": "0.5215082", "text": "public ArrayList<String> getConditions() {\n\t\treturn conditions;\n\t}", "title": "" }, { "docid": "9ff3e1f4e7fc908bb9b0bda9aebed56f", "score": "0.5206146", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition.Builder\n getConditionsBuilder(int index) {\n return getConditionsFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "a398748949335dc30428c0109fc9f211", "score": "0.5197419", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DeploymentCondition getConditions(\n int index) {\n if (conditionsBuilder_ == null) {\n return conditions_.get(index);\n } else {\n return conditionsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "87760740a625bdc34ba2827734de6d43", "score": "0.5190133", "text": "public java.util.List<\n io.kubernetes.client.proto.V1beta1Extensions.DeploymentCondition.Builder>\n getConditionsBuilderList() {\n return getConditionsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "7f3386856cac2b5a7382cd324e092cb7", "score": "0.5187108", "text": "public Builder clearConditions() {\n if (conditionsBuilder_ == null) {\n conditions_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000200);\n onChanged();\n } else {\n conditionsBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "33d6fcd6a6c680ea7d2113ca1a304aa8", "score": "0.5185644", "text": "public Builder addConditions(\n io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition value) {\n if (conditionsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureConditionsIsMutable();\n conditions_.add(value);\n onChanged();\n } else {\n conditionsBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "4375a729f6e9f25e32d28f5203a4a0b3", "score": "0.51762295", "text": "public Builder clearConditions() {\n if (conditionsBuilder_ == null) {\n conditions_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000020);\n onChanged();\n } else {\n conditionsBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "91a309a9225a5fbd1713f91d74277b86", "score": "0.51725197", "text": "@java.lang.Deprecated\n public java.util.List<io.kubernetes.client.openapi.models.V1PodCondition> getConditions();", "title": "" }, { "docid": "3e8589686a21b808d54dac61aeb21615", "score": "0.5151128", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition.Builder\n addConditionsBuilder() {\n return getConditionsFieldBuilder()\n .addBuilder(\n io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition\n .getDefaultInstance());\n }", "title": "" }, { "docid": "5451abe979bc46db50ca779e4eaa572a", "score": "0.5147048", "text": "public Builder clearConditions() {\n if (conditionsBuilder_ == null) {\n conditions_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000020);\n onChanged();\n } else {\n conditionsBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "69f9874de172273971c7daa6f05402a1", "score": "0.5132751", "text": "public java.util.List<org.spin.grpc.util.Condition> getConditionsList() {\n if (conditionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(conditions_);\n } else {\n return conditionsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "be06e9f2fc28b133ff1ef8fac2d32f63", "score": "0.510375", "text": "public DotaGcmessagesServer.CMsgPoorNetworkConditionsOrBuilder getPoorNetworkConditionsOrBuilder() {\n if (poorNetworkConditionsBuilder_ != null) {\n return poorNetworkConditionsBuilder_.getMessageOrBuilder();\n } else {\n return poorNetworkConditions_ == null ?\n DotaGcmessagesServer.CMsgPoorNetworkConditions.getDefaultInstance() : poorNetworkConditions_;\n }\n }", "title": "" }, { "docid": "be06e9f2fc28b133ff1ef8fac2d32f63", "score": "0.510375", "text": "public DotaGcmessagesServer.CMsgPoorNetworkConditionsOrBuilder getPoorNetworkConditionsOrBuilder() {\n if (poorNetworkConditionsBuilder_ != null) {\n return poorNetworkConditionsBuilder_.getMessageOrBuilder();\n } else {\n return poorNetworkConditions_ == null ?\n DotaGcmessagesServer.CMsgPoorNetworkConditions.getDefaultInstance() : poorNetworkConditions_;\n }\n }", "title": "" }, { "docid": "be06e9f2fc28b133ff1ef8fac2d32f63", "score": "0.5103155", "text": "public DotaGcmessagesServer.CMsgPoorNetworkConditionsOrBuilder getPoorNetworkConditionsOrBuilder() {\n if (poorNetworkConditionsBuilder_ != null) {\n return poorNetworkConditionsBuilder_.getMessageOrBuilder();\n } else {\n return poorNetworkConditions_ == null ?\n DotaGcmessagesServer.CMsgPoorNetworkConditions.getDefaultInstance() : poorNetworkConditions_;\n }\n }", "title": "" }, { "docid": "1daf7b8fbb611ffaa9fdc0e0455b0f75", "score": "0.50855285", "text": "io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetStatusOrBuilder getStatusOrBuilder();", "title": "" }, { "docid": "049bdd7e21e9cff0a932ec41607977a8", "score": "0.50745726", "text": "public int getConditionsCount() {\n if (conditionsBuilder_ == null) {\n return conditions_.size();\n } else {\n return conditionsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "53d4925b07cf476a33b2c04bf9a77894", "score": "0.50713986", "text": "public Builder setConditions(\n int index, io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition value) {\n if (conditionsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureConditionsIsMutable();\n conditions_.set(index, value);\n onChanged();\n } else {\n conditionsBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "fe5553510ccc155e96931faa65366bcd", "score": "0.50637656", "text": "public int getConditionsCount() {\n if (conditionsBuilder_ == null) {\n return conditions_.size();\n } else {\n return conditionsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "fe5553510ccc155e96931faa65366bcd", "score": "0.5063521", "text": "public int getConditionsCount() {\n if (conditionsBuilder_ == null) {\n return conditions_.size();\n } else {\n return conditionsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "fe5553510ccc155e96931faa65366bcd", "score": "0.506294", "text": "public int getConditionsCount() {\n if (conditionsBuilder_ == null) {\n return conditions_.size();\n } else {\n return conditionsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "e5c075799d24f1c01f5bbf6f9fc2df3c", "score": "0.5044703", "text": "public HashSet<EvoParamCondition> getConditions() {\n return conditions;\n }", "title": "" }, { "docid": "8077d5413a27e0e4dac234fb04899464", "score": "0.5042156", "text": "@Deprecated\n public List<V1PersistentVolumeClaimCondition> getConditions();", "title": "" }, { "docid": "c80440f05a5b1aabb534b48640aa7449", "score": "0.5004751", "text": "public java.util.List<TfProtoDefMessages.CMsgQuestObjectiveDef.ETF2Conditions> getConditionsList() {\n return new com.google.protobuf.Internal.ListAdapter<\n java.lang.Integer, TfProtoDefMessages.CMsgQuestObjectiveDef.ETF2Conditions>(conditions_, conditions_converter_);\n }", "title": "" }, { "docid": "598ba464b78efe1b5ae525cc53a948fa", "score": "0.4990625", "text": "public TfProtoDefMessages.CMsgQuestMapNodeConditionOrBuilder getConditionOrBuilder() {\n if (conditionBuilder_ != null) {\n return conditionBuilder_.getMessageOrBuilder();\n } else {\n return condition_ == null ?\n TfProtoDefMessages.CMsgQuestMapNodeCondition.getDefaultInstance() : condition_;\n }\n }", "title": "" }, { "docid": "d3e15195fd1b6caf6ce8413c0330baf3", "score": "0.49773356", "text": "@Override\n public ConditionMetadata getConditionMetadata() {\n return conditionMetadata;\n }", "title": "" }, { "docid": "925efee1013cc94c769dca79a69efad0", "score": "0.49677914", "text": "public com.hof.mi.web.service.Condition[] getConditionList() {\n return conditionList;\n }", "title": "" }, { "docid": "7fbb8a3f9c4c01802131a6633647e523", "score": "0.49612036", "text": "public ConditionsRecordCollection getConditionsRecords() {\n if (this.run == -1 || this.detectorName == null) {\n throw new IllegalStateException(\"Conditions system is not initialized.\");\n }\n // If the collection is null then the new conditions records need to be\n // retrieved from the database.\n if (this.conditionsRecordCollection == null) {\n\n // Get the collection of conditions that are applicable for the current run.\n this.conditionsRecordCollection = this.getCachedConditions(ConditionsRecordCollection.class, \"conditions\")\n .getCachedData();\n\n // If there is one or more tags enabled then filter the collection by the tag\n // names.\n if (this.conditionsTagCollection.size() > 0) {\n this.conditionsRecordCollection = this.conditionsTagCollection.filter(this.conditionsRecordCollection);\n }\n }\n return this.conditionsRecordCollection;\n }", "title": "" }, { "docid": "9f34a82e6d0a3facadcfd8564d5693ec", "score": "0.49385223", "text": "public org.spin.grpc.util.Condition getConditions(int index) {\n return conditions_.get(index);\n }", "title": "" }, { "docid": "a304e4f43073477708ba8e536cf3f226", "score": "0.49325955", "text": "io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetSpecOrBuilder getSpecOrBuilder();", "title": "" }, { "docid": "c264eac7da1e834e133b590f03079ac3", "score": "0.49260843", "text": "@java.lang.Override\n public java.util.List<TfProtoDefMessages.CMsgQuestObjectiveDef.ETF2Conditions> getConditionsList() {\n return new com.google.protobuf.Internal.ListAdapter<\n java.lang.Integer, TfProtoDefMessages.CMsgQuestObjectiveDef.ETF2Conditions>(conditions_, conditions_converter_);\n }", "title": "" }, { "docid": "b1d4c14ea65253dd52d635e243109a5b", "score": "0.49223617", "text": "@java.lang.Override\n public int getConditionVarsCount() {\n return conditionVars_.size();\n }", "title": "" }, { "docid": "9a89829fffa35141bfaccf8ac05e0759", "score": "0.4921083", "text": "public Builder addConditions(\n int index, io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition value) {\n if (conditionsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureConditionsIsMutable();\n conditions_.add(index, value);\n onChanged();\n } else {\n conditionsBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "028b93c2f9fbc1d57772cafa2c6fd10c", "score": "0.48833382", "text": "public io.kubernetes.client.proto.V1beta1Extensions.DeploymentCondition.Builder\n getConditionsBuilder(int index) {\n return getConditionsFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "553443f4be40c1b39ccfbbe626881243", "score": "0.48603123", "text": "io.kubernetes.client.proto.V1beta1Extensions.ReplicaSetStatus getStatus();", "title": "" }, { "docid": "03e642d36b2458eb89e19b4973435358", "score": "0.48551288", "text": "public DotaGcmessagesServer.CMsgPoorNetworkConditions getPoorNetworkConditions() {\n if (poorNetworkConditionsBuilder_ == null) {\n return poorNetworkConditions_ == null ? DotaGcmessagesServer.CMsgPoorNetworkConditions.getDefaultInstance() : poorNetworkConditions_;\n } else {\n return poorNetworkConditionsBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "03e642d36b2458eb89e19b4973435358", "score": "0.48551288", "text": "public DotaGcmessagesServer.CMsgPoorNetworkConditions getPoorNetworkConditions() {\n if (poorNetworkConditionsBuilder_ == null) {\n return poorNetworkConditions_ == null ? DotaGcmessagesServer.CMsgPoorNetworkConditions.getDefaultInstance() : poorNetworkConditions_;\n } else {\n return poorNetworkConditionsBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "03e642d36b2458eb89e19b4973435358", "score": "0.4852785", "text": "public DotaGcmessagesServer.CMsgPoorNetworkConditions getPoorNetworkConditions() {\n if (poorNetworkConditionsBuilder_ == null) {\n return poorNetworkConditions_ == null ? DotaGcmessagesServer.CMsgPoorNetworkConditions.getDefaultInstance() : poorNetworkConditions_;\n } else {\n return poorNetworkConditionsBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "81a8ceec52c621b390093388d742ad9a", "score": "0.48452863", "text": "public int[] getNumberOfConditions() {\r\n return File_numberOfConditions;\r\n }", "title": "" }, { "docid": "989b3c5593e55f20de4d03dbc2705bb4", "score": "0.4831152", "text": "@java.lang.Override\n public TfProtoDefMessages.CMsgQuestMapNodeConditionOrBuilder getConditionOrBuilder() {\n return condition_ == null ? TfProtoDefMessages.CMsgQuestMapNodeCondition.getDefaultInstance() : condition_;\n }", "title": "" } ]
fe18763e37c518c1a9cb1bf2c0970616
Reports broker "wall" time in nanoseconds for the fastest parallel merge sequence partition to be 'initialized', where 'initialized' is time to the first result batch is populated from data servers and merging can begin. Similar to query 'time to first byte' metrics, except is a composite of the whole group of data servers which are present in the merge partition, which all must supply an initial result batch before merging can actually begin.
[ { "docid": "46b20df7778e36bf978f1d3984bd2ba5", "score": "0.6060555", "text": "QueryMetrics<QueryType> reportParallelMergeFastestPartitionTime(long timeNs);", "title": "" } ]
[ { "docid": "b8be29d0a4a2d960b1a1ba0a936c76d6", "score": "0.59270084", "text": "QueryMetrics<QueryType> reportParallelMergeTotalTime(long timeNs);", "title": "" }, { "docid": "96b307528b070d201e2b63d111e8a4c9", "score": "0.59259856", "text": "QueryMetrics<QueryType> reportParallelMergeSlowestPartitionTime(long timeNs);", "title": "" }, { "docid": "9a6a56b90b9b3c666c459bb8fd11f47d", "score": "0.56577104", "text": "QueryMetrics<QueryType> reportParallelMergeTotalCpuTime(long timeNs);", "title": "" }, { "docid": "fb6013b70b773b8dd531bd9ab019cead", "score": "0.5561793", "text": "public double getTimePerMerge() {\n \t\tif(getElapsedTime() > 0){\n \t\t\tdouble timePerMerge = (double) getCycleCount() / (double) getElapsedTime();\n \t\t\treturn timePerMerge;\n \t\t}\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "fe8464b379730e276a639e74e5cd0579", "score": "0.525724", "text": "public void initializationComplete() {\n LOGGER.info(\"CPE Initialization complete\");\n mInitCompleteTime = System.currentTimeMillis();\n long mBatchTime = System.currentTimeMillis();\n }", "title": "" }, { "docid": "4607ffffcb4d43aeaa34f196df147e66", "score": "0.52415335", "text": "private void master_initialize2() {\n\t\t\tLOG.info(\"Running master_state initialize2\");\n\t\t\tsetAggregatedValue(\"current_state\", new IntWritable(master_state));\n\t\t\tK = (int) getTotalNumVertices();\n\t\t\tmaster_state_nxt = OUTERLOOP;\n\t\t\tmaster_should_start_workers = true;\n\t\t}", "title": "" }, { "docid": "6043e357d14890f9e4504d470ec42b28", "score": "0.5133755", "text": "public void initialize() {\r\n\t\t_initialTimeMillis = System.currentTimeMillis();\r\n }", "title": "" }, { "docid": "51249f03086a8a69cd71d227dbcd0812", "score": "0.50696796", "text": "private static void mini_stat()\r\n\t{\r\n\t\ttime = (end-start)*1.0/1000000.0;\r\n\t\ttime_sort = (endTime2 - start)*1.0/1000000.0;\r\n\t\ttime_rank = (end - endTime2)*1.0/1000000.0;\r\n\t\tcomparison = comparison_sort + comparison_rank;\r\n\t}", "title": "" }, { "docid": "0299a9b2f5459b42b48456035149c070", "score": "0.49928877", "text": "public int calculateInitialTime() throws Exception {\n\t\treturn this.calculateC() - this.operation.getOperationIndex().getProcessingTime();\n\t}", "title": "" }, { "docid": "ce26a975187a34614a2013c1cdb4cc9d", "score": "0.48486277", "text": "public long emptyRuntime() {\r\n\t\tlong before = System.nanoTime();\r\n\t\tpufferLinkedList.empty();\r\n//\t\tSystem.out.println(\"Empty: \" + (System.nanoTime() - before) + \" ms\");\r\n\t\treturn System.nanoTime() - before;\r\n\t}", "title": "" }, { "docid": "2f11551527a640e1f2355dfda59932d1", "score": "0.4819453", "text": "public void initialize() {\n\t\tlastUpdateTimestamp = System.currentTimeMillis();\n\t\tobjectCount = 0;\n\t\tobjectsPerSecond = 0;\n\t\t\n\t\tinitialized = true;\n\t}", "title": "" }, { "docid": "1fbfefe148048ac40cb437500bac732a", "score": "0.4758463", "text": "void initializeStatistics() {\n\t\tSet<Integer> numberOfPartitionsToCalculate;\n\t\ttry {\n\t\t\tnumberOfPartitionsToCalculate = getNumberOfPartitionsToCalculate();\n\t\t} catch (Exception e) {\n\t\t\tlog.warn(\"Could not get number of partitions to calculate, unable to initialize persisted instance id statistics\", e);\n\t\t\treturn;\n\t\t}\n\t\tgetCollectionsWithPersistInstanceIdEnabled().forEach(collectionName -> {\n\t\t\ttry {\n\t\t\t\tPersistedInstanceIdStatistics statistics = getStatisticsForCollection(collectionName);\n\t\t\t\tnumberOfPartitionsToCalculate.stream()\n\t\t\t\t\t\t.filter(numberOfPartitions -> spaceMirror.getDocumentDb().getCollection(collectionName).getIndexes().anyMatch(isIndexForNumberOfPartitions(numberOfPartitions)))\n\t\t\t\t\t\t.forEach(statistics::addReadyForNumberOfPartitions);\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.warn(\"Unable to initialize persisted instance id statistics for collection {}\", collectionName, e);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "ba1e1b4813a7bdd1e0875d19daf8610b", "score": "0.4734066", "text": "protected void initialize() {\n startTime = System.currentTimeMillis();\n }", "title": "" }, { "docid": "54ef106969a863b283a34c9ab4657e15", "score": "0.47338292", "text": "private void master_initialize1() {\n\t\t\tLOG.info(\"Running master_state initialize1\");\n\t\t\tsetAggregatedValue(\"current_state\", new IntWritable(master_state));\n\t\t\tk = 0;\n\t\t\tmaster_state_nxt = INITIALIZE2;\n\t\t\tmaster_should_start_workers = true;\n\t\t}", "title": "" }, { "docid": "6290af045f70eadeb74019015b3ac541", "score": "0.46685824", "text": "@Benchmark\n @Warmup(iterations = 3, time = 1, timeUnit = TimeUnit.SECONDS)\n @Measurement(iterations = 3, time = 1, timeUnit = TimeUnit.SECONDS)\n @Fork(1)\n public void baseline() {\n }", "title": "" }, { "docid": "ca8d183b5b10c5a305ea4a8f5ae2ed37", "score": "0.4609981", "text": "@Override\n\tpublic void init() {\n\t\tthis.m_startTime = System.currentTimeMillis();\t\t\n\t}", "title": "" }, { "docid": "293775d663556bb5621705438426db8a", "score": "0.4591642", "text": "final private void testBegin() {\n timeAtStart = System.currentTimeMillis();\n }", "title": "" }, { "docid": "40cf53ba02ce11a4a2b385bd43ac7b20", "score": "0.45860603", "text": "public void generateInitialSolution2(){\n int array[] = new int[numberOfJobs];\r\n for(int i = 0 ; i < numberOfJobs ; i ++ ){\r\n array[i] = processingTime[i];\r\n }\r\n sortSequence(array);\r\n }", "title": "" }, { "docid": "dde980016e395b150c9ee293931a92a3", "score": "0.4571387", "text": "public void markNsBlockTimerMerge() throws JNCException {\n markLeafMerge(\"nsBlockTimer\");\n }", "title": "" }, { "docid": "69d88ddb22246d5299f5dfcd5bb0c1eb", "score": "0.45664725", "text": "private void startStatistics() {\n comparisons = 0;\n }", "title": "" }, { "docid": "8acb901eef37be4b606a686c1c455eaf", "score": "0.45535547", "text": "@Override\n public void initialize() {\n startTime = Timer.getFPGATimestamp();\n }", "title": "" }, { "docid": "bde54738bf4ae9e664fcb3ad1694ed63", "score": "0.4539446", "text": "protected void init()\n {\n this.timeProbationEnds = NULL_TIME;\n this.timeForWakeup = NULL_TIME;\n this.currentFactorScale = INITIAL_FACTOR_SCALE;\n this.probationWindowMillis = DEFAULT_RESET_WINDOW_SEC * MILLIS_PER_SECOND;\n this.isActive = true;\n \n this.externalLoggers = new Vector<Logger>();\n \n checkOverrides();\n }", "title": "" }, { "docid": "10447aa72831853cdd9f80421202b06a", "score": "0.45150426", "text": "public int getComputationTime();", "title": "" }, { "docid": "54c119468c8651e1f71fa6308d4f84cb", "score": "0.45090774", "text": "public long getInitialCpuTime() {\n\n return pInitialCpuTime;\n }", "title": "" }, { "docid": "c86b209accea3ca4536239ef2a210b88", "score": "0.45076942", "text": "private void initializetimeTCounter(){//resets the two counter arrays to 0 with nested loops\n\t\tfor(int a = 0; a < timeTCounter.length; a++){\n\t\t\tfor(int b = 0; b < timeTCounter[0].length; b++){\n\t\t\t\tfor(int c = 0; c < timeTCounter[0][0].length; c++){\n\t\t\t\t\tfor(int d = 0; d < timeTCounter[0][0][0].length; d++){\n\t\t\t\t\t\ttimeTCounter[a][b][c][d] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "6b18055af80a0186b4d9771286c746be", "score": "0.45072466", "text": "private void initializeDeductedBusyIntervals()\n {\n for (BusyInterval thisBusyInterval : busyIntervalContainer.getBusyIntervals())\n {\n deductedBusyIntervals.put(thisBusyInterval, thisBusyInterval.getIntervalNs());\n }\n }", "title": "" }, { "docid": "7745616edd3e5eb61090a7be2c0ffaf3", "score": "0.44983938", "text": "protected void initialize() {\n \tstartTime = Timer.getFPGATimestamp();\n }", "title": "" }, { "docid": "c719e89df8ddcca50f5b7c65ff851043", "score": "0.44821587", "text": "public static void Problem1MergeBU()\n\t{\n\t\tdouble start = System.currentTimeMillis();\n\t\tdouble finish = System.currentTimeMillis();\n\t\tsize = 1000000;\n\t\trandom = 1000;\n\t\tdouble totalTime = 0;\n\t\tdouble averageTime = 0;\n\t\tdouble compareTotal=0;\n\t\tdouble compareAverage=0;\n\t\t// create array\n\t\tarr = new int[size];\n\t\tarrCopy = new int[size];\n\t\tarrCopy2 = new int[size];\n\t\tSystem.out.println(\"\\nBottom-Up MergeSort\\nTesting 100 instances of 1,000,000 integers from 1-1000\");\n\t\t//Bottom up Merge sort\n\t\tfor(int k= 0;k<100;k++)\n\t\t{\n\t\t\tcomparisonsCount=0;\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t{\n\t\t\t\tarr[i] = arrCopy[i] = randomGenerator.nextInt(random);\n\t\t\t}\n\t\t\tstart = finish;\n\t\t\tmergesortBU(arr);\n\t\t\tfinish = System.currentTimeMillis();\n\t\t\tdouble time= (finish-start);\n\t\t\ttotalTime=totalTime+time;\n\t\t\tcompareTotal= compareTotal+comparisonsCount;\n\t\t}\n\t\taverageTime = totalTime/100;\n\t\tcompareAverage = compareTotal/100;\n\t\tSystem.out.printf(\"Average Sort Time: %.2f ms\\nAverage Comparisons: %.2f \\n\",averageTime,compareAverage);\n\t\t//Case 2 Range 1\n\t\tsize = 2000000;\n\t\trandom = 1000;\n\t\ttotalTime = 0;\n\t\taverageTime = 0;\n\t\tcompareTotal=0;\n\t\tcompareAverage=0;\n\t\t// create array\n\t\tarr = new int[size];\n\t\tarrCopy = new int[size];\n\t\tarrCopy2 = new int[size];\n\t\tSystem.out.println(\"\\nTesting 100 instances of 2,000,000 integers from 1-1000\");\n\t\t//Bottom up Merge sort\n\t\tfor(int k= 0;k<100;k++)\n\t\t{\n\t\t\tcomparisonsCount=0;\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t{\n\t\t\t\tarr[i] = arrCopy[i] = randomGenerator.nextInt(random);\n\t\t\t}\n\t\t\tstart = finish;\n\t\t\tmergesortBU(arr);\n\t\t\tfinish = System.currentTimeMillis();\n\t\t\tdouble time= (finish-start);\n\t\t\ttotalTime=totalTime+time;\n\t\t\tcompareTotal= compareTotal+comparisonsCount;\n\t\t}\n\t\taverageTime = totalTime/100;\n\t\tcompareAverage = compareTotal/100;\n\t\tSystem.out.printf(\"Average Sort Time: %.2f ms\\nAverage Comparisons: %.2f \\n\",averageTime,compareAverage);\n\t\t//Case 3 Range 1\n\t\tsize = 4000000;\n\t\trandom = 1000;\n\t\ttotalTime = 0;\n\t\taverageTime = 0;\n\t\tcompareTotal=0;\n\t\tcompareAverage=0;\n\t\t// create array\n\t\tarr = new int[size];\n\t\tarrCopy = new int[size];\n\t\tarrCopy2 = new int[size];\n\t\tSystem.out.println(\"\\nTesting 100 instances of 4,000,000 integers from 1-1000\");\n\t\t//Bottom up Merge sort\n\t\tfor(int k= 0;k<100;k++)\n\t\t{\n\t\t\tcomparisonsCount=0;\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t{\n\t\t\t\tarr[i] = arrCopy[i] = randomGenerator.nextInt(random);\n\t\t\t}\n\t\t\tstart = finish;\n\t\t\tmergesortBU(arr);\n\t\t\tfinish = System.currentTimeMillis();\n\t\t\tdouble time= (finish-start);\n\t\t\ttotalTime=totalTime+time;\n\t\t\tcompareTotal= compareTotal+comparisonsCount;\n\t\t}\n\t\taverageTime = totalTime/100;\n\t\tcompareAverage = compareTotal/100;\n\t\tSystem.out.printf(\"Average Sort Time: %.2f ms\\nAverage Comparisons: %.2f \\n\",averageTime,compareAverage);\n\t\t//Case 1 Range 2\n\t\tsize = 1000000;\n\t\trandom = 1000000;\n\t\ttotalTime = 0;\n\t\taverageTime = 0;\n\t\tcompareTotal=0;\n\t\tcompareAverage=0;\n\t\t// create array\n\t\tarr = new int[size];\n\t\tarrCopy = new int[size];\n\t\tarrCopy2 = new int[size];\n\t\tSystem.out.println(\"\\nTesting 100 instances of 1,000,000 integers from 1-1,000,000\");\n\t\t//Bottom up Merge sort\n\t\tfor(int k= 0;k<100;k++)\n\t\t{\n\t\t\tcomparisonsCount=0;\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t{\n\t\t\t\tarr[i] = arrCopy[i] = randomGenerator.nextInt(random);\n\t\t\t}\n\t\t\tstart = finish;\n\t\t\tmergesortBU(arr);\n\t\t\tfinish = System.currentTimeMillis();\n\t\t\tdouble time= (finish-start);\n\t\t\ttotalTime=totalTime+time;\n\t\t\tcompareTotal= compareTotal+comparisonsCount;\n\t\t}\n\t\taverageTime = totalTime/100;\n\t\tcompareAverage = compareTotal/100;\n\t\tSystem.out.printf(\"Average Sort Time: %.2f ms\\nAverage Comparisons: %.2f\\n\",averageTime,compareAverage);\n\t\t//Case 2 Range 2\n\t\tsize = 2000000;\n\t\trandom = 1000000;\n\t\ttotalTime = 0;\n\t\taverageTime = 0;\n\t\tcompareTotal=0;\n\t\tcompareAverage=0;\n\t\t// create array\n\t\tarr = new int[size];\n\t\tarrCopy = new int[size];\n\t\tarrCopy2 = new int[size];\n\t\tSystem.out.println(\"\\nTesting 100 instances of 2,000,000 integers from 1-1,000,000\");\n\t\t//Bottom up Merge sort\n\t\tfor(int k= 0;k<100;k++)\n\t\t{\n\t\t\tcomparisonsCount=0;\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t{\n\t\t\t\tarr[i] = arrCopy[i] = randomGenerator.nextInt(random);\n\t\t\t}\n\t\t\tstart = finish;\n\t\t\tmergesortBU(arr);\n\t\t\tfinish = System.currentTimeMillis();\n\t\t\tdouble time= (finish-start);\n\t\t\ttotalTime=totalTime+time;\n\t\t\tcompareTotal= compareTotal+comparisonsCount;\n\t\t}\n\t\taverageTime = totalTime/100;\n\t\tcompareAverage = compareTotal/100;\n\t\tSystem.out.printf(\"Average Sort Time: %.2f ms\\nAverage Comparisons: %.2f\\n\",averageTime,compareAverage);\n\t\t//Case 3 Range 2\n\t\tsize = 4000000;\n\t\trandom = 1000000;\n\t\ttotalTime = 0;\n\t\taverageTime = 0;\n\t\tcompareTotal=0;\n\t\tcompareAverage=0;\n\t\t// create array\n\t\tarr = new int[size];\n\t\tarrCopy = new int[size];\n\t\tarrCopy2 = new int[size];\n\t\tSystem.out.println(\"\\nTesting 100 instances of 4,000,000 integers from 1-1,000,000\");\n\t\t//Bottom up Merge sort\n\t\tfor(int k= 0;k<100;k++)\n\t\t{\n\t\t\tcomparisonsCount=0;\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t{\n\t\t\t\tarr[i] = arrCopy[i] = randomGenerator.nextInt(random);\n\t\t\t}\n\t\t\tstart = finish;\n\t\t\tmergesortBU(arr);\n\t\t\tfinish = System.currentTimeMillis();\n\t\t\tdouble time= (finish-start);\n\t\t\ttotalTime=totalTime+time;\n\t\t\tcompareTotal= compareTotal+comparisonsCount;\n\t\t}\n\t\taverageTime = totalTime/100;\n\t\tcompareAverage = compareTotal/100;\n\t\tSystem.out.printf(\"Average Sort Time: %.2f ms\\nAverage Comparisons: %.2f \\n\",averageTime,compareAverage);\n\t}", "title": "" }, { "docid": "4dcaab0e262a7a7c45a5ce322bb29d05", "score": "0.44708076", "text": "@Override\n\tpublic void onMerge(TimeWindow window,\n\t\t\tOnMergeContext ctx) {\n\t\tlong windowMaxTimestamp = window.maxTimestamp();\n\t\tif (windowMaxTimestamp > ctx.getCurrentProcessingTime()) {\n\t\t\tctx.registerProcessingTimeTimer(windowMaxTimestamp);\n\t\t}\n\t}", "title": "" }, { "docid": "a4e80bf3fee3ed04b0b85a9824a932a1", "score": "0.44656336", "text": "public List<MonitorRecord> buildBrokerJVMState(JVMStat jvmStat, String brokerId, long timestampMs) {\n MonitorRecord jvmRecord = new MonitorRecord();\n fillRecord(jvmRecord, timestampMs);\n // not current broker id\n jvmRecord.brokerId(brokerId);\n String[] jvmMetrics = {BROKER_SLICE_HEAP_INIT, BROKER_SLICE_HEAP_USED, BROKER_SLICE_HEAP_COMMITTED,\n BROKER_SLICE_HEAP_MAX, BROKER_SLICE_NON_HEAP_INIT, BROKER_SLICE_NON_HEAP_USED,\n BROKER_SLICE_NON_HEAP_COMMITTED, BROKER_SLICE_NON_HEAP_MAX,\n BROKER_SLICE_DIRECT_BUFFER_SIZE, BROKER_SLICE_YOUNG_GC_TIMES,\n BROKER_SLICE_YOUNG_GC_ELAPSED, BROKER_SLICE_OLD_GC_TIMES, BROKER_SLICE_OLD_GC_ELAPSED};\n // create a record for all metrics\n List<MonitorRecord> jvmMonitorRecords = buildEmptyRecords(jvmRecord, jvmMetrics);\n MemoryStat memoryState = jvmStat.getMemoryStat();\n if (memoryState == null) {\n return Lists.newLinkedList();\n }\n jvmMonitorRecords.get(0).setValue(memoryState.getHeapInit());\n jvmMonitorRecords.get(1).setValue(memoryState.getHeapUsed());\n jvmMonitorRecords.get(2).setValue(memoryState.getHeapCommitted());\n jvmMonitorRecords.get(3).setValue(memoryState.getHeapMax());\n\n jvmMonitorRecords.get(4).setValue(memoryState.getNonHeapInit());\n jvmMonitorRecords.get(5).setValue(memoryState.getNonHeapUsed());\n jvmMonitorRecords.get(6).setValue(memoryState.getNonHeapCommitted());\n jvmMonitorRecords.get(7).setValue(memoryState.getNonHeapMax());\n\n jvmMonitorRecords.get(8).setValue(memoryState.getDirectBufferSize());\n\n // old gc total elapsed time\n jvmMonitorRecords.get(9).setValue(jvmStat.getOldGcTimes().getCount());\n Snapshot oldSnapshot = jvmStat.getOldGcTimes().getSnapshot();\n jvmMonitorRecords.get(10).setValue(oldSnapshot.getMean() * oldSnapshot.size());\n\n // eden gc count and total elapsed time\n Snapshot edenSnapshot = jvmStat.getEdenGcTimes().getSnapshot();\n jvmMonitorRecords.get(11).setValue(jvmStat.getEdenGcTimes().getCount());\n jvmMonitorRecords.get(12).setValue(edenSnapshot.getMean() * edenSnapshot.size());\n return jvmMonitorRecords;\n }", "title": "" }, { "docid": "ceca7407b375dec343c533091500c45b", "score": "0.44561923", "text": "private void objComputeinitial(Case project2) {\n\t\tList<Task> tasks = project.getTasks();\n\t\tList<Integer> maxtime = new ArrayList<>();\n\t\tList<List<Integer>> finishTimes=new ArrayList<>();\n\t\tfor(int i=0;i<reslist.size();i++) {\n\t\t\tfinishTimes.add(reslist.get(i).getFinishTime());\n\t\t}\n\t\tmaxtime=Tools.computeMaxTime(finishTimes);\n\t\tthis.obj=maxtime;\n\t\t\n\t}", "title": "" }, { "docid": "844b5450343e5bba6479b072271e3ae1", "score": "0.44493002", "text": "private void updateAggregateStats() {\n for (Partitioner part : partitioner.getPartitioners() ) {\n for (PartitionOutgoingBatch o : part.getOutgoingBatches()) {\n long totalRecords = o.getTotalRecords();\n minReceiverRecordCount = Math.min(minReceiverRecordCount, totalRecords);\n maxReceiverRecordCount = Math.max(maxReceiverRecordCount, totalRecords);\n }\n }\n stats.setLongStat(Metric.MIN_RECORDS, minReceiverRecordCount);\n stats.setLongStat(Metric.MAX_RECORDS, maxReceiverRecordCount);\n }", "title": "" }, { "docid": "d3a3bb38e3908f12393d1f2fbd0d4ce5", "score": "0.4442652", "text": "@Override\n\tpublic Long reduceInit() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e2032dce8144c6e0132b8ce82841f5d8", "score": "0.44407654", "text": "private static void initStart() {\n\t\t\tif (initCount >= 0) {\n\t\t\t\tinitCount++;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "74aae4f7e3e4e303922d6aaf11a88627", "score": "0.44382942", "text": "public static void stabilizeStaleBeginPhasePoints() {\n\t\tif (Program.concurrencyAlgorithm == Program.ConcurrencyAlgorithm.YCON) {\n\t\t\tThread.dumpStack();\n\t\t\tassert (false) : \"Unexpected path.\";\n\t\t\treturn;\n\t\t}\n\t\t/*\n\t\t * Check whether stabilization is needed.\n\t\t */\n\t\tif (BeginPhasePoint.staleBeginPhasePoints.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\t/*\n\t\t * Ensure that this method doesn't call itself recursively.\n\t\t */\n\t\tif (BeginPhasePoint.stabilizationInProgress) {\n\t\t\treturn;\n\t\t} else {\n\t\t\t/*\n\t\t\t * Initialize the stabilization process.\n\t\t\t */\n\t\t\tBeginPhasePoint.stabilizationInProgress = true;\n\t\t}\n\t\t/********* Start the stabilization process ***********/\n\t\tlong timer = System.nanoTime();\n\t\tAutomatedUpdater.reinitMHPCounter++;\n\t\tSet<BeginPhasePoint> stabilizedBPPs = new HashSet<>();\n\t\t/*\n\t\t * Step 1: Collect all affected parallel constructs (PCs).\n\t\t * Ignore all those PCs that are disconnected.\n\t\t */\n\t\tSet<ParallelConstruct> affectedParCons = new HashSet<>();\n\t\tfor (BeginPhasePoint staleBPP : staleBeginPhasePoints) {\n\t\t\tfor (Phase ph : staleBPP.phaseSet) {\n\t\t\t\tParallelConstruct pc = ph.getParConstruct();\n\t\t\t\tif (affectedParCons.contains(pc)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (pc.getInfo().isConnectedToProgram()) {\n\t\t\t\t\tif (pc.getInfo().getFirstPhase() != null) {\n\t\t\t\t\t\taffectedParCons.add(pc);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Stabilize MHP of each affected PC.\n\t\tfor (ParallelConstruct pc : affectedParCons) {\n\t\t\t/*\n\t\t\t * Step 2: Cache the list of connected phases of pc.\n\t\t\t */\n\t\t\tSet<Phase> staleConnectedSet = new HashSet<Phase>((Collection<Phase>) pc.getInfo().getConnectedPhases());\n\t\t\t/*\n\t\t\t * Stabilize each phase, starting with the first phase of PC.\n\t\t\t */\n\t\t\tPhase firstPhase = (Phase) pc.getInfo().getFirstPhase();\n\t\t\tassert (firstPhase != null) : \"Why could we not find MHP info for : \" + pc + \" \\n that is present as \"\n\t\t\t\t\t+ pc.getInfo().getDebugString() + \"\\n?\";\n\t\t\tfirstPhase.stabilizeThisPhase(new HashSet<>(), BeginPhasePoint.staleBeginPhasePoints, stabilizedBPPs,\n\t\t\t\t\tfirstPhase);\n\n\t\t\t/*\n\t\t\t * Obtain the list of new connected phases of pc.\n\t\t\t */\n\t\t\tSet<Phase> freshConnectedSet = new HashSet<Phase>((Collection<Phase>) pc.getInfo().getConnectedPhases());\n\n\t\t\t/*\n\t\t\t * Remove the effects of all the stale phases from\n\t\t\t * staleConnectedSet.\n\t\t\t */\n\t\t\tfor (Phase oldPh : staleConnectedSet) {\n\t\t\t\tif (!freshConnectedSet.contains(oldPh)) {\n\t\t\t\t\toldPh.flushMHPData();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/********* Wrap-up the stabilization process ***********/\n\t\t/*\n\t\t * As the last step, clear the set of stale BPPs, and processed BPPs.\n\t\t * Reset the stabilizationInProgress flag.\n\t\t */\n\t\t// BeginPhasePoint.staleBeginPhasePoints.removeAll(stabilizedBPPs);\n\t\tBeginPhasePoint.staleBeginPhasePoints.clear();\n\t\tBeginPhasePoint.stabilizationInProgress = false;\n\t\tBeginPhasePoint.phaseAnalysisTime += (System.nanoTime() - timer);\n\t\t// DumpSnapshot.dumpPhases(\"stable\" + Program.mhpUpdateCategory +\n\t\t// AutomatedUpdater.reinitMHPCounter);\n\t}", "title": "" }, { "docid": "010cdfe3b81779ad0f514ccb8d4b01f3", "score": "0.4437008", "text": "@Test(timeout=80000)\n public void testParallelOps() throws Exception {\n hiveConf.setInt(MetastoreConf.ConfVars.STATS_AUTO_UPDATE_WORKER_COUNT.getVarname(), 4);\n StatsUpdaterThread su = createUpdater();\n IMetaStoreClient msClient = new HiveMetaStoreClient(hiveConf);\n hiveConf.setBoolVar(HiveConf.ConfVars.HIVESTATSAUTOGATHER, false);\n hiveConf.setBoolVar(HiveConf.ConfVars.HIVESTATSCOLAUTOGATHER, false);\n executeQuery(\"create table simple_stats (s string)\");\n executeQuery(\"create table simple_stats2 (s string) partitioned by (i int)\");\n executeQuery(\"create table simple_stats3 (s string) partitioned by (i int)\");\n executeQuery(\"insert into simple_stats values ('test')\");\n executeQuery(\"insert into simple_stats2 partition(i=0) values ('test')\");\n executeQuery(\"insert into simple_stats3 partition(i=0) values ('test')\");\n hiveConf.setBoolVar(HiveConf.ConfVars.HIVESTATSAUTOGATHER, true);\n hiveConf.setBoolVar(HiveConf.ConfVars.HIVESTATSCOLAUTOGATHER, true);\n executeQuery(\"insert into simple_stats3 partition(i=1) values ('test')\");\n\n assertTrue(su.runOneIteration());\n assertEquals(3, su.getQueueLength());\n // Nothing updated yet.\n verifyStatsUpToDate(\"simple_stats\", Lists.newArrayList(\"s\"), msClient, false);\n verifyPartStatsUpToDate(1, 0, msClient, \"simple_stats2\", false);\n verifyStatsUpToDate(\"simple_stats3\", \"i=0\", Lists.newArrayList(\"s\"), msClient, false);\n verifyStatsUpToDate(\"simple_stats3\", \"i=1\", Lists.newArrayList(\"s\"), msClient, true);\n\n assertFalse(su.runOneIteration());\n assertEquals(3, su.getQueueLength()); // Nothing new added to the queue while analyze runs.\n\n // Add another partition without stats.\n hiveConf.setBoolVar(HiveConf.ConfVars.HIVESTATSAUTOGATHER, false);\n hiveConf.setBoolVar(HiveConf.ConfVars.HIVESTATSCOLAUTOGATHER, false);\n executeQuery(\"insert into simple_stats3 partition(i=2) values ('test')\");\n\n assertTrue(su.runOneIteration());\n assertEquals(4, su.getQueueLength()); // An item for new partition is queued now.\n\n drainWorkQueue(su, 4);\n\n verifyStatsUpToDate(\"simple_stats\", Lists.newArrayList(\"s\"), msClient, true);\n verifyPartStatsUpToDate(1, 0, msClient, \"simple_stats2\", true);\n verifyPartStatsUpToDate(3, 0, msClient, \"simple_stats3\", true);\n\n assertFalse(su.runOneIteration());\n drainWorkQueue(su, 0); // Nothing else is updated after the first update.\n\n msClient.close();\n }", "title": "" }, { "docid": "2a7affe6eee15607e80690dfaab94ed9", "score": "0.44331983", "text": "@Test\n public void partitionLevelAdaptiveTrackerTest() throws Exception {\n MockPartitionId mockPartition1 = new MockPartitionId(0L, MockClusterMap.DEFAULT_PARTITION_CLASS);\n MockPartitionId mockPartition2 = new MockPartitionId(1L, MockClusterMap.DEFAULT_PARTITION_CLASS);\n for (int i = 0; i < REPLICA_COUNT; i++) {\n mockPartition1.replicaIds.add(new MockReplicaId(PORT, mockPartition1, datanodes.get(i % datanodes.size()), 1));\n mockPartition2.replicaIds.add(new MockReplicaId(PORT, mockPartition2, datanodes.get(i % datanodes.size()), 2));\n }\n MockClusterMap clusterMap =\n new MockClusterMap(false, datanodes, 3, Arrays.asList(mockPartition1, mockPartition2), localDcName);\n trackerScope = OperationTrackerScope.Partition;\n RouterConfig routerConfig = createRouterConfig(true, 2, 1, 6, null, true);\n NonBlockingRouterMetrics originalMetrics = routerMetrics;\n routerMetrics = new NonBlockingRouterMetrics(clusterMap, routerConfig);\n Counter pastDueCount = routerMetrics.getBlobPastDueCount;\n Map<Resource, CachedHistogram> localColoMap = routerMetrics.getBlobLocalDcResourceToLatency;\n Map<Resource, CachedHistogram> crossColoMap = routerMetrics.getBlobCrossDcResourceToLatency;\n // mock different distribution of Histogram for two partitions\n Histogram localHistogram1 = localColoMap.get(mockPartition1);\n Histogram localHistogram2 = localColoMap.get(mockPartition2);\n Histogram remoteHistogram1 = crossColoMap.get(mockPartition1);\n primeTracker(localHistogram1, routerConfig.routerOperationTrackerMinDataPointsRequired, new Pair<>(0L, 50L));\n primeTracker(localHistogram2, routerConfig.routerOperationTrackerMinDataPointsRequired, new Pair<>(100L, 120L));\n primeTracker(remoteHistogram1, routerConfig.routerOperationTrackerMinDataPointsRequired, new Pair<>(150L, 180L));\n OperationTracker tracker1 = getOperationTracker(routerConfig, mockPartition1);\n OperationTracker tracker2 = getOperationTracker(routerConfig, mockPartition2);\n double localColoCutoff1 = localHistogram1.getSnapshot().getValue(QUANTILE);\n double localColoCutoff2 = localHistogram2.getSnapshot().getValue(QUANTILE);\n double crossColoCutoff1 = remoteHistogram1.getSnapshot().getValue(QUANTILE);\n sendRequests(tracker2, 1);\n sendRequests(tracker1, 1);\n // partition1: 2-1-0-0, partition2: 2-1-0-0\n\n time.sleep((long) localColoCutoff1 + 1);\n // partition1 should send 2nd request, partition2 won't because its 1st request isn't past due.\n sendRequests(tracker1, 1);\n sendRequests(tracker2, 0);\n // partition1: 1-2-0-0, partition2: 2-1-0-0\n\n time.sleep((long) (localColoCutoff2 - localColoCutoff1) + 2);\n // note that localColoCutoff2 > 2 * localColoCutoff1, then 2nd request of partition1 and 1st request of partition are both past due\n sendRequests(tracker1, 1);\n sendRequests(tracker2, 1);\n // partition1: 0-3-0-0, partition2: 1-2-0-0\n\n time.sleep((long) localColoCutoff1 + 1);\n // 3rd local request of partition1 is past due and starts sending 1st cross-colo request\n sendRequests(tracker1, 1);\n sendRequests(tracker2, 0);\n // partition1: 0-3-0-0(local), 2-1-0-0(remote); partition2: 1-2-0-0(local)\n\n time.sleep((long) crossColoCutoff1 + 1);\n // 1st cross-colo request of partition1 is past due and 2nd local request of partition2 is past due.\n sendRequests(tracker1, 1);\n sendRequests(tracker2, 1);\n // partition1: 0-3-0-0(local), 1-2-0-0(remote); partition2: 0-3-0-0(local)\n\n // generate response for each request to make them successful\n for (int i = 0; i < 2; ++i) {\n assertFalse(\"Operation should not be done\", tracker1.isDone() || tracker2.isDone());\n tracker1.onResponse(partitionAndInflightReplicas.get(mockPartition1).poll(), TrackedRequestFinalState.SUCCESS);\n tracker2.onResponse(partitionAndInflightReplicas.get(mockPartition2).poll(), TrackedRequestFinalState.SUCCESS);\n }\n assertTrue(\"Operation should have succeeded\", tracker1.hasSucceeded() && tracker2.hasSucceeded());\n assertEquals(\"Past due counter is not expected\", 4 + 2, pastDueCount.getCount());\n // complete remaining inflight requests and test different final state of request\n LinkedList<ReplicaId> inflightRequests1 = partitionAndInflightReplicas.get(mockPartition1);\n LinkedList<ReplicaId> inflightRequests2 = partitionAndInflightReplicas.get(mockPartition2);\n while (!inflightRequests1.isEmpty()) {\n tracker1.onResponse(inflightRequests1.poll(), TrackedRequestFinalState.FAILURE);\n }\n while (!inflightRequests2.isEmpty()) {\n tracker2.onResponse(inflightRequests2.poll(), TrackedRequestFinalState.TIMED_OUT);\n }\n // The number of data points in local colo histogram should be 5 (3 from partition1, 2 from partition2). Note that,\n // 3rd request of partition2 timed out which shouldn't be added to histogram.\n assertEquals(\"Mismatch in number of data points in local colo histogram\", 5,\n routerMetrics.getBlobLocalDcLatencyMs.getCount());\n // The number of data points in cross colo histogram should be 2 (both of them come from partition1)\n assertEquals(\"Mismatch in number of data points in cross colo histogram\", 2,\n routerMetrics.getBlobCrossDcLatencyMs.getCount());\n\n // additional test: mock new partition is dynamically added and adaptive operation track should be able to create\n // histogram on demand.\n MockPartitionId mockPartition3 = (MockPartitionId) clusterMap.createNewPartition(datanodes);\n OperationTracker tracker3 = getOperationTracker(routerConfig, mockPartition3);\n // send 1st request\n sendRequests(tracker3, 1);\n // attempt to send 2nd request to make tracker check histogram and create a new one associated with this partition\n // the oldest one hasn't passed due (because there are not enough data points in histogram), so 2nd is not sent\n sendRequests(tracker3, 0);\n tracker3.onResponse(partitionAndInflightReplicas.get(mockPartition3).poll(), TrackedRequestFinalState.SUCCESS);\n // now it should be able to send 2nd request\n sendRequests(tracker3, 1);\n tracker3.onResponse(partitionAndInflightReplicas.get(mockPartition3).poll(), TrackedRequestFinalState.SUCCESS);\n assertTrue(\"Operation should have succeeded\", tracker3.hasSucceeded());\n\n // restore the tracer scope and routerMetrics\n trackerScope = OperationTrackerScope.Datacenter;\n routerMetrics = originalMetrics;\n }", "title": "" }, { "docid": "5d9eb008ed299d01412e050b44379a8f", "score": "0.44168615", "text": "public void testReadFromMultipleCompleteCheckpoints() throws Exception {\n partitionMinList = new TreeSet<Integer>();\n initializePartitionCheckpointList();\n String fsUri = fs.getUri().toString();\n\n for (int i = 0; i < 3; i++) {\n Date date = DatabusStreamWaitingReader.getDateFromStreamDir(streamDir,\n databusFiles[i].getParent());\n Calendar current = Calendar.getInstance();\n current.setTime(date);\n partitionMinList.add(current.get(Calendar.MINUTE));\n partitionCheckpointList.set(current.get(Calendar.MINUTE), new\n PartitionCheckpoint(DatabusStreamWaitingReader.getHadoopStreamFile(\n fs.getFileStatus(databusFiles[i])), -1));\n }\n\n PartitionReaderStatsExposer prMetrics = new PartitionReaderStatsExposer(\n testStream, \"c1\", partitionId.toString(), consumerNumber, fsUri);\n Calendar cal = Calendar.getInstance();\n cal.setTime(DatabusStreamWaitingReader.getDateFromStreamDir(streamDir,\n databusFiles[0].getParent()));\n\n preader = new PartitionReader(partitionId, partitionCheckpointList, fs,\n buffer, streamDir, conf, inputFormatClass, null, 1000,\n isDatabusData(), prMetrics, true,partitionMinList, null);\n preader.init();\n /*\n * In general, Partition reader has to start reading once it finds some\n * files and exited from init method. If there are no files to read then\n * reader has to wait until the new files are available. But we are using\n * noNewFiles flag is to avoid continuous looping for test cases. Reader does\n * not wait for the new files creation if we set noNewFiles flag is true..\n */\n if (preader.getCurrentFile() != null) {\n // this code can not be reached as current file always null.\n preader.execute(); \n }\n TestUtil.assertBuffer(DatabusStreamWaitingReader.getHadoopStreamFile(\n fs.getFileStatus(databusFiles[0])), 1, 0, 0, partitionId,\n buffer, isDatabusData(), null);\n\n TestUtil.assertBuffer(DatabusStreamWaitingReader.getHadoopStreamFile(\n fs.getFileStatus(databusFiles[1])), 2, 0, 0, partitionId,\n buffer, isDatabusData(), null);\n TestUtil.assertBuffer(DatabusStreamWaitingReader.getHadoopStreamFile(\n fs.getFileStatus(databusFiles[2])), 3, 0, 0, partitionId,\n buffer, isDatabusData(), null);\n Assert.assertTrue(buffer.isEmpty());\n Assert.assertNotNull(preader.getReader());\n Assert.assertEquals(preader.getReader().getClass().getName(),\n ClusterReader.class.getName());\n Assert.assertEquals(((ClusterReader) preader.getReader())\n .getReader().getClass().getName(),\n DatabusStreamWaitingReader.class.getName());\n Assert.assertEquals(prMetrics.getMessagesReadFromSource(), 0);\n Assert.assertEquals(prMetrics.getMessagesAddedToBuffer(), 0);\n Assert.assertEquals(prMetrics.getWaitTimeUnitsNewFile(), 0);\n }", "title": "" }, { "docid": "ebf18145a7aae4519c3fb508322380c2", "score": "0.44146776", "text": "@Override\n public void run() {\n try {\n podState = lookupState();\n if (podState == STANDBY_POD) {\n // Only copy provisioning data FROM the active server TO the standby\n if (doFetch || (System.currentTimeMillis() >= nextsynctime)) {\n syncProvisioningData();\n logger.info(\"PROV5013: Sync completed.\");\n nextsynctime = System.currentTimeMillis() + ONE_HOUR;\n }\n } else {\n // Don't do fetches on non-standby PODs\n doFetch = false;\n }\n\n // Fetch DR logs as needed - server to server\n LogfileLoader lfl = LogfileLoader.getLoader();\n if (lfl.isIdle()) {\n // Only fetch new logs if the loader is waiting for them.\n logger.trace(\"Checking for logs to replicate...\");\n RLEBitSet local = lfl.getBitSet();\n RLEBitSet remote = readRemoteLoglist();\n remote.andNot(local);\n if (!remote.isEmpty()) {\n logger.debug(\" Replicating logs: \" + remote);\n replicateDataRouterLogs(remote);\n }\n }\n } catch (Exception e) {\n logger.warn(\"PROV0020: Caught exception in SynchronizerTask: \" + e);\n }\n }", "title": "" }, { "docid": "fb2ff323c56c5bf1c3e36e74a81c3942", "score": "0.4402632", "text": "QueryMetrics<QueryType> reportParallelMergeTaskCount(long numTasks);", "title": "" }, { "docid": "b95b35bc34e140b5302a0be5788fe65f", "score": "0.43978977", "text": "@Test\n public void adaptivePartitionsTest() {\n AtomicInteger mockRandom = new AtomicInteger();\n BuiltInPartitioner.mockRandom = () -> mockRandom.getAndAdd(1);\n\n BuiltInPartitioner builtInPartitioner = new BuiltInPartitioner(logContext, TOPIC_A, 1);\n\n // Simulate partition queue sizes.\n int[] queueSizes = {5, 0, 3, 0, 1};\n int[] partitionIds = new int[queueSizes.length];\n int[] expectedFrequencies = new int[queueSizes.length];\n List<PartitionInfo> allPartitions = new ArrayList<>();\n for (int i = 0; i < partitionIds.length; i++) {\n partitionIds[i] = i;\n allPartitions.add(new PartitionInfo(TOPIC_A, i, NODES[i % NODES.length], NODES, NODES));\n expectedFrequencies[i] = 6 - queueSizes[i]; // 6 is max(queueSizes) + 1\n }\n\n builtInPartitioner.updatePartitionLoadStats(queueSizes, partitionIds, queueSizes.length);\n\n Cluster testCluster = new Cluster(\"clusterId\", asList(NODES), allPartitions,\n Collections.emptySet(), Collections.emptySet());\n\n // Issue a certain number of partition calls to validate that the partitions would be\n // distributed with frequencies that are reciprocal to the queue sizes. The number of\n // iterations is defined by the last element of the cumulative frequency table which is\n // the sum of all frequencies. We do 2 cycles, just so it's more than 1.\n final int numberOfCycles = 2;\n int numberOfIterations = builtInPartitioner.loadStatsRangeEnd() * numberOfCycles;\n int[] frequencies = new int[queueSizes.length];\n\n for (int i = 0; i < numberOfIterations; i++) {\n BuiltInPartitioner.StickyPartitionInfo partitionInfo = builtInPartitioner.peekCurrentPartitionInfo(testCluster);\n ++frequencies[partitionInfo.partition()];\n builtInPartitioner.updatePartitionInfo(partitionInfo, 1, testCluster);\n }\n\n // Verify that frequencies are reciprocal of queue sizes.\n for (int i = 0; i < frequencies.length; i++) {\n assertEquals(expectedFrequencies[i] * numberOfCycles, frequencies[i],\n \"Partition \" + i + \" was chosen \" + frequencies[i] + \" times\");\n }\n }", "title": "" }, { "docid": "a625520f7864794b4b85f80d0b18ff3b", "score": "0.4396188", "text": "@Override\n public void autonomousInit(){\n startTime = Timer.getFPGATimestamp();\n }", "title": "" }, { "docid": "cf754c5fe355ce58e686847b7ef12b6a", "score": "0.43930653", "text": "QueryMetrics<QueryType> reportParallelMergeInputSequences(long numSequences);", "title": "" }, { "docid": "6eb2b5e0335132cfd03d749258f1cc38", "score": "0.43846494", "text": "@Test(timeout = 60_000)\n public void test() throws InterruptedException, ExecutionException {\n final String brokerList = ekr.getBroker().getKafkaBrokerConnect();\n\n // Make consumer that will read from broker.\n final Properties props = new Properties();\n props.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, brokerList);\n props.put(ConsumerConfig.GROUP_ID_CONFIG, GROUP_ID);\n props.put(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, true);\n props.put(ConsumerConfig.AUTO_COMMIT_INTERVAL_MS_CONFIG, (int) Duration.ofSeconds(1).toMillis());\n props.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, \"earliest\");\n props.put(ConsumerConfig.SESSION_TIMEOUT_MS_CONFIG, (int) Duration.ofSeconds(60).toMillis());\n final Deserializer<byte[]> deser = Serdes.ByteArray().deserializer();\n\n final Serializer<byte[]> ser = Serdes.ByteArray().serializer();\n\n try (\n KafkaProducer<byte[], byte[]> producer = ekr.getBroker().createProducer(ser, ser);\n KafkaConsumer<byte[], byte[]> consumer = new KafkaConsumer<>(props, deser, deser);\n OffsetMonitor mon1 = new OffsetMonitor(NAMESPACE, brokerList);\n OffsetMonitor mon2 = new OffsetMonitor(NAMESPACE, brokerList)\n ) {\n final List<Future<?>> futures = new ArrayList<>();\n for (int i = 0; i < 10_000; ++i) {\n final byte[] key = RandomStringUtils.randomAlphanumeric(20).getBytes(StandardCharsets.UTF_8);\n final byte[] value = RandomStringUtils.randomAlphanumeric(20).getBytes(StandardCharsets.UTF_8);\n futures.add(producer.send(new ProducerRecord<>(TOPIC_NAME, key, value)));\n }\n for (final Future<?> future : futures) {\n future.get();\n }\n\n Map<Integer, Long> mon1TopicSizes;\n Map<Integer, Long> mon2TopicSizes;\n Map<Integer, Long> mon1GroupOffsets;\n Map<Integer, Long> mon2GroupOffsets;\n\n // Wait for offset record to fill.\n consumer.subscribe(Collections.singleton(TOPIC_NAME));\n while (true) {\n LOG.info(\"consumed {} records\", consumer.poll(Duration.ofSeconds(1)).count());\n\n mon1TopicSizes = mon1.getTopicSizes(TOPIC_NAME);\n mon2TopicSizes = mon2.getTopicSizes(TOPIC_NAME);\n mon1GroupOffsets = mon1.getGroupOffsets(GROUP_ID, TOPIC_NAME);\n mon2GroupOffsets = mon2.getGroupOffsets(GROUP_ID, TOPIC_NAME);\n LOG.info(\"key set sizes {} {} {} {}\",\n mon1TopicSizes.keySet().size(),\n mon2TopicSizes.keySet().size(),\n mon1GroupOffsets.keySet().size(),\n mon2GroupOffsets.keySet().size());\n\n if (mon1TopicSizes.keySet().size() == N_PARTITIONS &&\n mon2TopicSizes.keySet().size() == N_PARTITIONS &&\n mon1GroupOffsets.keySet().size() == N_PARTITIONS &&\n mon2GroupOffsets.keySet().size() == N_PARTITIONS) {\n break;\n }\n\n Thread.sleep(Duration.ofSeconds(1).toMillis());\n }\n\n Assertions.assertThat(mon1TopicSizes).isEqualTo(mon2TopicSizes);\n Assertions.assertThat(mon1GroupOffsets).isEqualTo(mon2GroupOffsets);\n\n Assertions.assertThat(mon1TopicSizes.keySet()).isEqualTo(mon1GroupOffsets.keySet());\n Assertions.assertThat(mon2TopicSizes.keySet()).isEqualTo(mon2GroupOffsets.keySet());\n }\n }", "title": "" }, { "docid": "64d4455d7e6c4a2a9a6bdbf76331f425", "score": "0.43845233", "text": "@Test\n public void testForcedRebalancing() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n // generate some number in parallel\n DataSet<Long> ds = env.generateSequence(1, 3000);\n DataSet<Tuple2<Integer, Integer>> uniqLongs =\n ds\n // introduce some partition skew by filtering\n .filter(new Filter1())\n // rebalance\n .rebalance()\n // count values in each partition\n .map(new PartitionIndexMapper())\n .groupBy(0)\n .reduce(new Reducer1())\n // round counts to mitigate runtime scheduling effects (lazy split\n // assignment)\n .map(new Mapper1());\n\n List<Tuple2<Integer, Integer>> result = uniqLongs.collect();\n\n StringBuilder expected = new StringBuilder();\n int numPerPartition = 2220 / env.getParallelism() / 10;\n for (int i = 0; i < env.getParallelism(); i++) {\n expected.append('(').append(i).append(',').append(numPerPartition).append(\")\\n\");\n }\n\n compareResultAsText(result, expected.toString());\n }", "title": "" }, { "docid": "b1bd72dabce5f1502c79e516836b9c2b", "score": "0.43808272", "text": "@Override\n public void beforeJobExecuted(final ShardingContexts shardingContexts) {\n// beginTime = System.currentTimeMillis();\n\n// logger.info(\"===>{} JOB BEGIN TIME: {} <===\", shardingContexts.getJobName(),\n// TimeUtil.mill2Time(beginTime));\n }", "title": "" }, { "docid": "5e1c514d180a06055e09c65a1d675787", "score": "0.4377566", "text": "private void mergePartitions (double baseProgress, double completedProgress) throws IOException {\n SortedMap<Integer, LVTask> taskMap = new TreeMap<Integer, LVTask>();\n for (LVReplicaGroup group : groups) {\n for (LVReplicaScheme scheme : metaRepo.getAllReplicaSchemes(group.getGroupId())) {\n LVReplica newReplica = metaRepo.getReplicaFromSchemeAndFracture(scheme.getSchemeId(), newFracture.getFractureId());\n LVReplicaPartition[] newPartitions = metaRepo.getAllReplicaPartitionsByReplicaId(newReplica.getReplicaId());\n\n List<LVReplica> oldReplicas = new ArrayList<LVReplica>();\n List<LVReplicaPartition[]> oldReplicaPartitions = new ArrayList<LVReplicaPartition[]>();\n for (LVFracture oldFracture : oldFractures) {\n LVReplica replica = metaRepo.getReplicaFromSchemeAndFracture(scheme.getSchemeId(), oldFracture.getFractureId());\n oldReplicas.add(replica);\n LVReplicaPartition[] partitions = metaRepo.getAllReplicaPartitionsByReplicaId(replica.getReplicaId());\n assert(partitions.length == newPartitions.length);\n oldReplicaPartitions.add(partitions);\n }\n \n // for each partition, create a task to merge the existing files.\n LOG.info(\"ReplicaScheme \" + scheme + \" has \" + newPartitions.length + \" partitions.\");\n for (int i = 0; i < newPartitions.length; ++i) {\n List<Integer> baseReplicaPartitionIds = new ArrayList<Integer>();\n for (int j = 0; j < oldFractures.length; ++j) {\n LVReplicaPartition partition = oldReplicaPartitions.get(j)[i];\n if (partition.getStatus() == ReplicaPartitionStatus.EMPTY) {\n continue; // empty partition can be ignore while merging\n }\n if (partition.getStatus() != ReplicaPartitionStatus.OK) {\n throw new IOException (\"this replica partition is not queriable:\" + partition);\n }\n baseReplicaPartitionIds.add(partition.getPartitionId());\n }\n if (baseReplicaPartitionIds.isEmpty()) {\n Log.info(\"partition[\" + i + \"] has no non-empty base files.\");\n metaRepo.updateReplicaPartitionNoReturn(newPartitions[i].getPartitionId(), ReplicaPartitionStatus.EMPTY, null);\n continue;\n }\n \n int[] baseReplicaPartitionIdsArray = new int[baseReplicaPartitionIds.size()];\n for (int j = 0; j < baseReplicaPartitionIdsArray.length; ++j) {\n baseReplicaPartitionIdsArray[j] = baseReplicaPartitionIds.get(j);\n }\n \n MergePartitionSameSchemeTaskParameters taskParam = new MergePartitionSameSchemeTaskParameters();\n taskParam.setBasePartitionIds(baseReplicaPartitionIdsArray);\n taskParam.setNewPartitionId(newPartitions[i].getPartitionId());\n int taskId = metaRepo.createNewTaskIdOnlyReturn(jobId, newPartitions[i].getNodeId(), TaskType.MERGE_PARTITION_SAME_SCHEME, taskParam.writeToBytes());\n LVTask task = metaRepo.updateTask(taskId, TaskStatus.START_REQUESTED, null, null, null);\n LOG.info(\"launched partition merging task: \" + task);\n assert (!taskMap.containsKey(taskId));\n taskMap.put(taskId, task);\n }\n \n }\n } \n joinTasks(taskMap, baseProgress, completedProgress);\n }", "title": "" }, { "docid": "8e33811f57ee07b8562a0fa7934bdc66", "score": "0.43768826", "text": "protected void initialize() {\n \tRobot.climbingMechanism.extendBigPneumatic();\n \tSystem.out.println(\"Big Pneumatic - EXTENDING\");\n }", "title": "" }, { "docid": "a620667e237f6a60b5956c0df28dd258", "score": "0.4372187", "text": "protected void initializeNewRound() {\r\n\t\tconnectionManager.waitForConnections();\r\n\t\tconnectionManager.activateTemporaryConnections();\r\n\t\tPrimitivesEnabledProtocol.newStatisticsRound();\r\n\r\n\t\t// Get all the active privacy peer IDs. Note that these are not necessarily all PPs configured in the config file.\r\n\t\tList<String> privacyPeerIDs = connectionManager.getActivePeers(true);\r\n\t\tList<String> inputPeerIDs = connectionManager.getActivePeers(false);\r\n\t\tMap<String, Integer> ppIndexMap = getIndexMap(privacyPeerIDs);\r\n\t\tmyAlphaIndex = ppIndexMap.get(myPeerID);\r\n\r\n\t\tnumberOfPrivacyPeers = privacyPeerIDs.size()+1; // Count myself\r\n\t\tnumberOfInputPeers = inputPeerIDs.size();\r\n\t\tpeerProtocolBarrier = new CountingBarrier(numberOfInputPeers);\r\n\t\tppProtocolBarrier = new CountingBarrier(numberOfPrivacyPeers-1);\r\n\t\tclearPP2PPBarrier();\r\n\r\n\t\t// init counters\r\n\t\tinitialSharesToReceive = numberOfInputPeers;\r\n\t\tfinalResultsToDo = numberOfInputPeers;\r\n\t\tfinalResult = null;\r\n\r\n\t\t// init NodeInfos and topology\r\n\t\tnodeInfos = new Vector<IDRNodeInfo>(numberOfNodes);\r\n\t\ttopology = new Vector<long[]>(numberOfNodes);\r\n\t\tfor (int i = 0; i < numberOfNodes; i++) {\r\n\t\t\tnodeInfos.add(null);\r\n\t\t\ttopology.add(new long[]{});\r\n\t\t}\r\n\r\n\t\t// read topology file\r\n\t\treadTopology(topo_filename);\r\n\t\tif (!readOperationSuccessful) {\r\n\t\t\tlogger.severe(\"Could not read topology from \" + topo_filename + \" -- returning\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tprimitives = new Primitives(randomAlgorithm, shamirSharesFieldOrder, degreeT, numberOfPrivacyPeers, myAlphaIndex, numberOfPrivacyPeers-1);\r\n\t\tcreateProtocolThreadsForInputPeers(inputPeerIDs);\r\n\t\tcreateProtocolThreadsForPrivacyPeers(privacyPeerIDs, ppIndexMap);\r\n\t}", "title": "" }, { "docid": "0ce0d4f3b7c8cf86dcada8e3b758b41f", "score": "0.43454966", "text": "protected void initialize() {\n \tstartTicksL = Robot.chassis.getLeftEncoderTicks();\n \tstartTicksR = Robot.chassis.getRightEncoderTicks();\n \tticksL = (int)(Inches*ticksPerInch);\n \tticksR = (int)(Inches*ticksPerInch);\n \tlastTicksL = 0;\n \tlastTicksR = 0;\n \tcurrTime = lastTime = Timer.getFPGATimestamp();\n \tSmartDashboard.putNumber(\"ticksL: \", ticksL);\n \tSmartDashboard.putNumber(\"ticksR: \", ticksR);\n }", "title": "" }, { "docid": "546c4f73cdc646726ddafb6b40ff635f", "score": "0.43449742", "text": "private int initializeAutoSyncTime() {\n\n // Initialize the selected time to frequently sync pending messages\n if (autoSyncTimes.getValue().matches(\"10\")) {\n return 10;\n } else if (autoSyncTimes.getValue().matches(\"15\")) {\n return 15;\n } else if (autoSyncTimes.getValue().matches(\"30\")) {\n return 30;\n } else if (autoSyncTimes.getValue().matches(\"60\")) {\n return 60;\n } else {\n return 5;\n }\n }", "title": "" }, { "docid": "b448aad66c030267a56538ab6f62bdc9", "score": "0.43291306", "text": "@BeforeClass\n public static void setupCPUCoreCount() {\n int numCores = TestUtil.nextInt(random(), 1, 4);\n System.setProperty(\n ConcurrentMergeScheduler.DEFAULT_CPU_CORE_COUNT_PROPERTY, Integer.toString(numCores));\n }", "title": "" }, { "docid": "1b69635312de79515aaba19fc2f0f4bf", "score": "0.4325915", "text": "long getBlockTime();", "title": "" }, { "docid": "1b69635312de79515aaba19fc2f0f4bf", "score": "0.4325915", "text": "long getBlockTime();", "title": "" }, { "docid": "d449a404dc85ad765f27905dbb5a0d81", "score": "0.43168256", "text": "@Override\n public void initializeExistingPartitions() {\n return;\n }", "title": "" }, { "docid": "199c04f4e69a4be97faaeeb94fd2ca72", "score": "0.43166116", "text": "@Test\n public void test_nonFirstPartition() {\n map.put(partitionKeys[1], 13);\n\n TestSupport.verifyProcessor(createSupplier(singletonList(1), 5000))\n .disableProgressAssertion()\n .runUntilOutputMatches(60_000, 100)\n .disableSnapshots()\n .jetInstance(instance)\n .expectOutput(asList(wm(13), 13, IDLE_MESSAGE));\n }", "title": "" }, { "docid": "9085135f91eeef3b1421001b673160b7", "score": "0.43151706", "text": "public long getInitialTime() {\r\n\t\treturn initialTime;\r\n\t}", "title": "" }, { "docid": "69bb80a1ec60879c76d7d4a334386e48", "score": "0.43114153", "text": "void doInit() {\n var pageable = new PageParameters(0, 1).createSortedPageByFieldDescending(AuditVersion.Fields.time);\n var audits = auditVersionRepository.findAll(pageable);\n var lastAudit = audits.getTotalElements() > 0 ? audits.getContent().get(0).getId() : null;\n\n for (NotificationTime time : NotificationTime.values()) {\n var state = getState(time);\n if (state.getLastAuditNotified() == null && lastAudit != null) {\n state.setLastAuditNotified(lastAudit);\n state = storage.save(state);\n log.info(\"initialized state {}\", state);\n }\n }\n }", "title": "" }, { "docid": "2a864d9dc706ed7cf76c58eb1cc2134c", "score": "0.43108022", "text": "@Override\n public void teleopInit() {\n m_loop.reset(VecBuilder.fill(m_encoder.getDistance(), m_encoder.getRate()));\n\n // Reset our last reference to the current state.\n m_lastProfiledReference =\n new TrapezoidProfile.State(m_encoder.getDistance(), m_encoder.getRate());\n }", "title": "" }, { "docid": "3b3ca82ebf8435309418f6ea06d22346", "score": "0.42814565", "text": "@Override\n public void initialize() {\n // 1 - Grab the left and right trajectories for a given profile\n // 2 - Turnthose trajectories into BufferedTrajectory objects for the Talon\n // 3 - Reset the current Motion Profile status of the talons\n // 4 - Reset the boolean (done) condition\n // 5 - Start the profile from initialize\n m_status.forceSetString(\"Initialize\");\n \n m_leftTraj = TalonMotionProfileGenerator.generateExampleProfile();\n m_rightTraj = TalonMotionProfileGenerator.generateExampleProfile();\n\n if( m_leftTraj != null && m_rightTraj != null ){\n m_dt.resetMotionProfile();\n m_isDone = false;\n m_dt.startMotionProfile(m_leftTraj, m_rightTraj);\n } else{\n // Something was wrong with the selected profile, just notify and do nothing\n m_isDone = true;\n m_status.forceSetString(\"Failed to generate profile\");\n }\n }", "title": "" }, { "docid": "b47ef31bd818b799131d24d41a145be7", "score": "0.4278708", "text": "public static void Problem1Merge()\n\t{\n\t\tdouble start = System.currentTimeMillis();\n\t\tdouble finish = System.currentTimeMillis();\n\t\tsize = 1000000;\n\t\trandom = 1000;\n\t\tdouble totalTime = 0;\n\t\tdouble averageTime = 0;\n\t\tdouble compareTotal=0;\n\t\tdouble compareAverage=0;\n\t\t// create array\n\t\tarr = new int[size];\n\t\tarrCopy = new int[size];\n\t\tarrCopy2 = new int[size];\n\t\tSystem.out.println(\"MergeSort\\nTesting 100 instances of 1,000,000 integers from 1-1000\");\n\t\tfor(int k= 0;k<100;k++)\n\t\t{\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t{\n\t\t\t\tarr[i] = arrCopy[i] = randomGenerator.nextInt(random);\n\t\t\t}\n\t\t\tcomparisonsCount = 0;\n\t\t\tstart = finish;\n\t\t\tmergesort(0, size-1);\n\t\t\tfinish = System.currentTimeMillis();\n\t\t\tdouble time = (finish-start);\n\t\t\ttotalTime= totalTime+ time;\n\t\t\tcompareTotal= compareTotal+comparisonsCount;\n\t\t}\n\t\taverageTime = totalTime/100;\n\t\tcompareAverage = compareTotal/100;\n\t\tSystem.out.printf(\"Average Sort Time: %.2f ms\\nAverage Comparisons: %.2f \\n\",averageTime,compareAverage);\n\t\t//Case 2 Range 1\n\t\tsize = 2000000;\n\t\trandom = 1000;\n\t\t// create array\n\t\tarr = new int[size];\n\t\tarrCopy = new int[size];\n\t\tarrCopy2 = new int[size];\n\t\ttotalTime=0;\n\t\taverageTime=0;\n\t\tcompareTotal= 0;\n\t\tcompareAverage = 0;\n\t\tSystem.out.println(\"\\nTesting 100 instances of 2,000,000 integers from 1-1000\");\n\t\tfor(int k= 0;k<100;k++)\n\t\t{\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t{\n\t\t\t\tarr[i] = arrCopy[i] = randomGenerator.nextInt(random);\n\t\t\t}\n\t\t\tcomparisonsCount = 0;\n\t\t\tstart = finish;\n\t\t\tmergesort(0, size-1);\n\t\t\tfinish = System.currentTimeMillis();\n\t\t\tdouble time= (finish-start);\n\t\t\ttotalTime=totalTime+time;\n\t\t\tcompareTotal= compareTotal+comparisonsCount;\n\t\t}\n\t\taverageTime = totalTime/100;\n\t\tcompareAverage = compareTotal/100;\n\t\tSystem.out.printf(\"Average Sort Time: %.2f ms\\nAverage Comparisons: %.2f \\n\",averageTime,compareAverage);\n\n\t\t//Case 3 Range 1\n\t\tsize = 4000000;\n\t\trandom = 1000;\n\t\t// create array\n\t\tarr = new int[size];\n\t\tarrCopy = new int[size];\n\t\tarrCopy2 = new int[size];\n\t\ttotalTime=0;\n\t\taverageTime=0;\n\t\tcompareTotal= 0;\n\t\tcompareAverage = 0;\n\t\tSystem.out.println(\"\\nTesting 100 instances of 4,000,000 integers from 1-1000\");\n\t\tfor(int k= 0;k<100;k++)\n\t\t{\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t{\n\t\t\t\tarr[i] = arrCopy[i] = randomGenerator.nextInt(random);\n\t\t\t}\n\t\t\tcomparisonsCount = 0;\n\t\t\tstart = finish;\n\t\t\tmergesort(0, size-1);\n\t\t\tfinish = System.currentTimeMillis();\n\t\t\tdouble time= (finish-start);\n\t\t\ttotalTime=totalTime+time;\n\t\t\tcompareTotal= compareTotal+comparisonsCount;\n\t\t}\n\t\taverageTime = totalTime/100;\n\t\tcompareAverage = compareTotal/100;\n\t\tSystem.out.printf(\"Average Sort Time: %.2f ms\\nAverage Comparisons: %.2f \\n\",averageTime,compareAverage);\n\n\t\t//Case 1 Range 2\n\t\tsize = 1000000;\n\t\trandom = 1000000;\n\t\t// create array\n\t\tarr = new int[size];\n\t\tarrCopy = new int[size];\n\t\tarrCopy2 = new int[size];\n\t\ttotalTime=0;\n\t\taverageTime=0;\n\t\tcompareTotal= 0;\n\t\tcompareAverage = 0;\n\t\tSystem.out.println(\"\\nTesting 100 instances of 1,000,000 integers from 1-1,000,000\");\n\t\tfor(int k= 0;k<100;k++)\n\t\t{\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t{\n\t\t\t\tarr[i] = arrCopy[i] = randomGenerator.nextInt(random);\n\t\t\t}\n\t\t\tcomparisonsCount = 0;\n\t\t\tstart = finish;\n\t\t\tmergesort(0, size-1);\n\t\t\tfinish = System.currentTimeMillis();\n\t\t\tdouble time= (finish-start);\n\t\t\ttotalTime=totalTime+time;\n\t\t\tcompareTotal= compareTotal+comparisonsCount;\n\t\t}\n\t\taverageTime = totalTime/100;\n\t\tcompareAverage = compareTotal/100;\n\t\tSystem.out.printf(\"Average Sort Time: %.2f ms\\nAverage Comparisons: %.2f \\n\",averageTime,compareAverage);\n\n\t\t//Case 2 Range 2\n\t\tsize = 2000000;\n\t\trandom = 1000000;\n\t\t// create array\n\t\tarr = new int[size];\n\t\tarrCopy = new int[size];\n\t\tarrCopy2 = new int[size];\n\t\ttotalTime=0;\n\t\taverageTime=0;\n\t\tcompareTotal= 0;\n\t\tcompareAverage = 0;\n\t\tSystem.out.println(\"\\nTesting 100 instances of 2,000,000 integers from 1-1,000,000\");\n\t\tfor(int k= 0;k<100;k++)\n\t\t{\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t{\n\t\t\t\tarr[i] = arrCopy[i] = randomGenerator.nextInt(random);\n\t\t\t}\n\t\t\tcomparisonsCount = 0;\n\t\t\tstart = finish;\n\t\t\tmergesort(0, size-1);\n\t\t\tfinish = System.currentTimeMillis();\n\t\t\tdouble time= (finish-start);\n\t\t\ttotalTime=totalTime+time;\n\t\t\tcompareTotal= compareTotal+comparisonsCount;\n\t\t}\n\t\taverageTime = totalTime/100;\n\t\tcompareAverage = compareTotal/100;\n\t\tSystem.out.printf(\"Average Sort Time: %.2f ms\\nAverage Comparisons: %.2f \\n\",averageTime,compareAverage);\n\t\t//Case 3 Range 2\n\t\tsize = 4000000;\n\t\trandom = 1000000;\n\t\t// create array\n\t\tarr = new int[size];\n\t\tarrCopy = new int[size];\n\t\tarrCopy2 = new int[size];\n\t\ttotalTime=0;\n\t\taverageTime=0;\n\t\tcompareTotal= 0;\n\t\tcompareAverage = 0;\n\t\tSystem.out.println(\"\\nTesting 100 instances of 4,000,000 integers from 1-1,000,000\");\n\t\tfor(int k= 0;k<100;k++)\n\t\t{\n\t\t\tfor(int i=0; i<size; i++)\n\t\t\t{\n\t\t\t\tarr[i] = arrCopy[i] = randomGenerator.nextInt(random);\n\t\t\t}\n\t\t\tcomparisonsCount = 0;\n\t\t\tstart = finish;\n\t\t\tmergesort(0, size-1);\n\t\t\tfinish = System.currentTimeMillis();\n\t\t\tdouble time= (finish-start);\n\t\t\ttotalTime=totalTime+time;\n\t\t\tcompareTotal= compareTotal+comparisonsCount;\n\t\t}\n\t\taverageTime = totalTime/100;\n\t\tcompareAverage = compareTotal/100;\n\t\tSystem.out.printf(\"Average Sort Time: %.2f ms\\nAverage Comparisons: %.2f \\n\",averageTime,compareAverage);\n\t}", "title": "" }, { "docid": "b0b584e67c78407ecd00872eadc77719", "score": "0.42757648", "text": "private void printTimeTaken(double computingTimeEnd, double computingTimeStart, double printingTimeEnd, double printingTimeStart)\n\t{\n\t\tdouble computeTime = computingTimeEnd - computingTimeStart;\n\t\tif(computeTime > 5000)\n\t\t{\n\t\t\tcomputeTime = computeTime/1000;\n\t\t\tSystem.out.println(\"\\r\\nTook \" + computeTime + \" seconds to generate Primes.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"\\r\\nTook \" + computeTime + \" milliseconds to generate Primes.\");\n\t\t}\n\t\t\n\t\t//could revisit this later\n\t\t/* \n\t\tdouble printTime = printingTimeEnd - printingTimeStart;\n\t\tif(printTime > 5000)\n\t\t{\n\t\t\tprintTime = printTime/1000;\n\t\t\tSystem.out.println(\"\\r\\nTook \" + printTime + \" seconds to print Primes.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"\\r\\nTook \" + printTime + \" milliseconds to print Primes.\");\n\t\t} */\n\t}", "title": "" }, { "docid": "d88b15ca5a3b6da976969d0d4e3d5c49", "score": "0.42747808", "text": "private void calculate(){\n this.endTime = System.nanoTime();\n this.milliseconds = (endTime - startTime) / 1000000;\n }", "title": "" }, { "docid": "9d0cd6feb36d758ed175b4052e1f6d76", "score": "0.426891", "text": "@Override\n public void initialize() {\n // timer stuff\n robotTimer.reset();\n robotTimer.start();\n\n attempts = 0;\n values = new double[LoggerRelations.values().length];\n\n Date timeInMillis = new Date(System.currentTimeMillis());\n String logTimeStamp = fileFormatter.format(timeInMillis);\n\n logFileLocation = LOG_FILE_PATH + \"SyncLog-\" + logTimeStamp + \".csv\";\n }", "title": "" }, { "docid": "a1659ca89561afb5a14f37db9cc6147f", "score": "0.42644665", "text": "public synchronized void startTimeSync(){\n\t\tif (synchronizationThread != null && ! started) {\n\t\t\tsynchronizationThread.start();\n\t\t\tLOG.info(\"Time synchronizer started\");\n\t\t\tstarted = true;\n\t\t}\n\t}", "title": "" }, { "docid": "531f358c7b2f1d033feff500fa1e9363", "score": "0.4255445", "text": "protected void startTimeMeasurement() {\r\n this.testStartTime = System.currentTimeMillis();\r\n }", "title": "" }, { "docid": "be6da28615764879e03f0d41f9a088c5", "score": "0.42551818", "text": "QueryMetrics<QueryType> reportParallelMergeInputRows(long numRows);", "title": "" }, { "docid": "64f4398baad781bf32d7cd9d7415329c", "score": "0.42545947", "text": "public void scheduleFinalResultReconstruction() {\r\n\t\t/*\r\n\t\t * Because we are reconstructing next hops during the algorithm, this can do nothing.\r\n\t\t * \r\n\t\tinitializeNewOperationSet(numberOfInputPeers);\r\n\t\toperationIDs = new int[numberOfInputPeers];\r\n\t\tlong[] data = null;\r\n\t\tfor(int i = 0; i < numberOfInputPeers; i++) {\r\n\t\t\t// create reconstruction operation for result of product operation\r\n\t\t\toperationIDs[i] = i;\r\n\t\t\tdata = new long[1];\r\n\t\t\tdata[0] = getPeerInfoByIndex(i).getCurrentNextHop();\r\n\t\t\tif(!primitives.reconstruct(operationIDs[i], data)) {\r\n\t\t\t\tlogger.log(Level.SEVERE, \"reconstruct operation arguments are invalid: id=\"+operationIDs[i]+\", data=\"+data[0]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t */\r\n\t\t\r\n\t\tlogger.log(Level.INFO, Services.getFilterPassingLogPrefix()+\"Total time for \" + rounds + \" round\" + (rounds == 1 ? \": \" : \"s: \") + totalTimer + \" ms\");\r\n\t\tlogger.log(Level.INFO, Services.getFilterPassingLogPrefix()+\"Average round time (all rounds): \"\r\n\t\t\t\t+ ((double)totalTimer / rounds) + \" ms\");\r\n\t\tlogger.log(Level.INFO, Services.getFilterPassingLogPrefix()+\"Average round time (excluding first): \"\r\n\t\t\t\t+ ((double)(totalTimer - firstTimer) / (rounds-1)) + \" ms\");\r\n\t\t\r\n\t\tlogger.log(Level.INFO, \"thread \" + Thread.currentThread().getId() + \" started the final result reconstruction; (\" + operationIDs.length + \" reconstruction operations are in progress)\");\r\n\t}", "title": "" }, { "docid": "9a74d8e9a847c4d9cb526f5422edd903", "score": "0.4237304", "text": "@Test\n public void when_allPartitionsIdleAndThenRecover_then_wmOutput() throws Exception {\n CountDownLatch latch = new CountDownLatch(1);\n Thread updatingThread = new Thread(() -> uncheckRun(() -> {\n // We will start after a delay so that the source will first become idle and then recover.\n latch.await();\n for (; ; ) {\n map.put(partitionKeys[0], 12);\n Thread.sleep(100);\n }\n }));\n updatingThread.start();\n\n Processor processor = createSupplier(asList(0, 1), 2000).get();\n TestOutbox outbox = new TestOutbox(1024);\n Queue<Object> outbox0 = outbox.queue(0);\n processor.init(outbox, new TestProcessorContext().setJetInstance(instance));\n\n assertTrueEventually(() -> {\n processor.complete();\n // after we have the IDLE_MESSAGE, release the latch to let the other thread produce events\n if (IDLE_MESSAGE.equals(outbox0.peek())) {\n latch.countDown();\n }\n assertEquals(asList(IDLE_MESSAGE, wm(12), 12), outbox0.stream().distinct().collect(toList()));\n });\n\n updatingThread.interrupt();\n updatingThread.join();\n }", "title": "" }, { "docid": "200283c51305ad9734b40845f031f272", "score": "0.4236658", "text": "long getNumMainThreadL2Hits();", "title": "" }, { "docid": "0a325982e0b84e05001e4610a503cfb7", "score": "0.42353663", "text": "@Test\n public void timePlyRelation() throws Exception {\n for (int b = 1; --b >= 0;) {\n BitBoard bb = new BitBoard(ByteBoard.New());\n byte col = (byte) 1;//(Board.rand.nextBoolean() ? -1 : 1);\n Searcher search = new Searcher(bb);\n while (search.adjustedPly(15) == 15) {\n int ply = 2 + Board.rand.nextInt(5);\n// int mTime=99999999;\n for (int q = 0; q < 1; q++) {\n// System.gc();\n //Thread.sleep(1010);\n search.combined_search(col, ply, false);\n// int nodes = Searcher.EV_NODES_ + Searcher.NS_NODES_;\n// mTime = Math.min(mTime,Searcher.NANO_TIME);\n }\n col = (byte)-col;\n search.doPlay(col,Board.rand.nextInt(3)==-1 ? BoardUtil.randomMove(bb,col) : null);\n if (search.play() == null)\n break;\n// int nodes = Searcher.EV_NODES_ + Searcher.NS_NODES_;\n// if (Searcher.PE_NODES_ > 100)\n// System.out.printf(\"t %d\\n\", (mTime / nodes));\n }\n }\n// double dar[] = calcMean(res);\n// System.out.printf(\"T/node sdev %.1f %.1f\\n\", dar[0], dar[1]);\n// System.out.printf(\"%d %d %d\\n\", Searcher.EV_NODES_,Searcher.PE_NODES_,Searcher.NS_NODES_);\n }", "title": "" }, { "docid": "d3d3bdf11548513bf9806fca09cccc8b", "score": "0.42251405", "text": "public synchronized void collectionProcessComplete() {\n\n long time = System.currentTimeMillis();\n LOGGER.info(\"Completed \" + entityCount + \" documents\");\n long processingTime = time - mInitCompleteTime;\n LOGGER.info(\"Processing Time: \" + processingTime + \" ms\");\n LOGGER.info(\"\\n\\n ------------------ PERFORMANCE REPORT ------------------\\n\");\n LOGGER.info(cpe.getPerformanceReport().toString());\n System.exit(0);\n }", "title": "" }, { "docid": "0cab188c5b1cb48fab80f87117e8d51c", "score": "0.42246503", "text": "@Test\r\n\tpublic void testMerge() throws FileNotFoundException {\n\t\tsw.start();\r\t\tMerge.sortMerge(wordArray16);\r\t\tsw.stop();\r\t\tt41 = sw.getNanoTime();\r\n\t\tsw.reset();\r\r\n//Starts stop watch, performs merge sort on 256 word array, stores result in t42, stops and resets timer\r\n\t\tsw.start();\r\t\tMerge.sortMerge(wordArray256);\r\t\tsw.stop();\r\n\t\tt42 = sw.getNanoTime();\r\t\tsw.reset();\r\t\t\r\n//Starts stop watch, performs merge sort on 4096 word array, stores result in t43, stops and resets timer\r\n\t\tsw.start();\r\t\tMerge.sortMerge(wordArray4096);\r\t\tsw.stop();\r\t\tt43 = sw.getNanoTime();\r\n\t\tsw.reset();\r\n\t\t\r\n\t\tassertTrue(Merge.isSorted(wordArray16));\r\n\t\tassertTrue(Merge.isSorted(wordArray256));\r\n\t\tassertTrue(Merge.isSorted(wordArray4096));\t\t\r\n\t}", "title": "" }, { "docid": "5ec4cad9dbad3c8725dcd4567224eb43", "score": "0.42245263", "text": "public Date getInitTime() {\n\t\treturn initTime;\n\t}", "title": "" }, { "docid": "b2ca71687b8ae56aab5a451163fd73c1", "score": "0.4224062", "text": "public void markNsTestTimerMerge() throws JNCException {\n markLeafMerge(\"nsTestTimer\");\n }", "title": "" }, { "docid": "e5ba98ea01d1b15066ed6916a0206184", "score": "0.42202887", "text": "public void markStart(){\n if(SystemClock.uptimeMillis()-sampleStartTime > millisPerClear){\n sampleStartTime = SystemClock.uptimeMillis();\n totalUpdates = 0;\n totalTimeSpentInIntervalSeconds = 0;\n }\n\n updateStartTime = SystemClock.uptimeMillis();\n }", "title": "" }, { "docid": "72f1f370eaa347dc82212d41852ad965", "score": "0.42166013", "text": "public void operate() {\n\t\tint N=100;\r\n\t\tint[] data=new int[N];\r\n\t\tfor(int i=0;i<N;i++)\r\n\t\t{\r\n\t\t\tint ele=(int) (Math.random()*N);\r\n\t\t\tdata[i]=ele;\r\n\t\t}\r\n\t\tdouble start=System.currentTimeMillis();\r\n\t\tprint(data);\r\n\t\tmergeSort(data);\r\n\t\tSystem.out.println(\"Sorted data: \");\r\n\t\tprint(data);\r\n\t\tdouble end=System.currentTimeMillis();\r\n\t\tSystem.out.println(end-start);\r\n\t}", "title": "" }, { "docid": "dd914a17db02ce5a05c8e7ae24fb1ca5", "score": "0.42154843", "text": "public void poll() {\n long now = System.nanoTime();\n double wallTime = (now - lastPoll) / 1000000000.0;\n lastPoll = now;\n\n double cpuTime = tmxb.getThreadCpuTime(this.tid) / 1000000000.0;\n totalCpuTime = cpuTime < 0 ? 0 : cpuTime;\n cpuTimeHistory.log(totalCpuTime);\n cpuUsageHistory.log((cpuTimeHistory.previous(0) - cpuTimeHistory.previous(1)) / wallTime * 100.0);\n\n double userTime = tmxb.getThreadUserTime(this.tid) / 1000000000.0;\n totalUserTime = userTime < 0 ? 0 : userTime;\n userTimeHistory.log(totalUserTime);\n userUsageHistory.log((userTimeHistory.previous(0) - userTimeHistory.previous(1)) / wallTime * 100.0);\n }", "title": "" }, { "docid": "0133927b6c90049cf458cb3dd6afeae2", "score": "0.4214838", "text": "public synchronized void requireFullRefresh() {\n _init = true;\n }", "title": "" }, { "docid": "60c5c5c0642a1e3948b6013c7507a08a", "score": "0.4212191", "text": "@Override\n public void initialize() {\n //m_SeqSubsystem.stop();\n // mTimer.start();\n // elapsed = mTimer.get();\n }", "title": "" }, { "docid": "faf88508ef1d975310664ce4a4326d16", "score": "0.42028612", "text": "private void init() {\n // Randomly generate the complete population following some constraints\n for (int i=0; i < size(); i++) {\n population[i] = new TimeTable();\n population[i].generate();\n }\n }", "title": "" }, { "docid": "dd12545c44eeafb78c574c459b8735f8", "score": "0.4199321", "text": "public void startInitialWMs() throws RemoteException {\n int time = (int) SL.getTime();\n System.out.println(\"*************Time:\" + time);\n String[] tmp = initialVMs[time].split(\",\");\n maxFrontVMs = Integer.parseInt(tmp[0]);\n maxMiddleVMs = Integer.parseInt(tmp[1]);\n while (activeFrontVMs < maxFrontVMs) {\n int vmID = SL.startVM();\n frontHashMap.put(vmID, new VmType(vmID, VMType.FRONT));\n frontUpList.add(activeFrontVMs, vmID);\n VMTypeQueue.add(VMType.FRONT);\n activeFrontVMs++;\n System.out.println(\"activeFrontVMs: \"+activeFrontVMs);\n }\n while (activeMiddleVMs < maxMiddleVMs) {\n int vmID = SL.startVM();\n middleHashMap.put(vmID, new VmType(vmID, VMType.MIDDLE));\n middleUpList.add(activeMiddleVMs, vmID);\n VMTypeQueue.add(VMType.MIDDLE);\n activeMiddleVMs++;\n System.out.println(\"activeMiddleVMs: \"+activeMiddleVMs);\n }\n }", "title": "" }, { "docid": "40d705e2bff267676e2e9fecc56fd16d", "score": "0.41989905", "text": "@Override\r\n\tpublic int getCPUtime() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "7ce69740ef284b0aaec6f620b98d5668", "score": "0.41954905", "text": "private void waitForInitialization() {\n Timing.waitCondition(() -> stage != null, 5000);\n }", "title": "" }, { "docid": "71241e2f4660057c0eef83e4eff8b29c", "score": "0.4183535", "text": "@Override\n public void onPartitionMerge(AvailabilityStrategyContext context, Map<Address, CacheStatusResponse> statusResponseMap) {\n int maxTopologyId = 0;\n int maxRebalanceId = 0;\n CacheTopology maxStableTopology = null;\n CacheTopology maxActiveTopology = null;\n Set<CacheTopology> degradedTopologies = new HashSet<>();\n CacheTopology maxDegradedTopology = null;\n CacheJoinInfo joinInfo = null;\n for (CacheStatusResponse response : statusResponseMap.values()) {\n CacheTopology partitionStableTopology = response.getStableTopology();\n if (partitionStableTopology == null) {\n // The node hasn't properly joined yet.\n continue;\n }\n if (maxStableTopology == null || maxStableTopology.getTopologyId() < partitionStableTopology.getTopologyId()) {\n maxStableTopology = partitionStableTopology;\n joinInfo = response.getCacheJoinInfo();\n }\n\n CacheTopology partitionTopology = response.getCacheTopology();\n if (partitionTopology == null) {\n // The node hasn't properly joined yet.\n continue;\n }\n if (partitionTopology.getTopologyId() > maxTopologyId) {\n maxTopologyId = partitionTopology.getTopologyId();\n }\n if (partitionTopology.getRebalanceId() > maxRebalanceId) {\n maxRebalanceId = partitionTopology.getRebalanceId();\n }\n if (response.getAvailabilityMode() == AvailabilityMode.AVAILABLE) {\n if (maxActiveTopology == null || maxActiveTopology.getTopologyId() < partitionTopology.getTopologyId()) {\n maxActiveTopology = partitionTopology;\n }\n } else if (response.getAvailabilityMode() == AvailabilityMode.DEGRADED_MODE) {\n degradedTopologies.add(partitionTopology);\n if (maxDegradedTopology == null || maxDegradedTopology.getTopologyId() < partitionTopology.getTopologyId()) {\n maxDegradedTopology = partitionTopology;\n }\n } else {\n eventLogManager.getEventLogger().context(context.getCacheName()).error(EventLogCategory.CLUSTER, MESSAGES.unexpectedAvailabilityMode(context.getAvailabilityMode(), response.getCacheTopology()));\n }\n }\n\n if (maxStableTopology != null) {\n log.tracef(\"Max stable partition topology: %s\", maxStableTopology);\n }\n if (maxActiveTopology != null) {\n log.tracef(\"Max active partition topology: %s\", maxActiveTopology);\n }\n if (maxDegradedTopology != null) {\n log.tracef(\"Max degraded partition topology: %s, all degraded: %s\", maxDegradedTopology, degradedTopologies);\n }\n\n List<Address> expectedMembers = context.getExpectedMembers();\n List<Address> actualMembers = new ArrayList<>(expectedMembers);\n CacheTopology mergedTopology;\n AvailabilityMode mergedAvailabilityMode;\n if (maxActiveTopology != null) {\n log.debugf(\"One of the partitions is available, using that partition's topology\");\n mergedTopology = maxActiveTopology;\n mergedAvailabilityMode = AvailabilityMode.AVAILABLE;\n } else if (!degradedTopologies.isEmpty()) {\n log.debugf(\"No active partitions, so all the partitions must be in degraded mode.\");\n // Once a partition enters degraded mode its CH won't change, but it could be that a partition managed to\n // rebalance before losing another member and entering degraded mode.\n mergedTopology = maxDegradedTopology;\n if (maxStableTopology != null) {\n actualMembers.retainAll(maxStableTopology.getMembers());\n } else {\n actualMembers.retainAll(mergedTopology.getMembers());\n }\n mergedAvailabilityMode = AvailabilityMode.DEGRADED_MODE;\n } else {\n log.debugf(\"No current topology, recovered only joiners for cache %s. Skipping availability update.\", context.getCacheName());\n return;\n }\n\n // Increment the topology id so that it's bigger than any topology that might have been sent by the old\n // coordinator.\n // +1 is enough because nodes wait for the new JGroups view before answering the\n // status request, and then they can't process topology updates from the old view.\n // Also cancel any pending rebalance by removing the pending CH, because we don't recover the rebalance\n // confirmation status (yet).\n AvailabilityMode newAvailabilityMode = computeAvailabilityAfterMerge(context, maxStableTopology, actualMembers);\n if (mergedTopology != null) {\n boolean resolveConflicts = context.resolveConflictsOnMerge() && actualMembers.size() > 1 && newAvailabilityMode == AvailabilityMode.AVAILABLE;\n if (resolveConflicts) {\n // Record all distinct read owners and hashes\n Set<ConsistentHash> distinctHashes = new HashSet<>();\n for (CacheStatusResponse response : statusResponseMap.values()) {\n CacheTopology cacheTopology = response.getCacheTopology();\n if (cacheTopology != null) {\n ConsistentHash readCH = ownersConsistentHash(cacheTopology, joinInfo.getConsistentHashFactory());\n if (readCH != null && !readCH.getMembers().isEmpty()) {\n distinctHashes.add(readCH);\n }\n }\n }\n ConsistentHash preferredHash = ownersConsistentHash(mergedTopology, joinInfo.getConsistentHashFactory());\n ConsistentHash conflictHash = context.calculateConflictHash(preferredHash, distinctHashes, expectedMembers);\n\n mergedTopology = new CacheTopology(++maxTopologyId, maxRebalanceId + 1, conflictHash, null,\n CacheTopology.Phase.CONFLICT_RESOLUTION, actualMembers, persistentUUIDManager.mapAddresses(actualMembers));\n\n // Update the currentTopology and try to resolve conflicts\n context.updateTopologiesAfterMerge(mergedTopology, maxStableTopology, mergedAvailabilityMode);\n context.queueConflictResolution(mergedTopology, new HashSet<>(preferredHash.getMembers()));\n return;\n }\n\n // There's no pendingCH, therefore the topology is in stable phase\n actualMembers.retainAll(mergedTopology.getMembers());\n mergedTopology = new CacheTopology(maxTopologyId + 1, mergedTopology.getRebalanceId(),\n mergedTopology.getCurrentCH(), null,\n CacheTopology.Phase.NO_REBALANCE, actualMembers,\n persistentUUIDManager.mapAddresses(actualMembers));\n }\n\n context.updateTopologiesAfterMerge(mergedTopology, maxStableTopology, mergedAvailabilityMode);\n\n // It shouldn't be possible to recover from unavailable mode without user action\n if (newAvailabilityMode == AvailabilityMode.DEGRADED_MODE) {\n log.debugf(\"After merge, cache %s is staying in degraded mode\", context.getCacheName());\n context.updateAvailabilityMode(actualMembers, newAvailabilityMode, true);\n } else { // AVAILABLE\n log.debugf(\"After merge, cache %s has recovered and is entering available mode\", context.getCacheName());\n updateMembersAndRebalance(context, actualMembers, context.getExpectedMembers());\n }\n }", "title": "" }, { "docid": "928a51ff994aaf37bfc0cae1b0746936", "score": "0.41820687", "text": "@ThreadSafe\npublic interface PartitionStatistics extends Mergeable<PartitionStatistics> {\n /**\n * @return the total number of rows in the partition.\n */\n long rowCount();\n\n /**\n * @return the total size of the partition (in bytes).\n */\n long totalSize();\n\n /**\n * @return the average width of a single row (in bytes) in this partition. This includes\n * the row key and cell contents.\n */\n int avgRowWidth();\n\n /**\n * @return the 5-minute exponentially weighted moving average number of queries executed\n * against this partition\n */\n long queryCount();\n\n /**\n * @return a unique identifier for this partition\n */\n String partitionId();\n\n /**\n * @return the unique identifier for the table to which this partition belongs\n */\n String tableId();\n\n /**\n * @return the (estimated) latency to read a single row from local storage(measured in microseconds)\n */\n double localReadLatency();\n\n /**\n * @return the (estimated) latency to read a single row from this partition locally(measured\n * in microseconds)\n */\n double remoteReadLatency();\n\n /**\n * @return the time required to read the entire partition (measured in microseconds). This can be\n * measured or estimated.\n */\n long localReadTime();\n\n /**\n * @return the time required to read the entire partition (measured in microseconds). This can be\n * measured or estimated.\n */\n long remoteReadTime();\n\n /**\n * @return the time taken to collect statistics against this partition\n * (measured in microseconds)\n */\n long collectionTime();\n\n /**\n * @return Statistics about individual columns (which were most recently collected).\n */\n List<ColumnStatistics> columnStatistics();\n\n /**\n * @param columnId the identifier of the column to fetch(indexed from 0)\n * @param <T> the expected type of statistics to return\n * @return statistics for the column, if such statistics exist, or {@code null} if\n * no statistics are available for that column.\n */\n <T> ColumnStatistics<T> columnStatistics(int columnId);\n\n <T extends Comparable<T>> Distribution<T> columnDistribution(int columnId);\n}", "title": "" }, { "docid": "f98d123de44d7e42caae68f4ebbaed82", "score": "0.41678745", "text": "public double getTotalSimulationTime() {\n\t\treturn getPreparationTime() + getVerificationTime();\n\t}", "title": "" }, { "docid": "d68384f727c44220eee6799f0479a79d", "score": "0.4166509", "text": "public static void main(String[] args) {\n System.out.println(\"initial_timeout, tendermint, algorand, this_work\");\n\n double tendermintBestLatency = Double.MAX_VALUE, tendermintBestTimeout = 0;\n double algorandBestLatency = Double.MAX_VALUE, algorandBestTimeout = 0;\n double mirBestLatency = Double.MAX_VALUE, mirBestTimeout = 0;\n\n for (double initalTimeout = 0.01; initalTimeout <= 0.4; initalTimeout += 0.01) {\n DoubleSummaryStatistics tendermintOverallStats = new DoubleSummaryStatistics(),\n algorandOverallStats = new DoubleSummaryStatistics(),\n mirOverallStats = new DoubleSummaryStatistics();\n for (int i = 0; i < SAMPLES; ++i) {\n Optional<DoubleSummaryStatistics> tendermintStats =\n runTendermint(initalTimeout, 90, 10);\n Optional<DoubleSummaryStatistics> algorandStats =\n runAlgorand(initalTimeout, 90, 10);\n Optional<DoubleSummaryStatistics> mirStats =\n runMir(initalTimeout, 90, 10);\n\n tendermintStats.ifPresent(tendermintOverallStats::combine);\n algorandStats.ifPresent(algorandOverallStats::combine);\n mirStats.ifPresent(mirOverallStats::combine);\n }\n\n if (tendermintOverallStats.getCount() > 0 &&\n tendermintOverallStats.getAverage() < tendermintBestLatency) {\n tendermintBestLatency = tendermintOverallStats.getAverage();\n tendermintBestTimeout = initalTimeout;\n }\n if (algorandOverallStats.getCount() > 0 &&\n algorandOverallStats.getAverage() < algorandBestLatency) {\n algorandBestLatency = algorandOverallStats.getAverage();\n algorandBestTimeout = initalTimeout;\n }\n if (mirOverallStats.getCount() > 0 &&\n mirOverallStats.getAverage() < mirBestLatency) {\n mirBestLatency = mirOverallStats.getAverage();\n mirBestTimeout = initalTimeout;\n }\n\n System.out.printf(\"%.2f, %s, %s, %s\\n\",\n initalTimeout,\n tendermintOverallStats.getCount() > 0 ? tendermintOverallStats.getAverage() : \"\",\n algorandOverallStats.getCount() > 0 ? algorandOverallStats.getAverage() : \"\",\n mirOverallStats.getCount() > 0 ? mirOverallStats.getAverage() : \"\");\n }\n\n System.out.println();\n System.out.printf(\"Tendermint best with timeout %.2f: %.4f\\n\",\n tendermintBestTimeout, tendermintBestLatency);\n System.out.printf(\"Algorand best with timeout %.2f: %.4f\\n\",\n algorandBestTimeout, algorandBestLatency);\n System.out.printf(\"Mir best with timeout %.2f: %.4f\\n\",\n mirBestTimeout, mirBestLatency);\n double secondBestLatency = Math.min(tendermintBestLatency, algorandBestLatency);\n System.out.printf(\"Mir speedup: %.4f\\n\",\n (secondBestLatency - mirBestLatency) / secondBestLatency);\n }", "title": "" }, { "docid": "8fe8c729acb4b0737537b17ff6e8c15b", "score": "0.4159661", "text": "private void master_sendEmptyMessage() {\n\t\t\tLOG.info(\"Running master_state sendEmptyMessage\");\n\t\t\tsetAggregatedValue(KEY_bfs_finished, new BooleanWritable(true));\n\t\t\tsetAggregatedValue(KEY_curr_level, new IntWritable(curr_level));\n\t\t\tsetAggregatedValue(\"current_state\", new IntWritable(master_state));\n\n\t\t\tmaster_state_nxt = BFSDONE1;\n\t\t\tmaster_should_start_workers = true;\n\t\t}", "title": "" }, { "docid": "28a8d11536b9e62cac09265d47d91dd5", "score": "0.41541255", "text": "@PostConstruct\n public void start() throws InterruptedException, KeeperException, IOException, LeaderElectionSetupException {\n if (!confMgr.subscriptionExists(\"wal\", \"LinkIndexUpdater\")) {\n confMgr.addSubscription(\"wal\", \"LinkIndexUpdater\", RowLogSubscription.Type.VM, 3, 10);\n }\n if (!confMgr.subscriptionExists(\"wal\", \"MQFeeder\")) {\n confMgr.addSubscription(\"wal\", \"MQFeeder\", RowLogSubscription.Type.VM, 3, 20);\n }\n \n messageQueue = new RowLogImpl(\"mq\", HBaseTableUtil.getRecordTable(hbaseConf), RecordCf.MQ_PAYLOAD.bytes,\n RecordCf.MQ_STATE.bytes, 10000L, true, confMgr);\n messageQueue.registerShard(new RowLogShardImpl(\"shard1\", hbaseConf, messageQueue, 100));\n \n writeAheadLog = new RowLogImpl(\"wal\", HBaseTableUtil.getRecordTable(hbaseConf), RecordCf.WAL_PAYLOAD.bytes,\n RecordCf.WAL_STATE.bytes, 10000L, true, confMgr);\n RowLogShard walShard = new RowLogShardImpl(\"shard1\", hbaseConf, writeAheadLog, 100);\n writeAheadLog.registerShard(walShard);\n \n RowLogMessageListenerMapping.INSTANCE.put(\"MQFeeder\", new MessageQueueFeeder(messageQueue));\n \n // Start the processor\n messageQueueProcessorLeader = new RowLogProcessorElection(zk, new RowLogProcessorImpl(messageQueue, confMgr));\n messageQueueProcessorLeader.start();\n }", "title": "" }, { "docid": "ec1c90e7854a5a27871dc05a04b73c64", "score": "0.4148168", "text": "@ScheduledMethod(start = 0, interval = 1, shuffle = true, priority = ScheduleParameters.LAST_PRIORITY)\n\tpublic void determineBaseline()\n\t{\n\t\tint now = this.mainContext.getTickcount();\n\t\tif (now < 48)\n\t\t{\n\t\t\tthis.baseProfile[now] = this.getNetDemand();\n\t\t}\n\n\t}", "title": "" }, { "docid": "aee71ba290c99fff60e5aa71727aad28", "score": "0.41477582", "text": "private void completeTrainingImageGatherPhase() {\n int savedImages;\n long phaseStart;\n\n try (ResourceLock rl = trainingMutex.lockAsResource()){\n savedImages = currentTrainingBatchSize;\n phaseStart = phaseStartTimeMs;\n\n startTrainingPhase(); // Transition from the gathering to the training phase\n }\n\n long phaseTime = System.currentTimeMillis() - phaseStart;\n String message = String.format(Locale.US, \"Gathered %d images in %d\", savedImages, Math.round(phaseTime / 1000.0));\n Toast.makeText(ClassifyCamera.this, message, Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "0e1031557675ed2fc0885b34468e3178", "score": "0.41459677", "text": "public static void init() {\r\n\t\tGameLog.isInitialized = true;\r\n\t\tGameLog.waitingLogs = new ConcurrentSkipListMap<Long, LogObject>();\r\n\t\tGameLog.timer = new Timer();\r\n//\t\tGameLog.timer.schedule(new TimerTask() {\r\n//\t\t\t@Override\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tfor (long elementTime : GameLog.waitingLogs.keySet()) {\r\n//\t\t\t\t\tlong currentTime = System.currentTimeMillis();\r\n//\t\t\t\t\tif (currentTime - elementTime > 300) {\r\n//\t\t\t\t\t\tGameLog.log(GameLog.waitingLogs.remove(elementTime));\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t}, 0, 2000);\r\n\t\tGameLog.loadLogFile();\r\n\t\tif (guiPossible)\r\n\t\t\tGameLog.textPane = new GameLogTextPane();\r\n\t\telse\r\n\t\t\treturn;\r\n\t\tGameLog.log(MsgType.INIT, \"Log\", msgColor);\r\n\t\tGameLog.appendToPrepText(0, \"Game Log\\n\", msgColor);\r\n\t\tif (prepText == null)\r\n\t\t\tGameLog.prepText = new TreeMap<Integer, Pair<String, Color>>();\r\n\t}", "title": "" }, { "docid": "853ec76ebc9dcd030d4ddb1e2ff89c29", "score": "0.4143434", "text": "private void serverInventoryInitialized()\n {\n long start = System.currentTimeMillis();\n long serverSyncWaitTimeout = config.getServerTimeout() + 2 * ChangeRequestHttpSyncer.HTTP_TIMEOUT_EXTRA_MS;\n\n List<DruidServerHolder> uninitializedServers = new ArrayList<>();\n for (DruidServerHolder server : servers.values()) {\n if (!server.isSyncedSuccessfullyAtleastOnce()) {\n uninitializedServers.add(server);\n }\n }\n\n while (!uninitializedServers.isEmpty() && ((System.currentTimeMillis() - start) < serverSyncWaitTimeout)) {\n try {\n Thread.sleep(5000);\n }\n catch (InterruptedException ex) {\n throw new RE(ex, \"Interrupted while waiting for queryable server initial successful sync.\");\n }\n\n log.info(\"Checking whether all servers have been synced at least once yet....\");\n Iterator<DruidServerHolder> iter = uninitializedServers.iterator();\n while (iter.hasNext()) {\n if (iter.next().isSyncedSuccessfullyAtleastOnce()) {\n iter.remove();\n }\n }\n }\n\n if (uninitializedServers.isEmpty()) {\n log.info(\"All servers have been synced successfully at least once.\");\n } else {\n for (DruidServerHolder server : uninitializedServers) {\n log.warn(\n \"Server[%s] might not yet be synced successfully. We will continue to retry that in the background.\",\n server.druidServer.getName()\n );\n }\n }\n\n log.info(\"Calling SegmentCallback.segmentViewInitialized() for all callbacks.\");\n\n runSegmentCallbacks(\n new Function<SegmentCallback, CallbackAction>()\n {\n @Override\n public CallbackAction apply(SegmentCallback input)\n {\n return input.segmentViewInitialized();\n }\n }\n );\n }", "title": "" }, { "docid": "f610405f626bcd5de281e1031c27bf36", "score": "0.41380298", "text": "public void generateInitialSolution3(){\n int array[] = new int[numberOfJobs];\r\n for(int i = 0 ; i < numberOfJobs ; i ++ ){\r\n array[i] = -processingTime[i];\r\n }\r\n sortSequence(array);\r\n }", "title": "" }, { "docid": "3ff35e897664189212d9b318371275d5", "score": "0.41375166", "text": "public Long getJvmRTStartTimeMs() throws SnmpStatusException {\n/* 269 */ return new Long(getRuntimeMXBean().getStartTime());\n/* */ }", "title": "" }, { "docid": "c2b1320affbb12c25cc83b04a6ff0c9a", "score": "0.41370934", "text": "@Override\n public void init() {\n this.msgSent += 0;\n// this.msgSentInThisRound;\n// this.msgSentInThisRound = 0;\n this.msgReceived = 0;\n }", "title": "" }, { "docid": "cddf110f469c481ce0adf5471bc15dee", "score": "0.4136704", "text": "protected void initialize() {\n startingDist = encoders.get();\n }", "title": "" }, { "docid": "85ea466f2988d57429e405cfca1a843c", "score": "0.4132899", "text": "long getGen0CollectCount();", "title": "" }, { "docid": "382acbb2c97f8e01cca98461ecbbfc62", "score": "0.4132021", "text": "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:35:55.021 -0500\", hash_original_method = \"0ABA14D3C219E3137A12A8B54201A585\", hash_generated_method = \"1BEEE3D600CCD50D9170B9CA2284E416\")\n \npublic static void waitToFinish() {\n Runnable toFinish;\n while ((toFinish = sPendingWorkFinishers.poll()) != null) {\n toFinish.run();\n }\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "93d1582bef15906b0f1439fa3948356f", "score": "0.0", "text": "@Override\r\n\tpublic List<TareaDTO> selectAllTarea() {\n\t\treturn configJProcessDao.selectAllTarea();\r\n\t}", "title": "" } ]
[ { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.6905833", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "941cb2826e3c700358fcaba402e6bb01", "score": "0.66775143", "text": "@Override\r\n\tpublic void hissetmek() {\n\r\n\t}", "title": "" }, { "docid": "63918b2e510c9040bbddcac00095b41a", "score": "0.6605982", "text": "private void recuperation() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "6a98c5d2724fce37914819c5694da3c3", "score": "0.6509783", "text": "@Override\r\n\tpublic void anular() {\n\r\n\t}", "title": "" }, { "docid": "dae8b602ea36995333bfb23acf8fc88d", "score": "0.6496443", "text": "@Override\n\tpublic void respire() {\n\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "f099266a753a2faacd6b8dfa57904378", "score": "0.64321727", "text": "@Override\r\n\tpublic void courrir() {\n\t}", "title": "" }, { "docid": "69ade76a69c0f6c07e66b5d0e5136eb3", "score": "0.6425563", "text": "@Override\r\n\tpublic void grabar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1068dc3e7725abba37b41c9a52dee06b", "score": "0.6386121", "text": "@Override\r\n\tpublic void tatmak() {\n\r\n\t}", "title": "" }, { "docid": "6141981a3ecff744fc5ac85a76ccce98", "score": "0.63590497", "text": "@Override\r\n\tpublic void avlan() {\n\t\t\r\n\t}", "title": "" }, { "docid": "98fb55d46118273a6e8a6d23841c620d", "score": "0.6327681", "text": "@Override\n\tpublic void eati() {\n\t\t\n\t}", "title": "" }, { "docid": "0792d032a803e20f3b87637fd91001d5", "score": "0.62811846", "text": "@Override\n\tpublic void getSugary() {\n\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.6276059", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "b7cead8eab6faf887c06d3b10c67267c", "score": "0.620242", "text": "@Override\n\t\t\tprotected void readyRun() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b7cead8eab6faf887c06d3b10c67267c", "score": "0.620242", "text": "@Override\n\t\t\tprotected void readyRun() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a8ee8a5581ce765ec4ab398c0459e014", "score": "0.61750215", "text": "@Override\r\n\tpublic void koklama() {\n\r\n\t}", "title": "" }, { "docid": "0e69410f7365f8e3379273ee4419fb49", "score": "0.6149904", "text": "@Override\r\n\tprotected void init() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "d65d6c17fb978c0d576ada2c03cd49fe", "score": "0.61387193", "text": "@Override\n\tpublic void apagar() {\n\t\t\n\t}", "title": "" }, { "docid": "8bae22ac805011d799a49bd7b5316540", "score": "0.612467", "text": "@Override\n public int describeContents() {\n // Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "8c5b7f2508d01c106c784ecca7153f46", "score": "0.6119395", "text": "@Override\n\tvoid comer() {\n\t\t\n\t}", "title": "" }, { "docid": "7bc643d9ac7542f10430da7f200395d4", "score": "0.610188", "text": "@Override\n\tpublic void fiyat() {\n\t\t\n\t}", "title": "" }, { "docid": "7dadb1a7e45c020b2193294044375a9d", "score": "0.60646844", "text": "@Override\r\n \tpublic void init() {\n \t\t\r\n \t}", "title": "" }, { "docid": "04771723ee2c07e5fa5fe8c322190beb", "score": "0.60607964", "text": "@Override\n\tpublic void affichage() {\n\t\t\n\t}", "title": "" }, { "docid": "b7f027eb6ff62218a28c15c608504db7", "score": "0.6055265", "text": "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.60353535", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "9dd1bbd8c949b94d0e93b83bfc68c88a", "score": "0.6021345", "text": "@Override\n\tpublic void aeronoticalinfo() {\n\t\t\n\t}", "title": "" }, { "docid": "2762ca3c2d0df2e43c2974f74b6f5794", "score": "0.6013198", "text": "public void mo23507LF() {\n }", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e8c159f9ce46ed87e18031b3ec3ef04c", "score": "0.5983872", "text": "@Override\n\t\t\tprotected void realiceElCaso() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "e8c159f9ce46ed87e18031b3ec3ef04c", "score": "0.5983872", "text": "@Override\n\t\t\tprotected void realiceElCaso() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "119b459aa82980ed18ed9f73e4c0c1f6", "score": "0.5970375", "text": "public void mo8248e() {\n }", "title": "" }, { "docid": "c7fe9cc2a6c42140d48d92c4796a998c", "score": "0.5924626", "text": "@Override\r\n\t\t\t\t\t\tpublic void visitEnd() {\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "092f51e9c99cd4188e1aae23e1830dfd", "score": "0.58991617", "text": "protected void func_70626_be() {}", "title": "" }, { "docid": "ab499170bffb402933a50d63a97e69dd", "score": "0.5896488", "text": "@Override\r\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "77d32d2a2070d9c3117ff146ac04f114", "score": "0.5891585", "text": "@Override\r\n\tpublic void climaChuvoso() {\n\r\n\t}", "title": "" }, { "docid": "4790ff4cb67532ccdfaae8968e73fbc3", "score": "0.58832747", "text": "@Override\n protected void initData() {\n\n\n }", "title": "" }, { "docid": "023182f0f855d46c66b41a6d83583efa", "score": "0.5871911", "text": "@Override\r\n\tpublic void singen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8d96d27dfdf5b1a8cc8b8a7627c83bc1", "score": "0.5869012", "text": "@Override\n public void afficher() {\n\n }", "title": "" }, { "docid": "298aa14afe5846b172f76bcf90564013", "score": "0.58663046", "text": "@Override\n\tprotected void initAfterData() {\n\t\t\n\t}", "title": "" }, { "docid": "e065a728f99482f0172c0250b07109a9", "score": "0.58587575", "text": "public void MIENTRAS() {\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "6c15d2233a095a738527f0099df0e328", "score": "0.58534765", "text": "@Override\n\tprotected void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7da3b15ef60da758589933b21890a100", "score": "0.5835782", "text": "@Override\n\t\t\tpublic void buscar() {\n\n\t\t\t}", "title": "" }, { "docid": "d56c498b25d1ea77dc09f49efcf80f6c", "score": "0.58347356", "text": "@Override\r\n\tpublic void aumentaFatorAcidade() {\n\r\n\t}", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "da813fa08844d9ea0dcf6109d766cb06", "score": "0.5810359", "text": "@Override\n public void geefOpleidingNiveau() {\n }", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "ac3fa8f374744c1d8419fb42b093eb87", "score": "0.58098364", "text": "@Override\n public void ATOM() {\n\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "17bf5dfb3822657f7beb964bbcaf351d", "score": "0.58010787", "text": "private void getdata() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c1cba83b623b4186565c3383ace251b9", "score": "0.5798524", "text": "@Override\n public void RES() {\n\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "04320a5131c4ec5a83b61f5170f3303b", "score": "0.578828", "text": "private void refreash() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "96aa62cb7c02dc761fce03adeea3bae6", "score": "0.5768868", "text": "public void consumidor() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "f76cff0faf8f5cac2bb5c9fa073b3900", "score": "0.5732497", "text": "private static void ispisiRemi() {\n\t\t\n\t}", "title": "" }, { "docid": "0da844a8d21284fc890b9866b17625b3", "score": "0.5729389", "text": "public void auton() {\r\n\r\n\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "e0989255fd1af22841693489e1afa33b", "score": "0.57214063", "text": "public void mo24349a() {\n }", "title": "" }, { "docid": "b860b78be8e10589ee5bd58e2ab7be8e", "score": "0.57196456", "text": "@Override\r\n\tpublic void autonomous() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "08ff281f85800b58e0eb77195be25bfc", "score": "0.5708199", "text": "public void finito() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "24b649f4fd4e2e8f4e195b19c09f4c8b", "score": "0.56936413", "text": "@Override\n public void FUNMAYORQ() {\n\n }", "title": "" }, { "docid": "b3c7aad07c4af0cfec14c4b0f0f289ef", "score": "0.5692504", "text": "@Override\n\tpublic void arb() {\n\n\t}", "title": "" }, { "docid": "8657ef720f12b2480d4363be4e46781e", "score": "0.5691313", "text": "protected boolean method_4310() {\r\n return true;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "45fd99bd8793c6d67c4f276a27b4fdca", "score": "0.5685153", "text": "@Override public int getDefensa(){\n\n return 0;\n\n }", "title": "" } ]
95e6473bdb5dd7def607ee8d3a4cbb0f
System.out.println("\tGot a First Boolean!");
[ { "docid": "eaaa90c29ef23fcbf4c2bf7f59793500", "score": "0.6217805", "text": "public void caseAFirstBoolean(AFirstBoolean node){\n\tnode.getTrue().apply(this);\n int reg = -1;\n for (int i = 0; i < registers.length;i++){\n if (registers[i] == true && reg == -1){\n reg = i;\n registers[i] = false;\n exprstack.push(i);\n }\n }\n System.out.println(\"\\tli $t\" + reg + \", 1\"); \n}", "title": "" } ]
[ { "docid": "3966f47b02941c628e0ef008c0ffa801", "score": "0.7154335", "text": "@Override\n public void println(boolean b) {\n println(String.valueOf(b));\n }", "title": "" }, { "docid": "9692641847bf260058e2c6ea47bf6b11", "score": "0.7032163", "text": "public static void main (String [] args){\n\n Scanner scan = new Scanner (System.in);\n System.out.println(\"Enter boolean value: \");\n boolean value = scan.nextBoolean();\n if(value != true){\n System.out.println (\"true --> \" + value);\n }else{\n System.out.println (\"false --> \" + value);\n\n }\n\n }", "title": "" }, { "docid": "d94a5f225e97c65ba7fe28bfc062a31a", "score": "0.68924385", "text": "public static void main(String[] args){\n boolean t = true;\n char c = 'B';\n short s = 22336;\n int i = 5200;\n float f = 52.212f;\n double d = 52.212;\n \n \n System.out.printf(\"Boolean t = %b\\n\", t);\n System.out.printf(\"Boolean c = %c\\n\", c);\n System.out.printf(\"Boolean s = %d\\n\", s);\n System.out.printf(\"Boolean i = %d\\n\", i);\n System.out.printf(\"Boolean f = %f\\n\", f);\n System.out.printf(\"Boolean f = %.2f\\n\", f);\n System.out.printf(\"Boolean d = %f\\n\", d);\n System.out.printf(\"Boolean d = %.3f\\n\", d);\n }", "title": "" }, { "docid": "cd6431d2fa03337eae4b6c95b16554c5", "score": "0.68568313", "text": "boolean getTestBool();", "title": "" }, { "docid": "05aa5499bd749479e19a17addea30232", "score": "0.6848972", "text": "public static void main(String[] args) {\n\n boolean benar = true;\n boolean salah = false;\n\n System.out.println(benar);\n System.out.println(salah);\n }", "title": "" }, { "docid": "573cd63ba22bd8650fb76433e305eab2", "score": "0.6672423", "text": "Boolean isBooleanTerm1();", "title": "" }, { "docid": "b63b7c0cafcdaa7fef69597c6c14e1a5", "score": "0.66518587", "text": "boolean nextBoolean();", "title": "" }, { "docid": "69e2b001ef65e5715354efa464f389b2", "score": "0.664357", "text": "public static void java_Pasrseboolean() {\n\t\tString s1 = \"TRue\";\r\n\t\tString s2 = \"yes\";\r\n\r\n\t\tString s3 = null;\r\n\r\n\t\t// create 2 boolean primitives bool1, bool2\r\n\t\tboolean bool1, bool2;\r\n\r\n\t\t/**\r\n\t\t * static method is called using class name apply result of parseBoolean on s1,\r\n\t\t * s2 to bool1, bool2\r\n\t\t */\r\n\t\tbool1 = Boolean.parseBoolean(s1);\r\n\t\tbool2 = Boolean.parseBoolean(s2);\r\n\t\tboolean bool3 = Boolean.parseBoolean(s3);\r\n\r\n\t\tString str1 = \"Parse boolean on \" + s1 + \" coverted \" + bool1;\r\n\t\tString str2 = \"Parse boolean on \" + s2 + \" coverted \" + bool2;\r\n\r\n\t\t// print b1, b2 values\r\n\t\tSystem.out.println(str1);\r\n\t\tSystem.out.println(str2);\r\n\t\tSystem.out.println(bool3);\r\n\t}", "title": "" }, { "docid": "2f60e4b948928e696248712fdb43cb39", "score": "0.66376305", "text": "void mo34217a(Boolean bool);", "title": "" }, { "docid": "d944727cb9c31d0ff54316f1348d68e9", "score": "0.65274197", "text": "boolean True();", "title": "" }, { "docid": "fc47c2b62920577115e8dd1b547947a0", "score": "0.6524161", "text": "@Test\n public void hello() {\n System.out.println(\"i am here\");\n Boolean bool = new Boolean(null);\n if(bool == true){\n System.out.println(\"true\");\n }else{\n System.out.println(\"false\");\n }\n }", "title": "" }, { "docid": "25bfafe1604ef7121b3210768e6dc5ec", "score": "0.6523887", "text": "public void testBoolean() throws Exception {\n runPassPairs(Boolean.class, new Object[] { \"true\", Boolean.TRUE, \"false\", Boolean.FALSE, \"True\", Boolean.TRUE,\n \"False\", Boolean.FALSE, \"truE\", Boolean.TRUE, \"falsE\", Boolean.FALSE, \"yes\", Boolean.FALSE, \"on\",\n Boolean.FALSE, \"1\", Boolean.FALSE, }, true);\n }", "title": "" }, { "docid": "d06d0c16a4bc4eb09da41cfe334dc6d5", "score": "0.64792275", "text": "public static void main(String[] args) {\n\t\n\tboolean a=!true;\n\t\n\tSystem.out.println(\"The value of boolean variable is \"+a);\n\t\n\tboolean snow=true;\n\t\n\t//if it's not snowing -> i'll go to class, otherwise I'stay home\n\t\n\tif (!snow) {\n\t\tSystem.out.println(\"I'll go to class\"); //will not execute since it's false\n\t}\n\t\t\n\tint x=10;\n\tint y=20;\n\t\n\tif (!(x>y)) {\n\t\tSystem.out.println(\"Hello\");\n\t}\n\t}", "title": "" }, { "docid": "aa4fdf791f10695906bc8d5b8c923895", "score": "0.6393855", "text": "Boolean isBooleanTerm2();", "title": "" }, { "docid": "f7155053926bb5794d78a50c0f955266", "score": "0.63651854", "text": "@Test\r\n\tpublic static void main(String[] args) {\n System.out.println(\"·Ü¶·”ÄÈËÉúŁĄŁĄŁĄŁĄŁĄŁĄ\");\r\n \r\n System.out.print(true);\r\n \r\n \r\n \r\n\t}", "title": "" }, { "docid": "32653f50d3c6254d506b8adab0c149bb", "score": "0.63590926", "text": "public static void javaboolean() {\n\t\tBoolean b = new Boolean(true);\r\n\r\n\t\t// create a boolean primitive type bool\r\n\r\n\t\t// assign primitive value of b to bool\r\n\t\tboolean bool = b.booleanValue();\r\n\r\n\t\tString str = \"Primitive value of Boolean object \" + b + \" is \" + bool;\r\n\r\n\t\t// print bool value\r\n\t\tSystem.out.println(str);\r\n\t}", "title": "" }, { "docid": "783f54a47c551c1dc0e609b47b96f393", "score": "0.6316142", "text": "void isTrue();", "title": "" }, { "docid": "0a99f533a85a8e9c3e843c62f749a490", "score": "0.62983316", "text": "protected void booleanStart() {\r\n Boolean bool = null;\r\n \r\n _token = nextToken();\r\n bool = ( \r\n _token.equals( Y ) || _token.equals( y ) || \r\n _token.equals( YES ) || _token.equals( yes ) ||\r\n _token.equals( TRUE ) || _token.equals( true_ ) \r\n ) ? Boolean.TRUE : Boolean.FALSE;\r\n _stack.push( bool );\r\n }", "title": "" }, { "docid": "3aa83e2757d7119ac9b5dbac0040ea94", "score": "0.62596107", "text": "public static void printResult(final boolean result) {\n\t\tif (result) {\n\t\t\tSystem.out.println(\"You Won!!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"You Lost!!\");\n\t\t}\n\t}", "title": "" }, { "docid": "121d470cc116ba5fd5896d4a61fea827", "score": "0.6234273", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"True는 가능합니다. 클래스의 경우 첫 글자만 대문자로 쓰는 게 관례이기 클래스로 사용하는 것이 바람직합니다.\");\n\t\tSystem.out.println(\"true의 경우 예약어이기 때문에 불가능합니다.\");\n\t\n\t}", "title": "" }, { "docid": "863c2a90cb776493347802da9c48fc80", "score": "0.62328196", "text": "public void myMethod(boolean checked){\n \n String result = \"Test\";\n \n if(checked){\n \n }\n \n System.out.println(result);\n }", "title": "" }, { "docid": "5d7ce36a77f43f2ce0630e39cbcd8258", "score": "0.6215224", "text": "@Override\n public String toString() {\n return String.valueOf(this.isBool());\n }", "title": "" }, { "docid": "5e0fca48055bbfbbfd2600a758a68be9", "score": "0.6196821", "text": "public static void main(String[] args){\n boolean aa = true;\n boolean bb = false;\n boolean cc = 25>30? true:false;\n System.out.println(cc);\n\n }", "title": "" }, { "docid": "7a6cdc575744a282e9936357447ec1b9", "score": "0.6167055", "text": "boolean getBooleanValue();", "title": "" }, { "docid": "081daa433b54c149ca37d27afb268050", "score": "0.6122852", "text": "Bool getBool();", "title": "" }, { "docid": "b943a5366ea2b723309391373e4af77d", "score": "0.60979533", "text": "public static void main(String[] args) {\n\t\tboolean bCheck=true;\r\n\t\tbCheck=!bCheck; // 원래 bCheck의 true의 반대값을 저장한다는 말\r\n\t\tfor(int i=0;i<10;i++) \r\n\t\t{bCheck=!bCheck;\r\n\t\tSystem.out.println(\"bCheck=\"+bCheck);\r\n\t\t}\r\n\t\t\r\n\t\tboolean Man=false;\r\n\t\tMan=!Man;\r\n\t\tSystem.out.println(\"Man=\"+Man);\r\n\t\tif(Man==true)\r\n\t\t{ \r\n\t\t\tSystem.out.println(\"본인\");\r\n\t\t} \r\n\t\telse\r\n\t\t{ \r\n\t\t\tSystem.out.println(\"컴퓨터\");\t\t\r\n\t\t} //턴제나 번갈아가면서 하는 것은 부정연산자로 만드는 경우가 많다.\r\n\t\r\n\t}", "title": "" }, { "docid": "428a946155a94b018c78384b32e886dc", "score": "0.6083794", "text": "private static void printSuccess () {\n System.out.println();\n System.out.println(\"Success!\");\n System.out.println();\n }", "title": "" }, { "docid": "e39ae62b0a488884765a4f0687895643", "score": "0.60749507", "text": "boolean getBoolValue();", "title": "" }, { "docid": "e39ae62b0a488884765a4f0687895643", "score": "0.60749507", "text": "boolean getBoolValue();", "title": "" }, { "docid": "ede4731d9d332fdb5de49bf457772cbd", "score": "0.6068738", "text": "public Boolean testBoolean(Boolean b)\n {\n return b;\n }", "title": "" }, { "docid": "c089c38e01ed7813a87c32aae2938bd1", "score": "0.6067074", "text": "Boolean getBooleanValue();", "title": "" }, { "docid": "a8453b2f1022207021bbedb8705fc935", "score": "0.6063664", "text": "public static void java_boolean_toString() {\n\t\tboolean bool1, bool2;\r\n\r\n\t\t// assign values to bool1, bool2\r\n\t\tbool1 = true;\r\n\t\tbool2 = false;\r\n\r\n\t\t// create 2 String's s1, s2\r\n\t\tString s1, s2;\r\n\r\n\t\t/**\r\n\t\t * static method is called using class name assign string value of primitives\r\n\t\t * bool1, bool2 to s1, s2\r\n\t\t */\r\n\t\ts1 = Boolean.toString(bool1);\r\n\t\ts2 = Boolean.toString(bool2);\r\n\r\n\t\tString str1 = \"String value of boolean primitive \" + bool1 + \" is \" + s1;\r\n\t\tString str2 = \"String value of boolean primitive \" + bool2 + \" is \" + s2;\r\n\r\n\t\t// print s1, s2 values\r\n\t\tSystem.out.println(str1);\r\n\t\tSystem.out.println(str2);\r\n\t}", "title": "" }, { "docid": "f6020852fe367c59f0f756674c6cc509", "score": "0.60581124", "text": "public void talked(boolean gtalk) {\n\t\t//Positive\n\t\tif(gtalk)\n\t\t\tSystem.out.println(\"Wizard-\\\"You are such a nice young man\\\"\\nThe wizard reaches into his hat and pulls out a nickel and hands it to you\\nyou examine it and reach into your pocket\\nYou realize that he opened some sort of portal in your pocket and re-gifted you your own nickel\\nAngrey you turn to the wizard but he's already disappeared\\nYou hear ammused cackeling in the woods around you\\nGod damned wizards\");\n\t\t//Negative\n\t\telse\n\t\t\tSystem.out.println(\"The wizard gives you an odd look\\nHe is old, perhaps he's def\\nHe begins chanting a battle spell\");\n\t}", "title": "" }, { "docid": "e200f99a779cd7161549981010e4e1a9", "score": "0.60558957", "text": "public static void main(String[] args) {\n\t\t\n\t\tboolean flag=true;\n\t\t\n\t\tif(flag) {\n\t\t\tString answer=\"yes\";\n\t\t\t\n\t\t}\n\t\t//System.out.println(answer);//Scope of variable answer is not visible outside of the block\n\t\t\n\t}", "title": "" }, { "docid": "3a712b3863b2ef44f866b55fa7df9b66", "score": "0.6055556", "text": "public static String f(boolean b) {\n\t\treturn b ? \"T\" : \"F\";\n\t}", "title": "" }, { "docid": "ffae1202f8254983a401200835d540e6", "score": "0.6015205", "text": "public void alg_PASSTOKEN(){\nTokenOut.value=true;\n//System.out.println(\"pass\");\n\n}", "title": "" }, { "docid": "ff2051c106d4b8c4bcec73e1a63d16e2", "score": "0.60142523", "text": "void nature() {\n\tSystem.out.println(\"Sides of square are equal and diagonals bisects perpendicularly\");\r\n}", "title": "" }, { "docid": "7af7747ec1712950ccbd34afb60027f8", "score": "0.60126156", "text": "private static void assertTrue( boolean ex ) {\n if ( ex ) { System.out.print( \".\" ); }\n else { System.out.print( \"X\" ); }\n }", "title": "" }, { "docid": "a53c7bc5eab665309caefb7839607386", "score": "0.60104626", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(true);\n\t\tSystem.out.println(\"!true=\"+!true);\n\t\tSystem.out.println(\"!false\"+!false);\n\t\tint x=100;\n\t\tSystem.out.println(\"(x < 200)\" + (x < 200));\n\t\tSystem.out.println(\"!(x < 200)\" + !(x < 200));\n\t\tSystem.out.println(\"!(5%2 == 0)\" + !(5%2==0));\n\t\tSystem.out.println(\"(5%2 != 0)\" + (5%2!=0));\n\t}", "title": "" }, { "docid": "d2f808bc8664ce2ebdfc6aabe957104d", "score": "0.5967666", "text": "System.out.println();", "title": "" }, { "docid": "cdbf11944e07ac1520cb116c13703a4d", "score": "0.594758", "text": "@Override\n public String toString() {\n return Boolean.toString(get());\n }", "title": "" }, { "docid": "d07904a47aa81653ef9f33be63723476", "score": "0.59275013", "text": "public boolean getTestBool() {\n return testBool_;\n }", "title": "" }, { "docid": "2c43d5d6f3881a109b9c48c6c422d108", "score": "0.59194493", "text": "public static void logicos() {\r\n\r\n\t\t// Declaracion de tipo Boolean\r\n\r\n\t\tBoolean on;\r\n\t\tBoolean off;\r\n\r\n\t\t// Asignacion de valores de tipos Boolean\r\n\r\n\t\ton = true;\r\n\t\toff = false;\r\n\r\n\t\t// Mostrar en pantalla el contendido de tipos Boolean\r\n\r\n\t\tSystem.out.println(\"\\nEjemplos de tipo Boolean:\");\r\n\t\tSystem.out.println(\"-----------------------------------\");\r\n\t\tSystem.out.println(\"Valor on.....: \" + on);\r\n\t\tSystem.out.println(\"Valor off....: \" + off);\r\n\t}", "title": "" }, { "docid": "f665fa934536bf4fbd000933fed878ae", "score": "0.5913902", "text": "public void write_boolean(boolean b) {\n this.write_atom(String.valueOf(b));\n }", "title": "" }, { "docid": "02f9b5a4481a9bcb6f61581222d8f265", "score": "0.5906978", "text": "void mo5341e(boolean z);", "title": "" }, { "docid": "65e5934a53f74b93b3e3d5dbde63a316", "score": "0.5903371", "text": "public void question3() {\n\n\t\tSystem.out.println();\n\n\t}", "title": "" }, { "docid": "2dacd2469a9b533dc470d9fb55db4c51", "score": "0.5901605", "text": "public boolean getSingleCorrect();", "title": "" }, { "docid": "50921a4dd5012d917f1fa2abe3df0852", "score": "0.5874645", "text": "void mo95007a(boolean z);", "title": "" }, { "docid": "2abe6f7ba128f0c696ba30d1164a22bd", "score": "0.5870171", "text": "void setBooleanTerm1(Boolean value);", "title": "" }, { "docid": "ed357cf8923656dda9fd8268cc1466e5", "score": "0.5862928", "text": "public static void main(String[] args) {\n System.out.println(\"hello\") ;\n\n\n //datatypes: String, int, double, float, boolean, byte\n\n\n String henk = \"henk\";\n String Henk = \"Henk\";\n\n henk = \"piet\";\n\n System.out.println (\"Henk\");\n\n int leeftijd = 16;\n leeftijd = leeftijd + 6;\n leeftijd +=6;\n leeftijd++;\n //leeftijd++;\n\n float snelstetijd = 56.66f;\n double nogpreciezer = 56.6666666666666666666666d;\n\n System.out.println(leeftijd);\n\n boolean snaphet = true; if(snaphet)\n (\n\n System.out.println(\"ik snap het\");\n )\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "a006e97900265c12acb54643947a65de", "score": "0.58579755", "text": "public boolean getTestBool() {\n return testBool_;\n }", "title": "" }, { "docid": "f010dd65b856a0a31e8e3aa66af6accc", "score": "0.5847358", "text": "boolean isBool();", "title": "" }, { "docid": "f010dd65b856a0a31e8e3aa66af6accc", "score": "0.5847358", "text": "boolean isBool();", "title": "" }, { "docid": "8191764295d62ea43e31caa758b7c205", "score": "0.5832267", "text": "@Test\n public void testBooleans() throws IOException {\n assertEqual(\"boolean\");\n }", "title": "" }, { "docid": "76be7d27ce2f7d753513e7cee7dea95f", "score": "0.58297473", "text": "void does(){\n\t\tSystem.out.println(\"Teaching\");\n\t }", "title": "" }, { "docid": "f4338ee75d48897ff114a0f881731299", "score": "0.58206886", "text": "void showAlgoOutput(boolean status);", "title": "" }, { "docid": "62951afd99b55a23a0f0040e419bcecf", "score": "0.58164203", "text": "void mo106515a(boolean z);", "title": "" }, { "docid": "363f23abb66baa9214a533e3a5d50abf", "score": "0.5797388", "text": "boolean isTerminal();", "title": "" }, { "docid": "dcb0863675acc0125121e30881650332", "score": "0.5792377", "text": "static void question() {\n String question = \"If you want to know more about it type yes otherwise type no. \";\r\n System.out.println(question);\r\n }", "title": "" }, { "docid": "fe6e0cbe03bbe1223affa2428c2fcf91", "score": "0.5789776", "text": "@Test\n public void testIsStun() {\n System.out.println(\"isStun\");\n \n boolean expResult = false;\n boolean result = zombie.isStun();\n assertEquals(expResult, result);\n \n }", "title": "" }, { "docid": "66d5e4a642a53639511ac87abfd86577", "score": "0.57892466", "text": "void mo5347h(boolean z);", "title": "" }, { "docid": "7f90db3c24742d80ccb4a5b62d961470", "score": "0.578793", "text": "public boolean input()\r\n {\n\r\n return(true);\r\n }", "title": "" }, { "docid": "6030ca2de296104ca982e7920b4b6095", "score": "0.57877207", "text": "private String boolToString(boolean bool) {\n\t\tif (bool) {\n\t\t\treturn \"Yes\";\n\t\t}\n\t\telse {\n\t\t\treturn \"No\";\n\t\t}\n\t}", "title": "" }, { "docid": "edfdb56071a41d20fdd34dfd13c73311", "score": "0.5785005", "text": "boolean javaBoolean();", "title": "" }, { "docid": "1afac04e231628e4fcdd99a8c3a9dfda", "score": "0.5783827", "text": "boolean pass();", "title": "" }, { "docid": "1ca81bb2d3d747ff139820d6137ce0dc", "score": "0.57809305", "text": "public static void main(String[] args) {\n boolean n=isEven(10);\n System.out.println(n);\n }", "title": "" }, { "docid": "2defdc42a3fbdafa87231a2cf248b0d8", "score": "0.5777945", "text": "public static void main(String[] args) {\n System.out.println(\"the result of ! true --->>\");\n System.out.println(! true);\n System.out.println(\"the result of ! false -->>\");\n System.out.println(! false);\n\n boolean isRecording = false;\n // second you can use it in front of a boolean variable and it will give opposite value\n System.out.println(\"the result of ! isRecording -->\");\n\n // third you can use it in front of boolean expression\n // boolean espression is any expression that result in a boolean value\n // for example 7>5 , x>10 , y == 20, x<= 100, x>y , x>10 && x <100\n\n System.out.println(\"the result of !(7>5) is \");\n System.out.println(!(7>5));\n\n int x = 7;\n System.out.println(\" result of (x>10) is \");\n System.out.println(x > 10);\n System.out.println(\" result of !(x>10) is \");\n System.out.println(!(x > 10));\n\n // !(x>10) -->> x<=10\n }", "title": "" }, { "docid": "d623a623742032647516a3d0a56ab822", "score": "0.57777756", "text": "public abstract Boolean getBooleanValue();", "title": "" }, { "docid": "74c42d15ca7f74dafaa89f5e6b832b15", "score": "0.5774755", "text": "public void visit(FactBool f) {\n\t\tf.struct = Tab.find(\"bool\").getType();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "af67a67d299a02f08ea26d91d7c17269", "score": "0.57718855", "text": "void mo93897a(boolean z);", "title": "" }, { "docid": "54a85fdd66c3d7b43b3d3db8ca0f1b2b", "score": "0.57711643", "text": "public static String booleanToString(boolean bResult) {\n if (bResult == true)\n return \"YES\";\n return \"NO\";\n }", "title": "" }, { "docid": "d381a51190cdc49b26bcb9495d43fe6c", "score": "0.5767752", "text": "boolean hasIsTerminal();", "title": "" }, { "docid": "ea2732648ed65f109ec3192801a90540", "score": "0.57653165", "text": "void mo24619a(boolean z);", "title": "" }, { "docid": "0cc3f51b9611c3c9b4ce9d522d5bb51a", "score": "0.5764622", "text": "public static void main(String[] args){\n\n\t// 불린형 변수\n\t\tboolean a;\n\t\ta=true;\n\t\ta=false;\n\n\t\t\n\t\tSystem.out.println('b'-'a');\n\t}", "title": "" }, { "docid": "44428dd573cef0d71b2ae48c0a260936", "score": "0.57582474", "text": "public static void returnBoolean(IConsole console, boolean value) {\n console.display(Boolean.toString(value));\n }", "title": "" }, { "docid": "7b6215dd1678c7ad15d247ce535cdba5", "score": "0.57548046", "text": "public boolean b() {\n }", "title": "" }, { "docid": "664c8dad83187018ce9d79a3aad11fd1", "score": "0.57534844", "text": "boolean getVBool();", "title": "" }, { "docid": "3498654e9caebaf65ee41e2642b42613", "score": "0.5746965", "text": "public static void main(String[] args) throws IOException {\n boolean bool = isPalindrome();\n System.out.println(bool);\n }", "title": "" }, { "docid": "9decfa9b8cd1bf25b4749906df18da00", "score": "0.5745736", "text": "public static void main(String[] args) {\n\n\t\t boolean thirsty;\n\t\t boolean sleepy;\n\t\t String drink;\n\t\t \n\t\t Scanner scan=new Scanner(System.in);\n\t\t System.out.println(\"Are you thirsty ?\");\n\t\t thirsty=scan.nextBoolean();\n\t\t \n\t\t \n\t\t System.out.println(\"Are you sleepy ?\");\n\t\t sleepy=scan.nextBoolean();\n\t\t \n\t\t \n\t\t if(thirsty && !sleepy){\n\t\t drink=\"Water\";\n\t\t }else if(thirsty && sleepy){\n\t\t drink=\"Coffee\";\n\t\t }else if(!thirsty && sleepy){\n\t\t drink=\"Tea\";\n\t\t }else {\n\t\t drink=\"Nothing\";\n\t\t } System.out.println(\"Looks like you need \" + drink);\n\t\t \n\t\t \n\t\t \n\t\t }", "title": "" }, { "docid": "3843cd7b1cf604ce7309c1eca13e3cbe", "score": "0.57419735", "text": "void f(boolean b){}", "title": "" }, { "docid": "161d7c4a4cd9f520304d36daa9d51ee2", "score": "0.5733794", "text": "Boolean isBooleanTerm1Avl();", "title": "" }, { "docid": "a6ebf5b8430a25aa552f2b6a9242b07f", "score": "0.57323986", "text": "public boolean tv();", "title": "" }, { "docid": "934f0889897bbcad3f8edca8e83d83c2", "score": "0.5724376", "text": "public static void LS()\n {\n boolean success = false;\n System.out.println(\"LS!!!\");\n }", "title": "" }, { "docid": "b48d00c35538614ac2773d276958929e", "score": "0.57230276", "text": "protected boolean i() {\n/* 137 */ return Boolean.parseBoolean(getAccentunder());\n/* */ }", "title": "" }, { "docid": "4b2921a2dac3ee636db352d38d7421b3", "score": "0.57168055", "text": "void mo115457b(boolean z);", "title": "" }, { "docid": "42577942b0b5b1b10f80fe84f22458e3", "score": "0.57148206", "text": "private void falseCommand(){\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "221b9efa5b8dbf9392435c47bce7df7a", "score": "0.571138", "text": "@Test\n public void testBooleanReadPass() {\n System.out.println(\"BooleanReadPass\");\n String email = \"admin@ms.com\";\n String input = \"admin\";\n boolean expResult = true;\n boolean result = instance.BooleanReadPass(email, input);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "a1850a473d8d402412975e40b1d27c32", "score": "0.5710659", "text": "native static void debug(boolean value);", "title": "" }, { "docid": "680c184299cf2ac977a0cfa32a68666a", "score": "0.56984675", "text": "public static void show() {\n var thing =\n (Math.random() > 0) ? \"Hello\" : 1;\n\n }", "title": "" }, { "docid": "3ca7d206596d18c345c363a9f681517d", "score": "0.5693816", "text": "public void setTrue() {\n state = true;\n }", "title": "" }, { "docid": "f05034f23d2d40523833978432707c32", "score": "0.5690509", "text": "void mo115456a(boolean z);", "title": "" }, { "docid": "3e4111f780010954ab3612f8d244cfdb", "score": "0.5688053", "text": "void mo5343f(boolean z);", "title": "" }, { "docid": "afd301034b75641f967eea9abce6c194", "score": "0.56835216", "text": "@Override\n\tpublic String toString () { \n\treturn ( value ? \"(true)\" : \"(false)\" );\n }", "title": "" }, { "docid": "a11e6ee1d37cc99dd3e2449b82cad188", "score": "0.5677808", "text": "R bool();", "title": "" }, { "docid": "b6071e22cde41429408b0d4836269f92", "score": "0.5674683", "text": "public static void main(String[] args) {\n\n int sayi1=25;\n int sayi2=30;\n\n boolean esitMi=sayi1==sayi2;\n System.out.println(sayi1 + \"=\" + sayi2 + \"=\" + esitMi);\n\n boolean buyukMu=sayi1>sayi2;\n System.out.println(sayi1 + \">\" + sayi2 + \"=\" + buyukMu);\n\n boolean kucukMu=sayi1<sayi2;\n System.out.println(sayi1 + \"<\" + sayi2 + \"=\" + kucukMu);\n\n }", "title": "" }, { "docid": "9ab0e50a698ea8c565e9aaee8875dbc2", "score": "0.5671221", "text": "public boolean sayHelloWorld() {\n System.out.println(\"Hello World! (stdout)\");\r\n System.err.println(\"Hello World! (stderr)\");\r\n return true;\r\n\t}", "title": "" }, { "docid": "280f3907b3750a64ebeaaee8c2367b83", "score": "0.5669658", "text": "public static void main(String[] args) {\n\n\t\tboolean b = true;\n\t\tboolean classToday = true;\n\n\t\tif (b) {\n\n\t\t\tSystem.out.println(\"hello\");\n\t\t\tif (classToday) {\n\t\t\t\tSystem.out.println(\"hello my friends\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Bye\");\n\n\t\t}\n\n\t\tSystem.out.println(\"I am continues code\");\n\t}", "title": "" }, { "docid": "b9fb514f4792ed091f86851d5e23b62d", "score": "0.5664873", "text": "public void mo16323o(boolean z) {\n }", "title": "" }, { "docid": "6463174e6bf3d3e3fe68f6277aec72fe", "score": "0.56642777", "text": "public boolean booleanValue();", "title": "" }, { "docid": "8191bc7230e0c172cc2da2bba05903c3", "score": "0.56609714", "text": "void mo62257a(boolean z);", "title": "" } ]
b0155b733b9230b4a8eb88fc3e3f813b
batcher.draw(retry, 136/228, midPointY + 10, 56, 14);
[ { "docid": "ae10fff60f660e1be782d95c7bdf9c27", "score": "0.68706995", "text": "private void drawRetry() {\n\t\tAssetLoader.whiteFont.setScale(0.06f, -0.06f);\n\t\tAssetLoader.whiteFont.draw(batcher, \"TAP TO RETRY\",\n\t\t\t\t34, midPointY + 90);\n\t}", "title": "" } ]
[ { "docid": "f9b5b97a44201e8d5c4e4f75ebc95040", "score": "0.6810204", "text": "@Override\n public void draw(Batch batch) {\n }", "title": "" }, { "docid": "7737dd57bb8c8d5592d3766595b33113", "score": "0.6593715", "text": "@Override\n protected void drawFinal() {\n }", "title": "" }, { "docid": "d9e7266b6516d858091d5f7f702df5e0", "score": "0.64667165", "text": "public void draw(SpriteBatch batch) {\n\n float xFix = -0.075f;\n //this multplied with width of rectangle must be as close to 1.00000f as possible\n float widthMultiplier = 1.1759999f;\n\n if (getStatus() == READY) {\n if (noticed) {\n batch.draw(\n fallingTrapNoticed,\n getX() + xFix,\n getY(),\n getWidth() * widthMultiplier,\n getHeight()\n );\n } else {\n batch.draw(\n standTexture,\n getX() + xFix,\n getY(),\n getWidth() * widthMultiplier,\n getHeight()\n );\n }\n } else if (getStatus() == FALLING) {\n batch.draw(\n getFallAnimation().getCurrentFrame(),\n getX() + xFix,\n getY(),\n getWidth() * widthMultiplier,\n getHeight()\n );\n } else if (getStatus() == VANISHING) {\n if (getVanishAnimation().getCurrentFrame() != null) {\n batch.draw(\n getVanishAnimation().getCurrentFrame(),\n getX() + xFix,\n getY(),\n getWidth() * widthMultiplier,\n getHeight()\n );\n }\n } else if (getStatus() == TRIGGERED) {\n if (getTriggerAnimation().getCurrentFrame() != null) {\n batch.draw(\n getTriggerAnimation().getCurrentFrame(),\n getX() + xFix,\n getY(),\n getWidth() * widthMultiplier,\n getHeight()\n );\n } else {\n batch.draw(\n standTexture,\n getX() * xFix,\n getY(),\n getWidth() * widthMultiplier,\n getHeight()\n );\n }\n }\n }", "title": "" }, { "docid": "69466ed1d9780cbe64b4c18987564928", "score": "0.6415312", "text": "@Override\r\n\tpublic void drawCustomer(Batch batch, float parentAlpha) {\n\t\tif(rect!=null)\r\n\t\t{\r\n\t\t\tfloat rate=(float)8/cap;\r\n\t\t\tfloat origin=(int) (16+145-145*rate);\r\n\t\t\tfloat delta=(float)index*145/cap;\r\n\t\t\tint y=(int) (origin-delta);\r\n\t\t\trect.setY(y);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b770cdb113aabcad1c3610bf74419116", "score": "0.6344606", "text": "private void drawDamage(Batch batch) {\n\t}", "title": "" }, { "docid": "8f9a7df01a618d2d244146b9ff84360f", "score": "0.6341448", "text": "public void draw(){\n for(int j=0;j<h;j++){\n for(int i=0;i<w;i++){\n stroke(noise((float)i*noiseResolution,(float)j*noiseResolution,frameCount*timeResolution)*255);\n point(i,j);\n\n }\n }\n }", "title": "" }, { "docid": "844973e7ce29c5e718413930090fa2b7", "score": "0.6271214", "text": "@Override\n\tprotected void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "ff21e0a007b4c35d321fb2fd181ddc96", "score": "0.62626773", "text": "@Override\r\n\tpublic void draw() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7bb046eaaafd5095f4dcc30be8fc2a03", "score": "0.6260674", "text": "@Override\r\n\tpublic void draw() {\n\r\n\t}", "title": "" }, { "docid": "fcc07b0ab399ebc2f249e4096adf1825", "score": "0.6223472", "text": "public void buff()\n\t{\n\t\tbufferedImage = new BufferedImage(w, h, bufferedImage.TYPE_INT_ARGB);\n\t\tGraphics g = bufferedImage.getGraphics();\n \tfor(int count = 0; count < inputAsNumber; count++)\n\t\t{\n\t\t\tif(count == inputAsNumber - 1)\n\t\t\t{\n\t\t\t\tg.setColor(Color.RED);\n\t\t\t\tg.drawLine(x, y, random(x), random(y));\n\t\t\t\tdisplayBufferedImage(bufferedImage);\n\t\t\t\tx = random(x);\n\t\t\t\ty = random(y);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\tif(count == 0)\n\t\t\t\t{\n\t\t\t\t\tg.drawLine(100, 100, random(100), random(100));\n\t\t\t\t\tdisplayBufferedImage(bufferedImage);\n\t\t\t\t\tx = random(x);\n\t\t\t\t\ty = random(y);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\t\t\n\t\t\t\t\tg.drawLine(x, y, random(x), random(y));\n\t\t\t\t\tdisplayBufferedImage(bufferedImage);\n\t\t\t\t\tx = random(x);\n\t\t\t\t\ty = random(y);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\n\t\t}\n\t}", "title": "" }, { "docid": "df777c2987c26bd60bc4f42ce3d00d0a", "score": "0.62006503", "text": "@Override\n public void draw(SpriteBatch batch) {\n\n }", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.61965495", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.61965495", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.61965495", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.61965495", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.61965495", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "804721d52f6d17048d41ef31eccdc500", "score": "0.6177599", "text": "@Override\r\n public void draw() {\n }", "title": "" }, { "docid": "c4906f8ce45c5ec3d19fbdea7040ebf5", "score": "0.6157822", "text": "@Override\n\tpublic void draw() {\n\n\t}", "title": "" }, { "docid": "e7b1cd4e0b93524d1cd929317b4bc721", "score": "0.61439776", "text": "public void draw() {\t\r\n\t}", "title": "" }, { "docid": "ab350a8e8fb44b96149aa04f2fa0405f", "score": "0.612879", "text": "private void drawReady() {\n\t\tAssetLoader.helvetica.setScale(0.06f, -0.06f);\n\t\tAssetLoader.helvetica.draw(batcher, \"TAP TO START\",\n\t\t\t\t44, midPointY - 70);\n\t}", "title": "" }, { "docid": "c1299fb6491cb2b052201bfd81772949", "score": "0.6117068", "text": "public void drawnextPoints() {\n\t\t\n\t BaseLocation getExpansionLocation = InformationManager.Instance().getExpansionLocation;\n\t BaseLocation secondStartPosition = InformationManager.Instance().getSecondStartPosition();\n\t TilePosition getLastBuildingLocation = InformationManager.Instance().getLastBuildingLocation;\n\t TilePosition getLastBuildingFinalLocation = InformationManager.Instance().getLastBuildingFinalLocation;\n\t \n\t \n\t \n\t\tif(secondStartPosition!= null) {\n\t\t\tMyBotModule.Broodwar.drawTextScreen(10, 120, \"secondStartPosition: \" + secondStartPosition.getTilePosition());\n\t\t\tMyBotModule.Broodwar.drawTextMap(secondStartPosition.getPosition(), \"secondStartPosition\");\n\t\t}else {\n\t\t\tMyBotModule.Broodwar.drawTextScreen(10, 120, \"secondStartPosition: null\");\n\t\t}\n\t\tif(getExpansionLocation!= null) {\n\t\t\tMyBotModule.Broodwar.drawTextScreen(10, 130, \"getExpansionLocation: \" + getExpansionLocation.getTilePosition());\n\t\t\tMyBotModule.Broodwar.drawTextMap(getExpansionLocation.getPosition(), \"nextEX\");\n\t\t}else {\n\t\t\tMyBotModule.Broodwar.drawTextScreen(10, 130, \"getExpansionLocation: null\");\n\t\t}\n\t\tif(getLastBuildingLocation!= null) {\n\t\t\tMyBotModule.Broodwar.drawTextScreen(10, 140, \"getLastBuildingLocation: \" + getLastBuildingLocation);\n\t\t\tMyBotModule.Broodwar.drawTextMap(getLastBuildingLocation.toPosition(), \"nextBuild\");\n\t\t}else {\n\t\t\tMyBotModule.Broodwar.drawTextScreen(10, 140, \"getLastBuildingLocation: null\");\n\t\t}\n\t\tif(getLastBuildingFinalLocation!= null) {\n\t\t\tMyBotModule.Broodwar.drawTextScreen(10, 150, \"getLastBuildingFinalLocation: \" + getLastBuildingFinalLocation);\n\t\t\tMyBotModule.Broodwar.drawTextMap(getLastBuildingFinalLocation.toPosition(), \"LastBuild\");\n\t\t}else {\n\t\t\tMyBotModule.Broodwar.drawTextScreen(10, 150, \"getLastBuildingFinalLocation: null\");\n\t\t}\n\n\t\t\n\t\tMyBotModule.Broodwar.drawTextScreen(10, 160, \"mainBaseLocationFull: \" + BuildManager.Instance().mainBaseLocationFull);\n\t\tMyBotModule.Broodwar.drawTextScreen(10, 170, \"secondChokePointFull: \" + BuildManager.Instance().secondChokePointFull);\n\t\tMyBotModule.Broodwar.drawTextScreen(10, 180, \"secondStartLocationFull: \" + BuildManager.Instance().secondStartLocationFull);\n\t\tMyBotModule.Broodwar.drawTextScreen(10, 190, \"fisrtSupplePointFull: \" + BuildManager.Instance().fisrtSupplePointFull);\n\t\t\n\t\tMyBotModule.Broodwar.drawTextScreen(10, 200, \"myMainbaseLocation : \" + InformationManager.Instance().getMainBaseLocation(MyBotModule.Broodwar.self()).getTilePosition());\n\t\tMyBotModule.Broodwar.drawTextScreen(10, 210, \"enemyMainbaseLocation : \" + InformationManager.Instance().getMainBaseLocation(MyBotModule.Broodwar.enemy()).getTilePosition());\n\n\t}", "title": "" }, { "docid": "2aa5cbd52322bc656bd3c99ec35b768b", "score": "0.6102319", "text": "private void Redraw(){\n for(int i = 1; i < this.xPoints.size() ; i++){\n int x1 = (int) (this.xPoints.get(i - 1) * panel.getSize().width);\n int y1 = (int) (this.yPoints.get(i - 1) * panel.getSize().height);\n int x2 = (int) (this.xPoints.get(i) * panel.getSize().width);\n int y2 = (int) (this.yPoints.get(i) * panel.getSize().height);\n LineVector line = new LineVector(x1,y1,x2,y2, panel);\n line.SetColour(localColour);\n line.DrawVector();\n }\n}", "title": "" }, { "docid": "cebbfa81ae5352b7fecc9b068e78f82a", "score": "0.60910153", "text": "public void draw() {}", "title": "" }, { "docid": "cebbfa81ae5352b7fecc9b068e78f82a", "score": "0.60910153", "text": "public void draw() {}", "title": "" }, { "docid": "da5de2cc44537d49be7b150dababf279", "score": "0.60644066", "text": "@Override\n public void draw(SpriteBatch batch) {\n }", "title": "" }, { "docid": "cbd83e94b02da5581135ae7f0c758f1e", "score": "0.6063607", "text": "public void draw() {\n\n }", "title": "" }, { "docid": "dc27ce8ab37684c46426adf4517fccca", "score": "0.6053988", "text": "@Override\r\npublic void step() {\r\n\t\tfinal int distX = this.getPosX() - 170;\r\n\t\tfinal int distY = this.getPosY() - 138;\r\n\t\tfinal int dist = (int)Math.sqrt(Math.pow(Math.abs(distX), 2D) + Math.pow(Math.abs(distY), 2D));\r\n\t\tfinal Graphics g = water.getGraphics();\r\n\t\tg.setColor(Color.cyan);\r\n\t\tg.fillRect(this.getPosX() - 1, this.getPosY() - 1, 3, 3);\r\n\t\tif(dist < bloodSmell / 2)\r\n\t\t\tswitch((int)(Math.random() * 2D)) {\r\n\t\t\tcase 0: // '\\0'\r\n\t\t\t\tif(distX < 0)\r\n\t\t\t\t\tthis.setPosX(this.getPosX() - 1);\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.setPosX(this.getPosX() + 1);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 1: // '\\001'\r\n\t\t\t\tif(distY < 0)\r\n\t\t\t\t\tthis.setPosY(this.getPosY() - 1);\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.setPosY(this.getPosY() + 1);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tif(distX < 0)\r\n\t\t\t\t\tthis.setPosX(this.getPosX() - 1);\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.setPosX(this.getPosX() + 1);\r\n\t\t\t\tif(distY < 0)\r\n\t\t\t\t\tthis.setPosY(this.getPosY() - 1);\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.setPosY(this.getPosY() + 1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\telse\r\n\t\t\tswitch((int)(Math.random() * 2D)) {\r\n\t\t\tcase 0: // '\\0'\r\n\t\t\t\tif(distX < 0)\r\n\t\t\t\t\tthis.setPosX(this.getPosX() + 1);\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.setPosX(this.getPosX() - 1);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 1: // '\\001'\r\n\t\t\t\tif(distY < 0)\r\n\t\t\t\t\tthis.setPosY(this.getPosY() + 1);\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.setPosY(this.getPosY() - 1);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tif(distX < 0)\r\n\t\t\t\t\tthis.setPosX(this.getPosX() + 1);\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.setPosX(this.getPosX() - 1);\r\n\t\t\t\tif(distY < 0)\r\n\t\t\t\t\tthis.setPosY(this.getPosY() + 1);\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.setPosY(this.getPosY() - 1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\tg.setColor(Color.red);\r\n\t\tg.fillRect(this.getPosX() - 1, this.getPosY() - 1, 3, 3);\r\n\t}", "title": "" }, { "docid": "38e77e03141f86e5c2d8fc59318f77e2", "score": "0.6035639", "text": "public void draw() {\n }", "title": "" }, { "docid": "5546fe48f0f76d852856398a201ad51b", "score": "0.60293114", "text": "public void draw()\n{\n //background(0,10);\n if (random(100)<2) {\n fill(random(100),random(100),random(100),4);\n noStroke();\n rect(0,0,width, height);\n }\n\n textFont(font,18*scale_factor);\n float obj_size = object_size*scale_factor; \n float cur_size = cursor_size*scale_factor; \n\n TuioObject[] tuioObjectList = tuioClient.getTuioObjects();\n for (int i=0;i<tuioObjectList.length;i++) {\n TuioObject tobj = tuioObjectList[i];\n stroke(0);\n fill(0);\n pushMatrix();\n translate(tobj.getScreenX(width),tobj.getScreenY(height));\n rotate(tobj.getAngle());\n rect(-obj_size/2,-obj_size/2,obj_size,obj_size);\n popMatrix();\n fill(255);\n text(\"\"+tobj.getFiducialID(), tobj.getScreenX(width), tobj.getScreenY(height));\n }\n\n TuioCursor[] tuioCursorList = tuioClient.getTuioCursors();\n\n if (tuioCursorList.length == 0) {\n randomizeColors();\n }\n\n for (int i=0;i<tuioCursorList.length;i++) {\n int c1 = getColor(i);\n TuioCursor tcur = tuioCursorList[i];\n TuioPoint[] pointList = tcur.getPath();\n if (pointList.length>0) {\n TuioPoint start_point = pointList[0];\n for (int j=0;j<pointList.length;j++) {\n TuioPoint end_point = pointList[j];\n stroke(c1);\n strokeWeight(2);\n //line(start_point.getScreenX(width),start_point.getScreenY(height),end_point.getScreenX(width),end_point.getScreenY(height));\n //line(centerX,centerY,end_point.getScreenX(width),end_point.getScreenY(height));\n start_point = end_point;\n }\n\n stroke(192,192,192);\n fill(192,192,192);\n fill(c1);\n noStroke();\n //ellipse( tcur.getScreenX(width), tcur.getScreenY(height),cur_size,cur_size);\n noFill();\n strokeWeight(2);\n stroke(c1);\n\n if (drawrings) {\n float d = dist(width/2, height/2,tcur.getScreenX(width), tcur.getScreenY(height)) * 2;\n float dx = d/5;\n float cx = 0;\n while (cx<=d) {\n line(centerX, centerY, centerX + cx * cos(a)/2, centerY + cx * sin(a)/2);\n ellipse(centerX, centerY,cx,cx);\n cx += dx;\n a += da;\n }\n }\n\n if (drawpoints) {\n fill(c1);\n noStroke();\n \n float x = tcur.getScreenX(width);\n float y = tcur.getScreenY(height);\n\n float d = dist(centerX, centerY, x, y);\n \n float dx = (x - centerX)/d * width/32;\n float dy = (y - centerY)/d * width/32;\n \n \n beginShape();\n vertex(x + dx, y + dy);\n vertex(x - dy, y + dx);\n vertex(x + dy, y - dx);\n endShape();\n \n \n stroke(c1);\n line(centerX, centerY, x, y);\n\n \n //line(x + dx*10, y + dy*10, x, y); \n //ellipse(tcur.getScreenX(width), tcur.getScreenY(height), 36, 36);\n }\n\n if (drawids) {\n fill(255);\n text(\"\"+ tcur.getFingerID(), tcur.getScreenX(width)-5, tcur.getScreenY(height)+5);\n }\n }\n }\n}", "title": "" }, { "docid": "5fd8a6372a7fbf0cc19957f4eeec1c93", "score": "0.6021161", "text": "void drewOnCanvas(int x, int y, int lineWidth);", "title": "" }, { "docid": "4a1d11682e09754499067bddb0ba6de0", "score": "0.60179085", "text": "private static void withdraw() {\n\t\t\n\t}", "title": "" }, { "docid": "67b2223881cccfe14e57b71d8754cff0", "score": "0.60152024", "text": "public void beginDraw() {\r\n }", "title": "" }, { "docid": "d1428c52015c68a9f3dec6fb8646e4fa", "score": "0.6012091", "text": "public void draw()\n {\n }", "title": "" }, { "docid": "f4d426d328072ba330f4ad3d22404f0d", "score": "0.59943646", "text": "public void draw(Batch batch) {\n for (SurfaceBlock s : blocks)\n {\n //System.out.println(\"Drawing sprinte \" + Float.toString(s.getSprite().getX()) + \" \" + Float.toString(s.getSprite().getY()));\n s.getSprite().draw(batch);\n\n }\n }", "title": "" }, { "docid": "be10e5046e139f158c2f87d0a9520ee9", "score": "0.5973794", "text": "@Override\n public void draw()\n {\n fill(0);\n noStroke();\n rect(0,height-40,width,25);\n \n //Text fill\n fill(255);\n \n // Display headline at x location\n textFont(font,16); \n textAlign(LEFT);\n text(headlines[index],fontX,height-25); \n \n // Decrement x\n fontX = fontX - 2;\n\n // If x is less than the negative width, \n // then it is off the screen\n float w = textWidth(headlines[index]);\n \n //Update font\n if (fontX < -w) \n {\n fontX = width; \n index = (index + 1) % headlines.length;\n } \n \n switch(currentTool)\n {\n case \"pencil\":\n fill(0, 2 * (frameCount % 2));\n rect(0,0,width,height);\n stroke(255);\n strokeWeight(2);\n\n float midx = 0.5f * (pmouseX + mouseX);\n float midy = 0.5f * (pmouseY + mouseY);\n\n float pmidx = 0.5f * (ppmouseX + mouseX);\n float pmidy = 0.5f * (ppmouseY + mouseY);\n\n float diffx = pmouseX - pmidx;\n float diffy = pmouseY - pmidy;\n\n float x1 = pmouseX;\n float y1 = pmouseY;\n\n float x2 = midx + 0.5f * diffx;\n float y2 = midy + 0.5f * diffy;\n\n float x3 = mouseX;\n float y3 = mouseY;\n\n ppmouseX = pmouseX;\n ppmouseY = pmouseY;\n\n if (mousePressed)\n {\n stroke(SomeColor);\n bezier(x1,y1,x2,y2,x3,y3,x3,y3);\n stroke(0,200,0);\n line(x1,y1,x3,y3); \n }\n break;\n \n case \"splat\":\n if (mousePressed)\n {\n count++;\n \n //makes it so splat occurs only once per click\n if(count < 2)\n {\n Random rand = new Random();\n\n //creates 15 splats! OH FUCKING WOW\n for(int i = 0; i < 15; i++)\n {\n int x = rand.nextInt(101); //distance x from mouse\n int y = rand.nextInt(101); //distance y from mouse\n int xNeg = rand.nextInt(2); //50-50 chance to be left or right of mouse\n int yNeg = rand.nextInt(2); //50-50 chance to be above or below mouse\n\n if(xNeg == 1) //set negative if equal to 1 (left of mouse)\n x *= -1;\n if(yNeg == 1) //set negative if equal to 1 (above mouse)\n y *= -1;\n \n fill(255,255,255); //fill color of paint splat\n ellipse(x+mouseX,y+mouseY,15,15); //coordinates of splatter, width, height\n }\n }\n }\n break; \n default:\n //do nothing\n break;\n }\n }", "title": "" }, { "docid": "8bb0d20209f25423b906455f7d62b494", "score": "0.59703857", "text": "public void drawGrid() {\n // Draw horizontal lines every interval of the gridsize\n for (int i = 0; i < height; i+=gridSize)\n line(i, 0, i, height);\n \n // Draw vertical lines every interval of the gridsize\n for (int i = 0; i < width; i+=gridSize)\n line(0, i, width, i);\n}", "title": "" }, { "docid": "7ecfebae4aecb5007ae0b9e2b62522c6", "score": "0.59551024", "text": "public void processAction() {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (!cursorColor.containsKey(m.getId())) {\n\t\t\t\t\t\t\t\t\tcursorColor.put(m.getId(), colorOrder.first());\n\t\t\t\t\t\t\t\t\tcolorOrder.remove(colorOrder.first());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tsetBrushColor(colorList.get(cursorColor.get(m.getId())));\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tboolean firstPoint = false;\n\t\t\t\t\t\t\t\tVector3D lastDrawnPoint = cursorToLastDrawnPoint.get(m);\n\t\t\t\t\t\t\t\tVector3D pos = new Vector3D(posEvt.getX(), posEvt.getY(), 0);\n\n\t\t\t\t\t\t\t\tif (lastDrawnPoint == null){\n\t\t\t\t\t\t\t\t\tlastDrawnPoint = new Vector3D(pos);\n\t\t\t\t\t\t\t\t\tcursorToLastDrawnPoint.put(m, lastDrawnPoint);\n\t\t\t\t\t\t\t\t\tfirstPoint = true;\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tif (lastDrawnPoint.equalsVector(pos))\n\t\t\t\t\t\t\t\t\t\treturn;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfloat scaledStepDistance = stepDistance*brushScale;\n\n\t\t\t\t\t\t\t\tVector3D direction = pos.getSubtracted(lastDrawnPoint);\n\t\t\t\t\t\t\t\tfloat distance = direction.length();\n\t\t\t\t\t\t\t\tdirection.normalizeLocal();\n\t\t\t\t\t\t\t\tdirection.scaleLocal(scaledStepDistance);\n\n\t\t\t\t\t\t\t\tfloat howManySteps = distance/scaledStepDistance;\n\t\t\t\t\t\t\t\tint stepsToTake = Math.round(howManySteps);\n\n\t\t\t\t\t\t\t\t//Force draw at 1st point\n\t\t\t\t\t\t\t\tif (firstPoint && stepsToTake == 0){\n\t\t\t\t\t\t\t\t\tstepsToTake = 1;\n\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\tSystem.out.println(\"Steps: \" + stepsToTake);\n\n//\t\t\t\t\t\t\t\tGL gl = Tools3D.getGL(mtApp);\n//\t\t\t\t\t\t\t\tgl.glBlendFuncSeparate(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA, GL.GL_ONE, GL.GL_ONE_MINUS_SRC_ALPHA);\n\n\t\t\t\t\t\t\t\tmtApp.pushMatrix();\n\t\t\t\t\t\t\t\t//We would have to set up a default view here for stability? (default cam etc?)\n\t\t\t\t\t\t\t\tgetSceneCam().update(); \n\n\t\t\t\t\t\t\t\tVector3D currentPos = new Vector3D(lastDrawnPoint);\n\t\t\t\t\t\t\t\tfor (int i = 0; i < stepsToTake; i++) { //start i at 1? no, we add first step at 0 already\n\t\t\t\t\t\t\t\t\tcurrentPos.addLocal(direction);\n\t\t\t\t\t\t\t\t\t//Draw new brush into FBO at correct position\n\t\t\t\t\t\t\t\t\tVector3D diff = currentPos.getSubtracted(localBrushCenter);\n\n\t\t\t\t\t\t\t\t\tmtApp.pushMatrix();\n\t\t\t\t\t\t\t\t\tmtApp.translate(diff.x, diff.y);\n\n\t\t\t\t\t\t\t\t\t//NOTE: works only if brush upper left at 0,0\n\t\t\t\t\t\t\t\t\tmtApp.translate(brushWidthHalf, brushHeightHalf);\n\t\t\t\t\t\t\t\t\tmtApp.scale(brushScale);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (dynamicBrush){\n\t\t\t\t\t\t\t\t\t//Rotate brush randomly\n//\t\t\t\t\t\t\t\t\tmtApp.rotateZ(PApplet.radians(Tools3D.getRandom(0, 179)));\n//\t\t\t\t\t\t\t\t\tmtApp.rotateZ(PApplet.radians(Tools3D.getRandom(-85, 85)));\n\t\t\t\t\t\t\t\t\tmtApp.rotateZ(PApplet.radians(ToolsMath.getRandom(-25, 25)));\n//\t\t\t\t\t\t\t\t\tmtApp.rotateZ(PApplet.radians(Tools3D.getRandom(-9, 9)));\n\t\t\t\t\t\t\t\t\tmtApp.translate(-brushWidthHalf, -brushHeightHalf);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t/*\n\t\t \t\t\t\t\t//Use random brush from brushes\n\t\t \t\t\t\t\tint brushIndex = Math.round(Tools3D.getRandom(0, brushes.length-1));\n\t\t \t\t\t\t\tAbstractShape brushToDraw = brushes[brushIndex];\n\t\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\t\tAbstractShape brushToDraw = drawShape;\n\n\t\t\t\t\t\t\t\t\t//Draw brush\n\t\t\t\t\t\t\t\t\tbrushToDraw.drawComponent(mtApp.g);\n\n\t\t\t\t\t\t\t\t\tmtApp.popMatrix();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmtApp.popMatrix();\n\n\t\t\t\t\t\t\t\tcursorToLastDrawnPoint.put(m, currentPos);\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "aaa266a8907feecd54a310dedc80d136", "score": "0.59335023", "text": "@Override\n\tprotected void freeDraw() {\n\n\t}", "title": "" }, { "docid": "ca80fd439a649392918ce30ea1a53b52", "score": "0.59224224", "text": "public void drawBuffer() {\r\n \r\n\t\tGraphics2D b = buffer.createGraphics();\r\n\t\t// Random color background\r\n\t\t//Color c = new Color(new Random().nextInt());\r\n\t\t//b.setColor(Color.BLACK);\r\n b.drawImage(img_background, null, 0, 0);\r\n\t\t//b.fillRect(0, 0, buffer.getWidth(), buffer.getHeight());\r\n b.setColor(Color.WHITE);\r\n b.fillOval(ball.getX(), ball.getY(), ball.getSize(), ball.getSize());\r\n \r\n if (power){\r\n b.setColor(Color.yellow);\r\n b.fillOval(((powerball.getX()+60)/2), powerball.getY(), powerball.getSize(), powerball.getSize());\r\n }\r\n if(take_power){\r\n if(!shoot){\r\n shoot = true;\r\n missile = new Missile(gmeWidth,gmeHeight,bat.getX()+25,bat.getY(),15);\r\n }\r\n }\r\n \r\n if(take_power){\r\n if(shoot){\r\n b.setColor(Color.red);\r\n b.fillOval((missile.getX()), missile.getY(), missile.getSize(), missile.getSize());\r\n }\r\n }\r\n \r\n for (int j=0;j<5;j++){\r\n for (int i=0;i<7;i++){\r\n drawBricks(b,brick[j][i].getX(),brick[j][i].getY(),brick[j][i].objectwidth, brick[j][i].objectHeight);\r\n }\r\n }\r\n b.fillRoundRect(bat.getX(), bat.getY(), bat.getObjectWidth(), bat.getObjectHeight(), 10, 10);\r\n b.drawImage(img_bat, null, bat.getX(), bat.getY()); \r\n\t}", "title": "" }, { "docid": "60bba40c7691fe4300cdcfa174b0bd32", "score": "0.592004", "text": "public void draw(){\n }", "title": "" }, { "docid": "2335681f5b11fdb9a924b6c459b14b24", "score": "0.5886757", "text": "public void draw() {\n if (state == 1) {\n ArrayList<Point> shootedPoints = new ArrayList<Point>();\n frameRate(3);\n shootedPoints.addAll(Utilities.me().getField().getShootedPoints());\n\n for (Point point : shootedPoints) {\n ex = new XPicture(point.y, point.x);\n ex.display();\n }\n }\n }", "title": "" }, { "docid": "9eb69d013717889f419dc02f08191cb6", "score": "0.58829653", "text": "public void drawStarted();", "title": "" }, { "docid": "e576c2c411dfc2f3d9a5fc7d005e1a0b", "score": "0.58519244", "text": "public void draw() {\n System.out.println(\" ----\");\n System.out.println(\"| |\");\n System.out.println(\"| |\");\n System.out.println(\" ----\");\n }", "title": "" }, { "docid": "0523df1f1332d264334ea9c93c1b9a6c", "score": "0.5841927", "text": "public void plotStep(Block atual, Block next){\r\n int h = map.getHeight();\r\n int w = map.getWidth();\r\n\r\n int sqx = this.width/w;\r\n int sqy = this.height/h;\r\n\r\n screen.setForegroundColor(Color.GREEN);\r\n screen.drawLine(atual.col*sqx + sqx/2, atual.row*sqy + sqy/2, next.col*sqx + sqx/2, next.row*sqy + sqy/2);\r\n\r\n }", "title": "" }, { "docid": "b15261f9cb0c625efb95f22b62002a7f", "score": "0.5827205", "text": "private void drawSetUp() {\n\t\tcanvas.setForeground(Color.black);\n\t\tcanvas.drawRect(1, 1, 332, 226, false);\n\t\tcanvas.fillRect(1, 1, 332, 226, false);\n\t\tcanvas.drawRect(442, 1, 350, 226, false);\n\t\tcanvas.fillRect(442, 1, 350, 226, false);\n\t\tcanvas.drawRect(1, 305, 332, 226, false);\n\t\tcanvas.fillRect(1, 305, 332, 226, false);\n\t\tcanvas.drawRect(442, 305, 350, 226, false);\n\t\tcanvas.fillRect(442, 305, 350, 226, false);\n\t\tcanvas.drawRect(384, 1, 4, 223, false);\n\t\tcanvas.drawRect(445, 264, 345, 4, false);\n\t\tcanvas.drawRect(384, 308, 4, 226, false);\n\t\tcanvas.drawRect(1, 264, 333, 4, false);\n\t}", "title": "" }, { "docid": "ad91a42e210b141f6a4113e225f8d60e", "score": "0.5815815", "text": "public void update() {\n count++;\n rectangle.setWidth(25 + count * 1300 / timesPerThread);\n if (count == timesPerThread)\n rectangle.setFill(Color.GRAY);\n }", "title": "" }, { "docid": "5061ff907dd03c8ca066de402dfb6e76", "score": "0.58143085", "text": "@Override\n public void renderSample(Graphics2D g2)\n {\n\n g2.setColor(Color.white);\n int x0 = 50;\n int x1 = 100;\n int y0 = 145; \n int y1 = 165;\n g2.drawLine(x0, y0, x1, y1);\n g2.drawLine(x0, y0, x0 + 120, y0);\n g2.drawLine(x0, y0, x0, y0 + 120);\n g2.drawLine(x0, y0 + 120, x1, y1 + 120 );\n g2.drawLine(x0 + 120, y0, x1 + 120, y1 );\n g2.drawRect(x1, y1, 120, 120);\n }", "title": "" }, { "docid": "ffc266b1dd027da9add41b7a240e6460", "score": "0.58114904", "text": "public abstract void draw(SpriteBatch sb);", "title": "" }, { "docid": "b1f42b3285f5b8d1278dfd286b36f519", "score": "0.5786379", "text": "@Override\n\tpublic Object run(Object ... args) \n\t{\n\t\tint [][] points = new int[numPoints/*+eyePoints*/][4];\n\t\t\t\n\t\tfor (int i=0; i<numPoints; i++) {\n\t\t\t// Anchor points of bezier - stay in window\n\t\t\t int x1 = (int) ((chimpRand(\"x1\"+i) * (_gibberish.getWidth() + 1)));\n\t\t int y1 = (int) ((chimpRand(\"y1\"+i) * (_gibberish.getHeight() + 1)));\n\t\t\t\n\t\t //Control points of bezier - larger area\n\t\t //int x2 = (int) ((chimpRand(\"x2\"+i) * 2*(width + 1)-width/2));\n\t\t //int y2 = (int) ((chimpRand(\"y2\"+i) * 2*(height + 1)-height/2));\n\t\t int x2 = (int) ((chimpRand(\"x2\"+i) * (_gibberish.getWidth() + 1)));\n\t\t int y2 = (int) ((chimpRand(\"y2\"+i) * (_gibberish.getHeight() + 1)));\n\t\t \n\t\t // Color and transparency - should be easy to turn on/off\n\t\t //int c1 = (int) ((chimpRand(\"c1\"+i) * 255));\n\t\t //int c1 = 0;\n\t\t //int alpha = (int) ((chimpRand(\"alpha\"+i)*255));\n\t\t //int alpha = 255;\n\n\t\t points[i][0] = x1;\n\t\t points[i][1] = y1;\n\t\t points[i][2] = x2;\n\t\t points[i][3] = y2;\n\t\t //points[i][4] = c1;\n\t\t //points[i][5] = alpha;\n\t\t}\n\t\t\t\n\t\t/*int noseWidth = (int) Math.abs(chimpRandn(\"noseWidth\", (width/20), 0)); //really half a nose width\n\t\tint varSelfRelax = (int) Math.abs(chimpRandn(\"varSelfRelax\", 0, width/20));\n\t\tint eyey = (int) ( chimpRandn(\"eyey\", (double) (height/3), (double) (height/10)) );\n\t\t\n\t\tfor (int i=numPoints; i<(numPoints+eyePoints); i++) {\n\t\t\t\t\n\t\t\tint eye1x = (int) (chimpRandn(\"eye1x\"+i, (width/2)-noseWidth, varSelfRelax) );\n\t\t\tint eye2x = (int) (chimpRandn(\"eye2x\"+i, (width/2)+noseWidth, varSelfRelax) );\n\t\t\tint eye1y = (int) (chimpRandn(\"eye1y\"+i, eyey, varSelfRelax) );\n\t\t\tint eye2y = (int) (chimpRandn(\"eye2y\"+i, eyey, varSelfRelax) );\t\t\t\t\n\t\t\t\n\t\t points[i][0] = eye1x;\n\t\t points[i][1] = eye1y;\n\t\t points[i][2] = eye2x;\n\t\t points[i][3] = eye2y;\n\t\t}*/\n\n\t\t// Draw\n\t\t//_gibberish.draw(points, numPoints+eyePoints);\n\t\t_gibberish.draw(points, numPoints);\n\t\t\n\t\tdouble l2 = _gibberish.getl2();\n\t\t\n\t\tdouble selfInteraction = 0;\n\t\tdouble term=0;\n\t\t//int counter=0;\n\t\tdouble limit=3000;\n\t\t\n\t\tfor (int j=0;j<numPoints;j++) {\n\t\t\tfor (int k=(j+1);k<numPoints;k++) {\n\t\t\t\tterm=limit/(Math.abs(Math.abs((points[j][0]-points[k][0]))+Math.abs((points[j][1]-points[k][1]))));\n\t\t\t\tterm=Math.pow(term, 3);\n\t\t\t\tif (term<2000000000) {\n\t\t\t\t\tselfInteraction+=term;\n\t\t\t\t\t//counter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\taddEnergy((l2+selfInteraction)/100000000);\n\t\t\n\t\t//System.out.println(\"L2 \"+l2);\n\t\t//System.out.println(\"Counter \"+counter);\n\t\t//System.out.println(\"SI \"+selfInteraction);\n\n\t\treturn points;\n\t}", "title": "" }, { "docid": "2c5842d32890168c53455b093b161830", "score": "0.5775116", "text": "public void draw(Graphics g){\n\t \n\tint dx = (reta.pt1x-reta.pt0x);\n\tint dy = (reta.pt1y-reta.pt0y); \n\t \n\tint sx, sy;\n\t\n\tif(reta.pt0x>reta.pt1x){\n\t \n\t sx = -1;\n\t}\n\t\n\telse sx = 1;\n\t\n\tif(reta.pt0y>reta.pt1y){\n\t \n\t sy = -1;\n\t}\n\t\n\telse sy = 1;\n\t\n\tint err = dx - dy;\n\t\n\twhile(true){\n\t \n\t// img.setPixel(reta.pt0x+reta.pt1x);\n\t \n\t \n\t}\n\t\n\t\n\t}", "title": "" }, { "docid": "8aef0f961c0d685be688ee417d577493", "score": "0.57716507", "text": "@Override\n\tpublic void draw(Batch batch, float parentAlpha) {\n\t\tsuper.draw(batch, parentAlpha);\n\t\tbatch.end();\n\t\tshapeRenderer.begin(ShapeRenderer.ShapeType.Filled);\n\t\tshapeRenderer.setColor(color);\n\t\tshapeRenderer.rectLine(start.getX(), start.getY(), end.getX(), end.getY(), connectionWidth);\n\t\tif (partialDraw) {\n\t\t\tshapeRenderer.setColor(Color.BLACK);\n\t\t\tshapeRenderer.rectLine(partialStart.getX(), partialStart.getY(), partialNext.getX(), partialNext.getY(), connectionWidth);\n\t\t} \n\t\tshapeRenderer.end();\n\t\tbatch.begin();\n\t}", "title": "" }, { "docid": "1e81fccf21b9c2c1b760b6d0f4eb44d9", "score": "0.5771143", "text": "public void draw() {\n System.out.println(\" ----\");\n System.out.println(\"| |\");\n System.out.println(\" ----\");\n }", "title": "" }, { "docid": "148c1ccb6764cc1b555ca5576164a40f", "score": "0.57572365", "text": "public void draw() {\n final int X = 1190;\n final int Y = 85;\n final int BLOCK_SIZE = 85;\n final int FREE_SPACE = 10;\n\n Image lowBullet = new Image(\"lowBullet.png\");\n Image highBullet = new Image(\"highBullet.png\");\n\n gc.setLineWidth(2);\n gc.setStroke(Color.BLACK);\n gc.strokeRect(X, Y, BLOCK_SIZE, BLOCK_SIZE);\n\n if (isLow){\n gc.drawImage(lowBullet, X + FREE_SPACE, Y + FREE_SPACE, BLOCK_SIZE - 2 * FREE_SPACE, BLOCK_SIZE - 2 * FREE_SPACE);\n } else {\n gc.drawImage(highBullet, X + FREE_SPACE, Y + FREE_SPACE, BLOCK_SIZE - 2 * FREE_SPACE, BLOCK_SIZE - 2 * FREE_SPACE);\n }\n }", "title": "" }, { "docid": "323e752fd5a9a909c16e7ba97023c49e", "score": "0.575395", "text": "@Override\r\n public void paint(Graphics g){\ng.setColor(Color.red);\r\n for (int i = 0; i <400; i+=100) {\r\n for (int j = 0; j <400; j+=100) {\r\n g.fillRect(i, j, 50, 50);\r\n g.drawRect(i, j, 50, 50);\r\n \r\n }\r\n }\r\n for (int i = 0; i < 400; i+=50) {\r\n for (int j = 0; j < 400; j+=50) {\r\n g.drawRect(i, j, 50, 50);\r\n \r\n }\r\n }\r\n for (int i = 50; i < 400; i+=100) {\r\n for (int j = 50; j < 400; j+=100) {\r\n g.fillRect(i, j, 50, 50);\r\n g.drawRect(i, j, 50, 50);\r\n }\r\n \r\n }\r\n }", "title": "" }, { "docid": "c93d9f9e470c052153152efbaa9ccd63", "score": "0.57381696", "text": "public void draw(SpriteBatch batch)\n\t{\n\t\tmTexture.draw(batch);\n\t\t//batch.draw(mTexture, mX, mY, mWidth, -mWidth);\n\t}", "title": "" }, { "docid": "45c6a146f9540bbc0f2553cf51a64807", "score": "0.5714683", "text": "public void draw() {\r\n\t\tdraw(false);\r\n\t}", "title": "" }, { "docid": "350d755bc1b23f13789f3a96f9c18d7c", "score": "0.57130873", "text": "public void run() {\n while(resume == true){\n if(sHolder.getSurface().isValid()) {\n Canvas canvas = sHolder.lockCanvas();\n Rect rect = new Rect();\n rect.set(0, 0, canvas.getWidth(), canvas.getHeight());\n if (y < canvas.getHeight()) {\n y += 20;\n } else {\n y = 0;\n Random rand = new Random();\n x = rand.nextFloat() * max;\n }\n\n Paint color = new Paint();\n color.setColor(Color.BLACK);\n color.setStyle(Paint.Style.FILL);\n canvas.drawRect(rect, color);\n Bitmap scaledbu = scaleUp(bu,200-count,true);\n canvas.drawBitmap(scaledbu, x, y, color);\n sHolder.unlockCanvasAndPost(canvas);\n }\n }\n }", "title": "" }, { "docid": "87c1b90c100c1c02d8ca626a2d5e6058", "score": "0.5712781", "text": "public void draw (float deltaTime) {\n\t\t\n\t\tguiCam.update();\n\t\tbatcher.setProjectionMatrix(guiCam.combined);\n\t\t\n\t\tbatcher.enableBlending();\n\t\tbatcher.begin();\n\t\t\n\t\t//--batcher.draw(backgroundRegion, 0, 0, Constant.GameWidth, Constant.GameHeight);\n\t\tbatcher.draw(backgroundRegion,0, 0,\n\t\t\t\t55, 55, \n\t\t\t\tConstant.GameWidth, Constant.GameHeight, \n\t\t\t\t1, 1, 0);\n\n\t\tif(draw_StarArray_mark){\n\t\t\tfor(int i=0;i<StarArray.length;i++){//列数量,索引从下往上\n\t\t\t\tfor(int j=0;j<StarArray[i].length;j++){//行数量,索引从左往右\n\t\t\t\t\tStar mStar=StarArray[i][j];\n\t\t\t\t\tif(mStar!=null){\n\t\t\t\t\t\tbatcher.draw(mStar.mRegion, mStar.x,mStar.y, \n\t\t\t\t\t\t\t\tConstant.StarStep/2,Constant.StarStep/2, \n\t\t\t\t\t\t\t\tConstant.StarStep, Constant.StarStep,\n\t\t\t\t\t\t\t\tmStar.scale_time, mStar.scale_time, 0);\n\t\t\t\t\t\tif(mStar.select==1){\n\t\t\t\t\t\t\tbatcher.draw(mStar.mSelectRegion, mStar.x,mStar.y, \n\t\t\t\t\t\t\t\t\tConstant.StarStep/2,Constant.StarStep/2, \n\t\t\t\t\t\t\t\t\tConstant.StarStep, Constant.StarStep,\n\t\t\t\t\t\t\t\t\tmStar.scale_time, mStar.scale_time, 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//--画-执行动画时,被选中的星星(主数组中已经置空)\n\t\tfor(int i=0;i<WaitUpdateList.size();i++){\n\t\t\tWaitUpdateList.get(i).draw(batcher);\n\t\t}\n\t\t\n\t\t//--画-粒子小小星星\n\t\tfor(int i=0;i<StarParticleManage_List.size();){\n\t\t\tStarParticleManage myStarParticleManage = StarParticleManage_List.get(i);\n\t\t\tif(myStarParticleManage.draw(batcher, deltaTime)<=0){\n\t\t\t\tStarParticleManage_List.remove(myStarParticleManage);\n\t\t\t}else{\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tbatcher.setColor(1, 1, 1, 1);\n\t\t}\n\t\t\n\t\t//--画帧率\n\t\tint fps= Gdx.graphics.getFramesPerSecond();\n\t\tif(fps<fps_min&&fps>5){\n\t\t\tfps_min=fps;\n\t\t}\n\t\tfont.draw(batcher, \"3_fps:\"+fps, 0, Constant.GameHeight);\n\t\tfont.draw(batcher, touch_free+\"--\"+\"fpsMin:\"+fps_min, 0, Constant.GameHeight-20);\n\t\t\n\t\tbatcher.end();\n\t}", "title": "" }, { "docid": "13853e8d24525c29c9b59f4415f813ca", "score": "0.5711741", "text": "void draw() \n { \n Graphics g = getGraphics(); \n \n Graphics bbg = backBuffer.getGraphics(); \n \n bbg.setColor(Color.WHITE); \n bbg.fillRect(0, 0, windowWidth, windowHeight); \n \n bbg.setColor(Color.BLUE);\n \n for(int i = 0; i < bubble.length; i++)\n {\n bbg.fillOval(bubble[i].getX(), bubble[i].getY(), 50, 50);\n }\n \n //this below Oval is the centre bubble.\n bbg.fillOval(x2, y2, 100, 100);\n \n \n g.drawImage(backBuffer, insets.left, insets.top, this); \n }", "title": "" }, { "docid": "4e631fa48312edd1c3591bd39608500c", "score": "0.5710006", "text": "void takeShot(){\n Log.d(\"Debugging\",\"In takeShot\");\n draw();\n }", "title": "" }, { "docid": "8fec678b9e1343d52efe60c133dbb19d", "score": "0.56887394", "text": "@Override\r\n\tpublic void init(GLAutoDrawable drawable) {\n\t\tgl1.glColor3f(1.0f, 1.0f, 1.0f);\r\n\t\tgl1.glDrawBuffer(GL.GL_FRONT_AND_BACK);\r\n\t\tanimator1 = new Animator(canvas1);\r\n\t\tanimator1.start();\r\nfor(int j=0;j<10;j++)\r\n{\r\n\tgenerate(j);\r\n}\r\n\t}", "title": "" }, { "docid": "4c4387e6121a36b73e8a534b26cd6e24", "score": "0.5682183", "text": "public void endDraw(int width, int height) {\r\n }", "title": "" }, { "docid": "5bba1f754731ea10c8c029e88186da75", "score": "0.5682002", "text": "public void run() \n {\n switch(this.ch) \n {\n case 'C': \n {\n this.drawC(this.x,this.y); \n break;\n }\n case 'S': \n {\n this.drawS(this.x,this.y); \n break;\n }\n case '8': \n {\n this.draw8(this.x,this.y); \n break;\n }\n case 'B': \n {\n this.drawB(this.x,this.y); \n break;\n }\n case 'W': \n {\n this.drawW(this.x,this.y); \n break;\n }\n case 'A': \n {\n this.drawA(this.x,this.y); \n break;\n }\n case 'N': \n {\n this.drawN(this.x,this.y); \n break;\n }\n case 'G': \n {\n this.drawG(this.x,this.y); \n break;\n }\n case 'I': \n {\n this.drawI(this.x,this.y); \n break;\n }\n case 'T': \n {\n this.drawT(this.x,this.y); \n break;\n }\n case 'E': \n {\n this.drawE(this.x,this.y); \n break;\n }\n case 'R': \n {\n this.drawR(this.x,this.y); \n break;\n }\n case '2': \n {\n this.draw2(this.x,this.y); \n break;\n }\n case '0': \n {\n this.draw0(this.x,this.y); \n break;\n }\n case '1': \n {\n this.draw1(this.x,this.y); \n break;\n }\n case '6': \n {\n this.draw6(this.x,this.y); \n break;\n }\n }\n }", "title": "" }, { "docid": "6c5510e4418c8d67ee6b5efb07c87c73", "score": "0.5674227", "text": "@Override\r\n\tvoid drawRoundBasic() {\n\t\t\r\n\t}", "title": "" }, { "docid": "567565914c2b37aebabbbeff696b40ae", "score": "0.5672634", "text": "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\" *\\n\" + \n\t\t\t\t\t\t \" ***\\n\" + \n\t\t\t\t\t\t \" *****\\n\" + \n\t\t\t\t\t\t \" *******\\n\" + \n\t\t\t\t\t\t \"*********\");\n\t}", "title": "" }, { "docid": "c68e2c3206d60213b808a482b2a05942", "score": "0.5671273", "text": "public final void drawShotLine( int lifetime )\n {\n for (float distance = 0.0f; distance < this.shotRange; distance += 0.15f )\n {\n LibFXManager.launchStaticPoint\n (\n this.debug,\n //wrong calc!!\n new LibVertex\n (\n (float)(this.srcPoint3d.x - LibMath.sinDeg(this.rotZ) * distance ),\n (float)(this.srcPoint3d.y - LibMath.cosDeg(this.rotZ) * distance ),\n (float)(this.srcPoint3d.z - LibMath.sinDeg(this.rotX) * distance )\n ),\n LibColors.EShotLine,\n 0.01f, //bulletHoleSize.size / 8, //DebugSettings.DEBUG_POINT_SIZE\n lifetime,\n this.fadeOutTicks\n );\n }\n }", "title": "" }, { "docid": "d50601134ec94f40026398ef1309c530", "score": "0.56684685", "text": "@Override\r\n\tpublic void draw() {\n\tSystem.out.println(\"Oval is drawed.....\");\r\n\t\r\n\t}", "title": "" }, { "docid": "4d5fc555cc480069f243ed4b9cf3bbea", "score": "0.5666962", "text": "@Override\n public void paint(Graphics g) {\n super.paint(g);\n Graphics2D g2d = (Graphics2D) g;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n setBackground(new Color(182,181,162));\n drawBathroom(g2d);\n if(firstDraw){\n y = (int)(Math.random() * 300) + 100;\n firstDraw = false;\n }\n\n drawCockroach(g2d,x, y);\n x++;\n if(stop){\n x+=20;\n drawSplatter(g2d,x, y);\n }\n }", "title": "" }, { "docid": "0a1e4ff4f5d20cd4fa97f6a7124422b0", "score": "0.56657296", "text": "public void draw() {\n \ttextAlign(CENTER, CENTER);\n \ttextFont(font, 48);\n \tfill(0, 0, 0);\n\t\ttext(\"FRESHMAN FIFTEEN\", WINDOW_WIDTH/2-20, 10);\n\t\ttextFont(font, 20);\n\t\tfill(0, 0, 0);\n\t\ttext(\"Don't feed our freshman too much pizza!\", WINDOW_WIDTH/2-20, WINDOW_HEIGHT-150);\n\t\ttextFont(font, 12);\n\t\ttext(\"Make sure the slice goes directly into his mouth. Keep clicking and see what happens.\", WINDOW_WIDTH/2-20, WINDOW_HEIGHT-130);\n\t\tcursor(pizza); \n\t\t\n\t\tint red = (int)(Math.random() * 256); // Color range is always between 0-255\n\t int green = (int)(Math.random() * 256);\n\t int blue = (int)(Math.random() * 256);\n\t int xPos = (int)(Math.random() * WINDOW_WIDTH);\n\t int yPos = (int)(Math.random() * WINDOW_HEIGHT);\n\t \n\t\tdrawObject();\n\t\tbody(); \n\t\ttextAlign(CENTER, CENTER);\n \ttextFont(font, 48);\n \tfill(0, 0, 0);\n\t\ttext(count, WINDOW_WIDTH / 2, bodyHeight);\n\t\n\t\tif (count == 16) { //after 15 bites, EXLPODE!\n\t\t\tbackground(red, green, blue);//random colors\n\t\t\t//creates a star shape\n\t\t\tthis.fill(red, green, blue);//random star colors\n\t\t pushMatrix();\n\t\t translate(xPos, yPos);\n\t\t stroke(255);//star outline\n\t\t strokeWeight(20);\n\t\t beginShape();//calls PShape\n\t\t vertex(0, -500);\n\t\t vertex(140, -200);\n\t\t vertex(470, -150);\n\t\t vertex(230,70);\n\t\t vertex(290, 400);\n\t\t vertex(0, 250);\n\t\t vertex(-290, 400);\n\t\t vertex(-230, 70);\n\t\t vertex(-470, -150);\n\t\t vertex(-140, -200);\n\t\t endShape(CLOSE);\n\t\t popMatrix();\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "7db5ed0388a34f7ca68be62298802cd3", "score": "0.56648123", "text": "public void draw(Batch b) {\n\t\tthis.me.draw(b);\n\t}", "title": "" }, { "docid": "dc0d288766cc96a2f53b65f6f64f5129", "score": "0.5660762", "text": "void draw();", "title": "" }, { "docid": "dc0d288766cc96a2f53b65f6f64f5129", "score": "0.5660762", "text": "void draw();", "title": "" }, { "docid": "dc0d288766cc96a2f53b65f6f64f5129", "score": "0.5660762", "text": "void draw();", "title": "" }, { "docid": "58ffef3036aeb49912067b707201819a", "score": "0.5648721", "text": "@Override\n public void draw(Batch batch, float alpha) {\n batch.setProjectionMatrix(mainClass.camera.combined);\n steps = mainClass.getCurrentSteps();\n\n if(useForTheButton == 5 || useForTheButton == 6) {\n if(mainClass.getGotToLastTextPartOkayToShowNeededButtons()) {\n if(useForTheButton == 5) {\n mainClass.setButton5Visible(true);\n }\n if(useForTheButton == 6) {\n mainClass.setButton6Visible(true);\n }\n }\n }\n\n batch.draw(texture,\n xPlace, yPlace,\n this.getOriginX(),\n this.getOriginY(),\n buttonWidth,\n buttonHeight,\n this.getScaleX(),\n this.getScaleY(),\n this.getRotation(),0,0,\n texture.getWidth(), texture.getHeight(), false, false);\n\n if(useForTheButton == 9) {\n font12.draw(batch,\"\", buttonTextXPlace, buttonTextYPlace);\n } else if (useForTheButton == 15) {\n textForAButton = String.valueOf(steps) + \"/\" + stepsToOpenNextChapter;\n calculateButtonXAndYPlace();\n font12.draw(batch,textForAButton, buttonTextXPlace+20, buttonTextYPlace);\n }\n else if(useForTheButton != 10) {\n if (mainClass.getChapterNumber() == 24 && getUseForTheButton() == 6) {\n font12.draw(batch,textForAButton, buttonTextXPlace, buttonTextYPlace);\n } else {\n if(mainClass.getChapterNumber() == 24 && useForTheButton == 14) {\n\n } else {\n font12.draw(batch,textForAButton, buttonTextXPlace, buttonTextYPlace);\n }\n }\n }\n //STORY BOX TEXT\n else {\n if(mainClass.getScreenHeight() < 800) {\n textboxHeight = mainClass.getScreenHeight()/3.9f;\n font12.draw(batch,textForAButton, textboxHeight/8+4, textboxHeight+12);\n } else if (mainClass.getScreenHeight() >= 1000) {\n textboxHeight = mainClass.getScreenHeight()/4.2f;\n font12.draw(batch,textForAButton, textboxHeight/8+4, textboxHeight+25);\n }\n }\n }", "title": "" }, { "docid": "905343be5a2db2ec21041e45582d89e4", "score": "0.5636892", "text": "@Override\n public void run() {\n int number = pointsPrepared.size();\n Point previous = pointsPrepared.get(0);\n previous.setState(Point.STATE_SELECT);\n pointsSelectList.add(previous);\n while(i < (number - 1)) {\n//Log.e(\"i\", \"======\" + i + \"===========\");\n i = i + 1;\n x = previous.getX();\n y = previous.getY();\n // Point next = (Point)iterator.next();\n Point next = pointsPrepared.get(i);\n float[] resultXY = getSlope(previous, next);\n while(next.getDistance(x, y) > 20 ) {\n x = resultXY[0] + x;\n y = resultXY[1] + y;\n postInvalidate();\n try {\n Thread.sleep(20);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n next.setState(Point.STATE_SELECT);\n pointsSelectList.add(next);\n postInvalidate();\n previous = next;\n }\n resetAutoDraw();\n }", "title": "" }, { "docid": "c429bea3c8d981f0630683b8ff5e98de", "score": "0.56332916", "text": "public void draw();", "title": "" }, { "docid": "77ad187ecd96de46a3a2fa25cd9339f9", "score": "0.5628865", "text": "@Override\n public void paintComponent(Graphics g) {\n // always clear the screen first!\n //randomly change the background color very fast\n Random rand = new Random();\n // two colors are choosen \n int sieze = rand.nextInt(6) + 1;\n //the five different colors\n switch (sieze) { \n case 1:\n g.setColor(red1);\n break;\n case 2:\n g.setColor(blue1);\n break;\n case 3:\n g.setColor(green1);\n break;\n case 4:\n g.setColor(pink1);\n break; \n case 5:\n g.setColor(yellow1);\n break; \n case 6:\n g.setColor(teal1);\n break;\n default:\n break;\n }\n g.fillRect(0, 0, WIDTH, HEIGHT);\n\n // GAME DRAWING GOES HERE\n //set the line color as black\n g.setColor(Color.BLACK);\n //18 lines created in the background\n g.fillRect(0, line - 50, 800, 5);\n g.fillRect(0, line, 800, 5);\n g.fillRect(0, line +50, 800, 5);\n g.fillRect(0, line +100, 800, 5);\n g.fillRect(0, line +150, 800, 5);\n g.fillRect(0, line +200, 800, 5);\n g.fillRect(0, line +250, 800, 5);\n g.fillRect(0, line +300, 800, 5);\n g.fillRect(0, line +350, 800, 5);\n g.fillRect(0, line +400, 800, 5);\n g.fillRect(0, line +450, 800, 5);\n g.fillRect(0, line +500, 800, 5);\n g.fillRect(0, line +550, 800, 5);\n g.fillRect(0, line +600, 800, 5);\n g.fillRect(0, line +650, 800, 5);\n g.fillRect(0, line +700, 800, 5);\n g.fillRect(0, line +750, 800, 5);\n g.fillRect(0, line +800, 800, 5);\n \n //base of the mickey mouse face \n //face drawing\n g.setColor(Color.BLACK);\n g.fillOval(200, 150, 400, 400);\n //right ear\n g.fillOval(Ear + 337, 55, 200, 200);\n //left ear \n g.fillOval(Ear, 55, 200, 200);\n \n //face drawing\n g.setColor(tan);\n //right side of the face\n g.fillOval(352, 167, 215, 368);\n //left side of the face \n g.fillOval(242, 167, 215, 368);\n //bottom part of the face \n g.fillOval(200, 308, 412, 233);\n //mouth base \n g.fillOval(307, 465, 198, 101);\n \n //eyes drawing \n //right eye \n g.setColor(Color.WHITE);\n g.fillOval(425, 240, 50, 140); \n g.setColor(Color.BLACK);\n g.drawOval(425, 240, 50, 140);\n //left eye \n g.setColor(Color.WHITE);\n g.fillOval(350, 240, 50, 140);\n g.setColor(Color.BLACK);\n g.drawOval(350, 240, 50, 140);\n //inner eye \n //right eye \n g.fillOval(432, eyes, 35, 80);\n //left eye\n g.fillOval(358, eyes, 35, 80);\n //draw an arch that cuts off the eye\n g.drawArc(343, 359, 140, 70, 0, 180);\n g.setColor(tan);\n g.fillArc(343, 359, 140, 70, 0, 180);\n \n //draw nose \n g.setColor(Color.BLACK);\n g.fillOval(354, nose, 120, 65);\n \n //draw mouth (arch)\n //arch of the smile\n g.drawArc(267, 345, 290, 140, 180, 180);\n //arch of the left dimple\n g.drawArc(254, 415, 30, 20, 10, 180);\n //arch of the right dimple\n g.drawArc(540, 415, 30, 20, 0, 170); \n //arch of the mouth\n g.drawArc(307, 390, 200, 150, 180, 178); \n // GAME DRAWING ENDS HERE\n }", "title": "" }, { "docid": "7aa83c3c03e9331c3505bb6dbd7ccd37", "score": "0.56287426", "text": "@Override\n\tpublic void draw(Batch batch, float parentAlpha)\n\t{\n\t\tsuper.draw(batch, parentAlpha);\n\t\t\n\t\tfor (int i = 0; i < health; i++)\n\t\t{\n\t\t\tninePatch.draw(batch, getX() + i * size, getY(), size, size);\n\t\t}\n\t}", "title": "" }, { "docid": "1edd2879f7cd2639984afd4d8aeaa467", "score": "0.56246674", "text": "@SuppressWarnings(\"WeakerAccess\")\n public void draw() {\n if (location == null) {\n throw new NullPointerException(\"Must configure this grid's location using setFrame(int, int, int, int)\");\n }\n if (dimension == null) {\n throw new NullPointerException(\"Must configure this grid's size using setFrame(int, int, int, int)\");\n }\n parent.textAlign(PApplet.CENTER, PApplet.CENTER);\n //background\n parent.fill(Env.backgroundColor);\n parent.stroke(Env.backgroundColor);\n parent.rect(location.x, location.y, dimension.x, dimension.y);\n //highlighted areas\n int highlightedNumber = 0;\n parent.fill(Env.focusedBackgroundColor);\n parent.noStroke();\n if (isFocused()) {\n for (int i = 0; i < 9; i++) {\n parent.rect(location.x + dimension.x * (i) / 9, location.y + dimension.y * (focusedY) / 9, dimension.x / 9, dimension.y / 9);\n parent.rect(location.x + dimension.x * (focusedX) / 9, location.y + dimension.y * (i) / 9, dimension.x / 9, dimension.y / 9);\n }\n highlightedNumber = numbers[focusedX][focusedY];\n }\n //highlighted areas when finished\n if (noti.columnTime > 0) {\n parent.fill(0, 255, 0, (float) (255.0 - Math.abs((noti.columnTime / (noti.defaultTime / 2.0) - 1) * 255.0)));\n for (int i = 0; i < 9; i++) {\n parent.rect(location.x + dimension.x * (noti.columnIndex) / 9, location.y + dimension.y * (i) / 9, dimension.x / 9, dimension.y / 9);\n }\n }\n if (noti.rowTime > 0) {\n parent.fill(0, 255, 0, (float) (255.0 - Math.abs((noti.rowTime / (noti.defaultTime / 2.0) - 1) * 255.0)));\n for (int i = 0; i < 9; i++) {\n parent.rect(location.x + dimension.x * (i) / 9, location.y + dimension.y * (noti.rowIndex) / 9, dimension.x / 9, dimension.y / 9);\n }\n }\n if (noti.squareTime > 0) {\n parent.fill(0, 255, 0, (float) (255.0 - Math.abs((noti.squareTime / (noti.defaultTime / 2.0) - 1) * 255.0)));\n parent.rect(location.x + dimension.x * (noti.squareIndex % 3) / 3, location.y + dimension.y * (noti.squareIndex / 3) / 3, dimension.x / 3, dimension.y / 3);\n }\n noti.decrement();\n //numbers\n parent.textSize(Env.fontSize);\n parent.noStroke();\n parent.fill(Env.fontColor);\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n float xPosition = (float) (location.x + dimension.x * i / 9.0 + dimension.x / 18.0);\n float yPosition = (float) (location.x + dimension.y * j / 9.0 + dimension.y / 18.0);\n if (numbers[i][j] > 0) {\n if (numbers[i][j] == highlightedNumber) {\n parent.fill(Env.focusedFontColor);\n } else if (versioned[i][j]) {\n parent.fill(Env.versionedFontColor);\n } else {\n parent.fill(Env.fontColor);\n }\n parent.text(numbers[i][j], xPosition, yPosition);\n }\n }\n }\n //heavy grid lines\n parent.stroke(Env.gridColor);\n parent.noFill();\n parent.strokeWeight(Env.heavyLine);\n for (int i = 0; i <= 3; i++) {\n float xPosition = (float) (location.x + dimension.x * i / 3.0);\n float yPosition = (float) (location.y + dimension.y * i / 3.0);\n parent.line(xPosition, location.y, xPosition, location.y + dimension.y);\n parent.line(location.x, yPosition, location.x + dimension.x, yPosition);\n }\n //light grid lines\n parent.strokeWeight(Env.lightLine);\n for (int i = 0; i <= 9; i++) {\n float xPosition = (float) (location.x + dimension.x * i / 9.0);\n float yPosition = (float) (location.y + dimension.y * i / 9.0);\n parent.line(xPosition, location.y, xPosition, location.y + dimension.y);\n parent.line(location.x, yPosition, location.x + dimension.x, yPosition);\n }\n }", "title": "" }, { "docid": "af352f32413e9efed05e3e3e9a1310ff", "score": "0.56213486", "text": "public void render(SpriteBatch batch) {\n\n stateTime += Gdx.graphics.getDeltaTime(); // #15\n update();\n /*if(f) {\n currentFrame = walkAnimation.getKeyFrame(stateTime, true);\n //if( walkAnimation.isAnimationFinished(stateTime) ) {\n // f = false;\n // stateTime = 0;\n //}\n\n currentX += 2;\n if(currentX > 400) {\n currentX = 0;\n oldX = 0;\n }\n\n if(currentX > oldX + 100) {\n oldX = currentX;\n f = false;\n stateTime = 0;\n }\n\n } else {\n currentFrame = deadAnimation.getKeyFrame(stateTime, false);\n if( deadAnimation.isAnimationFinished(stateTime) ) {\n f = true;\n stateTime = 0;\n }\n }*/\n\n\n //batch.draw(currentFrame, currentX, currentY, 100,100); // #17\n batch.draw (currentFrame, currentX, currentY, 100, 100, 0, 0, currentFrame.getWidth(),\n currentFrame.getHeight(), textureFlip, false);\n }", "title": "" }, { "docid": "8821a75bf7552365ff7bde6e8d7d5f5f", "score": "0.5618473", "text": "public void display() {\n line(\n (this.posX * 50),\n (this.posY * 50),\n ((this.posX + 1) * 50),\n ((this.posY + 1) * 50)\n );\n line(\n ((this.posX + 1) * 50),\n ((this.posY) * 50),\n (this.posX * 50),\n ((this.posY + 1) * 50)\n );\n }", "title": "" }, { "docid": "c46c4ba5aad7c9c97ae58520728451c0", "score": "0.56168294", "text": "public void draw(SpriteBatch batch) {\n\t\tbatch.begin();\n\t\tbatch.draw(coinTexture, this.getX(), this.getY(), coinTexture.getWidth() / 8, coinTexture.getHeight() / 8);\n\t\tbatch.end();\n\t}", "title": "" }, { "docid": "080391d9bdd34a93349d79f4740ae5b9", "score": "0.5616101", "text": "protected abstract void draw();", "title": "" }, { "docid": "080391d9bdd34a93349d79f4740ae5b9", "score": "0.5616101", "text": "protected abstract void draw();", "title": "" }, { "docid": "72360225342f2a1d3f4bc5e1c93b631f", "score": "0.5608187", "text": "public void render(SpriteBatch batch) {\r\n\r\n // DRAW NITRO:\r\n // If the car is in Nitro mode then draw the nitro with the car \r\n if (nitroIncrease > 0) {\r\n batch.draw(flame, position.x - carWidth / 2, position.y - carHeight / 2, carWidth / 2, carHeight / 2, carWidth, carHeight * 2, 1, 1, rotation + 180);\r\n }\r\n\r\n // DRAW THE CAR\r\n batch.draw(carPic, position.x - carWidth / 2, position.y - carHeight / 2, carWidth / 2, carHeight / 2, carWidth, carHeight, 1, 1, rotation);\r\n\r\n// If player would like to see the corners of the car\r\n// batch.draw( carPointPic, position.x, position.y);\r\n// \r\n// // draw corners of the car\r\n// batch.draw( carPointPic, carCorners.backLeftCorner.x, carCorners.backLeftCorner.y);\r\n// batch.draw( carPointPic, carCorners.backRightCorner.x, carCorners.backRightCorner.y);\r\n// batch.draw( carPointPic, carCorners.frontLeftCorner.x, carCorners.frontLeftCorner.y);\r\n// batch.draw( carPointPic, carCorners.frontRightCorner.x, carCorners.frontRightCorner.y);\r\n// \r\n// // draw corners of the car\r\n// batch.draw( carPointPic, carCorners.back.x, carCorners.back.y);\r\n// batch.draw( carPointPic, carCorners.right.x, carCorners.right.y);\r\n// batch.draw( carPointPic, carCorners.left.x, carCorners.left.y);\r\n// batch.draw( carPointPic, carCorners.front.x, carCorners.front.y);\r\n// \r\n\r\n // DRAW A CHECK\r\n // If the car has passed a checkpoint, draw a checkpoint on track\r\n if (hitCheckPoint) {\r\n float cpX = position.x;\r\n float cpY = position.y;\r\n batch.draw(checkPointPic, cpX, cpY, 50, 50);\r\n }\r\n }", "title": "" }, { "docid": "f9ee9e9d95ef746b9b5147c058589495", "score": "0.5605876", "text": "public void update(Batch batch) { //, Firetruck targetTruck, ShapeRenderer renderer\n super.update(batch);\n drawVoxelImage(batch);\n if (patrolPoints[patrolIndex].equals(new Vector2((int) getX() / TILE_DIMS, (int) getY() / TILE_DIMS))) {\n patrolIndex = (patrolIndex + 1) % patrolDirections.length;\n }\n applyAcceleration(patrolDirections[patrolIndex]);\n }", "title": "" }, { "docid": "85b95c7bcf7774c13065e630f940a02b", "score": "0.55974144", "text": "public void draw() {\r\n\t\tpanel.removeAll();\r\n\t\tfor (int i = 0; i < 144; ++i) {\r\n\t\t\tlabels.put(lijst.get(i), new JLabel(lijst.get(i)));\r\n\t\t\tpanel.add(labels.get(lijst.get(i)));\r\n\t\t\tlabels.get(lijst.get(i)).setBackground(Color.white);\r\n\t\t\tif (startLijst.get(i).equals(\"0\") || startLijst.get(i).equals(\"1\")) {\r\n\t\t\t\tlabels.get(lijst.get(i)).setForeground(Color.red);\r\n\t\t\t}\r\n\t\t\tlabels.get(lijst.get(i)).setOpaque(true);\r\n\t\t}\r\n\t\tsetSize(500, 500);\r\n\t\tsetVisible(true);\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t}", "title": "" }, { "docid": "660eec45a840445a5d11cc18c98c91a9", "score": "0.55962425", "text": "public void draw()\n {\n //StdDraw.setPenColor(StdDraw.BLACK);\n //StdDraw.setPenRadius(.01);\n for (Point2D point : pointSet)\n {\n point.draw();\n }\n //StdDraw.show(0);\n }", "title": "" }, { "docid": "ca91b24763cf3171b520c83daef0572e", "score": "0.55858916", "text": "public void draw()\n\t{\n\t\tfill( random(0,255), random(0,255), random(0,255) );\n\t\tellipse(random(0,500), random(0,500), 30, 10);\n\t}", "title": "" }, { "docid": "9d8aea6740fec79b3e00052f2ce62b6f", "score": "0.5585496", "text": "public void paint(Graphics g){\n BufferedImage image;\n Image scaledImage ;\n try {\n String picName = picDir + \"lose_back.png\";\n if(id == 1){\n picName = picDir + \"loop_back.png\";\n }\n image = ImageIO.read(new File(picName));\n scaledImage = image.getScaledInstance(w, h, Image.SCALE_DEFAULT);\n g.drawImage(scaledImage, x, y, null);\n if(id == 2){\n int theId = Integer.parseInt(msg.split(\";b;r;k;\")[0]);\n String theMsg = msg.split(\";b;r;k;\")[1];\n\n g.setFont(new Font(\"TimesRoman\", Font.BOLD, 30));\n g.setColor(Color.black);\n g.drawString(\"Your answer is: \" + ansArr[theId], x + 100, y + 80);\n g.setColor(Color.red);\n g.drawString(theMsg, x + w/2 - 400, y + h /2 );\n }\n if(id == 0){\n g.setFont(new Font(\"TimesRoman\", Font.BOLD, 30));\n g.setColor(Color.red);\n g.drawString(\"You hit the dagger!\", x + w/2 - 400, y + h /2 );\n }\n if(id == 1){\n g.setFont(new Font(\"TimesRoman\", Font.BOLD, 30));\n g.setColor(Color.red);\n g.drawString(\"You fall to an infinite loop!\", x + w/2 - 400, y + h /2 );\n }\n } catch (IOException ex) {}\n }", "title": "" }, { "docid": "7bfcd53a235229a01a69313a60fe6d1f", "score": "0.55840176", "text": "private void drawPartialGrid(int drawX, int drawY, BufferedImage img) {\n\t\tfinal int size = 16;\n\t\tint startX = drawX >= 0 ? drawX % size : (drawX % size) + size;\n\t\tint startY = drawY >= 0 ? drawY % size : (drawY % size) + size;\n\t\tGraphics2D g = (Graphics2D) img.getGraphics();\n\t\tg.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER));\n\n\t\tg.setColor(DARKER_GRAY);\n\t\tfor(int x = startX - size/2; x < img.getWidth() + size/2; x += size){\n\t\t\tg.drawLine(x, 0, x, img.getHeight());\n\t\t}\n\t\tfor(int y = startY - size/2; y < img.getHeight() + size/2; y += size){\n\t\t\tg.drawLine(0, y, img.getWidth(), y);\n\t\t}\n\t\t\n\t\tg.setColor(DARK_GRAY);\n\t\tfor(int x = startX; x < img.getWidth(); x += size){\n\t\t\tg.drawLine(x, 0, x, img.getHeight());\n\t\t}\n\t\tfor(int y = startY; y < img.getHeight(); y += size){\n\t\t\tg.drawLine(0, y, img.getWidth(), y);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "0450a47e33ab4bf2030c4bb166380da9", "score": "0.55839294", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t\tbatch.begin();\t\n\t\tbatch.draw(texture, 0, 0);\n\t\t\n\t\tloadcirc.setRotation(degrees--);\n\t\t\n\t\tbatch.draw(region, 0, 0);\n\t\t\n\t\tif (foundGame)\n\t\t{\n\t\t\tt.stop();\n\t\t\t\t\t\t\n\t\t\tgsm.setState(4);\n\t\t}\n\t\t\t\n\t batch.end();\n\t \n\t\t// avvia lo stage e tutti i suoi attori\n\t stage.act();\n\t\tstage.draw();\n\t \n\t}", "title": "" }, { "docid": "25431bcaea10b7721a28fa5e638b4be6", "score": "0.5582838", "text": "public void draw(float left, float bottom);", "title": "" }, { "docid": "72e134246ed4bcfcb427d106dffbba1e", "score": "0.5579897", "text": "public void draw(Graphics g) {\r\n/* 500 */ g.drawImage(this.image, this.x, this.y, null);\r\n/* */ }", "title": "" }, { "docid": "e7509e148c95c066e4d5e3930bcb1b53", "score": "0.5574799", "text": "public void draw(){\n if(ourHolder.getSurface().isValid()) {\n canvas = ourHolder.lockCanvas();\n canvas.drawColor(Color.argb(255, 26, 128, 182));\n paint.setColor(Color.argb(255, 249, 129, 0));\n paint.setTextSize(45);\n\n canvas.drawBitmap(bitmap_background, background_x, 0, null);\n\n canvas.drawText(\"Score : \"+ score, 20, 60, scorePaint);\n\n //HEARTS\n for(int i = 0; i < 3; i++){\n int x = (canvasWidth - 100 - (100 * i));\n int y = 10;\n\n if( i < lifeCounterOfTurtle)\n canvas.drawBitmap(life[0], x, y, null);\n else\n canvas.drawBitmap(life[1], x, y, null);\n }\n\n //this will be placed in a final draw function\n bitmap_turtle = Bitmap.createScaledBitmap(\n bitmap_turtle,\n turtle_frameWidth * turtle_frameCount,\n turtle_frameHeight,\n false\n );\n turtle_whereToDraw.set(\n turtle_x,\n turtle_y,\n turtle_x + turtle_frameWidth,\n turtle_y + turtle_frameHeight\n );\n if(isSpark){\n bitmap_sparkEffect = Bitmap.createScaledBitmap(\n bitmap_sparkEffect,\n spark_frameWidth * spark_frameCount,\n spark_frameHeight,\n false\n );\n spark_whereToDraw.set(\n turtle_x,\n maxTurtleY,\n turtle_x + spark_frameWidth,\n maxTurtleY + spark_frameHeight\n );\n }\n if(isSplash){\n\n //this is where the error is\n //its something to do with the width\n\n\n\n\n\n\n bitmap_splashEffect = Bitmap.createScaledBitmap(\n bitmap_splashEffect,\n splash_frameWidth * splash_frameCount,\n splash_frameHeight,\n false\n );\n splash_whereToDraw.set(\n turtle_x,\n minTurtleY,\n turtle_x + splash_frameWidth,\n minTurtleY + splash_frameHeight\n );\n }\n\n //WORM\n bitmap_worm = Bitmap.createScaledBitmap(\n bitmap_worm,\n worm_frameWidth * worm_frameCount,\n worm_frameHeight,\n false\n );\n worm_whereToDraw.set(\n worm_x,\n worm_y,\n worm_x + worm_frameWidth,\n worm_y + worm_frameHeight\n );\n\n\n //not sure why this is here\n getCurrentFrame();\n\n canvas.drawBitmap(\n bitmap_turtle,\n turtle_frameToDraw,\n turtle_whereToDraw,\n paint\n );\n\n canvas.drawBitmap(\n bitmap_worm,\n worm_frameToDraw,\n worm_whereToDraw,\n paint\n );\n\n if(isSpark){\n canvas.drawBitmap(\n bitmap_sparkEffect,\n spark_frameToDraw,\n spark_whereToDraw,\n paint\n );\n }\n\n if(isSplash){\n canvas.drawBitmap(\n bitmap_splashEffect,\n splash_frameToDraw,\n splash_whereToDraw,\n paint);\n Log.e(\"Draw()\",\"isSplash \"+splash_currentFrame);\n }\n\n\n\n ourHolder.unlockCanvasAndPost(canvas);\n }\n }", "title": "" }, { "docid": "27605471ff0a8390452f89300e774b4b", "score": "0.5573068", "text": "@Override\n public void draw(Batch batch) {\n batch.draw(sprite.getTexture(),\n this.position.x * Game.UNIT_SCALE,\n this.position.y * Game.UNIT_SCALE,\n sprite.getWidth() / 2 * Game.UNIT_SCALE,\n sprite.getHeight() / 2 * Game.UNIT_SCALE,\n this.sprite.getWidth() * Game.UNIT_SCALE,\n this.sprite.getHeight() * Game.UNIT_SCALE,\n 1.0f,\n 1.0f,\n direction.angle(),\n sprite.getRegionX(),\n sprite.getRegionY(),\n sprite.getRegionWidth(),\n sprite.getRegionHeight(),\n false, isFlipped\n );\n\n if (Game.getDebugMode()) {\n batch.draw(debug.getTexture(),\n this.position.x * Game.UNIT_SCALE,\n this.position.y * Game.UNIT_SCALE,\n aabb.getWidth() / 2 * Game.UNIT_SCALE,\n aabb.getHeight() / 2 * Game.UNIT_SCALE,\n this.aabb.getWidth() * Game.UNIT_SCALE,\n this.aabb.getHeight() * Game.UNIT_SCALE,\n 1.0f,\n 1.0f,\n direction.angle(),\n sprite.getRegionX(),\n sprite.getRegionY(),\n sprite.getRegionWidth(),\n sprite.getRegionHeight(),\n false, isFlipped);\n }\n }", "title": "" }, { "docid": "03bb75a417d19a0fe594d0c60457abe5", "score": "0.55725294", "text": "@Override\n\tpublic void Draw() {\n\t\tshap.Draw();\n\t\t\n\t}", "title": "" }, { "docid": "0dbda30f8aeec9c30596ab0bca4e84b1", "score": "0.556969", "text": "public void startNewRound(ArrayList<Line> createdLines)\n {\n //stop cursor timer while drawphase is being refreshed\n cursorTimer.stop(); \n //create new canvas and graphics to draw points\n canvas = new Canvas(1800, 900);\n gc = canvas.getGraphicsContext2D(); \n //banner displaying state of drawphase\n topBanner = new Text(); \n topBanner.setText(\"Draw Phase: Player \" + game.getGameWinner() + \"'s Turn\");\n topBanner.setFont(new Font(45));\n topBanner.setFill(Color.BLACK);\n topBanner.setStrokeWidth(1.5);\n topBanner.setStroke(Color.BLACK);\n topBanner.setTextOrigin(VPos.TOP);\n \n\n //display cursors, move to positions \n cursor1 = new ImageView(\"pointer1.png\");\n cursor2 = new ImageView(\"pointer2.png\");\n \n //create root group and scene\n root = new Group(canvas, topBanner, cursor1, cursor2);\n scene = new Scene(root, 1800, 900); \n setKeyBinds();\n \n ImageView background = new ImageView(\"notebook3.png\");\n background.setFitHeight(2500);\n background.setFitWidth(2020);\n background.setPreserveRatio(true);\n background.setSmooth(true); \n root.getChildren().add(background); \n background.toBack(); \n \n //format topBanner and cursors \n topBanner.layoutXProperty().bind(scene.widthProperty().subtract(topBanner.prefWidth(-1)).divide(2));\n topBanner.layoutYProperty().bind(scene.heightProperty().subtract(850));\n\n //format cursor1 and cursor2\n cursor1.relocate(0 + cursor1.getImage().getWidth(), scene.getHeight() - cursor1.getImage().getHeight());\n cursor2.relocate(scene.getWidth() - cursor2.getImage().getWidth(), scene.getHeight() - cursor2.getImage().getHeight());\n \n //create arraylists for holding points and lines\n selectedPoints = new ArrayList<Point2D.Double>();\n this.createdLines = createdLines; \n //add lines from arraylist\n root.getChildren().addAll(this.createdLines); \n //start the drawPhase\n cursorTimer.start();\n game.setDrawPhase(true); \n }", "title": "" }, { "docid": "a2d3bf68ba702ebaede61869c1bf647b", "score": "0.5566357", "text": "public void draw(SpriteBatch batch, int pid)\n\t{\n\t\tbatch.draw(img, rect.x, rect.y, rect.width, rect.height);\n\t\t\n\t\t// Draw each Tile\n\t\tfor (int i = 0; i < tiles.length; i++)\n\t\t{\n\t\t\tTile tile = tiles[i];\n\t\t\tfloat tileX = rect.x + indexToXOffset(i);\n\t\t\tfloat tileY = rect.y + indexToYOffset(i);\n\t\t\ttile.draw(batch, font, tileX, tileY, pid);\n\t\t}\n\t}", "title": "" }, { "docid": "a4a2e7167891c44952368c31444db244", "score": "0.55608207", "text": "public void draw()\n{\n}", "title": "" } ]
5aa96ec48a1a0033dcdd9c53d45d78a2
Create a new connection
[ { "docid": "73b82847c151549e89f77bc220c3f67a", "score": "0.0", "text": "@Theory\n public void whenUsingQuit_EnsureTheConnectionIsClosed(Jedis jedis){\n Client client = jedis.getClient();\n Jedis newJedis = new Jedis(client.getHost(), client.getPort());\n newJedis.set(\"A happy lucky key\", \"A sad value\");\n assertEquals(\"OK\", newJedis.quit());\n\n expectedException.expect(JedisConnectionException.class);\n\n newJedis.set(\"A happy lucky key\", \"A sad value 2\");\n }", "title": "" } ]
[ { "docid": "2a99743e5410f13c25fe82ce0f8c4a53", "score": "0.8105622", "text": "protected Connection createConnection() {\n\t\treturn ConnectionBuilder.with(this).build();\n\t}", "title": "" }, { "docid": "6139a76c12b301d7e9afc207d75ae565", "score": "0.736428", "text": "static Connection makeConnection() {\n count++;\n return new Connection();\n }", "title": "" }, { "docid": "a897f5fd0feb98b9d2eaf04a1177bdb3", "score": "0.72584575", "text": "public OtpConnection createConnection() throws ConnectionException {\n \t\treturn createConnection(clientName);\n \t}", "title": "" }, { "docid": "62d8cbf7447dc3a6e1281a5a385eaa8a", "score": "0.72460294", "text": "public abstract AbstractConnection createConnection() throws ServiceExecutionException;", "title": "" }, { "docid": "607850596ba8c5e0023de2040f73c24a", "score": "0.7217169", "text": "protected synchronized Connection createConnection() throws SQLException {\n\t\topen();\n activeCountAdd();\n return createTheConnection();\n\n }", "title": "" }, { "docid": "c42b7d83b44f9fb25700dd75789e6153", "score": "0.7150568", "text": "protected void create_connection() throws Exception {\n\t\tif (!Strings.isStringEmpty(getUrl())\n\t\t\t\t&& !Strings.isStringEmpty(getUser())\n\t\t\t\t&& !Strings.isStringEmpty(getPassword())) {\n\t\t\tconnection = cereate_connection(getUrl(), getUser(), getPassword());\n\t\t} else if (!Strings.isStringEmpty(getUrl())\n\t\t\t\t&& (Strings.isStringEmpty(getUser()) || Strings\n\t\t\t\t\t\t.isStringEmpty(getPassword()))) {\n\t\t\tconnection = cereate_connection(getUrl());\n\t\t} else {\n\t\t\tSystem.err.println(Translator\n\t\t\t\t\t.getString(\"MSG_ERR_CANT_CREATE_JDBC_CONNECTION\")\n\t\t\t\t\t+ \" \"\n\t\t\t\t\t+ Translator\n\t\t\t\t\t\t\t.getString(\"MSG_ERR_CONNECTIONSTRING_NOT_SETUP\"));\n\t\t\tconnection = null;\n\t\t}\n\t\tconnection.setAutoCommit(false);\n\t}", "title": "" }, { "docid": "3d766f868e0cf02f46ac0a67fb3c0dd0", "score": "0.7121065", "text": "public Connection getNewConnection() {\n\t\tConnection connection = null;\n\t\tprops = new Properties();\n\t\treadProperties();\n\n\n\t\tds.setServerName(props.getProperty(\"host\"));\n\t\tds.setUser(props.getProperty(\"user\"));\n\t\tds.setPassword(props.getProperty(\"password\"));\n\n\n\t\ttry (PreparedStatement ps = ds.getConnection()\n\t\t\t\t.prepareStatement(\"CREATE DATABASE IF NOT EXISTS \" + props.getProperty(\"databasename\") + \";\")) {\n\t\t\tps.execute();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Database is already created\");\n\t\t}\n\n\t\t// Select created table\n\t\tds.setDatabaseName(props.getProperty(\"databasename\"));\n\n\t\ttry {\n\t\t\tconnection = ds.getConnection();\n\t\t\treturn connection;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Did not manage to open a connection -DBCONNENCTOR\");\n\t\treturn connection;\n\n\t}", "title": "" }, { "docid": "184e5d8b8398ed4adcf22ccacc2068d9", "score": "0.71207666", "text": "protected abstract boolean createConnection();", "title": "" }, { "docid": "27c677ccc0c9fe7de37d48d2751dc559", "score": "0.7081678", "text": "private void createConnection() {\n\t\tif (conn == null) {\n\t\t\tif (ds == null) {\n\t\t\t\tds = new MysqlDataSource();\n\t\t\t}\n\t\t\tds.setURL(URL);\n\t\t\tds.setUser(username);\n\t\t\tds.setPassword(password);\n\t\t\t// Create a database connection object\n\t\t\ttry {\n\t\t\t\tconn = ds.getConnection();\n\t\t\t\tconn.setAutoCommit(false);\n\t\t\t\tconn.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ);\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bcefe7ad5ee87631c7e05c5880968f27", "score": "0.7038496", "text": "private Connection createConnection() throws SQLException {\n\t\treturn DriverManager.getConnection(url, login, password);\n\t}", "title": "" }, { "docid": "f26c334e5493dcdf2a317d8b421f08bc", "score": "0.700948", "text": "protected Connection newConnection () {\n\t\t\t\treturn new NPlayerConnection();\n\t\t\t}", "title": "" }, { "docid": "dbf62cbfc64a49b5ff2c7d53afc16014", "score": "0.6925436", "text": "public abstract InternalDbConnection createConnection() throws Exception;", "title": "" }, { "docid": "b1656e545e6aabc5407bf3e2f565844d", "score": "0.68592924", "text": "private void createAndConnect()\n {\n Intent createConnection;\n\n //start a new activity to gather information for a new connection\n createConnection = new Intent();\n createConnection.setClassName(\n clientConnections.getApplicationContext(),\n \"insacvl.sti.ssu.homedz.pahowrapper.NewConnection\");\n\n clientConnections.startActivityForResult(createConnection,\n ActivityConstants.connect);\n }", "title": "" }, { "docid": "8ac61e378cf4dae385668348f902c330", "score": "0.68332374", "text": "private Connection createConnection(int queryLevel) throws DataServiceFault {\n try {\n String[] creds = this.lookupConnectionCredentials();\n Connection connection;\n DataServiceConnection dsCon = TLConnectionStore.getConnection(this.getConfigId(), creds[0], queryLevel);\n if (dsCon == null) {\n Object[] connInfo = this.getConfig().createConnection(creds[0], creds[1]);\n connection = (Connection) connInfo[0];\n boolean isXA = (Boolean) connInfo[1];\n dsCon = new SQLDataServicesConnection(connection, isXA);\n TLConnectionStore.addConnection(this.getConfigId(), creds[0], queryLevel, dsCon);\n } else {\n connection = ((SQLDataServicesConnection) dsCon).getJDBCConnection();\n }\n if (DispatchStatus.isInBatchBoxcarring() && !dsCon.isXA()) {\n /* disable autocommit, and add to the connection list */\n setAutoCommit(connection, false);\n } else if (!dsCon.isXA()) {\n /* for normal operations */\n switch (this.getAutoCommit()) {\n case AUTO_COMMIT_ON:\n setAutoCommit(connection, true);\n break;\n case AUTO_COMMIT_OFF:\n setAutoCommit(connection, false);\n break;\n default:\n break;\n }\n }\n return connection;\n } catch (SQLException e) {\n throw new DataServiceFault(e, FaultCodes.DATABASE_ERROR, \"Error in opening DBMS connection.\");\n }\n }", "title": "" }, { "docid": "d33a377363934c64695bdd0d126ce81c", "score": "0.68007034", "text": "public Connect() { \n\t\tthis.newConnection(new DataSource());\n\t}", "title": "" }, { "docid": "969288f9344f53333cb97e2d27e61835", "score": "0.6797709", "text": "HConnection createConnection(Configuration conf) throws ZooKeeperConnectionException;", "title": "" }, { "docid": "33788e5cadda8dbe756631d04eb4a8dc", "score": "0.67577565", "text": "Connection createConnection() throws DatabaseException;", "title": "" }, { "docid": "038a899e47cbcf6405b4fd1a584a4c20", "score": "0.6737534", "text": "public static void createConnection() {\r\n Properties connectionProps = new Properties();\r\n connectionProps.put(\"user\", userName);\r\n connectionProps.put(\"password\", password);\r\n\r\n try {\r\n conn = DriverManager.getConnection(\"jdbc:\" + \"mysql\" + \"://\"\r\n + serverName + \"/\", connectionProps);\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "2976281edaa9375acc2a3c2837cda0d0", "score": "0.6718809", "text": "public SingleConnection() {\n\t\tconnect();\n\t}", "title": "" }, { "docid": "57065b78e464555740a98caeb610d3a4", "score": "0.67170143", "text": "void openConnection();", "title": "" }, { "docid": "893ef294dedbf3df68b03926d3080be0", "score": "0.6705177", "text": "protected void getNewConnection(){\n \treleaseConnection();\n \tDBConnectionsPoolManager pool = DBConnectionsPoolManager.getInstance();\n connexion = pool.getConnection();\n\t\tcreateStatement();\n }", "title": "" }, { "docid": "0fbbae4ea451ab57011a4472a7526b12", "score": "0.6700968", "text": "private void createLocalConnection_internal() {\n\t\tcreateLocalConnection();\n\t}", "title": "" }, { "docid": "d70e2f391025851560ad771913757771", "score": "0.670068", "text": "public static Connection createConnection() {\n Connection conn = null;\n try {\n \tClass.forName(DRIVER);\n conn = DriverManager.getConnection(DBURL, USER, PASS);\n } catch (SQLException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n \te.printStackTrace();\n }\n return conn;\n }", "title": "" }, { "docid": "057b3b2777ea15b932a79cdfa964b6d8", "score": "0.66012174", "text": "Connection getConnection();", "title": "" }, { "docid": "79fed59267d1ba7252dc9a9b1834de24", "score": "0.6533483", "text": "protected void createConection() {\r\n \r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");//No obligatorio de declarar pero recomendado\r\n this.conexion = (Connection) DriverManager.getConnection(url, \"root\", \"admin\");\r\n this.instruccion = conexion.createStatement();\r\n System.out.println(\"Conexion exitosa!!!\");\r\n \r\n } catch (SQLException|ClassNotFoundException e) {\r\n System.out.println(\"Error de coneccion\");\r\n }\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "f19a56632b4ac149bab212ac66c9b29f", "score": "0.65332747", "text": "@Override\n protected Connection createObject() {\n try {\n created++;\n log.debug(\"pool {} creating new object for pool, now created {} trashed {} total {}\", toString(), created, trashed, (created-trashed));\n Connection c = ds.getConnection();\n log.debug(\"created connection from data source\");\n return new PooledConnection(c, this);\n } catch (SQLException e) {\n throw new IllegalStateException(\"Cannot create connection\", e);\n }\n }", "title": "" }, { "docid": "41b75c6c0deef53d44b5c719561505a1", "score": "0.6531767", "text": "private void createExternalConnection_internal() {\n\t\tcreateExternalConnection();\n\t}", "title": "" }, { "docid": "8ee9e006a0a38958cd85c3fbeaed081b", "score": "0.6438246", "text": "private Connection createConnection() throws JMSException {\n ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(\"vm://localhost?broker.persistent=false\");\n return connectionFactory.createConnection();\n }", "title": "" }, { "docid": "f312f5554be8f3482662220371d31704", "score": "0.6402953", "text": "public Connection fun () throws SQLException\r\n {\r\n connection makeconn = new connection();\r\n \r\n Connection conn = makeconn.conn();\r\n \r\n return conn;\r\n }", "title": "" }, { "docid": "5a22fa980fb494ac1a5ab94c551eb757", "score": "0.6394943", "text": "public Connection newConnection(DBKey key)\n throws SQLException //deleted synchronized\n {\n Connection c;\n c =\n DriverManager.getConnection(\n key.getUrl(),\n key.getUsername(),\n key.getPassword());\n return c;\n }", "title": "" }, { "docid": "76a2a4a314ce00377c5e49750ee62737", "score": "0.6362051", "text": "public RemoteMBeanServer createConnection(ConnectorFactoryImpl.ConnectorName pConnector)\n {\n return mFactory.createConnection( pConnector );\n }", "title": "" }, { "docid": "336eb97ce1a2f2a4e3cb235d527a12ac", "score": "0.63559026", "text": "public static void createConnection() {\n try {\n connection = DriverManager.getConnection(Constants.DATABASE_URL);\n runMigrations(connection);\n } catch (SQLException ex) {\n throw new RuntimeException(\"Error connecting to the database\", ex);\n }\n }", "title": "" }, { "docid": "f28344e57e301521dfe964f86bcc11ff", "score": "0.6335269", "text": "private Connection createConnection() throws SQLException {\n\n\t\tLOG.trace(\"Start DataBaseConnectionPool#createConnection()\");\n\t\tfinal Connection connection = DriverManager.getConnection(\n\t\t\t\tconnectionProperties.getDbURL(),\n\t\t\t\tconnectionProperties.getDbUsername(),\n\t\t\t\tconnectionProperties.getDbPassword());\n\t\tconnection.setAutoCommit(false);\n\t\tLOG.trace(\"Complete DataBaseConnectionPool#createConnection()\");\n\t\treturn connection;\n\t}", "title": "" }, { "docid": "19605c3e5c13a0f2628f53d76cf63d33", "score": "0.63213974", "text": "private void createBackGroundConnection() {\n\n\t\tLOG.trace(\"Start DataBaseConnectionPool#createBackGroundConnection()\");\n\n\t\tLOG.debug(\"Back ground connection required, means some connection is in pending state.\");\n\t\tpendingConnection = true;\n\t\ttry {\n\t\t\tLOG.debug(\"Create connection and return.\");\n\t\t\tfinal Thread connectThread = new Thread(this);\n\t\t\tconnectThread.start();\n\t\t} catch (final OutOfMemoryError oome) {\n\t\t\tLOG.fatal(oome, \"Out of memory space error : \" + oome);\n\t\t}\n\n\t\tLOG.trace(\"Complete DataBaseConnectionPool#createBackGroundConnection()\");\n\t}", "title": "" }, { "docid": "6029a34c32dbff39afe4d433359fb661", "score": "0.6302022", "text": "@Override\r\n protected Connection create() throws SQLException {\r\n LogUtil.trace(this, \"DBConnectionPool:create\");\r\n final var con = DriverManager.getConnection(this.url, this.username, this.password);\r\n if (ArrayUtil.isNotEmpty(this.executeSqlOnCreate)) {\r\n for (final String sql : this.executeSqlOnCreate) {\r\n try {\r\n DBUtil.update(con, sql);\r\n } catch (final SimpleSqlException sqle) {\r\n LogUtil.warn(this, sqle);\r\n }\r\n }\r\n }\r\n return new DBConnectionWrapper(this, con);\r\n }", "title": "" }, { "docid": "809f48ed39cebec84c249616fcfe1657", "score": "0.6292764", "text": "@Override\r\n\tpublic Connection connect() {\r\n\r\n\t\tStopwatch timer = Stopwatch.createStarted();\r\n\t\ttry {\r\n\r\n\t\t\t// prepare connection url\r\n\t\t\tString url = \"jdbc:postgresql://\" + server + \":\" + port + \"/\"\r\n\t\t\t\t\t+ dbName.toLowerCase();\r\n\r\n\t\t\t// create properties object to pass connection info\r\n\t\t\tProperties dbProb = new Properties();\r\n\t\t\tdbProb.setProperty(\"allowEncodingChanges\", \"true\");\r\n\t\t\tdbProb.setProperty(\"user\", username);\r\n\t\t\tdbProb.setProperty(\"password\", password);\r\n\t\t\ttry {\r\n\t\t\t\t// get connection to db\r\n\t\t\t\tconn = DriverManager.getConnection(url, dbProb);\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tLogger.errorLogger.catching(new Exception(\r\n\t\t\t\t\t\t\"Error: Attempt to connect to database \\\"\"\r\n\t\t\t\t\t\t\t\t+ dbName\r\n\t\t\t\t\t\t\t\t+ ((username == null) ? \"\"\r\n\t\t\t\t\t\t\t\t\t\t: (\" with username \\\"\" + username))\r\n\t\t\t\t\t\t\t\t+ \"\\\" failed: \" + e.getMessage()));\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.errorLogger.catching(e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t} finally {\r\n\t\t\tLogger.infoLogger.info(\"Total time for connecting to db : \"\r\n\t\t\t\t\t+ timer.stop());\r\n\t\t}\r\n\t\treturn conn;\r\n\t}", "title": "" }, { "docid": "8d74968e24c5fb7072e74bac1511191f", "score": "0.6278781", "text": "protected void openConnection(final HostContext context) {\n final ChannelPipeline pipeline;\n try {\n pipeline = this.pipelineFactory.getPipeline();\n } catch (Exception e) {\n LOG.error(\"Failed to create pipeline.\", e);\n // bail out before marking a connection as opening.\n return;\n }\n\n // Signal that a new connection is opening.\n context.getConnectionPool().connectionOpening();\n\n // server:port-X\n String id = new StringBuilder().append(this.hostId(context)).append(\"-\")\n .append(this.connectionCounter++).toString();\n\n // If not using NIO, then delegate the blocking write() call to the executor.\n Executor writeDelegator = this.useNio ? null : this.executor;\n\n final HttpConnection connection = this.connectionFactory\n .createConnection(id, context.getHost(), context.getPort(), this, this.timeoutManager, writeDelegator);\n\n pipeline.addLast(\"handler\", connection);\n\n // Delegate actual connection to other thread, since calling connect is a blocking call.\n this.executor.execute(new Runnable() {\n @Override\n public void run() {\n ClientBootstrap bootstrap = new ClientBootstrap(channelFactory);\n bootstrap.setOption(\"reuseAddress\", true);\n bootstrap.setOption(\"connectTimeoutMillis\", connectionTimeoutInMillis);\n bootstrap.setPipeline(pipeline);\n bootstrap.connect(new InetSocketAddress(context.getHost(), context.getPort()))\n .addListener(new ChannelFutureListener() {\n @Override\n public void operationComplete(ChannelFuture future) throws Exception {\n if (future.isSuccess()) {\n // Don't even bother checking if client was already instructed to terminate since\n // CleanupChannelGroup takes care of that.\n channelGroup.add(future.getChannel());\n }\n }\n });\n }\n });\n }", "title": "" }, { "docid": "0e157ba79e87ee3d235664c51ef04a79", "score": "0.62493896", "text": "public static Connection getConnection() {\n Connection conn = null;\n\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = DriverManager.getConnection(\"jdbc:mysql://pemysql01.365techsupport.com:3306/I-87620_court?useServerPrepStmts=false\", \"ccourt\", \"amar@123\");\n\n if (conn != null) {\n conn_create_count++;\n // logger.info(\"makeConnection: \" + conn_create_count);\n } else {\n conn = null;\n }\n\n } catch (Exception e) {\n }\n\n return conn;\n }", "title": "" }, { "docid": "9cc977c1e9cf6e5dbdf9b12b4b643151", "score": "0.62372994", "text": "public LinkConnection() {}", "title": "" }, { "docid": "cb2d4d57571f352d85da122f2f6bff35", "score": "0.62137157", "text": "private Connection makeConnection() throws SQLException,\n\t\t\tClassNotFoundException {\n\t\tClass.forName(\"org.sqlite.JDBC\"); // get the DB driver object\n\t\t\n\t\t// get the connection object\n\t\tcon = DriverManager.getConnection(\"jdbc:sqlite:\" + StaticVariables.DBURI);\n\t\treturn con;\n\t}", "title": "" }, { "docid": "a7727b1e059de400e7c24a538bdb8b04", "score": "0.6209894", "text": "@SuppressWarnings(\"finally\")\n\tpublic static Connection createConnection() throws Exception {\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tClass.forName(Constants.dbClass);\n\t\t\tcon = DriverManager.getConnection(Constants.dbUrl, Constants.dbUser, Constants.dbPassword);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t} finally {\n\t\t\treturn con;\n\t\t}\n\t}", "title": "" }, { "docid": "ff61a44daca0becab57666655510ff64", "score": "0.6208746", "text": "Integer openConnection(String protocol, String server, String username, String password);", "title": "" }, { "docid": "b68080be8787564fb559d201abd5a680", "score": "0.6199415", "text": "private HttpURLConnection createConnection(String url) throws IOException {\n HttpURLConnection con = (HttpURLConnection) new URL(url).openConnection();\n con.setConnectTimeout(4000);\n con.setReadTimeout(8000);\n con.connect();\n return con;\n }", "title": "" }, { "docid": "e5401c5a594e2ab6c35a3db83b8258e3", "score": "0.6182818", "text": "@Override\r\n\tpublic Connection connect(String url, Properties info) throws SQLException {\n\t\tSystem.out.println(url);\r\n\t\tSystem.out.println(info);\r\n\t\treturn new MyConnection();\r\n\t}", "title": "" }, { "docid": "a3fe1525db31c7dfaf4c6b51e300e39f", "score": "0.6178757", "text": "private Connection createConnection(String dbUrl, String dbUser, String dbPass) throws SQLException {\n return (Connection) DriverManager.getConnection(\n String.format(\"%s?user=%s&password=%s&rewriteBatchedStatements=true\", dbUrl, dbUser, dbPass));\n }", "title": "" }, { "docid": "2bd7930e38e8bd5276a5d42946fd654f", "score": "0.6160424", "text": "private static Connection getNewConnection() {\n if(!initialized) initialize();\n Connection conn = null;\n /*\n try {\n Class.forName(\"com.mysql.cj.jdbc.Driver\").newInstance(); //Not normally needed for MySQL - but ...\n } catch (ClassNotFoundException ex) {\n WebErrorLogger.log(Level.SEVERE, \"Could not find the class com.mysql.jdbc.Driver \\n\"\n + \"Program will now exit. \", ex);\n System.exit(1);\n } catch (InstantiationException ex) {\n WebErrorLogger.log(Level.SEVERE, \"Could not instaniate the class com.mysql.jdbc.Driver \\n\"\n + \"Program will now exit. \", ex);\n System.exit(1);\n } catch (IllegalAccessException ex) {\n WebErrorLogger.log(Level.SEVERE, \"Could not access the class com.mysql.jdbc.Driver \\n\"\n + \"Program will now exit. \", ex);\n System.exit(1);\n }\n */\n try {\n conn = DriverManager.getConnection(databaseURL, userName, password);\n } catch (SQLException ex) {\n WebErrorLogger.log(Level.SEVERE, \"SQL Exception was thrown while \"\n + \"trying to connect to the database. Database string = \"\n + databaseURL + \" user = \" + userName + \" password = \" + password,ex);\n }\n //Connection is thread safe, but only one thread can access the database at once now\n return conn;\n }", "title": "" }, { "docid": "2c852e161ae58c071e7e26c67e118e6e", "score": "0.61593044", "text": "private DbConnection() {\n\t\tSystem.out.println(\"Creating an connection object...\");\n\t\tSystem.out.println(\"Loading configuration...\");\n\t\tthis.connectionString = \"127.0.0.1:1443\";\n\t\tthis.schema = \"cts\";\n\t}", "title": "" }, { "docid": "1361d546ebd67f0656cb05260b1ad15f", "score": "0.6154602", "text": "public static Connection createDatabaseConnection(DatabaseDescription\n\t\t\t\t\t\t describe) \n {\n\t\n\ttry \n\t {\n\n\t\t// the connection is not null (avoid NPEs) and it is\n\t\t// closed so we do not need to re-connect\n\t\tif( databaseConnection != null && \n\t\t !databaseConnection.isClosed() )\n\t\t {\n\t\t\t\n\t\t\treturn databaseConnection;\n\t\t\t\n\t\t }\n\n\t\t// Load the HSQL Database Engine JDBC driver\n\t\tClass.forName(\"org.hsqldb.jdbcDriver\");\n\n\t\t// extract the information from the database \n\t\t// description that explains how we connect\n\t\t// (following the HSQLDB 1.7.2 syntax for socket)\n\t\tdatabaseConnection =\n\t\t DriverManager.\n\t\t getConnection(describe.getUrl(), \n\t\t\t\t describe.getUserName(), \n\t\t\t\t describe.getPassword());\n\t \n\t }\n\n\tcatch(Exception e)\n\t {\n\t\t\n\t\te.printStackTrace();\n\t\t\n\t }\n\t\t\n \treturn databaseConnection;\n\n }", "title": "" }, { "docid": "cabff366554e34e66aa46f4377fd45f0", "score": "0.61472917", "text": "public static Connection getConnection() throws Exception {\n ConnectionFactory connectionFactory = new ConnectionFactory();\n connectionFactory.setUsername(USERNAME);\n connectionFactory.setPassword(PASSWORD);\n connectionFactory.setVirtualHost(VIRTUAL_HOST);\n connectionFactory.setConnectionTimeout(TIMEOUT);\n connectionFactory.setRequestedHeartbeat(HEARTBEAT);\n connectionFactory.setHost(HOST_ADDRESS);\n connectionFactory.setPort(PORT);\n\n return connectionFactory.newConnection();\n }", "title": "" }, { "docid": "ea28206ae148f3b2a595337a5c40f363", "score": "0.614279", "text": "public DBConnect() {\n\t\ttry {\n\t\t\tconnection = DriverManager.getConnection(url, username, password);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Error creating connection to database: \" + e.getMessage());\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "title": "" }, { "docid": "b66d97b9e4030c91db27afdbef1dc07d", "score": "0.6129325", "text": "protected Connection connect() throws Exception{\n return connBldr.connect();\n }", "title": "" }, { "docid": "85bca5c24f3239fb71bf0528eaedf45b", "score": "0.60843945", "text": "public synchronized void newConnection(final String[] details) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tConnection connection = new Connection(details[0], details[1], details[2]);\n\t\t\t\tconnection.start();\n\t\t\t\tconnections.add(connection);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "52804a7a9e63d529d5daf0576bef226d", "score": "0.60799235", "text": "public void getConnection() {\n client = new EClientSocket (this);\n client.eConnect (null, port, connectId);\n try {\n while (! (client.isConnected()));\n }\n catch (Exception e) {\n error(e);\n }\n }", "title": "" }, { "docid": "4f27b474e90ee97724e504a5c405fc9d", "score": "0.60786915", "text": "protected void createConnection() throws NamingException, JMSException{\n ConnectionFactory cf = (ConnectionFactory) context.lookup(\"SBCF\");\n Destination queue = (Destination) context.lookup(\"QUEUE\");\n\n // Create Connection\n logger.info(\"Trying to connect to \" + queue.toString());\n connection = cf.createConnection();\n\n connection.setExceptionListener(exception -> {\n logger.error(\"ExceptionListener triggered: \" + exception.getMessage(), exception);\n try {\n Thread.sleep(5000); // Wait 5 seconds (JMS server restarted?)\n createConnection();\n } catch (InterruptedException | NamingException | JMSException e) {\n logger.error(\"Error pausing thread\" + e.getMessage());\n }\n });\n\n sendSession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n sender = sendSession.createProducer(queue);\n }", "title": "" }, { "docid": "7601c49af7ede22e2453f227f8e003e6", "score": "0.60778594", "text": "static SAClient connectTo() throws ConnectionException {\r\n return connectTo(DEFAULT_PARAMETERS);\r\n }", "title": "" }, { "docid": "44e414fd3e2d4f6eb88ac065f2ae5091", "score": "0.60608315", "text": "static Connection makeConnection() {\n Connection conn = null;\n try {\n Class.forName(\"org.sqlite.JDBC\");\n conn = DriverManager.getConnection(\"jdbc:sqlite:db/paster.sq3\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return conn;\n }", "title": "" }, { "docid": "705d7501e2d238981841bf1a857ab667", "score": "0.60577446", "text": "public static Connection getConnection()\n {\n if(connection == null) {\n createConnection();\n }\n return connection;\n }", "title": "" }, { "docid": "9f1a47886a6273b7398fcba9bc65f50a", "score": "0.60531056", "text": "private void connect() {\n ClientInfo.Builder info = ClientInfo.newBuilder().setFormat(\"protobuf\");\n executeCommand(ScopeCommand.CONNECT, info);\n }", "title": "" }, { "docid": "61ff1448d1d04ccf2c89fa46b890e809", "score": "0.6029844", "text": "public void makeConnection() throws SQLException {\n String pc = \"mestral.ddns.net\";\n String bd = \"rsudario_gproductes\";\n String user = \"rsudario\";\n String pass = \"rsudario\";\n this.c = makeConnectMariaDB(pc, bd, user, pass);\n }", "title": "" }, { "docid": "d17e84b009279aed297cac8ad2948782", "score": "0.60289186", "text": "public NetworkConnection createConnection(ConnectionEndpoint target, MessageStreamEncoder encoder, MessageStreamDecoder decoder,\n boolean connect_with_crypto, boolean allow_fallback, byte[][] shared_secrets) {\n return NetworkConnectionFactory.create(target, encoder, decoder, connect_with_crypto, allow_fallback, shared_secrets);\n }", "title": "" }, { "docid": "e2ec28da5d9d24c3c410d46250e26618", "score": "0.60280937", "text": "public XRpcConnection connect() throws IOException {\r\n if (addr == null) {\r\n // resolve the address\r\n addr = ((host == null) ?\r\n InetAddress.getByAddress(\"loopback\", new byte[] {127,0,0,1}):\r\n InetAddress.getByName(host));\r\n }\r\n\r\n // connect to the address\r\n Socket s = new Socket(addr, port);\r\n XRpcConnection c = new XRpcConnection(s.getInputStream(),\r\n s.getOutputStream());\r\n\r\n // don't forget to close the socket\r\n c.addConnectionListener(new CloseSocket(s));\r\n return c;\r\n }", "title": "" }, { "docid": "8d0054ae8e230ca115fdea8e34af28f9", "score": "0.6015894", "text": "@Override\n public synchronized IConnection connect(String storm_id, String host, int port){\n IConnection client=null;\n try {\n IConnection connection = connections.get(key(host,port));\n if(connection !=null)\n {\n return connection;\n }\n client = new Client(topoConf, host, port, this);\n connections.put(key(host, client.getPort()), client);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return client;\n }", "title": "" }, { "docid": "d122d31ae4473fbef47a532c76464c6b", "score": "0.60128945", "text": "private Connection openConnection() {\n Connection conn = this.driver.connect();\n Logger.getInstance().log(\"connection opened\");\n return conn;\n }", "title": "" }, { "docid": "4825c5b1b814872880aba7b5bc5be22d", "score": "0.6010532", "text": "private Connection obtainConnection()\n throws SQLException {\n try {\n if (usingDerbyNetClient()) {\n Class.forName(\"org.apache.derby.jdbc.ClientDriver\");\n } else {\n Class.forName(\"org.apache.derby.jdbc.EmbeddedDriver\");\n }\n } catch (Exception e) {\n SQLException sqle = new SQLException(e.getMessage());\n sqle.initCause(e);\n throw sqle;\n }\n StringBuffer sb = constructUrl().append(\";create=true\");\n return DriverManager.getConnection(sb.toString());\n }", "title": "" }, { "docid": "80879d049b044ea95d425c111687beec", "score": "0.6008326", "text": "String getConnection();", "title": "" }, { "docid": "4a83c6f0b574407742f078acf9d3b5f0", "score": "0.6004477", "text": "public void createSocketandConnect() {\r\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(getPortNumberforSocket());\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"IO Exception has occurred while initiating the server\\n\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\tdo {\t\r\n\t\t\ttry {\r\n\t\t\t\t// wait and accept a connection the accept() function will act as a blocking code here.\r\n\t\t\t\tsocketConnection = serverSocket.accept();\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tSystem.err.println(\"IO Exception has occurred while initiating the server\\n\");\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t} \r\n\t\t\tnew PrimeServerWorker(socketConnection,allPrimeQueries).start();\r\n\t\t} while (true);\r\n\t}", "title": "" }, { "docid": "5c2209feb71a82917012b6903a089c89", "score": "0.5984944", "text": "ClientConnectionIF createClientConnection(final String _address,\r\n final int _port) throws ComporCannotCreateClientConnectionException;", "title": "" }, { "docid": "95ce8584659acc0e735aa9ad5de0ad7f", "score": "0.5968864", "text": "public void connect();", "title": "" }, { "docid": "95ce8584659acc0e735aa9ad5de0ad7f", "score": "0.5968864", "text": "public void connect();", "title": "" }, { "docid": "95ce8584659acc0e735aa9ad5de0ad7f", "score": "0.5968864", "text": "public void connect();", "title": "" }, { "docid": "4de9db78db3800633ec5576a715d9a48", "score": "0.59629244", "text": "public Connection getConn() { \n\t Connection con = null; \n\t try { \n\t con = connManager.getConnection(databaseName);\n\t logger.info(\"Connection Created: \" + con.toString()); \n\t } catch (SQLException ex) { \n\t logger.info(\"Error While Creating Connection :=> \"+ex.toString()); \n\t } \n\t if (con != null) { \n\t this.conn = con; \n\t logger.info(\"Connection Released: \"+ this.conn.toString()); \n\t return con; \n\t } else { \n\t return con; \n\t } \n\t }", "title": "" }, { "docid": "391abed644572baca388faab18893ac4", "score": "0.5956088", "text": "DBConnection getConnection();", "title": "" }, { "docid": "1ac1030e4dbe2bec893f5136a4a69a48", "score": "0.5951009", "text": "public static Connection getConnection() {\n Connection conn = null;\n try {\n Class.forName(\"oracle.jdbc.driver.OracleDriver\");\n conn = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"student\", \"student\");\n conn.setAutoCommit(false);\n } catch(Exception e) {\n e.printStackTrace();\n }\n return conn;\n }", "title": "" }, { "docid": "9e677848c5217a029c50cb8c15d03d98", "score": "0.5949757", "text": "@Override\r\n\tpublic Connection getConnection() throws SQLException {\n\t\tif (connection.get() == null) {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tClass.forName(\"org.h2.Driver\");\r\n\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tConnection threadConnection = DriverManager.getConnection(\"jdbc:h2:tcp://localhost/~/test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;AUTO_SERVER=TRUE\", \"\", \"\");\r\n\t\t\t\r\n\t\t\tconnection.set( threadConnection );\r\n\t\t}\r\n\t\t\r\n\t\treturn connection.get();\r\n\t}", "title": "" }, { "docid": "ff60f3d9bdc165ff11968bc941f811d4", "score": "0.59451085", "text": "private ConnectionToDB(){\n\t \n\t }", "title": "" }, { "docid": "c45ac3b4e4d54523de462eaf8df26f69", "score": "0.5943656", "text": "public static void createConnection(Neuron fromNeuron, MappedCompetitiveNeuron toNeuron) {\n\t\tConnection connection = new Connection(fromNeuron, toNeuron);\n\t\tRandom r = new Random();\n\t\tconnection.getWeight().setValue(r.nextDouble());;\n\t\ttoNeuron.addInputConnection(connection);\n\t}", "title": "" }, { "docid": "43f800053e0a9eb824463294317919b5", "score": "0.59307116", "text": "public PeerConnection(PeerInfo info) throws IOException, UnknownHostException {\n pd = info;\n s = AbstractSocketFactory.getSocketFactory().makeSocket(pd.getHost(), pd.getPort());\n }", "title": "" }, { "docid": "ac9df81c2aabf86c9c90688c52a248e2", "score": "0.5919792", "text": "private static void establishConnection() {\n try {\n Class.forName(Configuration.getCLASS_NAME());\n connection = (Connection) DriverManager.getConnection(Configuration.getDB_URL(), Configuration.getUSERNAME(), Configuration.getPASSWORD());\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(DBOperations.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "e857eb16703d9284c02a10635ec35bb2", "score": "0.59162056", "text": "public com.google.longrunning.Operation createPrivateConnection(\n com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request);\n }", "title": "" }, { "docid": "af46a64f43aeaf5e969a752e296a1676", "score": "0.5912262", "text": "protected Object createObject(Object id)\n throws XMLMiddlewareException\n {\n if (!(id instanceof ConnectionID))\n throw new XMLMiddlewareException(\"JDBC1DataSource: Object ID must be a ConnectionID.\");\n\n try\n {\n ConnectionID connId = (ConnectionID)id;\n if(connId.username == null || connId.password == null)\n return DriverManager.getConnection(m_url);\n else\n return DriverManager.getConnection(m_url, connId.username, connId.password);\n }\n catch(SQLException e)\n {\n throw new XMLMiddlewareException(e);\n }\n }", "title": "" }, { "docid": "6d15815fa29320ae79121f1f5e05b656", "score": "0.591191", "text": "private Connection getConnection(Account account) {\n if(this.connections.containsKey(account.getIdentifier()))\n return connections.get(account.getIdentifier());\n\n Connection conn;\n try {\n // only allow to open existing databases\n conn = connect(account, \";IFEXISTS=TRUE\");\n } catch (SQLException e1) {\n try {\n // create an empty cache with a pointer to null\n conn = createCache(account, fallbackBlock);\n } catch (SQLException e2) {\n throw new MisconfigurationException(e2.getMessage());\n }\n }\n connections.put(account, conn);\n return conn;\n }", "title": "" }, { "docid": "0ad8c05251761d1c237d667a1fb237f5", "score": "0.5896888", "text": "private static void createClientSocket() {\n\n final Socket clientSocket = getConnection();\n if (clientSocket != null)\n new Thread(new ConnectionWorker(clientSocket)).start();\n\n }", "title": "" }, { "docid": "3795ac8f5002b1c119c06148be8e547e", "score": "0.5891152", "text": "public void connect() throws ConnectionException;", "title": "" }, { "docid": "f1b3890649e7f4953a19bf530c905e47", "score": "0.58879536", "text": "public void connect() {\r\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(\"jdbc:sqlite:baza.db\");\r\n\t\t\tlog.info(\"Database connection was established.\");\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t\tlog.error(e.getStackTrace());\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tstate = conn.createStatement();\r\n\t\t\tlog.debug(\"Statement created.\");\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t\tlog.error(e.getStackTrace());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "295a771a9304c6a0f31de5f7fc94a040", "score": "0.5887012", "text": "protected Connection createConnectionFigure() {\r\n\t\treturn new LinkQoSSubServiceNameFigure();\r\n\t}", "title": "" }, { "docid": "697381c31638b075ce39302cf3aff79b", "score": "0.58848554", "text": "public Connection getNewSQLConnection() throws SQLException;", "title": "" }, { "docid": "c4251ce4660af1903d659761ebab92d3", "score": "0.58845276", "text": "private void createAsyConnection() {\n RedisClient redisClient = RedisClient.create(\"redis://redis-test1.o4r4dx.0001.cnn1.cache.amazonaws.com.cn:6379/0\");\n redisClient.setDefaultTimeout(Duration.ofSeconds(10L));\n // 2. Open a Redis Standalone connection\n StatefulRedisConnection<String, String> connection = redisClient.connect();\n // 3. Obtain the command API for asynchronous execution.\n RedisAsyncCommands<String, String> syncCommands = connection.async();\n\n RedisFuture<String> set = syncCommands.set(\"key\", \"value\");\n RedisFuture<String> future = syncCommands.get(\"key\");\n\n try {\n String value = future.get();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n\n // 4. Close the connection when you’re done.\n // This happens usually at the very end of your application.\n // Connections are designed to be long-lived\n connection.close();\n // 5. Shut down the client instance to free threads and resources\n // This happens usually at the very end of your application.\n redisClient.shutdown();\n }", "title": "" }, { "docid": "7bdc4cfcb5085c3d6181bc697734786d", "score": "0.5884305", "text": "public static IEmailConnection createConnection(IEmailBox ebBox)\r\n throws EmailConnectionException\r\n {\r\n IEmailConnection ecReturn = null;\r\n\r\n switch (ebBox.getType())\r\n {\r\n case IMAP:\r\n ecReturn = createIMAPConnection(ebBox);\r\n break;\r\n\r\n case POP3:\r\n ecReturn = createPOP3Connection(ebBox);\r\n break;\r\n }\r\n\r\n return ecReturn;\r\n }", "title": "" }, { "docid": "548aadfae4a0373e77efb8d7af79bd81", "score": "0.58796865", "text": "public static void createConnectionIfNeeded() {\n if (getConnection() != null) {\r\n return;\r\n }\r\n try {\r\n setConnection(DriverManager.getConnection(getDbURL()));\r\n getConnection().setAutoCommit(false);\r\n tryCreateTables();\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "8d44f18e0f6a868691b365f5a24a7e99", "score": "0.5878843", "text": "public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>\n createPrivateConnection(\n com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request);\n }", "title": "" }, { "docid": "b09c6517f51e07d643704d5c56219a33", "score": "0.5878466", "text": "private static Statement setConnection() {\n\t\ttry {\n\t\t\tString url = \"\" + db_url + \":\" + db_port + \"/\" + db_name + \"\";\n\t\t\tjava.sql.Connection conn = DriverManager.getConnection(url, db_user, db_password);\n\n\t\t\t// Creation of the Statement object\n\t\t\tjava.sql.Statement state = conn.createStatement();\n\t\t\treturn (Statement) state;\n\t\t} catch (SQLException ex) {\n\t\t\tLogger.getLogger(DbSingletonRepository.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c3c2bf33cb6069b5252949b393a33eec", "score": "0.58755654", "text": "public static <T> T createConnectionInstance(Class<T> clazz) {\n T conn = null;\n try {\n // create connection\n conn = clazz.getDeclaredConstructor().newInstance();\n if (conn != null && conn instanceof RTMPMinaConnection) {\n ((RTMPMinaConnection) conn).setMaxHandshakeTimeout(maxHandshakeTimeout);\n ((RTMPMinaConnection) conn).setMaxInactivity(maxInactivity);\n ((RTMPMinaConnection) conn).setPingInterval(pingInterval);\n if (enableTaskExecutor) {\n // setup executor\n ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();\n executor.setCorePoolSize(1);\n executor.setDaemon(true);\n executor.setMaxPoolSize(1);\n executor.setQueueCapacity(executorQueueCapacity);\n executor.initialize();\n ((RTMPMinaConnection) conn).setExecutor(executor);\n }\n }\n } catch (Exception ex) {\n log.warn(\"Exception creating connection\", ex);\n }\n return conn;\n }", "title": "" }, { "docid": "0a4608f0e2181060c1191b1c30da5096", "score": "0.5870818", "text": "public static Connection getConnection() {\r\n\t\t\r\n\t\tURL = \"jdbc:postgresql://\"+ HOST +\":\"+ PORTA +\"/LAYOUT\";\r\n\t\t\r\n\t\ttry {\r\n\r\n\t\t\tClass.forName(DRIVER);\r\n\r\n\t\t\treturn DriverManager.getConnection(URL, LOGIN, SENHA);\r\n\r\n\t\t} catch (ClassNotFoundException e) {\r\n\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Erro de acesso\" + e);\r\n\r\n\t\t} catch (SQLException e) {\r\n\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Erro de acesso SQL\" + e);\r\n\r\n\t\t\tthrow new RuntimeException(e);\r\n\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "65b48a9c57103401cebfe8cce35e8d14", "score": "0.5870155", "text": "public void connect() {\n\t\tcluster = CouchbaseCluster.create(\"192.168.74.135\");\n\t\tbucket = cluster.openBucket(\"default\", 60, TimeUnit.SECONDS);\n\t\tbucketManager = bucket.bucketManager();\n\t}", "title": "" }, { "docid": "3338004f9f0bdc577735b4fb1a904c9b", "score": "0.586567", "text": "public void createDockerConnection(AuthenticationMethod authMethod, String unixSocketOrTcpURI,\n\t\t\tString authentificationCertificatePath, String connectionName) {\n\n\t\tactivate();\n\t\tNewDockerConnectionPage connectionWizard = new NewDockerConnectionPage();\n\t\tconnectionWizard.open();\n\t\tconnectionWizard.setConnectionName(connectionName);\n\t\tif (AuthenticationMethod.TCP_CONNECTION.equals(authMethod)) {\n\t\t\tconnectionWizard.setTcpConnection(unixSocketOrTcpURI, authentificationCertificatePath, false);\n\t\t} else if (AuthenticationMethod.UNIX_SOCKET.equals(authMethod)) {\n\t\t\tconnectionWizard.setUnixSocket(unixSocketOrTcpURI);\n\t\t}\n\t\tconnectionWizard.finish();\n\t}", "title": "" }, { "docid": "23a53915ab4c5043f7fb5f10acc6de4f", "score": "0.58656186", "text": "public static Connection connect(){\n\t\t\ttry {\n\n\t\t\t\t\t// load the jdbcdriver of hsqldb\n\n\t Class.forName(\"org.hsqldb.jdbcDriver\");\n\n\t // create a temporary database named test, user: \"sa\", pwd: \"\"\n\n\t Connection connect = DriverManager.getConnection(\"jdbc:hsqldb:mem:dbtutorial;shutdown=true;sql.enforce_size=false\", \"sa\", \"\");\n\n\t System.out.println(\"connect successfully\"); \n\t \n\t return connect;\n\n\t } catch (SQLException e) {\n\n\t e.printStackTrace();\n\t \n\t return null;\n\n\t } catch (ClassNotFoundException e) {\n\n\t e.printStackTrace();\n\t \n\t return null;\n\n\t }\n\t\t}", "title": "" }, { "docid": "517bba67dc12cd10d8ecf82d0b42c124", "score": "0.58510435", "text": "static JDBConnection createConnection(final String connectionName,\n final Config baseConfig,\n final Config globalPropertyConfig) throws InitializationException {\n\n Config connectionRef = ConfigFactory.load().getObject(\"acp.defaults.connection\").toConfig();\n Config config = baseConfig.withFallback(connectionRef);\n\n final String user = getString(config, \"user\");\n\n final String password = getString(config, \"password\");\n final String testSQL = getString(config, \"testSQL\", \"\");\n String connectionString = getString(config, \"connectionString\");\n final boolean debug = getString(config, \"debug\", \"false\").equalsIgnoreCase(\"true\");\n\n final long createTimeoutMillis = getMilliseconds(config, \"createTimeout\");\n final long testIntervalMillis = getMilliseconds(config, \"testInterval\");\n\n\n String propsRef = getString(config, \"properties\", \"\");\n Config propsConfig;\n if(propsRef.length() > 0) {\n if(globalPropertyConfig.hasPath(propsRef)) {\n propsConfig = globalPropertyConfig.getObject(propsRef).toConfig();\n } else {\n throw new InitializationException(\"The referenced global properties, '\" + propsRef + \"' is not defined\");\n }\n\n connectionString = buildConnectionString(connectionString, propsConfig);\n }\n\n return new JDBConnection(connectionName, user, password, connectionString,\n createTimeoutMillis,\n testSQL.length() > 0 ? testSQL : null,\n testIntervalMillis, debug);\n }", "title": "" }, { "docid": "882116448d4ec91d8c203b635f507ce7", "score": "0.58366895", "text": "public Conexion() {\r\n try {\r\n Class.forName(\"org.postgresql.Driver\");\r\n connection = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/Global\", \r\n \"postgres\", \"123456\");\r\n statement = connection.createStatement();\r\n } catch (ClassNotFoundException | SQLException e) {\r\n System.out.println(\"Error: \" + e.getMessage());\r\n }\r\n }", "title": "" }, { "docid": "5b2e34f36cb3969e49b9339c9d03805e", "score": "0.5835668", "text": "public CofarConnection() {\n }", "title": "" }, { "docid": "8cbdc88df12854356d9931e6cfcafc58", "score": "0.58341986", "text": "public static Connection connect() {\n String url = \"jdbc:postgresql://localhost:5432/research\";\n String user = \"gzx\";\n String password = \"WAGZgzaw0830\";\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(url, user, password);\n System.out.println(\"Connected to the PostgreSQL server successfully.\");\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return conn;\n }", "title": "" }, { "docid": "fc965505db0223d88910b4be267a86dc", "score": "0.5817173", "text": "public Connection getConnection() throws TPlusException\n\t{\n\t\ttry\n\t\t{\n\t\t\topenConnection();\n\t\t}\n\t\tcatch (Exception excep)\n\t\t{\n\t\t\tthrow new TPlusException(TPlusCodes.DATABASE_CONN_ERR,excep.getMessage());\n\t\t}\n\n\t\treturn objCon;\n\n\t}", "title": "" } ]
9958b59fc53c07f22324a8999bce350a
Return the category of the primitive's type. This sets the name and Java Class used for the primitive value.
[ { "docid": "fdc0e768eda77bd865f028bc0379f814", "score": "0.70183337", "text": "public PrimitiveDefCategory getPrimitiveDefCategory() { return primitiveDefCategory; }", "title": "" } ]
[ { "docid": "3d141a4b70581ba51bae690d9ae1bc77", "score": "0.63855106", "text": "public String getTypeCategory() {\n return this.typeCategory;\n }", "title": "" }, { "docid": "5882f3ac12567221c327c2a54f6232ce", "score": "0.60641974", "text": "public final SQLParser_Expr.primitiveType_return primitiveType() throws RecognitionException {\n\t\tSQLParser_Expr.primitiveType_return retval = new SQLParser_Expr.primitiveType_return();\n\t\tretval.start = input.LT(1);\n\n\t\tCommonTree root_0 = null;\n\n\t\tToken KW_SMALLINT166=null;\n\t\tToken KW_BYTEINT167=null;\n\t\tToken KW_INTEGER168=null;\n\t\tToken KW_INT169=null;\n\t\tToken KW_BIGINT170=null;\n\t\tToken KW_FLOAT171=null;\n\t\tToken KW_DECIMAL172=null;\n\t\tToken LPAREN173=null;\n\t\tToken Number174=null;\n\t\tToken COMMA175=null;\n\t\tToken Number176=null;\n\t\tToken RPAREN177=null;\n\t\tToken KW_DATE178=null;\n\t\tToken KW_TIME179=null;\n\t\tToken KW_TIMESTAMP180=null;\n\t\tToken KW_CHAR181=null;\n\t\tToken KW_BINARY182=null;\n\n\t\tCommonTree KW_SMALLINT166_tree=null;\n\t\tCommonTree KW_BYTEINT167_tree=null;\n\t\tCommonTree KW_INTEGER168_tree=null;\n\t\tCommonTree KW_INT169_tree=null;\n\t\tCommonTree KW_BIGINT170_tree=null;\n\t\tCommonTree KW_FLOAT171_tree=null;\n\t\tCommonTree KW_DECIMAL172_tree=null;\n\t\tCommonTree LPAREN173_tree=null;\n\t\tCommonTree Number174_tree=null;\n\t\tCommonTree COMMA175_tree=null;\n\t\tCommonTree Number176_tree=null;\n\t\tCommonTree RPAREN177_tree=null;\n\t\tCommonTree KW_DATE178_tree=null;\n\t\tCommonTree KW_TIME179_tree=null;\n\t\tCommonTree KW_TIMESTAMP180_tree=null;\n\t\tCommonTree KW_CHAR181_tree=null;\n\t\tCommonTree KW_BINARY182_tree=null;\n\t\tRewriteRuleTokenStream stream_KW_TIMESTAMP=new RewriteRuleTokenStream(adaptor,\"token KW_TIMESTAMP\");\n\t\tRewriteRuleTokenStream stream_RPAREN=new RewriteRuleTokenStream(adaptor,\"token RPAREN\");\n\t\tRewriteRuleTokenStream stream_KW_DATE=new RewriteRuleTokenStream(adaptor,\"token KW_DATE\");\n\t\tRewriteRuleTokenStream stream_KW_TIME=new RewriteRuleTokenStream(adaptor,\"token KW_TIME\");\n\t\tRewriteRuleTokenStream stream_Number=new RewriteRuleTokenStream(adaptor,\"token Number\");\n\t\tRewriteRuleTokenStream stream_KW_CHAR=new RewriteRuleTokenStream(adaptor,\"token KW_CHAR\");\n\t\tRewriteRuleTokenStream stream_KW_BINARY=new RewriteRuleTokenStream(adaptor,\"token KW_BINARY\");\n\t\tRewriteRuleTokenStream stream_KW_SMALLINT=new RewriteRuleTokenStream(adaptor,\"token KW_SMALLINT\");\n\t\tRewriteRuleTokenStream stream_KW_INT=new RewriteRuleTokenStream(adaptor,\"token KW_INT\");\n\t\tRewriteRuleTokenStream stream_COMMA=new RewriteRuleTokenStream(adaptor,\"token COMMA\");\n\t\tRewriteRuleTokenStream stream_KW_DECIMAL=new RewriteRuleTokenStream(adaptor,\"token KW_DECIMAL\");\n\t\tRewriteRuleTokenStream stream_KW_BYTEINT=new RewriteRuleTokenStream(adaptor,\"token KW_BYTEINT\");\n\t\tRewriteRuleTokenStream stream_KW_INTEGER=new RewriteRuleTokenStream(adaptor,\"token KW_INTEGER\");\n\t\tRewriteRuleTokenStream stream_KW_FLOAT=new RewriteRuleTokenStream(adaptor,\"token KW_FLOAT\");\n\t\tRewriteRuleTokenStream stream_KW_BIGINT=new RewriteRuleTokenStream(adaptor,\"token KW_BIGINT\");\n\t\tRewriteRuleTokenStream stream_LPAREN=new RewriteRuleTokenStream(adaptor,\"token LPAREN\");\n\n\t\ttry {\n\t\t\t// Expr.g:322:5: (| KW_SMALLINT -> TOK_SMALLINT | KW_BYTEINT -> TOK_BYTEINT | ( KW_INTEGER | KW_INT ) -> TOK_INTEGER | KW_BIGINT -> TOK_BIGINT | KW_FLOAT -> TOK_FLOAT | KW_DECIMAL ( LPAREN Number COMMA Number RPAREN )? -> TOK_DECIMAL ( Number )* | KW_DATE -> TOK_DATE | KW_TIME -> TOK_TIME | KW_TIMESTAMP -> TOK_TIMESTAMP | KW_CHAR -> TOK_CHAR | KW_BINARY -> TOK_BINARY )\n\t\t\tint alt45=12;\n\t\t\tswitch ( input.LA(1) ) {\n\t\t\tcase RPAREN:\n\t\t\t\t{\n\t\t\t\talt45=1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KW_SMALLINT:\n\t\t\t\t{\n\t\t\t\talt45=2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KW_BYTEINT:\n\t\t\t\t{\n\t\t\t\talt45=3;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KW_INT:\n\t\t\tcase KW_INTEGER:\n\t\t\t\t{\n\t\t\t\talt45=4;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KW_BIGINT:\n\t\t\t\t{\n\t\t\t\talt45=5;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KW_FLOAT:\n\t\t\t\t{\n\t\t\t\talt45=6;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KW_DECIMAL:\n\t\t\t\t{\n\t\t\t\talt45=7;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KW_DATE:\n\t\t\t\t{\n\t\t\t\talt45=8;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KW_TIME:\n\t\t\t\t{\n\t\t\t\talt45=9;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KW_TIMESTAMP:\n\t\t\t\t{\n\t\t\t\talt45=10;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KW_CHAR:\n\t\t\t\t{\n\t\t\t\talt45=11;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KW_BINARY:\n\t\t\t\t{\n\t\t\t\talt45=12;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (state.backtracking>0) {state.failed=true; return retval;}\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 45, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\t\t\tswitch (alt45) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// Expr.g:323:5: \n\t\t\t\t\t{\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// Expr.g:323:7: KW_SMALLINT\n\t\t\t\t\t{\n\t\t\t\t\tKW_SMALLINT166=(Token)match(input,KW_SMALLINT,FOLLOW_KW_SMALLINT_in_primitiveType2216); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_KW_SMALLINT.add(KW_SMALLINT166);\n\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: \n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 323:20: -> TOK_SMALLINT\n\t\t\t\t\t{\n\t\t\t\t\t\tadaptor.addChild(root_0, (CommonTree)adaptor.create(TOK_SMALLINT, \"TOK_SMALLINT\"));\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\t// Expr.g:324:7: KW_BYTEINT\n\t\t\t\t\t{\n\t\t\t\t\tKW_BYTEINT167=(Token)match(input,KW_BYTEINT,FOLLOW_KW_BYTEINT_in_primitiveType2229); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_KW_BYTEINT.add(KW_BYTEINT167);\n\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: \n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 324:19: -> TOK_BYTEINT\n\t\t\t\t\t{\n\t\t\t\t\t\tadaptor.addChild(root_0, (CommonTree)adaptor.create(TOK_BYTEINT, \"TOK_BYTEINT\"));\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\t// Expr.g:325:7: ( KW_INTEGER | KW_INT )\n\t\t\t\t\t{\n\t\t\t\t\t// Expr.g:325:7: ( KW_INTEGER | KW_INT )\n\t\t\t\t\tint alt43=2;\n\t\t\t\t\tint LA43_0 = input.LA(1);\n\t\t\t\t\tif ( (LA43_0==KW_INTEGER) ) {\n\t\t\t\t\t\talt43=1;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( (LA43_0==KW_INT) ) {\n\t\t\t\t\t\talt43=2;\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tif (state.backtracking>0) {state.failed=true; return retval;}\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 43, 0, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t}\n\n\t\t\t\t\tswitch (alt43) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// Expr.g:325:8: KW_INTEGER\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tKW_INTEGER168=(Token)match(input,KW_INTEGER,FOLLOW_KW_INTEGER_in_primitiveType2243); if (state.failed) return retval; \n\t\t\t\t\t\t\tif ( state.backtracking==0 ) stream_KW_INTEGER.add(KW_INTEGER168);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\t// Expr.g:325:19: KW_INT\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tKW_INT169=(Token)match(input,KW_INT,FOLLOW_KW_INT_in_primitiveType2245); if (state.failed) return retval; \n\t\t\t\t\t\t\tif ( state.backtracking==0 ) stream_KW_INT.add(KW_INT169);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: \n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 325:34: -> TOK_INTEGER\n\t\t\t\t\t{\n\t\t\t\t\t\tadaptor.addChild(root_0, (CommonTree)adaptor.create(TOK_INTEGER, \"TOK_INTEGER\"));\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5 :\n\t\t\t\t\t// Expr.g:326:7: KW_BIGINT\n\t\t\t\t\t{\n\t\t\t\t\tKW_BIGINT170=(Token)match(input,KW_BIGINT,FOLLOW_KW_BIGINT_in_primitiveType2265); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_KW_BIGINT.add(KW_BIGINT170);\n\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: \n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 326:19: -> TOK_BIGINT\n\t\t\t\t\t{\n\t\t\t\t\t\tadaptor.addChild(root_0, (CommonTree)adaptor.create(TOK_BIGINT, \"TOK_BIGINT\"));\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6 :\n\t\t\t\t\t// Expr.g:327:7: KW_FLOAT\n\t\t\t\t\t{\n\t\t\t\t\tKW_FLOAT171=(Token)match(input,KW_FLOAT,FOLLOW_KW_FLOAT_in_primitiveType2279); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_KW_FLOAT.add(KW_FLOAT171);\n\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: \n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 327:25: -> TOK_FLOAT\n\t\t\t\t\t{\n\t\t\t\t\t\tadaptor.addChild(root_0, (CommonTree)adaptor.create(TOK_FLOAT, \"TOK_FLOAT\"));\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7 :\n\t\t\t\t\t// Expr.g:328:7: KW_DECIMAL ( LPAREN Number COMMA Number RPAREN )?\n\t\t\t\t\t{\n\t\t\t\t\tKW_DECIMAL172=(Token)match(input,KW_DECIMAL,FOLLOW_KW_DECIMAL_in_primitiveType2300); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_KW_DECIMAL.add(KW_DECIMAL172);\n\n\t\t\t\t\t// Expr.g:328:18: ( LPAREN Number COMMA Number RPAREN )?\n\t\t\t\t\tint alt44=2;\n\t\t\t\t\tint LA44_0 = input.LA(1);\n\t\t\t\t\tif ( (LA44_0==LPAREN) ) {\n\t\t\t\t\t\talt44=1;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (alt44) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// Expr.g:328:19: LPAREN Number COMMA Number RPAREN\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tLPAREN173=(Token)match(input,LPAREN,FOLLOW_LPAREN_in_primitiveType2303); if (state.failed) return retval; \n\t\t\t\t\t\t\tif ( state.backtracking==0 ) stream_LPAREN.add(LPAREN173);\n\n\t\t\t\t\t\t\tNumber174=(Token)match(input,Number,FOLLOW_Number_in_primitiveType2305); if (state.failed) return retval; \n\t\t\t\t\t\t\tif ( state.backtracking==0 ) stream_Number.add(Number174);\n\n\t\t\t\t\t\t\tCOMMA175=(Token)match(input,COMMA,FOLLOW_COMMA_in_primitiveType2307); if (state.failed) return retval; \n\t\t\t\t\t\t\tif ( state.backtracking==0 ) stream_COMMA.add(COMMA175);\n\n\t\t\t\t\t\t\tNumber176=(Token)match(input,Number,FOLLOW_Number_in_primitiveType2309); if (state.failed) return retval; \n\t\t\t\t\t\t\tif ( state.backtracking==0 ) stream_Number.add(Number176);\n\n\t\t\t\t\t\t\tRPAREN177=(Token)match(input,RPAREN,FOLLOW_RPAREN_in_primitiveType2311); if (state.failed) return retval; \n\t\t\t\t\t\t\tif ( state.backtracking==0 ) stream_RPAREN.add(RPAREN177);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: Number\n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 328:55: -> TOK_DECIMAL ( Number )*\n\t\t\t\t\t{\n\t\t\t\t\t\tadaptor.addChild(root_0, (CommonTree)adaptor.create(TOK_DECIMAL, \"TOK_DECIMAL\"));\n\t\t\t\t\t\t// Expr.g:328:70: ( Number )*\n\t\t\t\t\t\twhile ( stream_Number.hasNext() ) {\n\t\t\t\t\t\t\tadaptor.addChild(root_0, stream_Number.nextNode());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstream_Number.reset();\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8 :\n\t\t\t\t\t// Expr.g:329:7: KW_DATE\n\t\t\t\t\t{\n\t\t\t\t\tKW_DATE178=(Token)match(input,KW_DATE,FOLLOW_KW_DATE_in_primitiveType2328); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_KW_DATE.add(KW_DATE178);\n\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: \n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 329:25: -> TOK_DATE\n\t\t\t\t\t{\n\t\t\t\t\t\tadaptor.addChild(root_0, (CommonTree)adaptor.create(TOK_DATE, \"TOK_DATE\"));\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9 :\n\t\t\t\t\t// Expr.g:330:7: KW_TIME\n\t\t\t\t\t{\n\t\t\t\t\tKW_TIME179=(Token)match(input,KW_TIME,FOLLOW_KW_TIME_in_primitiveType2350); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_KW_TIME.add(KW_TIME179);\n\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: \n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 330:22: -> TOK_TIME\n\t\t\t\t\t{\n\t\t\t\t\t\tadaptor.addChild(root_0, (CommonTree)adaptor.create(TOK_TIME, \"TOK_TIME\"));\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 10 :\n\t\t\t\t\t// Expr.g:331:7: KW_TIMESTAMP\n\t\t\t\t\t{\n\t\t\t\t\tKW_TIMESTAMP180=(Token)match(input,KW_TIMESTAMP,FOLLOW_KW_TIMESTAMP_in_primitiveType2369); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_KW_TIMESTAMP.add(KW_TIMESTAMP180);\n\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: \n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 331:25: -> TOK_TIMESTAMP\n\t\t\t\t\t{\n\t\t\t\t\t\tadaptor.addChild(root_0, (CommonTree)adaptor.create(TOK_TIMESTAMP, \"TOK_TIMESTAMP\"));\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 11 :\n\t\t\t\t\t// Expr.g:332:7: KW_CHAR\n\t\t\t\t\t{\n\t\t\t\t\tKW_CHAR181=(Token)match(input,KW_CHAR,FOLLOW_KW_CHAR_in_primitiveType2386); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_KW_CHAR.add(KW_CHAR181);\n\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: \n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 332:23: -> TOK_CHAR\n\t\t\t\t\t{\n\t\t\t\t\t\tadaptor.addChild(root_0, (CommonTree)adaptor.create(TOK_CHAR, \"TOK_CHAR\"));\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 12 :\n\t\t\t\t\t// Expr.g:333:7: KW_BINARY\n\t\t\t\t\t{\n\t\t\t\t\tKW_BINARY182=(Token)match(input,KW_BINARY,FOLLOW_KW_BINARY_in_primitiveType2406); if (state.failed) return retval; \n\t\t\t\t\tif ( state.backtracking==0 ) stream_KW_BINARY.add(KW_BINARY182);\n\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: \n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 333:25: -> TOK_BINARY\n\t\t\t\t\t{\n\t\t\t\t\t\tadaptor.addChild(root_0, (CommonTree)adaptor.create(TOK_BINARY, \"TOK_BINARY\"));\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t\tif ( state.backtracking==0 ) {\n\t\t\tretval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n\t\t\tadaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\t\t\t}\n\t\t}\n\n\t\t\tcatch (RecognitionException e) {\n\t\t\t\tthrow e;\n\t\t\t}\n\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "882a09dfaf5de80842cf3613293c1c4c", "score": "0.6050633", "text": "String getValueType();", "title": "" }, { "docid": "80db8729f5f72804ca42b8f828d7c4d0", "score": "0.6042967", "text": "public Class<?> toPrimitiveClass()\r\n {\r\n return primitiveClass;\r\n }", "title": "" }, { "docid": "de9b137f294fce2280d817877fd6bbde", "score": "0.60120225", "text": "public Class getValueType();", "title": "" }, { "docid": "837c0d0b871f00475148edb9c139327d", "score": "0.6002835", "text": "PrimitiveType getPrimitiveType(PrimitiveType.Kind kind);", "title": "" }, { "docid": "2fb0469c0f4949dee7416fdb6eef390d", "score": "0.59544396", "text": "TypePrimitive createTypePrimitive();", "title": "" }, { "docid": "7c8b1daaa9be989a1518ab65a0ce08e9", "score": "0.59299815", "text": "public static Object getPrimitiveValue(Class c) {\n Object val = null;\n if (c == int.class) {\n val = new Integer(0);\n } else if (c == long.class) {\n val = new Long(0);\n } else if (c == char.class) {\n val = new Character(' ');\n } else if (c == byte.class) {\n val = new Byte((byte)0);\n } else if (c == short.class) {\n val = new Short((short)0);\n } else if (c == float.class) {\n val = new Float(0);\n } else if (c == double.class) {\n val = new Double(0);\n } else if (c == boolean.class) {\n val = new Boolean(false);\n }\n return val;\n }", "title": "" }, { "docid": "b795635a13123a600d796ae5c70c7419", "score": "0.59113973", "text": "Integer getObjectType();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5898327", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5898327", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5898327", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5898327", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5898327", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5898327", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5898327", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5898327", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5898327", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5898327", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5898327", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.5898327", "text": "int getTypeValue();", "title": "" }, { "docid": "37eb6ac27464ca36e0f69cba0faf3b46", "score": "0.5857726", "text": "String getKindClass();", "title": "" }, { "docid": "cf882be5466739d5142becd4dbc0b376", "score": "0.5852776", "text": "private Object validateValueAgainstType(PrimitiveDefCategory primitiveDefCategory,\n Object primitiveValue)\n {\n final String methodName = \"validateValueAgainstType\";\n\n /*\n * Return if one of the values is missing\n */\n if ((primitiveDefCategory == null) || (primitiveValue == null))\n {\n return primitiveValue;\n }\n\n try\n {\n Class<?> testJavaClass = Class.forName(primitiveDefCategory.getJavaClassName());\n\n if (!testJavaClass.isInstance(primitiveValue))\n {\n if (primitiveDefCategory == PrimitiveDefCategory.OM_PRIMITIVE_TYPE_DATE)\n {\n /*\n * Date values are stored as Longs. The RepositoryHelper helper methods\n * will accept and return Java Date objects, for convenience for callers,\n * but internally the OMRS stores a date as a Java Long.\n *\n * However, with the combination of Spring and Jackson it is possible\n * for a date that was serialized as a Long to be deserialized as an\n * Integer. The following conversion repatriates it to Long.\n */\n\n if (primitiveValue instanceof Integer castValue)\n {\n return castValue.longValue();\n }\n else\n {\n /*\n * The type of the primitiveValue cannot be used as a date.\n * It is likely that this has been caused by an invalid deserialization or by\n * some other code trying to set the value as a type other than Long.\n * This is an internal error that needs to be debugged and fixed.\n */\n throw new OMRSLogicErrorException(OMRSErrorCode.INVALID_PRIMITIVE_TYPE.getMessageDefinition(\"OM_PRIMITIVE_TYPE_DATE\",\n primitiveDefCategory.getJavaClassName(),\n primitiveValue.getClass().getName()),\n this.getClass().getName(),\n methodName);\n }\n }\n else if (primitiveDefCategory == PrimitiveDefCategory.OM_PRIMITIVE_TYPE_BIGDECIMAL)\n {\n Integer castValue = (Integer)primitiveValue;\n\n return new BigDecimal(castValue);\n }\n else if (primitiveDefCategory == PrimitiveDefCategory.OM_PRIMITIVE_TYPE_BIGINTEGER)\n {\n Long castValue = (Long)primitiveValue;\n\n return new BigInteger(castValue.toString());\n }\n else if (primitiveDefCategory == PrimitiveDefCategory.OM_PRIMITIVE_TYPE_BYTE)\n {\n Integer castValue = (Integer)primitiveValue;\n\n return Byte.valueOf(castValue.toString());\n }\n else if (primitiveDefCategory == PrimitiveDefCategory.OM_PRIMITIVE_TYPE_CHAR)\n {\n String castValue = (String)primitiveValue;\n\n return castValue.charAt(0);\n }\n else if (primitiveDefCategory == PrimitiveDefCategory.OM_PRIMITIVE_TYPE_FLOAT)\n {\n Double castValue = (Double)primitiveValue;\n\n return Float.valueOf(String.valueOf(castValue));\n }\n else if (primitiveDefCategory == PrimitiveDefCategory.OM_PRIMITIVE_TYPE_LONG)\n {\n Integer castValue = (Integer)primitiveValue;\n\n return Long.valueOf(castValue);\n }\n else if (primitiveDefCategory == PrimitiveDefCategory.OM_PRIMITIVE_TYPE_SHORT)\n {\n Integer castValue = (Integer)primitiveValue;\n\n return Short.valueOf(castValue.toString());\n }\n else\n {\n /*\n * The primitive value supplied is the wrong type. Throw an exception.\n */\n throw new OMRSLogicErrorException(OMRSErrorCode.INVALID_PRIMITIVE_VALUE.getMessageDefinition(primitiveDefCategory.getJavaClassName(),\n primitiveValue.getClass().getName(),\n primitiveDefCategory.getName()),\n this.getClass().getName(),\n methodName);\n }\n }\n }\n catch (ClassNotFoundException unknownPrimitiveClass)\n {\n /*\n * The java class defined in the primitiveDefCategory is not known. This is an internal error\n * that needs a code fix in PrimitiveDefCategory.\n */\n throw new OMRSLogicErrorException(OMRSErrorCode.INVALID_PRIMITIVE_CLASS_NAME.getMessageDefinition(primitiveDefCategory.getJavaClassName(),\n primitiveDefCategory.getName()),\n this.getClass().getName(),\n methodName,\n unknownPrimitiveClass);\n }\n catch (Error invalidPrimitiveCategory)\n {\n /*\n * Some unexpected exception occurred when manipulating the Java Classes. Probably a coding error.\n */\n throw new OMRSLogicErrorException(OMRSErrorCode.INVALID_PRIMITIVE_CATEGORY.getMessageDefinition(primitiveDefCategory.getName()),\n this.getClass().getName(),\n methodName,\n invalidPrimitiveCategory);\n }\n\n return primitiveValue;\n }", "title": "" }, { "docid": "362b1618ee8055fb7d5d335cbf94f23a", "score": "0.5834634", "text": "public java.lang.Integer getCategory() {\n return category;\n }", "title": "" }, { "docid": "2f7d8942d1756a7bed8a8820de1d55e9", "score": "0.57990557", "text": "public Object getPrimitiveValue() { return primitiveValue; }", "title": "" }, { "docid": "f45d1eb7e5c1bae840a1d073dced235d", "score": "0.57978547", "text": "public java.lang.Integer getCategory() {\n return category;\n }", "title": "" }, { "docid": "a2c4d3ed6e7cfa9d9701cc6109ededde", "score": "0.57883924", "text": "private ParamCategory getParamCategory(String paramType) {\n\n\t\tif (mapPrimitives.containsKey(paramType)) {\n\t\t\treturn ParamCategory.PRIMITIVES;\n\t\t// We can either use mapNonPrimitivesJava or mapNonPrimitivesCplus here\n\t\t} else if (mapNonPrimitivesJava.containsKey(getSimpleType(paramType))) {\n\t\t\treturn ParamCategory.NONPRIMITIVES;\n\t\t} else if (isEnumClass(paramType)) {\n\t\t\treturn ParamCategory.ENUM;\n\t\t} else if (isStructClass(paramType)) {\n\t\t\treturn ParamCategory.STRUCT;\n\t\t} else\n\t\t\treturn ParamCategory.USERDEFINED;\n\t}", "title": "" }, { "docid": "20b1193d891b38a1ee4e245c0ef4f8d9", "score": "0.5788093", "text": "@Override\n \tpublic String type_name() {\n \t\treturn \"integer\";\n \t}", "title": "" }, { "docid": "23d3de9f057522a69e10a6471eca3622", "score": "0.5779775", "text": "public java.lang.Integer getType( ) ;", "title": "" }, { "docid": "a1155e4a5e8782d697b5eca7917a7eb1", "score": "0.5758563", "text": "public String getValueType() { return valueType; }", "title": "" }, { "docid": "f7916dba68458fcb127dc0cb7a0d1c98", "score": "0.5750464", "text": "@JsProperty(name = \"classificationType\")\n public native ClassificationType classificationType();", "title": "" }, { "docid": "51a628654fc4d3d497f7be7445bbd77f", "score": "0.5742359", "text": "@java.lang.Override\n public java.lang.String getCategory() {\n java.lang.Object ref = category_;\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 category_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "020cbbbdf83f1be51be89576dc5031a1", "score": "0.57341504", "text": "String getKind();", "title": "" }, { "docid": "b7aa1ed801cfaaf13afad9a87cd32c41", "score": "0.57159513", "text": "public String getObjectClass () {\n\t\tif (!isPrimitive()) {\n\t\t\treturn getAbsoluteClassName();\n\t\t}\n\t\telse {\n\t\t\treturn (String) primitiveMap.get(type);\n\t\t}\n\t}", "title": "" }, { "docid": "42c2a5aa9974444a2a7081ca35f87ca5", "score": "0.5702213", "text": "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "e8ffb3f1f34d5062cb8e913b24bcd8bc", "score": "0.5697423", "text": "@Override\n public Integer type() {\n return type;\n }", "title": "" }, { "docid": "b730f74338a787af5750db0ce4204a0e", "score": "0.56956595", "text": "@java.lang.Override public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "89b7caac5812d4ac19418b0e175c008d", "score": "0.56896627", "text": "public int getTypeSaada(){\n \treturn categorySaada;\n }", "title": "" }, { "docid": "e317d4a0f8a15e60fc524ed787ee0122", "score": "0.56864494", "text": "public void setPrimitiveDefCategory(PrimitiveDefCategory primitiveDefCategory)\n {\n /*\n * Tests that type and value are consistent\n */\n this.primitiveValue = validateValueAgainstType(primitiveDefCategory, primitiveValue);\n\n /*\n * All ok so set the category\n */\n this.primitiveDefCategory = primitiveDefCategory;\n }", "title": "" }, { "docid": "3377f781ef2cf8dc4fa08634db6e715b", "score": "0.56847036", "text": "@Override\n public Type getType() {\n return new IntType();\n }", "title": "" }, { "docid": "6aa6a1aad735dbcbd93ce85c63e75509", "score": "0.5679938", "text": "@java.lang.Override public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "911a5ff4dea4e2d084a009735dd0e119", "score": "0.5677049", "text": "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "5487387d0bce7c1c9ab5efd738fd3f40", "score": "0.5667175", "text": "int getDataTypeValue();", "title": "" }, { "docid": "5487387d0bce7c1c9ab5efd738fd3f40", "score": "0.5667175", "text": "int getDataTypeValue();", "title": "" }, { "docid": "5487387d0bce7c1c9ab5efd738fd3f40", "score": "0.5667175", "text": "int getDataTypeValue();", "title": "" }, { "docid": "88fbff90549704567f0b2c3e15df1545", "score": "0.5660936", "text": "public int getDataTypeValue() {\n return dataType_;\n }", "title": "" }, { "docid": "88fbff90549704567f0b2c3e15df1545", "score": "0.5660936", "text": "public int getDataTypeValue() {\n return dataType_;\n }", "title": "" }, { "docid": "88fbff90549704567f0b2c3e15df1545", "score": "0.5660936", "text": "public int getDataTypeValue() {\n return dataType_;\n }", "title": "" }, { "docid": "8e4cea2125648d14a8451c2add3fec57", "score": "0.5659737", "text": "public Short getType() {\r\n return type;\r\n }", "title": "" }, { "docid": "d64a8350f28d1fd0e4b449f7e5a63386", "score": "0.56553346", "text": "java.lang.String getKind();", "title": "" }, { "docid": "d64a8350f28d1fd0e4b449f7e5a63386", "score": "0.56553346", "text": "java.lang.String getKind();", "title": "" }, { "docid": "d64a8350f28d1fd0e4b449f7e5a63386", "score": "0.56553346", "text": "java.lang.String getKind();", "title": "" }, { "docid": "d64a8350f28d1fd0e4b449f7e5a63386", "score": "0.56553346", "text": "java.lang.String getKind();", "title": "" }, { "docid": "d64a8350f28d1fd0e4b449f7e5a63386", "score": "0.56553346", "text": "java.lang.String getKind();", "title": "" }, { "docid": "228f1b9e6ee9986889e11c15dd99490f", "score": "0.56498975", "text": "protected Type getScalarType(TypeDefinitionRegistry typeRegistry, Class<?> javaType) {\n String typeName = TYPES.get(javaType);\n if (typeName == null) {\n if (javaType.isEnum()) {\n typeName = getTypeName(javaType);\n if (!typeRegistry.getType(typeName).isPresent()) {\n List<EnumValueDefinition> enumValueDefinitions = new ArrayList<>();\n for (Enum<?> enumConstant : (Enum<?>[]) javaType.getEnumConstants()) {\n enumValueDefinitions.add(new EnumValueDefinition(enumConstant.name(), new ArrayList<>(0)));\n }\n\n addDefinition(typeRegistry, newEnumTypeDefinition(typeName, enumValueDefinitions, getDescription(javaType)));\n }\n } else {\n typeName = \"String\";\n }\n }\n return new TypeName(typeName);\n }", "title": "" }, { "docid": "643ac71ecd8ea02534b5c53d99a5c3a1", "score": "0.56444246", "text": "public Object defaultScalarValue(int type) {\n\tswitch(type & Common.MASK_TYPE) {\n\t case Common.TYPE_STRING:\n\t\treturn \"\";\t// NOI18N\n\t case Common.TYPE_BOOLEAN:\n\t\treturn Boolean.FALSE;\n\t case Common.TYPE_BYTE:\n\t\treturn (byte)0;\n\t case Common.TYPE_CHAR:\n\t\treturn new Character('\\0');\n\t case Common.TYPE_SHORT:\n\t\treturn (short)0;\n\t case Common.TYPE_INT:\n\t\treturn Integer.valueOf(0);\n\t case Common.TYPE_LONG:\n\t\treturn new Long(0);\n\t case Common.TYPE_FLOAT:\n\t\treturn 0.0F;\n\t case Common.TYPE_DOUBLE:\n\t\treturn 0.0D;\n\t default:\n throw new IllegalArgumentException(Common.getMessage(\"UnknownType\", type));\n\t}\n }", "title": "" }, { "docid": "9e7172b7f50c9f5796da088990e10293", "score": "0.5628526", "text": "public int getKindValue() {\n return kind_;\n }", "title": "" }, { "docid": "73a897c16c808b5d575dd59b93d4dc61", "score": "0.5627775", "text": "public Short getType() {\n return type;\n }", "title": "" }, { "docid": "73a897c16c808b5d575dd59b93d4dc61", "score": "0.5627775", "text": "public Short getType() {\n return type;\n }", "title": "" }, { "docid": "73a897c16c808b5d575dd59b93d4dc61", "score": "0.5627775", "text": "public Short getType() {\n return type;\n }", "title": "" }, { "docid": "29f9492b35d2ddbc34ce557a9de46eb9", "score": "0.5622257", "text": "public String getClassType() {\r\n return (String) getAttributeInternal(CLASSTYPE);\r\n }", "title": "" }, { "docid": "1bb3b39b2afb4bf08f4ea68382ce85d8", "score": "0.5615444", "text": "public int getKindValue() {\n return kind_;\n }", "title": "" }, { "docid": "6acac47139cb24fa3ba848cb798b7090", "score": "0.5614887", "text": "public Integer getClassify() {\n return classify;\n }", "title": "" }, { "docid": "b350f0075a1cb5243099108b40c8b952", "score": "0.56113136", "text": "public short getType () {\n\t\treturn this.type;\n\t}", "title": "" }, { "docid": "64aa7ad75195c1a4941ae823dc54fbff", "score": "0.5608357", "text": "public java.lang.String getCategory() {\n java.lang.Object ref = category_;\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 category_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "26743f6f46a2ba9cd5416aa1772d7b6b", "score": "0.5604896", "text": "org.hl7.fhir.CodeableConcept getCategory();", "title": "" }, { "docid": "09f6f9eddf1a6db85b9a5b8ab8b1f3dc", "score": "0.56031525", "text": "public int getDataTypeValue() {\n return dataType_;\n }", "title": "" }, { "docid": "09f6f9eddf1a6db85b9a5b8ab8b1f3dc", "score": "0.56031525", "text": "public int getDataTypeValue() {\n return dataType_;\n }", "title": "" }, { "docid": "09f6f9eddf1a6db85b9a5b8ab8b1f3dc", "score": "0.56031525", "text": "public int getDataTypeValue() {\n return dataType_;\n }", "title": "" }, { "docid": "15cce3ac4189447769d1d7b327417ea5", "score": "0.5602971", "text": "int getKind();", "title": "" }, { "docid": "cfd7e10b787ddbd9fbc52e2f4caf28e4", "score": "0.5597743", "text": "private static EClassifier getOCLTypeFor(EDataType dataType) {\n \t\n \t\t// First check if it is already an OCL data type (EEnums represent\n \t\t// themselves)\n \t\tif (dataType instanceof EEnum)\n \t\t\treturn dataType;\n \t\tif (dataType instanceof CollectionType)\n \t\t\treturn dataType;\n \t\tif (dataType instanceof PrimitiveType)\n \t\t\treturn dataType;\n \t\n \t\tClass instanceClass = dataType.getInstanceClass();\n \t\n \t\t// Boolean/boolean -> OCL_BOOLEAN\n \t\tif (instanceClass == Boolean.class\n \t\t\t|| instanceClass == boolean.class)\n \t\t\treturn Types.OCL_BOOLEAN;\n \t\n \t\t// Double/double/Float/float -> OCL_REAL\n \t\telse if (instanceClass == Double.class\n \t\t\t|| instanceClass == double.class\n \t\t\t|| instanceClass == Float.class || instanceClass == float.class)\n \t\t\treturn Types.OCL_REAL;\n \t\n \t\t// String -> OCL_STRING\n \t\telse if (instanceClass == String.class)\n \t\t\treturn Types.OCL_STRING;\n \t\n \t\t// Integer/int/Long/long/Short/short -> OCL_INTEGER\n \t\telse if (instanceClass == Integer.class\n \t\t\t|| instanceClass == int.class || instanceClass == Long.class\n \t\t\t|| instanceClass == long.class || instanceClass == Short.class\n \t\t\t|| instanceClass == short.class)\n \t\t\treturn Types.OCL_INTEGER;\n \t\n \t\t// List -> OCL_SEQUENCE\n \t\telse if (List.class.isAssignableFrom(instanceClass))\n \t\t\treturn CollectionTypeImpl.OCL_SEQUENCE;\n \t\n \t\t// Set -> OCL_SET\n \t\telse if (Set.class.isAssignableFrom(instanceClass))\n \t\t\treturn CollectionTypeImpl.OCL_SET;\n \t\n \t\t// Collection -> OCL_COLLECTION\n \t\telse if (Collection.class.isAssignableFrom(instanceClass))\n \t\t\treturn CollectionTypeImpl.OCL_COLLECTION;\n \t\n \t\t// Object -> OCL_ANY_TYPE\n \t\telse if (instanceClass == Object.class)\n \t\t\treturn Types.OCL_ANY_TYPE;\n \t\t\n \t\t// All other data types map to themselves\n \t\treturn dataType;\n \t}", "title": "" }, { "docid": "4613b055e6b07209622efa5627bb2864", "score": "0.5584256", "text": "@Override\n\tpublic short getType() {\n\t\treturn TYPE;\n\t}", "title": "" }, { "docid": "98ecad6af0df898fd864489aeefbc73f", "score": "0.55783725", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "3f6653dd9652ebedbb86d5da63dbe5fe", "score": "0.55709857", "text": "public int getKind();", "title": "" }, { "docid": "a483873db6f092d9b7f10d36a8cb9602", "score": "0.55689615", "text": "public String getClasstype() {\n return classtype;\n }", "title": "" }, { "docid": "622079752686b3f14361cde6126f4199", "score": "0.555358", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "622079752686b3f14361cde6126f4199", "score": "0.555358", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "622079752686b3f14361cde6126f4199", "score": "0.555358", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "622079752686b3f14361cde6126f4199", "score": "0.555358", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "622079752686b3f14361cde6126f4199", "score": "0.555358", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "622079752686b3f14361cde6126f4199", "score": "0.555358", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "622079752686b3f14361cde6126f4199", "score": "0.555358", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "622079752686b3f14361cde6126f4199", "score": "0.555358", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "4e7bbd6580a9fad3ccd4dc7d6f63d61e", "score": "0.55429965", "text": "public String getType()\n\t{\n\t\treturn \"Single\";\n\t}", "title": "" }, { "docid": "0a942cdd6fd56d44158bba57e978c059", "score": "0.5533762", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getCategoryBytes() {\n java.lang.Object ref = category_;\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 category_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "2df8b297c0e0b060090484bf9d61962c", "score": "0.552998", "text": "public int getDocumentTypeCategory() {\n\t\treturn documentTypeCategory;\n\t}", "title": "" }, { "docid": "85f5b0e5c1ad67d8f25b5de9eb40f2f6", "score": "0.5526538", "text": "public Integer getDataType() {\n return dataType;\n }", "title": "" }, { "docid": "85f5b0e5c1ad67d8f25b5de9eb40f2f6", "score": "0.5526538", "text": "public Integer getDataType() {\n return dataType;\n }", "title": "" }, { "docid": "85f5b0e5c1ad67d8f25b5de9eb40f2f6", "score": "0.5526538", "text": "public Integer getDataType() {\n return dataType;\n }", "title": "" }, { "docid": "f63b480388cff1e181be5c497600a247", "score": "0.5525769", "text": "@Override\n\tpublic void setKindOf(String kindOf) {\n\t\tthis.cat = K3Cat.getCatByKindOf(kindOf);\n\t}", "title": "" }, { "docid": "7fca2e016f116ef1a227d85238e1086b", "score": "0.55080587", "text": "public final int getCategory() {\n return category;\n }", "title": "" }, { "docid": "4e2a89e654b039eb24233578d8552710", "score": "0.55049807", "text": "public Class<?> toJavaClass() {\n return primitiveJavaClass;\n }", "title": "" }, { "docid": "8da44b0c6adf05a81de555a9352c526d", "score": "0.5501571", "text": "public static Class<?> getPrimitiveClass(String name) {\n if (name.length() <= PRIMITIVE_CLASS_NAME_MAX_LENGTH) {\n int index = Arrays.binarySearch(PRIMITIVE_NAMES, name);\n if (index >= 0) {\n return PRIMITIVE_CLASSES[index];\n }\n }\n return null;\n }", "title": "" }, { "docid": "0ed2f2e56b98b608f8e07db10ba60e81", "score": "0.55003315", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "0ed2f2e56b98b608f8e07db10ba60e81", "score": "0.55003315", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "0ed2f2e56b98b608f8e07db10ba60e81", "score": "0.55003315", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "0ed2f2e56b98b608f8e07db10ba60e81", "score": "0.55003315", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "0ed2f2e56b98b608f8e07db10ba60e81", "score": "0.55003315", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "0ed2f2e56b98b608f8e07db10ba60e81", "score": "0.55003315", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "0ed2f2e56b98b608f8e07db10ba60e81", "score": "0.55003315", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" } ]
3abf7b18af76456545304812704de4fc
Returns the value of the 'View2' attribute. If the meaning of the 'View2' attribute isn't clear, there really should be more of a description here...
[ { "docid": "46f97ef7baa643614fc1711f6cfb996c", "score": "0.6148513", "text": "String getView2();", "title": "" } ]
[ { "docid": "393df799cc8a6174c52cfec8e380c1e1", "score": "0.67950094", "text": "public String getAttr2() {\n return getValue(2, attr2);\n }", "title": "" }, { "docid": "a3447b17c3bebade3f60885d3b0b4c7a", "score": "0.67877996", "text": "public String getAttr2() {\n return attr2;\n }", "title": "" }, { "docid": "a3447b17c3bebade3f60885d3b0b4c7a", "score": "0.67877996", "text": "public String getAttr2() {\n return attr2;\n }", "title": "" }, { "docid": "77d4d3c52c0c06296d0405dda3df5002", "score": "0.6654354", "text": "public String getAttrbute2() {\r\n return attrbute2;\r\n }", "title": "" }, { "docid": "980c77c47346c5371f8eba3e62a602e1", "score": "0.6643168", "text": "public String getAttrib2() {\n return (String) getAttributeInternal(ATTRIB2);\n }", "title": "" }, { "docid": "336d19fba7d494639b7ac14e19beda47", "score": "0.65755635", "text": "public String getAttribute2() {\n return (String) getAttributeInternal(ATTRIBUTE2);\n }", "title": "" }, { "docid": "068da27e6230493bc43098a76825fbd8", "score": "0.61655104", "text": "public int getV2() {\r\n return _v2;\r\n }", "title": "" }, { "docid": "dec18594d4e00093eae11080039c98be", "score": "0.60702246", "text": "public java.lang.String getA2() {\n return a2;\n }", "title": "" }, { "docid": "2b7cb6fbb97e6f8856d66dd134080ef0", "score": "0.6034001", "text": "public String getAssetInfo2() {\n return (String) getAttributeInternal(ASSETINFO2);\n }", "title": "" }, { "docid": "fe7178ec04bd70a375f3247f215dd0da", "score": "0.59947175", "text": "public String getClosestAccessibleValue2() {\n return closestAccessibleValue2;\n }", "title": "" }, { "docid": "e4dd79c4b05f1ba258754ee6a44177b3", "score": "0.5944233", "text": "public java.lang.String getD2() {\n return d2;\n }", "title": "" }, { "docid": "0a459e17e6f20d6eea7246546a0244dd", "score": "0.59235847", "text": "public String getA2() {\n return a2;\n }", "title": "" }, { "docid": "ff79621f97cec0cb8bb61ebd28ead8fe", "score": "0.5863157", "text": "public String getRsv2(){\r\n\t\treturn this.rsv2;\t\r\n\t}", "title": "" }, { "docid": "6979a5a264ce04bd8543759a26659e6a", "score": "0.5862431", "text": "public String getExtended2() {\r\n return extended2;\r\n }", "title": "" }, { "docid": "d4a668482680f7a2f9c6c664b4fb9268", "score": "0.58573043", "text": "public ViewObjectImpl getEmployeesView2() {\r\n return (ViewObjectImpl)findViewObject(\"EmployeesView2\");\r\n }", "title": "" }, { "docid": "08bac38bf5f505ee93afc15e31fb9ee4", "score": "0.5817433", "text": "public String getAttr1() {\r\n return attr1;\r\n }", "title": "" }, { "docid": "b1120d6281cb3897aa669a059c4a3b7e", "score": "0.5805343", "text": "public ViewObjectImpl getDepartmentsView2() {\r\n return (ViewObjectImpl)findViewObject(\"DepartmentsView2\");\r\n }", "title": "" }, { "docid": "1dc701dd1f3466ed0f8f6e1ececf1c29", "score": "0.5788311", "text": "public int getShowHandled2() {\r\n if (chbShowHandledLuggage2.isSelected()) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }", "title": "" }, { "docid": "c137acd295e6f4448629dfd5c1f78166", "score": "0.5785674", "text": "public String getAttrbute1() {\r\n return attrbute1;\r\n }", "title": "" }, { "docid": "b5191810e44f401f00f6167b0c010a1a", "score": "0.57494533", "text": "public String getAttr1() {\n return attr1;\n }", "title": "" }, { "docid": "b5191810e44f401f00f6167b0c010a1a", "score": "0.57494533", "text": "public String getAttr1() {\n return attr1;\n }", "title": "" }, { "docid": "dcf2f23faee8f886f9c7e31b20cb1166", "score": "0.5741549", "text": "String getView1();", "title": "" }, { "docid": "48a93550f64e73d1c5ca9764e63d69ed", "score": "0.57378566", "text": "public String getDesc2() {\n return desc2;\n }", "title": "" }, { "docid": "27ab6ecef16a2d2595e0a3028b7d6022", "score": "0.5723659", "text": "public int getInd2(){\n return this.ind2;\n }", "title": "" }, { "docid": "a0ab81a660893c8501d55b3be47e6516", "score": "0.5706618", "text": "public java.lang.String getI2() {\n return i2;\n }", "title": "" }, { "docid": "ab4141d5a3df5c476260f3efd3bffefb", "score": "0.56936914", "text": "public String getOther2() {\n return other2;\n }", "title": "" }, { "docid": "4ac3f40781d46458d11a417089c171a8", "score": "0.56800437", "text": "public Integer getVal2() {\n return this.val2;\n }", "title": "" }, { "docid": "239cdc85a6920002b92ec7cb9c15992f", "score": "0.5670476", "text": "public String key2() {\n return this.key2;\n }", "title": "" }, { "docid": "ad9f86879c9dc6779c1bcae6cfc1ebe3", "score": "0.5664969", "text": "public java.lang.String getRouteEndpoint2() {\r\n return routeEndpoint2;\r\n }", "title": "" }, { "docid": "e1d2241c3677f4c2014913645f5e90d6", "score": "0.5610602", "text": "public void setAttr2(String attr2) {\n this.attr2 = attr2;\n }", "title": "" }, { "docid": "e1d2241c3677f4c2014913645f5e90d6", "score": "0.5610602", "text": "public void setAttr2(String attr2) {\n this.attr2 = attr2;\n }", "title": "" }, { "docid": "9b429a85d7b3ad160678866cda996801", "score": "0.557689", "text": "public String getListViewData2() throws YssException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9b429a85d7b3ad160678866cda996801", "score": "0.557689", "text": "public String getListViewData2() throws YssException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b068627feed0c98e7dcf63b712d3a642", "score": "0.5576669", "text": "public String getX2() {\n return x2;\n }", "title": "" }, { "docid": "6336ec8929f296ff1b4a97f98b67b324", "score": "0.557632", "text": "public String c(int i2) {\n return String.format(Locale.US, \"item_view_%1$d\", new Object[]{Integer.valueOf(i2)});\n }", "title": "" }, { "docid": "3fd297283ffc2def1b63ae57b8bbf916", "score": "0.5557525", "text": "public String getDataType() {\n\t\treturn \"VIEW\";\n\t}", "title": "" }, { "docid": "4425ec7f82dea6440496ce95c72edec9", "score": "0.555097", "text": "public String getAttrib1() {\n return (String) getAttributeInternal(ATTRIB1);\n }", "title": "" }, { "docid": "6c372ed0b33df25e7f37c4248056f64c", "score": "0.55408657", "text": "public String getAttr1() {\n return getValue(1, attr1);\n }", "title": "" }, { "docid": "849451642cf239e747d86270845377dc", "score": "0.55385566", "text": "public String getLine2() {\r\n return this.line2;\r\n }", "title": "" }, { "docid": "e49979e6c43f091f8de1e20d77ab3eed", "score": "0.55318743", "text": "public java.lang.String getDATA2() {\r\n return DATA2;\r\n }", "title": "" }, { "docid": "5126c56bb0a48cf203970180e1d4de72", "score": "0.5514222", "text": "public String getImmutableField2() {\r\n return immutableField2;\r\n }", "title": "" }, { "docid": "6f4e40a7b35f72fe2965a131cea01074", "score": "0.5512093", "text": "public String getArgument2() {\n\t\treturn this.argument2;\n\t}", "title": "" }, { "docid": "55d7027d6de1c32f61c0063402a64ff7", "score": "0.54964954", "text": "public double getDimension2() {\r\n\t\treturn dimension2;\r\n\t}", "title": "" }, { "docid": "14beec1dde1dcb39d2ae4d96f603a8e0", "score": "0.5486973", "text": "public String getFriend2() {\n return friend2;\n }", "title": "" }, { "docid": "e0e7864ccf377aa9607b79f7502216ed", "score": "0.54852533", "text": "public BigDecimal getCol2() {\n return (BigDecimal) getAttributeInternal(COL2);\n }", "title": "" }, { "docid": "37ea64709d8fb2dbd9f020dd83cce1a5", "score": "0.54850173", "text": "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "title": "" }, { "docid": "416f46a6e0c42d826d872f1ce0e4bd5f", "score": "0.5481497", "text": "public String getAgent2() {\r\n return agent2;\r\n }", "title": "" }, { "docid": "f114c2c89d5f5a2c32bea951ab60872f", "score": "0.5456939", "text": "public int getX2() {\n\t\treturn x2;\n\t}", "title": "" }, { "docid": "9e0a6c874e20836c348d1077ae8ba427", "score": "0.54558015", "text": "public java.lang.Integer getVal2() {\n return val2;\n }", "title": "" }, { "docid": "53c8d6ef931f6d1219e05d3a34f9ee35", "score": "0.54447275", "text": "public java.lang.Integer getVal2() {\n return val2;\n }", "title": "" }, { "docid": "1b2332e1c750e0fa9a08319f18812345", "score": "0.54186594", "text": "public String getRsv2() {\r\n return rsv2;\r\n }", "title": "" }, { "docid": "027afda9e6849956d9be235b7568e0b1", "score": "0.5418535", "text": "public String getAddress2() {\n return data.getString(KEY_ADDRESS2);\n }", "title": "" }, { "docid": "84cd4cabb374ba25a9e1702d6c8d35f0", "score": "0.5416354", "text": "public void setAttr2(String value) {\n attr2 = value;\n }", "title": "" }, { "docid": "98a69a8a2d34f84a0e0ef66daf6f91c3", "score": "0.54151726", "text": "public String getRemarks2() {\n return remarks2;\n }", "title": "" }, { "docid": "82bd080ecd4ebe60aa7563c730c723c5", "score": "0.5413161", "text": "public String getField2()\n {\n return myField2;\n }", "title": "" }, { "docid": "11d16ca5661a7d6813eb7badc86f3008", "score": "0.53950924", "text": "@Override\n\tpublic int m2() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "e11fe63e6bda18622b13f837ce977ab1", "score": "0.5394749", "text": "public int getSw2() {\n return this.sw2;\n }", "title": "" }, { "docid": "57c048864fb04fc6ffbc9ab080e747bb", "score": "0.53864586", "text": "String getArg2() {\n return arg2;\n }", "title": "" }, { "docid": "9c2a4196b8cd4affe966298ad8e157cd", "score": "0.53824943", "text": "public String getY2() {\n return y2;\n }", "title": "" }, { "docid": "28bc18b59809519790938d8b43b6241a", "score": "0.53668594", "text": "public String getRsv2() {\n return rsv2;\n }", "title": "" }, { "docid": "5dec5d41d3dce465c94d7671a9737720", "score": "0.53646886", "text": "public Point2d getp2() { return m_p2; }", "title": "" }, { "docid": "f25a817149c432d63001a4fa97b1f33e", "score": "0.53643924", "text": "public java.lang.String getData2() {\n return data2;\n }", "title": "" }, { "docid": "35a043449adebf413ec6e9f1ee9914b6", "score": "0.53326845", "text": "public String getpWord2() {\n\n\t\treturn pWord2;\n\t}", "title": "" }, { "docid": "a8c795e8ead40f13860e8626e1851575", "score": "0.5328175", "text": "@QueryParam(\"p2\")\n\tpublic int getParam2() {\n\t\treturn this.param2;\n\t}", "title": "" }, { "docid": "c3b6d78cd302c681247d444b005440f1", "score": "0.5321838", "text": "public java.lang.String getVmSecTN2() {\n return vmSecTN2;\n }", "title": "" }, { "docid": "497cf5e3f89bdea7cbd4d96e2b873463", "score": "0.5315208", "text": "@Override\n\tpublic final DisplayNode getComp2() {\n return getNode2();\n }", "title": "" }, { "docid": "fffdb5e3ef0ffb63fde115e7045c4490", "score": "0.530157", "text": "public int getY2() {\n\t\treturn y2;\n\t}", "title": "" }, { "docid": "0b88423f40d8dd4d792b59ad0c27b5e3", "score": "0.5289507", "text": "public String getAttr5() {\n return attr5;\n }", "title": "" }, { "docid": "0b88423f40d8dd4d792b59ad0c27b5e3", "score": "0.5289507", "text": "public String getAttr5() {\n return attr5;\n }", "title": "" }, { "docid": "5eba2eef1571b7e25ae00b0ab73363b7", "score": "0.5289039", "text": "public Integer getReserved2() {\n return reserved2;\n }", "title": "" }, { "docid": "2850160209813d1847d45910c1c8ae5e", "score": "0.52870953", "text": "public double getX2(){\n return this.x2;\n }", "title": "" }, { "docid": "8ccf77379fb27cfc064afd0196722e23", "score": "0.5284298", "text": "public String getUdf2()\r\n\t{\r\n\t\treturn udf2;\r\n\t}", "title": "" }, { "docid": "e2d2019429accdcc0c7a816ad413f71e", "score": "0.52828485", "text": "public MoissPInfoVOImpl getMoissPInfoVO2() {\n return (MoissPInfoVOImpl)findViewObject(\"MoissPInfoVO2\");\n }", "title": "" }, { "docid": "10bc6fc6dc8cfc37526e6b335b4a57fe", "score": "0.5272366", "text": "public String getJP_UserElement2_Value () \n\t{\n\t\treturn (String)get_Value(COLUMNNAME_JP_UserElement2_Value);\n\t}", "title": "" }, { "docid": "0551b15723cf79a54a9091c824c0bcd4", "score": "0.5270962", "text": "public float getX2() {\n return x2;\n }", "title": "" }, { "docid": "4fa4260c330f2508bdb87e8419093cca", "score": "0.5267323", "text": "public int getPos2(){\n return this.pos2;\n }", "title": "" }, { "docid": "7dc15e8490e7ac5a6a8b934578dc0bc6", "score": "0.5265342", "text": "public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getParams2() {\n return params2;\n }", "title": "" }, { "docid": "6dcf3d22563ea30fcd2daed74859cfd1", "score": "0.52589846", "text": "public String getRCOL_2() {\n\t\tif(RCOL_2==null){\n\t\t\treturn \"\";\n\t\t}\n\t\treturn RCOL_2;\n\t}", "title": "" }, { "docid": "eb7ac36beae696d8c47a5cfdf91a7095", "score": "0.5255632", "text": "public int getY2(){\n return this.y2;\n }", "title": "" }, { "docid": "7ef6f1be8ae0282bdcb189e91b039766", "score": "0.5255227", "text": "public String getJP_Line_UserElement2_Value () \n\t{\n\t\treturn (String)get_Value(COLUMNNAME_JP_Line_UserElement2_Value);\n\t}", "title": "" }, { "docid": "6bb72219cd4b72b5832baf55c6d3bf08", "score": "0.5254066", "text": "public String getStreet2() {\n return street2;\n }", "title": "" }, { "docid": "6bb72219cd4b72b5832baf55c6d3bf08", "score": "0.5254066", "text": "public String getStreet2() {\n return street2;\n }", "title": "" }, { "docid": "88896bbf07a349f7b10a820937f83878", "score": "0.52538645", "text": "public double getY2(){\n return this.y2;\n }", "title": "" }, { "docid": "2ad903350b6912db569cf02574d5b2b4", "score": "0.5252936", "text": "public static Viewport2d get_v2d() {\r\n\t\treturn _v2d;\r\n\t}", "title": "" }, { "docid": "1f42ac4277510e2ce2754245460efab0", "score": "0.5251342", "text": "public String getNota2(){\n return nota2.getText();\n }", "title": "" }, { "docid": "bc3585a9be1eb03f6f4d74b4a545b2e2", "score": "0.5248415", "text": "public void setOp2(String Op2) {\n\t\tthis.op2 = Op2;\n\t}", "title": "" }, { "docid": "64126525943cb16173881b8a9917d861", "score": "0.52433926", "text": "public String getAddress2 () {\n return address2_;\n }", "title": "" }, { "docid": "83d5bba07c21ce29f3b39420d9547c2c", "score": "0.52431434", "text": "public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getParams2() {\n return params2;\n }", "title": "" }, { "docid": "985f99e417506f05200a88509cea3d31", "score": "0.5242999", "text": "public int getPostageSegment2() {\r\n\t\treturn postageSegment2;\r\n\t}", "title": "" }, { "docid": "d00e2c28da2a377dda260a62f5bc678e", "score": "0.52396905", "text": "public Object getExp2() {\n return exp2;\n }", "title": "" }, { "docid": "40c55f8ac6cb11ba09af18106f89a391", "score": "0.52354753", "text": "public int GetViewMode() {return 0;}", "title": "" }, { "docid": "1d6b9089f22c6ad60157e5a66d5ecd3b", "score": "0.52336675", "text": "public java.lang.String getDate2() {\n return date2;\n }", "title": "" }, { "docid": "2b889f6050d0a8b9249e66d0f3925582", "score": "0.52283835", "text": "public String getCategory2() {\n return category2;\n }", "title": "" }, { "docid": "996a937612cca589d0795473f4feb0a8", "score": "0.5221952", "text": "public F getItem2() {\n return item2;\n }", "title": "" }, { "docid": "a1402090edee49dff0563d9ab9375747", "score": "0.5214649", "text": "public String getBanner2() {\n return banner2;\n }", "title": "" }, { "docid": "111f52ce73f0b740801a4160d5fe2065", "score": "0.5212977", "text": "public int getViewIdByCoordinates(float f, float f2) {\r\n AccessibilityViewInfo queryRootAccessibilityViewInfo = queryRootAccessibilityViewInfo(this.mapKey);\r\n if (queryRootAccessibilityViewInfo == null) {\r\n LogUtil.info(TAG, \"getViewIdByCoordinates failed, root view is null.\");\r\n return -1;\r\n }\r\n AccessibilityViewInfo clickedAccessibilityView = getClickedAccessibilityView(queryRootAccessibilityViewInfo, (int) f, (int) f2);\r\n if (clickedAccessibilityView != null) {\r\n return clickedAccessibilityView.getId();\r\n }\r\n return -1;\r\n }", "title": "" }, { "docid": "c45cf0a3b167f4ea9615a05f2cb5d017", "score": "0.52116334", "text": "public int getId2(){\n\t\treturn id2;\n\t}", "title": "" }, { "docid": "eb21add4e76036ef9586158ff374a07a", "score": "0.5207922", "text": "public String getVarTwo() {\r\n\t\treturn varTwo;\r\n\t}", "title": "" }, { "docid": "820b081900a0bd3b358da976a76b9099", "score": "0.52001256", "text": "public int getPos2() { return pos2; }", "title": "" }, { "docid": "66ed42d2736763c88e414e7c96eb80b4", "score": "0.5199044", "text": "public byte version2() {\n return version2;\n }", "title": "" } ]
66fbf461acc717aa9f8a62df083243c1
Set the value related to the column: demurragedays
[ { "docid": "db335e0f597fa2c89c460577ce532d22", "score": "0.61898375", "text": "public void setDemurragedays(java.lang.Integer demurragedays) {\n\t\tthis.demurragedays = demurragedays;\n\t}", "title": "" } ]
[ { "docid": "bdd7a092ec8894f7dcdc14e2edd90a80", "score": "0.58449394", "text": "public java.lang.Integer getDemurragedays() {\n\t\treturn demurragedays;\n\t}", "title": "" }, { "docid": "d6c2fb9ab7cc351013aaf107deeb71e4", "score": "0.5770189", "text": "public void setDays(String days) {\n this.days = days;\n }", "title": "" }, { "docid": "937c3e75174e38091ad3423db6e7c774", "score": "0.5754621", "text": "void setDateValue( Date date );", "title": "" }, { "docid": "f6d5f01885c91a091dee095dd622c052", "score": "0.56913626", "text": "public void setDays(Integer days) {\n this.days = days;\n }", "title": "" }, { "docid": "7ed92fe6d73479b25a152d9414bed063", "score": "0.56908494", "text": "public void setDay(Date day) {\r\n this.day = day;\r\n }", "title": "" }, { "docid": "7ed92fe6d73479b25a152d9414bed063", "score": "0.56908494", "text": "public void setDay(Date day) {\r\n this.day = day;\r\n }", "title": "" }, { "docid": "7ed92fe6d73479b25a152d9414bed063", "score": "0.56908494", "text": "public void setDay(Date day) {\r\n this.day = day;\r\n }", "title": "" }, { "docid": "7ed92fe6d73479b25a152d9414bed063", "score": "0.56908494", "text": "public void setDay(Date day) {\r\n this.day = day;\r\n }", "title": "" }, { "docid": "7ed92fe6d73479b25a152d9414bed063", "score": "0.56908494", "text": "public void setDay(Date day) {\r\n this.day = day;\r\n }", "title": "" }, { "docid": "6617430a6a768304a252da802a00be91", "score": "0.5674782", "text": "public void setAssignDay(Integer assignDay);", "title": "" }, { "docid": "222485a0277f11659725c68e119a9378", "score": "0.5669393", "text": "public void setDays(String days)\n\t{\n\t\tthis.days = days;\n\t}", "title": "" }, { "docid": "222485a0277f11659725c68e119a9378", "score": "0.5669393", "text": "public void setDays(String days)\n\t{\n\t\tthis.days = days;\n\t}", "title": "" }, { "docid": "6fb527379f3d991e9656cca1def818f8", "score": "0.5662837", "text": "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n String reminder_date = dayOfMonth + \"/\" + month + \"/\" + year;\n database = FirebaseDatabase.getInstance();\n DatabaseReference myRef = database.getReference(\"/reminder_id/reminder_date\");\n myRef.setValue(reminder_date);\n }", "title": "" }, { "docid": "35cd4cd3d858682fb57c98b57c4bf58f", "score": "0.5631768", "text": "public void setDesde(Date value) {\n\t\tsetValue(DESDE, value);\n\t}", "title": "" }, { "docid": "92e43539090efc11ca894d8c13f7772e", "score": "0.56054866", "text": "public void setDataFine(LocalDate dataFine) {\n this.dataFine = dataFine;\n }", "title": "" }, { "docid": "063d189570358403af1695a156b71acd", "score": "0.55666846", "text": "public void setDay(int whichDay){\n\t\tday = whichDay;\n\t}", "title": "" }, { "docid": "504844965ff69954a021f5407662d267", "score": "0.55361474", "text": "public void setFecFinAnalisis(Date fecFinAnalisis);", "title": "" }, { "docid": "139381a024fc1e4d16da4a2e10a1ee5c", "score": "0.55342954", "text": "public void setDEAL_VALUE_DATE(Date DEAL_VALUE_DATE) {\r\n this.DEAL_VALUE_DATE = DEAL_VALUE_DATE;\r\n }", "title": "" }, { "docid": "4a942e68eaace1b45aa5a7e2304ab4f7", "score": "0.5533402", "text": "public void setDay(int day) {\r\n this.day = day;\r\n }", "title": "" }, { "docid": "d0a6de3382efba8f836de6ea8119f06e", "score": "0.5519576", "text": "public ScGridColumn<AcUspsDomesticFishingOfferMarketVo> newDayColumn()\n {\n return newDayColumn(\"Day\");\n }", "title": "" }, { "docid": "eed2f7df9f5db6cae98afbf1c18d3550", "score": "0.5508707", "text": "public void setDay( LocalDate day ) {\n this.day = day;\n }", "title": "" }, { "docid": "783973bffdb709fb014c8523118cbca8", "score": "0.54881793", "text": "public void setDay(int day) {\n\t\tthis.day = day;\n\t\tthis.normalize();\n\t}", "title": "" }, { "docid": "ef142f1a8ca6ed74fb2ea3b86040b25a", "score": "0.54844457", "text": "public void setDay(int day) {\n this.day = day;\n }", "title": "" }, { "docid": "a3de83d75bfbe73d56493f3a1f6d9e19", "score": "0.5447003", "text": "public void setDay(BigDecimal day) {\n\t\t\n\t}", "title": "" }, { "docid": "5540d4356256e94e414d276a4f1086ba", "score": "0.53906786", "text": "public void setFechaDesde(Date fechaDesde)\r\n/* 289: */ {\r\n/* 290:307 */ this.fechaDesde = fechaDesde;\r\n/* 291: */ }", "title": "" }, { "docid": "1eee039676d90e0a990b6637fea360d1", "score": "0.53700805", "text": "public void setValue(Date value)\r\n\t{\r\n\t\tthis.value = value;\r\n\t}", "title": "" }, { "docid": "1b8908dcf6cd8988178cf8cbbab29257", "score": "0.5359833", "text": "public void setDa( Date da )\r\n {\r\n _da = da;\r\n }", "title": "" }, { "docid": "b4f909e70e53ca7e4d9c3223944f2ce0", "score": "0.53593487", "text": "public void setFecIniAnalisis(Date fecIniAnalisis);", "title": "" }, { "docid": "ca2aca2f1d237db7fc9491f9b6957f3f", "score": "0.5357156", "text": "public void setRdvOfDay(LocalDate date) throws DbGetException {\n\t\tlist.clear();\n\t\tlistProperty().set(FXCollections.observableArrayList(db.getRdvOfDay(date)));\n\t\tlist.sort(Rdv::compareTo);\n\t}", "title": "" }, { "docid": "aac36a48b10cff529978118f8c616934", "score": "0.53516114", "text": "public void setschdatToVar(Date value) {\n ensureVariableManager().setVariableValue(\"schdatToVar\", value);\n }", "title": "" }, { "docid": "29e95b6ef7cc005f57aa261032d509d4", "score": "0.53212726", "text": "public void setDay(int day){\n\n\t\tint maxValue;\n\n\t\tif (isLeapYear(year)== true){\n\t\t\tdaysInMonth[1] = 29;\n\t\t}\n\n\t\tmaxValue = daysInMonth [month -1];\n\n\t\twhile (day > maxValue || day <0){\n\t\t\tday = 1;\n\t\t}\n\n\n\n\t\tthis.day = day;\n\t}", "title": "" }, { "docid": "295ea246c70f86ad0feb191a78d089a7", "score": "0.530559", "text": "public void setDay(String day){\r\n\t\tthis.day = day;\r\n\t}", "title": "" }, { "docid": "600bd829548745ff5a1cd3467d5eb667", "score": "0.52973324", "text": "@Accessor(qualifier = \"refundedDate\", type = Accessor.Type.SETTER)\n\tpublic void setRefundedDate(final Date value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(REFUNDEDDATE, value);\n\t}", "title": "" }, { "docid": "8954442253606cb8cbea228d25d91813", "score": "0.52963316", "text": "public Integer getDue_date_value() {\n return due_date_value;\n }", "title": "" }, { "docid": "55dba9ff5514879df2032703346fb633", "score": "0.5289736", "text": "public void setDDN(LocalDate data){\n this.ddn = data;\n }", "title": "" }, { "docid": "37d26885425f2ec4d2e73d91fad51130", "score": "0.5273872", "text": "public void setDue_date_value(Integer due_date_value) {\n this.due_date_value = due_date_value;\n }", "title": "" }, { "docid": "68008b0dcca01935ab08a77d533a5b0c", "score": "0.52727973", "text": "public Date getDFin() { return (Date) get(CdcTrattaCrocieraTable.Column.d_fin); }", "title": "" }, { "docid": "ed7c4ae38adde24f35368573feabd2d3", "score": "0.5263029", "text": "public void setDate(int day) \n\t{\n\t\tdayChoice = day;\n\t}", "title": "" }, { "docid": "c9ffa9bc515f06d428e01549b3182871", "score": "0.5207508", "text": "public void setFecEmpresa(Date fecEmpresa);", "title": "" }, { "docid": "a27e13ad5029b2040f42bc8f44d90aec", "score": "0.52037567", "text": "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n if(id.equals(\"dob\")){\n setEdDOB(dayOfMonth,monthOfYear,year);\n\n }else{\n setEdCurrentDates(dayOfMonth,monthOfYear,year);\n\n }\n\n\n\n }", "title": "" }, { "docid": "20bc94d5b71af3c44bdb02fc685d1581", "score": "0.5195812", "text": "@Override\n public void onValueChange(NumberPicker picker, int oldVal, int newVal) {\n dates.setCurrentDate(newVal);\n date = dates.getDateString();\n dayWeek.setText(dates.getCurrentDayOfWeek());\n loadEvents(view); // reload events\n }", "title": "" }, { "docid": "5a6296a5545b8caf0b9a0ceca2a2846a", "score": "0.51846486", "text": "@Override\n\tpublic void setDataRisposta(java.util.Date dataRisposta) {\n\t\t_rispostaUtente.setDataRisposta(dataRisposta);\n\t}", "title": "" }, { "docid": "e5c38185999aa28b5882e206a8be1349", "score": "0.5169539", "text": "public void setDataRecadastramento(Date dataRecadastramento){\n\n\t\tthis.dataRecadastramento = dataRecadastramento;\n\t}", "title": "" }, { "docid": "2e9031e56b83a0bd2d5e4dbf8fd9f7ff", "score": "0.5168792", "text": "public void setFabudate(Date fabudate) {\n this.fabudate = fabudate;\n }", "title": "" }, { "docid": "8da423dd8f0be6d9333ea8bd26b22664", "score": "0.51611197", "text": "public Date getDEAL_VALUE_DATE() {\r\n return DEAL_VALUE_DATE;\r\n }", "title": "" }, { "docid": "e7c6c2eb20f1053e0499760afe0d4186", "score": "0.51606727", "text": "public String getDays() {\n return days;\n }", "title": "" }, { "docid": "bae60c5c86599e6aa43585b529dd9ba5", "score": "0.51513904", "text": "public Integer getAssignDay();", "title": "" }, { "docid": "4643a3d628db1870c34b3799f3677818", "score": "0.5147176", "text": "@Override\r\n public void updateDate(DateEvent de) {\r\n try {\r\n theDate = (Date)de.getNewDate().getDate();\r\n }catch (NullPointerException e){}\r\n fireEditingStopped();\r\n }", "title": "" }, { "docid": "84ea2459452f396daece75dcbb5a8a1d", "score": "0.5142335", "text": "public void setDays(String days) {\n String[] strArr = days.split(\":\");\n for(int i=0; i<strArr.length; i++) this.days[i] = strArr[i].equals(\"1\");\n }", "title": "" }, { "docid": "08ca85e2d54bce09a7947405ae770e14", "score": "0.5135539", "text": "public void setEmergencyFund(long id, double value) {\n SQLiteDatabase db = getWritableDatabase();\n db.execSQL(\"UPDATE AccountInfo SET emergency_fund='\"+ value + \"' WHERE \" +\n \"_id='\"+ id + \"'\");\n }", "title": "" }, { "docid": "c50e0771e87752d2a4620d10a654bce9", "score": "0.5130072", "text": "public void onKeppData(SetDay setDay);", "title": "" }, { "docid": "c55fcbe13e37b69badce6f114a94f25f", "score": "0.512117", "text": "public void renewExpenditureValue() {\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);\n calendar.set(Calendar.HOUR_OF_DAY, 0);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.SECOND, 0);\n Date anyMonday = calendar.getTime(); //past Monday\n Date today = new Date();\n Date pastMonday;\n if (anyMonday.after(today)) {\n calendar.add(Calendar.DATE, -7);\n pastMonday = calendar.getTime();\n } else {\n pastMonday = anyMonday;\n }\n if (lastSavedDate == null || lastSavedDate.before(pastMonday)) {\n totalExpenditure = 0;\n amountUsedInCooking = 0;\n }\n }", "title": "" }, { "docid": "0ce2545cee37de2945da2240eb1fafe3", "score": "0.5118969", "text": "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n dates = year + \"-\" + month + \"-\" + dayOfMonth;\n\n Log.d(\"edittruck_insurance\", dates);\n edittruck_insurance.setText(dates);\n Log.d(\"edittruck_insurance\", edittruck_insurance.toString());\n }", "title": "" }, { "docid": "ccce95fca9b2aade0ccdd7c6619bdc37", "score": "0.5118967", "text": "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n dueDate.setText(dayOfMonth + \"/\"\n + (monthOfYear + 1) + \"/\" + year);\n\n }", "title": "" }, { "docid": "b896a9e30fa0b1fbcb990364b64424db", "score": "0.51096004", "text": "public void setDay(int day) {\n\t\tif (day >= 0) \n\t\t\tthis.day = day;\n\t\telse {\n\t\t\tSystem.out.println(\"Invalid value for day: \" + day);\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "title": "" }, { "docid": "b9506a568148dd1882227b060e27b4f6", "score": "0.51086015", "text": "@DISPID(1) //= 0x1. The runtime will prefer the VTID if present\r\n @VTID(11)\r\n void correctDays(\r\n boolean prop);", "title": "" }, { "docid": "efbcc2042e3d096045d8e58b8a9f66d1", "score": "0.51035863", "text": "public void setFecAdmision(Date fecAdmision);", "title": "" }, { "docid": "12dab8a2b469a185f8107b488ca5cf42", "score": "0.5103141", "text": "public Integer getDays() {\n return days;\n }", "title": "" }, { "docid": "eeeeae80912a160e9f7a3e6286b7e4e5", "score": "0.50982976", "text": "public void setFechaHasta(Date fechaHasta)\r\n/* 299: */ {\r\n/* 300:326 */ this.fechaHasta = fechaHasta;\r\n/* 301: */ }", "title": "" }, { "docid": "cad9449ddf2344ba67545a26c3193b7a", "score": "0.50914043", "text": "@Column( name = \"da\" )\r\n public Date getDa( )\r\n {\r\n return _da;\r\n }", "title": "" }, { "docid": "93e988e4690c215e34157623d684ad3d", "score": "0.50898117", "text": "public void setFecSolicitudExpediente(Date fecSolicitudExpediente);", "title": "" }, { "docid": "fc81b1fdd628775258cdb90243252bb5", "score": "0.5074004", "text": "public void setDateFin( Date dateFin )\r\n {\r\n this._dateFin = dateFin;\r\n }", "title": "" }, { "docid": "4df32ad8bce18dbdcdce11549feccf44", "score": "0.5072907", "text": "public void setFecha(Date Fecha) \r\n {\r\n this.Fecha = Fecha;\r\n }", "title": "" }, { "docid": "2ed28f64ab91a8f07d59ed259f004081", "score": "0.5069337", "text": "public void setValue(String fieldName, RelativeDate value) {\r\n setValue(fieldName, value.getValue());\r\n }", "title": "" }, { "docid": "85c8a06abfd7a8e807e17bb13dad17ba", "score": "0.50598615", "text": "public void setNowDay(Date nowDay) {\n this.nowDay = nowDay;\n }", "title": "" }, { "docid": "4bffb81475727da95bdd5e3e96e491c0", "score": "0.50567853", "text": "public void setVenDataVenda(Date pVenDataVenda){\n this.venDataVenda = pVenDataVenda;\n }", "title": "" }, { "docid": "66743070cf9ab1eecb337fa80e017ff1", "score": "0.5056029", "text": "public void setFecCliente(Date fecCliente);", "title": "" }, { "docid": "7bac0bfcb408da4a665ecc0eb845f1bc", "score": "0.504925", "text": "public void setUpdDate(Date updDate) {\n this.updDate = updDate;\n }", "title": "" }, { "docid": "4bbed571981334446fa0cbe619f335fc", "score": "0.5046807", "text": "private void setFriday() {\n int day = startDate.plusDays(5).getDayOfMonth();\n friday = day + \"\\n\\n\\n\" + getAppCountString(fridayCount);\n }", "title": "" }, { "docid": "5d7749b15fb0b1dfa472b163c8cb2ea4", "score": "0.50446415", "text": "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n dates = year + \"-\" + month + \"-\" + dayOfMonth;\n\n Log.d(\"edittruck_emi\", dates);\n edittruck_emi.setText(dates);\n Log.d(\"edittruck_emi\", edittruck_emi.toString());\n }", "title": "" }, { "docid": "93d7426b542752d02e86d146fe2068f3", "score": "0.5044628", "text": "public void setNom_cal_ds(java.lang.String newNom_cal_ds);", "title": "" }, { "docid": "1487171c268bb608c4e5748e4dbbbef1", "score": "0.504406", "text": "public void setFecRespuestaDefinitiva(Date fecRespuestaDefinitiva);", "title": "" }, { "docid": "b6cda7bc1db7ce30e97df5696db36566", "score": "0.5037203", "text": "public void setNewDate() {\n SimpleDateFormat format1 = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.CANADA);\n date = format1.format(new Date());\n }", "title": "" }, { "docid": "5590c434be2535a33f2ad62f27d4f286", "score": "0.50309414", "text": "public void setDdDate(Date ddDate) {\n this.ddDate = ddDate;\n }", "title": "" }, { "docid": "26cbdc93f2c738e39e4173813408bc1e", "score": "0.5030142", "text": "public void setLectureDay(String day){\r\n lectureDay = day;\r\n }", "title": "" }, { "docid": "010dd87d1cf61a83761a3e370b0975ae", "score": "0.5028821", "text": "private void getExpectedDate(int days) {\n Date date = new Date();\n date.setTime(egg.getLayDate().getTime() + TimeUnit.DAYS.toMillis(days));\n egg.setExpectedHatchingDate(date);\n binding.eggStartDate.setText(ValuesHelper.getDate(egg.getExpectedHatchingDate()));\n\n }", "title": "" }, { "docid": "91736c4c7a6d617421c6ae9e5f150792", "score": "0.5026903", "text": "public void setDateReservationMade(Date dateReservationMade) {this.dateReservationMade = dateReservationMade;}", "title": "" }, { "docid": "221ccfeea6ffc692476f57bc059d1aa6", "score": "0.502615", "text": "protected void onSetDayForWhichTheHistoricalDataOfMeasuredCumulativeAmountsOfElectricEnergyIsToBeRetrieved(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "title": "" }, { "docid": "13d3eb07234c333e39c79f276fed5508", "score": "0.5022885", "text": "public void setDate(Date date) {\n\t\t_value = (date == null ? null : new DateMidnight(date));\n\t}", "title": "" }, { "docid": "386422d0922cdfb483347cec66115474", "score": "0.5022509", "text": "public void setschdatFromVar(Date value) {\n ensureVariableManager().setVariableValue(\"schdatFromVar\", value);\n }", "title": "" }, { "docid": "752589048e1cb44fc0e373abbe60b007", "score": "0.50210804", "text": "public Date getDMdf() { return (Date) get(CdcTrattaCrocieraTable.Column.d_mdf); }", "title": "" }, { "docid": "ed3c08a6c2d48be9b1c5b1f3168ffe6b", "score": "0.50189227", "text": "void updateDaysInStore() {\n try (Connection conn = DriverManager.getConnection(DB_CONNECTION_URL, USER, PASSWORD);\n Statement statement = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n Statement stat = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE)) {\n String getDatesReceivedSQL = \"SELECT \" + DATE_RECEIVED_COLUMN_NAME + \", \" + RECORD_NUMBER_COLUMN_NAME + \" FROM \" + RECORDS_TABLE_NAME;\n ResultSet rs = statement.executeQuery(getDatesReceivedSQL);\n LocalDate today = LocalDate.now();\n while (rs.next()) {\n LocalDate date1 = LocalDate.parse(rs.getString(DATE_RECEIVED_COLUMN_NAME));\n int days = Days.daysBetween(date1, today).getDays();\n String updateDaysInStoreSQL = \"UPDATE \" + RECORDS_TABLE_NAME + \" SET \" + DAYS_IN_STORE_COLUMN_NAME + \"=\" + days + \" WHERE \" + RECORD_NUMBER_COLUMN_NAME + \"=\" + rs.getString(RECORD_NUMBER_COLUMN_NAME);\n stat.executeUpdate(updateDaysInStoreSQL);\n }\n rs.close();\n statement.close();\n conn.close();\n } catch (SQLException sqle) {\n System.out.println(\"There was an error updating the number of days in-store. Printing stack trace.\");\n sqle.printStackTrace();\n }\n }", "title": "" }, { "docid": "bae54f617706d2428e4ba3ff7da17ed2", "score": "0.5017402", "text": "@Override\r\n\t\t\tpublic void onValueChange(ValueChangeEvent<Date> event) {\n\t\t\t\tDate date = event.getValue();\r\n\t\t\t\tString datum = DateTimeFormat.getFormat(\"yyyy-MM-dd\").format(date);\r\n\t\t\t\ttextBewerbungsfrist.setText(datum);\r\n\t\t\t}", "title": "" }, { "docid": "09534526cef1163fe965030e752f628d", "score": "0.501498", "text": "public void setED(int ed)\n\t{\n\t\tendDay = ed;\n\t}", "title": "" }, { "docid": "af912221a4444b5be4003fd33ac03120", "score": "0.5014835", "text": "public void setDays(String days) {\n\t\tArrayList<String> str = new ArrayList<String>();\n\t\tdays.trim();\n\t\t/* Divide days string by \" \" and store in string array */\n\t\tString[] dys = days.split(\" \");\n\t\t/* Loop through string array and put items into array list of arrays*/\n\t\tfor (int i=0; i<dys.length; i++) {\n\t\t\t/* If the string only contains letters (avoid whitespace strings) */\n\t\t\tif(dys[i].matches(\"[a-zA-Z]+\")) { str.add(dys[i].trim()); }\n\t\t}\n\t\tthis.days = str;\n\t}", "title": "" }, { "docid": "81d865ccab1bddac97bbf2df9d03eb47", "score": "0.5012958", "text": "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n dates = year + \"-\" + month + \"-\" + dayOfMonth;\n\n Log.d(\"edittruck_fitness\", dates);\n edittruck_fitness.setText(dates);\n Log.d(\"edittruck_fitness\", edittruck_fitness.toString());\n }", "title": "" }, { "docid": "0619d14cfaa62ea3a1dfd9c37696d5a3", "score": "0.5010072", "text": "public void setDealDate(Integer dealDate) {\n this.dealDate = dealDate;\n }", "title": "" }, { "docid": "6dc46f5eee22bcea4ec032b3484fffdd", "score": "0.5008841", "text": "public void setDatebldbeg(java.sql.Date newValue) {\n\tthis.datebldbeg = newValue;\n}", "title": "" }, { "docid": "c06ae11ad3fa6b4be8df4de22959552b", "score": "0.5007421", "text": "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n dates = year + \"-\" + month + \"-\" + dayOfMonth;\n\n Log.d(\"dates\", dates);\n edittruck_reg_date.setText(dates);\n Log.d(\"_calender\", edittruck_reg_date.toString());\n }", "title": "" }, { "docid": "344328f5ad09872c10d2f3ed1fa325b6", "score": "0.50052965", "text": "public String getDays()\n\t{\n\t\treturn days;\n\t}", "title": "" }, { "docid": "344328f5ad09872c10d2f3ed1fa325b6", "score": "0.50052965", "text": "public String getDays()\n\t{\n\t\treturn days;\n\t}", "title": "" }, { "docid": "a57f4bcb52c17c923757e38c2235c79b", "score": "0.50014037", "text": "public static String SetFutureDate(int FuturefDays) throws Throwable {\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd\");\n Date date = new Date(); //get current date\n Calendar cal = Calendar.getInstance();\n String currentDate = formatter.format(date);\n String setFutureDate = null;\n \n cal.setTime(formatter.parse(currentDate));\n cal.add(Calendar.DATE, FuturefDays);\n\n setFutureDate = formatter.format(cal.getTime());\n\n \n\n return setFutureDate;\n\n}", "title": "" }, { "docid": "1c437536f5b595de1ca7ebf84e3790f5", "score": "0.49917445", "text": "public void setFecha(String v) \n {\n \n if (!ObjectUtils.equals(this.fecha, v))\n {\n this.fecha = v;\n setModified(true);\n }\n \n \n }", "title": "" }, { "docid": "7574e7a80b497f81e5c82d9be593ab17", "score": "0.4991502", "text": "public void setDataCadastro(LocalDate dataCadastro) {\r\n this.dataCadastro = dataCadastro;\r\n }", "title": "" }, { "docid": "ac828e6d859e84159fe264f0b3d76d27", "score": "0.4988873", "text": "public void setDelistDate(Long delistDate) {\n this.delistDate = delistDate;\n }", "title": "" }, { "docid": "520192ea12c7da9532bf9d9fd069ab46", "score": "0.49770498", "text": "public void setNgaySua(Date ngaySua);", "title": "" }, { "docid": "a4c8436b47472d6ba93f817d6a1e96b5", "score": "0.4976456", "text": "public void setDateRenewalNeeded(Date drn) { dateRenewalNeeded = drn; }", "title": "" }, { "docid": "25c8121fcfba7144adefaf0bfd9337b9", "score": "0.49708676", "text": "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n dates = year + \"-\" + month + \"-\" + dayOfMonth;\n\n Log.d(\"dates\", dates);\n edittruck_reg_valid.setText(dates);\n Log.d(\"edittruck_reg_valid\", edittruck_reg_date.toString());\n }", "title": "" }, { "docid": "6632b58c37d3fcb6925bf0880264b2b7", "score": "0.49703458", "text": "public int getDay(){\r\n return Day;\r\n }", "title": "" }, { "docid": "d6ca0c624558f126805000a66b19e8c7", "score": "0.496404", "text": "public void setDueDate(Calendar dueDate)\n {\n\tthis.dueDate = dueDate;\n }", "title": "" } ]
1e041127a824a84f86032305d35f8b5b
Output only. The current state of the backup. .google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
[ { "docid": "b5ff6a4f0850d41b158f7e1624ac54de", "score": "0.0", "text": "public Builder setStateValue(int value) {\n state_ = value;\n bitField0_ |= 0x00000040;\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "3df577244d0b1ff7d86f14870e5b9863", "score": "0.81478256", "text": "@java.lang.Override\n public com.google.spanner.admin.database.v1.Backup.State getState() {\n com.google.spanner.admin.database.v1.Backup.State result =\n com.google.spanner.admin.database.v1.Backup.State.forNumber(state_);\n return result == null ? com.google.spanner.admin.database.v1.Backup.State.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "190f2098503191098ffae9670c3f7034", "score": "0.81245345", "text": "@java.lang.Override\n public com.google.spanner.admin.database.v1.Backup.State getState() {\n com.google.spanner.admin.database.v1.Backup.State result =\n com.google.spanner.admin.database.v1.Backup.State.forNumber(state_);\n return result == null\n ? com.google.spanner.admin.database.v1.Backup.State.UNRECOGNIZED\n : result;\n }", "title": "" }, { "docid": "5edbd578ba9e0b952dd640f5f045d055", "score": "0.70477957", "text": "public Builder setState(com.google.spanner.admin.database.v1.Backup.State value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n state_ = value.getNumber();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3e3230bfbf2a7001c2842e9a296ba19e", "score": "0.65219516", "text": "public String backupType() {\n return this.backupType;\n }", "title": "" }, { "docid": "43b7f6599891f0646f54563ffea89c3c", "score": "0.62482166", "text": "private boolean updateBackupState(BackupState state)\n\t{\n\t\tif (state == null)\n\t\t{\n\t\t\tstate = new BackupState(dbNames[0], DBConstants.CONVERSATIONS_DATABASE_VERSION);\n\t\t\tstate.backupPrefs(mContext);\n\t\t}\n\t\tFile backupStateFile = getBackupStateFile();\n\t\tFileOutputStream fileOut = null;\n\t\tObjectOutputStream out = null;\n\t\ttry\n\t\t{\n\t\t\tfileOut = new FileOutputStream(backupStateFile);\n\t\t\tout = new ObjectOutputStream(fileOut);\n\t\t\tout.writeObject(state);\n\t\t\tout.close();\n\t\t\tfileOut.close();\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tcloseChannelsAndStreams(fileOut,out);\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ba7c84e7954211609f3bda8a6b74e34c", "score": "0.6124404", "text": "public int getBackupCount() {\n return backupCount;\n }", "title": "" }, { "docid": "ba7c84e7954211609f3bda8a6b74e34c", "score": "0.6124404", "text": "public int getBackupCount() {\n return backupCount;\n }", "title": "" }, { "docid": "9a21eec19be40d48992dd6954014611c", "score": "0.61052716", "text": "public SnapshotState state() {\n return state;\n }", "title": "" }, { "docid": "de8124ff30b4a1efa92f27a131ca6278", "score": "0.61010516", "text": "public com.weizhu.proto.AdminProtos.State getState() {\n return state_;\n }", "title": "" }, { "docid": "de8124ff30b4a1efa92f27a131ca6278", "score": "0.61010516", "text": "public com.weizhu.proto.AdminProtos.State getState() {\n return state_;\n }", "title": "" }, { "docid": "de8124ff30b4a1efa92f27a131ca6278", "score": "0.61010516", "text": "public com.weizhu.proto.AdminProtos.State getState() {\n return state_;\n }", "title": "" }, { "docid": "de8124ff30b4a1efa92f27a131ca6278", "score": "0.61010516", "text": "public com.weizhu.proto.AdminProtos.State getState() {\n return state_;\n }", "title": "" }, { "docid": "de8124ff30b4a1efa92f27a131ca6278", "score": "0.61010516", "text": "public com.weizhu.proto.AdminProtos.State getState() {\n return state_;\n }", "title": "" }, { "docid": "d239eedf533ca1e6978851cf0dd2bafd", "score": "0.6089969", "text": "public com.weizhu.proto.AdminProtos.State getState() {\n return state_;\n }", "title": "" }, { "docid": "d239eedf533ca1e6978851cf0dd2bafd", "score": "0.6089969", "text": "public com.weizhu.proto.AdminProtos.State getState() {\n return state_;\n }", "title": "" }, { "docid": "d239eedf533ca1e6978851cf0dd2bafd", "score": "0.6089969", "text": "public com.weizhu.proto.AdminProtos.State getState() {\n return state_;\n }", "title": "" }, { "docid": "d239eedf533ca1e6978851cf0dd2bafd", "score": "0.6089969", "text": "public com.weizhu.proto.AdminProtos.State getState() {\n return state_;\n }", "title": "" }, { "docid": "d239eedf533ca1e6978851cf0dd2bafd", "score": "0.6089969", "text": "public com.weizhu.proto.AdminProtos.State getState() {\n return state_;\n }", "title": "" }, { "docid": "15c3e716a0a4966c779326b5fbdeabe8", "score": "0.5915658", "text": "public String state() {\n return this.state;\n }", "title": "" }, { "docid": "15c3e716a0a4966c779326b5fbdeabe8", "score": "0.5915658", "text": "public String state() {\n return this.state;\n }", "title": "" }, { "docid": "cc3cf4a028c92ca6842ca64794e93e69", "score": "0.5912683", "text": "com.weizhu.proto.AdminProtos.State getState();", "title": "" }, { "docid": "cc3cf4a028c92ca6842ca64794e93e69", "score": "0.5912683", "text": "com.weizhu.proto.AdminProtos.State getState();", "title": "" }, { "docid": "cc3cf4a028c92ca6842ca64794e93e69", "score": "0.5912683", "text": "com.weizhu.proto.AdminProtos.State getState();", "title": "" }, { "docid": "cc3cf4a028c92ca6842ca64794e93e69", "score": "0.5912683", "text": "com.weizhu.proto.AdminProtos.State getState();", "title": "" }, { "docid": "cc3cf4a028c92ca6842ca64794e93e69", "score": "0.5912683", "text": "com.weizhu.proto.AdminProtos.State getState();", "title": "" }, { "docid": "70ba0c35515e5887ad079a01926cb0d0", "score": "0.58864164", "text": "SnapshotState state();", "title": "" }, { "docid": "02e6bdd8f61b2594e8c62d7161258e5c", "score": "0.5854979", "text": "public void recordState(Snapshot currentState) {\n bankState = currentState;\n stateRecorded = true;\n }", "title": "" }, { "docid": "de654e34ec2e09d49f8e63cf16ee3486", "score": "0.5819571", "text": "com.google.protobuf.ByteString\n getStateBytes();", "title": "" }, { "docid": "de654e34ec2e09d49f8e63cf16ee3486", "score": "0.5819571", "text": "com.google.protobuf.ByteString\n getStateBytes();", "title": "" }, { "docid": "de654e34ec2e09d49f8e63cf16ee3486", "score": "0.5819571", "text": "com.google.protobuf.ByteString\n getStateBytes();", "title": "" }, { "docid": "a322963aa4d3ee622948db914d41a12f", "score": "0.58029646", "text": "public Byte getState() {\n return state;\n }", "title": "" }, { "docid": "62a677240855725c27921f3be563775d", "score": "0.5772294", "text": "@Nonnull\n BackupResultStatus getStatus() {\n return _status;\n }", "title": "" }, { "docid": "325f2a67e8e71efc507c14e9681e272a", "score": "0.5758936", "text": "public String getoState() {\n return oState;\n }", "title": "" }, { "docid": "6c05b5870e2f628c303bf739fc25f665", "score": "0.5698219", "text": "public String Getstate()\n\t{\n\t\treturn m_state;\n\t}", "title": "" }, { "docid": "f2f019621bff45faf4bdef25b4b2dd94", "score": "0.5658056", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "f8021e476fe5f33a2124594c7d2a1d87", "score": "0.56520873", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "4f856f7e9163c74ae148dde39e212700", "score": "0.5622116", "text": "BackupProfile backupProfile();", "title": "" }, { "docid": "3f88bc51eef179763c01e9206ee93230", "score": "0.5617508", "text": "public String getState() {\n\t\treturn state;\n\t}", "title": "" }, { "docid": "3f88bc51eef179763c01e9206ee93230", "score": "0.5617508", "text": "public String getState() {\n\t\treturn state;\n\t}", "title": "" }, { "docid": "3f88bc51eef179763c01e9206ee93230", "score": "0.5617508", "text": "public String getState() {\n\t\treturn state;\n\t}", "title": "" }, { "docid": "3f88bc51eef179763c01e9206ee93230", "score": "0.5617508", "text": "public String getState() {\n\t\treturn state;\n\t}", "title": "" }, { "docid": "873a8d155363cab93e6cd06de5ad8fdf", "score": "0.56048447", "text": "public String getState() {\r\n return state;\r\n }", "title": "" }, { "docid": "873a8d155363cab93e6cd06de5ad8fdf", "score": "0.56048447", "text": "public String getState() {\r\n return state;\r\n }", "title": "" }, { "docid": "873a8d155363cab93e6cd06de5ad8fdf", "score": "0.56048447", "text": "public String getState() {\r\n return state;\r\n }", "title": "" }, { "docid": "873a8d155363cab93e6cd06de5ad8fdf", "score": "0.56048447", "text": "public String getState() {\r\n return state;\r\n }", "title": "" }, { "docid": "68cd6471e443683705baf3d717151df6", "score": "0.5599723", "text": "void backupNow();", "title": "" }, { "docid": "9ed2466b4c04b43b65a25eb9b534e7e0", "score": "0.5597464", "text": "public int backup(){\n boolean bool = true;\n try{\n String sql1 = \"DROP TABLE IF EXISTS far_customer_ledger_backup\";\n bool = rc.setQuerySQL(host, port, sql1);\n if (bool == false)\n return 0;\n String sql2 = \"CREATE TABLE far_customer_ledger_backup LIKE far_customer_ledger\";\n bool = rc.setQuerySQL(host, port, sql2);\n if (bool == false)\n return 0;\n String sql3 = \"INSERT far_customer_ledger_backup SELECT * FROM far_customer_ledger\";\n bool = rc.setQuerySQL(host, port, sql3);\n if (bool == false)\n return 0;\n \n String sql4 = \"UPDATE far_year_end_parameter \"\n + \"SET process_status = '1' \"\n + \"WHERE code = 'yep'\";\n rc.getQuerySQL(host, port, sql4);\n System.out.println(sql4);\n \n return 100;\n \n } catch (Exception e){\n e.printStackTrace();\n return 0;\n }\n }", "title": "" }, { "docid": "443d866904b4057a772c90996b8e0c54", "score": "0.5570404", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "443d866904b4057a772c90996b8e0c54", "score": "0.5570404", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "443d866904b4057a772c90996b8e0c54", "score": "0.5570404", "text": "public String getState() {\n return state;\n }", "title": "" }, { "docid": "67ee9a0cb7b85672b1b40a2f92b8a9ce", "score": "0.55622524", "text": "@java.lang.Override\n public com.google.type.TimeOfDay getBackupWindowStart() {\n return backupWindowStart_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : backupWindowStart_;\n }", "title": "" }, { "docid": "076c4b23ec7d57027fe97e214de20762", "score": "0.55502063", "text": "public KetchReplica.State getState() {\n\t\treturn state;\n\t}", "title": "" }, { "docid": "37e8498879b08d8011d3b07669ce713d", "score": "0.55448836", "text": "public String getState() {\n return this.state;\n }", "title": "" }, { "docid": "37e8498879b08d8011d3b07669ce713d", "score": "0.55448836", "text": "public String getState() {\n return this.state;\n }", "title": "" }, { "docid": "37e8498879b08d8011d3b07669ce713d", "score": "0.55448836", "text": "public String getState() {\n return this.state;\n }", "title": "" }, { "docid": "500c14ed46106841c27f23cf8201cd3d", "score": "0.55379975", "text": "public String getUpState() {\n\t\treturn upState;\n\t}", "title": "" }, { "docid": "8203ded29eca64c6a8e248a87bd004b9", "score": "0.5511493", "text": "public boolean savesState();", "title": "" }, { "docid": "dd31599f4bb92afedfcccda1713724ef", "score": "0.5505837", "text": "public abstract void backup();", "title": "" }, { "docid": "f4f91004653c9fa58f344200321ec9ca", "score": "0.55058074", "text": "public int getState(){\n return btState;\n }", "title": "" }, { "docid": "8237173319e1ca073e673c4e5cb4d6e6", "score": "0.55042017", "text": "public ComputeInstanceState state() {\n return this.state;\n }", "title": "" }, { "docid": "7d6dc0804bc2b6d70c617a83e3e505f6", "score": "0.55039585", "text": "public String getState() {\n\t\treturn strState;\n\t}", "title": "" }, { "docid": "c42222d9c27ffc4cdf5a0d774c4ec23a", "score": "0.54988205", "text": "public String getState() {\r\n\t\treturn this.state;\r\n\t}", "title": "" }, { "docid": "a7c0d3c9cafa8ec6c2be38e753809eb7", "score": "0.5484828", "text": "public com.google.protobuf.ByteString\n getStateBytes() {\n java.lang.Object ref = state_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n state_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a7c0d3c9cafa8ec6c2be38e753809eb7", "score": "0.5484828", "text": "public com.google.protobuf.ByteString\n getStateBytes() {\n java.lang.Object ref = state_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n state_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a7c0d3c9cafa8ec6c2be38e753809eb7", "score": "0.5484828", "text": "public com.google.protobuf.ByteString\n getStateBytes() {\n java.lang.Object ref = state_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n state_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "844e640bff755f6674534ebbc368d0d9", "score": "0.54778665", "text": "public int getBillState() {\n return billState;\n }", "title": "" }, { "docid": "de5f0495a6bd97fa148ab6f8f9b307b3", "score": "0.5475447", "text": "public State get_state() {\r\n return state;\r\n }", "title": "" }, { "docid": "3e28217f485729ebde995644f513e1fd", "score": "0.547243", "text": "public Integer getState() {\n return state;\n }", "title": "" }, { "docid": "3e28217f485729ebde995644f513e1fd", "score": "0.547243", "text": "public Integer getState() {\n return state;\n }", "title": "" }, { "docid": "3e28217f485729ebde995644f513e1fd", "score": "0.547243", "text": "public Integer getState() {\n return state;\n }", "title": "" }, { "docid": "a49acbcf6411097478acda558683d1d2", "score": "0.5470631", "text": "public String getState(){\n\t\treturn this.state;\n\t}", "title": "" }, { "docid": "77494f5fe3540827acd51bfb8a472310", "score": "0.5465391", "text": "public com.google.protobuf.ByteString\n getStateBytes() {\n java.lang.Object ref = state_;\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 state_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "77494f5fe3540827acd51bfb8a472310", "score": "0.5465391", "text": "public com.google.protobuf.ByteString\n getStateBytes() {\n java.lang.Object ref = state_;\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 state_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "77494f5fe3540827acd51bfb8a472310", "score": "0.5465391", "text": "public com.google.protobuf.ByteString\n getStateBytes() {\n java.lang.Object ref = state_;\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 state_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "dbd4739c4abf2db0d9d85c8583228723", "score": "0.5461744", "text": "public List<BackupSetInfo> listBackup() {\n checkOnStandby();\n log.info(\"Listing backup sets\");\n return listBackup(true);\n }", "title": "" }, { "docid": "65bcb8710824367949de124811d38ff2", "score": "0.54568875", "text": "public State state() {\n return this.state;\n }", "title": "" }, { "docid": "a882a3c15908b78f7179974299200562", "score": "0.5443081", "text": "public String getstate() {\n return (String)ensureVariableManager().getVariableValue(\"state\");\n }", "title": "" }, { "docid": "e2c836fc95cf107adcd92708fbee7bd0", "score": "0.54429555", "text": "public BackupSetInfo fullBackupSetInfo() {\n return this.fullBackupSetInfo;\n }", "title": "" }, { "docid": "b28084711ba305a10fb05e10b2b02f8f", "score": "0.5437998", "text": "public String getCurrentState() {\n return currentState;\n }", "title": "" }, { "docid": "a788927c68cffc4bdfaf55f7fa34cc38", "score": "0.5437008", "text": "public int getState() {\n return state;\n }", "title": "" }, { "docid": "a788927c68cffc4bdfaf55f7fa34cc38", "score": "0.5437008", "text": "public int getState() {\n return state;\n }", "title": "" }, { "docid": "b0cc1e6f376600ee1c56f2a549550ac2", "score": "0.5421407", "text": "@java.lang.Override\n public com.google.type.TimeOfDayOrBuilder getBackupWindowStartOrBuilder() {\n return getBackupWindowStart();\n }", "title": "" }, { "docid": "8e5051725640509468cf3c1f08f5cfb0", "score": "0.5405656", "text": "public java.lang.String getState() {\n return state;\n }", "title": "" }, { "docid": "51b6021ad81048b7bd95f879ed728dcf", "score": "0.5392909", "text": "public int getState() {\n return state_;\n }", "title": "" }, { "docid": "a703e3e73c5176055b8ce67c67fd3fd7", "score": "0.5391098", "text": "public java.lang.String getState() {\n return state;\n }", "title": "" }, { "docid": "50d6c5dd262775fcf20dca81ca6fc66b", "score": "0.53892434", "text": "public int getState() {\n return state_;\n }", "title": "" } ]
1dfcc8fd38d880e986a3d7ea194356bc
Gets a list of copies of all stored enchantable Items.
[ { "docid": "60bb964333db94d3148e1e37f4ef463f", "score": "0.8411991", "text": "public List<Item> getAllEnchantableCopy()\n {\n LinkedList<Item> all = new LinkedList<>();\n\n for(Item curr : enchantable)\n {\n all.add(curr.clone());\n }\n\n return all;\n }", "title": "" } ]
[ { "docid": "79109f7341ca535350cc0a743034dcfd", "score": "0.78147256", "text": "public List<Enchantment> getAllEnchantmentsCopy()\n {\n LinkedList<Enchantment> all = new LinkedList<>();\n\n for(Item curr : enchantments)\n {\n all.add((Enchantment)curr.clone());\n }\n\n return all;\n }", "title": "" }, { "docid": "bb6f04539b57286f423a5cc7da5fd8f3", "score": "0.7577195", "text": "public List<Item> getAllEnchantable()\n {\n return enchantable;\n }", "title": "" }, { "docid": "60c1392c408fcb74d89cc03120e59593", "score": "0.7420895", "text": "public List<Item> getAllEquippableCopy()\n {\n LinkedList<Item> all = new LinkedList<>();\n\n for(Item curr : equippable)\n {\n all.add(curr.clone());\n }\n\n return all;\n }", "title": "" }, { "docid": "951bedbc27205c1c522e27aaa9651827", "score": "0.7115058", "text": "public List<Item> getAllWearableCopy()\n {\n LinkedList<Item> all = new LinkedList<>();\n\n for(Item curr : wearable)\n {\n all.add(curr.clone());\n }\n\n return all;\n }", "title": "" }, { "docid": "66f01263b6d0f5faa041aabfe90497ef", "score": "0.6895261", "text": "public List<Item> getAllUsableCopy()\n {\n LinkedList<Item> all = new LinkedList<>();\n\n for(Item curr : usable)\n {\n all.add(curr.clone());\n }\n\n return all;\n }", "title": "" }, { "docid": "ed4731a353e8e7051b6ecbe1d8beb305", "score": "0.68439376", "text": "public List<String> getAllEnchantableNames()\n {\n LinkedList<String> all = new LinkedList<>();\n\n for(Item curr : enchantable)\n {\n all.add(curr.getName());\n }\n\n return all;\n }", "title": "" }, { "docid": "11257e0ffb3e9dbb66a3bbf841f0fafc", "score": "0.67077017", "text": "public List<Item> getAllCopy()\n {\n LinkedList<Item> all = new LinkedList<>();\n\n for(LinkedList<Item> list : hash.values())\n {\n for(Item curr : list)\n {\n all.add(curr.clone());\n }\n }\n\n return all;\n }", "title": "" }, { "docid": "66cf4a68a8c5667380cfe136d190c4ae", "score": "0.6633096", "text": "public static Collection<CustomEnchantment> getEnchantments() {\n return enchantments.values();\n }", "title": "" }, { "docid": "0dbbc8edbd6e48a3d51f56f0d685abcf", "score": "0.65330225", "text": "public List<Item> getItems() {\n Set<Item> keySet = cart.keySet();\n return new ArrayList<Item>(keySet);\n }", "title": "" }, { "docid": "8aa60fe3f99fb37383f456c0a6412d1f", "score": "0.6462008", "text": "public List<String> getAllEnchantableDescriptions()\n {\n LinkedList<String> all = new LinkedList<>();\n\n for(Item curr : enchantable)\n {\n all.add(curr.getDescription());\n }\n\n return all;\n }", "title": "" }, { "docid": "d2d87377d2ddbd06df0786da6c8877d1", "score": "0.6430549", "text": "public List<Enchantment> getAllEnchantments()\n {\n return enchantments;\n }", "title": "" }, { "docid": "cbf570feca791fb9f451fda062882198", "score": "0.62929034", "text": "public Item[] getItems()\r\n {\r\n Item [] itemsCopy = new Item [items.length];\r\n for (int i = 0; i < items.length; i++)\r\n {\r\n itemsCopy[i] = items[i];\r\n }\r\n return itemsCopy;\r\n }", "title": "" }, { "docid": "06ba78a5422e0ea756a3b68412b366e9", "score": "0.6291904", "text": "public ArrayList<BaseItem> getStoredItems()\r\n {\r\n return storedItems;\r\n }", "title": "" }, { "docid": "9e9f19b3af2b1b4e9da6b50c7d7d6214", "score": "0.62501025", "text": "@VisibleForTesting\n List<GoogleCloudStorageItemInfo> getAllItemsRaw() {\n return aggregateCacheValues(itemMap);\n }", "title": "" }, { "docid": "15d7b73d38c94e2fd12619a9cd0f6b0c", "score": "0.62440777", "text": "public List<Item> getAll()\n {\n LinkedList<Item> all = new LinkedList<>();\n\n for(LinkedList<Item> list : hash.values())\n {\n for(Item curr : list)\n {\n all.add(curr);\n }\n }\n\n return all;\n }", "title": "" }, { "docid": "2a920a474cafcef75385c0d80e15cb9b", "score": "0.6215104", "text": "public List<String> getAllEnchantmentsNames()\n {\n LinkedList<String> all = new LinkedList<>();\n\n for(Item curr : enchantments)\n {\n all.add(curr.getName());\n }\n\n return all;\n }", "title": "" }, { "docid": "a303a782c214785e42b4a9fc366c70cc", "score": "0.62015694", "text": "@ZenCodeType.Method\n @ZenCodeType.Getter(\"enchantments\")\n public Collection<Enchantment> getEnchantments() {\n \n return getRegistryObjects(BuiltInRegistries.ENCHANTMENT);\n }", "title": "" }, { "docid": "235d487df27514affaf31504e21478b0", "score": "0.61845374", "text": "public List<Item> getAllEquippable()\n {\n return equippable;\n }", "title": "" }, { "docid": "89c753e87a335e7abffc9e34837aba07", "score": "0.61617374", "text": "@Override\n\tpublic Item[] getAllItems() {\n\t\tItem[] itemsArr = new Item[items.size()];\n\n\t\t// put all items in the array and return it\n\t\treturn items.toArray(itemsArr);\n\t}", "title": "" }, { "docid": "cc142e21607d23c5d517dc62a4e81491", "score": "0.60804546", "text": "@Override\n\tpublic List<StockItem> getAllStockItem() {\n\t\treturn StockItemData.getInstance().getAllStockItem();\n\t}", "title": "" }, { "docid": "bbc6da05ce19e0f9dbea87d0a913b825", "score": "0.60763055", "text": "public List<Item> getAllItems() {\r\n\t\treturn mAllItems;\r\n\t}", "title": "" }, { "docid": "c32ad64087db9acc545ef4170f35f295", "score": "0.6049353", "text": "public ArrayList<Item> getItems() {\n DBConnection dbConnection = new DBConnection();\n ArrayList<Item> items = dbConnection.getItems();\n return items;\n }", "title": "" }, { "docid": "6a973e9955cec615a609e8a0839f4560", "score": "0.6041006", "text": "public List<Item> getItemsInInventory() {\n\n List<Item> items = new ArrayList<>();\n // Add the items in repo to the list using method reference\n itemRepository.findAll().forEach(items::add);\n return items;\n }", "title": "" }, { "docid": "ab9cf72efec5d5eac9a166e2e9925307", "score": "0.6035529", "text": "public List<Checkable<E>> getCheckableItems() {\n\t\treturn this.items;\n\t}", "title": "" }, { "docid": "8fd44badc22fcda9aece97cfd91c6756", "score": "0.60354465", "text": "public List<Item> getAllItems() {\n\t\tList<Item> items = em.createNamedQuery(\"Item.findAllItems\")\n\t\t\t\t.getResultList();\n\n\t\treturn items;\n\t}", "title": "" }, { "docid": "94a364aef0833695b0e2c9c5687f88fa", "score": "0.60107327", "text": "public List<String> getAllEnchantmentsDescriptions()\n {\n LinkedList<String> all = new LinkedList<>();\n\n for(Item curr : enchantments)\n {\n all.add(curr.getDescription());\n }\n\n return all;\n }", "title": "" }, { "docid": "b73d71f4a45eac16ff4891b7cdf9d620", "score": "0.5998961", "text": "@SuppressWarnings(\"unchecked\")\n public java.util.Collection<? extends Item<T>> allItems() {\n return computeResult(2);\n }", "title": "" }, { "docid": "ea509e23f4f2b0d862fd6bc16f1bdd14", "score": "0.5995441", "text": "public java.util.List<com.google.protobuf.ByteString>\n getItemsList() {\n return java.util.Collections.unmodifiableList(items_);\n }", "title": "" }, { "docid": "b645357f44e2872128cf6110fa3508d8", "score": "0.5980604", "text": "public List<Item> getAllUsable()\n {\n return usable;\n }", "title": "" }, { "docid": "e648bac510e189bbdc5be7d614c34e7a", "score": "0.5969511", "text": "public ArrayList<Copy> getCopies() {\r\n return copyList;\r\n }", "title": "" }, { "docid": "7751507e8b6b4fe29d22b8e4523f1b24", "score": "0.5967356", "text": "public List<Item> getAllWearable()\n {\n return wearable;\n }", "title": "" }, { "docid": "7f7b4a2d04b74dcccc7735b2a9cb6a27", "score": "0.5959607", "text": "public List<Item> winningItemListSet()\n {\n List<Item> itemList = new ArrayList<Item>();\n itemList.add(new Equipment(\"Jade Monkey\", 10, 7 ));\n itemList.add(new Equipment(\"Roadmap\", 10, 3 ));\n itemList.add(new Equipment(\"Ice Scraper\", 10, 12 ));\n return itemList;\n }", "title": "" }, { "docid": "b4df9b43698598bc916756e5174544a8", "score": "0.5937326", "text": "public static String[] getItems() {\n return items;\n }", "title": "" }, { "docid": "72818d7b744c3898a9f01be1bb507de1", "score": "0.5936749", "text": "public static ArrayList<Item> list() {\n\t\treturn items;\n\t}", "title": "" }, { "docid": "69550a93015b35ea2ade7d76d5013bf7", "score": "0.5925661", "text": "public String[] getItems()\n {\n String[] retval = new String[items.size()];\n items.copyInto(retval);\n\n return retval;\n }", "title": "" }, { "docid": "3a57897498d02b074ed8622d78e70ec5", "score": "0.59106743", "text": "public List<Item> getInventory() {\r\n return new ArrayList<Item>(mInventory);\r\n }", "title": "" }, { "docid": "bc4e83309d22ea6582eed7a754626e82", "score": "0.5891161", "text": "public List<Copy> getAllCopy();", "title": "" }, { "docid": "45d8b7ae687e2babd7dfa950c75b7863", "score": "0.5874015", "text": "public static Set<String> getEnchantmentNames() {\n return enchantments.keySet();\n }", "title": "" }, { "docid": "f9f8fd5c306ca9258d3568d74a3ea032", "score": "0.58682406", "text": "public List<String> getAllEquippableNames()\n {\n LinkedList<String> all = new LinkedList<>();\n\n for(Item curr : equippable)\n {\n all.add(curr.getName());\n }\n\n return all;\n }", "title": "" }, { "docid": "398c4a7df7bb76a2205278ee957c84dd", "score": "0.58671784", "text": "public List<Item> findAll() {\n return items;\n /*Item[] result = new Item[this.position];\n System.arraycopy(this.items, 0, result, 0, position);\n return result;*/\n }", "title": "" }, { "docid": "b013676b7bde72167c1ef6ce997ae619", "score": "0.58606184", "text": "public ArrayList<BaseItem> getEquippedItems()\r\n {\r\n return equippedItems;\r\n }", "title": "" }, { "docid": "c0221bdb5c7c15cdfb1c982829a4da05", "score": "0.58575016", "text": "public java.util.List<com.google.protobuf.ByteString>\n getItemsList() {\n return items_;\n }", "title": "" }, { "docid": "f24ccaea7f23fc295ec71cc0397c9565", "score": "0.58494353", "text": "public ArrayList<Item> getAvailableItems() {\n return availableItems;\n }", "title": "" }, { "docid": "f21072f7c99323c9d5b78a384297bb48", "score": "0.5792575", "text": "public TradableItem[] getItems()\n\t{\n\t\tTradableItem[] itemArray = new TradableItem[itemList.size()];\n\t\tint i = 0;\n\t\tfor(TradableItem tempItem : itemList)\n\t\t\titemArray[i++] = tempItem;\n\t\treturn itemArray;\n\t}", "title": "" }, { "docid": "217cc13de09ac47195aa487f3a9f46b5", "score": "0.5787442", "text": "public List<NBTItem> getItems() {\n\t\tList<NBTItem> list = new ArrayList<NBTItem>();\n\t\tfor (TagCompound tag : compound.getList(\"Items\", TagCompound.class)) {\n\t\t\tlist.add(new NBTItem(tag));\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "85214320af95628a2b44d5a303aef2b1", "score": "0.578083", "text": "public List<ItemsCustom> queryAllItems() {\n\t\treturn itemsMapper.selectAllItems();\n\t}", "title": "" }, { "docid": "526ea8218a7031a191c71010388973de", "score": "0.57768977", "text": "@ZenCodeType.Method\n @ZenCodeType.Getter(\"items\")\n public Collection<Item> getItems() {\n \n return getRegistryObjects(BuiltInRegistries.ITEM);\n }", "title": "" }, { "docid": "38fee440a9342fe5c472aeb1abe085d0", "score": "0.5764865", "text": "@Override\n public List<Item> getVendingMachineItems() throws VendingDaoPersistenceException {\n loadStock();\n return items;\n }", "title": "" }, { "docid": "0838f4382af36ad69607be9dbfb87860", "score": "0.57479936", "text": "public java.util.List<com.protocol.PBMessage.PBStorageItem> getItemsList() {\n return java.util.Collections.unmodifiableList(result.items_);\n }", "title": "" }, { "docid": "c7d6fe0a2249fd3cae8fc6151c5dd1f5", "score": "0.57462364", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic List<ItemEntity> cloneItems() {\n\t\treturn (List<ItemEntity>) items.clone();\n\t}", "title": "" }, { "docid": "95eb0bea9f0316d17c3f1df2a24ded18", "score": "0.57192403", "text": "public ShopItem[] availableItemsArray() {\n ShopItem[] retArr = new ShopItem[numItems];\r\n int index = 0;\r\n for (int i = 0; i < maxItems; i++) {\r\n if (table[i] != null && table[i].item.deleted == false) {\r\n retArr[index] = table[i];\r\n index++;\r\n }\r\n }\r\n return retArr;\r\n }", "title": "" }, { "docid": "934722588f54e94a2c6887b0bb5c062f", "score": "0.5714461", "text": "public Collection<Playable> getContents() {return new HashSet();}", "title": "" }, { "docid": "faf7de0042186d11db4638255f28e271", "score": "0.5706928", "text": "protected abstract List<ItemT> getAvailableItems();", "title": "" }, { "docid": "170fd3668c302a3707dc9f060e7020a2", "score": "0.56977034", "text": "public Iterator<Item> items() {\n return new ArrayList<>(items).iterator();\n }", "title": "" }, { "docid": "89ca1c1b07fa0bee618a66f88cc08454", "score": "0.5694303", "text": "public List<E> getItems() {\n\t\treturn this.items.parallelStream()\n\t\t\t\t.filter(i -> !(i instanceof SelectAll))\n\t\t\t\t.map(i -> i.getData()).collect(Collectors.toList());\n\t}", "title": "" }, { "docid": "928865dde088dbc1148716a17c02fbe1", "score": "0.5682776", "text": "public Iterator<Item> getAllItems();", "title": "" }, { "docid": "180ab38317ad3d741473524b1329f6b6", "score": "0.5678629", "text": "public java.util.List<Integer> getBlacklistedDispenserItems() {\n\t\treturn Settings.items;\n\t}", "title": "" }, { "docid": "6bc7032f833ff6686901113df125c13f", "score": "0.5677273", "text": "public ArrayList<Item> getItems() {\n return items;\n }", "title": "" }, { "docid": "9966e86fc361f8dc761d68dd1adc16c8", "score": "0.5674149", "text": "@Override\n public List<BucketlistListItem> getAllItems() {\n List<BucketlistListItem> retrievedItems;\n Query q = getSession().createQuery(\"from BucketlistListItem\");\n retrievedItems = (List<BucketlistListItem>) q.list();\n\n return retrievedItems;\n }", "title": "" }, { "docid": "5af93926239699d1fd1ee265dfcb26bb", "score": "0.56737244", "text": "List<CartesianCoordinates> getCartesBackupCopy(){\n final List<CartesianCoordinates> cartCopy = new ArrayList<>();\n cartesBackup.forEach((cartes) -> {\n cartCopy.add(cartes.clone());\n });\n \n return cartCopy;\n }", "title": "" }, { "docid": "8433fceb77b7d5901843675e1a14af57", "score": "0.5667235", "text": "protected Object[] getItems() {\n return new Object[] {\n };\n }", "title": "" }, { "docid": "e18ee4cfe0e58b3101906551928dbc9e", "score": "0.56573457", "text": "@SuppressWarnings(\"unchecked\")\n\t@Override\n\t@Transactional\n\tpublic List<Item> getAllItem() {\n\t\tList<Item> lstItem = sessionFactory.getCurrentSession().createCriteria(Item.class).list();\n\t\treturn lstItem;\n\t}", "title": "" }, { "docid": "a22d9bc3c520c0f6be80ede62e5c7b8d", "score": "0.56554043", "text": "public List<String> allWords() {\n return Collections.unmodifiableList(sourceWords);\n }", "title": "" }, { "docid": "9e3680a0fe66175843366319611c8b0b", "score": "0.5651503", "text": "public Map<StockItem, Integer> Items() {\n return Collections.unmodifiableMap(list);\n }", "title": "" }, { "docid": "ec9a917a49a412c13d6e30df040a3641", "score": "0.56443614", "text": "public List<Item> getItems() {\n return this.items;\n }", "title": "" }, { "docid": "6e5791e8917a00781aeb116076764291", "score": "0.56426615", "text": "public String getItems(){\r\n\t\treturn inv.getItems();\r\n\t}", "title": "" }, { "docid": "2bc030fb0d04addc84be6b83918912bf", "score": "0.5640104", "text": "public java.util.Set getItems () {\r\n\t\treturn items;\r\n\t}", "title": "" }, { "docid": "97c0e2fa28a1451a648d013381ee5e6c", "score": "0.563771", "text": "public List<Item> getItems() {\n return items;\n }", "title": "" }, { "docid": "a0f51e80c443a591affe16053c58e37c", "score": "0.5629089", "text": "public List<OPFItem> getItems()\n {\n return (items != null) ? items.getItems() : ImmutableList.<OPFItem> of();\n }", "title": "" }, { "docid": "b11024b9c518d58c2570f6673d2f8969", "score": "0.5624954", "text": "public Collection<String> listItems() {\n Collection<String> result = new ArrayList<String>();\n\n for (int i = 0; i < items.length(); ++i) {\n if (items.get(i) && itemsAvailable.getItem(i).getName().length() > 0)\n result.add(itemsAvailable.getItem(i).getName());\n }\n\n return result;\n }", "title": "" }, { "docid": "c4da9a01d1dd2ddc562ebf3bb4d9673e", "score": "0.5619896", "text": "public List<ShopItem> getItemList();", "title": "" }, { "docid": "fcb72871f82195e0f130af46ae2c3990", "score": "0.5619617", "text": "public Item[] toArray() {\n\t\treturn items;\n\t}", "title": "" }, { "docid": "1fa3768707516c813f70c19a58675ef7", "score": "0.5610909", "text": "public Item[] readItems() {\r\n\t\tArrayList<Item> list = new ArrayList<>();\r\n\t\ttry {\r\n\t\t\tSession session = HibernateUtil.getSessionFactory(test).openSession();\r\n\t\t\ttransaction = session.beginTransaction();\r\n\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\tList<Item> result = session.createQuery(\"from Item\").getResultList();\r\n\t\t\tfor(Item item : result) {\r\n\t\t\t\tlist.add(item);\r\n\t\t\t\tSystem.out.println(\"reading all: \" + item.getDescription());\r\n\t\t\t}\r\n\t\t\ttransaction.commit();\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (transaction != null) transaction.rollback();\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\tItem[] items = new Item[list.size()];\r\n\t\treturn (Item[])list.toArray(items);\r\n\t}", "title": "" }, { "docid": "790d9634ea99523a1df326d62d2cd5b1", "score": "0.55866504", "text": "public String[] getItems() {\n return items;\n }", "title": "" }, { "docid": "93408ca783798312ca838fecc1da5988", "score": "0.5584554", "text": "@Override\n\tpublic ImmutableList<List<IThEEssentiaGas>> essentiaGases()\n\t{\n\t\tif( this.essentiaGases.size() != GaseousEssentia.gasList.size() )\n\t\t{\n\t\t\t// Clear the list\n\t\t\tthis.essentiaGases.clear();\n\n\t\t\t// Get the iterator\n\t\t\tIterator<Entry<Aspect, GaseousEssentia>> iterator = GaseousEssentia.gasList.entrySet().iterator();\n\n\t\t\t// Add all gasses\n\t\t\twhile( iterator.hasNext() )\n\t\t\t{\n\t\t\t\tthis.essentiaGases.add( iterator.next().getValue() );\n\t\t\t}\n\t\t}\n\n\t\treturn ImmutableList.of( this.essentiaGases );\n\t}", "title": "" }, { "docid": "36fa03a0b79448c5ebe8727853c10681", "score": "0.55843985", "text": "public List<Bike> getDeletedBikes() {\n //Composition: Will return a copy.\n List<Bike> temp = (List) new ArrayList<Bike>();\n for (Bike b : deletedBikes) {\n temp.add(b.clone());\n }\n return temp;\n }", "title": "" }, { "docid": "466693b881f8496563efa7c6dee3f09b", "score": "0.5584185", "text": "public ArrayList<Item> getItems() {\n\t\treturn Items;\n\t}", "title": "" }, { "docid": "e4e0635a1a107f4551608bf9e6cff3de", "score": "0.55816233", "text": "public List<Item> getItems() {\n\t\treturn items;\n\t}", "title": "" }, { "docid": "71466bcecddbd80ff7580d4953e67904", "score": "0.55776966", "text": "public List<String> getAllEquippableDescriptions()\n {\n LinkedList<String> all = new LinkedList<>();\n\n for(Item curr : equippable)\n {\n all.add(curr.getDescription());\n }\n\n return all;\n }", "title": "" }, { "docid": "de0d77f6dc318a9ba544f812434f102d", "score": "0.55770016", "text": "public ArrayList<T> getItems() {\n return items;\n }", "title": "" }, { "docid": "a52bf300798f6dd3e1fa69383bb2ebc2", "score": "0.5575014", "text": "public ArrayList<String> getTreasureList() {\n ArrayList<String> treasureS = new ArrayList<>();\n for (Treasure t: this.treasures) {\n treasureS.add(t.getDescription());\n }\n return treasureS;\n}", "title": "" }, { "docid": "c6bb4434355ce0876b6a0f091235b861", "score": "0.5570016", "text": "public List<ItemStack> getIngredients() {\n/* 163 */ return Arrays.asList(this.items);\n/* */ }", "title": "" }, { "docid": "16766b5d046a647128585981515d4c3c", "score": "0.55691314", "text": "ArrayList<String> getItems() {\r\n\t\treturn items;\r\n\t}", "title": "" }, { "docid": "8c6dd280923e9140875b8908cbf40c86", "score": "0.5568845", "text": "public ArrayList<String> getAllVisibleKeys() {\n\n\t\tArrayList<String> keyList = new ArrayList<String>();\n\t\tSharedPreferences hidden_sounds = mCtx.getSharedPreferences(\"HiddenSounds\", Context.MODE_PRIVATE);\n\n\t\t// Collect all of the keys first\n\t\tfor(ArrayList<String> keys : mKeys.values()) {\n\t\t\tfor(String key : keys) {\n\t\t\t\tkeyList.add(key);\n\t\t\t}\n\t\t}\n\n\t\t// Remove any keys that are in the hidden sounds preferences and\n\t\t// return the ArrayList.\n\t\tfor(String key : hidden_sounds.getAll().keySet()) {\n\t\t\tkeyList.remove(key);\n\t\t}\n\t\treturn keyList;\n\t}", "title": "" }, { "docid": "1ba5dd3b3622dc869fb98ddf064ef94e", "score": "0.556884", "text": "public Collection<Item> getItems();", "title": "" }, { "docid": "f5e7c29a1b09028bcef4ba14a41e7048", "score": "0.55603", "text": "public List<String> getWithItems() {\n return withItems;\n }", "title": "" }, { "docid": "03221cfa084df9dbbaaeaf8686a5fdff", "score": "0.55587626", "text": "List<Item> getAll();", "title": "" }, { "docid": "2e6b2d5a0d81dc0e0ae63abfd7e1ca5b", "score": "0.5551991", "text": "public List<Item> itemListSet()\n {\n List<Item> itemList = new ArrayList<Item>();\n //food\n itemList.add(new Food(\"Apple\", 5, 5 ));\n itemList.add(new Food(\"Mango\", 10, 15 ));\n itemList.add(new Food(\"Durian\", 20, 35 ));\n itemList.add(new Food(\"Broccoli\",5, -10));\n //items\n itemList.add(new Equipment(\"Boots of Swiftness\", 20, 5 ));\n itemList.add(new Equipment(\"BF Sword\", 15, 25 ));\n //usable items\n itemList.add(new PortableSmellOScope(\"Portable Smell-O-Scope\", 25, 5 ));\n itemList.add(new ImprobDrive(\"Improbability Drive\", 10, Math.floor(-Math.PI*100)/100));\n itemList.add(new BenKenobi(\"BenKenobi\", 50, 20 ));\n //winning items\n itemList.add(new Equipment(\"Jade Monkey\", 10, 7 ));\n itemList.add(new Equipment(\"Roadmap\", 10, 3 ));\n itemList.add(new Equipment(\"Ice Scraper\", 10, 12 ));\n return itemList;\n }", "title": "" }, { "docid": "b396b05417808de02173f917a0b3d59c", "score": "0.5543805", "text": "List<CartesianCoordinates> getCartesCacheCopy(){\n final List<CartesianCoordinates> cartCopy = new ArrayList<>();\n cartesians.forEach((cartes) -> {\n cartCopy.add(cartes.clone());\n });\n \n return cartCopy;\n }", "title": "" }, { "docid": "7727c4da6c369ddf55c6f914c87272be", "score": "0.55247265", "text": "public String[] getItems() {\n return list.getItems();\n }", "title": "" }, { "docid": "31e78ec0bbde37516b22ded6be902361", "score": "0.5513711", "text": "public List<Item> getItems() {\n return itemList;\n }", "title": "" }, { "docid": "9d52c174cdfdd76b13da5d4c2cebc9d8", "score": "0.55099684", "text": "public List<String> getAllWearableNames()\n {\n LinkedList<String> all = new LinkedList<>();\n\n for(Item curr : wearable)\n {\n all.add(curr.getName());\n }\n\n return all;\n }", "title": "" }, { "docid": "1c196d5e6a75b2be91ef2195c9c3a9ff", "score": "0.5498822", "text": "public ArrayList<CourseworkItem> getAll() {\n return allCourseworkItems;\n }", "title": "" }, { "docid": "b6587609212c28fb3b8c28da8a696bb2", "score": "0.5495152", "text": "public Collection<GroundItem> getGroundItems() {\n\t\t synchronized (this) {\n\t\t\t return Collections.unmodifiableCollection(new LinkedList<GroundItem>(items));\n\t\t }\n\t }", "title": "" }, { "docid": "953961bd45bfd9c2d285d97f6cc57768", "score": "0.5482378", "text": "public void removeAllEnchantments();", "title": "" }, { "docid": "1b22eb236f9f889e54b10f58517e29cb", "score": "0.54808074", "text": "public List<ItemEntity> getItems() {\n\t\treturn items;\n\t}", "title": "" }, { "docid": "0728b770b518d6ef628ed7660b1e5e98", "score": "0.54781777", "text": "private List<Inventory> getInventoryEntries() {\n\n db = new DBHelper(this);\n final List<Inventory> entries = db.getAllInventories();\n final List<Inventory> entriesShopInv = new ArrayList<Inventory>();\n Iterator<Inventory> it = entries.iterator();\n while(it.hasNext()) {\n Inventory target = it.next();\n if(target.getQuantity() > 0) {\n entriesShopInv.add(target);\n }\n }\n /*\n // mock Entry for testing\n final List<Inventory> entries = new ArrayList<Inventory>();\n\n for(int i = 1; i < 50; i++) {\n entries.add(new Inventory(i,\"Test Entry \" + i, i, i));\n }\n */\n db.closeDB();\n return entriesShopInv;\n }", "title": "" }, { "docid": "d576f8fcf424ddd994218dbc2cb266cc", "score": "0.5469899", "text": "public List<IEquipment> getEquipment()\r\n {\r\n return Collections.unmodifiableList(equipment);\r\n }", "title": "" }, { "docid": "30a0be5d3ac27c85c668238aed74266d", "score": "0.5462801", "text": "public ArrayList<EquipableItem> getEquipableItem(){\n ArrayList<EquipableItem> list = new ArrayList<EquipableItem>();\n for(int i = 0; i < items.size() ; i++){\n // If item at index i is Equipable, add to new arraylist\n if(items.get(i) instanceof EquipableItem){\n EquipableItem newItem = (EquipableItem) items.get(i) ;\n list.add(newItem);\n }\n }\n return list; // Return list consisting only of Equipable Items\n }", "title": "" }, { "docid": "c197fbce9da04149a1385c0165e6bdb1", "score": "0.54621875", "text": "public List<Player> getDamages() {\n return new ArrayList<>(damages);\n }", "title": "" } ]
31c717dbeab8b83eac9242a432693974
Invokes the changeLogging in the ChangeLogProvider
[ { "docid": "c1cb6401fdeda4f675dc59720fa73518", "score": "0.6040486", "text": "public int doChangeLog(ChangeLogEntry cle, Session sesCurrent, Database ndbSource);", "title": "" } ]
[ { "docid": "ba787a0b8001b6650199372ca19520d8", "score": "0.5955942", "text": "private void log() {\n }", "title": "" }, { "docid": "92d4ae12ddd8aacc494f8f85110ab258", "score": "0.59287053", "text": "public void doLogging() {\n\t\tSystem.out.println(\"done logging..\");\n\t}", "title": "" }, { "docid": "f98c45bceba0075d869d8e6243299907", "score": "0.5903173", "text": "void setLoggingContext();", "title": "" }, { "docid": "f4f980b5bb20ea3bf1968b3bc2fb49b0", "score": "0.5897055", "text": "public void log() {\n\t\t\n\t}", "title": "" }, { "docid": "a950f0a923acc117c405d249ec31762f", "score": "0.571562", "text": "public abstract void doLogEntry(final LogEntry logEntry);", "title": "" }, { "docid": "6cc3e4c6fa016a976c6c5625e5c58084", "score": "0.561889", "text": "@Override\n\tprotected void configureLogging() {\n\t}", "title": "" }, { "docid": "bd81b7bdb955f6a333da3b875ea0da9c", "score": "0.56086636", "text": "@Override\n\tpublic void log(String arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "c85cf98160f659cec6a4fee4ed9e4161", "score": "0.54583234", "text": "void afterSwitchingOplog();", "title": "" }, { "docid": "54d63651791e278f0f31d5bc2438b2b6", "score": "0.54388064", "text": "public static void setupLogging() {\n\t}", "title": "" }, { "docid": "04b298e62903716557acb8ebda0e3155", "score": "0.5389116", "text": "@Override\n\tprotected boolean thisFilterChangesLog() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0f7584c52fd8a359eabf1520dbc43ffb", "score": "0.5379302", "text": "@Override\r\n \t\tpublic void log(String info) {\n \t\t\tSystem.out.println(\"Logging: \" + info);\r\n \t\t}", "title": "" }, { "docid": "1aa933c613ffe9f5998a4882e281a094", "score": "0.53702384", "text": "@Override\n public void onLog(String txt) {\n }", "title": "" }, { "docid": "887634ab855c592e5a916f9241caf0a3", "score": "0.53624207", "text": "@Override\n\tpublic void OnLogInfo(String arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "88704d13873ee4f4396852a581b4fed0", "score": "0.5360147", "text": "EventLogger replaceEventLogger(EventLogger newLogger);", "title": "" }, { "docid": "3e97a72c6e5eeae56c51a7d45b2231df", "score": "0.53456235", "text": "public void log(String logMessage);", "title": "" }, { "docid": "ddd1d22ae047a4843536a98bd66fbf37", "score": "0.5326351", "text": "protected void newChange(String change) {\n\t\tTimestamp currTime = new Timestamp(System.currentTimeMillis());\n\t\twhile (log.containsKey(currTime)) {\n\t\t\tcurrTime.setTime(currTime.getTime() + 1);\n\t\t}\n\t\tlog.put(currTime, change);\n\t\tredoLog = new TreeMap<Timestamp, String>();\n\t}", "title": "" }, { "docid": "a36086ecb5945c61f2933c13786f9224", "score": "0.52998537", "text": "public abstract void log(int severity, String s);", "title": "" }, { "docid": "389b4e474f93722798881f30f129270d", "score": "0.52471673", "text": "@Override\n\tpublic void log(String msg) {\n\t\tsuper.log(msg);\n\t}", "title": "" }, { "docid": "59552a99c40d94054da261566467f734", "score": "0.5239751", "text": "protected void logFlush() {\n }", "title": "" }, { "docid": "0a323e70dfb302d8eaeaeffd9a046830", "score": "0.52328634", "text": "protected final void updateLogConfig(CommandLine cl) {\n\t\tString logFile = cl.getOptionValue(OPT_LOG_FILE.getLongOpt(), null);\n\t\tString logLevel = cl.getOptionValue(OPT_LOG_LEVEL.getLongOpt(), null);\n\t\tif (logFile != null || logLevel != null) {\n\t\t\tlogFile = logFile != null ? logFile : getDefaultLogFileName();\n\t\t\tlogLevel = logLevel != null ? logLevel : DEFAULT_LOG_LEVEL;\n\t\t\tLoggerContext context = (LoggerContext) LogManager.getContext(false);\n\t\t Configuration configuration = context.getConfiguration();\n\t\t FileAppender appender = FileAppender.newBuilder()\n\t\t \t\t.withName(\"File\")\n\t\t \t\t.withFileName(logFile)\n\t\t \t\t.withLayout(PatternLayout.newBuilder().withPattern(PatternLayout.SIMPLE_CONVERSION_PATTERN).build())\n\t\t \t\t.withAppend(false)\n\t\t \t\t.build();\n\t\t appender.start();\n\t\t configuration.getRootLogger().addAppender(appender, Level.getLevel(logLevel), null);\n\t\t configuration.getRootLogger().setLevel(Level.getLevel(logLevel));\n\t\t context.updateLoggers();\n\t\t}\n\t}", "title": "" }, { "docid": "9b533f523fc80654bed97ff7ce034ba0", "score": "0.522476", "text": "public void invoke() {\n\t\trecordAndInvokeCommon(true);\n\t}", "title": "" }, { "docid": "247995914f9c95b6292bc17e552e9941", "score": "0.5202649", "text": "void SetLogCallback(Pointer callback);", "title": "" }, { "docid": "247995914f9c95b6292bc17e552e9941", "score": "0.5202649", "text": "void SetLogCallback(Pointer callback);", "title": "" }, { "docid": "f4ce62fe98d8c61f5801a185b581dfb5", "score": "0.5189518", "text": "@Override\n public void update(final Observable observable, final Object argument)\n {\n this.log.insert(((SimulationState) observable).getLog(), 0);\n }", "title": "" }, { "docid": "174c43d766d56779722f15e5dfa86f9a", "score": "0.51455605", "text": "void logProgress() {\r\n // If not logging, return right away\r\n if (LOG.isInfoEnabled()) {\r\n doLogProgress();\r\n }\r\n }", "title": "" }, { "docid": "d0a1f136b135efa4f40b796767e26ccd", "score": "0.51305515", "text": "public void updateLogData(LogDataBE logData);", "title": "" }, { "docid": "0773cfd8ebeec20c0d7fc122b899323d", "score": "0.51080686", "text": "public AuditTrailLogChange(LogEntryDAO entry) {\n this.entry = entry;\n }", "title": "" }, { "docid": "38d8ad4a2cc30f5a7e9e30231fb409bf", "score": "0.51075584", "text": "private void callLogUpdateOperator() {\n\t\tMessenger messenger = new Messenger(handler);\n\t\tintent.putExtra(\"MESSENGER\", messenger);\n\t\tintent.putExtra(\"callLog1\", callLog1);\n\t\tintent.putExtra(\"callLog2\", callLog2);\n\t\tintent.putExtra(\"callLog3\", callLog3);\n\t\tintent.putExtra(\"callLog4\", callLog4);\n\t\tintent.putExtra(\"callLog\", callLog);\n\t\tintent.putExtra(\"ClassPath\",\n\t\t\t\tcontext.getPackageName() + \".\" + activity.getLocalClassName());\n\t\tintent.putExtra(\"tariffStats\", selectedTariffStats);\n\t\tintent.putExtra(\"smsBillz\", smsBillz);\n\t\tif(myTariffStats != null){\n\t\t\tintent.putExtra(\"myTariffStats\", myTariffStats);\n\t\t\tintent.putExtra(\"mySmsBillz\", mySmsBillz);\n\t\t}\n\t\tcontext.startService(intent);\n\t\t// tvInputOperator.setText(\"FTW\");\n\n\t\t// soapCheckOperator();\n\t}", "title": "" }, { "docid": "5ac5cc4bd70047b8ffe25bf8abc3b61d", "score": "0.5104077", "text": "void beforeSwitchingOplog();", "title": "" }, { "docid": "7e7d4c633162eca0719e9e3a5e37cb50", "score": "0.50801295", "text": "@Override\n\tprotected void initial() throws SiDCException, Exception {\n\t\tLogAction.getInstance().initial(logger, this.getClass().getCanonicalName());\n\t}", "title": "" }, { "docid": "33a987211053ac58a62f9f7594c2bd13", "score": "0.5074832", "text": "protected void delegatedLog(String logString) {\n }", "title": "" }, { "docid": "6ca98c06c133eb391652ce3507d66297", "score": "0.5063891", "text": "private void logChange(String oldName, String newName) {\n String timestamp = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").format(new Date());\n String message = timestamp + \" \" + oldName + \" changed to \" + newName;\n nameLog.addLog(message);\n\n message = timestamp + \">\" + name;\n for (Tag tag : tags) {\n message = message.concat(\">\" + tag.getContent() + \",\" + tag.getX() + \",\" + tag.getY());\n }\n tagLog.addLog(message);\n }", "title": "" }, { "docid": "785e410219197096ee5d2989d09ee563", "score": "0.5057577", "text": "@AroundInvoke\r\n public Object log(InvocationContext invocationContext) throws Exception {\n logger.log(Level.INFO, \"Method \" + invocationContext.getMethod().getName() + \" invoked.\");\r\n return invocationContext.proceed();\r\n }", "title": "" }, { "docid": "b4246a81ae5f534b60472d5c6aa8fcea", "score": "0.505514", "text": "public abstract void log(Object msg);", "title": "" }, { "docid": "ea0038458226aa633271673eb9d9521c", "score": "0.50495803", "text": "void addToLog(String command);", "title": "" }, { "docid": "773edc5bc454abdce0a963b361cfed7c", "score": "0.50387067", "text": "public void onLogFinished() {\n\n\t}", "title": "" }, { "docid": "4b205833e6a130154c4ffacaa41513bd", "score": "0.5033585", "text": "public void logChange(int row, int column, Integer newVal)\n\t{\n\t\tLog newLog = null;\n\t\t\n\t\tif(this.staticVals[row][column]) {/* do nothing if original data is changed. this happens at start. */}\n\t\telse if(newVal == null && hasVal[row][column])\n\t\t{// Check if deletion occurred but do not log deletions of deletions\n\t\t\tnewLog = new Log(column, row, newVal, Modification.DELETE);\n\t\t\thasVal[row][column] = false;\n\t\t} /* end if */\n\t\telse if(hasVal[row][column])\n\t\t{// check if modification was made.\n\t\t\tnewLog = new Log(column, row, newVal, Modification.MODIFY);\n\t\t} /* end else if */\n\t\telse if(newVal != null)\n\t\t{// an addition has occurred (unless null. do not log random deletions)\n\t\t\tnewLog = new Log(column, row, newVal, Modification.ADD);\n\t\t\thasVal[row][column] = true;\n\t\t} /* end else */\n\t\t\t\n\t\tif(newLog != null) this.historyLog.add(newLog);\n\t}", "title": "" }, { "docid": "d6d4511ce86fe2bac611d68f3ac04e2a", "score": "0.50317043", "text": "public void setLogging( final boolean logging )\n \t{\n \t\tif ( this.logging != logging )\n \t\t{\n \t\t\tthis.logging = logging;\n \t\t\tfireSettingChanged( \"logging\" );\n \t\t}\n \t}", "title": "" }, { "docid": "0d166044f3d2d710230de80c03dfbae5", "score": "0.50251997", "text": "@Override\n\tprotected void setLogger() {\n\t\t\n\t}", "title": "" }, { "docid": "6e254ac9ea03327ce405605a08397eac", "score": "0.5022188", "text": "void flushLogs ();", "title": "" }, { "docid": "7d2d09c0f98b851c7954416eccefbe4b", "score": "0.50169295", "text": "public void tron(Logger log) {\n \t}", "title": "" }, { "docid": "e6e9503de3001c8ee864000f6bfed499", "score": "0.5012826", "text": "public void resetChangeLog() {\n changeLog = null;\n }", "title": "" }, { "docid": "b1c81f2ac0580f6da2e48d4165c106cc", "score": "0.5012437", "text": "public void logCourses() {\n\n }", "title": "" }, { "docid": "66793741b6b47557a1607e67d0abced7", "score": "0.5005104", "text": "@Override\n\tpublic void log(String string, String string2) {\n\t\tSystem.out.println(\"journalisation du LOG\");\n\t\t\n\t}", "title": "" }, { "docid": "97e75b8b3545214cc5c972202b3eb7be", "score": "0.5002287", "text": "public void incrementLog()\n\t{/* Add the last change */\n\t\tthis.incrementLog += this.logToString(this.historyLog.get(this.historyLog.size()-1));\n\t}", "title": "" }, { "docid": "d8c4ec0d56408093aafd7f6f11c2bb81", "score": "0.4996433", "text": "@Override\n public void logger(String username, String classify, String type, String log) {\n\n }", "title": "" }, { "docid": "a0506813c34b176a2b96c60e611a6609", "score": "0.4991559", "text": "@Override\r\n\tprotected void setLogger() {\n\t\t\r\n\t}", "title": "" }, { "docid": "506018831db45f7b782e16eea66af1ca", "score": "0.49647644", "text": "public void doMyBidding() {\n _adapter.setSevereLevel(LEVEL_ONE);\n\n String levels = this.getClass().getName();\n\n // will used the default Level\n _adapter.log(levels, \"Using the customized LogLevels\");\n\n _adapter.log(levels, LEVEL_FOUR, \"This is a test\");\n _adapter.log(levels, LEVEL_THREE, \"Hmmm fobidden doughnut\");\n _adapter.log(levels, LEVEL_ONE, \"Danger Danger Will Robinson\",\n new RuntimeException(\"DANGER\"), \"32\");\n _adapter.log(levels, LEVEL_TWO, \"Exit stage right->\");\n _adapter.log(levels, LEVEL_FOUR, \"What's up Doc?\",\n new NullPointerException(\"Unfortunate exception\"));\n\n }", "title": "" }, { "docid": "483d715dd82ec08e596b25ad3717cbfc", "score": "0.495394", "text": "public abstract void setLogLevel(LogLevel logLevel);", "title": "" }, { "docid": "7e0acd30a9db8c19f5ab1e9619777315", "score": "0.4940411", "text": "public void setLog(Log log)\r\n\t{\r\n\t\tthis.proc.setLog(log);\r\n\t}", "title": "" }, { "docid": "279147984fc4fd543df9610fc55148ad", "score": "0.49357495", "text": "private void logMessageHandler(String log) {\n\t\tStringBuilder toLogIntense = new StringBuilder()\n\t\t\t.append(log);\n\t\tif(AbstractCVM.DEBUG_MODE.contains(CVMMyDebug.INTENSE_LOGGING)) {\n\t\t\tlogMessage(toLogIntense.toString());\n\t\t} else if (AbstractCVM.DEBUG_MODE.contains(CVMMyDebug.SIMPLE_LOGGING)) {\n\t\t\tlogMessage(log);\n\t\t}\n\t\tif (AbstractCVM.DEBUG_MODE.contains(CVMMyDebug.PRINTING_INTENSE)) {\n\t\t\tAbstractCVM.getCVM().logDebug(CVMMyDebug.PRINTING_INTENSE, toLogIntense.toString());\n\t\t}\n\t}", "title": "" }, { "docid": "4fafb8958e71bd666c6088b6dae54de6", "score": "0.49353307", "text": "public void log(int arg0, String arg1) {\n \r\n }", "title": "" }, { "docid": "63b5e43638966f9296ce9aa3cf618a81", "score": "0.49325013", "text": "public void log(String msg) {\n controller.log(msg);\n }", "title": "" }, { "docid": "93698c33c19ceb04532055a99ac5ad10", "score": "0.4932223", "text": "@Override\n public void setupLogging() throws Exception {\n// Logger.getLogger(\"de.uniluebeck.itm.ncoap.communication.dispatching.server.WebserviceManager\")\n// .setLevel(Level.INFO);\n// Logger.getLogger(\"de.uniluebeck.itm.ncoap.application.server.CoapServerApplication\")\n// .setLevel(Level.INFO);\n// Logger.getLogger(\"de.uniluebeck.itm.ncoap.application.server.webservice.ObservableWebservice\")\n// .setLevel(Level.DEBUG);\n// Logger.getLogger(\"de.uniluebeck.itm.ncoap.communication.observing.client.ClientObservationHandler\")\n// .setLevel(Level.INFO);\n Logger.getRootLogger().setLevel(Level.DEBUG);\n }", "title": "" }, { "docid": "cb8f92f7044764c58186d188cfac4483", "score": "0.49275306", "text": "@Override\n public void run() {\n LOGGER.trace(\"Method 'run' invoked.\");\n }", "title": "" }, { "docid": "7ed2f7bca627489cc415bfb74f2b3444", "score": "0.49232045", "text": "public void log() {\n HashMap<String, Commit> commitMap = Gitlet.loadData().getCommits();\n for (String item : getCommitHistory()) {\n System.out.println(\"====\");\n System.out.println(\"Commit \" + item + \".\");\n System.out.println(commitMap.get(item).getTime());\n System.out.println(commitMap.get(item).getMessage());\n System.out.println();\n }\n }", "title": "" }, { "docid": "9bc5ea72ec4d6b6b0fb9a277fb252ad4", "score": "0.49221647", "text": "public void setLogLevel(LogLevel logLevel);", "title": "" }, { "docid": "eded7f0b4328e793a4a5bd882f25842d", "score": "0.49072772", "text": "public void testSimpleLogOfMethodCall()\n throws PicoException, PicoInitializationException {\n\n AspectSystem aspectSystem = new AspectSystem();\n aspectSystem.addAspect(new InterceptorAspect(new MethodInterceptor() {\n public Object invoke(Invocation invocation) throws Throwable {\n log.append(invocation.getMethod().getName() + \" \");\n return invocation.invokeNext();\n }\n }));\n\n MutablePicoContainer nanningEnabledPicoContainer = new DefaultPicoContainer(new NanningComponentAdapterFactory(aspectSystem, new DefaultComponentAdapterFactory()));\n nanningEnabledPicoContainer.registerComponentImplementation(Wilma.class, WilmaImpl.class);\n nanningEnabledPicoContainer.registerComponentImplementation(FredImpl.class);\n\n assertEquals(\"\", log.toString());\n\n nanningEnabledPicoContainer.getComponentInstances();\n\n // fred says hello to wilma, even the interceptor knows\n assertEquals(\"hello \", log.toString());\n\n Wilma wilma = (Wilma) nanningEnabledPicoContainer.getComponentInstance(Wilma.class);\n\n assertNotNull(wilma);\n\n wilma.hello();\n\n // another entry in the log\n assertEquals(\"hello hello \", log.toString());\n\n }", "title": "" }, { "docid": "ed1fac97cd8ea944f03fbcecd99c73f1", "score": "0.49048167", "text": "private void test() {\n logger.info(\"Be a better man...\");\n }", "title": "" }, { "docid": "88cadf4b4727757cd080587b8ef3461a", "score": "0.4898827", "text": "void logInfo(String msg);", "title": "" }, { "docid": "91af9600713a47bfdd959fc960ea210c", "score": "0.4895763", "text": "@Override\n\tpublic void onLogStreamOpened( )\n\t{\n\t}", "title": "" }, { "docid": "08f11f1499ae1d5fd6f74c40728ae049", "score": "0.48933396", "text": "private void logEvent() {\n StringBuffer logMessage = new StringBuffer(StringUtils.substringAfterLast(this.getClass().getName(), \".\"));\n logMessage.append(\" with \");\n\n // vary logging detail as needed\n if (cashControlDetail == null) {\n logMessage.append(\"null cashControlDetail\");\n }\n else {\n logMessage.append(\" cashControlDetail# \");\n logMessage.append(cashControlDetail.getDocumentNumber());\n }\n\n LOG.debug(logMessage);\n }", "title": "" }, { "docid": "87812be69bcb7eb3b876a1da8282dd17", "score": "0.48901334", "text": "public void configurationActived(TetradLoggerEvent evt);", "title": "" }, { "docid": "db8b3c9e8f4bbb7e62859623b7060e89", "score": "0.4888393", "text": "public void log(String line)//Me8odos katagrafis\n\t{\n\t\tsuper.log(line);\n\t\tlatestLog=line;\n\t\tlogs.add(latestLog);\n\t\tif(logViewer!=null)\n\t\t{\n\t\t\tlogViewer.setText(logViewer.getText()+latestLog+\"<br>\");\n\t\t}\n\t}", "title": "" }, { "docid": "e32037d6d98d1c5ed4a36d44e05c9763", "score": "0.48864818", "text": "public void process() {\n\n DeploymentMonitor.getInstance().waitUntilInitDeployComplete();\n while (!monitor.isTerminated()) {\n try {\n SemanticUtil.getInstance(AuditTrailLoggerImpl.class);\n break;\n } catch (Exception ex) {\n log.info(\"Failed to instanciate the audit trail logger : \" + ex.getMessage(),ex);\n try {\n Thread.sleep(60 * 1000);\n } catch (InterruptedException ex1) {\n // ignore\n }\n }\n }\n \n try {\n ChangeLog.init(AuditTrailLoggerImpl.class);\n } catch (Exception ex) {\n log.error(\"Failed to start the request factory : \" + ex.getMessage(),ex);\n }\n\n // register the audit trail logger with the service broker\n try {\n ServiceBroker broker = (ServiceBroker)ConnectionManager.getInstance().\n getConnection(ServiceBroker.class, \"ServiceBroker\");\n List<String> services = new ArrayList<String>();\n services.add(Constants.SERVICE);\n broker.registerService(\"audit/AuditTrailLogger\", services);\n } catch (Exception ex) {\n log.error(\"Failed to register the entries with the service broker : \" +\n ex.getMessage(),ex);\n }\n\n // wait for shut down\n while (!monitor.isTerminated()) {\n try {\n ChangeLog.getInstance().start();\n } catch (Exception ex) {\n log.error(\"Failed to process : \" + ex.getMessage(),ex);\n }\n monitor.monitor();\n }\n \n // close down the semantic util\n try {\n SemanticUtil.closeInstance(AuditTrailLoggerImpl.class);\n } catch (Exception ex) {\n log.error(\"Failed to shut down the audit trail logger : \" + \n ex.getMessage(),ex);\n }\n }", "title": "" }, { "docid": "2ff66fef8892b7a8255bdc9ba18d052a", "score": "0.4886038", "text": "protected void logUsage(AgaveLogServiceClient.ActivityKeys activityKey) {\n\t\tAgaveLogServiceClient.log(getServiceKey().name(), activityKey.name(),\n\t\t\t\tgetAuthenticatedUsername(), \"\", org.restlet.Request\n\t\t\t\t\t\t.getCurrent().getClientInfo().getUpstreamAddress());\n\t}", "title": "" }, { "docid": "8c3ef57a6f11eaa3fb50533080b420ea", "score": "0.48824722", "text": "public static void log(String where, Level level, String msg) {\n if (initPending) {\n init();\n }\n if ( isLoggingEnabled()) getLogger(where).log(level, msg);\n }", "title": "" }, { "docid": "f8ae963350e3e80691a31ec68c53cda9", "score": "0.487927", "text": "@Override public void\r\n execute() throws BuildException {\r\n try {\r\n\r\n for (LoggerElement loggerElement : this.loggerElements) {\r\n List<String> loggerNames = loggerElement.names;\r\n if (loggerNames.isEmpty()) loggerNames = Collections.singletonList(\"\");\r\n for (String name : loggerNames) {\r\n Logger logger = Logger.getLogger(name);\r\n\r\n if (loggerElement.clearFilter) logger.setFilter(null);\r\n if (loggerElement.filter != null) logger.setFilter(loggerElement.filter);\r\n\r\n if (loggerElement.clearLevel) logger.setLevel(null);\r\n if (loggerElement.level != null) logger.setLevel(loggerElement.level);\r\n\r\n if (loggerElement.useParentHandlers != null) {\r\n logger.setUseParentHandlers(loggerElement.useParentHandlers);\r\n }\r\n\r\n if (loggerElement.clearHandlers) {\r\n for (Handler handler : logger.getHandlers()) logger.removeHandler(handler);\r\n }\r\n for (Handler handler : loggerElement.handlers) logger.addHandler(handler);\r\n }\r\n }\r\n } catch (Exception e) {\r\n throw new BuildException(e);\r\n }\r\n }", "title": "" }, { "docid": "57bed85caae517b2e93e7e97b88a6a17", "score": "0.48575523", "text": "public void enableLogging( final Logger logger )\n {\n super.enableLogging( logger );\n setupLogger( m_lifecycleHelper );\n }", "title": "" }, { "docid": "084364af0a546889562707cbde8d91f8", "score": "0.48567247", "text": "public void applyChanges() throws ChangeException {\n try {\n Session session = SemanticUtil.getInstance(AuditTrailLoggerImpl.class).getSession(\n SessionManager.SessionLock.WRITE_LOCK);\n session.persist(entry);\n } catch (Exception ex) {\n log.error(\"Failed to commit the change to the log because : \" + \n ex.getMessage(),ex);\n }\n }", "title": "" }, { "docid": "bcaa5ea5bbcaf24d23ee2b32be324508", "score": "0.4853601", "text": "private void logAction(Action action) {\n }", "title": "" }, { "docid": "28204be7475092f8936b5a5eb108f7c8", "score": "0.48504806", "text": "void log(String message, int loglevel);", "title": "" }, { "docid": "9f6eb150240adbd76ee4b31c06a05e72", "score": "0.48484", "text": "Log getLogger();", "title": "" }, { "docid": "0463d83682114445e864aba0d4e9bfa0", "score": "0.48393017", "text": "public void printLog();", "title": "" }, { "docid": "88f4d69b8564fb79bb96f81ea81df8ad", "score": "0.48373884", "text": "@Override\r\n\tpublic void run() {\n\t\tlogger.debug(\"this is debug message\");\r\n\t logger.info(\"this is info message\");\r\n\t\tlogger.error(\"this is error message\");\r\n\t}", "title": "" }, { "docid": "49edf7393a36e9241b2bc2719d36a228", "score": "0.48250058", "text": "protected void _log(String message) {\n _log.logTime(message);\n }", "title": "" }, { "docid": "6ffda1b2509429f6111c2d7681318aef", "score": "0.48228085", "text": "@Override\n public void performAdditionalChanges() {\n }", "title": "" }, { "docid": "fa270d902b6a6bd4bd80c28950ceae16", "score": "0.48223704", "text": "void setLogging(boolean enabled);", "title": "" }, { "docid": "ca67e658668653f2ab3e3134b7c86358", "score": "0.4812516", "text": "public LogApp() {\r\n runLog();\r\n }", "title": "" }, { "docid": "22acf3554f43c78a46f281b0df207200", "score": "0.4807057", "text": "private void toggleLogging()\n {\n new ToggleLoggingTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n\n if (networkSurveyService != null && networkSurveyService.isLoggingEnabled())\n {\n networkSurveyService.initializePing();\n }\n }", "title": "" }, { "docid": "6fe60774dffeb5354ac3c74e3a64d228", "score": "0.47957075", "text": "private void log(String string) {\n\t\t\r\n\t}", "title": "" }, { "docid": "d69c56604341c205ac527efbe5a92c36", "score": "0.4794849", "text": "public void log(String data) {\n log.info(data);\n Reporter.log(data + \"\\n\");\n }", "title": "" }, { "docid": "abc679ebe6af08fde322f6074d691961", "score": "0.47886565", "text": "@Override\n protected void execute() {\n String message = String.format(\"%tR: %s\", new Date(), getMessage());\n switch (getMessage().toLowerCase(Locale.ROOT)) {\n case \"trace\":\n Logger.Trace(message);\n break;\n case \"error\":\n Logger.Error(message);\n break;\n case \"warn\":\n Logger.Warn(message);\n break;\n case \"info\":\n Logger.Info(message);\n break;\n case \"debug\":\n default:\n Logger.Debug(message);\n break;\n }\n\n _finished = true;\n }", "title": "" }, { "docid": "4b767afe849ccf6051c9b656f69eaf71", "score": "0.4788646", "text": "void setLogMode(int value);", "title": "" }, { "docid": "7b20bd012ed4a41970bb4927b30dda01", "score": "0.47835362", "text": "@Override\n public void update(boolean synchronous) {\n if (logConfig == null) {\n writeLogEntry(baseStatsProvider.getTime(), coreDataTable.getRow(nextDataRow));\n for (DataLoggingMutator plugin : getDataLoggingPlugins()) {\n plugin.logData(baseStatsProvider);\n }\n } else {\n if (logConfig.logCore) writeLogEntry(baseStatsProvider.getTime(), coreDataTable.getRow(nextDataRow));\n for (DataLoggingMutator plugin : getEnabledMutators()) {\n plugin.logData(baseStatsProvider);\n }\n }\n nextDataRow++;\n }", "title": "" }, { "docid": "7294886ece56685e76b95721c395f1ac", "score": "0.47834998", "text": "void log(Level lvl, String lineToLog);", "title": "" }, { "docid": "af9fac9787a52f13c833a8d4c71511f6", "score": "0.47817686", "text": "@Override\n\tpublic void log(ModuleID moduleIdentifier, LogLevel level, String message) {\n\n\t}", "title": "" }, { "docid": "4cc94435eed70ab0eabf299455618941", "score": "0.47775397", "text": "private void log(String message) {\r\n\t\tif (ParallelCoordinatesChartFrameClusteringMenu.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9b5e777b238697fb1376fe200c3a2a4b", "score": "0.47591507", "text": "private void log(LogLevel eventLevel, String message, Object param) {\n switch (eventLevel) {\n case TRACE : logger.trace(message, param); return;\n case DEBUG : logger.debug(message, param); return;\n case INFO : logger.info(message, param); return;\n case WARN : logger.warn(message, param); return;\n case ERROR : logger.error(message, param); return;\n default : return;\n }\n }", "title": "" }, { "docid": "d30c61d26daba7a162e549e8c90a6ba1", "score": "0.4755967", "text": "@Override\n public void onLogMessage(int i, String s, String s1) {\n switch (i) {\n case Log.DEBUG:\n Log.d(s, s1);\n break;\n case Log.ERROR:\n Log.e(s, s1);\n break;\n case Log.INFO:\n Log.i(s, s1);\n break;\n case Log.VERBOSE:\n Log.v(s, s1);\n break;\n case Log.WARN:\n Log.w(s, s1);\n break;\n }\n }", "title": "" }, { "docid": "550c940f4f3ea2fa4d0c872e091a08d5", "score": "0.47537637", "text": "void triggerFilterOn() {\n }", "title": "" }, { "docid": "bb1380df8f3b3a55748b68804468f0f1", "score": "0.47383535", "text": "@Override\n public void setLogFile(File log) {\n }", "title": "" }, { "docid": "7c32245a5e3af06aaf1fdb7fa5b054ea", "score": "0.4737944", "text": "@SuppressLint(\"CheckResult\")\n private void logEdit(String revisionId) {\n Observable.fromCallable(() -> mediaWikiApi.addWikidataEditTag(revisionId))\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(result -> {\n if (result) {\n Timber.d(\"Wikidata edit was tagged successfully\");\n } else {\n Timber.d(\"Wikidata edit couldn't be tagged\");\n }\n }, throwable -> Timber.e(throwable, \"Error occurred while adding tag to the edit\"));\n }", "title": "" }, { "docid": "fccf26d883c48f29b2c70e6ec5acaeae", "score": "0.47349885", "text": "public void run() {\n\t\tchannelData = GrobalData.getChannelData();\n\t\tprojectName = \"xlogistic\";\n\t\tbroker= GrobalData.getBroker();\n\t\tsuper.run();\n\t}", "title": "" }, { "docid": "eb0a3d818b7328d6d8939b505e469933", "score": "0.47330815", "text": "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n log();\n }", "title": "" }, { "docid": "aabfe9c42411bb9bdd623257307b546c", "score": "0.47320396", "text": "private void viewExistingLog() {\n System.out.println(\"This log has \" + log.logSize() + \" samples.\");\n log.printLog();\n runLogMenu();\n }", "title": "" }, { "docid": "4c4af90fc3c3b813dd88797b0b3579a4", "score": "0.47262657", "text": "public void logInfo(String paramString);", "title": "" }, { "docid": "dce8b761ffb5efc8b9c81fa90262aa38", "score": "0.472587", "text": "void save(MemberInfoChangeLog changeLog);", "title": "" }, { "docid": "04c38b1ea20e7f1674f4ac9acdcda21d", "score": "0.47254428", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry{\n\t\t\t\t\tautoDealLogs();\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tlog.error(\"自动处理log时出错\", e);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "e682e8c9dd529c637a9dbf8aa77f29c0", "score": "0.47207326", "text": "public static void logToAppLog(String msg) {\n try {\n Platform.runLater(() -> {\n if (!appLogInit) {\n initAppLog();\n }\n APP_LOG.info(msg);\n });\n } catch (Exception e) {\n if (!appLogInit) {\n initAppLog();\n }\n APP_LOG.info(msg);\n }\n }", "title": "" } ]
4893bc3db8bbd58132ce892a134031d4
Get Item Information //
[ { "docid": "6677d0a2359b137e6e4ccff78daf519f", "score": "0.0", "text": "public String getName() {\n return name;\n }", "title": "" } ]
[ { "docid": "26a675197dae8d95bdc091cbc0db8160", "score": "0.8132145", "text": "ItemInfo getItem();", "title": "" }, { "docid": "e49ee0628d6e1af36798c7c09a638a40", "score": "0.7667745", "text": "AbstructItem getItem();", "title": "" }, { "docid": "7de1156ff8a72117572f2031b5bf85bf", "score": "0.7634737", "text": "public Integer getIteminfo() {\n return iteminfo;\n }", "title": "" }, { "docid": "68b44bdc4606daa229cf78faae50ba2a", "score": "0.7262979", "text": "String getIItemDesc();", "title": "" }, { "docid": "36dc9c7ee3d9cad6fd9df8cb18e36b3c", "score": "0.71102923", "text": "public String getDescription() {return item_description;}", "title": "" }, { "docid": "ed32a2ba46bce7b48034ee4234a3df8d", "score": "0.7097453", "text": "public abstract Item getItem();", "title": "" }, { "docid": "54706b54a88a0ffecf64389b69fb82aa", "score": "0.708479", "text": "public String getInfoItem(String nomeItem, String atributo) {\n\t\tthis.validador.validaAtributo(atributo);\n\n\t\tItem item = getItem(nomeItem);\n\t\treturn item.getInfo(atributo);\n\t}", "title": "" }, { "docid": "c65f29759c7ba14644f9dbfb99862e4d", "score": "0.705616", "text": "Object getItem();", "title": "" }, { "docid": "9f143a4f6c75944abe22a5258b760bd7", "score": "0.69894546", "text": "public Item getItem(){\n\t\treturn this.item;\n\t}", "title": "" }, { "docid": "2156482bb182fd314754054d905ed1ca", "score": "0.69303715", "text": "public String getItem_name(){return item_name;}", "title": "" }, { "docid": "24cdadc82e6b1f759120cfa3e73a3f2b", "score": "0.69198805", "text": "private void printItemInfo() {\n System.out.println(player1.getRoom().getItemDescription());\n }", "title": "" }, { "docid": "4d709383b6d428ca03234c8601276e03", "score": "0.6915596", "text": "public Item getItem() {\n return myItem;\n }", "title": "" }, { "docid": "88f0388e22b5cb9daa6de28b9c213633", "score": "0.6910342", "text": "public Item getItem(){\n\t\treturn item;\n\t}", "title": "" }, { "docid": "6bc20d4f3e1d4be9b18270fa75cfe62d", "score": "0.69090575", "text": "public Item getItem() {\n return item;\n }", "title": "" }, { "docid": "771e5fec50b6df6b6a4b15b402c91e5c", "score": "0.68966216", "text": "@SuppressWarnings(\"static-access\")\n\tpublic synchronized String getItem(){\n\t\treturn this.item;\n\t}", "title": "" }, { "docid": "dae97a13897bc27a0b5e62d63481da10", "score": "0.6889054", "text": "public Item getItem() {\r\n\r\n return myItem;\r\n }", "title": "" }, { "docid": "c77211c3d34c187b5fafa05f2b308571", "score": "0.68809515", "text": "com.protobuf.common.ItemInfo.item_info getItems(int index);", "title": "" }, { "docid": "324f9ea189561a637d29c7a8ef5555a5", "score": "0.6838725", "text": "public Item getItem(){\r\n\t\treturn item;\r\n\t}", "title": "" }, { "docid": "364abf74841c85851d6d34f7e9188625", "score": "0.68197185", "text": "public ItemIF getItem() {\n return item;\n }", "title": "" }, { "docid": "4dc617c51155c0dc357ed8c7edc9822e", "score": "0.68179005", "text": "public abstract String getItemName();", "title": "" }, { "docid": "4e985400219377385f618007dd9f6594", "score": "0.6811801", "text": "@Override\n public String toString()\n {\n return (\"item id: \" + this.id + \" item name: \" + this.itemName +\n \" description: \" + this.description);\n }", "title": "" }, { "docid": "32b6d3c6863d1e3edf27c6f8fd43f735", "score": "0.6778615", "text": "public com.mpe.financial.model.Item getItem () {\r\n\t\treturn item;\r\n\t}", "title": "" }, { "docid": "df2fec2a2fe679b86504dce8bc0f9009", "score": "0.67572445", "text": "public String getItem() {\n return item;\n }", "title": "" }, { "docid": "a643b7a706648aee1a9811af0025e267", "score": "0.6752516", "text": "public String getItem () {\r\n return item;\r\n }", "title": "" }, { "docid": "99f08f19be207fd6d45048f6672e7e3f", "score": "0.6676946", "text": "public int getIdItemInfo() {\n return idItemInfo;\n }", "title": "" }, { "docid": "6ccce024c474779d4b5111f60f8bbbb7", "score": "0.6672021", "text": "public String getItemename() {\n return itemename;\n }", "title": "" }, { "docid": "98f1221bae527ad72c568afab558c0da", "score": "0.6667299", "text": "public ItemInfo getItemInfoByName(ItemInfo itemInfo) {\n\t\tSystem.out.println(\"getItemInfoByName\"+itemInfo.getItemName());\n\t\tList<ItemInfo> itemInfoList = sqlSessionTemplateSql\n\t\t.selectList(\n\t\t\t\t\"com.kohler.puni.persistence.dao.ItemGroupsPcenDao.getItemInfoByName\",\n\t\t\t\titemInfo);\n\t\treturn itemInfoList.get(0);\n\t}", "title": "" }, { "docid": "6f7e24d76b77f9d0e418a97b2e8c87ec", "score": "0.6665726", "text": "public static interface ItemGetter\n\t{\n\t\t/**\n\t\t * Gets an item that may not yet be represented in this data set. This method should only be\n\t\t * called if the item has no representation in this data set.\n\t\t * \n\t\t * @param type The type of the item\n\t\t * @param id The ID of the item\n\t\t * @return The item with the given type and ID. This will never be null\n\t\t * @throws PrismsRecordException If there is no item available with the given type and ID or\n\t\t * if an error occurs retrieving it.\n\t\t */\n\t\tObject getItem(String type, long id) throws PrismsRecordException;\n\t}", "title": "" }, { "docid": "64e119861420a54b35e77c9fa73e52f6", "score": "0.6648576", "text": "fksproto.CsBase.Item getItems(int index);", "title": "" }, { "docid": "64e119861420a54b35e77c9fa73e52f6", "score": "0.6648576", "text": "fksproto.CsBase.Item getItems(int index);", "title": "" }, { "docid": "64e119861420a54b35e77c9fa73e52f6", "score": "0.6648576", "text": "fksproto.CsBase.Item getItems(int index);", "title": "" }, { "docid": "1fd0e6a586e705561b5991e38dab5c8a", "score": "0.6626726", "text": "public I item()\r\n\t{\r\n\t\treturn item;\r\n\t}", "title": "" }, { "docid": "d0f1abf2a60074f5a55d67a4db200fe9", "score": "0.66133106", "text": "public String getItembrief() {\n return itembrief;\n }", "title": "" }, { "docid": "739b2f5d7c003a344f8784b7328d8a21", "score": "0.6600437", "text": "public String getItemName()\n {\n return itemName;\n }", "title": "" }, { "docid": "71fba892e3e1445831483f8ac0a0186e", "score": "0.6592858", "text": "public Item getItem() {\n\t\treturn item;\n\t}", "title": "" }, { "docid": "71fba892e3e1445831483f8ac0a0186e", "score": "0.6592858", "text": "public Item getItem() {\n\t\treturn item;\n\t}", "title": "" }, { "docid": "a7074d06fff89879682b96d915a3e677", "score": "0.6585929", "text": "java.util.List<com.protobuf.common.ItemInfo.item_info> \n getItemsList();", "title": "" }, { "docid": "a1488543ea4faae11503e4df74e68c04", "score": "0.65823084", "text": "public Item getItem() {\n return item;\n }", "title": "" }, { "docid": "747edbb6009eb8b28234d4f289b49e89", "score": "0.6571666", "text": "public String getName(){\n return itemName;\n }", "title": "" }, { "docid": "ca0e7a38128dc7b0bf2b05a9f08417ab", "score": "0.656099", "text": "@GET\npublic Response getItem() {\n System.out.println(\"GET ITEM \" + container + \" \" + item);\n\n Item i = MemoryStore.MS.getItem(container, item);\n if (i == null)\n throw new NotFoundException(\"Item not found\");\n Date lastModified = i.getLastModified().getTime();\n EntityTag et = new EntityTag(i.getDigest());\n ResponseBuilder rb = request.evaluatePreconditions(lastModified, et);\n if (rb != null)\n return rb.build();\n\n byte[] b = MemoryStore.MS.getItemData(container, item);\n return Response.ok(b, i.getMimeType()).\n lastModified(lastModified).tag(et).build();\n }", "title": "" }, { "docid": "cc8a06bd3ac2ebc54ed3735c0c7c2b39", "score": "0.65570694", "text": "@Override\n public String toString() {\n return \"Item{\" +\n \"description='\" + description + '\\'' +\n \", itemName='\" + itemName + '\\'' +\n \", status=\" + status +\n \", owner='\" + owner + '\\'' +\n '}';\n }", "title": "" }, { "docid": "65498f8c66033a70c6612e6e50957e36", "score": "0.6548312", "text": "public String itemInfo(Potion potion) {\n\t\tString itemInfo = \"\";\n\n\t\titemInfo = potion.toString() + \"\\t\\tx\" + this.potionMap.get(potion).toString();\n\t\treturn itemInfo;\n\t}", "title": "" }, { "docid": "3d6d522f62dfc552339c38162c6b4d02", "score": "0.654515", "text": "public final Item getItem() {\r\n return item;\r\n }", "title": "" }, { "docid": "02773df3a5343c7139ab863fc52187a5", "score": "0.65411896", "text": "public String getItemName()\n\t{\n\t\treturn wItemName ;\n\t}", "title": "" }, { "docid": "fc941a6ba47d7b0e4b61357e0503268d", "score": "0.6540686", "text": "public void getGroceryItem() {\n String id = null;\n\n Bundle myData = getIntent().getExtras();\n if (myData != null ) {\n id = myData.getString(KEY_ITM);\n }\n\n //create our handler\n PantryDBHandler handler = new PantryDBHandler(this);\n\n //call the findgroceryitem function from our handler on our id\n PantryItem item1 = handler.findGroceryItem(Integer.parseInt(id));\n\n// Toast.makeText(this, Integer.toString(id), Toast.LENGTH_LONG).show();\n//\n //replace the text in our views with the proper content\n TextView tv1 = findViewById(R.id.nameView);\n TextView tv2 = findViewById(R.id.qtyView);\n TextView tv3 = findViewById(R.id.descView);\n TextView tv4 = findViewById(R.id.ctgView);\n tv1.setText(item1.getPitemName());\n\n //compound qty means we build our string before setting the text\n String qtyString = \"\";\n\n qtyString += item1.getPitemQty();\n qtyString += \" \" + item1.getPitemQtyName();\n\n tv2.setText(qtyString);\n\n tv3.setText(item1.getPitemDesc());\n tv4.setText(item1.getPitemCtg());\n\n }", "title": "" }, { "docid": "0407986adb61ac17834bc8c16d259f61", "score": "0.65245575", "text": "NikeItem getItemById(Integer id);", "title": "" }, { "docid": "7ec78539c204e80fb2506ffdd6dc338d", "score": "0.6522819", "text": "public String getItemName()\n {\n return itemName;\n }", "title": "" }, { "docid": "0843ab84c13db528bb30b2cde506cdc8", "score": "0.6518678", "text": "public String getItemid() {\n return itemid;\n }", "title": "" }, { "docid": "e81dcb9b30d4aaed8b08d557418c810f", "score": "0.64977133", "text": "public Item getItem(int item)\r\n {\r\n return items.get(item);\r\n }", "title": "" }, { "docid": "c027b01b1391bcc2cae9773731ae6d00", "score": "0.6492721", "text": "Serializable getItemData();", "title": "" }, { "docid": "7d8741eb73894704d839f3b7b5477d03", "score": "0.6492228", "text": "@GET(\"/recipes/{id}/information\")\n Call<ItemInfoResponse> getItemInfo(\n @Path(value = \"id\") int id,\n @Query(value = \"apiKey\") String apiKey,\n @Query(value = \"includeNutrition\") boolean includeNutrition\n );", "title": "" }, { "docid": "fb161445db495625189b06b444670ff0", "score": "0.64805764", "text": "@Override\n public String toString() {\n return item.toString();\n }", "title": "" }, { "docid": "c6f8ded47931c4cd7647e44f264d92f6", "score": "0.64771104", "text": "String getIItemId();", "title": "" }, { "docid": "8a9a4b2ea7637d35ba3bfb86f58ca983", "score": "0.6470315", "text": "public AdditionalItem getAdditionalItem()\r\n\t{\r\n\t\treturn additionalItem;\r\n\t}", "title": "" }, { "docid": "8a17f50d66ed9da9c28bc2c5e844e1c1", "score": "0.6466813", "text": "int getCurrentItem();", "title": "" }, { "docid": "66886a33cb3cc666184fafbd04379ee8", "score": "0.6463715", "text": "public String toString(){\n\t\treturn \"ITEM: \"+title+\", WEIGHT: \"+weight;\n\t}", "title": "" }, { "docid": "100b0a7e9bb41f02ab53fc273de6f9a7", "score": "0.64491427", "text": "public interface Item {\n /**\n * Retrieves the ID of the item.\n * @return the ID of the item\n */\n String getId();\n \n /**\n * Retrieves the name of the item.\n * @return the name of the item\n */\n String getName();\n}", "title": "" }, { "docid": "a2b9c81e8736d7526741f59e66f7a065", "score": "0.6429163", "text": "public Item getItemById(int id);", "title": "" }, { "docid": "66505cdd94c4b7d410859d68a67b301d", "score": "0.64244425", "text": "public int getItem(int item) {\n/* 2351 */ return this.items[item];\n/* */ }", "title": "" }, { "docid": "62f84c090b963d8f2477224c1641e243", "score": "0.64158046", "text": "public String getItem() {\n return (String)getAttributeInternal(ITEM);\n }", "title": "" }, { "docid": "57ca1c1705b921025252f008387cabf3", "score": "0.64112633", "text": "public int getIdItem() {\r\nreturn idItem;\r\n}", "title": "" }, { "docid": "b182f5db5432e50f14e56c8cf1dfedb7", "score": "0.6411084", "text": "void readItemInfo(String info) {\n\t\tString[] items = info.split(\";\");\n\t\tfor(int i = 0; i<items.length; i++) {\n\t\t\tString[] itemParts = items[i].split(\"&\");\n\t\t\tint ID = Integer.parseInt(itemParts[0]);\n\t\t\tItem item = hmItems.get(ID);\n\t\t\tArrayList<Integer> locations = new ArrayList<Integer>();\n\t\t\tint location = Integer.parseInt(itemParts[1]);\n\t\t\tlocations.add(location);\n\t\t\titem.setLocation(locations);\n\t\t}\n\t}", "title": "" }, { "docid": "cddb11482486977f7677d8acf583e281", "score": "0.64092517", "text": "public int getItemNo()\r\n{\r\n return itemNo;\r\n}", "title": "" }, { "docid": "094c3a40adf1cc9deb41d924b7b2f506", "score": "0.6407899", "text": "Item getItemById(int id);", "title": "" }, { "docid": "70374d47eb56b4118a36bef4520cf96a", "score": "0.64058495", "text": "public static void doItems()\n\t{\n\t\t//Item Details\n\t\tbronzeIngot = new SimpleIngot(Config.bronzeIngotID).modId(\"simpleoresfusion\").setUnlocalizedName(\"bronzeIngot\");\n\t\tsinisiteIngot = new SimpleIngot(Config.sinisiteIngotID).modId(\"simpleoresfusion\").setUnlocalizedName(\"sinisiteIngot\");\n\t\tthyriumIngot = new SimpleIngot(Config.thyriumIngotID).modId(\"simpleoresfusion\").setUnlocalizedName(\"thyriumIngot\");\n\t\tthyriumRod = new SimpleIngot(Config.thyriumRodID).modId(\"simpleoresfusion\").setUnlocalizedName(\"thyriumRod\");\n\t\tsinisiteRod = new SimpleIngot(Config.sinisiteRodID).modId(\"simpleoresfusion\").setUnlocalizedName(\"sinisiteRod\");\t\n\t\tsmallBronzeChunk = new SimpleIngot(Config.smallBronzeChunkID).modId(\"simpleoresfusion\").setUnlocalizedName(\"smallBronzeChunk\");\n\t\tmediumBronzeChunk = new SimpleIngot(Config.mediumBronzeChunkID).modId(\"simpleoresfusion\").setUnlocalizedName(\"mediumBronzeChunk\");\n\t\tlargeBronzeChunk = new SimpleIngot(Config.largeBronzeChunkID).modId(\"simpleoresfusion\").setUnlocalizedName(\"largeBronzeChunk\");\n\t\tsmallThyriumChunk = new SimpleIngot(Config.smallThyriumChunkID).modId(\"simpleoresfusion\").setUnlocalizedName(\"smallThyriumChunk\");\n\t\tmediumThyriumChunk = new SimpleIngot(Config.mediumThyriumChunkID).modId(\"simpleoresfusion\").setUnlocalizedName(\"mediumThyriumChunk\");\n\t\tlargeThyriumChunk = new SimpleIngot(Config.largeThyriumChunkID).modId(\"simpleoresfusion\").setUnlocalizedName(\"largeThyriumChunk\");\n\t\tsmallSinisiteChunk = new SimpleIngot(Config.smallSinisiteChunkID).modId(\"simpleoresfusion\").setUnlocalizedName(\"smallSinisiteChunk\");\n\t\tmediumSinisiteChunk = new SimpleIngot(Config.mediumSinisiteChunkID).modId(\"simpleoresfusion\").setUnlocalizedName(\"mediumSinisiteChunk\");\n\t\tlargeSinisiteChunk = new SimpleIngot(Config.largeSinisiteChunkID).modId(\"simpleoresfusion\").setUnlocalizedName(\"largeSinisiteChunk\");\n\t}", "title": "" }, { "docid": "5abe5320679cf9cc4f83deebb4343e2e", "score": "0.64037055", "text": "public String getItemDesc() {\n return itemDesc;\n }", "title": "" }, { "docid": "b9c26132e1541fe2779422c25faf3400", "score": "0.6400973", "text": "Object getItemValue(ItemKey key);", "title": "" }, { "docid": "413f38c6f517580363f6288c65506e6e", "score": "0.63940465", "text": "public Item getItemByName(String itemName) {\r\n\t\tdb.open();\r\n\t\tItem item = (Item) db.getItem(itemName);\r\n//\t\tLog.d(\"DBTEST\", item.getName());\r\n\t\tdb.close();\r\n\t\treturn item;\r\n\t}", "title": "" }, { "docid": "03d08abf2361aa00ade5759a49744cbb", "score": "0.63898796", "text": "String getItemType();", "title": "" }, { "docid": "e6fd96a8651faf4719bf4af483c06f5c", "score": "0.63875926", "text": "public CriteriaItem getItem() {\n return item;\n }", "title": "" }, { "docid": "3c7a9e5c008850f883d3846f0b2fa791", "score": "0.6387565", "text": "private void loadItemDetails() {\n mImageTitle.setText(wallpaperInstance.getName());\n mImageLocation.setText(wallpaperInstance.getLocation());\n mImageDate.setText(wallpaperInstance.getDate());\n mImageSensor.setText(wallpaperInstance.getSensor());\n\n mMoreFrom.setText(\"More from \" + wallpaperInstance.getPackName() + \" Pack\");\n\n }", "title": "" }, { "docid": "337540fd0045030b8017f6361a66f929", "score": "0.6386215", "text": "@GetMapping(\"/item/{id}\")\n\tpublic String getItem(@PathVariable int id)\n\t{\n\t\tItemEntry item = itemService.getItem(id);\n\t\tif (item != null)\n\t\t{\n\t\t\treturn item.getDescription();\n\t\t}\n\n\t\treturn examineService.get(ITEM, id);\n\t}", "title": "" }, { "docid": "b516f9ea167ac61dad465651cbec82a1", "score": "0.6386153", "text": "private static void get() {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Enter the Item's id\");\n\t\t\tString lineContent = reader.readLine();\n\t\t\t//get the item id\n\t\t\tint id = Integer.valueOf(lineContent);\n\n\t\t\t//get the auction item\n\t\t\tAuctionUnit auctionUnit = seller.getAuctionUnit(id);\n\n\t\t\tSystem.out.println(\"Below is the Aution Item state\");\n\t\t\t//display the details\n\t\t\tSystem.out.println(auctionUnit);\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Exception occurred. Retry!\");\n\t\t}\n\t}", "title": "" }, { "docid": "bb2508475773cac736b9f3d6f2d82b57", "score": "0.637945", "text": "public int getItemID() {\n return ItemID;\n }", "title": "" }, { "docid": "7955ce83a799691a9745ae41494c9c89", "score": "0.6379199", "text": "int getItemid();", "title": "" }, { "docid": "df3d4594c76e3b01bbc5dab476e63cba", "score": "0.63702655", "text": "public Integer getItem() {\n\t\treturn item;\n\t}", "title": "" }, { "docid": "9063994b44eab6e6e83eeffc63e6e07c", "score": "0.6357368", "text": "public ItemMeta getItemMeta() {\n\t\treturn handle.getItemMeta();\n\t}", "title": "" }, { "docid": "e8e889e5158eefadc0bea465f7b2730f", "score": "0.63503075", "text": "public Item getItem(int item)\n\t {\n\t\t return items.get(item);\n\t }", "title": "" }, { "docid": "f0656cedf786c6ac4a00511dcad99d8a", "score": "0.63384205", "text": "public String getItemIdentifier()\n {\n return mItemIdentifier;\n }", "title": "" }, { "docid": "4c562cdbd1e95cc3e0155569711aff22", "score": "0.6336153", "text": "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn infos.get(position);\n\t\t}", "title": "" }, { "docid": "918c4c82a2d1965bbc8d77f9f2196e19", "score": "0.63355154", "text": "public String toString() {\n return item;\n }", "title": "" }, { "docid": "b592d624a5e7a6867627366e499f8565", "score": "0.63339275", "text": "public String getItemName() {\n return itemName;\n }", "title": "" }, { "docid": "b592d624a5e7a6867627366e499f8565", "score": "0.63339275", "text": "public String getItemName() {\n return itemName;\n }", "title": "" }, { "docid": "c6706d974d17dd0559e1e02046d9a482", "score": "0.63338095", "text": "public String getItemName(){\n return this.name;\n }", "title": "" }, { "docid": "1cfe1296cd3dd29e3c53350377b37a4c", "score": "0.6323678", "text": "public String GetItemNames()\r\n\t{\r\n\t\treturn ItemName;\r\n\t}", "title": "" }, { "docid": "4d23c45bb1b05851a27f83d0dd07c8db", "score": "0.6318617", "text": "com.github.aeonlucid.pogoprotos.inventory.Item.ItemId getItemId();", "title": "" }, { "docid": "4d23c45bb1b05851a27f83d0dd07c8db", "score": "0.6318617", "text": "com.github.aeonlucid.pogoprotos.inventory.Item.ItemId getItemId();", "title": "" }, { "docid": "d9251f23e64f78b76956de125ab7d6b3", "score": "0.6313229", "text": "public int getItem_id(){return item_id;}", "title": "" }, { "docid": "2da56da76b1f70f552f78efb5ef45e5c", "score": "0.6312921", "text": "String getItemtype();", "title": "" }, { "docid": "90613a1a3e1a25cc28d785994b82c15b", "score": "0.6311188", "text": "public EJItemProperties getItemProperties(String itemName);", "title": "" }, { "docid": "6f2687fbd6b1e7d8767916a100bc1a22", "score": "0.6305688", "text": "@Override\n public String getItemName() {\n return itemName;\n }", "title": "" }, { "docid": "11e7331b057d7f9c74339f13303a30b4", "score": "0.6304375", "text": "ItemStack getItem();", "title": "" }, { "docid": "11e7331b057d7f9c74339f13303a30b4", "score": "0.6304375", "text": "ItemStack getItem();", "title": "" }, { "docid": "6978fdcbaf0aab0e6047a9f821eeb327", "score": "0.62990457", "text": "public static String getItemName() {\r\n\t\treturn itemName;\r\n\t}", "title": "" }, { "docid": "4b35e9436072c5b978d944da957f6fbb", "score": "0.62873644", "text": "void retrieveItemsList();", "title": "" }, { "docid": "b206c5db5991f1f7bf938929813f3500", "score": "0.6282781", "text": "public interface Item {\n public String name();\n public Packing packing();\n public float price();\t\n}", "title": "" }, { "docid": "4f0570be757dcf8dd86de38a90b53fdd", "score": "0.6274439", "text": "public void displayItem() {\n\t\tSystem.out.println(\"Type: Gift Card | ID: \" + id + \" | Description: \" + getDescription() + \" | Colour:\" + getColour() + \" | Price: $\" + getPrice());\n\t}", "title": "" }, { "docid": "de545d312f186520fc1f54a2bfbe9b08", "score": "0.6272445", "text": "public String getItemID() {\n\t\treturn itemID;\n\t}", "title": "" }, { "docid": "47e7edcc5702020d33fa1a7b5d6a2a30", "score": "0.6271813", "text": "int getItemTypeID();", "title": "" }, { "docid": "74b4893ad6487e18aaa0d1dc54b43169", "score": "0.6265815", "text": "public String getItemId();", "title": "" }, { "docid": "50c6769a7c510fb58d64bbe4ea240645", "score": "0.6258181", "text": "public void setIteminfo(Integer iteminfo) {\n this.iteminfo = iteminfo;\n }", "title": "" } ]
2e85a061d3ed38611380f3db8bb95ccb
Test case number: 20 /Coverage entropy=2.2151215609245614
[ { "docid": "a0e6665de636ccd3cff911f7603f9062", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test020() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.h3((Object) null);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" } ]
[ { "docid": "dc15779935f314df980416dd90d2558f", "score": "0.69677246", "text": "@Test(timeout = 4000)\n public void test52() throws Throwable {\n Discretize discretize0 = new Discretize();\n Attribute attribute0 = new Attribute(\"rRZ@\\\"zX$H&iQKV\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n attribute0.indexOfValue(\">Fe!{#-{\");\n Instances instances0 = new Instances(\"-M <num>\", arrayList0, 0);\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n instances0.setClass(attribute0);\n discretize0.getFindNumBins();\n attribute0.equalsMsg(discretize0);\n arrayList1.add(attribute0);\n discretize0.setInputFormat(instances0);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/Capabilities.props\");\n discretize0.m_MakeBinary = true;\n discretize0.batchFinished();\n Function.identity();\n Attribute.typeToString(0);\n discretize0.isOutputFormatDefined();\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4);\n attribute0.copy(\"@data\");\n SparseInstance sparseInstance0 = new SparseInstance(1);\n FileSystemHandling.shouldThrowIOException(evoSuiteFile0);\n discretize0.setOutputFormat();\n discretize0.calculateCutPoints();\n }", "title": "" }, { "docid": "512e0ba73910aff9d926ee1e2fadaa58", "score": "0.6866043", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(capabilities0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = new TestInstances();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n \n String string0 = Evaluation.makeOptionString((Classifier) null, true);\n assertNotNull(string0);\n }", "title": "" }, { "docid": "670d17d44673b8c0a9ece43b2e0f675f", "score": "0.68551713", "text": "@Test(timeout = 4000)\n public void test48() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[20][8];\n Attribute attribute0 = new Attribute(\"rRZ@\\\"zX$H&iQKV\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n attribute0.indexOfValue(\">Fe!{#-{\");\n Instances instances0 = new Instances(\"-M <num>\", arrayList0, 0);\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n discretize0.getFindNumBins();\n attribute0.equalsMsg(discretize0);\n arrayList1.add(attribute0);\n discretize0.setInputFormat(instances0);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/Capabilities.props\");\n discretize0.m_MakeBinary = false;\n discretize0.batchFinished();\n Function.identity();\n Attribute.typeToString(0);\n FileSystemHandling.setPermissions(evoSuiteFile0, true, false, true);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4);\n discretize0.m_CutPoints = doubleArray0;\n attribute0.copy(\"@data\");\n SparseInstance sparseInstance0 = new SparseInstance(1);\n FileSystemHandling.shouldThrowIOException(evoSuiteFile0);\n DenseInstance denseInstance0 = new DenseInstance(binarySparseInstance0);\n discretize0.convertInstance(sparseInstance0);\n }", "title": "" }, { "docid": "85f249e24970dd3c5ecbee01b567048d", "score": "0.68198013", "text": "@Test(timeout = 4000)\n public void test53() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[20][8];\n Attribute attribute0 = new Attribute(\"rRZ@\\\"zX$H&iQKV\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"\", arrayList0, 0);\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n discretize0.getFindNumBins();\n instances0.containsAll(arrayList0);\n arrayList1.add(attribute0);\n discretize0.setInputFormat(instances0);\n boolean boolean0 = discretize0.m_IgnoreClass;\n Function.identity();\n Attribute.typeToString(0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4);\n discretize0.m_CutPoints = doubleArray0;\n SparseInstance sparseInstance0 = new SparseInstance(0);\n sparseInstance0.toStringMaxDecimalDigits(2);\n discretize0.findNumBins(4);\n discretize0.m_UseBinNumbers = true;\n attribute0.copy(\"@data\");\n SparseInstance sparseInstance1 = new SparseInstance(4);\n sparseInstance1.toStringMaxDecimalDigits(99);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n discretize0.setOutputFormat();\n discretize0.calculateCutPoints();\n discretize0.convertInstance(sparseInstance1);\n }", "title": "" }, { "docid": "7b2a5328206b1c29a60d5d52a44cfcb6", "score": "0.6814542", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[20][8];\n Attribute attribute0 = new Attribute(\"rRZ@\\\"zX$H&iQKV\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n attribute0.indexOfValue(\">Fe!{#-{\");\n Instances instances0 = new Instances(\"-M <num>\", arrayList0, 0);\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n discretize0.getFindNumBins();\n attribute0.equalsMsg(discretize0);\n arrayList1.add(attribute0);\n discretize0.setInputFormat(instances0);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/Capabilities.props\");\n discretize0.m_MakeBinary = true;\n discretize0.batchFinished();\n Function.identity();\n Attribute.typeToString(0);\n discretize0.isOutputFormatDefined();\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4);\n discretize0.m_CutPoints = doubleArray0;\n attribute0.copy(\"@data\");\n SparseInstance sparseInstance0 = new SparseInstance(1);\n FileSystemHandling.shouldThrowIOException(evoSuiteFile0);\n discretize0.setOutputFormat();\n discretize0.calculateCutPoints();\n discretize0.convertInstance(binarySparseInstance0);\n assertTrue(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "8c5b7c9ac0dea26a9036adafab60da49", "score": "0.67743903", "text": "@Test\n public void testSpecificEntropyPT() {\n\n double[][] X = {\n {0.392294792, 3, 300}, // region 1 tests\n {0.368563852, 80, 300},\n {0.258041912e1, 3, 500},\n //{0.852238967e1, 0.0035, 300}, // region 2 tests\n //{0.101749996e2, 0.0035, 700},\n {0.517540298e1, 30, 700},\n //{0.656660377e1, 1, 450}, // region 2 meta tests\n //{0.650218759e1, 1, 440},\n //{0.629170440e1, 1.5, 450},\n {0.965408875e1, 0.5, 1500}, // region 5 tests\n {0.772970133e1, 30, 1500},\n {0.853640523e1, 30, 2000}};\n\n for (double[] x : X) {\n assertEquals(x[0], if97.specificEntropyPT(x[1], x[2]), 1e-5);\n }\n }", "title": "" }, { "docid": "faace4e81bfe33169bc6f0b96d5a83c2", "score": "0.67581123", "text": "@Test(timeout = 4000)\n public void test51() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[20][8];\n Attribute attribute0 = new Attribute(\"rRZ@\\\"zX$H&iQKV\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"\", arrayList0, 0);\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n discretize0.getFindNumBins();\n instances0.containsAll(arrayList0);\n arrayList1.add(attribute0);\n discretize0.setInputFormat(instances0);\n discretize0.batchFinished();\n Function.identity();\n Attribute.typeToString(0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4);\n discretize0.m_CutPoints = doubleArray0;\n SparseInstance sparseInstance0 = new SparseInstance(0);\n sparseInstance0.toStringMaxDecimalDigits(2);\n discretize0.findNumBins(4);\n discretize0.convertInstance(sparseInstance0);\n discretize0.convertInstance(binarySparseInstance0);\n }", "title": "" }, { "docid": "c49325c0f33d96c3f07aa93c795bac9f", "score": "0.6743595", "text": "@Test(timeout = 4000)\n public void test59() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n \n Instances instances0 = testInstances0.generate(\"t:oource\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n \n testInstances0.setNumString(0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n \n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "15b8a760183baaafad43687b5c96c070", "score": "0.67213404", "text": "@Test(timeout = 4000)\n public void test31() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n \n DecisionStump decisionStump0 = new DecisionStump();\n assertNotNull(decisionStump0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n \n Capabilities capabilities0 = decisionStump0.getCapabilities();\n assertNotNull(capabilities0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertFalse(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getClassType());\n \n Instances instances0 = testInstances0.generate(\"weka/core/Capabilities.props\");\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n \n testInstances0.setNumString(2);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(2, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(6, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getClassType());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(2, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(6, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n \n ZeroR zeroR0 = new ZeroR();\n assertNotNull(zeroR0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", zeroR0.debugTipText());\n assertFalse(zeroR0.getDebug());\n assertEquals(\"Class for building and using a 0-R classifier. Predicts the mean (for a numeric class) or the mode (for a nominal class).\", zeroR0.globalInfo());\n \n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n assertEquals(2, CostSensitiveClassifier.MATRIX_SUPPLIED);\n assertEquals(1, CostSensitiveClassifier.MATRIX_ON_DEMAND);\n assertNotNull(costSensitiveClassifier0);\n assertEquals(\"The random number seed to be used.\", costSensitiveClassifier0.seedTipText());\n assertFalse(costSensitiveClassifier0.getDebug());\n assertEquals(\"Sets whether the minimum expected cost criteria will be used. If this is false, the training data will be reweighted according to the costs assigned to each class. If true, the minimum expected cost criteria will be used.\", costSensitiveClassifier0.minimizeExpectedCostTipText());\n assertEquals(\"A metaclassifier that makes its base classifier cost-sensitive. Two methods can be used to introduce cost-sensitivity: reweighting training instances according to the total cost assigned to each class; or predicting the class with minimum expected misclassification cost (rather than the most likely class). Performance can often be improved by using a Bagged classifier to improve the probability estimates of the base classifier.\", costSensitiveClassifier0.globalInfo());\n assertEquals(\"Sets the directory where cost files are loaded from. This option is used when the costMatrixSource is set to \\\"On Demand\\\".\", costSensitiveClassifier0.onDemandDirectoryTipText());\n assertEquals(\"The base classifier to be used.\", costSensitiveClassifier0.classifierTipText());\n assertEquals(1, costSensitiveClassifier0.getSeed());\n assertFalse(costSensitiveClassifier0.getMinimizeExpectedCost());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", costSensitiveClassifier0.debugTipText());\n assertEquals(\"Sets the cost matrix explicitly. This matrix is used if the costMatrixSource property is set to \\\"Supplied\\\".\", costSensitiveClassifier0.costMatrixTipText());\n assertEquals(0, costSensitiveClassifier0.graphType());\n \n CostSensitiveClassifier costSensitiveClassifier1 = new CostSensitiveClassifier();\n assertEquals(1, CostSensitiveClassifier.MATRIX_ON_DEMAND);\n assertEquals(2, CostSensitiveClassifier.MATRIX_SUPPLIED);\n assertFalse(costSensitiveClassifier1.equals((Object)costSensitiveClassifier0));\n assertNotNull(costSensitiveClassifier1);\n assertEquals(0, costSensitiveClassifier1.graphType());\n assertEquals(\"Sets the directory where cost files are loaded from. This option is used when the costMatrixSource is set to \\\"On Demand\\\".\", costSensitiveClassifier1.onDemandDirectoryTipText());\n assertEquals(\"The base classifier to be used.\", costSensitiveClassifier1.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", costSensitiveClassifier1.debugTipText());\n assertEquals(1, costSensitiveClassifier1.getSeed());\n assertEquals(\"Sets the cost matrix explicitly. This matrix is used if the costMatrixSource property is set to \\\"Supplied\\\".\", costSensitiveClassifier1.costMatrixTipText());\n assertFalse(costSensitiveClassifier1.getMinimizeExpectedCost());\n assertFalse(costSensitiveClassifier1.getDebug());\n assertEquals(\"The random number seed to be used.\", costSensitiveClassifier1.seedTipText());\n assertEquals(\"A metaclassifier that makes its base classifier cost-sensitive. Two methods can be used to introduce cost-sensitivity: reweighting training instances according to the total cost assigned to each class; or predicting the class with minimum expected misclassification cost (rather than the most likely class). Performance can often be improved by using a Bagged classifier to improve the probability estimates of the base classifier.\", costSensitiveClassifier1.globalInfo());\n assertEquals(\"Sets whether the minimum expected cost criteria will be used. If this is false, the training data will be reweighted according to the costs assigned to each class. If true, the minimum expected cost criteria will be used.\", costSensitiveClassifier1.minimizeExpectedCostTipText());\n \n SMO sMO0 = new SMO();\n assertEquals(0, SMO.FILTER_NORMALIZE);\n assertEquals(2, SMO.FILTER_NONE);\n assertEquals(1, SMO.FILTER_STANDARDIZE);\n assertNotNull(sMO0);\n assertEquals(\"Determines how/if the data will be transformed.\", sMO0.filterTypeTipText());\n assertEquals(1.0, sMO0.getC(), 0.01);\n assertFalse(sMO0.getDebug());\n assertEquals(1.0E-12, sMO0.getEpsilon(), 0.01);\n assertEquals(\"Turns time-consuming checks off - use with caution.\", sMO0.checksTurnedOffTipText());\n assertEquals(\"Random number seed for the cross-validation.\", sMO0.randomSeedTipText());\n assertEquals(\"The tolerance parameter (shouldn't be changed).\", sMO0.toleranceParameterTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", sMO0.debugTipText());\n assertFalse(sMO0.getBuildLogisticModels());\n assertEquals(0.001, sMO0.getToleranceParameter(), 0.01);\n assertEquals(\"Whether to fit logistic models to the outputs (for proper probability estimates).\", sMO0.buildLogisticModelsTipText());\n assertEquals((-1), sMO0.getNumFolds());\n assertEquals(\"The number of folds for cross-validation used to generate training data for logistic models (-1 means use training data).\", sMO0.numFoldsTipText());\n assertFalse(sMO0.getChecksTurnedOff());\n assertEquals(\"The complexity parameter C.\", sMO0.cTipText());\n assertEquals(1, sMO0.getRandomSeed());\n assertEquals(\"The kernel to use.\", sMO0.kernelTipText());\n assertEquals(\"The epsilon for round-off error (shouldn't be changed).\", sMO0.epsilonTipText());\n \n boolean boolean0 = evaluation0.equals(sMO0);\n assertFalse(boolean0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(0, SMO.FILTER_NORMALIZE);\n assertEquals(2, SMO.FILTER_NONE);\n assertEquals(1, SMO.FILTER_STANDARDIZE);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(2, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(6, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(\"Determines how/if the data will be transformed.\", sMO0.filterTypeTipText());\n assertEquals(1.0, sMO0.getC(), 0.01);\n assertFalse(sMO0.getDebug());\n assertEquals(1.0E-12, sMO0.getEpsilon(), 0.01);\n assertEquals(\"Turns time-consuming checks off - use with caution.\", sMO0.checksTurnedOffTipText());\n assertEquals(\"Random number seed for the cross-validation.\", sMO0.randomSeedTipText());\n assertEquals(\"The tolerance parameter (shouldn't be changed).\", sMO0.toleranceParameterTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", sMO0.debugTipText());\n assertFalse(sMO0.getBuildLogisticModels());\n assertEquals(0.001, sMO0.getToleranceParameter(), 0.01);\n assertEquals(\"Whether to fit logistic models to the outputs (for proper probability estimates).\", sMO0.buildLogisticModelsTipText());\n assertEquals((-1), sMO0.getNumFolds());\n assertEquals(\"The number of folds for cross-validation used to generate training data for logistic models (-1 means use training data).\", sMO0.numFoldsTipText());\n assertFalse(sMO0.getChecksTurnedOff());\n assertEquals(\"The complexity parameter C.\", sMO0.cTipText());\n assertEquals(1, sMO0.getRandomSeed());\n assertEquals(\"The kernel to use.\", sMO0.kernelTipText());\n assertEquals(\"The epsilon for round-off error (shouldn't be changed).\", sMO0.epsilonTipText());\n \n double double0 = evaluation0.weightedPrecision();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(2, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(6, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n \n double double1 = evaluation0.kappa();\n assertEquals(1.0, double1, 0.01);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotEquals(double1, double0, 0.01);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(2, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(6, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n \n String string0 = Evaluation.getGlobalInfo(decisionStump0);\n assertEquals(\"\\nSynopsis for weka.classifiers.trees.DecisionStump:\\n\\nClass for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", string0);\n assertNotNull(string0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n }", "title": "" }, { "docid": "ead26a74a94df5de84634febfc1b9853", "score": "0.67039126", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n FileSystemHandling.shouldAllThrowIOExceptions();\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n IBk iBk0 = new IBk(1);\n Capabilities capabilities0 = iBk0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"@relation\", linkedList0, protectedProperties1);\n capabilities0.test(attribute0);\n testInstances0.setNumClasses(1193);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/Capabilities.props\");\n FileSystemHandling.setPermissions(evoSuiteFile0, true, true, true);\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.weightedFMeasure();\n assertEquals(Double.NaN, double0, 0.01);\n \n double double1 = evaluation0.falseNegativeRate((-1160134855));\n org.evosuite.runtime.Random.setNextRandom(2221);\n double double2 = evaluation0.fMeasure((-243));\n assertEquals(double2, double1, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double2, 0.01);\n }", "title": "" }, { "docid": "54464f08d0cb3a18740e8ab420fa544c", "score": "0.6663108", "text": "@Test(timeout = 4000)\n public void test31() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(617);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "09edf3c0b79c57b7ac853013bb646f1c", "score": "0.66418433", "text": "@Test(timeout = 4000)\n public void test79() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n String string0 = discretize0.getRevision();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "e0682e80087bd09a47ec7fab68590cb5", "score": "0.6631805", "text": "@Test(timeout = 4000)\n public void test36() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n \n regressionByDiscretization0.setMinimizeAbsoluteError(true);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n \n boolean boolean0 = FileSystemHandling.shouldAllThrowIOExceptions();\n assertTrue(boolean0);\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n \n Instances instances0 = testInstances0.generate(\"weka/core/Capabilities.props\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n \n TestInstances testInstances1 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotSame(testInstances1, testInstances0);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(testInstances1);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getSeed());\n assertEquals(0, testInstances1.getClassType());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(2, testInstances1.getNumClasses());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n \n testInstances0.setNumInstances(11);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotSame(testInstances0, testInstances1);\n assertFalse(testInstances0.equals((Object)testInstances1));\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(11, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props\");\n boolean boolean1 = FileSystemHandling.shouldThrowIOException(evoSuiteFile0);\n assertTrue(boolean1);\n assertTrue(boolean1 == boolean0);\n \n double[] doubleArray0 = new double[4];\n doubleArray0[0] = (double) 2;\n doubleArray0[2] = (double) (-1);\n doubleArray0[3] = (double) (-1);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1, doubleArray0);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertArrayEquals(new double[] {2.0, 0.0, (-1.0), (-1.0)}, doubleArray0, 0.01);\n assertNotNull(binarySparseInstance0);\n assertEquals(4, doubleArray0.length);\n assertEquals(4, binarySparseInstance0.numAttributes());\n assertEquals(3, binarySparseInstance0.numValues());\n assertEquals(1.0, binarySparseInstance0.weight(), 0.01);\n \n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance((Instance) binarySparseInstance0);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertArrayEquals(new double[] {2.0, 0.0, (-1.0), (-1.0)}, doubleArray0, 0.01);\n assertFalse(binarySparseInstance1.equals((Object)binarySparseInstance0));\n assertNotNull(binarySparseInstance1);\n assertEquals(4, doubleArray0.length);\n assertEquals(4, binarySparseInstance0.numAttributes());\n assertEquals(3, binarySparseInstance0.numValues());\n assertEquals(1.0, binarySparseInstance0.weight(), 0.01);\n assertEquals(3, binarySparseInstance1.numValues());\n assertEquals(1.0, binarySparseInstance1.weight(), 0.01);\n assertEquals(4, binarySparseInstance1.numAttributes());\n \n testInstances1.assign(testInstances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotSame(testInstances0, testInstances1);\n assertNotSame(testInstances1, testInstances0);\n assertFalse(testInstances0.equals((Object)testInstances1));\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(11, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getSeed());\n assertEquals(0, testInstances1.getClassType());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(11, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumClasses());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertFalse(testInstances1.getNoClass());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n \n SparseInstance sparseInstance0 = new SparseInstance((SparseInstance) binarySparseInstance1);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertArrayEquals(new double[] {2.0, 0.0, (-1.0), (-1.0)}, doubleArray0, 0.01);\n assertFalse(binarySparseInstance0.equals((Object)binarySparseInstance1));\n assertFalse(binarySparseInstance1.equals((Object)binarySparseInstance0));\n assertNotNull(sparseInstance0);\n assertEquals(4, doubleArray0.length);\n assertEquals(3, sparseInstance0.numValues());\n assertEquals(1.0, sparseInstance0.weight(), 0.01);\n assertEquals(4, sparseInstance0.numAttributes());\n assertEquals(4, binarySparseInstance0.numAttributes());\n assertEquals(3, binarySparseInstance0.numValues());\n assertEquals(1.0, binarySparseInstance0.weight(), 0.01);\n assertEquals(3, binarySparseInstance1.numValues());\n assertEquals(1.0, binarySparseInstance1.weight(), 0.01);\n assertEquals(4, binarySparseInstance1.numAttributes());\n \n boolean boolean2 = instances0.add((Instance) binarySparseInstance0);\n assertTrue(boolean2);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertArrayEquals(new double[] {2.0, 0.0, (-1.0), (-1.0)}, doubleArray0, 0.01);\n assertNotSame(testInstances0, testInstances1);\n assertNotSame(binarySparseInstance0, binarySparseInstance1);\n assertTrue(boolean2 == boolean0);\n assertTrue(boolean2 == boolean1);\n assertFalse(testInstances0.equals((Object)testInstances1));\n assertFalse(binarySparseInstance0.equals((Object)binarySparseInstance1));\n assertEquals(4, doubleArray0.length);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(11, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(21, instances0.numInstances());\n assertEquals(21.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(21, instances0.size());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, binarySparseInstance0.numAttributes());\n assertEquals(3, binarySparseInstance0.numValues());\n assertEquals(1.0, binarySparseInstance0.weight(), 0.01);\n \n IBk iBk0 = new IBk(12);\n assertEquals(1, IBk.WEIGHT_NONE);\n assertEquals(2, IBk.WEIGHT_INVERSE);\n assertEquals(4, IBk.WEIGHT_SIMILARITY);\n assertNotNull(iBk0);\n assertFalse(iBk0.getCrossValidate());\n assertEquals(\"The nearest neighbour search algorithm to use (Default: weka.core.neighboursearch.LinearNNSearch).\", iBk0.nearestNeighbourSearchAlgorithmTipText());\n assertEquals(12, iBk0.getKNN());\n assertEquals(\"The number of neighbours to use.\", iBk0.KNNTipText());\n assertEquals(\"Whether the mean squared error is used rather than mean absolute error when doing cross-validation for regression problems.\", iBk0.meanSquaredTipText());\n assertEquals(\"Gets the distance weighting method used.\", iBk0.distanceWeightingTipText());\n assertEquals(0, iBk0.getWindowSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", iBk0.debugTipText());\n assertFalse(iBk0.getDebug());\n assertEquals(\"Gets the maximum number of instances allowed in the training pool. The addition of new instances above this value will result in old instances being removed. A value of 0 signifies no limit to the number of training instances.\", iBk0.windowSizeTipText());\n assertEquals(\"Whether hold-one-out cross-validation will be used to select the best k value.\", iBk0.crossValidateTipText());\n assertFalse(iBk0.getMeanSquared());\n \n TechnicalInformation technicalInformation0 = iBk0.getTechnicalInformation();\n assertEquals(1, IBk.WEIGHT_NONE);\n assertEquals(2, IBk.WEIGHT_INVERSE);\n assertEquals(4, IBk.WEIGHT_SIMILARITY);\n assertNotNull(technicalInformation0);\n assertFalse(iBk0.getCrossValidate());\n assertEquals(\"The nearest neighbour search algorithm to use (Default: weka.core.neighboursearch.LinearNNSearch).\", iBk0.nearestNeighbourSearchAlgorithmTipText());\n assertEquals(12, iBk0.getKNN());\n assertEquals(\"The number of neighbours to use.\", iBk0.KNNTipText());\n assertEquals(\"Whether the mean squared error is used rather than mean absolute error when doing cross-validation for regression problems.\", iBk0.meanSquaredTipText());\n assertEquals(\"Gets the distance weighting method used.\", iBk0.distanceWeightingTipText());\n assertEquals(0, iBk0.getWindowSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", iBk0.debugTipText());\n assertFalse(iBk0.getDebug());\n assertEquals(\"Gets the maximum number of instances allowed in the training pool. The addition of new instances above this value will result in old instances being removed. A value of 0 signifies no limit to the number of training instances.\", iBk0.windowSizeTipText());\n assertEquals(\"Whether hold-one-out cross-validation will be used to select the best k value.\", iBk0.crossValidateTipText());\n assertFalse(iBk0.getMeanSquared());\n assertFalse(technicalInformation0.hasAdditional());\n assertEquals(TechnicalInformation.Type.ARTICLE, technicalInformation0.getType());\n \n boolean boolean3 = instances0.add((Instance) binarySparseInstance0);\n assertTrue(boolean3);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertArrayEquals(new double[] {2.0, 0.0, (-1.0), (-1.0)}, doubleArray0, 0.01);\n assertNotSame(testInstances0, testInstances1);\n assertNotSame(binarySparseInstance0, binarySparseInstance1);\n assertFalse(testInstances0.equals((Object)testInstances1));\n assertTrue(boolean3 == boolean1);\n assertTrue(boolean3 == boolean2);\n assertTrue(boolean3 == boolean0);\n assertFalse(binarySparseInstance0.equals((Object)binarySparseInstance1));\n assertEquals(4, doubleArray0.length);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(11, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(22.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(22, instances0.numInstances());\n assertEquals(1, instances0.numClasses());\n assertEquals(22, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, binarySparseInstance0.numAttributes());\n assertEquals(3, binarySparseInstance0.numValues());\n assertEquals(1.0, binarySparseInstance0.weight(), 0.01);\n \n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertFalse(testInstances0.equals((Object)testInstances1));\n assertNotNull(evaluation0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(11, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(22.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(22, instances0.numInstances());\n assertEquals(1, instances0.numClasses());\n assertEquals(22, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n \n // Undeclared exception!\n try { \n evaluation0.weightedAreaUnderPRC();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "05b5dcf7133b40c557c6e02b7b3832dc", "score": "0.6607439", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n SimpleLinearRegression simpleLinearRegression0 = new SimpleLinearRegression();\n REPTree rEPTree0 = new REPTree();\n Capabilities capabilities0 = rEPTree0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(properties0);\n Attribute attribute0 = new Attribute(\"weka/core/Capabilities.props\", linkedList0, protectedProperties0);\n capabilities0.test(attribute0);\n capabilities0.test(attribute0);\n testInstances0.setNumClasses(4);\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(70);\n SparseInstance sparseInstance0 = new SparseInstance((SparseInstance) binarySparseInstance0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01);\n \n String string0 = evaluation0.toClassDetailsString(\"\\tOutput synopsis for classifier (use in conjunction with -h)\\n\");\n assertEquals(\"\\tOutput synopsis for classifier (use in conjunction with -h)\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n }", "title": "" }, { "docid": "a6e66b10576e814a703760aef5a9874e", "score": "0.6550806", "text": "@Test(timeout = 4000)\n public void test49() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[20][8];\n Attribute attribute0 = new Attribute(\"rRZ@\\\"zX$H&iQKV\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n attribute0.indexOfValue(\">Fe!{#-{\");\n Instances instances0 = new Instances(\"-M <num>\", arrayList0, 0);\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n discretize0.getFindNumBins();\n attribute0.equalsMsg(discretize0);\n arrayList1.add(attribute0);\n discretize0.setInputFormat(instances0);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/Capabilities.props\");\n discretize0.m_MakeBinary = true;\n discretize0.isFirstBatchDone();\n Function.identity();\n Attribute.typeToString(0);\n discretize0.isOutputFormatDefined();\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4);\n discretize0.m_CutPoints = doubleArray0;\n attribute0.copy(\"@data\");\n SparseInstance sparseInstance0 = new SparseInstance(1);\n FileSystemHandling.shouldThrowIOException(evoSuiteFile0);\n discretize0.setOutputFormat();\n discretize0.convertInstance(binarySparseInstance0);\n Discretize discretize1 = new Discretize();\n // Undeclared exception!\n try { \n discretize1.calculateCutPointsByEqualFrequencyBinning(2);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "title": "" }, { "docid": "dd86c7d80e44f3666192de1e0e4bd51e", "score": "0.6534919", "text": "@Test(timeout = 4000)\n public void test75() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.globalInfo();\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n }", "title": "" }, { "docid": "9009ceb5d1a01a060b29c75e8f801315", "score": "0.6506906", "text": "@Test(timeout = 4000)\n public void test37() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[20][8];\n Attribute attribute0 = new Attribute(\"rRZ@\\\"zX$H&iQKV\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n attribute0.indexOfValue(\">Fe!{#-{\");\n Instances instances0 = new Instances(\"-M <num>\", arrayList0, 0);\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n discretize0.getFindNumBins();\n attribute0.equalsMsg(discretize0);\n arrayList1.add(attribute0);\n discretize0.setInputFormat(instances0);\n discretize0.m_MakeBinary = true;\n discretize0.batchFinished();\n Function.identity();\n Attribute.typeToString(0);\n discretize0.isOutputFormatDefined();\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4);\n discretize0.m_CutPoints = doubleArray0;\n discretize0.calculateCutPoints();\n discretize0.calculateCutPointsByEqualWidthBinning(0);\n System.setCurrentTimeMillis((-1L));\n DenseInstance denseInstance0 = new DenseInstance(binarySparseInstance0);\n discretize0.convertInstance(denseInstance0);\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "8e2720034493ce774a9514e1f06e0919", "score": "0.65067726", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n discretize0.setAttributeIndices(\"\");\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "019403d6c4437d89138916de9302f547", "score": "0.6506652", "text": "@Test\n public void testCalculateLossToRatscase6() {\n }", "title": "" }, { "docid": "8a4f11a8ba6e1c0f20088e86dde0b371", "score": "0.6505015", "text": "@Test(timeout = 4000)\n public void test02() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \" ( \");\n TextDirectoryLoader textDirectoryLoader1 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader1.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.m_Incorrect;\n org.evosuite.runtime.Random.setNextRandom(58);\n evaluation0.setNumericPriorsFromBuffer();\n evaluation0.areaUnderROC(58);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "debc6d70bfed31dd021ab24dd44c9aa7", "score": "0.6501591", "text": "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Attribute attribute0 = new Attribute(\">nV*vx?;v8sY\", linkedList0, 70);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\">nV*vx?;v8sY\", arrayList0, 0);\n instances0.delete();\n arrayList0.add(attribute0);\n discretize0.setInputFormat(instances0);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/Capabilities.props\");\n boolean boolean0 = discretize0.m_FindNumBins;\n Function.identity();\n Attribute.typeToString(82);\n discretize0.isOutputFormatDefined();\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(68);\n attribute0.copy(\"the environment variable \");\n SparseInstance sparseInstance0 = new SparseInstance(68);\n FileSystemHandling.shouldThrowIOException(evoSuiteFile0);\n discretize0.setOutputFormat();\n discretize0.calculateCutPoints();\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Attribute names are not unique! Causes: '>nV*vx?;v8sY' \n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "title": "" }, { "docid": "c049a033d8a77b384ebb65553ec45491", "score": "0.64922243", "text": "@Test\n public void testCalculateLossToRatscase4() {\n }", "title": "" }, { "docid": "09a303efef6bd2221e4c877de5da20e8", "score": "0.6489368", "text": "@Test\n public void testCalculateLossToRatscase1() {\n// this.console.println(\"calculateLossToRats\");\n// int tithesPercent = 10;\n// int wheatInStorage = 105;\n// int expResult = 5;\n// int result = WheatControl.calculateLossToRats(tithesPercent, wheatInStorage);\n// assertEquals(expResult, result);\n\n }", "title": "" }, { "docid": "6cd75ca2651e618cc397ed47d4cc4140", "score": "0.64768785", "text": "@Test(timeout = 4000)\n public void test17() throws Throwable {\n JRip jRip0 = new JRip();\n DecisionTable decisionTable0 = new DecisionTable();\n jRip0.listOptions();\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n SelectedTag selectedTag0 = costSensitiveClassifier0.getCostMatrixSource();\n decisionTable0.setEvaluationMeasure(selectedTag0);\n jRip0.setMinNo((-1552.2764));\n String[] stringArray0 = jRip0.getOptions();\n Attribute attribute0 = new Attribute(\"\");\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n jRip_NumericAntd0.toString();\n jRip_NumericAntd0.accu = (-1297.30527742);\n jRip0.globalInfo();\n JRip.main(stringArray0);\n jRip_NumericAntd0.getRevision();\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n jRip_RipperRule0.hasAntds();\n jRip_RipperRule0.toString(attribute0);\n jRip_RipperRule0.hasAntds();\n jRip_RipperRule0.hasAntds();\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n jRip_NominalAntd0.getRevision();\n double double0 = jRip_NumericAntd0.getSplitPoint();\n assertEquals((-1552.2764), jRip0.getMinNo(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "667226818c92759ac0a8e5649d7b6e55", "score": "0.64650375", "text": "@Test(timeout = 4000)\n public void test53() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setOutputFormat();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "39ea58af03b7488101a858b1749c8d56", "score": "0.6459085", "text": "@Test(timeout = 4000)\n public void test56() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(0);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getFindNumBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "527200702546e2919004996533c532a0", "score": "0.6458752", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString((-3573));\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n }", "title": "" }, { "docid": "4afe76c0ec577fabd760599507434bc5", "score": "0.64574444", "text": "@Test\n public void testCalculateLossToRatscase5() {\n }", "title": "" }, { "docid": "7f18475edbb1071a64ca3808d565127c", "score": "0.64302796", "text": "@Test\n public void testHeterozyosity() {\n HashMap<Double, String> e = new HashMap<Double, String>();\n e.put( 0.01, \"ee390f91867e8729b96220115e56ddb3\" );\n e.put( 1.0 / 1850, \"f96ad0ed71449bdb16b0c5561303a05a\" );\n \n for ( Map.Entry<Double, String> entry : e.entrySet() ) {\n WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec(\n \"-T UnifiedGenotyper -vf GELI -R \" + oneKGLocation + \"reference/human_b36_both.fasta -I \" + validationDataLocation + \"NA12878.1kg.p2.chr1_10mb_11_mb.SLX.bam -varout %s -L 1:10,000,000-10,100,000 -bm empirical -gm JOINT_ESTIMATE -confidence 30 --heterozygosity \" + entry.getKey(), 1,\n Arrays.asList(entry.getValue()));\n executeTest(String.format(\"testHeterozyosity[%s]\", entry.getKey()), spec);\n }\n }", "title": "" }, { "docid": "f8d9ab68a17b303d6423e40f7925feb1", "score": "0.6428514", "text": "@Test(timeout = 4000)\n public void test90() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n \n regressionByDiscretization0.setMinimizeAbsoluteError(true);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n \n boolean boolean0 = FileSystemHandling.shouldAllThrowIOExceptions();\n assertTrue(boolean0);\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n \n Instances instances0 = testInstances0.generate(\"weka/core/Capabilities.props\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n \n Stream<Instance> stream0 = instances0.parallelStream();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(stream0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n \n testInstances0.setNumInstances(11);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(11, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n \n testInstances0.setNumString(0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(11, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(11, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n evaluation0.m_CoverageStatisticsAvailable = false;\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(11, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n double double0 = evaluation0.correlationCoefficient();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(11, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n Integer integer0 = new Integer((-1));\n assertEquals((-1), (int)integer0);\n assertNotNull(integer0);\n \n CostMatrix costMatrix0 = new CostMatrix(11);\n assertNotNull(costMatrix0);\n assertEquals(11, costMatrix0.numRows());\n assertEquals(11, costMatrix0.size());\n assertEquals(11, costMatrix0.numColumns());\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n boolean boolean1 = FileSystemHandling.appendLineToFile(evoSuiteFile0, \".cost\");\n assertTrue(boolean1);\n assertTrue(boolean1 == boolean0);\n \n double[] doubleArray0 = new double[6];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = Double.NaN;\n doubleArray0[2] = (double) 0;\n doubleArray0[3] = (double) (-2);\n doubleArray0[4] = (double) 11;\n doubleArray0[5] = Double.NaN;\n double double1 = evaluation0.sizeOfPredictedRegions();\n assertEquals(Double.NaN, double1, 0.01);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(double1, double0, 0.01);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(11, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n RegressionByDiscretization regressionByDiscretization1 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertFalse(regressionByDiscretization1.equals((Object)regressionByDiscretization0));\n assertNotNull(regressionByDiscretization1);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization1.classifierTipText());\n assertFalse(regressionByDiscretization1.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization1.estimatorTypeTipText());\n assertFalse(regressionByDiscretization1.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization1.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization1.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization1.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization1.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization1.getNumBins());\n assertFalse(regressionByDiscretization1.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization1.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization1.debugTipText());\n \n // Undeclared exception!\n try { \n testInstances0.setRelationalFormat(346, instances0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 346\n //\n verifyException(\"weka.core.TestInstances\", e);\n }\n }", "title": "" }, { "docid": "a1309f021c1033f2b2ae3266b7a92a48", "score": "0.6396016", "text": "@Test(timeout = 4000)\n public void test69() throws Throwable {\n Discretize discretize0 = new Discretize(\":cMP\");\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(7, stringArray0.length);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n }", "title": "" }, { "docid": "46d734a9c0b100de7279b5582247f275", "score": "0.63937676", "text": "@Test(timeout = 4000)\n public void test83() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.findNumBinsTipText();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n }", "title": "" }, { "docid": "02e7505049e52022a3881831985f37c6", "score": "0.63857293", "text": "@Test\n public void testCalculateLossToRatscase3() {\n }", "title": "" }, { "docid": "e58f4cb13b871de234d9a412991d82d0", "score": "0.63669616", "text": "@Test(timeout = 4000)\n public void test57() throws Throwable {\n Discretize discretize0 = new Discretize(\"O2;tfJ\");\n discretize0.getCutPoints(44);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "d9ad085ba3a9b808f83af8eb61781911", "score": "0.6353614", "text": "@Test(timeout = 4000)\n public void test29() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints(0);\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "b4562d0e08a40295126ba424474e952b", "score": "0.6349467", "text": "@Test\n public void testCalculateLossToRatscase2() {\n }", "title": "" }, { "docid": "0f9cb6eb1d7461716610dd8f723695a7", "score": "0.6344178", "text": "@Test(timeout = 4000)\n public void test80() throws Throwable {\n boolean boolean0 = FileSystemHandling.createFolder((EvoSuiteFile) null);\n assertFalse(boolean0);\n \n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n \n regressionByDiscretization0.setMinimizeAbsoluteError(true);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n \n boolean boolean1 = FileSystemHandling.shouldAllThrowIOExceptions();\n assertTrue(boolean1);\n assertFalse(boolean1 == boolean0);\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n \n Instances instances0 = testInstances0.generate(\"weka/core/Capabilities.props\");\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n \n String string0 = regressionByDiscretization0.getRevision();\n assertEquals(\"8034\", string0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(string0);\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n \n Stream<Instance> stream0 = instances0.stream();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(stream0);\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n \n testInstances0.setNumInstances(11);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(11, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n \n testInstances0.setNumString(0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(11, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(11, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n evaluation0.m_CoverageStatisticsAvailable = false;\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(11, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n double double0 = evaluation0.correlationCoefficient();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(11, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n Integer integer0 = new Integer((-1));\n assertEquals((-1), (int)integer0);\n assertNotNull(integer0);\n \n double double1 = evaluation0.m_ClassPriorsSum;\n assertEquals(20.0, double1, 0.01);\n assertNotEquals(double1, double0, 0.01);\n \n double double2 = evaluation0.correlationCoefficient();\n assertEquals(Double.NaN, double2, 0.01);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(double2, double0, 0.01);\n assertNotEquals(double2, double1, 0.01);\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(11, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n double double3 = evaluation0.coverageOfTestCasesByPredictedRegions();\n assertEquals(Double.NaN, double3, 0.01);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(double3, double2, 0.01);\n assertEquals(double3, double0, 0.01);\n assertNotEquals(double3, double1, 0.01);\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(11, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n }", "title": "" }, { "docid": "15daff5aee3d9b35718bf26a00d04dad", "score": "0.63245", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n discretize0.setInvertSelection(false);\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "ddb6d6c3b62110b154bd07b241ced10a", "score": "0.6313562", "text": "@Test(timeout = 4000)\n public void test76() throws Throwable {\n Discretize discretize0 = new Discretize(\"O2;tfJ\");\n String string0 = discretize0.binsTipText();\n assertEquals(10, discretize0.getBins());\n assertEquals(\"Number of bins.\", string0);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "8aaa2503c6be0f2f482d06610a9c5e40", "score": "0.63039404", "text": "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n Attribute attribute0 = new Attribute(\"rRZ@\\\"zX$H&iQKV\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"@attribute\", arrayList0, 0);\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n discretize0.getFindNumBins();\n instances0.containsAll(arrayList0);\n arrayList1.add(attribute0);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n discretize0.batchFinished();\n boolean boolean1 = discretize0.batchFinished();\n assertTrue(boolean1 == boolean0);\n \n Function.identity();\n Attribute.typeToString(100);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(80);\n SparseInstance sparseInstance0 = new SparseInstance(2);\n sparseInstance0.toStringMaxDecimalDigits((-2780));\n discretize0.convertInstance(sparseInstance0);\n discretize0.setOutputFormat();\n discretize0.convertInstance(sparseInstance0);\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "8d80ea7f5d24d4a62f9412ff39c83bc8", "score": "0.62997204", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n JRip jRip0 = new JRip();\n DecisionTable decisionTable0 = new DecisionTable();\n jRip0.listOptions();\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n SelectedTag selectedTag0 = costSensitiveClassifier0.getCostMatrixSource();\n decisionTable0.setEvaluationMeasure(selectedTag0);\n jRip0.setMinNo((-1552.2764));\n String[] stringArray0 = jRip0.getOptions();\n Attribute attribute0 = new Attribute(\"\");\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n jRip_NumericAntd0.toString();\n jRip0.globalInfo();\n JRip.main(stringArray0);\n jRip_NumericAntd0.getRevision();\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n jRip_RipperRule0.hasAntds();\n double[] doubleArray0 = new double[0];\n SparseInstance sparseInstance0 = new SparseInstance((-1552.2764), doubleArray0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance((Instance) sparseInstance0);\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance((SparseInstance) binarySparseInstance0);\n jRip_RipperRule0.copy();\n jRip_RipperRule0.size();\n jRip0.setOptions(stringArray0);\n assertEquals((-1552.2764), jRip0.getMinNo(), 0.01);\n }", "title": "" }, { "docid": "4a28bb824d533808a49fb7c4e49c63cb", "score": "0.62920016", "text": "public double nominalee_main() {\n\t\tdouble entropy = 0.0;\n\t\tfor(Map.Entry<T, Double> entry : data.entrySet()) {\n\t\t\tdouble possibility = entry.getValue() / totalCount;\n\t\t\tentropy += -(possibility * Math.log10(possibility));\n\t\t}\n\t\treturn entropy;\n\t}", "title": "" }, { "docid": "28b15267da9573d02397cb0103e90ae2", "score": "0.6283223", "text": "@Test(timeout = 4000)\n public void test42() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[20][8];\n Attribute attribute0 = new Attribute(\"rRZ@\\\"zX$H&iQKV\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n attribute0.indexOfValue(\">Fe!{#-{\");\n Instances instances0 = new Instances(\"-F\", arrayList0, 0);\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n discretize0.getFindNumBins();\n attribute0.equalsMsg(discretize0);\n arrayList1.add(attribute0);\n discretize0.setInputFormat(instances0);\n discretize0.m_MakeBinary = true;\n discretize0.batchFinished();\n Function.identity();\n Attribute.typeToString(0);\n discretize0.isOutputFormatDefined();\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4);\n discretize0.m_CutPoints = doubleArray0;\n attribute0.copy(\"@data\");\n discretize0.setInvertSelection(true);\n SparseInstance sparseInstance0 = new SparseInstance(1);\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance(sparseInstance0);\n SparseInstance sparseInstance1 = new SparseInstance(sparseInstance0);\n discretize0.input(sparseInstance0);\n Random.setNextRandom(2957);\n }", "title": "" }, { "docid": "94ef7eafacea61ef96fc090c4e8dd8ba", "score": "0.62754726", "text": "@Test(timeout = 4000)\n public void test65() throws Throwable {\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ArrayList<String> arrayList0 = new ArrayList<String>();\n Attribute attribute0 = new Attribute(\"\", arrayList0, protectedProperties0);\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n arrayList1.add(attribute0);\n Instances instances0 = new Instances(\"numeric\", arrayList1, 3);\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getFindNumBins());\n \n discretize0.m_FindNumBins = true;\n discretize0.setInputFormat(instances0);\n boolean boolean0 = discretize0.batchFinished();\n assertTrue(discretize0.getFindNumBins());\n assertFalse(boolean0);\n }", "title": "" }, { "docid": "0fb8a2b5634679959436d01b9cb65200", "score": "0.62703", "text": "@Test(timeout = 4000)\n public void test64() throws Throwable {\n Attribute attribute0 = new Attribute(\"]\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"!+8\", arrayList0, 6);\n Discretize discretize0 = new Discretize(\"\");\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertTrue(boolean1 == boolean0);\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertTrue(discretize0.isNewBatch());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(boolean1);\n }", "title": "" }, { "docid": "3457aba0648284f0417aebb044abeadc", "score": "0.62641114", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n Discretize discretize0 = new Discretize(\"MJ\");\n discretize0.setUseEqualFrequency(false);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "8df38465dcf91752271789a529762cac", "score": "0.6245181", "text": "@Test(timeout = 4000)\n public void test80() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\n\\n\");\n int[] intArray0 = new int[0];\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "d41d603c1746913e46e283745b1463cf", "score": "0.62427074", "text": "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertEquals(10, discretize0.getBins());\n \n discretize0.setBins(0);\n assertEquals(0, discretize0.getBins());\n }", "title": "" }, { "docid": "f9255fb0925b0dee652729efc67a532e", "score": "0.6231611", "text": "@Test(timeout = 4000)\n public void test67() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getUseBinNumbers());\n \n discretize0.setUseBinNumbers(true);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Locale locale0 = new Locale(\"MnzR/]h&]]tEL\", \"|*m\");\n Set<String> set0 = locale0.getUnicodeLocaleAttributes();\n LinkedList<String> linkedList0 = new LinkedList<String>(set0);\n Attribute attribute0 = new Attribute(\"MnzR/]h&]]tEL\", linkedList0, 68);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"f(Xxwwm>9eXvNnF1\", arrayList0, 1);\n discretize0.setInputFormat(instances0);\n boolean boolean0 = discretize0.batchFinished();\n assertTrue(discretize0.getUseBinNumbers());\n assertFalse(boolean0);\n }", "title": "" }, { "docid": "d5ed4397f83fb464712911d228d06933", "score": "0.6226383", "text": "@Test\n public void test_evaluate(){\n empty_ch.genes.addAll(Arrays.asList(1, 2, 3, 4));\n double score = empty_ch.evaluate(f_stub.map);\n \n assertEquals(38.0, score, 0.001);\n }", "title": "" }, { "docid": "6ccf4b32fb8d0059074361357a2e3cab", "score": "0.62257296", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"]\");\n assertFalse(discretize0.getMakeBinary());\n \n String[] stringArray0 = new String[0];\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "19baac628a62b097464f6c4ad8a3278c", "score": "0.62234956", "text": "@Test(timeout = 4000)\n public void test46() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[20][8];\n Attribute attribute0 = new Attribute(\"rRZ@\\\"zX$H&iQKV\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"-M <num>\", arrayList0, 0);\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n discretize0.getFindNumBins();\n attribute0.equalsMsg(discretize0);\n arrayList1.add(attribute0);\n discretize0.setInputFormat(instances0);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/Capabilities.props\");\n FileSystemHandling.shouldThrowIOException(evoSuiteFile0);\n discretize0.m_MakeBinary = true;\n discretize0.batchFinished();\n Function.identity();\n Attribute.typeToString(0);\n discretize0.isOutputFormatDefined();\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4);\n discretize0.m_CutPoints = doubleArray0;\n attribute0.copy(\"@data\");\n SparseInstance sparseInstance0 = new SparseInstance(1);\n // Undeclared exception!\n try { \n discretize0.input(binarySparseInstance0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "489156b9d18581907706df42417eee1f", "score": "0.6220838", "text": "@Test(timeout = 4000)\n public void test10() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n InputMappedClassifier inputMappedClassifier1 = new InputMappedClassifier();\n Capabilities capabilities0 = inputMappedClassifier1.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate(\"elily\");\n naiveBayesMultinomialText0.buildClassifier(instances0);\n capabilities0.dependencies();\n naiveBayesMultinomialText0.toString();\n Random.setNextRandom((-2));\n String string0 = naiveBayesMultinomialText0.toString();\n assertEquals(\"The independent probability of a class\\n--------------------------------------\\nclass1\\t9.0\\nclass2\\t4.0\\nclass3\\t7.0\\nclass4\\t4.0\\n\\nThe probability of a word given the class\\n-----------------------------------------\\n\\tclass1\\tclass2\\tclass3\\tclass4\\t\\nover\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\nthe\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\nThe\\t7.38905609893065\\t2.718281828459045\\t7.38905609893065\\t2.718281828459045\\t\\nquick\\t7.38905609893065\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\nlazy\\t7.38905609893065\\t2.718281828459045\\t7.38905609893065\\t2.718281828459045\\t\\njumps\\t20.085536923187668\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\nbrown\\t7.38905609893065\\t7.38905609893065\\t2.718281828459045\\t2.718281828459045\\t\\ndog\\t7.38905609893065\\t2.718281828459045\\t7.38905609893065\\t2.718281828459045\\t\\nfox\\t2.718281828459045\\t2.718281828459045\\t7.38905609893065\\t7.38905609893065\\t\\n\", string0);\n \n String[] stringArray0 = naiveBayesMultinomialText0.getOptions();\n assertEquals(3.0, naiveBayesMultinomialText0.getMinWordFrequency(), 0.01);\n assertEquals(2.0, naiveBayesMultinomialText0.getLNorm(), 0.01);\n assertEquals(1.0, naiveBayesMultinomialText0.getNorm(), 0.01);\n assertEquals(0, naiveBayesMultinomialText0.getPeriodicPruning());\n assertEquals(12, stringArray0.length);\n }", "title": "" }, { "docid": "8f14b79d8b1215b9bd06398afa036420", "score": "0.62185", "text": "@Test(timeout = 4000)\n public void test77() throws Throwable {\n Discretize discretize0 = new Discretize(\"O2;tfJ\");\n String string0 = discretize0.makeBinaryTipText();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "a211bf37c6aba33205830a9e9fc5ce22", "score": "0.62097466", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setMakeBinary(false);\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "c7280b2da7e05105832dd82335bca740", "score": "0.6207565", "text": "@Test(timeout = 4000)\n public void test74() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.useBinNumbersTipText();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals(\"Use bin numbers (eg BXofY) rather than ranges for for discretized attributes\", string0);\n }", "title": "" }, { "docid": "e2564704da91c02edfe1b2b3f2d980a8", "score": "0.6204277", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.enumerateMeasures();\n long long0 = jRip0.getSeed();\n assertTrue(jRip0.getUsePruning());\n assertEquals(1L, long0);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(3, jRip0.getFolds());\n assertEquals(2, jRip0.getOptimizations());\n }", "title": "" }, { "docid": "d6dc0bd4ada26adad36e61c8e94a9353", "score": "0.61991274", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setAttributeIndices(\"&,<\");\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "15938c60135185b60ef6fdc6ed2cccc8", "score": "0.6190989", "text": "@Test(timeout = 4000)\n public void test73() throws Throwable {\n Discretize discretize0 = new Discretize(\"]\");\n String string0 = discretize0.useEqualFrequencyTipText();\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", string0);\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "6672deb5742c472ee8254eaa69bff862", "score": "0.61893356", "text": "@Test(timeout = 4000)\n public void test29() throws Throwable {\n JRip jRip0 = new JRip();\n BayesNet bayesNet0 = new BayesNet();\n Locale locale0 = Locale.SIMPLIFIED_CHINESE;\n locale0.getUnicodeLocaleAttributes();\n ArrayList<String> arrayList0 = new ArrayList<String>();\n Attribute attribute0 = new Attribute(\"Etwn|m8HTfHvIogwKG_\", arrayList0);\n FileSystemHandling.shouldAllThrowIOExceptions();\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n int[] intArray0 = new int[10];\n intArray0[0] = 1;\n intArray0[1] = 2;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(0, intArray0, 4);\n boolean boolean0 = jRip_NominalAntd0.covers(binarySparseInstance0);\n assertTrue(boolean0);\n \n double double0 = jRip_NominalAntd0.getMaxInfoGain();\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(0.0, double0, 0.01);\n assertEquals(3, jRip0.getFolds());\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n }", "title": "" }, { "docid": "21abaafd8b5848ba946224868bfc460b", "score": "0.61872876", "text": "public double coverage(TestCase test) throws CoverageComputationException;", "title": "" }, { "docid": "14c18fb8b51cb8eba47dc98a1956fd36", "score": "0.61777467", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n discretize0.setInvertSelection(true);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "f4d6ee7a3779c390e28cc5eec51ef7b3", "score": "0.6175063", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize();\n int int0 = discretize0.getBins();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, int0);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "7a1ca2aac6bff7b0912490f4124e4cc4", "score": "0.6173814", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_IgnoreClass = true;\n String[] stringArray0 = discretize0.getOptions();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertEquals(7, stringArray0.length);\n }", "title": "" }, { "docid": "39d7eb70a376875de27c9362a2b7d818", "score": "0.61532646", "text": "@Test\n public void testComputeStatistics() {\n }", "title": "" }, { "docid": "cc928c8407c6687d7b5d141dac50634d", "score": "0.61344516", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"import weka.core.Attribute;\";\n stringArray0[1] = \"-R\";\n stringArray0[2] = \"r/g\\\"RthBF`,gl3$-(\";\n discretize0.setOptions(stringArray0);\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "2837bf6a398e5c00d373ef090121d575", "score": "0.6134106", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Discretize discretize0 = new Discretize(\"O2;tfJ\");\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n \n discretize0.setDesiredWeightOfInstancesPerInterval(0.0);\n assertEquals(0.0, discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "11b9612eff3b7f239105e81db6dac7f3", "score": "0.61308557", "text": "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize(\"]\");\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning((-1431655763));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "54816d83f2d76b6606fae29ec74e0f82", "score": "0.6128558", "text": "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Discretize discretize0 = new Discretize(\"O2;tfJ\");\n discretize0.getAttributeIndices();\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "ba5e54a2e7f41faa9dd318469aefc725", "score": "0.6125668", "text": "@Test(timeout = 4000)\n public void test70() throws Throwable {\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ArrayList<String> arrayList0 = new ArrayList<String>();\n Attribute attribute0 = new Attribute(\"\", arrayList0, protectedProperties0);\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n arrayList1.add(attribute0);\n Instances instances0 = new Instances(\"numeric\", arrayList1, 3);\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getMakeBinary());\n \n boolean boolean0 = discretize0.setInputFormat(instances0);\n assertFalse(boolean0);\n \n discretize0.setOptions((String[]) null);\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "5812970b6e55ece8c0a136eadff9df13", "score": "0.61243266", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setUseBinNumbers(false);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "b72a85e1bc6ad6cd0bda5bf0849190c5", "score": "0.6119992", "text": "@Test(timeout = 4000)\n public void test03() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "6c7b4bbc5f61d401923c192b97baf9d3", "score": "0.6110075", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.useBinNumbersTipText();\n assertEquals(\"Use bin numbers (eg BXofY) rather than ranges for for discretized attributes\", string0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "3e6295733d3122d33a6d7fa6162b041d", "score": "0.6110013", "text": "@Test(timeout = 4000)\n public void test72() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.invertSelectionTipText();\n assertEquals(10, discretize0.getBins());\n assertEquals(\"Set attribute selection mode. If false, only selected (numeric) attributes in the range will be discretized; if true, only non-selected attributes will be discretized.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "9b33b4b1023b107273397c05f9d2db17", "score": "0.6106313", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setFindNumBins(false);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "d586f1d5cbf30e9fffce463e975f8dbe", "score": "0.6106131", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n Discretize discretize0 = new Discretize(\"]\");\n discretize0.getCapabilities();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "258db17add9b1734144241bd4c70cb39", "score": "0.6104747", "text": "@Test(timeout = 4000)\n public void test82() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.attributeIndicesTipText();\n assertEquals(\"Specify range of attributes to act on. This is a comma separated list of attribute indices, with \\\"first\\\" and \\\"last\\\" valid values. Specify an inclusive range with \\\"-\\\". E.g: \\\"first-3,5,6-10,last\\\".\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "c0a2d78f86e2bc98d56806e5b755f560", "score": "0.6085855", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-562));\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "09635c7fe37f41b1e19b5a7f8e2ad9f6", "score": "0.60840815", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n naiveBayesMultinomialText0.setUseWordFrequencies(true);\n InputMappedClassifier inputMappedClassifier1 = new InputMappedClassifier();\n Capabilities capabilities0 = inputMappedClassifier1.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate(\"elily\");\n naiveBayesMultinomialText0.buildClassifier(instances0);\n capabilities0.dependencies();\n Random.setNextRandom((-2));\n }", "title": "" }, { "docid": "7f5057fc3c773e57485b95efa57241f4", "score": "0.6081471", "text": "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Discretize discretize0 = new Discretize();\n Attribute attribute0 = new Attribute(\"rRH@\\\"zX$HkQKV\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n attribute0.indexOfValue(\">Fe!{K-{\");\n Instances instances0 = new Instances(\"-M <num>\", arrayList0, 0);\n discretize0.setInputFormat(instances0);\n discretize0.setBins(1);\n boolean boolean0 = discretize0.m_IgnoreClass;\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning(10);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "e9f4d32b70cc3a76cc86562f3182826d", "score": "0.6081152", "text": "@Test\npublic void testCalculatingEarthMoonRocheLimit()\n{\n assertEquals( 9483750.32, RocheUtil.calculateRocheLimit( 6371040.4736, EARTH_DENSITY, LUNAR_DENSITY ), 0.1 );\n}", "title": "" }, { "docid": "c151e5f8783c617ed4f97fc14baef77a", "score": "0.6074071", "text": "@Test(timeout = 4000)\n public void test48() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tSpecifies the (maximum) number of bins to divide numeric attributes into.\\n\\t(default = 10)\");\n // Undeclared exception!\n try { \n discretize0.calculateCutPoints();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "176f3275e0034d70b84ab54f09eb82f6", "score": "0.60686255", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n JRip jRip0 = new JRip();\n String string0 = jRip0.getRevision();\n assertEquals(\"8118\", string0);\n \n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>(arrayList0);\n Instances instances0 = new Instances(\"8118\", arrayList1, 11);\n Attribute attribute0 = new Attribute(\"@data\");\n attribute0.setWeight(11);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n jRip_NominalAntd0.splitData(instances0, 1862.667787005, 4);\n JRip jRip1 = new JRip();\n JRip.NumericAntd jRip_NumericAntd0 = jRip1.new NumericAntd(attribute0);\n double[] doubleArray0 = new double[5];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) 1;\n doubleArray0[2] = (double) 0;\n doubleArray0[3] = (double) 4;\n doubleArray0[4] = (-2610.771);\n SparseInstance sparseInstance0 = new SparseInstance(1, doubleArray0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance((Instance) sparseInstance0);\n boolean boolean0 = jRip_NumericAntd0.covers(binarySparseInstance0);\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n assertEquals(3, jRip1.getFolds());\n assertTrue(boolean0);\n assertEquals(2.0, jRip1.getMinNo(), 0.01);\n assertEquals(1L, jRip1.getSeed());\n assertTrue(jRip1.getUsePruning());\n assertTrue(jRip1.getCheckErrorRate());\n assertEquals(2, jRip1.getOptimizations());\n assertEquals(Double.NaN, jRip_NumericAntd0.getCover(), 0.01);\n assertFalse(jRip1.getDebug());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getSplitPoint(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccu(), 0.01);\n }", "title": "" }, { "docid": "a22101d0260dfe8539fa7c03eb67c4a0", "score": "0.6068128", "text": "@Test(timeout = 4000)\n public void test81() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.desiredWeightOfInstancesPerIntervalTipText();\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(\"Sets the desired weight of instances per interval for equal-frequency binning.\", string0);\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "f04f12e0a4b8518d92973f1b2d3ade75", "score": "0.6052588", "text": "@Test\n public void getTrickyAvg_testCase2() {\n }", "title": "" }, { "docid": "334651b404712759ca0113cd9583897b", "score": "0.6052527", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n instances0.clear();\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n naiveBayesMultinomialText0.buildClassifier(instances0);\n System.setCurrentTimeMillis((-2));\n Locale.getISOCountries();\n int[] intArray0 = new int[4];\n intArray0[2] = 341;\n intArray0[3] = (-2);\n int[] intArray1 = new int[2];\n intArray1[0] = 341;\n intArray1[1] = (-2);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(341, intArray1, (-1017));\n binarySparseInstance0.deleteAttributeAt(341);\n naiveBayesMultinomialText0.setNormalizeDocLength(true);\n naiveBayesMultinomialText0.distributionForInstance(binarySparseInstance0);\n assertTrue(naiveBayesMultinomialText0.getNormalizeDocLength());\n }", "title": "" }, { "docid": "e1b5b858e91beaad7d24ae9b9e75f288", "score": "0.6051796", "text": "@Test(timeout = 4000)\n public void test71() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertNotNull(textDirectoryLoader0);\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n \n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n \n regressionByDiscretization0.setMinimizeAbsoluteError(false);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n \n boolean boolean0 = FileSystemHandling.shouldAllThrowIOExceptions();\n assertTrue(boolean0);\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n \n Instances instances0 = testInstances0.generate(\"weka/core/Capabilities.props\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n \n testInstances0.setNumString(0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n \n capabilities0.testWithFail(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n \n evaluation0.useNoPriors();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n \n double double0 = evaluation0.sizeOfPredictedRegions();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n \n double double1 = evaluation0.m_SumKBInfo;\n assertEquals(0.0, double1, 0.01);\n assertNotEquals(double1, double0, 0.01);\n }", "title": "" }, { "docid": "db3727d6be59b58f5138c3789907d915", "score": "0.605174", "text": "@Test\n public void calculateHarvest4() {\n }", "title": "" }, { "docid": "1af4602cd0ffba1d5c130b79b03d62fb", "score": "0.6049388", "text": "@Test(timeout = 4000)\n public void test00() throws Throwable {\n Discretize discretize0 = new Discretize();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n Attribute attribute0 = new Attribute(\"2]\", linkedList0, protectedProperties0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances((String) null, arrayList0, 2);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n assertFalse(boolean0);\n \n discretize0.calculateCutPoints();\n discretize0.findNumBins(0);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "495516f8ed2f2ef5a1b90b7b1b2ea903", "score": "0.60405", "text": "@Test\n public void calculateHarvest6() {\n }", "title": "" }, { "docid": "84231a5b04bc66706cf87eff531f4909", "score": "0.60389376", "text": "@Test(enabled=true)\n\tpublic void bigTest() { \n\t\tAssignCellsToSamples assigner = new AssignCellsToSamples();\n\t\tassigner.GQ_THRESHOLD=30;\n\t\tassigner.INPUT_BAM=Collections.singletonList(this.INPUT_BAM);\n\t\tassigner.VCF=this.VCF;\n\t\tassigner.NUM_BARCODES=10;\n\t\tassigner.RETAIN_MONOMORPIC_SNPS=true;\n\n\t\tfinal VCFFileReader vcfReader = new VCFFileReader(this.VCF, false);\n\t\tList<String> vcfSamples =Arrays.asList(donors);\n\n\t\tfinal SNPInfoCollection snpIntervals = SampleAssignmentVCFUtils.getSNPInfoCollection(this.VCF, vcfSamples, assigner.RETAIN_MONOMORPIC_SNPS, 30, 0, null, null, false, null);\n\t\tfinal PeekableIterator<VariantContext> vcfIterator = SampleAssignmentVCFUtils.getVCFIterator(vcfReader, vcfSamples, assigner.RETAIN_MONOMORPIC_SNPS, assigner.GQ_THRESHOLD, assigner.FRACTION_SAMPLES_PASSING, null, null);\n\t\tList<String> cellBarcodes = assigner.getCellBarcodes();\n\t\tPeekableIterator<List<SampleGenotypeProbabilities>> sampleGenotypeIterator = assigner.prepareIterator(snpIntervals, cellBarcodes);\n\n\t\tList<SampleGenotypeProbabilities> allProbs = new ArrayList<>();\n\t\twhile (sampleGenotypeIterator.hasNext()) {\n\t\t\tList<SampleGenotypeProbabilities> r = sampleGenotypeIterator.next();\n\t\t\tallProbs.addAll(r);\n\t\t}\n\n\n\t\tGenotypeMatrix genotypeMatrix = new GenotypeMatrix(vcfIterator, 30, new HashSet<>(vcfSamples));\n\t\tVariantDataFactory f = new VariantDataFactory(\"TTTGCGCGGAGC:ATTGTTTAGGAG\", allProbs, genotypeMatrix, 0.1);\n\t\tFindOptimalDonorMixture fodm = new FindOptimalDonorMixture(f);\n\n\t\tAllPairedSampleAssignmentsForCell result = fodm.findBestDonorPair(\"HUES53\", vcfSamples, false);\n\t\tSamplePairAssignmentForCell best = result.getBestAssignment();\n\t\tAssert.assertEquals(best.getSampleOneSingleLikelihood(),-9.41672233979918, 0.01);\n\t\tAssert.assertEquals(best.getSampleTwoSingleLikelihood(),-11.136782364548424, 0.01);\n\t\tAssert.assertEquals(best.getDoubletLikelihood(),-8.174511498564232, 0.01);\n\t\tAssert.assertEquals(best.getMixture(), 0.603, 0.01);\n\n\t}", "title": "" }, { "docid": "d1da654797d7574bb5640151cb648658", "score": "0.6035004", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setDesiredWeightOfInstancesPerInterval(617);\n assertEquals(617.0, discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "a50b34a702f0aebf69d6f9df39ad3f3f", "score": "0.60302776", "text": "@Test(timeout = 4000)\n public void test157() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixCSV0);\n resultMatrixLatex0.m_StdDevPrec = 1205;\n int int0 = ResultMatrix.SIGNIFICANCE_LOSS;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(125, 1);\n resultMatrixPlainText0.setColHidden(8, false);\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(208, 2839);\n }", "title": "" }, { "docid": "f33085a281d362ddd3c11aeeca0e134a", "score": "0.60283744", "text": "@Test(timeout = 4000)\n public void test43() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[20][8];\n discretize0.m_UseEqualFrequency = true;\n discretize0.m_CutPoints = doubleArray0;\n Attribute attribute0 = new Attribute(\"rRZ@\\\"zX$H&iQKV\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"\", arrayList0, 0);\n ArrayList<Attribute> arrayList1 = new ArrayList<Attribute>();\n arrayList1.add(attribute0);\n discretize0.getBinRangesString(0);\n discretize0.setFindNumBins(true);\n try { \n discretize0.setInputFormat(instances0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Bin number optimization in conjunction with equal-frequency binning not implemented.\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "aa2d131a77e7e349b77b5031ccd69a10", "score": "0.60142064", "text": "@Test\n public void calculateHarvest5() {\n }", "title": "" }, { "docid": "4b4579b0c23d8d6fee9db2afc09d14e5", "score": "0.6013114", "text": "@Test(timeout = 4000)\n public void test24() throws Throwable {\n DecisionStump decisionStump0 = new DecisionStump();\n assertNotNull(decisionStump0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n \n Capabilities capabilities0 = decisionStump0.getCapabilities();\n assertNotNull(capabilities0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertFalse(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n \n Instances instances0 = testInstances0.generate(\"weka/core/Capabilities.props\");\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n \n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n evaluation0.m_SumClass = (double) 1177;\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n // Undeclared exception!\n try { \n evaluation0.updateNumericScores((double[]) null, (double[]) null, (-1.7976931348623157E308));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "c0c133bdc35af75ab9a9cde4071d94d7", "score": "0.60102814", "text": "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.globalInfo();\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "dacb8deaa0870b1c755b0698fe184fba", "score": "0.6010115", "text": "public static void main(String[] args) {\n EquilateralEncoding.load();\n\n Random ran = new Random(0);\n\n int success = 0;\n\n for(int n=0; n < NUM_TESTS; n++) {\n // Pick a species randomly\n int actualIndex = ran.nextInt(ideals.length);\n\n // TODO:\n // 1. Get a random encoding with the actual index.\n // 2. Create a new array of activations perturbed by the tolerance divided by 100.\n // 3. Decode these perturbed activations.\n // 4. If the predicted index equals the actual index, update success count.\n\n }\n\n double rate = (double)success / NUM_TESTS;\n\n System.out.printf(\"%d of %d or %4.2f%% tolerance = %5.2f%%\\n\",success, NUM_TESTS, rate, TOLERANCE);\n }", "title": "" }, { "docid": "ada080adf4c38f8bde277f50ae7999ce", "score": "0.6009651", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n SystemInUtil.addInputLine(\"=`^5&n/0M\");\n Discretize discretize0 = new Discretize();\n Range range0 = new Range();\n discretize0.m_DiscretizeCols = range0;\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals(4, stringArray0.length);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "47aa539eb8fcf1dac4803bc926b9c328", "score": "0.60095", "text": "@Test(timeout = 4000)\n public void test30() throws Throwable {\n Discretize discretize0 = new Discretize();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Attribute attribute0 = new Attribute(\">nV*vx?;v8sY\", linkedList0, 70);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\">nV*vx?;v8sY\", arrayList0, 0);\n instances0.delete();\n UnaryOperator<Instance> unaryOperator0 = UnaryOperator.identity();\n Function.identity();\n instances0.replaceAll(unaryOperator0);\n FileSystemHandling.shouldAllThrowIOExceptions();\n discretize0.setFindNumBins(true);\n discretize0.setInputFormat(instances0);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning(0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "4ab2b0ea32f23105171068798c6db7fc", "score": "0.6008909", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n Discretize discretize0 = new Discretize();\n double double0 = discretize0.getDesiredWeightOfInstancesPerInterval();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals((-1.0), double0, 0.01);\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "19d5986efbac327c8128ba9bc8f03ce6", "score": "0.0", "text": "public static void main(String[] args) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the Path to Download\");\n\t\tString downloadLocationURL = scanner.next();\n\t\tString fileLocation = \"/Users/amit/Documents/FileHandlingTesting\";\n\t\tURL url = new URL(downloadLocationURL);\n\t\tURLConnection connection = url.openConnection();\n\t\tconnection.connect();\n\t\tInputStream is = connection.getInputStream();\n\t\tBufferedInputStream bi = new BufferedInputStream(is);\n\t\tfileLocation = fileLocation + downloadLocationURL.substring(downloadLocationURL.lastIndexOf(\"/\"));\n\t\tFileOutputStream fo = new FileOutputStream(fileLocation);\n\t\tBufferedOutputStream bo = new BufferedOutputStream(fo);\n\t\tint singleByte = bi.read();\n\t\twhile(singleByte!=-1){\n\t\t\tbo.write(singleByte);\n\t\t\tsingleByte = bi.read();\n\t\t}\n\t\tbi.close();\n\t\tbo.close();\n\t\tis.close();\n\t\tfo.close();\n\t\tSystem.out.println(\"File Downloaded...\");\n\t\t\n\t\t\n\n\t}", "title": "" } ]
[ { "docid": "63a51b9825ac81396e1d7ad0b9f3ed82", "score": "0.6866318", "text": "@Override\n\tpublic void 군무() {\n\t\t\n\t}", "title": "" }, { "docid": "15ae679aae74424c73fde647cf4332f6", "score": "0.68461496", "text": "@Override\r\n\t\t\tpublic void hissetmek() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76a80470fd21f5a9092c258ed3a8a632", "score": "0.68199706", "text": "private static void 로또번호리스트() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bfad11e436c98998f434617a4d2907e5", "score": "0.6690517", "text": "@Override\r\n\tpublic void adharno() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6679176", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "9969c2cd0a26f223be9eea348d1c6160", "score": "0.6571234", "text": "private static void 로또수동생성() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1dd3d9bdd67d8cc8bddfe021796a9286", "score": "0.6433148", "text": "@Override\n protected void lodate() {\n\n }", "title": "" }, { "docid": "b62655d47438ae6875a06d0702721dbc", "score": "0.6424808", "text": "@Override\r\n\t\t\tpublic void koklama() {\n\r\n\t\t\t}", "title": "" }, { "docid": "d92d5fe4c6efcfe66d53457e76817518", "score": "0.64108074", "text": "@Override\r\n\t\t\tprotected void init() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.63912827", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dda3b5a5b8e9e69b6eec0807bf162606", "score": "0.63636446", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t\t\r\n\t}", "title": "" }, { "docid": "00075c50e26b18237953cd05ffd5428b", "score": "0.63032013", "text": "@Override\n\tpublic void beber() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76e3d99118a00e74a082f6a955778f7d", "score": "0.62293875", "text": "Grensesnitt(){}", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.6186996", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "bf8fefe7b85b49281edb456698bfd556", "score": "0.616781", "text": "@Override\r\n\tpublic void descansar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.61533993", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "106ce0ada7b978eeffda7ec9cccc29e2", "score": "0.61470556", "text": "public void дразнит() {\n\n\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6139653", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "958663dc976180cba7b91b2a4ebcb522", "score": "0.61089844", "text": "@Override\n\tpublic void atualiza() {\n\n\t}", "title": "" }, { "docid": "2bd152bb33ecbe797b9818e175c5d4ec", "score": "0.6105675", "text": "public void mo55659a() {\n }", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.6063955", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.6063628", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.6041561", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.60215324", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "0d996fa345e18b74a73dce6394fc0b15", "score": "0.60198766", "text": "@Override\r\n\tpublic void sunricers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "27c725838f280928d869cc973588317c", "score": "0.6001773", "text": "@Override\r\n\tpublic void doSelfOpertion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f350fb57d7c81ec6d70f2643960940a8", "score": "0.5986621", "text": "@Override \r\n public void init() {\n \r\n }", "title": "" }, { "docid": "4f035da85a44bb830509e046190e6ee5", "score": "0.59682363", "text": "@Override\r\n\tpublic void rajastanroyals() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a0486d5f3890f3b56ce5a39122c4bdd7", "score": "0.59527355", "text": "@Override\r\n\tvoid metodo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c744960aa067b28111e99db9ddf6aeed", "score": "0.59477377", "text": "@Override\r\n\tpublic void fragancia() {\n\t\t\r\n\t}", "title": "" }, { "docid": "288fd3ee71b736e770bbef790831c263", "score": "0.59301406", "text": "User mo18615e();", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "416a053368cfd700d9d09414458911cd", "score": "0.58986443", "text": "@Override\n\tpublic void assamblyOfControlhead() {\n\t\t\n\t\t\n\t\t\n\t\n\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "77d32d2a2070d9c3117ff146ac04f114", "score": "0.5891585", "text": "@Override\r\n\tpublic void climaChuvoso() {\n\r\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "40577cf33330bd70c08bc8e310b4436d", "score": "0.58706117", "text": "@Override\n\tpublic void falar() {\n\n\t}", "title": "" }, { "docid": "79c707f3d28263fcc89902b0527d5c14", "score": "0.58528596", "text": "public void mo736a() {\n }", "title": "" }, { "docid": "42c3f8e63385f8e328b6828c1f7243d4", "score": "0.584987", "text": "@Override\r\n\t\tpublic void method_4() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "60e50abec8df6d4d5a80de13ba750171", "score": "0.5842782", "text": "@Override\r\n\tpublic void retour() {\n\t\t\r\n\t}", "title": "" }, { "docid": "debc6b4612a5fe9f0680a6bff73f25e6", "score": "0.58388203", "text": "@Override\r\n\t\tpublic void emettreSon() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "d56c498b25d1ea77dc09f49efcf80f6c", "score": "0.58347356", "text": "@Override\r\n\tpublic void aumentaFatorAcidade() {\n\r\n\t}", "title": "" }, { "docid": "a5d63cf5eb472d80fba18b0149c96501", "score": "0.5825308", "text": "@Override\n\tpublic void memberSecession() {\n\t\t\n\t}", "title": "" }, { "docid": "f4f7bcdf27874d7a17a80f57f8df43e0", "score": "0.5822819", "text": "public void mo10744d() {\n }", "title": "" }, { "docid": "d45e7311f809d3019d7382af887cb3cf", "score": "0.5799729", "text": "@Override\r\n\tpublic void dehlidervels() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "89b37f5fcca98bdfa7c243fc99d06675", "score": "0.5790634", "text": "@Override\r\n\tpublic void reanudar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4a3a3aeaffc4b367a8aa8488e4b59610", "score": "0.57720804", "text": "public void mo10856b() {\n }", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.5770528", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "a46afb3a57efda28ee1b37c4a9b1960f", "score": "0.57642525", "text": "private void getEx() {\n\r\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b95bbed498007dfeba9b078798c02e53", "score": "0.5754483", "text": "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "03b93c6668ea7af171bbcdb3af74bb4a", "score": "0.57524616", "text": "@Override\n public void bicar() {\n }", "title": "" }, { "docid": "b2cde12cf50e0ec60f909684878e936c", "score": "0.57514966", "text": "@Override\n\tpublic void wykonajZamknij() {\n\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a53d232dac89259f961cbc93762f65b2", "score": "0.5731746", "text": "@Override\r\n\t\t\tvoid n() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "3b072172b17a5e5ab0081f24545795f2", "score": "0.57235396", "text": "public void przymocowac() {\n\t\t\n\t}", "title": "" }, { "docid": "17e507b0166d99f88c8237ad30d967b7", "score": "0.5716563", "text": "public void zamowic() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "7bbf3f0011f317b7faa88562e06495b7", "score": "0.5714223", "text": "@Override\r\n public void reculer() {\n }", "title": "" }, { "docid": "1ba6f6b334c51461b3fe944110e91ef5", "score": "0.5707728", "text": "@Override\n\tpublic void comerHojas() {\n\t\t\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "0ca16e78cddd3c7d9de74c662606bbac", "score": "0.5686997", "text": "public void mo4570b() {\n }", "title": "" }, { "docid": "359579516b65b36ff8c4344d8363a3ed", "score": "0.5686103", "text": "@Override\r\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "09488e6c7d4190869b37b126a578249f", "score": "0.56821704", "text": "@Override\r\n\t/**\r\n\t * \r\n\t */\r\n\tpublic int size() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "001227e6b58a587f9eb4f77b15fc3588", "score": "0.5668976", "text": "@Override\n\tprotected void local() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
c3c5bb46dcd1d758b1aaceab3fde73e5
Sets the seed option.
[ { "docid": "77bec06af6e633ddebdc06cb8a891eb2", "score": "0.7244283", "text": "public Options seed(Long seed) {\n this.seed = seed;\n return this;\n }", "title": "" } ]
[ { "docid": "a6fa5ddd12001ecf46b43ff36c4d218a", "score": "0.7401088", "text": "public void set_seed(long seed);", "title": "" }, { "docid": "431228b996560cc2d05f529f70fc1504", "score": "0.71632314", "text": "public void setSeed(long seed) {\n this.seed = seed;\n }", "title": "" }, { "docid": "f996e4ceab392f65a993d085ab476a9c", "score": "0.7090569", "text": "public final void setSeed(long seed)\r\n {\r\n core.setSeed(seed);\r\n }", "title": "" }, { "docid": "7ee184d95315f262fd83ed787bd3a8b7", "score": "0.70401245", "text": "public void setSeed(long seed) {\n\t\tthis.seed = seed;\n\t}", "title": "" }, { "docid": "8764caee4d71f88407f1ec712225f569", "score": "0.6861271", "text": "public abstract void setSeed(int paramInt);", "title": "" }, { "docid": "b4d1b20f5f1687591b188b62394b4cb0", "score": "0.67902786", "text": "public void setSeed(long seed)\n\t{\n\t\trnd_.setSeed(seed);\n\t}", "title": "" }, { "docid": "28e9834c7eb374d96965787265e68126", "score": "0.6779831", "text": "public void setSeed(int seed){\n\trand.setSeed(seed);\n }", "title": "" }, { "docid": "f155277b3243208aa41135ad24e9bb10", "score": "0.6721929", "text": "public void setSeed (int seed)\n {\n xDistortModule.setSeed (seed);\n yDistortModule.setSeed (seed + 1);\n zDistortModule.setSeed (seed + 2);\n }", "title": "" }, { "docid": "ace003f086e260ef01f47f169f59cff3", "score": "0.66924065", "text": "public void setSeed(long seed) \n\t{\n\t\tthis.seed = seed;\n\t\tgenerator = new Random(seed);\n\t}", "title": "" }, { "docid": "28645c9f20902d1257fb93da576c92d6", "score": "0.66688377", "text": "public void setSeed(DenseMatrix64F seed) {\n this.seed = seed;\n }", "title": "" }, { "docid": "152826dd308c71c3e06b11b7582bb69e", "score": "0.666473", "text": "public abstract void setSeed(long paramLong);", "title": "" }, { "docid": "d75a17d0a825870d13d7d2b086631574", "score": "0.66528463", "text": "public void setSeed(byte[] seed) {\n random.setSeed(seed);\n }", "title": "" }, { "docid": "822ce366570853eb5c67739a40087f08", "score": "0.65309304", "text": "public static Options seed(Long seed) {\n return new Options().seed(seed);\n }", "title": "" }, { "docid": "054f5e15a7fa3d62e695c0b1ecc90d03", "score": "0.65167874", "text": "public void setSeed(Integer i) {\n\tif (i == null)\n\t seed = null;\n\telse seed = i;\n }", "title": "" }, { "docid": "380da3c75fb8ac3338fd24bbb10e0a60", "score": "0.65113705", "text": "public void setSeedData(Object seedObject);", "title": "" }, { "docid": "df8a395f0c66108fc0c25395ac648f93", "score": "0.6390223", "text": "public static void setSeed(long seed) {\r\n\t\trandom.setSeed(seed);\r\n\t}", "title": "" }, { "docid": "715c70f1bd1d6d7d31d7fb57e14c03c0", "score": "0.6339948", "text": "public static void setSeed(int seed) {\n rng = new Random(seed);\n }", "title": "" }, { "docid": "a4fcd04df22f4c5bcb0bff90bb52e7e9", "score": "0.62890273", "text": "public static void setSeed(int x){\n\t\tidum = x;\n\t}", "title": "" }, { "docid": "819b05c22b8d08988f681a02b6975a18", "score": "0.62710816", "text": "public static void setSeed(long s) {\n seed = s;\n random = new Random(seed);\n }", "title": "" }, { "docid": "1a820998ab62bf9661e9a4085ef24bf3", "score": "0.6196364", "text": "public static void setSeed(long s) {\n\t\tseed = s;\n\t\trandom = new java.util.Random(seed);\n\t}", "title": "" }, { "docid": "fcf8a73a5c1a5c0288a16f58f1d2846e", "score": "0.6160274", "text": "public abstract void setSeed(int[] paramArrayOfInt);", "title": "" }, { "docid": "08db93bfd416509b188dc1f6706821c6", "score": "0.6124063", "text": "public Builder setRandomSeed(int value) {\n bitField0_ |= 0x00000001;\n randomSeed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "74a40de0d7ea0fd4ae4afa903c869a9b", "score": "0.60833424", "text": "public void env_set_random_seed(Random_seed_key key) {\n\n }", "title": "" }, { "docid": "f9cee19425750ed3843440f320f59fbe", "score": "0.60633683", "text": "public void setSeed() {\n for (MultiLabelLearner learner : multiLabelLearners) {\n resetRandomSeed(learner);\n }\n for (FilteredClassifier learner : singleLabelLearners) {\n resetRandomSeed(learner);\n }\n }", "title": "" }, { "docid": "6504bb17178b99f246ae9fc83aab3b72", "score": "0.6027711", "text": "public void setSeed(long seed)\n\t{\n\t\tlong z = (seed += 0x9e3779b97f4a7c15L);\n\t\tz = (z ^ (z >>> 30)) * 0xbf58476d1ce4e5b9L;\n\t\tz = (z ^ (z >>> 27)) * 0x94d049bb133111ebL;\n\t\ts0 = z ^ (z >>> 31);\n\t\tz = (seed += 0x9e3779b97f4a7c15L);\n\t\tz = (z ^ (z >>> 30)) * 0xbf58476d1ce4e5b9L;\n\t\tz = (z ^ (z >>> 27)) * 0x94d049bb133111ebL;\n\t\ts1 = z ^ (z >>> 31);\n\t}", "title": "" }, { "docid": "29a8fe5f298a4c93e5cc8dae958a9d12", "score": "0.6010198", "text": "public void setSeed(long newSeed) {\r\n\r\n\t\tjavaAPIRandomGenerator.setSeed(newSeed);\r\n\r\n\t}", "title": "" }, { "docid": "87352ae28cbbe49bb0d8d9299d7dd2b6", "score": "0.591551", "text": "public Builder setSeeds(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n seeds_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8dab1342e76f0451c9841936e58f1dc2", "score": "0.5896796", "text": "public ScenarioGenerator(long seed) {\n rd.setSeed(seed);\n }", "title": "" }, { "docid": "ce78fdef522e298d5c51affe2c1d675c", "score": "0.5895337", "text": "public static void seed(String... args) throws Throwable\n\t{\n\t\tMdsiteSeedCli.main(args);\n\t}", "title": "" }, { "docid": "e1856ecea9c4634143e7f2a37cbd2ff6", "score": "0.58048075", "text": "@BeforeMethod\n public void setup() {\n seededRandom.setSeed(1);\n }", "title": "" }, { "docid": "335e2337b7d2fb38a3772fe03091899f", "score": "0.5799051", "text": "public void setPadSeed(byte[] seed) {\n int seedindex = 0;\n int stateindex = 0;\n int t, u;\n for(int counter = 0; counter < 256; counter++) {\n t = state[counter];\n stateindex = (stateindex + seed[seedindex] + t) & 0xff;\n u = state[stateindex];\n state[stateindex] = (byte)(t & 0xff);\n state[counter] = (byte)(u & 0xff);\n if(++seedindex >= seed.length)\n seedindex = 0;\n }\n }", "title": "" }, { "docid": "24724e44c5095d4f3d4394af79782d4c", "score": "0.5794246", "text": "public void setSeed(long seed) {\n __haveNextNextGaussian = false;\r\n\r\n mt = new int[N];\r\n\r\n mag01 = new int[2];\r\n mag01[0] = 0x0;\r\n mag01[1] = MATRIX_A;\r\n\r\n mt[0] = (int) (seed & 0xffffffff);\r\n for (mti = 1; mti < N; mti++) {\r\n mt[mti] =\r\n (1812433253 * (mt[mti - 1] ^ (mt[mti - 1] >>> 30)) + mti);\r\n /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */\r\n /* In the previous versions, MSBs of the seed affect */\r\n /* only MSBs of the array mt[]. */\r\n /* 2002/01/09 modified by Makoto Matsumoto */\r\n // mt[mti] &= 0xffffffff;\r\n /* for >32 bit machines */\r\n }\r\n }", "title": "" }, { "docid": "209c67cfca8180fad443b9c9ed51775f", "score": "0.5775421", "text": "Random(long seed) {\r\n this._seed = seed;\r\n }", "title": "" }, { "docid": "8937e69ffd8b72ca7ece268c9570b7cd", "score": "0.573883", "text": "public ParentTournamentSelector(long seed) {\r\n\t\trand = new Random(seed);\r\n\t}", "title": "" }, { "docid": "fad2702aa1a5a08e16d188e9448d0aa1", "score": "0.56164235", "text": "void setSeeds(PlayerColor side, int col, int seedAmount);", "title": "" }, { "docid": "29f38ae2984ca51a821ee4f0fd1d4195", "score": "0.56129044", "text": "public void setRandomSeed(int newrandomSeed) {\r\n\r\n\t\tm_randomSeed = newrandomSeed;\r\n\t}", "title": "" }, { "docid": "44b00455458b665cefe4b9f61e0e760d", "score": "0.56072176", "text": "public long getSeed() {\n return seed;\n }", "title": "" }, { "docid": "fc04668cbf68d41e161e305673e2967f", "score": "0.5582558", "text": "long getSeed();", "title": "" }, { "docid": "078fcde994030acdc5133ea35387f88a", "score": "0.55368125", "text": "public boolean isSeedMode() {\n return ts.getSeed_mode();\n }", "title": "" }, { "docid": "e3b5fa30e2913a06fa10f3e17eb45da8", "score": "0.5499361", "text": "public long getSeed() {\n\t\treturn seed;\n\t}", "title": "" }, { "docid": "612927e209d24928405728307eb6d395", "score": "0.54749197", "text": "public static void seedRand(int seed) {\n\t\trand = new Random(seed);\n\t}", "title": "" }, { "docid": "8c76db233ff5812148a0d3846bbc4a53", "score": "0.5442437", "text": "protected int getSeed() {\n\t\treturn seed;\n\t}", "title": "" }, { "docid": "ff0dd99411d22b538f4c2f49636242bf", "score": "0.54419047", "text": "@Before\n public void setUp() {\n testPersonGenerator = new PersonGenerator(0.15, 8.75);\n testPersonGenerator.reSeedGenerator(12345);\n }", "title": "" }, { "docid": "c6b34bb51a1ee41a0076fe29cacbabc1", "score": "0.54348326", "text": "public int getSeed() {\r\n\t\treturn this.seed;\r\n\t}", "title": "" }, { "docid": "7a77a1aeaea412aed0ee05a6a956f0b5", "score": "0.54217345", "text": "public void resetRandomSeed(Object model) {\n Class aClass = model.getClass();\n Method method = null;\n try {\n method = aClass.getMethod(\"setSeed\", int.class);\n } catch (NoSuchMethodException e) {\n try {\n method = aClass.getMethod(\"setRandomSeed\", int.class);\n } catch (NoSuchMethodException e2) {\n debug(\"NoSuchMethodExceptions: \" + e.getMessage() + \" and \" + e2.getMessage());\n }\n }\n try {\n if (method != null) {\n method.invoke(model, 1);\n }\n } catch (IllegalAccessException e) {\n debug(\"IllegalAccessException: \" + e.getMessage());\n } catch (InvocationTargetException e) {\n debug(\"InvocationTargetException: \" + e.getMessage());\n }\n }", "title": "" }, { "docid": "74a148827a68f46d29f5fc8459e5a5fd", "score": "0.54032636", "text": "@Override\n public void reset() {\n// this.random = new Random(seed);//.setRandomGenerator(new Random(seed));\n\n }", "title": "" }, { "docid": "d58636871933edaaf14c65953c6539ee", "score": "0.53977144", "text": "public static long getSeed() {\n return seed;\n }", "title": "" }, { "docid": "2096f647b8a8415742f17db4935e512f", "score": "0.53851795", "text": "protected void setFixture(ArgType fixture) {\n\t\tthis.fixture = fixture;\n\t}", "title": "" }, { "docid": "27de984f23021040b75e414355baa5a3", "score": "0.53580123", "text": "public PermutationGenerator(int seed){\n\t\tr=new Random(seed);\n\t}", "title": "" }, { "docid": "08bcfbd343afca5df715f57efdb99730", "score": "0.5298631", "text": "public boolean isSeeding() {\n return ts.getIs_seeding();\n }", "title": "" }, { "docid": "b9375085e55a57c349119d3ba40dbdc7", "score": "0.52621824", "text": "public BigInteger seed(){\n\t\treturn _seed;\n\t}", "title": "" }, { "docid": "08c0a7a4fada4f24d9be8f0969e6d8f9", "score": "0.5244404", "text": "public void random(boolean random) {\r\n\t\tthis.isRandom = random;\r\n\t}", "title": "" }, { "docid": "2ca338f0fcf17519aff84065ac5d1db5", "score": "0.52316445", "text": "protected void setFixture(ExternalDataSourceDiseaseModel fixture) {\n\t\tthis.fixture = fixture;\n\t}", "title": "" }, { "docid": "3a9cfefcb8c46ed27693368ad930d8ea", "score": "0.5224249", "text": "public void setisRandom(boolean bool) {\n \tthis.isRandom = bool;\n }", "title": "" }, { "docid": "f429edd34eeb979c16b052ed30c9e870", "score": "0.5216712", "text": "public void setSeedVertices(HashMap<GIPSYTier, GIPSYTier> seedVertices)\n {\n this.seedVertices = seedVertices;\n }", "title": "" }, { "docid": "912d9dc0ae835a9cb3a0001c837f8771", "score": "0.5211081", "text": "void setSeedAndReinitialize() {\n for (int i = 0; i < NOISE_TABLE_SIZE; i++) {\n // Ken Perlin proposes that the gradients are taken from the unit\n // circle/sphere for 2D/3D.\n // So lets generate a good pseudo-random vector and normalize it\n\n Vec2 v = new Vec2();\n // cry_frand is in the 0..1 range\n v.x = -0.5f + FXGLMath.random();\n v.y = -0.5f + FXGLMath.random();\n v.normalizeLocal();\n\n gx[i] = v.x;\n gy[i] = v.y;\n }\n }", "title": "" }, { "docid": "3f078c2430ac3290cd5808cf045779b7", "score": "0.5196393", "text": "@Before\n\tpublic void setUp() {\n\t\tgenerator = new Random();\n\t}", "title": "" }, { "docid": "3ba4207b6c165ae5567e27d22b8c0dcb", "score": "0.51902497", "text": "private static void populateConfiguration(ProjectSeed seed) {\n \n\t// we may not always have an executable, especially under core|attach!\n\tif (!isAuto(seed.executable) && CndPathUtilities.isPathAbsolute(seed.executable)) {\n\t seed.conf.getMakefileConfiguration().getOutput().\n\t\tsetValue(org.netbeans.modules.cnd.utils.CndPathUtilities.normalizeSlashes(seed.executable));\n\t}\n\n String currentDebuggerProfileID = EngineTypeManager.engine2DebugProfileID(seed.engineType);\n\tDbgProfile dbgProfile = (DbgProfile) seed.conf.getAuxObject(currentDebuggerProfileID);\n\tOptionSet options = dbgProfile.getOptions();\n\tOptionValue optionExec32 =\n\t options.byName(DebuggerOption.OPTION_EXEC32.getName());\n\tswitch (seed.model) {\n\t case DONTCARE:\n\t\t/* DEBUG\n\t\tSystem.out.printf(\"ProjectSupport: model -> DONTCARE\\n\");\n\t\t*/\n\t\tbreak;\n\t case IS32:\n\t\t/* DEBUG\n\t\tSystem.out.printf(\"ProjectSupport: model -> IS32\\n\");\n\t\t*/\n\t\toptionExec32.setEnabled(true);\n\t\tbreak;\n\t case IS64:\n\t\t/* DEBUG\n\t\tSystem.out.printf(\"ProjectSupport: model -> IS64\\n\");\n\t\t*/\n\t\toptionExec32.setEnabled(false);\n\t\tbreak;\n\t}\n\toptions.save();\n\n\t/* OLD\n\t// Only set these if we're debugging an executable\n\tif (seed.corefile != null || seed.pid != 0)\n\t return;\n\t*/\n\t// in a capture scenario we have a pid and we have some of \n\t// the below stuff, so let's just do it like this:\n \n\tif (seed.workingdir != null)\n\t seed.conf.getProfile().setRunDirectory(seed.workingdir);\n\tif (seed.args != null)\n\t seed.conf.getProfile().setArgs(seed.args);\n\tif (seed.envs != null)\n\t seed.conf.getProfile().getEnvironment().putenv(seed.envs);\n\t// LATER seed.conf.getProfile().setEnv(seed.envs);\n\n\t// OLD adjustDefaults(seed);\n\n final ProjectSeed static_seed = seed;\n\tif ( ! NativeDebuggerManager.isStandalone()) {\n fillCndConfiguration(static_seed);\n\t}\n }", "title": "" }, { "docid": "e2c682d511af46144b88481498d00e8e", "score": "0.5190169", "text": "public void useRandomStart(boolean randomStart) {\n this.randomStart = randomStart;\n }", "title": "" }, { "docid": "fe1a5646655160c282bc7c25208ef0e1", "score": "0.5159567", "text": "private void setDay() {\n this.day = rand.nextInt(31) + 1;\n }", "title": "" }, { "docid": "8751a4fe56379346f693ba343dab6c4b", "score": "0.5159294", "text": "public void seed() {\n if (user().count() == 0) {\n User admin = new User(\"!admin2\", \"!admin2\");\n User alex = new User(\"alex\", \"123\");\n User anton = new User(\"anton\", \"t3nn1sch@mp2021\");\n User bernie = new User(\"bernie\", \"k3ralaf@n\");\n User shirleybee = new User(\"shirleybee\", \"carmel2chicago\");\n long[] user_ids = user().insertUsers(admin, alex, anton, bernie, shirleybee);\n }\n if (book().count() == 0) {\n Book b1 = new Book(\"Kitchen Confidential\", \"Anthonyj Bourdain\", \"Memoir\", \"available\");\n Book b2 = new Book(\"The IDA Pro Book\", \"Chris Eagle\", \"Computer Science\", \"available\");\n Book b3 = new Book(\"Frankenstein\", \"Mary Shelley\", \"Fiction\", \"available\");\n long[] book_ids = book().insertBooks(b1, b2, b3);\n }\n }", "title": "" }, { "docid": "89b518298d9a3f8f41872d426e081a1e", "score": "0.5150067", "text": "public AbstractSeedPicker() {\n\t}", "title": "" }, { "docid": "888df71b5f7962121dfeefc598f6fa7b", "score": "0.51467687", "text": "public void setRandom(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localRandomTracker = true;\n } else {\n localRandomTracker = true;\n \n }\n \n this.localRandom=param;\n \n\n }", "title": "" }, { "docid": "cd1053e5d9131939537240e8a4b775c4", "score": "0.5131725", "text": "public Builder clearRandomSeed() {\n bitField0_ = (bitField0_ & ~0x00000001);\n randomSeed_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fe78ecc179739c1b19d46cf303382af3", "score": "0.5107439", "text": "public int getRandomSeed() {\n return randomSeed_;\n }", "title": "" }, { "docid": "0a5b98cffa2674f30120bbb855295a17", "score": "0.51011896", "text": "protected void setFixture(BooleanExpressionType fixture) {\n\t\tthis.fixture = fixture;\n\t}", "title": "" }, { "docid": "5bee9f96f902523e1bf448b02919f3db", "score": "0.5094439", "text": "protected void setFixture(Genus fixture) {\n\t\tthis.fixture = fixture;\n\t}", "title": "" }, { "docid": "767ca474cafbaea5d0d7c40aafaf5935", "score": "0.5051278", "text": "public Flockers(long seed) {\n super(seed);\n this.seed = seed;\n }", "title": "" }, { "docid": "e8e2f37ec44924bf5dcec8d4d851660c", "score": "0.5048102", "text": "public long getRandomSeed() {\n return randomSeed;\n }", "title": "" }, { "docid": "56b092de5b4e52073e4dc2717698503a", "score": "0.50140184", "text": "public int getRandomSeed() {\n return randomSeed_;\n }", "title": "" }, { "docid": "319c61d87c8fefe43b5f4f5ea8f46c13", "score": "0.50082296", "text": "private void iterateSeed()\n\t{\n\t\tseed = seed.multiply(BigInteger.valueOf(22695477));\n\t\tseed = seed.add(BigInteger.valueOf(1));\n\t}", "title": "" }, { "docid": "5928660b2c42623a731ef1d8f4bc5acb", "score": "0.49946707", "text": "public ScenarioGenerator() {\n\n // a truly random\n rd.setSeed(seedTime);\n }", "title": "" }, { "docid": "9b2a8b28a859e67d8179efe868cef556", "score": "0.49931893", "text": "protected void setFixture(PeerSituation fixture) {\n\t\tthis.fixture = fixture;\n\t}", "title": "" }, { "docid": "616b19a36d1801b342286cf505ad78ab", "score": "0.4989183", "text": "public MosaicImage(int seeds) {\n this.seeds = seeds;\n }", "title": "" }, { "docid": "0d652094b9d4dcd10af6765b32999c93", "score": "0.4983469", "text": "boolean hasRandomSeed();", "title": "" }, { "docid": "ba8e3f09bb490cf036cd7fc08b52e5ed", "score": "0.49717933", "text": "@Before\n\tpublic void setUp() throws Exception \n\t{\n\t\t randomGen = new Random();\n\t}", "title": "" }, { "docid": "968fa52287c8485fa2736161715de87b", "score": "0.49591193", "text": "public int getSeed ()\n {\n return xDistortModule.getSeed ();\n }", "title": "" }, { "docid": "0ad433156375c05271daf066fe27e855", "score": "0.49572358", "text": "public void initializeOptions()\r\n\t{\t\t\r\n\t\toptions[0] = \"-I\";\t\t\t// max iterations \r\n\t\toptions[1] = \"100\";\r\n\t\toptions[2] = \"-N\";\t\t\t// number of clusters\r\n\t\toptions[3] = \"-1\";\r\n\t\toptions[4] = \"-X\";\t\t\t// number of folds\r\n\t\toptions[5] = \"10\";\r\n\t\toptions[6] = \"-max\";\t\t// max number of clusters\r\n\t\toptions[7] = \"-1\";\r\n\t\toptions[8] = \"-ll-cv\";\t\t// min improvement increase\r\n\t\toptions[9] = \"1.0E-6\";\r\n\t\toptions[10] = \"-ll-iter\";\t// min improvement iteration\r\n\t\toptions[11] = \"1.0E-6\";\r\n\t\toptions[12] = \"-M\";\t\t\t// min standard deviation\r\n\t\toptions[13] = \"1.0E-6\";\r\n\t\toptions[14] = \"-K\";\t\t\t// number of k-means runs\r\n\t\toptions[15] = \"10\";\r\n\t\toptions[16] = \"-num-slots\";\t// number of execution slots\r\n\t\toptions[17] = \"1\";\r\n\t\toptions[18] = \"-S\";\t\t\t// seed\r\n\t\toptions[19] = \"100\";\r\n\t}", "title": "" }, { "docid": "64833d8e9230fc71801979e6625ade36", "score": "0.49276954", "text": "private void setRandomTune(){\n\n index = rn.nextInt(TuneBookSize -1);\n mTune = mTunebook.getTuneAtIndex(index);\n\n\n if(mTune.getAbc()==null){\n setRandomTune();\n }\n if(mTune.getName().length()>5) {\n if (mTune.getName().substring(mTune.getName().length() - 5).equals(\", The\")) {\n mTune.setName(\"The \" + mTune.getName().substring(0, mTune.getName().length() - 5));\n }\n }\n\n }", "title": "" }, { "docid": "49b339d02dc3a7e2999bf8c1f5d2e8de", "score": "0.4912677", "text": "public void setRnd(Random rnd) {\n this.rnd = rnd;\n }", "title": "" }, { "docid": "a12e477c1857cf9c1a447697afeecb7e", "score": "0.4911796", "text": "public void setRandomly(Random rand) {\n\t\tint shapeSelection = 2;\n\t\tint colorSelection = 5;\n\t\tshapeType = rand.nextInt(shapeSelection);\n\t\tshapeColor = rand.nextInt(colorSelection);\n\t}", "title": "" }, { "docid": "a8095073af1bf3004785f9415f67551e", "score": "0.49061924", "text": "public EMLearner(\n Random random )\n {\n this( 2, random );\n }", "title": "" }, { "docid": "9d468c3c7114c9d0e45e2234aa3364ca", "score": "0.49024", "text": "static void xsrand(int xseed)\t// set random number seed to xseed\r\n {\r\n\tseed = xseed;\r\n }", "title": "" }, { "docid": "6eca252f3c2e611b42c263d6a8af5909", "score": "0.48967957", "text": "@Override\n\tpublic Option[] setupOptions()\n\t{\n\t\tuseSlaves = new ToggleOption(\"Losing players become slaves\", true);\n\t\toutlastYourOwnChunk = new ToggleOption(\"Outlast your own chunk\", false);\n\t\t\n\t\tToggleOption.ensureOnlyOneEnabled(useSlaves, outlastYourOwnChunk);\n\t\treturn new Option[] { useSlaves, outlastYourOwnChunk };\n\t}", "title": "" }, { "docid": "10306db73c182148975833a8e664f575", "score": "0.48812404", "text": "public void setPickWaarde()\n {\n pickWaarde = (int)(Math.random() * (maxWaarde + 1));\n }", "title": "" }, { "docid": "fb0a0769c02ee25ef0cad687319c156c", "score": "0.48771054", "text": "public Treap (long seed) {\r\n\t\tif (seed < 0) {//checks for invalid seed values\r\n\t\t\tthrow new IllegalArgumentException(\"Treap Constructor: Invalid input for seed value\");\r\n\t\t}\r\n\t\tpriorityGenerator = new Random(seed);//generates a random priority based on seed\r\n\t\troot = null;//starts root at null\r\n\t}", "title": "" }, { "docid": "9fbd267484563dc694370d7fca256789", "score": "0.4876597", "text": "public MazeFactory(boolean deterministic){\n\t\tthis.deterministic = deterministic;\n\t}", "title": "" }, { "docid": "d2b717861d89971723f68a3347c9d10f", "score": "0.48727256", "text": "public Builder withRandomSeed(long seed) {\n masterSeed = seed;\n return this;\n }", "title": "" }, { "docid": "20eb90c4b9c78adf66492e46d900b279", "score": "0.4868175", "text": "public void setSeedCodes(List<String> seedCodes) {\r\n\t\tthis.seedCodes = seedCodes;\r\n\t}", "title": "" }, { "docid": "99ca04f8fdbac2293bf08fd03b89ae52", "score": "0.48647195", "text": "public void setSeedDrillY(int seedDrillY) {\r\n\t\tseeddrill.setY(seedDrillY);\r\n\t}", "title": "" }, { "docid": "3962e076d484c572db192d7eda649753", "score": "0.4861501", "text": "public Builder clearSeeds() {\n bitField0_ = (bitField0_ & ~0x00000002);\n seeds_ = getDefaultInstance().getSeeds();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a3e7343c02e7e0cd4191c9e6ec722b73", "score": "0.48611507", "text": "protected void setFixture(CommandContainerEntryListType fixture) {\n\t\tthis.fixture = fixture;\n\t}", "title": "" }, { "docid": "0a783732ee41ad1eaefe268bd7e27990", "score": "0.48610148", "text": "public void seedMap(long seed) {\n\n logger.log(java.util.logging.Level.INFO,\n \"Trying to seed the world with seed: \" + seed);\n Random rand = new Random();\n float chanceToStartAlive = (float)(rand.nextInt(10) / 100) + 0.40f;\n\n // Iterate over the entire level and set each tile to true or false\n for (int x = 0; x < level_x_tiles; x++) {\n for (int y = 0; y < level_y_tiles; y++) {\n if (rand.nextFloat() < chanceToStartAlive) {\n levelTiles[x][y] = 1;\n }\n else levelTiles[x][y] = 0;\n }\n }\n\n }", "title": "" }, { "docid": "134e3550220e3130581d357660ce499b", "score": "0.48603788", "text": "@Test\n public void testSetNoOfBeds() {\n System.out.println(\"setNoOfBeds\");\n int NoOfBeds = 0;\n RoomModel instance = new RoomModel();\n instance.setNoOfBeds(NoOfBeds);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "5587099d7e51e7b482bce5f71e80d6ff", "score": "0.4859465", "text": "public int getRandomSeed() {\r\n\r\n\t\treturn m_randomSeed;\r\n\t}", "title": "" }, { "docid": "c3096f4d1c33c21efb2eabfda22d455e", "score": "0.4847132", "text": "protected void setFixture(SplinePointType fixture) {\n\t\tthis.fixture = fixture;\n\t}", "title": "" }, { "docid": "1afbcd183c7c808e7b852a6e5d27dd93", "score": "0.48387212", "text": "protected void setFixture(Behavior fixture) {\n\t\tthis.fixture = fixture;\n\t}", "title": "" }, { "docid": "9359b37994bbb4bf29e4f897feec8e90", "score": "0.48276287", "text": "public final void setWithRandomDirection() {\r\n Random rand = new Random();\r\n if (timeToChangeDirection % (rand.nextInt(30) + 30) == 0) {\r\n direction = rand.nextInt(8) + 1;\r\n }\r\n timeToChangeDirection++;\r\n }", "title": "" }, { "docid": "48134b4b5c8624244a6c28ec15dc56bf", "score": "0.4818533", "text": "public Random_seed_key env_get_random_seed() {\n return null;\n }", "title": "" }, { "docid": "b2ea7619f9851ab12cb7177b75d22916", "score": "0.48132548", "text": "CACell getSeed() {\n return seed;\n }", "title": "" } ]
30e20bc829b195f13fab791246466abc
This method stores a object into the ToscaReferenceMapper for future use.
[ { "docid": "1adb471a84624b919d9716db1029c55a", "score": "0.8033835", "text": "public void storeJAXBObjectIntoToscaReferenceMapper(QName reference, Object objectToStore) {\r\n\t\tNode node = ServiceHandler.xmlSerializerService.getXmlSerializer().marshalToNode(objectToStore);\r\n\t\tToscaEngineServiceImpl.toscaReferenceMapper.storeReference(csarID, reference, node);\r\n\t}", "title": "" } ]
[ { "docid": "5423092eeddbbf5c624f8e35ab9437e7", "score": "0.6927472", "text": "protected void storeDocumentIntoReferenceMapper(QName nodeReference, Document documentToStore) {\r\n\t\tToscaEngineServiceImpl.toscaReferenceMapper.storeDocument(csarID, nodeReference, documentToStore);\r\n\t}", "title": "" }, { "docid": "b2b2946ccc4ffb5dd7b0b12f850549b3", "score": "0.67123014", "text": "private void storeNodeIntoReferenceMapper(QName nodeReference, Node nodeToStore) {\r\n\t\tToscaEngineServiceImpl.toscaReferenceMapper.storeReference(csarID, nodeReference, nodeToStore);\r\n\t}", "title": "" }, { "docid": "1267a22350b68cedcce5e0bd8a8dc1b8", "score": "0.65435123", "text": "@Override\n\t\tpublic void store(Map<String, Object> map, Object object) {\n\n\t\t}", "title": "" }, { "docid": "1267a22350b68cedcce5e0bd8a8dc1b8", "score": "0.65435123", "text": "@Override\n\t\tpublic void store(Map<String, Object> map, Object object) {\n\n\t\t}", "title": "" }, { "docid": "c042d1408d17884c1f014d3c4431f655", "score": "0.59972864", "text": "@Override\n public void writeObject(Object ref) throws IOException {\n doWriteObject(ref);\n }", "title": "" }, { "docid": "0c813e8cc82329abf83abc75e70a84fb", "score": "0.58564436", "text": "public void storeObject(final GameObject object) {\n final var id = object.getId();\n if (this.objectsById.containsKey(id)) {\n throw new EngineException(\"The id \" + id + \" is already used in this scene\");\n }\n this.objectsById.put(id, object);\n\n object.getTags().forEach(tag -> this.objectsByTags.computeIfAbsent(tag, key -> new ArrayList<>()).add(object));\n }", "title": "" }, { "docid": "4f5f9b43e80dc3cec2eb664b8b21be61", "score": "0.58190763", "text": "private void persistSequenceReference(SequenceReference seqRef){\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( \"edu.jhu.fcriscu1.ncidc.generated.sequenceref\" );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tm.setProperty(Marshaller.JAXB_ENCODING, \"ISO-8859-1\");\n\t\t\tStringWriter sw = new StringWriter();\n\t\t\tm.marshal(seqRef,sw);\n\t\t\tString s1 = sw.toString();\n\t\t\tString s2 =StringUtils.replace(s1, \"&lt;\", \"<\");\n\t\t\tString s3 =StringUtils.replace(s2, \"&gt;\", \">\");\n\t\t System.out.println(\"Marshalled Sequence Reference:\");\n\t\t System.out.println(s3);\n\t\t String documentName = \"SeqRef_\" +seqRef.getSequenceReferenceIdentifier().getSequenceSource()\n\t\t \t+\"_\" + seqRef.getSequenceReferenceIdentifier().getAccessionID() +\".xml\";\n\t\t this.deleteExistingDocument(documentName);\n\t\t this.conatiner.putDocument(documentName, s3);\n\t\t System.out.println(\"SequenceReference \" +documentName +\" persisted\");\n\t\t} catch (PropertyException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (JAXBException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (XmlException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "e0d86d3db7c7e4b8c5e211e1e62213ef", "score": "0.5803682", "text": "public abstract boolean addObjectReference(IMsoObjectIf anObject, String aReferenceName);", "title": "" }, { "docid": "37c4c046a4113cdd7d2e7e63f67d9e87", "score": "0.56990796", "text": "@Override\n public void addValue(DatabaseReference data, Object object) {\n data.setValue(object);\n }", "title": "" }, { "docid": "14d0b64b268aec4f1744c772367149cf", "score": "0.5664596", "text": "public void store (Trip tripObject) {\n\t\tcachedTrips.put(tripObject.getId().getId(), tripObject);\t\n\t}", "title": "" }, { "docid": "c00655fe76d18ea02065eee73c608d51", "score": "0.56496704", "text": "void setObjectOut(Object objectOut);", "title": "" }, { "docid": "7b3196602d21924fb155d19e17144af9", "score": "0.55913955", "text": "public void store(Book object)\r\n {\r\n storePersisent(object);\r\n }", "title": "" }, { "docid": "060159eff46368b6b3c9db9974077918", "score": "0.5585602", "text": "public void put(final Class objType, final Object obj) {\n log.debug(\"Push object of type {}\", objType.getName());\n if (null != branch.get(objType)) {\n throw new IllegalStateException(\"Misconfiguration of Mappings File.\\nAn object of type \" + objType.getName() + \" already exists on this branch. Pop object type first!\");\n }\n this.branch.put(objType, obj);\n }", "title": "" }, { "docid": "85d2e0ad8adf67179b8a79745244335e", "score": "0.5562516", "text": "@Override\r\n\tpublic void setReference(Object referenced) {\r\n\t\tif(referenced instanceof Company) {\r\n\t\t\tthis.setCompany((Company)referenced);\r\n\t\t}\r\n\t\telse if(referenced instanceof Person) {\r\n\t\t\tthis.setPerson((Person)referenced);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new ClassCastException(\"Referenced object dosen't match CompanyContact references\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "241864928aa31c38d1c05f4ff88f7cd4", "score": "0.5528475", "text": "public void put(ReferenceFrame referenceFrame);", "title": "" }, { "docid": "c91fe3fd2f4753bcbf5c5aec2250480c", "score": "0.5518538", "text": "@Override\n protected void _putObjectToActorInstance(String name, Object object) throws ScriptException {\n String globalName = \"_yyy_\" + name;\n _engine.put(globalName, object);\n _engine.eval(_ACTOR_INSTANCE_NAME + \".\" + name + \" = \" + globalName);\n }", "title": "" }, { "docid": "35fc458d5f00dce3ce8d68208960788a", "score": "0.55156845", "text": "public StrongReference(Interface object)\n\t{\n\t\tthis.object = object;\n\t}", "title": "" }, { "docid": "525e0ed404d94bfaf503879343b0f6c8", "score": "0.54900706", "text": "public void put(Object obj) throws MathLinkException;", "title": "" }, { "docid": "84ffe8c14387e7de41efa2f548869c6f", "score": "0.546531", "text": "protected abstract void store(NodeReferences refs) throws ItemStateException;", "title": "" }, { "docid": "71526ffe8c37ff72f1b01b03f82a95a0", "score": "0.54045546", "text": "protected void addReference(Object reference) {\n parentReference = reference;\n }", "title": "" }, { "docid": "14d701c2e8269a470299442cbaec4dbc", "score": "0.53957963", "text": "private void addReference(T record) {\n addReferenceIATA(record);\n addReferenceICAO(record);\n }", "title": "" }, { "docid": "3d4023df2ce5e61c224526f5f8fd22dd", "score": "0.5389702", "text": "public ObjectReference(Object obj) {\r\n\t\t\tthis.obj = obj;\r\n\t\t}", "title": "" }, { "docid": "7dc71bc88af2802b89dbe5cf9ed859f3", "score": "0.53847843", "text": "public void setObject (Object object)\n {\n _object = object;\n }", "title": "" }, { "docid": "99d39fc10c3d34fe2e91fcf90cbcd35d", "score": "0.5378726", "text": "public void put(Object obj, Class classType) {\n try {\n mapaDAO.get(classType).put(obj);\n } catch (Exception ex) {\n Logger.getLogger(Facade.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "d8210fa4338cff19cada9453a9c56fb1", "score": "0.53755414", "text": "public void storeObject(String key, Object object) {\n\t\tsynchronized (mutex) {\n\t\t\tLogger.printMessage(TAG, \"storing object \" + object + \" with key \"\n\t\t\t\t\t+ key + \" in data model \", Logger.INFO);\n\n\t\t\tmodel.put(key, object);\n\t\t}\n\t}", "title": "" }, { "docid": "3db6fae77ec8f41177d0a5957e1d39c0", "score": "0.53686845", "text": "public void restoreInstance() {\n\t\tClass<?> c = this.reference.getClass();\t\t\n\t\tField[] f = null;\n\t\tMethod m = null;\n\t\tField field = null;\n\t\t\n\t\twhile (c != null) {\n\t\t\tf = c.getDeclaredFields();\n\t\t\tfor (int i = 0; i < f.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tfield = f[i];\n\t\t\t\t\tif(field.getName()==\"_metaobject\" || field.getName()==\"_classobject\")\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tm = c.getMethod(\"set\" + capitalize(field.getName()), field.getType());\n\t\t\t\t\tm.invoke(this.reference, save.get(field.getName()));\n\t\t\t\t} catch (NoSuchMethodException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (SecurityException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tc = c.getSuperclass();\n\t\t}\n\t}", "title": "" }, { "docid": "8523e8b1a70bb9d922c694a1a6715bfa", "score": "0.5336767", "text": "@Override\r\n\tpublic void put(int oid, Object obj) {\n\t\t\r\n\t}", "title": "" }, { "docid": "ebc74853cd1b9b3b9f0bfbe7f73b6a13", "score": "0.5333731", "text": "void setPAObject(Object _obj)\n {\n obj = _obj;\n }", "title": "" }, { "docid": "c73adc8ceeebb238861931b340aa0a0b", "score": "0.5331046", "text": "void persisted(Serializable id, Object o);", "title": "" }, { "docid": "70cb1af46a552d51f05e399fa3758983", "score": "0.5321211", "text": "void doWriteObject(Object ref) throws IOException {\n\n if (TIME_IBIS_SERIALIZATION) {\n timer.start();\n }\n if (ref == null) {\n writeHandle(Constants.NUL_HANDLE);\n if (TIME_IBIS_SERIALIZATION) {\n timer.stop();\n }\n return;\n }\n /*\n * TODO: deal with writeReplace! This should be done before looking up\n * the handle. If we don't want to do runtime inspection, this should\n * probably be handled somehow in IOGenerator. Note that the needed info\n * is available in AlternativeTypeInfo, but we don't want to use that\n * when we have ibis.io.Serializable.\n */\n\n if (replacer != null) {\n ref = replacer.replace(ref);\n }\n\n int hashCode = HandleHash.getHashCode(ref);\n int handle = references.find(ref, hashCode);\n\n if (handle == 0) {\n Class<?> clazz = ref.getClass();\n AlternativeTypeInfo t = AlternativeTypeInfo\n .getAlternativeTypeInfo(clazz);\n if (DEBUG && logger.isDebugEnabled()) {\n logger.debug(\"start writeObject of class \" + clazz.getName()\n + \" handle = \" + next_handle);\n }\n t.writer.writeObject(this, ref, t, hashCode, false);\n if (DEBUG && logger.isDebugEnabled()) {\n logger.debug(\n \"finished writeObject of class \" + clazz.getName());\n }\n } else {\n if (DEBUG && logger.isDebugEnabled()) {\n logger.debug(\"writeObject: duplicate handle \" + handle\n + \" class = \" + ref.getClass());\n }\n writeHandle(handle);\n\n addStatSendObjectHandle(ref);\n }\n if (TIME_IBIS_SERIALIZATION) {\n timer.stop();\n }\n }", "title": "" }, { "docid": "298737c0fa7d83c1bd8cf535984adf43", "score": "0.5312374", "text": "protected abstract Object save(Object dto, Map<String, Object> properties, ContextInfo contextInfo) throws Exception;", "title": "" }, { "docid": "0698f190476d6a2f864787ab543f4e4e", "score": "0.52998257", "text": "org.hl7.fhir.String addNewReference();", "title": "" }, { "docid": "0d45bc1ac7adeb39e0d4425760656ba5", "score": "0.5284718", "text": "@Override\n\tpublic void save(Voyageur obj) {\n\n\t}", "title": "" }, { "docid": "59695b5d85b24b498ae87ea893f51224", "score": "0.5245146", "text": "@Override\n public Visit save(Visit object) {\n if (object.getPet() != null){\n if (object.getPet().getId() == null){\n Pet savedPet = petService.save(object.getPet());\n object.getPet().setId(savedPet.getId());\n }\n }else {\n throw new RuntimeException(\"there must be a pet\");\n }\n object.setId(super.getNextId());\n\n return super.save(object.getId(), object);\n }", "title": "" }, { "docid": "2e98a1779eda7d4254a0a375b9513271", "score": "0.52230203", "text": "public ConvertObject() {\r\n\t\tthis.properties = new HashMap();\r\n\t}", "title": "" }, { "docid": "1e07c007e882965f1336316dc8354a18", "score": "0.5221769", "text": "void store(EObject element);", "title": "" }, { "docid": "e6b1f6e7e15241e8341bd4824206d278", "score": "0.52140075", "text": "protected void putIdObject(int aObjectId, Object aObject)\r\n {\r\n getIdObjectMap().put(aObjectId, aObject);\r\n }", "title": "" }, { "docid": "de68a2c09fee09734de5bd7669389167", "score": "0.5202421", "text": "@Override\r\n\tpublic void save(Kaoshi obj) {\n\t\tkd.save(obj);\r\n\t}", "title": "" }, { "docid": "744957129c511cda9565a37d41ea3f99", "score": "0.5202245", "text": "@Override\n public void storeEntity(Pipeline pipeline, boolean update) throws IOException {\n EntityReference owner = pipeline.getOwner();\n List<TagLabel> tags = pipeline.getTags();\n EntityReference service = pipeline.getService();\n\n // Don't store owner, database, href and tags as JSON. Build it on the fly based on relationships\n pipeline.withOwner(null).withService(null).withHref(null).withTags(null);\n\n store(pipeline, update);\n\n // Restore the relationships\n pipeline.withOwner(owner).withService(service).withTags(tags);\n }", "title": "" }, { "docid": "29023771f9d38a6ee3eaf6b7f9764c78", "score": "0.51913834", "text": "private void writeObject(final ObjectOutputStream outputStream) throws IOException\n\t{\n\t\toutputStream.defaultWriteObject();\n\t\tif (componentReference != null)\n\t\t{\n\t\t\toutputStream.writeObject(componentReference.get());\n\t\t}\n\t\telse\n\t\t{\n\t\t\toutputStream.writeObject(null);\n\t\t}\n\t}", "title": "" }, { "docid": "f430269a0bd053495409a69d55962a85", "score": "0.51873827", "text": "@Override\n public void setObject(T object) {\n // Replace by new object\n this.object = object;\n }", "title": "" }, { "docid": "b06eea3c001e8a67c60d67ef94b6d7c3", "score": "0.51848507", "text": "@Override\n public void update(Object obj) {\n this.routes = (Routes) obj;\n }", "title": "" }, { "docid": "3839c338487c809cf3c410cc5ee564e6", "score": "0.5176091", "text": "public void save(Object o) {\n\t\t\r\n\t}", "title": "" }, { "docid": "941ed5e713a98ac95b671fcf0a509e59", "score": "0.5175066", "text": "public void writeObject() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "212192e8adc36fe5a51b8294d7d7795e", "score": "0.51721966", "text": "private void setDatabaseReferenceIdsToGeneratedObject(OfficeDTO databaseObj, OfficeDTO generatedObj){\n generatedObj.setId(databaseObj.getId());\n if(databaseObj.getAddress() != null && generatedObj.getAddress() != null) {\n generatedObj.getAddress().setId(databaseObj.getAddress().getId());\n }\n if(databaseObj.getAppointments() != null && generatedObj.getAppointments() != null) {\n for (int i = 0; i < databaseObj.getAppointments().size(); i++) {\n generatedObj.getAppointments().get(i).setId(databaseObj.getAppointments().get(i).getId());\n generatedObj.getAppointments().get(i).setOffice(databaseObj.getAppointments().get(i).getOffice());\n }\n }\n if(databaseObj.getOfficehours() != null && generatedObj.getOfficehours() != null) {\n for (int i = 0; i < databaseObj.getOfficehours().size(); i++) {\n generatedObj.getOfficehours().get(i).setId(databaseObj.getOfficehours().get(i).getId());\n }\n }\n if(databaseObj.getOfficeWorkers() != null && generatedObj.getOfficeWorkers() != null) {\n for (int i = 0; i < databaseObj.getOfficeWorkers().size(); i++) {\n setDatabaseReferenceIdsToGeneratedObject(databaseObj.getOfficeWorkers().get(i), generatedObj.getOfficeWorkers().get(i));\n }\n }\n }", "title": "" }, { "docid": "06138d195e607445a3e747190d3095e1", "score": "0.5159709", "text": "public BasketRef () {\n\t\tsuper();\n\t\t\n\t\tentity_type = EntityType.BASKET_REFERENCES;\n\t}", "title": "" }, { "docid": "a9a964d57be19ecc72e26580aa97ccdc", "score": "0.5151587", "text": "public <T> void storeObject(String key, T obj) {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tClass<T> cls = (Class<T>) obj.getClass();\r\n\t\tMap<String, Object> hash = HashMapperFactory.getHashMapper(cls).toHash(obj);\r\n\t\thashOps.putAll(key, hash);\r\n\t}", "title": "" }, { "docid": "3e2f78bcc3514994b893aa61abe59b34", "score": "0.51246333", "text": "@Override\n\tpublic void save(Item obj) {\n\t\t\n\t}", "title": "" }, { "docid": "943c7de479442986322b83e6445e82dc", "score": "0.5115489", "text": "public void save(Object o)\n {\n\n Map<String, Object> props = mapper.convertValue(o, Map.class);\n String id = (String) props.get(\"_id\");\n\n if(o!= null && o.getClass()== Usuario.class)\n {\n Usuario u = (Usuario) o;\n id = u.getEmail();\n }\n\n //Ponerle el tipo de Documento que estamos guardando para poder buscarlo con vistas luego\n props.put(\"documentClass\", valueTypeParameterClass.toString());\n\n MutableDocument document = new MutableDocument(id);\n document.setData(props);\n try{\n\n database.save(document);\n\n Log.i(TAG, \"Document ID :: \" + document.getId());\n\n }catch(CouchbaseLiteException e)\n {\n e.printStackTrace();\n Log.i(\"CouchDB-Save\", \"Failed to write document to Couchbase database!: \"+ e.getMessage());\n }\n }", "title": "" }, { "docid": "9b635505745b25707da7e9f61c8c2e51", "score": "0.5114305", "text": "@Override\n\tpublic void adiciona(Object obj) {\n\t\t\n\t}", "title": "" }, { "docid": "332a9c4d408c69a8e40db0a12e3c203f", "score": "0.51112324", "text": "public void setCorrelationObject(Object correlationObj);", "title": "" }, { "docid": "093ed2fee42441fde2edff4a4f91581a", "score": "0.5109357", "text": "@Test\n public void recordWithExistingReferences() {\n Location location = makeValidEntity(\"validName\", \"validId\");\n\n //Remember the references and clear them\n LocationHierarchy locationHierarchy = location.getLocationHierarchy();\n location.setLocationHierarchy(null);\n\n FieldWorker fieldWorker = location.getCollectedBy();\n location.setCollectedBy(null);\n\n // pass it all into the record method\n location = service.recordLocation(location, locationHierarchy.getUuid(), fieldWorker.getUuid());\n\n\n //Check that the originals match the ones pulled out from findOrMakePlaceholder()\n assertNotNull(location.getLocationHierarchy());\n assertEquals(location.getLocationHierarchy(), locationHierarchy);\n\n assertNotNull(location.getCollectedBy());\n assertEquals(location.getCollectedBy(), fieldWorker);\n\n }", "title": "" }, { "docid": "d28f2d50fb29e26316c55756c741ed8f", "score": "0.5100553", "text": "public void setValue(Copiable obj) {\n this.obj = obj;\n }", "title": "" }, { "docid": "bb6977c1d4530a62b85d8455fbcf97db", "score": "0.5095797", "text": "public void setValue(Object obj,Object value);", "title": "" }, { "docid": "3bc157c142fad81fa7bbc0852982577b", "score": "0.5088885", "text": "void setReferences(x0101.oecdStandardAuditFileTaxPT1.ReferencesDocument.References references);", "title": "" }, { "docid": "8813dbaefe7bf8dfbf99bbf6865fad36", "score": "0.5078322", "text": "public synchronized void persist(FasterLookUpDataHolder dataObj) throws RegistryException {\n try {\n \t\n \tPrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();\n \tctx.setTenantId(MultitenantConstants.SUPER_TENANT_ID);\n \tctx.setTenantDomain(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME);\n \t\n registryService.beginTransaction();\n\n Resource nodeResource = registryService.newResource();\n\n nodeResource.setContent(Serializer.serializeToByteArray(dataObj));\n\n registryService.put(CloudControllerConstants.CLOUD_CONTROLLER_RESOURCE + CloudControllerConstants.DATA_RESOURCE, nodeResource);\n\n registryService.commitTransaction();\n\n } catch (Exception e) {\n String msg = \"Failed to persist the cloud controller data in registry.\";\n registryService.rollbackTransaction();\n log.error(msg, e);\n throw new CloudControllerException(msg, e);\n\n }\n }", "title": "" }, { "docid": "9365587ef0ebdaaf72755601d2d715c7", "score": "0.5076773", "text": "@Override\n public void setValue(Object o) {\n }", "title": "" }, { "docid": "bf6865105dc8fabcdbdfe8b3484b396f", "score": "0.5074357", "text": "x0101.oecdStandardAuditFileTaxPT1.ReferencesDocument.References addNewReferences();", "title": "" }, { "docid": "49f4adb9a468ccb7d630d98f724c8a4c", "score": "0.5073386", "text": "public void write(Object object) throws DataSourceException {\n if (hasMapping(object)) {\n compassTemplate.save(object);\n }\n }", "title": "" }, { "docid": "7d698cabd7e81711e934e4190582a365", "score": "0.50704694", "text": "public Reference bindReference(Reference reference) {\n Reference newReference = null;\n \n switch(reference.getType()) {\n case \"article\":\n newReference = new ArticleReference();\n break;\n \n case \"book\":\n newReference = new BookReference();\n break;\n \n case \"booklet\":\n newReference = new BookletReference();\n break;\n \n case \"inproceedings\":\n newReference = new InproceedingsReference();\n break;\n \n case \"manual\":\n newReference = new ManualReference();\n break;\n \n default:\n return null;\n }\n \n newReference.copyFields(reference);\n return newReference;\n }", "title": "" }, { "docid": "e34fd87bfc690a2a31447fcb3d14a5e8", "score": "0.5058456", "text": "abstract public void setObject(Object data);", "title": "" }, { "docid": "ce0f98d862d7dea93bee5587fe806dc8", "score": "0.5054346", "text": "ExternalReferenceSPI convert(Object o, ReferenceContext context)\n\t\t\tthrows ValueToReferenceConversionException;", "title": "" }, { "docid": "f5baaeac294dd4b9bbaf39a8287645a6", "score": "0.50494784", "text": "private void writeHrefMapToCache()\n {\n writeObjToCache(HREFMAP_KEY, this.mapIdToHref);\n }", "title": "" }, { "docid": "e067f96df32a021e407bfe8b5ddff7cf", "score": "0.5036217", "text": "protected abstract void setContentObject(Serializable contentObject);", "title": "" }, { "docid": "c68303a971edb7b8599a71b929a7fbb9", "score": "0.50315714", "text": "public void save(Absence obj) {\n\t\t\t\ttx = session.getTransaction();\n\t\t\t\ttx.begin();\n\t\t\t\tsession.save(obj);\n\t\t\t\tsession.flush();\n\t\t\t\ttx.commit();\n\t}", "title": "" }, { "docid": "77d148cc8a8ba9df73ae90f6b8ff9ba7", "score": "0.50275344", "text": "public void setImportedObject(Object document) {\n \tthis.mImportedObject = document;\n }", "title": "" }, { "docid": "b4a42eeb38eb93bbdc9f284cdd8baf28", "score": "0.50221145", "text": "public void marshalToRecord(T object, ODocument record);", "title": "" }, { "docid": "68b56dd03f525162880f48d2f61a3f0f", "score": "0.50181144", "text": "@Override\n\tpublic Persona registrar(Persona obj) {\n\t\t\n\t\treturn repo.save(obj);\n\t}", "title": "" }, { "docid": "8834408d893876d4bc7b5e1ba090b00a", "score": "0.50154674", "text": "void writePointer(Object object) {\n File serFile = new File(\".gitlet\" + \"/\" + \"serFile\");\n try {\n ObjectOutputStream out =\n new ObjectOutputStream(new FileOutputStream(serFile));\n out.writeObject(object);\n out.close();\n } catch (IOException excp) {\n return;\n }\n\n }", "title": "" }, { "docid": "5d3be84275d0eab0302dd46b696c89e2", "score": "0.5010955", "text": "public TransformedServiceReference<S> addProperty(String name, Object value);", "title": "" }, { "docid": "dd5986b8344dadad1e94a7dc8827ac17", "score": "0.5009545", "text": "public T persist(T object, boolean useSelfId) throws PersistException;", "title": "" }, { "docid": "57f9990d363d12e7161ab4cc4fa8be1a", "score": "0.500594", "text": "public void setObject(Object set){\n NodeObject = set;\n }", "title": "" }, { "docid": "1b17e21234f6177b1724959ec69acda7", "score": "0.5003767", "text": "public void put(Object obj) throws Exception;", "title": "" }, { "docid": "95269528d0335d26ea9602118faaceee", "score": "0.50026506", "text": "public void setObject(Object obj) {\n getObjectValueHolder().setObject(obj);\n getList().set(position, obj);\n }", "title": "" }, { "docid": "7d1eb6bfeef7a5f49b612b4952235f78", "score": "0.5001369", "text": "public void save(T object);", "title": "" }, { "docid": "1ffa64b2a3d03de42e8119a4dc5673a6", "score": "0.49941105", "text": "private void visitDefaultTypeObjectReference(AST node) {\n XmlSchema[] scs = schemas.getXmlSchema(ReferenceConstants.WSADDRESSING_NAMESPACE);\n XmlSchema wsaSchema = null;\n if (scs != null) {\n for (XmlSchema sc : scs) {\n if (ReferenceConstants.WSADDRESSING_NAMESPACE.equals(sc.getTargetNamespace())) {\n wsaSchema = sc;\n break;\n }\n }\n }\n if (wsaSchema == null) {\n wsaSchema = new XmlSchema(ReferenceConstants.WSADDRESSING_NAMESPACE, schemas);\n }\n XmlSchemaType objectType = new XmlSchemaSimpleType(wsaSchema, true);\n objectType.setName(ReferenceConstants.WSADDRESSING_LOCAL_NAME);\n setSchemaType(objectType);\n\n // Build and assign the corba:object to the visitor\n Object corbaObject = new Object();\n corbaObject.setQName(new QName(typeMap.getTargetNamespace(), \"CORBA.Object\"));\n corbaObject.setRepositoryID(\"IDL:omg.org/CORBA/Object/1.0\");\n corbaObject.setType(objectType.getQName());\n setCorbaType(corbaObject);\n\n // Add the object definition to the typemap. We only need to add the default\n // type once.\n if (!isReferenceCORBATypeDefined(corbaObject.getQName())) {\n typeMap.getStructOrExceptionOrUnion().add(corbaObject);\n }\n }", "title": "" }, { "docid": "19ed5c16367c20f7ee2f8c5fea241cad", "score": "0.49941048", "text": "void persist(OutputStream out, Object obj) throws PersistenceException;", "title": "" }, { "docid": "0b204e9e0ca257a63e50d4286f0ecd21", "score": "0.49934337", "text": "public <T> StorageMap put(@NonNull String key, @NonNull T object) {\n if (key == null) {\n throw new IllegalArgumentException(\"Key parameter in put method of \" + StorageMap.class.getSimpleName() +\n \" class must not be null.\");\n }\n if (object == null) {\n throw new IllegalArgumentException(\"Object parameter in put method of \" + StorageMap.class.getSimpleName() +\n \" class must not be null.\");\n }\n if (object instanceof View) {\n throw new IllegalArgumentException(\"Object parameter in put method of \" + StorageMap.class.getSimpleName() +\n \" class must not be of type View; Views cannot be persisted between different components.\");\n }\n if (object instanceof Bitmap) {\n //Bitmaps can be rather large files and should not be passed between components through Intents,\n //Bundles, or SharedPreferences. Instead they should be saved to a file and the File location\n //should be shared to other components.\n saveBitmap(key, (Bitmap) object);\n } else {\n if (intent == null && bundle == null) {\n //When creating an instance of this Object, the user did not specify an Intent or Bundle.\n //Therefore, we can use SharedPreferences, static fields, Files, or SQLite.\n if (isPreferenceable(object)) {\n savePreference(key, object);\n } else {\n String json = new Gson().toJson(object);\n savePreference(key, json);\n }\n } else if (intent != null) {\n //The user specified an Intent when creating an instance of this Object, so use the Intent.\n Bundle b = saveToBundle(key, object);\n intent.putExtras(b);\n } else {\n //The user specified a Bundle when creating an instance of this Object, so use the Bundle.\n saveToBundle(key, object);\n }\n }\n return this;\n }", "title": "" }, { "docid": "c8d5cd6a9a0dec5097f5e4905d036438", "score": "0.498695", "text": "public void addReferenceProperties(DeserializationContext deserializationContext, BeanDescription beanDescription, BeanDeserializerBuilder beanDeserializerBuilder) throws JsonMappingException {\n JavaType javaType;\n Map findBackReferenceProperties = beanDescription.findBackReferenceProperties();\n if (findBackReferenceProperties != null) {\n for (Entry entry : findBackReferenceProperties.entrySet()) {\n String str = (String) entry.getKey();\n AnnotatedMember annotatedMember = (AnnotatedMember) entry.getValue();\n if (annotatedMember instanceof AnnotatedMethod) {\n javaType = ((AnnotatedMethod) annotatedMember).getParameterType(0);\n } else {\n javaType = annotatedMember.getType();\n if (annotatedMember instanceof AnnotatedParameter) {\n deserializationContext.reportBadTypeDefinition(beanDescription, \"Can not bind back references as Creator parameters: type %s (reference '%s', parameter index #%d)\", beanDescription.getBeanClass().getName(), str, Integer.valueOf(((AnnotatedParameter) annotatedMember).getIndex()));\n }\n }\n beanDeserializerBuilder.addBackReferenceProperty(str, constructSettableProperty(deserializationContext, beanDescription, SimpleBeanPropertyDefinition.construct((MapperConfig<?>) deserializationContext.getConfig(), annotatedMember, PropertyName.construct(str)), javaType));\n }\n }\n }", "title": "" }, { "docid": "202c0a87cb1d88d6655b4ec7f907659d", "score": "0.49825194", "text": "@Override\r\n\tpublic void save() {\n\t\t\r\n\t}", "title": "" }, { "docid": "202c0a87cb1d88d6655b4ec7f907659d", "score": "0.49825194", "text": "@Override\r\n\tpublic void save() {\n\t\t\r\n\t}", "title": "" }, { "docid": "42c420a2f25a87101bf139800ecb8149", "score": "0.4974393", "text": "void writeObjectId(ObjectId objectId);", "title": "" }, { "docid": "c0a22116670789b23a2f0827b9ca20f1", "score": "0.4963794", "text": "private void setReference(String refPath)\n {\n this.pathOrReference=refPath; \n }", "title": "" }, { "docid": "ef0cad68144ac6e09bcbbc82b3e7ebed", "score": "0.49585822", "text": "public void add(GeometricalObject object);", "title": "" }, { "docid": "f9d66f47091673f744ef839e84dbdaaf", "score": "0.49541432", "text": "void relocateSimpleBeanObject(SimpleBeanObject obj, LatLonPoint newllp) {\n\n SimpleBeanContainer oldContainer = null;\n\n // no support yet for containers within containers because\n // of unresolved issues regarding partially over-lapping\n // containers.\n if (!(obj instanceof SimpleBeanContainer))\n oldContainer = (SimpleBeanContainer) findEnclosingContainer(obj);\n\n if (oldContainer != null)\n oldContainer.remove(obj);\n\n obj.setLatitude(newllp.getLatitude());\n obj.setLongitude(newllp.getLongitude());\n\n if (obj instanceof SimpleBeanContainer)\n ((SimpleBeanContainer) obj).validate();\n\n SimpleBeanContainer newContainer = null;\n\n if (!(obj instanceof SimpleBeanContainer))\n newContainer = (SimpleBeanContainer) findEnclosingContainer(obj);\n\n if (newContainer != null)\n newContainer.add(obj);\n\n }", "title": "" }, { "docid": "3c13c5b2347d7ced3b64d89f125dc40f", "score": "0.49449232", "text": "public void setObject(String key, LeoObject value) {\n setObject(LeoString.valueOf(key), value);\n }", "title": "" }, { "docid": "67845f95215320b922de9f6c881c60b7", "score": "0.494309", "text": "private void storeElementInThis(BoundaryMapElement element) {\n if (storedElements == null) { // lazy instantiation; some branch lists may not actually store elements\n storedElements = new Vector();\n }\n storedElements.add(element);\n }", "title": "" }, { "docid": "6909f7497a267be30828ceac6e3fab75", "score": "0.4942341", "text": "protected void storeExportedInterface(CSARID csarID, QName serviceTemplateID, TExportedInterface iface) {\r\n\t\tToscaEngineServiceImpl.toscaReferenceMapper.storeExportedInterface(csarID, serviceTemplateID, iface);\r\n\t}", "title": "" }, { "docid": "5c64fc7b7dd29bb12b9317bf0bc975d1", "score": "0.49374563", "text": "public abstract Object convertUponSet(Object value);", "title": "" }, { "docid": "e4297c809113e6b95f9af4d3be56d196", "score": "0.4936027", "text": "public void setRootObject(Object anObj) { _rootObject = anObj; }", "title": "" }, { "docid": "ca60ead18afaee5607b016578dfb92cb", "score": "0.49341014", "text": "@Override\n\tpublic void update(Transportista object) {\n\t\tsessionFactory.getCurrentSession().merge(object);\n\t\t\n\t}", "title": "" }, { "docid": "63de9914c7b8228711917c769907d41b", "score": "0.4925833", "text": "public TransformedServiceReference<S> addPropertyIfAbsent(String name, Object value);", "title": "" }, { "docid": "0faa35dcf8d2253cbbaa220c5e2dab8c", "score": "0.49243173", "text": "private void setRef(RhsRefType rType, String rawReference, int depth) {\n\t\t// if this reference is defined at root, push into base component so names are generated correctly\n\t\tString rootInst = Ordt.getModel().getRootInstance().getId() + \".\";\n\t\tif (rawReference.startsWith(rootInst)) {\n\t\t\trawReference = rawReference.replaceFirst(rootInst, \"\");\n\t\t\tdepth = depth - 1;\n\t\t}\n\t\tRhsReference newRef = new RhsReference(rawReference, depth);\n\t\trhsReferences.put(rType, newRef);\n\t}", "title": "" }, { "docid": "0d22a54a1002ecc2e7dfa27d1b4d8cff", "score": "0.49210942", "text": "Reference createReference();", "title": "" }, { "docid": "eeaf0a07a867b4696e4f6387574f26be", "score": "0.4920565", "text": "private Object pushObject(Object obj, String fieldName) throws SAXException {\n/* 512 */ if (!this.cycleDetectionStack.push(obj)) {\n/* 513 */ return obj;\n/* */ }\n/* */ \n/* 516 */ if (obj instanceof CycleRecoverable) {\n/* 517 */ obj = ((CycleRecoverable)obj).onCycleDetected(new CycleRecoverable.Context() {\n/* */ public Marshaller getMarshaller() {\n/* 519 */ return (Marshaller)XMLSerializer.this.marshaller;\n/* */ }\n/* */ });\n/* 522 */ if (obj != null) {\n/* */ \n/* */ \n/* */ \n/* 526 */ this.cycleDetectionStack.pop();\n/* 527 */ return pushObject(obj, fieldName);\n/* */ } \n/* 529 */ return null;\n/* */ } \n/* */ \n/* */ \n/* 533 */ reportError((ValidationEvent)new ValidationEventImpl(1, Messages.CYCLE_IN_MARSHALLER.format(new Object[] { this.cycleDetectionStack.getCycleString() }, ), getCurrentLocation(fieldName), null));\n/* */ \n/* */ \n/* */ \n/* */ \n/* 538 */ return null;\n/* */ }", "title": "" }, { "docid": "9a90280a8b56fa6f144a81493eccbb34", "score": "0.491893", "text": "private Transaction resolveReferenceTxn(Object obj) {\n if (obj instanceof PdxInstanceImpl) {\n return ReferenceHelper.toObject(obj, Transaction.class);\n } else {\n return (Transaction) obj;\n }\n }", "title": "" }, { "docid": "4c205acfec30eaf00e12bdfb857f2012", "score": "0.49182996", "text": "public void setResolvedObj(Object paramObject) {\n/* 250 */ this.resolvedObj = paramObject;\n/* */ }", "title": "" }, { "docid": "2ab91661d61fd28291a9f7af550d85f2", "score": "0.49149823", "text": "public SerializableLocation(Location originalLocationObject) {\n \n \t\taccuracy = originalLocationObject.getAccuracy();\n \t\tbearing = originalLocationObject.getBearing();\n \t\tlatitude = originalLocationObject.getLatitude();\n \t\tlongitude = originalLocationObject.getLongitude();\n \t\tprovider = originalLocationObject.getProvider();\n \t\tspeed = originalLocationObject.getSpeed();\n\t\ttime = originalLocationObject.getTime();\n \t\thasAccuracy = originalLocationObject.hasAccuracy();\n \t\thasBearing = originalLocationObject.hasBearing();\n \t\thasSpeed = originalLocationObject.hasSpeed();\n \n \t}", "title": "" }, { "docid": "5cb6b4f173e0e87a36c19fa038a5b9ed", "score": "0.49123538", "text": "protected void setObj(Object c) {\r\n this.obj = c;\r\n }", "title": "" }, { "docid": "04182f4ae39d9bdd610605cf7ed0e4bc", "score": "0.49081868", "text": "public synchronized void putObject(Object obj)\n\t\t{\n\t\t\tinstances[current] = obj;\n\t\t}", "title": "" } ]
b80b0807b607818dc60e7230d65bfb72
Invokes the databaseDownloadFile method with the given input using the given environment, deserializing to an object of the specified class.
[ { "docid": "230aa30dd8f32a018acdad9e7c5dca3c", "score": "0.6779674", "text": "public static <T> T databaseDownloadFile(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"downloadFile\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" } ]
[ { "docid": "3d7d375d4efb636fa5587b2eb37e77a7", "score": "0.6742524", "text": "public static <T> T databaseDownloadFile(String objectId, Class<T> outputClass, DXEnvironment env) {\n return databaseDownloadFile(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "e224d0a9fd395d4d8f56bd81186d1827", "score": "0.6160217", "text": "public static <T> T databaseDownloadFile(String objectId, Object inputObject, Class<T> outputClass) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest().request(\"/\" + objectId + \"/\" + \"downloadFile\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "930d2576b44d18cdce3fa22d4a346a7e", "score": "0.61164516", "text": "public static <T> T fileDownload(String objectId, Class<T> outputClass, DXEnvironment env) {\n return fileDownload(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "4a30c49d921d0902ec579d836082faf2", "score": "0.6036247", "text": "public static <T> T fileDownload(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"download\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "158fcdc1dd7902d1fbb4f3a413d9abcf", "score": "0.59936595", "text": "public static <T> T databaseDownloadFile(String objectId, Class<T> outputClass) {\n return databaseDownloadFile(objectId, mapper.createObjectNode(), outputClass);\n }", "title": "" }, { "docid": "a65d74f5fe9011d9512b1210cb4a6837", "score": "0.54018766", "text": "public static <T> T fileDownload(String objectId, Object inputObject, Class<T> outputClass) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest().request(\"/\" + objectId + \"/\" + \"download\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "cccda97d82fc50356a40948bfa75a8f6", "score": "0.5311932", "text": "public static <T> T fileDownload(String objectId, Class<T> outputClass) {\n return fileDownload(objectId, mapper.createObjectNode(), outputClass);\n }", "title": "" }, { "docid": "768b6820992ecd614a619eff32f1595a", "score": "0.48402786", "text": "Download createDownload();", "title": "" }, { "docid": "296506d63f859dfe3af297939c6a84f6", "score": "0.48272508", "text": "public static <T> T systemFindDatabases(Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/system/findDatabases\", input, RetryStrategy.SAFE_TO_RETRY),\n outputClass);\n }", "title": "" }, { "docid": "2c0379e2ef8338479abcbc0406acdbd6", "score": "0.48236784", "text": "public static <T> T projectUnarchive(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"unarchive\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "8d9638d8ec9532733ce5c673ee026e58", "score": "0.4823052", "text": "public static <T> T systemResolveDataObjects(Class<T> outputClass, DXEnvironment env) {\n return systemResolveDataObjects(mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "1aaaca3e216afddbfb17c10245048f85", "score": "0.48149619", "text": "public static <T> T fileNew(Class<T> outputClass, DXEnvironment env) {\n return fileNew(mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "51968f21e08905d60c7ff67bca30c850", "score": "0.4726001", "text": "public static <T> T fileGetDetails(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"getDetails\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "b0abdce0af9fdb69e327963c83f7d0d1", "score": "0.472213", "text": "public static <T> T fileNew(Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = Nonce.updateNonce(mapper.valueToTree(inputObject));\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/file/new\", input, RetryStrategy.SAFE_TO_RETRY),\n outputClass);\n }", "title": "" }, { "docid": "2160653d278bf526cb90dc132856a313", "score": "0.4705923", "text": "public static <T> T systemResolveDataObjects(Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/system/resolveDataObjects\", input, RetryStrategy.SAFE_TO_RETRY),\n outputClass);\n }", "title": "" }, { "docid": "3515221e9244169604fd279055bbfce2", "score": "0.4705294", "text": "public static <T> T projectUnarchive(String objectId, Class<T> outputClass, DXEnvironment env) {\n return projectUnarchive(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "0cd2789e6659dd3bb57805763755b5be", "score": "0.46875665", "text": "public static <T> T fileGetDetails(String objectId, Class<T> outputClass, DXEnvironment env) {\n return fileGetDetails(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "95f5f005892e5adefbe86f297af57e54", "score": "0.46777332", "text": "public static <T> T workflowRun(String objectId, Class<T> outputClass, DXEnvironment env) {\n return workflowRun(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "79c8b3b3a2d9f8de6adf09e449501c53", "score": "0.46747422", "text": "public static <T> T systemFindDatabases(Class<T> outputClass, DXEnvironment env) {\n return systemFindDatabases(mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "b02a3ac5c67e87161b44472e68fdf9d6", "score": "0.46678007", "text": "public static <T> T databaseClose(String objectId, Class<T> outputClass, DXEnvironment env) {\n return databaseClose(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "631d7bd99fbcf66533e6ef3444dd0f53", "score": "0.46666658", "text": "public static <T> T databaseClose(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"close\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "362f66f93551ca7cd1d60a5b736c3836", "score": "0.46442592", "text": "public static <T> T systemFindDataObjects(Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/system/findDataObjects\", input, RetryStrategy.SAFE_TO_RETRY),\n outputClass);\n }", "title": "" }, { "docid": "72f4b0a111c90abcf802d66f20b4441e", "score": "0.46135274", "text": "<O extends Object> O loadFromReader(String packageName, Class<O> classToRead, Reader reader);", "title": "" }, { "docid": "9ea662bba55f8870f8ab8af13b65e1d0", "score": "0.46066236", "text": "public static <T> T fileUpload(String objectId, Class<T> outputClass, DXEnvironment env) {\n return fileUpload(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "1dce9f4773e1253e690d5b79479f895b", "score": "0.46019116", "text": "public static <T> T databaseGetDetails(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"getDetails\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "7cdb89e8109b055ee323483e3053a2fb", "score": "0.46009192", "text": "public static <T> T fileClose(String objectId, Class<T> outputClass, DXEnvironment env) {\n return fileClose(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "5a968658a2d9c9d0fcd5b169f127604e", "score": "0.46005774", "text": "public static <T> T systemFindDataObjects(Class<T> outputClass, DXEnvironment env) {\n return systemFindDataObjects(mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "22be5a8730d0e4985e037b78f59c7f96", "score": "0.45930377", "text": "public void readExternal(ObjectInput objectInput) throws IOException, ClassNotFoundException {\n DataFlavor dataFlavor = this;\n synchronized (dataFlavor) {\n this.humanPresentableName = (String)objectInput.readObject();\n this.mimeInfo = (MimeTypeProcessor.MimeType)objectInput.readObject();\n Class class_ = this.mimeInfo != null ? Class.forName((String)this.mimeInfo.getParameter(\"class\")) : null;\n this.representationClass = class_;\n return;\n }\n }", "title": "" }, { "docid": "8be65cb926f24216ab8b6de53a9e0473", "score": "0.45881894", "text": "public static <T> T appRun(String objectId, Class<T> outputClass, DXEnvironment env) {\n return appRun(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "fae478c631af4295c172a36d59c55881", "score": "0.45788816", "text": "public static <T> T fileClose(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"close\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "87915c1271e02b4da7a2e41194678c2c", "score": "0.45676875", "text": "public FileDownload() {\n }", "title": "" }, { "docid": "065fea6070c377c031912d0517c6990b", "score": "0.45670903", "text": "public static <T> T projectArchive(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"archive\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "1c6fe85ac7f4a54996d965d93982d6c3", "score": "0.45648405", "text": "public static <T> T databaseRelocate(String objectId, Class<T> outputClass, DXEnvironment env) {\n return databaseRelocate(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "f7da0b7c4d0362e81b169508b3cdb33d", "score": "0.45288128", "text": "public static <T> T databaseGetDetails(String objectId, Class<T> outputClass, DXEnvironment env) {\n return databaseGetDetails(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "2bbaf7a45eac3e29855ad28d0e8350f5", "score": "0.45206442", "text": "public static <T> T workflowRun(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = Nonce.updateNonce(mapper.valueToTree(inputObject));\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"run\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "05d20f0da40b85d0113528b1c6706188", "score": "0.45062333", "text": "public File //c Construct a downloader to download the content of a specified url into a specified file\n (String downloadUrl, //P Url to read\n java.io.File outputFile) //P File to write\n {this.downloadUrl = downloadUrl;\n this.outputFile = outputFile;\n }", "title": "" }, { "docid": "c40b023486f82ec8432b9784631215e2", "score": "0.45003524", "text": "public static <T> T databaseRelocate(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"relocate\",\n input, RetryStrategy.UNSAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "bea70b39732e07e80a04e711b1f05489", "score": "0.4490107", "text": "public static <T> T appRun(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = Nonce.updateNonce(mapper.valueToTree(inputObject));\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"run\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "e0228e02d2ac4976ce113548607fe6a5", "score": "0.4480437", "text": "public void download() {\n }", "title": "" }, { "docid": "e58830ac72a34dddc19f509a90bae0b6", "score": "0.4471261", "text": "public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {\n id = (String) in.readObject();\n searchkey = (String) in.readObject();\n taxid = \"1\";\n name = (String) in.readObject();\n curdebt = (String) in.readObject();\n }", "title": "" }, { "docid": "a6464e13920c4bf5bb3d2485afbfdcaa", "score": "0.4458973", "text": "public static <T> T fileSetProperties(String objectId, Class<T> outputClass, DXEnvironment env) {\n return fileSetProperties(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "6200180921cee82d63fc9de9251683f5", "score": "0.44454008", "text": "@Override\n public void execute(final StreamExecutionEnvironment env) throws Exception {\n env.getConfig().setGlobalJobParameters(parameterTool);\n\n String suffix = parameterTool.getRequired(\"db.table\");\n\n String path = parameterTool.getRequired(\"fs.src.dir.\" + suffix);\n\n DataStream<String> jsonRecords = env.readFileStream(path, 100, WatchType.ONLY_NEW_FILES)\n .map(new RecordCounter<String>()).name(RecordCounter.DESCRIPTION);\n\n jsonRecords.addSink(new KafkaSink(suffix, parameterTool.getProperties()).getSink()).name(KafkaSink.DESCRIPTION);\n\n env.execute(\"Reads from HDFS and writes to Kafka\");\n }", "title": "" }, { "docid": "116e92fb35b8c4c0e01e8937f0c93f11", "score": "0.444537", "text": "protected abstract InputStream getDatabaseStream() throws DatabaseLoadException;", "title": "" }, { "docid": "e63ebf2722284d7b8ddb12f719b4e191", "score": "0.44348726", "text": "public static <T> T projectTransfer(String objectId, Class<T> outputClass, DXEnvironment env) {\n return projectTransfer(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "0430e49da934f3073bf43315653eb51c", "score": "0.44333857", "text": "public static <T> T projectArchive(String objectId, Class<T> outputClass, DXEnvironment env) {\n return projectArchive(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "12af86a01ee92cf9f49a8d8e8c4c1cc3", "score": "0.43979073", "text": "public ReturnClass downloadData(){\n\t\tDisplayData.displayLine(\"InputInstrumentData.downloadData\");\r\n\r\n\t\tTestData td = new TestData(Instrument.ADI);\r\n\t\t\r\n\t\t\r\n\t\tthis.input = td.getDoubleData();\r\n\t\tDisplayData.displayDuobleData(this.input);\r\n\t\t\r\n\t\tloaded = true;\r\n\t\treturn new ReturnClass(\"success\");\r\n\t}", "title": "" }, { "docid": "3169f54979d33e33a4c1d04691389249", "score": "0.43848553", "text": "public static <T> T appGet(String objectId, Class<T> outputClass, DXEnvironment env) {\n return appGet(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "887fc9e4584cf00e2badc9a55874be3f", "score": "0.43686798", "text": "public downloadFile() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "e906ffdd2b8e6aaca478750ca285d826", "score": "0.43574223", "text": "public static <T> T appGet(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"get\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "b2ef094ec802849970f1297ec94dd6c9", "score": "0.43491387", "text": "public static <T> T projectTransfer(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"transfer\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "9e009ed8e152ac0de61ca46fb2af8122", "score": "0.43476835", "text": "@Override\n\tpublic void readExternal(ObjectInput in) throws IOException,\n\t\t\tClassNotFoundException {\n\t\tthis.startup = true;\n\t\t\n\t\t//in startup nothing scheduled yet\n\t\tthis.schedule = NOT_SYNCHED;\n\t\t\n\t\tthis.version = in.readByte();\n\t\t\n\t\tname = (String) in.readObject();\n\t\t\n\t\tthis.lastModified = 0;\n\t\t\n\t\tthis.modified = in.readLong();\n\t\t\n\t\tthis.state = in.readByte();\n\n\t\tbyte[] data = (byte[]) in.readObject();\n\t\t\n\t\tif(data == null) {\n\t\t\t\n\t\t\tif( state != STATE_DEL )\n\t\t\t\t\n\t\t\t\tthrow new ClassNotFoundException();\n\t\t\t\n\t\t\t//resolver = null;\n\t\t\tresource = null;\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t//this.resolver = GeoResolver.fromBytes(data);\n\t\t\t\tthis.resource = Resource.fromBytes(data);\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tlog.error(\"\",e);\n\t\t\t\t\n\t\t\t\tthrow new ClassNotFoundException();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "30a4d9a3ce02da26cb07cb775dcb9303", "score": "0.43474838", "text": "public static <T> T fileDescribe(String objectId, Class<T> outputClass, DXEnvironment env) {\n return fileDescribe(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "195328e542f1df7628e6b270a8f09a67", "score": "0.434648", "text": "public interface DownloadData {\n}", "title": "" }, { "docid": "420dbf8f5e97e54c3ac0c9e15be4899b", "score": "0.43369266", "text": "public FTableDatabase read(InputStream input) throws IOException {\n\t\t\n\t\t// Create a tokenizer that can parse the input stream.\n\t\tBufferedReader reader = new BufferedReader( new InputStreamReader( input ) );\n\t\tStreamTokenizer tokenizer = new StreamTokenizer( reader );\n\t\t\n\t\tFTableDatabase db = readFDAStream( tokenizer );\n\t\t\n\t\treturn db;\n\t}", "title": "" }, { "docid": "1b886a33afce11fafde47e11aa428dda", "score": "0.43312177", "text": "private void run(String inputFileName) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString username;\n\t\tString password;\n\t\tString host;\n\t\tString port;\n\t\tString dbName;\n\t\t//try {\n\t\t\tSystem.out.println(\"Enter the input CSV file name\");\n\t\t\tinputFileName = \"data.csv\";// br.readLine().trim();\n\t\t\tSystem.out.println(\"Enter the DB username\");\n\t\t\tusername = \"vahan\"; //br.readLine().trim();\n\t\t\tSystem.out.println(\"Enter the DB password\");\n\t\t\tpassword = \"123\"; //br.readLine().trim();\n\t\t\tSystem.out.println(\"Enter the DB host name\");\n\t\t\thost = \"localhost\"; //br.readLine().trim();\n\t\t\tSystem.out.println(\"Enter the DB port\");\n\t\t\tport = \"5432\"; //br.readLine().trim();\n\t\t\tSystem.out.println(\"Enter the DB name\");\n\t\t\tdbName = \"mousedb\"; //br.readLine().trim();\n\t\t/*} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}*/\n\t\t\n\t\tprocessor = new DataProcessor(inputFileName, username, password, host, port, dbName);\n\t\tif (!processor.getPsqlManager().connect(host, port, dbName)) {\n\t\t\tSystem.out.println(\"Could not connect to the DB at \" + processor.getPsqlManager().getUrl());\n\t\t\treturn;\n\t\t}\n\t\tif (!processor.process()) {\n\t\t\tSystem.out.println(\"An error accurred! Please check the above error messages\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"The data was successfully read, processed and stored in DB\");\n\t}", "title": "" }, { "docid": "b2a85f8b0f3d11066c2cc1fbbedc7b51", "score": "0.4319892", "text": "DownloadResult createDownloadResult();", "title": "" }, { "docid": "44b5e43ec6b022cc8a75e9d268544dc5", "score": "0.43150392", "text": "public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {\n productionAreaType = (String) in.readObject();\n productionArea = (String) in.readObject();\n path = null;\n iskot=((String) in.readObject());\n\n }", "title": "" }, { "docid": "b82f7f3a6c2190ec843644ddf6f9233d", "score": "0.4308884", "text": "public static <T> T jobUpdate(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"update\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "43f47a5396eb3c620271ffe4b47ebcb0", "score": "0.43053645", "text": "public static void main(String[] args) throws IOException, ClassNotFoundException {\n\n File file = new File(\"/Users/james/shell/serialize.txt\");\n SerializeEntity batchPay=new SerializeEntity(\"james\", \"SH\", \"1234567\", 9999);\n FileOutputStream fos=new FileOutputStream(file);\n ObjectOutputStream objectOutputStream=new ObjectOutputStream(fos);\n objectOutputStream.writeObject(batchPay);\n objectOutputStream.close();\n getFile();\n\n }", "title": "" }, { "docid": "8cf8a3793a9dec46414031d75f07d296", "score": "0.4304472", "text": "public Object retrieveObject(String filename)\n {\n try\n {\n ObjectInputStream o = new ObjectInputStream(new FileInputStream(storage_directory+filename));\n Object obj = o.readObject();\n return obj;\n }\n catch(Exception e)\n {\n }\n return null;\n }", "title": "" }, { "docid": "2bd8daf39b8d3a06e391b85d45827ec5", "score": "0.43014398", "text": "public static <T> T appDelete(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"delete\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "55212493c2ec4746f09e8bd3b755a907", "score": "0.4297996", "text": "public static <T> T jobUpdate(String objectId, Class<T> outputClass, DXEnvironment env) {\n return jobUpdate(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "7b4209d13692a2d15e835b2a607371ca", "score": "0.42960972", "text": "public void readExternal(ObjectInput in)\n\t\t throws IOException, ClassNotFoundException\n\t{\n\t\tid = (UUID)in.readObject();\n\t\tname = (String)in.readObject();\n\t\ttriggerSchemaId = (UUID)in.readObject();\n\t\ttriggerTableId = (UUID)in.readObject();\n\t\teventMask = in.readInt();\n\t\tisBefore = in.readBoolean();\n\t\tisRow = in.readBoolean();\n\t\tisEnabled = in.readBoolean();\n\t\twhenSPSId = (UUID)in.readObject();\n\t\tactionSPSId = (UUID)in.readObject();\n\t\tint length = in.readInt();\n\t\tif (length != 0)\n\t\t{\n\t\t\treferencedCols = new int[length];\n\t\t\tfor (int i = 0; i < length; i++)\n\t\t\t{\n\t\t\t\treferencedCols[i] = in.readInt();\n\t\t\t}\n\t\t}\n\t\tlength = in.readInt();\n\t\tif (length != 0)\n\t\t{\n\t\t\treferencedColsInTriggerAction = new int[length];\n\t\t\tfor (int i = 0; i < length; i++)\n\t\t\t{\n\t\t\t\treferencedColsInTriggerAction[i] = in.readInt();\n\t\t\t}\n\t\t}\n\t\ttriggerDefinition = (String)in.readObject();\n\t\treferencingOld = in.readBoolean();\n\t\treferencingNew = in.readBoolean();\n\t\toldReferencingName = (String)in.readObject();\n\t\tnewReferencingName = (String)in.readObject();\n whenClauseText = (String) in.readObject();\n\t}", "title": "" }, { "docid": "d6858d1a772012e6b57f736768050aec", "score": "0.4291856", "text": "public static <T> T fileSetDetails(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"setDetails\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "b5d6df12c58d911f04471217b3b10a81", "score": "0.42831", "text": "public void readExternal(ObjectInput in) throws IOException,ClassNotFoundException;", "title": "" }, { "docid": "d37ec0c84e32a9c7eb1e3fcab1a57fa3", "score": "0.42806086", "text": "public static CaptureRecord loadFromDisk(Context applicationContext) {\n String fileContents = null;\n try {\n FileInputStream fis = applicationContext.openFileInput(JR_CAPTURE_SIGNED_IN_USER_FILENAME);\n fileContents = CaptureStringUtils.readFully(fis);\n JSONObject serializedVersion = new JSONObject(fileContents);\n CaptureRecord loadedRecord = new CaptureRecord();\n loadedRecord.original = serializedVersion.getJSONObject(\"original\");\n loadedRecord.accessToken = serializedVersion.getString(\"accessToken\");\n loadedRecord.refreshSecret = serializedVersion.optString(\"refreshSecret\");\n JsonUtils.deepCopy(serializedVersion.getJSONObject(\"this\"), loadedRecord);\n fis.close();\n } catch (FileNotFoundException ignore) {\n } catch (UnsupportedEncodingException e) {\n throwDebugException(new RuntimeException(\"Unexpected\", e));\n return null;\n } catch (IOException e) {\n throwDebugException(new RuntimeException(\"Unexpected\", e));\n } catch (JSONException ignore) {\n LogUtils.loge(\"Bad CaptureRecord file contents:\\n\" + fileContents, ignore);\n // Will happen on corrupted file\n }\n return null;\n }", "title": "" }, { "docid": "33fccfa100baa6d60514a7501a1bb581", "score": "0.42611182", "text": "public static <T> T fileDescribe(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"describe\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "a94fa3b8a841d2e57dcdfd6e536c983e", "score": "0.4257552", "text": "public static <T> T fileUpload(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"upload\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "1d1d04e7a41edc2378d4a6502354bcaf", "score": "0.42568555", "text": "public Database deserialize(){\n Database database = new Database();\n File[] allBackups = this.dbFileDir.listFiles();\n if(allBackups.length == 1){\n firstTimeDeserialize(database);\n }\n else{\n deserializeFromNewestBackup(database);\n }\n return database;\n }", "title": "" }, { "docid": "f45bf141df05db5411baf99ad5ca02cd", "score": "0.42516088", "text": "private Object readObjectFromFile(String filename) {\n\t\tFileInputStream fos;\n\t\ttry {\n\t\t\tfos = context.openFileInput(filename);\n\t\t\tObjectInputStream oin = new ObjectInputStream(fos);\n\t\t\tObject o = oin.readObject();\n\t\t\toin.close();\n\t\t\treturn o;\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\n\t\t} catch (OptionalDataException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "efe1fca1202c2b30d081baa71292b48b", "score": "0.4245196", "text": "@Transactional\n public byte[] codeBaseDataModels(String id) {\n Project project = findById(id);\n File file = null;\n List<String> keys = project.getDataModel();\n List<String> keyNames = new ArrayList<>();\n for (String key : keys) {\n String array1[] = key.split(\"/\");\n String newKey = array1[2].toString();\n keyNames.add(newKey);\n }\n try {\n File newFile = new File(\"datamodels.txt\");\n if (newFile.createNewFile()) {\n System.out.println(\"New file created in the root directory\");\n } else {\n System.out.println(\"File already exist\");\n }\n byte[] esc = {'\\n', 'E', 'N', 'D', 'O', 'F', 'F', 'I', 'L', 'E'};\n OutputStream outStream = null;\n outStream = new FileOutputStream(newFile);\n for (String key : keyNames) {\n this.downloadInputStream = s3StorageServiceImpl.downloadFile(key);\n this.downloadInputStream.write(esc);\n this.downloadInputStream.writeTo(outStream);\n file = newFile;\n }\n outStream.close();\n InputStream in = new FileInputStream(file.getName());\n byte[] media = IOUtils.toByteArray(in);\n return media;\n } catch (IOException ioe) {\n ioe.getMessage();\n }\n return null;\n }", "title": "" }, { "docid": "c5fe9d60abc05a36f11ef8ce663cacfa", "score": "0.42424747", "text": "public static <T> T appUpdate(String objectId, Class<T> outputClass, DXEnvironment env) {\n return appUpdate(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "0df002b104e118e397a6aa3786831302", "score": "0.42423922", "text": "Downloadable export(ExportType exportType, String query, Pageable pageable);", "title": "" }, { "docid": "0df002b104e118e397a6aa3786831302", "score": "0.42423922", "text": "Downloadable export(ExportType exportType, String query, Pageable pageable);", "title": "" }, { "docid": "0df002b104e118e397a6aa3786831302", "score": "0.42423922", "text": "Downloadable export(ExportType exportType, String query, Pageable pageable);", "title": "" }, { "docid": "0df002b104e118e397a6aa3786831302", "score": "0.42423922", "text": "Downloadable export(ExportType exportType, String query, Pageable pageable);", "title": "" }, { "docid": "c25134041329664f08894e3c2385d871", "score": "0.42386967", "text": "public static <T> T workflowUpdate(String objectId, Class<T> outputClass, DXEnvironment env) {\n return workflowUpdate(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "127db3ef01a9a13d1f927c1c07424b56", "score": "0.4235619", "text": "public static <T> T appDelete(String objectId, Class<T> outputClass, DXEnvironment env) {\n return appDelete(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "717373093935d171c2a5369e3034f2a9", "score": "0.4230749", "text": "Dashboard deserialize(InputStream model);", "title": "" }, { "docid": "a09407c48356b871920b29248af9d6f5", "score": "0.4230224", "text": "@Override\n public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {\n }", "title": "" }, { "docid": "2d9b2cf142f5e1063eaf7a69d4cb0845", "score": "0.42144835", "text": "public static <T> T fileSetDetails(String objectId, Class<T> outputClass, DXEnvironment env) {\n return fileSetDetails(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "b912cf21b773b592481b8e2615d4577a", "score": "0.4201391", "text": "public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException\n\t{\n\t}", "title": "" }, { "docid": "b3eb5b5d3a07b2f4bdc8bd82d999531d", "score": "0.41972902", "text": "public Movie execute() {\n\t\tString url = \"http://www.omdbapi.com/\";\n\t\tString charset = java.nio.charset.StandardCharsets.UTF_8.name();\n\n\t\ttry {\n\t\t\tString query = String.format(\"t=%s&plot=full&r=json\", URLEncoder.encode(downloadURL, charset));\n\n\t\t\tURLConnection connection = new URL(url + \"?\" + query).openConnection();\n\t\t\tconnection.setRequestProperty(\"Accept-Charset\", charset);\n\t\t\tInputStream response = connection.getInputStream();\n\n\t\t\tStringBuilder responseStrBuilder = new StringBuilder();\n\t\t\tbyte b[] = new byte[10];\n\n\t\t\twhile (true) {\n\t\t\t\tint bytesRead = response.read(b);\n\t\t\t\tif (bytesRead < 0)\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\tresponseStrBuilder.append(new String(b, \"UTF-8\"));\n\t\t\t}\n\n\t\t\t// System.out.println(responseStrBuilder.toString());\n\t\t\ttry {\n\t\t\t\tJSONObject jObject = new JSONObject(responseStrBuilder.toString());\n\n\t\t\t\tString offTitle = jObject.getString(\"Title\");\n\t\t\t\tString year = jObject.getString(\"Year\");\n\t\t\t\tString genre = jObject.getString(\"Genre\");\n\t\t\t\tString imdbRating = jObject.getString(\"imdbRating\");\n\t\t\t\tString plot = jObject.getString(\"Plot\");\n\n\t\t\t\tMovie movie = new Movie(offTitle, year, genre, imdbRating, plot);\n\n\t\t\t\treturn movie;\n\n\t\t\t} catch (JSONException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (MalformedURLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn null;\n\n\t}", "title": "" }, { "docid": "b6a98eb6e0d1208d1864f557ec16e3cf", "score": "0.41964555", "text": "@Override\n public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {\n }", "title": "" }, { "docid": "ae92c0746121277ad001cf32659fb6e0", "score": "0.41956958", "text": "public static <T> T systemFindJobs(Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/system/findJobs\", input, RetryStrategy.SAFE_TO_RETRY),\n outputClass);\n }", "title": "" }, { "docid": "04dde1abcbf6911c3a2ba612f66d2c4d", "score": "0.41942114", "text": "protected void run( String url ) {\r\n\t\tSQLFile file = Factory.openSQLFile( getResource().resolve( url ), progress );\r\n\t\tSQLProcessor processor = new SQLProcessor( progress );\r\n\t\tprocessor.setContext( new SQLContext( context, file.getSource() ) );\r\n\t\tprocessor.process();\r\n\t}", "title": "" }, { "docid": "8ddfe24f1e84c0f62d8b33cf1aeb1aec", "score": "0.4190108", "text": "public static <T> T systemDescribeDataObjects(Class<T> outputClass, DXEnvironment env) {\n return systemDescribeDataObjects(mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "18ce70775c0af35669723f3bc371449f", "score": "0.4186461", "text": "public static <T> T globalWorkflowRun(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = Nonce.updateNonce(mapper.valueToTree(inputObject));\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"run\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "535bd342a79bd9983f45be3265c68ec8", "score": "0.41791645", "text": "@Override\r\n\tpublic void readExternal(ObjectInput in) throws IOException,\r\n\t\t\tClassNotFoundException \r\n\t{\n\t\tsuper.readExternal(in);\r\n\t\t\r\n\t\t//model\r\n\t\tmodel = (UnityBaseModel) in.readObject();\r\n\t}", "title": "" }, { "docid": "f8ec87060e2bb0cf411f0556863681d8", "score": "0.4177506", "text": "public static <T> T appUpdate(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"update\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "d7d2bf12fcd4ce2ac3621ea02e909365", "score": "0.41772977", "text": "public static <T> T projectUnarchive(String objectId, Object inputObject, Class<T> outputClass) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest().request(\"/\" + objectId + \"/\" + \"unarchive\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "34cd4fd0f2fe7594ed18ab060194899d", "score": "0.41772664", "text": "public static <T> T databaseDescribe(String objectId, Class<T> outputClass, DXEnvironment env) {\n return databaseDescribe(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "63ee26d5e63654188cd6552162d8a439", "score": "0.4175642", "text": "public final void readDatabase() throws IOException, ClassNotFoundException{\n\t\t\n\t}", "title": "" }, { "docid": "9a363e03b31aa37548b316bfa326a38f", "score": "0.41739225", "text": "public static <T> T databaseListFolder(String objectId, Class<T> outputClass, DXEnvironment env) {\n return databaseListFolder(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "64bbd455be734d12f626b1ae1fa9393d", "score": "0.41699043", "text": "public static <T> T projectUpdate(String objectId, Class<T> outputClass, DXEnvironment env) {\n return projectUpdate(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "4fa940dd5b0b3b17737f78af7acedcfe", "score": "0.4167859", "text": "public static <T> T databaseSetProperties(String objectId, Class<T> outputClass, DXEnvironment env) {\n return databaseSetProperties(objectId, mapper.createObjectNode(), outputClass, env);\n }", "title": "" }, { "docid": "a46f12965b319e986ac8f83b07d857d0", "score": "0.41646147", "text": "public static <T> T globalWorkflowDelete(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"delete\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "0ece197817e3b7610a4698c19795d9b7", "score": "0.41630074", "text": "public void importKB(InputStream in, KnowledgeBase entityCreatorFactory) throws ImportException;", "title": "" }, { "docid": "8d2de9c925b177e20493567a9f0a2725", "score": "0.41618794", "text": "public static <T> T workflowUpdate(String objectId, Object inputObject, Class<T> outputClass, DXEnvironment env) {\n JsonNode input = mapper.valueToTree(inputObject);\n return DXJSON.safeTreeToValue(\n new DXHTTPRequest(env).request(\"/\" + objectId + \"/\" + \"update\",\n input, RetryStrategy.SAFE_TO_RETRY), outputClass);\n }", "title": "" }, { "docid": "1cbcf0eaeb0c389ef1c03d706d3d822f", "score": "0.4158637", "text": "public static void main(String[] args) throws Exception {\n if (args.length!=3) {\n throw new Exception(\"Expected 2 arguments, path and url\");\n }\n String theUrl = args[0];\n Path thePath = Paths.get(args[1]);\n String theFile = args[2];\n logger.info(format(\"Loading %s to path %s file %s\", theUrl, thePath, theFile));\n FetchDataFromUrl fetcher = new FetchDataFromUrl(thePath, theUrl);\n fetcher.pullDataFromURL(theFile);\n }", "title": "" } ]
618879437e2131bedd326611ebebcddf
Created by bryan on 8/22/14.
[ { "docid": "79a8f8a95be34b1daf601ff38a1d87ef", "score": "0.0", "text": "public interface MongoWrapperClientFactory {\r\n public MongoClientWrapper createMongoClientWrapper( MongoProperties props, MongoUtilLogger log ) throws MongoDbException;\r\n}", "title": "" } ]
[ { "docid": "88ecb62c7a1a93131fb72fdf892b6e96", "score": "0.5799427", "text": "public void mo18969b() {\n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5765655", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5765655", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.56984043", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.56486815", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d8211552b23c886f56d98e4efc7a55fa", "score": "0.56370986", "text": "private void OI() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.56284297", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "efda110dae3567ecb4380b4b672c3e8d", "score": "0.56277734", "text": "public void anzeigen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c841421384f44238db014cb90fda536", "score": "0.55747604", "text": "@Override\n\tpublic void foocall() {\n\t}", "title": "" }, { "docid": "f9e89d9677a2c32741b998a15248d5eb", "score": "0.5557763", "text": "@Override\r\n\tpublic void Lyf() {\n\t\t\r\n\t}", "title": "" }, { "docid": "704e96abbfbd46ebb60411493a1aaa91", "score": "0.55524236", "text": "@Override\r\n\tpublic void magic() {\n\r\n\t}", "title": "" }, { "docid": "60b0611b3c431fd71ef675a97986d8ce", "score": "0.5552333", "text": "@Override\n\tpublic void bouger() {\n\t\t\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.55162996", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.55162996", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "d4dcf8d1b9c1a18d89084161416469f7", "score": "0.5500243", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "1eb850cd140029c3284631b6ea4a3a92", "score": "0.5498036", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.54971087", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.54701567", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5457547", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5457547", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5457547", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5457547", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5457547", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5457547", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5457547", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5457547", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5457547", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5457547", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.545003", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "2f2216d5b5c98690feaa3184c2634e23", "score": "0.5438415", "text": "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.5435302", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "8ff38dd3eaa9185a0355a9a5d33f6786", "score": "0.5432278", "text": "public static void _17 () {\n }", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.5419809", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.5419809", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.5413381", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "a23cfe6eb1e3b4f042f03089a0f3e2f1", "score": "0.5412474", "text": "public final void mo34057y() {\n }", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.5410841", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "11d78d8d83b1b65293f5da6fb36c371b", "score": "0.5392116", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.53752774", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "faf38c70a5abc38e6e6819931e05fdbb", "score": "0.5370577", "text": "@Override\n protected void initialize() { \n }", "title": "" }, { "docid": "7b7a2c774aed222ddd92948cb7f5cf10", "score": "0.536521", "text": "public final void mo9279b() {\n }", "title": "" }, { "docid": "da059b94540022e282b424f37c52abbd", "score": "0.53581357", "text": "public abstract void mo42512d();", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5351255", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5351255", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5351255", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "068782d4ca6b549d5b38c417ad4e7fbc", "score": "0.5344043", "text": "@Override\n\tpublic void embauche() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.5340414", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "603f0a18e57250d8f455d8cee02b8630", "score": "0.5336817", "text": "@Override\r\n public void Refuel() {\n \r\n }", "title": "" }, { "docid": "74e8290546e9191e1ae5373cdf611067", "score": "0.53352314", "text": "@Override\r\n\tpublic void Petrol() {\n\t\t\r\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.53271216", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.53236586", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.53236586", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "cb1da1c7693241eb3e67e8eebb18fd3d", "score": "0.5323206", "text": "public static void _19 () {\n }", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.5314919", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.5312383", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.5312383", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "af1d7a03c29969bf292760b5053e6876", "score": "0.5305608", "text": "@Override\r\n\tpublic void avanzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "083b1213b275772e56abee4ff39a7e1e", "score": "0.5297745", "text": "public abstract void mo2247c();", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.52954584", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "f523d2f53f60a1ff3244e79927814898", "score": "0.529084", "text": "public void mo46998a() {\n }", "title": "" }, { "docid": "f5d4f15bcecfb5439000bf8ce3463314", "score": "0.5290767", "text": "@Override\r\n protected void init() {\n \r\n }", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.52666366", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "22bd6b39ddec72c749f541898a9abc17", "score": "0.5263986", "text": "public abstract void mo2246b();", "title": "" }, { "docid": "617997395ed04d60c3848d3261f67272", "score": "0.52615714", "text": "public static void _08 () {\n }", "title": "" }, { "docid": "1e068e9a0b402d5c66c4bcd244738ebd", "score": "0.5260755", "text": "public void zamow() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5259114", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5259114", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5259114", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5259114", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "4967ef46e478afb6b9857c1ae38f9d31", "score": "0.5257391", "text": "private static void withraw() {\n\r\n\t}", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.52570134", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "93def8741e9801c804ccf94cc0a8c010", "score": "0.5251889", "text": "@Override\r\n\tpublic void comenzar() {\n\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5249821", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5249821", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5249821", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5249821", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5249821", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "6e516d7c552dcd925edbe971705ed31a", "score": "0.52491474", "text": "public void mo41019a() {\n }", "title": "" }, { "docid": "8f1e0b6c772a9b2c8e56a8a48a85e090", "score": "0.5248384", "text": "public final void mo9278a() {\n }", "title": "" }, { "docid": "5a8c0f7e9b7658a6a780c666089e0964", "score": "0.52434736", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "a92ef4f07b07ea7007bb9f92475a6a97", "score": "0.52371514", "text": "private void UDPM() {\n\n\t}", "title": "" }, { "docid": "a99e30b652142443b3bc50434f76fccb", "score": "0.5233129", "text": "@Override\n public int getPosition() {\n return 0;\n }", "title": "" }, { "docid": "ce8d362300f5128b8ed831fea8ac4b3c", "score": "0.5230951", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "0021e4ac28e65eeb87e0ddbe1a7a6bf9", "score": "0.52222085", "text": "public abstract void mo104718d();", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.5221837", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.52184594", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.52184594", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.52184594", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "d0b17083b981c128a171d6897ec5499a", "score": "0.5217796", "text": "@Override\n public int dR() {\n return 0;\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52141863", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52141863", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52141863", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "11d67a80d2cd31685776b15ccccc59f0", "score": "0.5213777", "text": "@Override\n\t\t\tpublic void PridenieNaBielu() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "64484444595df0ce72490d0072ef3903", "score": "0.5212107", "text": "public void mo1853d() {\n }", "title": "" }, { "docid": "04ba8cc977697122409d96df986141be", "score": "0.52088445", "text": "public abstract void mo41367d();", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5201548", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5201548", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5201548", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5201548", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5201548", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5201548", "text": "@Override\n protected void initialize() {\n }", "title": "" } ]
e4778e31c050bd57ecb765a4f154862f
Created by Android Hong on 20171213.
[ { "docid": "e818ecc8d6c5be30f72e234dd43427c9", "score": "0.0", "text": "public interface NewsPeedItemContract {\n\n interface iView{\n void setPresenter(iPresenter presenter);\n void goToPost(PostCover postCover);\n\n void showError(String text);\n }\n\n interface iPresenter{\n void attachView(iView view);\n void loadItem(int category);\n\n void setNewsPeedItemAdapterModel(NewsPeedItemAdapterContract.iModel model);\n void setNewsPeedItemAdapterView(NewsPeedItemAdapterContract.iView view);\n }\n}", "title": "" } ]
[ { "docid": "4d47f234c63a135a6a26c47a278d78dc", "score": "0.58981764", "text": "@Override\n\tpublic void onCreate() {\n\t\t\n\t}", "title": "" }, { "docid": "2655cc4ea27b4dc5f393a11a89d970f1", "score": "0.58792955", "text": "@Override\n\tprotected void onCreate() {\n\t}", "title": "" }, { "docid": "110ef4a77360b0174f0b924dd328c1c9", "score": "0.58463615", "text": "@Override\n\t\t\t\t\t\t\tpublic void onFinished() {\n\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "98037732d4c345b9a51dcba900ba360a", "score": "0.58404094", "text": "@Override\r\n\tprotected void onInit() {\n\r\n\t}", "title": "" }, { "docid": "8562155d4092deb07da14ded8286f4ed", "score": "0.5800949", "text": "@SuppressLint(\"MissingSuperCall\") @Override public void onCreate() {\n }", "title": "" }, { "docid": "73da1a6dc6d895b9b5cb5b40d14c7219", "score": "0.57856935", "text": "@Override\n public void onCreate()\n {\n }", "title": "" }, { "docid": "5c220e7088b4c0146be81be52f8f6f62", "score": "0.5771297", "text": "@Override\n public void onCreate() {\n }", "title": "" }, { "docid": "c6d0e68f7e7bcee7c68571a3e31fb1db", "score": "0.5745379", "text": "@Override\n\tpublic void onCreate() {\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.57188535", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "af1d7a03c29969bf292760b5053e6876", "score": "0.5651036", "text": "@Override\r\n\tpublic void avanzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fe58cdad7ac93ec8db52074db595c8dd", "score": "0.56396186", "text": "@Override\n public void onCreate()\n {\n\n }", "title": "" }, { "docid": "383ecc0f6f703d583b7ac564f937ba7d", "score": "0.5633953", "text": "@Override\n public void onCreate() {\n\n }", "title": "" }, { "docid": "11d78d8d83b1b65293f5da6fb36c371b", "score": "0.5631468", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.5619784", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "729844065463e662a5fa9972d216f1a0", "score": "0.56137794", "text": "@Override\n \tpublic void onInitialise()\n \t{\n \t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.55891585", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.55891585", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "faf38c70a5abc38e6e6819931e05fdbb", "score": "0.5583467", "text": "@Override\n protected void initialize() { \n }", "title": "" }, { "docid": "88ecb62c7a1a93131fb72fdf892b6e96", "score": "0.5567844", "text": "public void mo18969b() {\n }", "title": "" }, { "docid": "07a182d421938d59ecf67839293fe316", "score": "0.5553259", "text": "private void preCreate() {\n\t\t\n\t}", "title": "" }, { "docid": "8ab44e84a1f1c89d7512c8e9f8e235ee", "score": "0.554953", "text": "@Override\n public void onFinished() {\n\n }", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.551538", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f0c83816b88bd964d92c37856eabfe66", "score": "0.5490807", "text": "@Override // com.zhihu.android.picture.editor.widget.ZvePanel\n /* renamed from: i */\n public void mo103604i() {\n }", "title": "" }, { "docid": "f44a666325a798f011d4c49659d8f3e8", "score": "0.5485628", "text": "@Override\n public void onCreate() {\n // Nothing to do\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5481807", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5481807", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.5473871", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "27e8990b918fcfcf6eee93f8387ac4d2", "score": "0.5460608", "text": "private boolean m6480a() {\n /*\n r12 = this;\n java.lang.String r0 = com.tapjoy.TJCorePlacement.f6303a\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n java.lang.String r2 = \"Sending content request for placement \"\n r1.<init>(r2)\n com.tapjoy.TJCorePlacement r2 = com.tapjoy.TJCorePlacement.this\n java.lang.String r2 = r2.f6310c.getPlacementName()\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n com.tapjoy.TapjoyLog.m6553i(r0, r1)\n com.tapjoy.TJCorePlacement r0 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.internal.gz r1 = com.tapjoy.internal.C1831gz.m3554a()\n com.tapjoy.TJCorePlacement r2 = com.tapjoy.TJCorePlacement.this\n java.lang.String r8 = r2.f6310c.getPlacementName()\n com.tapjoy.TJCorePlacement r2 = com.tapjoy.TJCorePlacement.this\n android.content.Context r9 = r2.f6309b\n com.tapjoy.internal.hh r1 = r1.f3817a\n com.tapjoy.internal.gz r2 = r1.f7417a\n r10 = 0\n com.tapjoy.internal.fb r2 = r2.mo18118a(r10)\n com.tapjoy.internal.ij r11 = new com.tapjoy.internal.ij\n com.tapjoy.internal.gz r4 = r1.f7417a\n com.tapjoy.internal.fa r5 = r2.f7101d\n com.tapjoy.internal.eu r6 = r2.f7102e\n com.tapjoy.internal.fh r7 = r2.f7103f\n r3 = r11\n r3.<init>(r4, r5, r6, r7, r8, r9)\n r0.f6330w = r11\n com.tapjoy.TJCorePlacement r0 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.TapjoyURLConnection r1 = new com.tapjoy.TapjoyURLConnection\n r1.<init>()\n r0.f6327t = r1\n com.tapjoy.TJCorePlacement r0 = com.tapjoy.TJCorePlacement.this\n android.os.Handler r0 = r0.f6305B\n if (r0 != 0) goto L_0x0067\n com.tapjoy.TJCorePlacement r0 = com.tapjoy.TJCorePlacement.this\n android.os.Handler r1 = new android.os.Handler\n android.os.Looper r2 = android.os.Looper.getMainLooper()\n r1.<init>(r2)\n r0.f6305B = r1\n L_0x0067:\n com.tapjoy.TJCorePlacement r0 = com.tapjoy.TJCorePlacement.this\n r0.f6331x = r10\n com.tapjoy.TJCorePlacement r0 = com.tapjoy.TJCorePlacement.this\n android.os.Handler r0 = r0.f6305B\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n java.lang.Runnable r1 = r1.f6306C\n int r2 = com.tapjoy.TJPlacementManager.getPlacementResponseTimeOut()\n long r2 = (long) r2\n r0.postDelayed(r1, r2)\n com.tapjoy.TJCorePlacement r0 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.TapjoyURLConnection r1 = r0.f6327t\n java.lang.String r2 = r7\n r3 = 0\n r4 = 0\n com.tapjoy.TJCorePlacement r0 = com.tapjoy.TJCorePlacement.this\n java.util.Map r5 = r0.f6326s\n int r6 = com.tapjoy.TJPlacementManager.getPlacementResponseTimeOut()\n com.tapjoy.TapjoyHttpURLResponse r0 = r1.getResponseFromURL(r2, r3, r4, r5, r6)\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.TJPlacementData r1 = r1.f6310c\n int r2 = r0.statusCode\n r1.setHttpStatusCode(r2)\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.TJPlacementData r1 = r1.f6310c\n java.lang.String r2 = r0.response\n r1.setHttpResponse(r2)\n java.lang.String r1 = \"x-tapjoy-prerender\"\n java.lang.String r1 = r0.getHeaderFieldAsString(r1)\n java.lang.String r2 = \"0\"\n boolean r1 = r1.equals(r2)\n r2 = 1\n if (r1 != 0) goto L_0x00c6\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.TJPlacementData r1 = r1.f6310c\n r1.setPrerenderingRequested(r2)\n L_0x00c6:\n java.lang.String r1 = \"X-Tapjoy-Debug\"\n java.lang.String r1 = r0.getHeaderFieldAsString(r1)\n if (r1 == 0) goto L_0x00e3\n java.lang.String r3 = com.tapjoy.TJCorePlacement.f6303a\n java.lang.StringBuilder r4 = new java.lang.StringBuilder\n java.lang.String r5 = \"Tapjoy-Server-Debug: \"\n r4.<init>(r5)\n r4.append(r1)\n java.lang.String r1 = r4.toString()\n com.tapjoy.TapjoyLog.m6554v(r3, r1)\n L_0x00e3:\n long r3 = r0.expires\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 <= 0) goto L_0x010a\n long r3 = r0.expires\n long r7 = r0.date\n int r1 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r1 <= 0) goto L_0x00f6\n long r7 = r0.date\n goto L_0x00fa\n L_0x00f6:\n long r7 = com.tapjoy.internal.C3256v.m7569b()\n L_0x00fa:\n long r3 = r3 - r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 <= 0) goto L_0x010f\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n long r7 = android.os.SystemClock.elapsedRealtime()\n long r7 = r7 + r3\n r1.f6312e = r7\n goto L_0x010f\n L_0x010a:\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n r1.f6312e = r5\n L_0x010f:\n if (r0 == 0) goto L_0x0363\n com.tapjoy.TJPlacement r1 = r8\n com.tapjoy.TJPlacementListener r1 = r1.getListener()\n if (r1 == 0) goto L_0x0363\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n boolean r1 = r1.f6331x\n if (r1 != 0) goto L_0x0363\n int r1 = r0.statusCode\n if (r1 == 0) goto L_0x02f5\n r3 = 200(0xc8, float:2.8E-43)\n if (r1 == r3) goto L_0x014f\n java.lang.String r1 = \"TJPlacement.requestContent\"\n com.tapjoy.internal.gf$a r1 = com.tapjoy.internal.C1823gf.m3520b(r1)\n java.lang.String r3 = \"content_type\"\n java.lang.String r4 = \"none\"\n com.tapjoy.internal.gf$a r1 = r1.mo18099a(r3, r4)\n int r0 = r0.statusCode\n java.lang.Integer r0 = java.lang.Integer.valueOf(r0)\n java.lang.String r3 = \"code\"\n com.tapjoy.internal.gf$a r0 = r1.mo18099a(r3, r0)\n r0.mo18104c()\n com.tapjoy.TJCorePlacement r0 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.TJPlacement r1 = r8\n r0.m6446b(r1)\n goto L_0x0363\n L_0x014f:\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.TJCorePlacement.m6468p(r1)\n java.lang.String r1 = \"Content-Type\"\n java.lang.String r1 = r0.getHeaderFieldAsString(r1)\n boolean r3 = com.tapjoy.internal.C1852jq.m3669c(r1)\n if (r3 != 0) goto L_0x0230\n java.lang.String r3 = \"json\"\n boolean r1 = r1.contains(r3)\n if (r1 == 0) goto L_0x0230\n java.lang.String r1 = \"X-Tapjoy-Disable-Preload\"\n java.lang.String r1 = r0.getHeaderFieldAsString(r1)\n java.lang.String r3 = \"1\"\n boolean r1 = r1.equals(r3)\n if (r1 == 0) goto L_0x01e6\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this // Catch:{ TapjoyException -> 0x01a6 }\n java.lang.String r3 = r0.response // Catch:{ TapjoyException -> 0x01a6 }\n com.tapjoy.TJCorePlacement.m6443a(r1, r3) // Catch:{ TapjoyException -> 0x01a6 }\n java.lang.String r1 = \"TJPlacement.requestContent\"\n com.tapjoy.internal.gf$a r1 = com.tapjoy.internal.C1823gf.m3520b(r1) // Catch:{ TapjoyException -> 0x01a6 }\n java.lang.String r3 = \"content_type\"\n java.lang.String r4 = \"ad\"\n com.tapjoy.internal.gf$a r1 = r1.mo18099a(r3, r4) // Catch:{ TapjoyException -> 0x01a6 }\n r1.mo18104c() // Catch:{ TapjoyException -> 0x01a6 }\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this // Catch:{ TapjoyException -> 0x01a6 }\n com.tapjoy.internal.fw r1 = r1.f6313f // Catch:{ TapjoyException -> 0x01a6 }\n com.tapjoy.TJCorePlacement r3 = com.tapjoy.TJCorePlacement.this // Catch:{ TapjoyException -> 0x01a6 }\n com.tapjoy.internal.fm r3 = r3.f6328u // Catch:{ TapjoyException -> 0x01a6 }\n r1.f7271a = r3 // Catch:{ TapjoyException -> 0x01a6 }\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this // Catch:{ TapjoyException -> 0x01a6 }\n com.tapjoy.TJCorePlacement.m6470r(r1) // Catch:{ TapjoyException -> 0x01a6 }\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this // Catch:{ TapjoyException -> 0x01a6 }\n r1.m6455e() // Catch:{ TapjoyException -> 0x01a6 }\n goto L_0x0363\n L_0x01a6:\n r1 = move-exception\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n r3.<init>()\n java.lang.String r1 = r1.getMessage()\n r3.append(r1)\n java.lang.String r1 = \" for placement \"\n r3.append(r1)\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n java.lang.String r1 = r1.f6310c.getPlacementName()\n r3.append(r1)\n java.lang.String r1 = r3.toString()\n java.lang.String r3 = \"TJPlacement.requestContent\"\n com.tapjoy.internal.gf$a r3 = com.tapjoy.internal.C1823gf.m3520b(r3)\n java.lang.String r4 = \"server error\"\n com.tapjoy.internal.gf$a r3 = r3.mo18097a(r4)\n r3.mo18104c()\n com.tapjoy.TJCorePlacement r3 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.TJPlacement r4 = r8\n com.tapjoy.TapjoyErrorMessage$ErrorType r5 = com.tapjoy.TapjoyErrorMessage.ErrorType.SERVER_ERROR\n com.tapjoy.TJError r6 = new com.tapjoy.TJError\n int r0 = r0.statusCode\n r6.<init>(r0, r1)\n r3.mo29547a(r4, r5, r6)\n goto L_0x0363\n L_0x01e6:\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n java.lang.String r3 = r0.response\n boolean r1 = r1.m6450b(r3)\n if (r1 == 0) goto L_0x020d\n java.lang.String r0 = \"TJPlacement.requestContent\"\n com.tapjoy.internal.gf$a r0 = com.tapjoy.internal.C1823gf.m3520b(r0)\n java.lang.String r1 = \"content_type\"\n java.lang.String r3 = \"mm\"\n com.tapjoy.internal.gf$a r0 = r0.mo18099a(r1, r3)\n r0.mo18104c()\n com.tapjoy.TJCorePlacement r0 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.TJCorePlacement.m6470r(r0)\n com.tapjoy.TJCorePlacement r0 = com.tapjoy.TJCorePlacement.this\n r0.m6455e()\n goto L_0x0363\n L_0x020d:\n java.lang.String r1 = \"TJPlacement.requestContent\"\n com.tapjoy.internal.gf$a r1 = com.tapjoy.internal.C1823gf.m3520b(r1)\n java.lang.String r3 = \"asset error\"\n com.tapjoy.internal.gf$a r1 = r1.mo18097a(r3)\n r1.mo18104c()\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.TJPlacement r3 = r8\n com.tapjoy.TapjoyErrorMessage$ErrorType r4 = com.tapjoy.TapjoyErrorMessage.ErrorType.SERVER_ERROR\n com.tapjoy.TJError r5 = new com.tapjoy.TJError\n int r6 = r0.statusCode\n java.lang.String r0 = r0.response\n r5.<init>(r6, r0)\n r1.mo29547a(r3, r4, r5)\n goto L_0x0363\n L_0x0230:\n java.lang.String r1 = \"TJPlacement.requestContent\"\n com.tapjoy.internal.gf$a r1 = com.tapjoy.internal.C1823gf.m3520b(r1)\n java.lang.String r3 = \"content_type\"\n java.lang.String r4 = \"ad\"\n com.tapjoy.internal.gf$a r1 = r1.mo18099a(r3, r4)\n r1.mo18104c()\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.internal.fw r1 = r1.f6313f\n com.tapjoy.TJCorePlacement r3 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.internal.fm r3 = r3.f6328u\n r1.f7271a = r3\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.TJCorePlacement.m6470r(r1)\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.TJCorePlacement$4$1 r3 = new com.tapjoy.TJCorePlacement$4$1\n r3.<init>()\n java.lang.String r4 = com.tapjoy.TJCorePlacement.f6303a\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n java.lang.String r6 = \"Checking if there is content to cache for placement \"\n r5.<init>(r6)\n com.tapjoy.TJPlacementData r6 = r1.f6310c\n java.lang.String r6 = r6.getPlacementName()\n r5.append(r6)\n java.lang.String r5 = r5.toString()\n com.tapjoy.TapjoyLog.m6553i(r4, r5)\n java.lang.String r4 = \"x-tapjoy-cacheable-assets\"\n java.lang.String r0 = r0.getHeaderFieldAsString(r4)\n r4 = 2\n boolean r5 = com.tapjoy.TJPlacementManager.canCachePlacement() // Catch:{ Exception -> 0x02d9 }\n if (r5 != 0) goto L_0x029d\n java.lang.String r0 = com.tapjoy.TJCorePlacement.f6303a // Catch:{ Exception -> 0x02d9 }\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ Exception -> 0x02d9 }\n java.lang.String r6 = \"Placement caching limit reached. No content will be cached for placement \"\n r5.<init>(r6) // Catch:{ Exception -> 0x02d9 }\n com.tapjoy.TJPlacementData r1 = r1.f6310c // Catch:{ Exception -> 0x02d9 }\n java.lang.String r1 = r1.getPlacementName() // Catch:{ Exception -> 0x02d9 }\n r5.append(r1) // Catch:{ Exception -> 0x02d9 }\n java.lang.String r1 = r5.toString() // Catch:{ Exception -> 0x02d9 }\n com.tapjoy.TapjoyLog.m6553i(r0, r1) // Catch:{ Exception -> 0x02d9 }\n r3.onCachingComplete(r4) // Catch:{ Exception -> 0x02d9 }\n goto L_0x0363\n L_0x029d:\n org.json.JSONArray r5 = new org.json.JSONArray // Catch:{ Exception -> 0x02d9 }\n r5.<init>(r0) // Catch:{ Exception -> 0x02d9 }\n int r0 = r5.length() // Catch:{ Exception -> 0x02d9 }\n if (r0 <= 0) goto L_0x02d4\n java.lang.String r0 = com.tapjoy.TJCorePlacement.f6303a // Catch:{ Exception -> 0x02d9 }\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ Exception -> 0x02d9 }\n java.lang.String r7 = \"Begin caching content for placement \"\n r6.<init>(r7) // Catch:{ Exception -> 0x02d9 }\n com.tapjoy.TJPlacementData r7 = r1.f6310c // Catch:{ Exception -> 0x02d9 }\n java.lang.String r7 = r7.getPlacementName() // Catch:{ Exception -> 0x02d9 }\n r6.append(r7) // Catch:{ Exception -> 0x02d9 }\n java.lang.String r6 = r6.toString() // Catch:{ Exception -> 0x02d9 }\n com.tapjoy.TapjoyLog.m6553i(r0, r6) // Catch:{ Exception -> 0x02d9 }\n com.tapjoy.TJPlacementManager.incrementPlacementCacheCount() // Catch:{ Exception -> 0x02d9 }\n r1.f6315h = r2 // Catch:{ Exception -> 0x02d9 }\n com.tapjoy.TapjoyCache r0 = com.tapjoy.TapjoyCache.getInstance() // Catch:{ Exception -> 0x02d9 }\n com.tapjoy.TJCorePlacement$7 r6 = new com.tapjoy.TJCorePlacement$7 // Catch:{ Exception -> 0x02d9 }\n r6.<init>(r3) // Catch:{ Exception -> 0x02d9 }\n r0.cacheAssetGroup(r5, r6) // Catch:{ Exception -> 0x02d9 }\n goto L_0x0363\n L_0x02d4:\n r3.onCachingComplete(r2) // Catch:{ Exception -> 0x02d9 }\n goto L_0x0363\n L_0x02d9:\n r0 = move-exception\n r3.onCachingComplete(r4)\n java.lang.String r1 = com.tapjoy.TJCorePlacement.f6303a\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n java.lang.String r4 = \"Error while handling placement cache: \"\n r3.<init>(r4)\n java.lang.String r0 = r0.getMessage()\n r3.append(r0)\n java.lang.String r0 = r3.toString()\n com.tapjoy.TapjoyLog.m6550d(r1, r0)\n goto L_0x0363\n L_0x02f5:\n com.tapjoy.internal.fi r1 = r6\n com.tapjoy.internal.gi r3 = r9\n long r3 = r3.f7341e\n boolean r1 = r1.mo30121a(r3)\n if (r1 == 0) goto L_0x0331\n java.lang.String r1 = \"TJPlacement.requestContent\"\n com.tapjoy.internal.gf$a r1 = com.tapjoy.internal.C1823gf.m3520b(r1)\n java.lang.String r3 = \"network error\"\n com.tapjoy.internal.gf$a r1 = r1.mo18097a(r3)\n com.tapjoy.internal.fi r3 = r6\n long r3 = r3.f7231b\n java.lang.Long r3 = java.lang.Long.valueOf(r3)\n java.lang.String r4 = \"retry_timeout\"\n com.tapjoy.internal.gf$a r1 = r1.mo18099a(r4, r3)\n r1.mo18104c()\n com.tapjoy.TJCorePlacement r1 = com.tapjoy.TJCorePlacement.this\n com.tapjoy.TJPlacement r3 = r8\n com.tapjoy.TapjoyErrorMessage$ErrorType r4 = com.tapjoy.TapjoyErrorMessage.ErrorType.NETWORK_ERROR\n com.tapjoy.TJError r5 = new com.tapjoy.TJError\n int r6 = r0.statusCode\n java.lang.String r0 = r0.response\n r5.<init>(r6, r0)\n r1.mo29547a(r3, r4, r5)\n goto L_0x0363\n L_0x0331:\n com.tapjoy.internal.gi r0 = r9\n long r1 = r0.f7341e\n long r3 = r0.f7341e\n double r3 = (double) r3\n double r7 = r0.f7340d\n java.lang.Double.isNaN(r3)\n double r3 = r3 * r7\n long r3 = (long) r3\n long r7 = r0.f7338b\n int r9 = (r3 > r7 ? 1 : (r3 == r7 ? 0 : -1))\n if (r9 >= 0) goto L_0x0349\n long r3 = r0.f7338b\n goto L_0x0351\n L_0x0349:\n long r7 = r0.f7339c\n int r9 = (r3 > r7 ? 1 : (r3 == r7 ? 0 : -1))\n if (r9 <= 0) goto L_0x0351\n long r3 = r0.f7339c\n L_0x0351:\n r0.f7341e = r3\n int r3 = (r1 > r5 ? 1 : (r1 == r5 ? 0 : -1))\n if (r3 <= 0) goto L_0x0362\n monitor-enter(r0)\n r0.wait(r1) // Catch:{ InterruptedException -> 0x035e }\n goto L_0x035e\n L_0x035c:\n r1 = move-exception\n goto L_0x0360\n L_0x035e:\n monitor-exit(r0) // Catch:{ all -> 0x035c }\n goto L_0x0362\n L_0x0360:\n monitor-exit(r0) // Catch:{ all -> 0x035c }\n throw r1\n L_0x0362:\n return r10\n L_0x0363:\n com.tapjoy.TJCorePlacement r0 = com.tapjoy.TJCorePlacement.this\n r0.f6332y = false\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tapjoy.TJCorePlacement.C28144.m6480a():boolean\");\n }", "title": "" }, { "docid": "4e9a73eb35eb552a5358c36185331df7", "score": "0.5460388", "text": "@Override\n\tpublic void onCreation() {\n\t\t\n\t}", "title": "" }, { "docid": "dca1faeb6de2a1ed6647623ceb90289c", "score": "0.5456126", "text": "@Override\n\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "afa002a0cfef84faa0a42e8839dbb4e0", "score": "0.5451566", "text": "public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._scrol.Initialize(mostCurrent.activityBA,anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));\n //BA.debugLineNum = 37;BA.debugLine=\"Activity.AddView(scrol,0,0,100%x,100%y)\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._scrol.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));\n //BA.debugLineNum = 38;BA.debugLine=\"progress_spot.Initialize2(\\\"در حال بارگذاری اطلاعا\";\nmostCurrent._progress_spot.Initialize2(mostCurrent.activityBA,BA.ObjectToCharSequence(\"در حال بارگذاری اطلاعات لطفا شکیبا باشید..\"),mostCurrent._progress_spot.Theme_Custom,anywheresoftware.b4a.keywords.Common.Colors.White,(float) (12),anywheresoftware.b4a.keywords.Common.Typeface.LoadFromAssets(\"iransansmobile(fanum).ttf\"),(int) (6),anywheresoftware.b4a.keywords.Common.Colors.Yellow,anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 39;BA.debugLine=\"connector.Initialize2(Me)\";\nmostCurrent._connector._initialize2(mostCurrent.activityBA,login.getObject());\n //BA.debugLineNum = 45;BA.debugLine=\"initialize_layout(\\\"login\\\")\";\n_initialize_layout(\"login\");\n //BA.debugLineNum = 48;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "aab204193485a525242f87fd889f465c", "score": "0.5447451", "text": "@Override\n\tpublic void onCreate() \n\t{\n\t\tsuper.onCreate();\n\t}", "title": "" }, { "docid": "ef6de33570f8ab6f5342c1a15f4ab5a4", "score": "0.5437559", "text": "@Override // com.zhihu.android.picture.editor.widget.ZvePanel\n /* renamed from: g */\n public void mo103600g() {\n }", "title": "" }, { "docid": "64b3d0d63fb4ba7bbc575e57971885f1", "score": "0.5435912", "text": "public void onAfterCreate() { }", "title": "" }, { "docid": "8ec8b4af475d6634ad7916525ff2be8a", "score": "0.54267186", "text": "@Override\n\tprotected void onPreExecute() {\n\t}", "title": "" }, { "docid": "da851c4cfe2ec43483a763667b08960b", "score": "0.5425412", "text": "@Override\n\tprotected void onPreExecute() {\n\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54180783", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54180783", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54180783", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54180783", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54180783", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54180783", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.54180783", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.54152876", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "40226615d72fb4c9d91b314c017de8e3", "score": "0.54135114", "text": "@Override\n public void onCompleted() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.54127353", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.54127353", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "a40bbd7afa91b24092c1425b45b244a3", "score": "0.5411721", "text": "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\n\t}", "title": "" }, { "docid": "ce1169a394751131b3365280d31ac1ab", "score": "0.5411426", "text": "@Override\n public void onCompleted() {\n }", "title": "" }, { "docid": "ce1169a394751131b3365280d31ac1ab", "score": "0.5411426", "text": "@Override\n public void onCompleted() {\n }", "title": "" }, { "docid": "dc1777931eec1b64ec0356613e6374ff", "score": "0.54090095", "text": "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onFinished() {\n\n\t\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "dc1777931eec1b64ec0356613e6374ff", "score": "0.54090095", "text": "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onFinished() {\n\n\t\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "dc1777931eec1b64ec0356613e6374ff", "score": "0.54090095", "text": "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onFinished() {\n\n\t\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "dc1be249a508d8f25dc002712aaf0abe", "score": "0.5397255", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onFinished() {\n\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "dc1be249a508d8f25dc002712aaf0abe", "score": "0.5397255", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onFinished() {\n\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "dc1be249a508d8f25dc002712aaf0abe", "score": "0.5397255", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onFinished() {\n\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "dc1be249a508d8f25dc002712aaf0abe", "score": "0.5397255", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onFinished() {\n\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5396836", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f5d4f15bcecfb5439000bf8ce3463314", "score": "0.53961706", "text": "@Override\r\n protected void init() {\n \r\n }", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.5394699", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.5394699", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "52c0f168c5dae39d1fa5efbeba51939d", "score": "0.53943354", "text": "@Override\n public void onCreate()\n {\n super.onCreate();\n }", "title": "" }, { "docid": "52c0f168c5dae39d1fa5efbeba51939d", "score": "0.53943354", "text": "@Override\n public void onCreate()\n {\n super.onCreate();\n }", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.5390368", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "064ffeea580a4c3b65b1287fb4e3623c", "score": "0.5389962", "text": "@Override\n\tprotected void initCallbacks() {\n\t\t\n\t}", "title": "" }, { "docid": "bd3132a7ff11404740bbe02887394321", "score": "0.5387751", "text": "@Override\n public void onCreate() {\n super.onCreate();\n }", "title": "" }, { "docid": "bd3132a7ff11404740bbe02887394321", "score": "0.5387751", "text": "@Override\n public void onCreate() {\n super.onCreate();\n }", "title": "" }, { "docid": "bd3132a7ff11404740bbe02887394321", "score": "0.5387751", "text": "@Override\n public void onCreate() {\n super.onCreate();\n }", "title": "" }, { "docid": "f9e89d9677a2c32741b998a15248d5eb", "score": "0.5381765", "text": "@Override\r\n\tpublic void Lyf() {\n\t\t\r\n\t}", "title": "" }, { "docid": "efda110dae3567ecb4380b4b672c3e8d", "score": "0.53749686", "text": "public void anzeigen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d641ac56f754db95cb12e47e110c9663", "score": "0.5371667", "text": "@Override\n protected void onUpdate() {\n\n }", "title": "" }, { "docid": "a92ef4f07b07ea7007bb9f92475a6a97", "score": "0.53657925", "text": "private void UDPM() {\n\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5363187", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5363187", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5363187", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "1eb850cd140029c3284631b6ea4a3a92", "score": "0.5358263", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.5357568", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.5357568", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "9a7c5cd2876fe6327b22665e98da0894", "score": "0.5357392", "text": "@Override\n\tpublic void onFinish() {\n\t}", "title": "" }, { "docid": "9a7c5cd2876fe6327b22665e98da0894", "score": "0.5357392", "text": "@Override\n\tpublic void onFinish() {\n\t}", "title": "" }, { "docid": "98f605fe458ed13730cdb100e720be76", "score": "0.5356271", "text": "@Override // com.zhihu.android.picture.editor.widget.ZvePanel\n /* renamed from: h */\n public void mo103603h() {\n }", "title": "" }, { "docid": "9f511370f87522b112c0876254310218", "score": "0.535201", "text": "@Override\n protected void onPostCreate(Bundle savedInstanceState){\n\n super.onPostCreate(savedInstanceState);\n\n }", "title": "" }, { "docid": "12a1856e8dc393be9209d9dc72fa6a5f", "score": "0.53508276", "text": "@Override\n protected void onPreExecute() {\n }", "title": "" }, { "docid": "51f9d084cd4bfb596f1fbc9e5f1fd5e6", "score": "0.53438413", "text": "@Override\n\tpublic void onCreate(){\n\t\tsuper.onCreate();\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.53418857", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "7340c4713f1224a9c74dee43469bae6f", "score": "0.5341456", "text": "@Override\n public void onFinish() {\n }", "title": "" }, { "docid": "8134ecdcbaa2c034d06d7968039223be", "score": "0.53410196", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}", "title": "" }, { "docid": "90c48de126a6030a0aaa2eb2c6026fd7", "score": "0.53403777", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n \n }", "title": "" }, { "docid": "a0a250a29c5166b0aadd2ac05a3daa3e", "score": "0.5336824", "text": "@Override\n\t\tprotected void onPreExecute() {\n\t\t\t \n\t\t}", "title": "" }, { "docid": "a0a250a29c5166b0aadd2ac05a3daa3e", "score": "0.5336824", "text": "@Override\n\t\tprotected void onPreExecute() {\n\t\t\t \n\t\t}", "title": "" }, { "docid": "a7f5ba7d4f7a118725f9086d61c48109", "score": "0.53200287", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "title": "" }, { "docid": "a7f5ba7d4f7a118725f9086d61c48109", "score": "0.53200287", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "title": "" }, { "docid": "a7f5ba7d4f7a118725f9086d61c48109", "score": "0.53200287", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "title": "" }, { "docid": "a7f5ba7d4f7a118725f9086d61c48109", "score": "0.53200287", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "title": "" }, { "docid": "a7f5ba7d4f7a118725f9086d61c48109", "score": "0.53200287", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.53175545", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "5c3c2acd34655753ed5c66be62776bb2", "score": "0.5316045", "text": "@Override\n public void initialize() {\n\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5311004", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5303583", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "58ada502778b17cb6e4ef44fec141708", "score": "0.5300729", "text": "Androids(String man, String o, String m, int c) {\n super(man, o, m, c);\n }", "title": "" }, { "docid": "6b70ace2a0b9ee0833b8625c19b106d9", "score": "0.5293503", "text": "@Override\n public void onCreate(SQLiteDatabase db)\n {\n }", "title": "" } ]
128ca09b5a6f4252be8c0833a6b18eb5
endregion setStatus, timers management, stop and retry region Send events methods
[ { "docid": "ce7fcaceeb2551b9c8a614b81fed2d9e", "score": "0.0", "text": "private void sendRFIDEvent(int data) {\n\t\tsendRFIDEvent(data + \"\");\n\t}", "title": "" } ]
[ { "docid": "45d71532c3fd021f300d29c07520c076", "score": "0.6071001", "text": "private void processEvents () {\n\n //check for connection and stop transmission if needed\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this.getApplicationContext());\n Map<String,?> keys = sp.getAll();\n Boolean wifiOrNetwork = (Boolean) keys.get(\"wifi_or_network\");\n String network = getConnectionType(this.getApplicationContext());\n\n boolean done = true; //are we done processing?\n if (wifiOrNetwork != null) {\n if (wifiOrNetwork && network.equals(\"disconnected\")) {\n done = false;\n }\n } else { //settings allow for the attempt of transmission\n for (int i = 0; i < mEvents.size(); i++) { //the queue of all events yets to be translated\n GridWatchEvent gwevent = mEvents.get(i);\n TransmitterType toTransmit = new TransmitterType(gwevent, this.getApplicationContext());\n if (gwevent.readyForTransmission(i)) { //we want to send this event out to the transmitter to be formated and POSTed\n Intent aIntent = new Intent(IntentConfig.INTENT_NAME);\n aIntent.putExtra(IntentConfig.INTENT_EXTRA_EVENT_TIME, DateFormat.getTimeInstance().format(new Date()));\n if (gwevent.didFail()) { //figure out if a sensor reported a failure\n Log.w(processEventsTag, gwevent.getFailureMessage());\n aIntent.putExtra(IntentConfig.INTENT_EXTRA_EVENT_TYPE, \"event_reject\");\n aIntent.putExtra(IntentConfig.INTENT_EXTRA_EVENT_INFO, gwevent.getFailureMessage());\n broadcastIntent(aIntent);\n }\n // broadcast the result of unplugged events\n if (gwevent.getEventType().equals(\"unplugged\") || gwevent.getEventType().equals(\"usr_unplugged\")) {\n aIntent.putExtra(IntentConfig.INTENT_EXTRA_EVENT_TYPE, \"event_post\");\n if (gwevent.getEventType().equals(\"unplugged\")) {\n aIntent.putExtra(IntentConfig.INTENT_EXTRA_EVENT_INFO, \"unplugged\");\n } else {\n aIntent.putExtra(IntentConfig.INTENT_EXTRA_EVENT_INFO, \"usr_unplugged\");\n }\n Transmitter transmitter = new Transmitter();\n transmitter.execute(toTransmit);\n broadcastIntent(aIntent);\n } else { //broadcast the results of plugged events\n if (gwevent.getEventType().equals(\"plugged\")) {\n aIntent.putExtra(IntentConfig.INTENT_EXTRA_EVENT_TYPE, \"event_post\");\n aIntent.putExtra(IntentConfig.INTENT_EXTRA_EVENT_INFO, \"plugged\");\n } else if (gwevent.getEventType().equals(\"usr_plugged\")) {\n aIntent.putExtra(IntentConfig.INTENT_EXTRA_EVENT_TYPE, \"event_post\");\n aIntent.putExtra(IntentConfig.INTENT_EXTRA_EVENT_INFO, \"usr_plugged\");\n }\n broadcastIntent(aIntent);\n Transmitter transmitter = new Transmitter();\n transmitter.execute(toTransmit);\n }\n mEvents.remove(gwevent);\n } else {\n done = false;\n }\n }\n }\n if (!done) {\n startEventProcessTimer(); //keeps the retry timer alive\n }\n }", "title": "" }, { "docid": "f52df527cc950c38ba101daab04ddf2f", "score": "0.5931672", "text": "@Override\n public void run() {\n boolean firstCall = true;\n MONITORLOOP: while (mWhileEventMonitoring) {\n\n // At first, call as non-Long Polling.\n boolean longPolling = firstCall ? false : true;\n\n try {\n // Call getEvent API.\n JSONObject replyJson = mRemoteApi.getEvent(longPolling);\n\n // Check error code at first.\n int errorCode = findErrorCode(replyJson);\n switch (errorCode) {\n case STATUS_CODE_0: // no error\n // Pass through.\n break;\n case STATUS_CODE_1: // \"Any\" error\n case STATUS_CODE_12: // \"No such method\" error\n break MONITORLOOP; // end monitoring.\n case STATUS_CODE_2: // \"Timeout\" error\n // Re-call immediately.\n continue MONITORLOOP;\n case STATUS_CODE_40402: // \"Already polling\" error\n // Retry after 5 sec.\n try {\n Thread.sleep(THREAD_SLEEP_MSEC);\n } catch (InterruptedException e) {\n //Exceptionを受けるだけなので処理は行わない\n }\n continue MONITORLOOP;\n default:\n break MONITORLOOP; // end monitoring.\n }\n\n List<String> availableApis = findAvailableApiList(replyJson);\n if (!availableApis.isEmpty()) {\n fireApiListModifiedListener(availableApis);\n }\n\n // CameraStatus\n String cameraStatus = findCameraStatus(replyJson);\n if (cameraStatus != null\n && !cameraStatus.equals(mCameraStatus)) {\n mCameraStatus = cameraStatus;\n fireCameraStatusChangeListener(cameraStatus);\n }\n\n // LiveviewStatus\n Boolean liveviewStatus = findLiveviewStatus(replyJson);\n if (liveviewStatus != null\n && !liveviewStatus.equals(mLiveviewStatus)) {\n mLiveviewStatus = liveviewStatus;\n fireLiveviewStatusChangeListener(liveviewStatus);\n }\n\n // ShootMode\n String shootMode = findShootMode(replyJson);\n if (shootMode != null && !shootMode.equals(mShootMode)) {\n mShootMode = shootMode;\n fireShootModeChangeListener(shootMode);\n }\n\n // zoomPosition\n int zoomPosition = findZoomInformation(replyJson);\n if (zoomPosition != -1) {\n mZoomPosition = zoomPosition;\n fireZoomInformationChangeListener(0, 0, zoomPosition, 0);\n }\n\n // :\n // : add implementation for Event data as necessary.\n \n String imageUrl = findTakePicture(replyJson);\n if (imageUrl != null) {\n fireTakePictureChangeListner(imageUrl);\n }\n\n } catch (IOException e) {\n // Occurs when the server is not available now.\n break MONITORLOOP;\n } catch (JSONException e) {\n break MONITORLOOP;\n }\n\n firstCall = false;\n } // MONITORLOOP end.\n\n mWhileEventMonitoring = false;\n }", "title": "" }, { "docid": "3c7ca03d7087f80d8d407c4cae39e276", "score": "0.58316034", "text": "private void setStatus(int status) {\n\t\tthis._status = status;\n\n\t\tswitch (_status) {\n\t\tcase STATUS_NOTINITIALIZED:\n\t\t\tsendLogEvent(\"RFID-No Inicializado\");\n\t\t\tbreak;\n\t\tcase STATUS_IDLE:\n\t\t\tbreak;\n\n\t\t// prePerso(\n\t\tcase PP_READ_EPC:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"prePerso-Leyendo EPC...\");\n\t\t\tbreak;\n\t\tcase PP_READ_TID:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"prePerso-Leyendo TID...\");\n\t\t\tbreak;\n\t\tcase PP_WRITE_EPC:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"prePerso-Escribiendo EPC...\");\n\t\t\tbreak;\n\n\t\t// persoTag(\n\t\tcase P_READ_EPC:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"perso-Leyendo EPC...\");\n\t\t\tbreak;\n\n\t\tcase P_READ_TID:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"perso-Leyendo TID...\");\n\t\t\tbreak;\n\n\t\tcase P_WRITE_CONSUMO:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"P_WRITE_CONSUMO: Escribiendo CONSUMO EN USER...\");\n\t\t\tbreak;\n\n\t\tcase P_WRITE_USER:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"perso-Escribiendo USER...\");\n\t\t\tbreak;\n\n\t\t// leer_Tag\n\t\tcase L_EPC:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"leerTag-Leyendo EPC...\");\n\t\t\tbreak;\n\t\tcase L_TID:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"leerTag-Leyendo TID...\");\n\t\t\tbreak;\n\t\tcase L_USER:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"leerTag-Leyendo USER...\");\n\t\t\tbreak;\n\n\t\t// grabarConsumo(\n\t\tcase G_READ_EPC:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"grabarConsumo-Leyendo EPC...\");\n\t\t\tbreak;\n\t\tcase G_READ_TID:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"grabarConsumo-Leyendo TID...\");\n\t\t\tbreak;\n\t\tcase G_READ_USER:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"grabarConsumo-Leyendo USER...\");\n\t\t\tbreak;\n\t\tcase G_WRITE_USER:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"grabarConsumo-Escribiendo USER...\");\n\t\t\tbreak;\n\n\t\t// test_leeEPC(\n\t\tcase T_LEPC_READ_EPC:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"test_leerEPC-Leyendo EPC...\");\n\t\t\tbreak;\n\n\t\t// test_leeTID\n\t\tcase T_LTID_READ_EPC:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"test_LeerTID-Leyendo EPC...\");\n\t\t\tbreak;\n\t\tcase T_LTID_READ_TID:\n\t\t\t_timeoutCurrent = _timeout;\n\t\t\tsendLogEvent(\"test_LeerTID-Leyendo TID...\");\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tsendLogEvent(\"setStatus-N/A\");\n\t\t\tbreak;\n\t\t}\n\n\t\t// Reset previous timer if it exists\n\t\tKillTimer_ReadTimeout();\n\t\tif (!(_status == STATUS_IDLE || _status == STATUS_NOTINITIALIZED)) {\n\t\t\t// Start a new timer when timeout is reached\n\t\t\t_timerTask_Timeout = new TimerTask() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tonOperationTimeout();\n\t\t\t\t}\n\t\t\t};\n\t\t\t_timer_Timeout = new Timer();\n\t\t\t_timer_Timeout.schedule(_timerTask_Timeout, _timeoutCurrent);\n\t\t} else if (_status == STATUS_IDLE) {\n\t\t\t// Put the reader in IDLE\n\t\t\tif (_reader != null) {\n\t\t\t\t_reader.stop();\n\t\t\t}\n\n\t\t\tif (!_restartingReader && !WaitForStop()) {\n\t\t\t\t_status = STATUS_NOTINITIALIZED;\n\t\t\t\t_readerConfigured = false;\n\t\t\t}\n\n\t\t\tif (_tagNotFound) {\n\t\t\t\t_tagNotFound = false;\n\t\t\t\tRFID._last_EPC = \"\";\n\t\t\t\tsendRFIDEvent(RESULT_ECU_01_NoTagInTheField +\"|\" + CURRENT_FUNTION);\n\t\t\t\tsendLogEvent(RESULT_ECU_01_NoTagInTheField_Text +\"|\" + CURRENT_FUNTION);\n\t\t\t}\n\n\t\t\tif (_readerConfigured)\n\t\t\t\tsendLogEvent(\"RFID disponible\");\n\t\t}\n\t}", "title": "" }, { "docid": "12f17b4565bbbe353e58021742ca10d4", "score": "0.5818538", "text": "@Override\n public void run() {\n if (this.scheduledSend != null) {\n this.scheduledSend.cancel(false);\n this.scheduledSend = null;\n\n this.payload.put(\"context\", this.context);\n this.payload.put(\"string_attributes\", this.stringAttributes);\n this.payload.put(\"number_attributes\", this.numberAttributes);\n\n final long msElapsed = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - this.firstSetTime);\n this.payload.put(\"ms_since_first_event\", msElapsed);\n\n super.run();\n\n this.firstSetTime = 0;\n }\n }", "title": "" }, { "docid": "2910021e0d8601e9bed0afbc99017601", "score": "0.5800471", "text": "protected void notifyTransportListeners(int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg) {\n/* 1300 */ if (!this.notificationDone) {\n/* 1301 */ super.notifyTransportListeners(type, validSent, validUnsent, invalid, msg);\n/* */ \n/* 1303 */ this.notificationDone = true;\n/* */ } \n/* */ }", "title": "" }, { "docid": "2b87892bcd1c29722f39b702b28ebe6e", "score": "0.5690761", "text": "@Override\n public void run() {\n stop = false;\n //send = false;\n }", "title": "" }, { "docid": "a299998e21052dfd9c806e66f08c3f46", "score": "0.56778", "text": "@Test\n public void testEvent() {\n TestAys testAys = new TestAys(1L, \"13024112588\", \"短信内容\");\n testAys.setStatus(true);\n asyncEventBus.post(testAys);\n\n try {\n Thread.sleep(30000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n TestAys testAys1 = new TestAys(1L, \"00000000\", \"已经执行完毕了\");\n testAys1.setStatus(false);\n asyncEventBus.post(testAys1);\n\n }", "title": "" }, { "docid": "30f06504ffdba3e73344a9d39a366a73", "score": "0.56726557", "text": "@Override\n public void sendStart() {\n\n }", "title": "" }, { "docid": "ce5d14f7e851b6b6815848a9a5a41e85", "score": "0.5558379", "text": "@Override\n public Object handleEvent(Map<String, String> headers, Object body, int instance) throws Exception {\n if (!validRegistry()) {\n log.error(\"abort because {} is not available\", SERVICE_REGISTRY);\n return false;\n }\n String type = headers.get(TYPE);\n if (type != null) {\n if (INIT.equals(type)) {\n initChannel();\n }\n if (CONSUMER_READY.equals(type) && initRequest != null) {\n log.info(\"Paired with event consumer\");\n PostOffice.getInstance().cancelFutureEvent(initRequest);\n }\n if (LOOP_BACK.equals(type) && headers.containsKey(REPLY_TO) && headers.containsKey(ORIGIN)) {\n sendLoopback(headers.get(REPLY_TO), headers.get(ORIGIN));\n }\n if (PING.equals(type) && headers.containsKey(REPLY_TO) && headers.containsKey(TARGET) && headers.containsKey(ORIGIN)) {\n sendPing(headers.get(REPLY_TO), headers.get(TARGET), headers.get(ORIGIN));\n }\n if (STOP.equals(type)) {\n closeProducer();\n }\n return true;\n }\n if (headers.containsKey(TO) && body instanceof byte[]) {\n List<String> destinations = getDestinations(headers);\n if (destinations != null) {\n String uuid = Utility.getInstance().getUuid();\n byte[] payload = (byte[]) body;\n for (String dest : destinations) {\n startProducer();\n try {\n /*\n * Automatic segmentation happens at the PostOffice level\n * so this outgoing payload may be a whole event or a block of it.\n *\n * The EventConsumer at the receiving side will reconstruct the payload if needed.\n */\n long t1 = System.currentTimeMillis();\n producer.send(new ProducerRecord<>(dest, uuid, payload)).get(20, TimeUnit.SECONDS);\n long diff = System.currentTimeMillis() - t1;\n if (diff > 5000) {\n log.error(\"Kafka is slow - took {} ms to send to {}\", diff, dest);\n }\n totalEvents++;\n lastActive = System.currentTimeMillis();\n } catch (Exception e) {\n /*\n * this is unrecoverable so the app must shutdown\n * such that it will be restarted by the infrastructure\n */\n log.error(\"Unable to send message to {} - {}\", destinations, e.getMessage());\n System.exit(21);\n }\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "d070a55a0721d6af13fd9b70a767fbf1", "score": "0.5511512", "text": "public void notifyEvent(NotifyTypeEnum type) {\n \t\tswitch (type) {\n \t\tcase NOTIFY_LEVELSTART:\n \t\t\tmVibrator.vibrate(vib_pattern_atnode, -1);\n \t\t\tsounds.play(sLevelStart, 1.0f, 1.0f, 0, 0, 1.0f);\n \t\t\ttry {\n \t\t\t\tThread.sleep(100);\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t\tbreak;\n \t\t\t\n \t\tcase NOTIFY_BUMP:\n \t\t\tmVibrator.vibrate(vib_pattern_bump, -1);\n \t\t\tsounds.play(sBump, 1.0f, 1.0f, 0, 0, 1.0f);\n \t\t\ttry {\n \t\t\t\tThread.sleep(300);\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t\tbreak;\n \t\tcase NOTIFY_ATNODE:\n \t\t\tLog.d(\"Game\", \"Stopping movement\");\n \t\t\tsounds.stop(stopMove);\n \t\t\tmVibrator.vibrate(vib_pattern_atnode, -1);\n \t\t\tsounds.play(sNode, 1.0f, 1.0f, 0, 0, 1.0f);\n \t\t\ttry {\n \t\t\t\tThread.sleep(100);\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t\tbreak;\n \t\tcase NOTIFY_LEVELDONE:\n \t\t\tLog.d(\"Game\", \"Level done\");\n \t\t\tsounds.stop(stopMove);\n \t\t\tmVibrator.vibrate(vib_pattern_leveldone, -1);\n \t\t\tsounds.play(sLevel, 1.0f, 1.0f, 0, 0, 1.0f);\n \t\t\ttry {\n \t\t\t\tThread.sleep(400);\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t\tbreak;\n \t\tcase NOTIFY_ORIENT:\n \t\t\tsounds.play(sOrient, 1.0f, 1.0f, 0, 0, 1.0f);\n \t\t\tbreak;\n \t\tcase NOTIFY_MOVE:\n \t\t\tstopMove = sounds.play(sMove, 1.0f, 1.0f, 0, -1, 1.0f);\n \t\t\tbreak;\n \t\tcase NOTIFY_STOPSOUND:\n \t\t\tsounds.stop(stopMove);\n \t\t\tbreak;\n \t\tcase NOTIFY_GAMEDONE:\n \t\t\tLog.d(\"Game\", \"Game done\");\n \t\t\tsounds.stop(stopMove);\n \t\t\tmVibrator.vibrate(vib_pattern_leveldone, -1);\n \t\t\tsounds.play(sGameDone, 1.0f, 1.0f, 0, 0, 1.0f);\n \t\t\ttry {\n \t\t\t\tThread.sleep(400);\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t}", "title": "" }, { "docid": "164152563be5f08d95ee11c03ca9ef3e", "score": "0.5507833", "text": "@Override\n\tpublic void run() {\n\t\tif(!enabled) {\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tif(!isPeerAndOutSet) {\n\t\t\t\tisPeerAndOutSet = true;\n\t\t\t\trobot.setRobotPeer(this);\n\t\t\t\trobot.setOut(new PrintWriter(out));\n\t\t\t}\n\n\t\t\twhile(!eventQueue.isEmpty()) {\n\t\t\t\tEvent e = eventQueue.pop();\n\n\t\t\t\t/*\n\t\t\t\t * - IMPORTANT - Keep these in alphabetical order. That way it\n\t\t\t\t * is easy to check if any are missing.\n\t\t\t\t */\n\t\t\t\tif(e instanceof BattleStartedEvent) {\n\t\t\t\t\trobot.onBattleStarted((BattleStartedEvent) e);\n\t\t\t\t} else if(e instanceof BulletHitEvent) {\n\t\t\t\t\trobot.onBulletHit((BulletHitEvent) e);\n\t\t\t\t} else if(e instanceof BulletMissEvent) {\n\t\t\t\t\trobot.onBulletMiss((BulletMissEvent) e);\n\t\t\t\t} else if(e instanceof HitByBulletEvent) {\n\t\t\t\t\trobot.onHitByBullet((HitByBulletEvent) e);\n\t\t\t\t} else if(e instanceof HitByMissileEvent) {\n\t\t\t\t\trobot.onHitByMissile((HitByMissileEvent) e);\n\t\t\t\t} else if(e instanceof HitWallEvent) {\n\t\t\t\t\trobot.onHitWall((HitWallEvent) e);\n\t\t\t\t} else if(e instanceof MissileHitEvent) {\n\t\t\t\t\trobot.onMissileHit((MissileHitEvent) e);\n\t\t\t\t} else if(e instanceof MissileMissEvent) {\n\t\t\t\t\trobot.onMissileMiss((MissileMissEvent) e);\n\t\t\t\t} else if(e instanceof MissileUpdateEvent) {\n\t\t\t\t\trobot.onMissileUpdate((MissileUpdateEvent) e);\n\t\t\t\t} else if(e instanceof RobotDeathEvent) {\n\t\t\t\t\trobot.onRobotDeath((RobotDeathEvent) e);\n\t\t\t\t} else if(e instanceof RobotUpdateEvent) {\n\t\t\t\t\trobot.onRobotUpdate((RobotUpdateEvent) e);\n\t\t\t\t} else if(e instanceof TurnEndedEvent) {\n\t\t\t\t\trobot.onTurnEnded((TurnEndedEvent) e);\n\t\t\t\t} else if(e instanceof TurnStartedEvent) {\n\t\t\t\t\trobot.onTurnStarted((TurnStartedEvent) e);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(SecurityException e) {\n\t\t\tenabled = false;\n\t\t\tSystem.out.println(name + \" has thrown a security exception during operation and has been disabled.\");\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "b472fa068186e16d53176a919228accf", "score": "0.54494786", "text": "@Override\r\n public void run() {\r\n try {\r\n System.out.println(\"Start wątku RegistrationStatus\");\r\n registrationStatusRunFlag = true;// informacja, że wątek rozpoczął swoje działanie\r\n while(!ticket){\r\n Thread.sleep(correctnessGuard.randomDelay());//losowy czas oczekwiania na kolejne sprawdzenie, czy mozna już wysyłać\r\n }\r\n ticket = false;// zarezerwowanie prawa do wyslania komendy\r\n serialConnection.sendMessage(\"AT+CREG?\");//wysłanie komendy sprawdzającej status baterii\r\n Thread.sleep(commandDelay);//uspanie watku na x milisekund\r\n setStatus(correctnessGuard.getRegistrationStatus(serialConnection.getAnswerBufor()),3);//wyświetlenie napisu w aplikacji\r\n showAnswer(serialConnection.getAnswerBufor());//wyswietlenie otrzymanych wiadomosci\r\n serialConnection.clearAnswerBufor();//wyczyszczenie bufora\r\n ticket = true;//oddanie możliwości wysylania komend dla innych wątków\r\n registrationStatusRunFlag = false;// informacja, że wątek zakończył swoje działanie\r\n System.out.println(\"Koniec wątku RegistrationStatus\");\r\n }catch (InterruptedException e){\r\n System.out.println(\"Błąd wątku RegistrationStatus: \"+e);\r\n }catch(IndexOutOfBoundsException e){\r\n System.out.println(\"Błąd w RegistrationStatus: \"+e);\r\n serialConnection.clearAnswerBufor();//wyczyszczenie bufora\r\n ticket = true;//oddanie możliwości wysylania komend dla innych wątków\r\n registrationStatusRunFlag = false;// informacja, że wątek zakończył swoje działanie\r\n System.out.println(\"Koniec wątku RegistrationStatus\");\r\n }catch (NumberFormatException e){\r\n System.out.println(\"Błąd w RegistrationStatus: \"+e);\r\n serialConnection.clearAnswerBufor();//wyczyszczenie bufora\r\n ticket = true;//oddanie możliwości wysylania komend dla innych wątków\r\n registrationStatusRunFlag = false;// informacja, że wątek zakończył swoje działanie\r\n System.out.println(\"Koniec wątku RegistrationStatus\");\r\n }\r\n }", "title": "" }, { "docid": "4017254395906463f12f61ac8923fb0b", "score": "0.5420282", "text": "public void uploadEvents() {\n eventManager.scheduleEventUpload(SCHEDULE_SEND_DELAY_SECONDS, TimeUnit.SECONDS);\n }", "title": "" }, { "docid": "5d8c66c720fc5a5f7bd95a3cdd2d4e1a", "score": "0.5418614", "text": "void setEventRequests(boolean watchFields) {\n EventRequestManager mgr = vm.eventRequestManager();\n \n // want all exceptions \n ExceptionRequest excReq = mgr.createExceptionRequest(null,\n true, true);\n // suspend so we can step\n excReq.setSuspendPolicy(EventRequest.SUSPEND_ALL);\n excReq.enable(); \n \n ThreadDeathRequest tdr = mgr.createThreadDeathRequest();\n // Make sure we sync on thread death\n tdr.setSuspendPolicy(EventRequest.SUSPEND_ALL);\n tdr.enable();\n ClassPrepareRequest cpr = mgr.createClassPrepareRequest(); \n cpr.addClassFilter(\"desbdesk2.Test\");\n cpr.setSuspendPolicy(EventRequest.SUSPEND_ALL);\n cpr.enable(); \n }", "title": "" }, { "docid": "4027dc5eb8e6e528884f43e395505c88", "score": "0.5399555", "text": "private void sendTimerBase() {\n\n if (!outgoing) {\n\n return;\n }\n\n // the thing that kills a connection is too many retransmits so we need to keep these minimised during timer changes\n\n // when we increase our base timer we can immediately increase our retransmit timer but need to wait until they have\n // modified their timer before increasing the ack. Otherwise they won't be receiving acks as fast as they expect and therefore\n // trigger retransmits\n\n // when we decrease our base timer it is the opposite way around - we can immediately decrease acks but delay retrans\n\n synchronized (this) {\n\n if (timer_is_adjusting) {\n\n return;\n }\n // only consider the stats if we've sent at least a few this interval\n\n if (stats_packets_unique_sent > 2) {\n\n int new_timer_base = current_timer_base;\n\n if (stats_packets_resent_via_timer > 0) {\n\n float resend_ratio = (float) stats_packets_resent_via_timer / stats_packets_unique_sent;\n\n // System.out.println( \"resend ratio: \" + resend_ratio );\n\n if (resend_ratio >= 0.25) {\n\n new_timer_base = (int) (current_timer_base * (resend_ratio + 1));\n\n // round to 100th sec as we send 100ths over the wire and expect to get it back\n\n new_timer_base = (new_timer_base / 10) * 10;\n\n new_timer_base = Math.min(TIMER_BASE_MAX, new_timer_base);\n\n if (new_timer_base != current_timer_base) {\n\n if (manager.trace()) {\n\n trace(\"Increasing timer base from \" + current_timer_base + \" to \" + new_timer_base + \" due to resends (ratio=\"\n + resend_ratio + \")\");\n }\n }\n }\n }\n\n if (new_timer_base == current_timer_base && stats_packets_unique_received > 2) {\n\n float duplicate_ratio = (float) stats_packets_duplicates / stats_packets_unique_received;\n\n // we use duplicate packets sometimes to force sequence numbers through, so\n // reduce our sensitivity this them\n\n duplicate_ratio = duplicate_ratio / 2;\n\n // System.out.println( \"duplicate ratio: \" + duplicate_ratio );\n\n if (duplicate_ratio >= 0.25) {\n\n new_timer_base = (int) (current_timer_base * (duplicate_ratio + 1));\n\n new_timer_base = (new_timer_base / 10) * 10;\n\n new_timer_base = Math.min(TIMER_BASE_MAX, new_timer_base);\n\n if (new_timer_base != current_timer_base) {\n\n if (manager.trace()) {\n\n trace(\"Increasing timer base from \" + current_timer_base + \" to \" + new_timer_base + \" due to duplicates (ratio=\"\n + duplicate_ratio + \")\");\n }\n }\n }\n }\n\n if (new_timer_base == current_timer_base && stats_packets_unique_received > 2) {\n\n // conservative approach - reduce by 10% if we've had no errors\n\n if (stats_packets_resent_via_timer == 0 && stats_packets_duplicates == 0) {\n\n new_timer_base = current_timer_base - (current_timer_base / 10);\n\n new_timer_base = (new_timer_base / 10) * 10;\n\n new_timer_base = Math.max(new_timer_base, TIMER_BASE_MIN);\n\n if (new_timer_base != current_timer_base) {\n\n if (manager.trace()) {\n\n trace(\"Decreasing timer base from \" + current_timer_base + \" to \" + new_timer_base);\n }\n }\n }\n }\n\n boolean reset_stats = false;\n\n long now = SystemTime.getCurrentTime();\n\n if (new_timer_base == current_timer_base) {\n\n if (now < stats_reset_time || now - stats_reset_time > STATS_RESET_TIMER) {\n\n reset_stats = true;\n }\n\n } else {\n\n timer_is_adjusting = true;\n\n old_timer_base = current_timer_base;\n current_timer_base = new_timer_base;\n\n reset_stats = true;\n }\n\n if (reset_stats) {\n\n resetTimerStats();\n }\n }\n }\n }", "title": "" }, { "docid": "be0f7b325de7333b92f4a1eaa930e3c5", "score": "0.53989685", "text": "public void ConfigEventos_Recargos(){}", "title": "" }, { "docid": "001eb8e228dab1cad351e463c9646536", "score": "0.5389221", "text": "SenlinEventService event();", "title": "" }, { "docid": "68aad7083d4255b51d43ab9063dbf437", "score": "0.5385047", "text": "abstract public void\nprocessTimerEvent();", "title": "" }, { "docid": "08e37355ad46b92fe02c97899d266ade", "score": "0.53789634", "text": "@Override\n public void run() {\n ObjectOutputStream os = null;\n ObjectInputStream is = null;\n try {\n os = new ObjectOutputStream(s.getOutputStream());\n is = new ObjectInputStream(s.getInputStream());\n timer = new Timer();\n timer.scheduleAtFixedRate(new TimerTask(){\n @Override\n public void run() {\n checkPing();\n }\n }, 5000, 5000);\n while(shouldRun){\n Message msg = (Message) is.readObject();\n switch (msg.type) {\n case HANDSHAKE:\n os.writeObject(new Message(Message.Type.INFO, \"Hey what's up?\"));\n System.out.println(\"I: Handshake received from \"+ id);\n break;\n case FAREWELL:\n os.writeObject(new Message(Message.Type.FAREWELL, \"Fuck you too, bro.\"));\n System.out.println(\"I: Client \" + id + \" says bye.\");\n shouldRun = false;\n break;\n case ERROR:\n os.writeObject(new Message(Message.Type.FAREWELL, \"Problem? GTFO.\"));\n System.out.println(\"I: Client \" + id + \" has problems: \" + msg.message + \" Dumping him.\");\n shouldRun = false;\n break;\n case COMMAND:\n if(this.allowedToControl){\n this.controlService.executeCommand(msg.command, msg.cmdValue);\n if(verbose) System.out.println(\"I: Command received from client \"+id);\n }else{\n os.writeObject(new Message(Message.Type.ERROR, \"You have no power here.\"));\n System.out.println(\"I: Client \" + id + \" is trying to control although not allowed to.\");\n }\n break;\n case PING:\n if(verbose) System.out.println(\"I: Ping received from client \"+id);\n setPing(true);\n break;\n default:\n // Possibly info. Why is cliend sending info? Fuck him.\n }\n if(sendAllowedToControlMessage || sendDisallowedToControlMessage){\n os.writeObject(new Message(Message.Type.INFO, sendAllowedToControlMessage ? \"Allowed to control\" : \"Disallowed control\"));\n }\n os.flush();\n }\n } catch (IOException ex) {\n System.err.println(\"E: Client \" + id + \" comms fucked up while opening I/O streams\");\n ex.printStackTrace();\n } catch (ClassNotFoundException ex) {\n System.err.println(\"E: Client \" + id + \" sending weird messages. Dumping him.\");\n } finally {\n try {\n os.close();\n is.close();\n } catch (IOException ex) {\n System.err.println(\"E: Sir you are fucked, error while closing I/O streams for \" + id + \". Restart everything and weep.\");\n }finally{\n this.server.bye(this.id);\n }\n }\n \n }", "title": "" }, { "docid": "09f0efa9a2142ab46ed33ff7ea7763c1", "score": "0.53674334", "text": "@Override\n public void onErrorGeneralRequest(int statusCode) {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Log.e(\"test\", \"fail general request attempt\" + (attempt + 1));\n sendStreamSessionIntervalLabels(intervalLabelsToSend, attempt+1, needUserFeedback, isRecursive);\n }\n }, 10*1000);\n }", "title": "" }, { "docid": "16e0e501292d50b91a8659c41110ab4c", "score": "0.53625995", "text": "void waitForEvents(long timeout, TimeUnit timeUnit) throws GatewayException, TimeoutException;", "title": "" }, { "docid": "c586cecb8a8e4be1770bd95b6547813a", "score": "0.5357178", "text": "void interruptEvents();", "title": "" }, { "docid": "c45f42200f7c22af6453665b739f51af", "score": "0.53538364", "text": "@Override\n\tprotected void doStart() throws Exception {\n\t\tregisterHandler(CplsServiceProto.CPL0108U00GrdDetailRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0108U00GrdDetailHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0108U00GrdMasterRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0108U00GrdMasterHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0108U00CheckItemGrdMasterRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0108U00CheckItemGrdMasterHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0108U00CheckItemGrdDetailRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0108U00CheckItemGrdDetailHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0108U00SaveLayoutRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0108U00SaveLayoutHandler.class));\n\t\t//[END][CPL0108U00] - [Manage type codes]\n\t\t// --- [START] CPL0104U00 ---\n\t\tregisterHandler(CplsServiceProto.CPL0104U00GrdDetailRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL0104U00GrdDetailCPL0104Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0104U00GrdMasterRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL0104U00GrdMasterCPL0104Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0104U00SaveLayoutRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0104U00SaveLayoutHandler.class));\n\t\t// --- [END] CPL0104U00---\n\n\t\t// --- [START] CPL2010U00---\n\t\tregisterHandler(CplsServiceProto.CPL2010U00ChangeTimeUpdateCPL2010Request.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL2010U00ChangeTimeUpdateCPL2010Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00MlayConstantInfoRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL2010U00MlayConstantCPL2010Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00LayPrintNameRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U00LayPrintNameHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00LayBarcodeTemp2Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U00LayBarcodeTemp2Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00GrdOrderRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U00GrdOrderHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00OrderCancelGetYNRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL2010U00OrderCancelGetYNCPL2010Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00CheckInjCplOrderRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL2010U00CheckInjCplOrderCPL2010Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00ExecuteGetYValueRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL2010U00ExecuteGetYValueCPL2010Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00GrdPaListRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CPL2010U00GrdPaListHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00OrderCancelGrdOrderRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL2010U00OrderCancelGrdOrderCPL2010Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00PaqryGrdPaRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL2010U00PaqryGrdPaCPL2010Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00GrdTubeQueryStartingRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL2010U00GrdTubeQueryStartingCPL2010Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00GrdSpecimenRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL2010U00GrdSpecimenCPL2010Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00ChangeTimeGrdSpecimenRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL2010U00ChangeTimeGrdSpecimenCPL2010Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00SetPrintRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL2010U00SetPrintCPL2010Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00SaveLayoutRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U00SaveLayoutHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00OrderCancelExecuteRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U00OrderCancelExecuteHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00VsvPaRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U00VsvPaHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U00LayChkNamesRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U00LayChkNamesHandler.class));\n\t\t// --- [END] CPL2010U00---\n\n\t\t//[START][CPL0106U00] - [Manage group code]\n\t\tregisterHandler(CplsServiceProto.CPL0106U00FwkGumsaRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0106U00FwkGumsaHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0106U00GrdCodeRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0106U00GrdCodeHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0106U00GrdGroupRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0106U00GrdGroupHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0106U00SaveLayoutRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0106U00SaveLayoutHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0106U00GridColumnChangeRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CPL0106U00GridColumnChangeHandler.class));\n\t\t//[END][CPL0106U00] - [Manage group code]\n\t\t//[START] CPL7001Q01\n\t\tregisterHandler(CplsServiceProto.CPL7001CboUitakRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL7001CboUitakHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL7001Q01LayDailyReportRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL7001Q01LayDailyReportHandler.class));\n\t\t//[END] CPL7001Q01\n\t\t//[START] CPL7001Q02\n\t\tregisterHandler(CplsServiceProto.CPL7001Q02LayMonthlyReportRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL7001Q02LayMonthlyReportHandler.class));\n\t\t//[END] CPL7001Q02\n\n\t\t//[START] CPL2010R01\n\t\tregisterHandler(CplsServiceProto.CPL2010R01LayReserDateRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010R01LayReserDateHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010R01LaySpecimenListRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010R01LaySpecimenListHandler.class));\n\t\t//[END] CPL2010R01\n\n\t\t//[START] CPL2010R00\n\t\tregisterHandler(CplsServiceProto.CPL2010R00GetBarCodeRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010R00GetBarCodeHandler.class));\n\t\t//[END] CPL2010R00\n\n\t\t//[START] CPL3010U00\n\t\tregisterHandler(CplsServiceProto.CPL3010U00BtnUrineClickRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00BtnUrineClickHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00QuerySpecimenBySerRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00QuerySpecimenBySerHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00GetYValueRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00GetYValueHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00QueryLaySpecimenReadUpdateRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00QueryLaySpecimenReadUpdateHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00QueryLaySpecimenReadSelectJundalGubunRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00QueryLaySpecimenReadSelectJundalGubunHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00GetZValueRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00GetZValueHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00ExecuteRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00ExecuteHandler.class));\n\t\t//new define\n\t\tregisterHandler(CplsServiceProto.CPL3010U00QueryLaySpecimenReadRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00QueryLaySpecimenReadHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00SaveLayoutRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00SaveLayoutHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00SaveLayUrineRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00SaveLayUrineHandler.class));\n\n\t\tregisterHandler(CplsServiceProto.CPL3010U00DsvUrineRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00DsvUrineHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00GrdGumRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00GrdGumHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00GrdPartRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00GrdPartHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00LayBarCodeTempRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00LayBarCodeTempHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00LayBarCodeTemp2Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00LayBarCodeTemp2Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00LaySpecimenReadRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00LaySpecimenReadHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00LaySpecimenRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00LaySpecimenHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00VSVJubsujaRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00VSVJubsujaHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00VSVJundalGubunRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00VSVJundalGubunHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U00GetPrintNameRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U00GetPrintNameHandler.class));\n\t\t//[END] CPL3010U00\n\n\t\t//[START] CPL3020U00\n\t\tregisterHandler(CplsServiceProto.CPL3020U00PrCplSpecimenInfoResultRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00PrCplSpecimenInfoResultHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00PrOcsoChkResultMsgRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00PrOcsoChkResultMsgHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00PrOcsUpdateResultRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00PrOcsUpdateResultHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00Execute2ProceduresCheckRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00Execute2ProceduresCheckHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00GetSpecimenInfoRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00GetSpecimenInfoHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00ExecuteUpdateConfirmYNRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00ExecuteUpdateConfirmYNHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00SelectInOutGubunRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00SelectInOutGubunHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00ExecuteUpdateCplResultRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00ExecuteUpdateCplResultHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00PrCplCalInsertBaseResultRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00PrCplCalInsertBaseResultHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00SelectFromStandardRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00SelectFromStandardHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00ExecuteGetYValueRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00ExecuteGetYValueHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00ExecuteUpdateCpl2090Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00ExecuteUpdateCpl2090Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00ExecuteInsertCpl2090Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00ExecuteInsertCpl2090Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00FwkResultGetYRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00FwkResultGetYHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00FwkResultInputSQLRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00FwkResultInputSQLHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00LayCommonRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00LayCommonHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00ResultUpdateUpdateCPL3020Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00ResultUpdateUpdateCPL3020Handler.class));\n\n\t\tregisterHandler(CplsServiceProto.CPL3020U00GrdResultRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00GrdResultHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00GrdPaRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00GrdPaHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00FwkJundalGubunRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00FwkJundalGubunHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00FwkNoteGubunRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00FwkNoteGubunHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00GrdPaRowFocusChangedRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00GrdPaRowFocusChangedHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00SavePerformerRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00SavePerformerHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U00VsvNoteRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U00VsvNoteHandler.class));\n\t\t//[END] CPL3020U00\n\n\t\t//----------[START] CPLCPL3010U01\n\t\tregisterHandler(CplsServiceProto.CPL3010U01IsWriteFileSelectCodeValueRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CPL3010U01IsWriteFileSelectCodeValueHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U01IsWriteFileUpdateNoParamRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL3010U01IsWriteFileUpdateNoParamHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U01IsWriteFileSelectOrUpdateRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL3010U01IsWriteFileSelectOrUpdateHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U01SearchMaxInfoRequest.class.getSimpleName(), SpringBeanFactory.beanFactory.getBean(CplsCPL3010U01SearchMaxInfoHandler.class));\n\t\t//new define\n\t\tregisterHandler(CplsServiceProto.CPL3010U01GrdHangmogRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U01GrdHangmogHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U01GrdResultRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U01GrdResultHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U01LaySpecimenRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U01LaySpecimenHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U01LayPrint2Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U01LayPrint2Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U01GrdPaRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U01GrdPaHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U01PrePrintRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U01PrePrintHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U01IsFileWriteRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U01IsFileWriteHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U01PrCplInsertCpl9000Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U01PrCplInsertCpl9000Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U01SaveLayoutRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U01SaveLayoutHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3010U01CodeValueRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3010U01CodeValueHandler.class));\n\n\t\t//----------[END ] CPLCPL3010U01\n\t\t//[START] CPL0000Q00\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00LayJungboRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00LayJungboHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00LaySigeyulTempRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00LaySigeyulTempHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00LaySubHangmogRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00LaySubHangmogHandler.class));\n//\t\tregisterHandler(CplsServiceProto.CPL0000Q00InitializeRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00InitializeHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00ScreenOpenUpdateRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00ScreenOpenUpdateHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00LayOrderRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00LayOrderHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00LayOrderResultListQueryRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00LayOrderResultListQueryHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00LayOrderJubsuListQueryRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00LayOrderJubsuListQueryHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00FrmGraphGetSigeyulRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00FrmGraphGetSigeyulHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00GetSigeyulDataSelect2Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00GetSigeyulDataSelect2Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00ResultListQuerySelect1Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00ResultListQuerySelect1Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00ResultListQuerySelect2Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00ResultListQuerySelect2Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00InsertCPLTEMPRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00InsertCPLTEMPHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00DeleteAndSelectRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00DeleteAndSelectHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00LayResultListTempRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00LayResultListTempHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q00FrmSigeyulDelCplTempRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q00FrmSigeyulDelCplTempHandler.class));\n\n\t\t//[END] CPL0000Q00\n\n\t\t//[START] CPL3020U02\n//\t\tregisterHandler(CplsServiceProto.CPL3020U02InitializeRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02InitializeHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02SetAutoConfirmCheckedRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02SetAutoConfirmCheckedHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02GetSpecimenInfoSelectRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02GetSpecimenInfoSelectHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02ExecuteConfirmYNUpdateRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02ExecuteConfirmYNUpdateHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02ExecuteSelectInOutGubunRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02ExecuteSelectInOutGubunHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02ExecuteCase1FinalUpdateCPL3020Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02ExecuteCase1FinalUpdateCPL3020Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02ExecuteCase2Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02ExecuteCase2Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02FwkResultQueryStartingRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02FwkResultQueryStartingHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02RESULTMAPInitializeRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02RESULTMAPInitializeHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02ExecuteCplResulUpdateRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02ExecuteCplResulUpdateHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02RESULTMAPPrCplResultMatchProcRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02RESULTMAPPrCplResultMatchProcHandler.class));\n\t\t\n\t\tregisterHandler(CplsServiceProto.CPL3020U02SetDataIFS7203Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02SetDataIFS7203Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02SetDataIFS7204Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02SetDataIFS7204Handler.class));\n\t\t//[END] CPL3020U02\t\n\n\t\t//[START] CPL0101U00\n\t\tregisterHandler(CplsServiceProto.CPL0101U00GridMasterSaveLayoutRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0101U00GridMasterSaveLayoutHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0101U00InitRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0101U00InitHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0101U00MakeValSerViceRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0101U00MakeValSerViceHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0101U00MakeFindWorkerRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0101U00MakeFindWorkerHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0101U00CheckHangMogCopyRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0101U00CheckHangMogCopyHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0101U00PrCplCopyCPL0101Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0101U00PrCplCopyCPL0101Handler.class));\n\t\t//[END] CPL0101U00\n\n\t\t//[START] CPLFINDLIB\n\t\tregisterHandler(CplsServiceProto.CPLFINDLIBGrdFindRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPLFINDLIBGrdFindHandler.class));\n\t\t//[END] CPLFINDLIB\n\n\n\t\t//[START] CPL3020U02-NEW\n\t\tregisterHandler(CplsServiceProto.CPL3020U02CbxJangbiRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02CbxJangbiHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02GrdPaRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02GrdPaHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02GrdResultRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02GrdResultHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02AutoConfirmCheckedRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02AutoConfirmCheckedHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02SaveRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02SaveHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02ResultMapGrdIDRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02ResultMapGrdIDHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02ResultMapGrdRsltRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02ResultMapGrdRsltHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL3020U02PrCplResultMatchProcRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL3020U02PrCplResultMatchProcHandler.class));\n\t\t\n\t\t//[END] CPL3020U02-NEW\n\n\t\t//[START] MultiResultView\n\t\tregisterHandler(CplsServiceProto.MultiResultViewLayPaInfoRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(MultiResultViewLayPaInfoHandler.class));\n\t\tregisterHandler(CplsServiceProto.MultiResultViewGrdSigeyul1Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(MultiResultViewGrdSigeyul1Handler.class));\n\t\tregisterHandler(CplsServiceProto.MultiResultViewGrdSigeyul2Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(MultiResultViewGrdSigeyul2Handler.class));\n\t\tregisterHandler(CplsServiceProto.MultiResultViewGetJubsuSigeyulRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(MultiResultViewGetJubsuSigeyulHandler.class));\n\t\tregisterHandler(CplsServiceProto.MultiResultViewGetPreJubsuSigeyulRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(MultiResultViewGetPreJubsuSigeyulHandler.class));\n\t\t//[END] MultiResultView\n\n\t\t//[START] CPL0108U01\n\t\tregisterHandler(CplsServiceProto.CPL0108U01LayDupMRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0108U01LayDupMHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0108U01LayDupDRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0108U01LayDupDHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0108U01GrdMasterRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0108U01GrdMasterHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0108U01GrdDetailRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0108U01GrdDetailHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0108U01SaveLayoutRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0108U01SaveLayoutHandler.class));\n\t\t//[START] CPL0108U01\t\n\t\t\n\t\t//[START] CPL0001U00\n\t\tregisterHandler(CplsServiceProto.CPL0001U00GrdSlipRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0001U00GrdSlipHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0001U00GrdSaveRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0001U00GrdSaveHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0001U00GrdChangeRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0001U00GrdChangeHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0001U00GrdComboRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0001U00GrdComboHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0001U00CboJundalRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0001U00CboJundalHandler.class));\n\t\t//[START] CPL0001U00\t\n\t\t\n\t\t//[START] CPLMASTERUPLOADER\n\t\tregisterHandler(CplsServiceProto.CPLMASTERUPLOADERPRCplBmlUploaderRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPLMASTERUPLOADERPRCplBmlUploaderHandler.class));\n\t\t//[END] CPLMASTERUPLOADER\n\t\t\n\t\t// [BEGIN] CPL2010U00 Composite\n\t\tregisterHandler(CplsServiceProto.CPL2010U00OpenScreenCompositeRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U00OpenScreenCompositeHandler.class));\n\t\t// [END] CPL2010U00 Composite\n\t\tregisterHandler(CplsServiceProto.CPL0000Q01fwkHangmogCodeRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q01fwkHangmogCodeHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q01layBmlUrlInfoRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q01layBmlUrlInfoHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL0000Q01MakeValServiceRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL0000Q01MakeValServiceHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010R02grdcpllistRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010R02grdcpllistHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010R02grdOrderListRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010R02grdOrderListHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010R02xEditGridCell23Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010R02xEditGridCell23Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010R02fbxBunhoDataValidatingRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010R02fbxBunhoDataValidatingHandler.class));\n\t\t\n\t\t// MIH\n\t\tregisterHandler(CplsServiceProto.CPL2010U01CHANGETIMEgrdSpecimenRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01CHANGETIMEgrdSpecimenHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01CHANGETIMESAveLayoutRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01CHANGETIMESAveLayoutHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01cbxActorRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01cbxActorHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01cbxBuseoRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01cbxBuseoHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01fwkHodongRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01fwkHodongHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01grdTubeRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01grdTubeHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01layBarcodeTempRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01layBarcodeTempHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01layBarcodeTemp2Request.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01layBarcodeTemp2Handler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01layTubeRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01layTubeHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01vsvHodongRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01vsvHodongHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01layPrintNameRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01layPrintNameHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01cboTimeRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01cboTimeHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01grdSpecimenRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01grdSpecimenHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01SaveLayoutRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01SaveLayoutHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01grdPaListRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01grdPaListHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01grdPaRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01grdPaHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01PostLoadRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01PostLoadHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01SetPrintRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01SetPrintHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U01layBarcodeTempQueryEndRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U01layBarcodeTempQueryEndHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U02layBarcodeRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U02layBarcodeHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U02grdSpecimenRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U02grdSpecimenHandler.class));\n\t\tregisterHandler(CplsServiceProto.CPL2010U02SaveLayoutRequest.class.getSimpleName(),SpringBeanFactory.beanFactory.getBean(CPL2010U02SaveLayoutHandler.class));\n\t}", "title": "" }, { "docid": "e802913cb03eddae8a94fd3beea8105d", "score": "0.53516096", "text": "void enableTimeouts();", "title": "" }, { "docid": "889ccb5799d55bbfb9b7fe4fb9dd5052", "score": "0.5308054", "text": "public void run() {\r\n\t\t\r\n\t\t//default mode is close range\r\n\t\tthis.mode = CLOSE_RANGE;\r\n\t\t\r\n\t\tsetBodyColor(Color.green);\r\n\t\tsetGunColor(Color.yellow);\r\n\t\tsetRadarColor(Color.white);\r\n\t\tsetBulletColor(Color.cyan);\r\n\t\tsetScanColor(Color.cyan);\t\r\n\t\t\r\n\t\t//custom event declarations start\r\n\t\taddCustomEvent(new Condition(\"low_health\") {\r\n\t\t\tpublic boolean test() {\r\n\t\t\t\tif(getEnergy() < 30)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse return false;\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\taddCustomEvent(new Condition(\"long_range_enemy\"){\r\n\t\t\tpublic boolean test(){\r\n\t\t\t\r\n\t\t\t\tif(enemy.getDistance() > getBattleFieldWidth()/2)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\telse return false;\r\n\t\t\t}\r\n\t\t});\t\r\n\t\t\r\n\t\taddCustomEvent(new Condition(\"short_range_enemy\"){\r\n\t\t\tpublic boolean test(){\r\n\t\t\t\tif(enemy.getDistance() < getBattleFieldWidth()/16)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse return false; \r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t//custom event declarations start\r\n\r\n\t\t//make the radar and gun move independent of the robot's body turn\r\n\t\tsetAdjustRadarForRobotTurn(true);\r\n\t\tsetAdjustGunForRobotTurn(true);\r\n\t\tenemy.reset();\r\n\t\t// Robot main loop\r\n\t\twhile(true) {\r\n\t\t\t\r\n\t\t\t//keep spinning the radar to always be updated of the enemies around \r\n\t\t\tsetTurnRadarRightRadians(Double.POSITIVE_INFINITY);\r\n\t\t\tdoMove();\r\n\t\t\texecute();\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "100395fc393250ed66e84e0e97978e08", "score": "0.5300387", "text": "public ControlLoopWithTimers() {}", "title": "" }, { "docid": "1453cbf47e33c5e37a09eef012d40d65", "score": "0.5283672", "text": "public boolean start() {\n if (mWhileEventMonitoring) {\n return false;\n }\n\n mWhileEventMonitoring = true;\n new Thread() {\n\n @Override\n public void run() {\n // Call getEvent API continuously.\n boolean firstCall = true;\n MONITORLOOP: while (mWhileEventMonitoring) {\n\n // At first, call as non-Long Polling.\n boolean longPolling = firstCall ? false : true;\n\n try {\n // Call getEvent API.\n JSONObject replyJson = mRemoteApi.getEvent(longPolling);\n\n // Check error code at first.\n int errorCode = findErrorCode(replyJson);\n switch (errorCode) {\n case STATUS_CODE_0: // no error\n // Pass through.\n break;\n case STATUS_CODE_1: // \"Any\" error\n case STATUS_CODE_12: // \"No such method\" error\n break MONITORLOOP; // end monitoring.\n case STATUS_CODE_2: // \"Timeout\" error\n // Re-call immediately.\n continue MONITORLOOP;\n case STATUS_CODE_40402: // \"Already polling\" error\n // Retry after 5 sec.\n try {\n Thread.sleep(THREAD_SLEEP_MSEC);\n } catch (InterruptedException e) {\n //Exceptionを受けるだけなので処理は行わない\n }\n continue MONITORLOOP;\n default:\n break MONITORLOOP; // end monitoring.\n }\n\n List<String> availableApis = findAvailableApiList(replyJson);\n if (!availableApis.isEmpty()) {\n fireApiListModifiedListener(availableApis);\n }\n\n // CameraStatus\n String cameraStatus = findCameraStatus(replyJson);\n if (cameraStatus != null\n && !cameraStatus.equals(mCameraStatus)) {\n mCameraStatus = cameraStatus;\n fireCameraStatusChangeListener(cameraStatus);\n }\n\n // LiveviewStatus\n Boolean liveviewStatus = findLiveviewStatus(replyJson);\n if (liveviewStatus != null\n && !liveviewStatus.equals(mLiveviewStatus)) {\n mLiveviewStatus = liveviewStatus;\n fireLiveviewStatusChangeListener(liveviewStatus);\n }\n\n // ShootMode\n String shootMode = findShootMode(replyJson);\n if (shootMode != null && !shootMode.equals(mShootMode)) {\n mShootMode = shootMode;\n fireShootModeChangeListener(shootMode);\n }\n\n // zoomPosition\n int zoomPosition = findZoomInformation(replyJson);\n if (zoomPosition != -1) {\n mZoomPosition = zoomPosition;\n fireZoomInformationChangeListener(0, 0, zoomPosition, 0);\n }\n\n // :\n // : add implementation for Event data as necessary.\n \n String imageUrl = findTakePicture(replyJson);\n if (imageUrl != null) {\n fireTakePictureChangeListner(imageUrl);\n }\n\n } catch (IOException e) {\n // Occurs when the server is not available now.\n break MONITORLOOP;\n } catch (JSONException e) {\n break MONITORLOOP;\n }\n\n firstCall = false;\n } // MONITORLOOP end.\n\n mWhileEventMonitoring = false;\n }\n } .start();\n\n return true;\n }", "title": "" }, { "docid": "1867ec4f2d4669b8f4f1b49aef6f81f7", "score": "0.526602", "text": "public abstract void startSendData();", "title": "" }, { "docid": "b720d63160154e946673e291e05ac17f", "score": "0.526529", "text": "public void sendPendingMessages();", "title": "" }, { "docid": "badc5e20b6ca38abf905ee856ea970f5", "score": "0.52652746", "text": "@Override\n\tpublic void run() {\n\t\twhile (!stopRequested || floor.hasMoreEvents()) {\n\t\t\ttry {\n\t\t\t\tMessage received = receive();\n\t\t\t\t\n\t\t\t\t// sent from elevator to register port with scheduler\n\t\t\t\tif (received instanceof RegisterElevatorRequest) {\n\t\t\t\t\tRegisterElevatorRequest req = (RegisterElevatorRequest) received;\n\t\t\t\t\tString format = \"Notified that Elevator %d has been registered with system and is on floor %d\";\n\t\t\t\t\tLog.log(String.format(format, (int) req.getElevatorId(), req.getStatus().getFloor()), Log.Level.INFO);\n\t\t\t\t}\n\t\t\t\t// sent on state changes & floor changes by the elevators to the scheduler\n\t\t\t\telse if (received instanceof ElevStatusNotify) {\n\t\t\t\t\tElevStatusNotify req = (ElevStatusNotify) received;\t\t\t\t\t\n\t\t\t\t\tfloor.receiveElevatorStatus(req.getElevatorId(), req.getStatus());\n\t\t\t\t}\n\t\t\t\telse if (received instanceof CompletedFloorRequest) {\n\t\t\t\t\tCompletedFloorRequest req = (CompletedFloorRequest) received;\n\t\t\t\t\tfloor.handleCompletedFloorRequest(req.getElevatorId(), req.getFloorRequest());\n\t\t\t\t}\n\t\t\t\t// sent by the scheduler to notify the Floor that all Elevators have exited\n\t\t\t\t// and that the MessageHandler can close since it will not receive any more messages\n\t\t\t\telse if (received instanceof StopRequest) {\n\t\t\t\t\trequestStop();\n\t\t\t\t}\n\t\t\t\telse if (received instanceof MessageAck) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t// unrecognized message, send MessageAck failure\n\t\t\t\telse {\n\t\t\t\t\tsend(new MessageAck(false), received.getSrcPort());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// message handled correctly, send MessageAck success\n\t\t\t\tsend(new MessageAck(true), received.getSrcPort());\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\tif (!stopRequested) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Notify the Scheduler that the Floor has successfully stopped\n\t\t// if this was not force stopped\n\t\tif (!sock.isClosed()) {\n\t\t\tsend(new StopResponse());\n\t\t\tsock.close();\n\t\t}\n\t\t\n\t\tLog.log(\"EXITING\", Log.Level.DEBUG);\n\t}", "title": "" }, { "docid": "9684e95f51a23cf840025454471e3ef6", "score": "0.52591693", "text": "public void run()\n\t{\n\t\tnumMsgsToday = 0;\n\t\tnumErrsToday = 0;\n\t\tinitStatus();\n\t\trunStartTime = System.currentTimeMillis();\n\t\tnumMsgsRun = 0;\n\t\tnumErrsRun = 0;\n\t\tlastDay = System.currentTimeMillis() / (24 * 60 * 60 * 1000L);\n\t\tlog(Logger.E_DEBUG1, \"run() starting.\");\n\t\twriteStatus();\n\n\t\tdone = false;\n\t\tlong lastMsgReceiveMsec = 0L;\n\t\tcheckRoutingSpec();\n\t\tcheckNetworkLists();\n\t\tcheckPresentationGroup();\n\t\tinit(lastMsgReceiveMsec);\n\t\tif (done)\n\t\t{\n\t\t\tquit();\n\t\t\treturn; // Initialization failed.\n\t\t}\n\t\t\n\t\tdecodes.db.DatabaseIO dbio = Database.getDb().getDbIo();\n\t\t\n\t\tlong lastUp2DateCheck = System.currentTimeMillis();\n\t\t//long lastStatusWrite = System.currentTimeMillis();\n\n\t\tif (usgsSummaryFile != null && usgsSummaryFile.length() > 0)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tsummaryFile = \n\t\t\t\t\tnew RotatingFile(EnvExpander.expand(usgsSummaryFile), 10000000);\n\t\t\t\tsumGen = new SummaryReportGenerator();\n\t\t\t\tsumGen.setTimeZone(rs.outputTimeZoneAbbr);\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tlog(Logger.E_FAILURE,\n\t\t\t\t\t\"Cannot initialize summary file '\" + usgsSummaryFile + \"': \" + ex\n\t\t\t\t\t+ \" -- will proceed without summaries.\");\n\t\t\t\tsummaryFile = null;\n\t\t\t\tsumGen = null;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (officeIdArg.getValue() != null && officeIdArg.getValue().length() > 0)\n\t\t\tDecodesSettings.instance().CwmsOfficeId = officeIdArg.getValue();\n\n\t\tString rawArchivePath = rs.getProperty(\"RawArchivePath\");\n\t\tif (rawArchivePath != null)\n\t\t\trawArchive = new RawArchive(rs);\n\n\t\tlog(Logger.E_DEBUG3, \"Starting, applySensorLimits=\" +applySensorLimits);\n\t\tcurrentStatus = \"Running\";\n\t\tstatusWriteThread = new StatusWriteThread(this);\n\t\tstatusWriteThread.start();\n\n\t\t\t\n//// Test Code to kill a database connection a specified # of seconds after starting.\n//String s = rs.getProperty(\"killDbConAfter\");\n//if (s != null)\n//{\n//\tfinal int sec = Integer.parseInt(s);\n//\tLogger.instance().info(\"TEST TEST TEST Will kill the db connection after \" + sec + \" seconds.\");\n//\tThread killDbThread = \n//\t\tnew Thread()\n//\t\t{\n//\t\t\tpublic void run()\n//\t\t\t{\n//\t\t\t\tlong start = System.currentTimeMillis();\n//\t\t\t\twhile (System.currentTimeMillis() - start < (sec*1000L))\n//\t\t\t\t\ttry { sleep(1000L); } catch (InterruptedException ex) {}\n//\t\t\t\tLogger.instance().info(\"TEST TEST TEST killing db con now...\");\n//\t\t\t\tDatabase.getDb().getDbIo().close();\n//\t\t\t}\n//\t\t};\n//\tkillDbThread.start();\n//}\n\n\t\tif (myLock != null)\n\t\t{\n\t\t\t// MJM 20170220 Added TsdbCompLock capability. The main() method, will\n\t\t\t// create a lock if: 1.) No [-k lockfile] is specified, 2.) There is a\n\t\t\t// process record matching the rs name, and 3.) the process' monitor flag\n\t\t\t// is true.\n\t\t\tnew Thread()\n\t\t\t{\n\t\t\t\tlong lastLockCheck = System.currentTimeMillis();\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\twhile (!done)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (System.currentTimeMillis() - lastLockCheck > 5000L)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tLoadingAppDAI loadingAppDAO = Database.getDb().getDbIo().makeLoadingAppDAO();\n\t\t\t\t\t\t\tmyLock.setStatus(myStatus.getStats());\n\t\t\t\t\t\t\ttry { loadingAppDAO.checkCompProcLock(myLock); }\n\t\t\t\t\t\t\tcatch (LockBusyException ex)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLogger.instance().info(\"Database Lock removed -- exiting: \" + ex);\n\t\t\t\t\t\t\t\tshutdown();\n\t\t\t\t\t\t\t\tcurrentStatus = \"Lock Removed\";\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (DbIoException ex)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLogger.instance().failure(\"Error checking database lock: \" + ex);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfinally\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tloadingAppDAO.close();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlastLockCheck = System.currentTimeMillis();\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry{ sleep(500L); } catch(InterruptedException ex) {}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}.start();\n\n\t\t\t\n\t\t}\n\t\t\n\t\twhile(!done)\n\t\t{\n\t\t\tmyExec.setSubsystem(null);\n\n\t\t\t// Periodically check to see if my objects have changed.\t\t\t\n\t\t\tlong now = System.currentTimeMillis();\n\t\t\tif (now - lastUp2DateCheck > 30000L)\n\t\t\t{\n\t\t\t\tmyExec.setSubsystem(\"update\");\n\t\t\t\tLogger.instance().debug1(\"Doing up2date checks...\");\n\t\t\t\tlastUp2DateCheck = now;\n\t\t\t\t\n\t\t\t\t// Use non-short circuit OR operator so they all get evaluated.\n\t\t\t\tif (checkRoutingSpec() | checkNetworkLists()\n\t\t\t\t | checkPresentationGroup() | reinitForced)\n\t\t\t\t{\n\t\t\t\t\treinitForced = false;\n\t\t\t\t\tlastInitDone = System.currentTimeMillis();\n\t\t\t\t\tinit(lastMsgReceiveMsec);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\t\t\t// MJM 20041027 Added the following check:\n\t\t\t// Every 10 minutes, re-read platform list to see if any platforms\n\t\t\t// have been added.\n\t\t\tif (now - Database.getDb().platformList.getLastReadTime() > 10*60000L)\n\t\t\t{\n\t\t\t\tmyExec.setSubsystem(\"platlist\");\n\t\t\t\ttry { Database.getDb().platformList.read(); }\n\t\t\t\tcatch(DatabaseException ex)\n\t\t\t\t{\n\t\t\t\t\tLogger.instance().failure(\n\t\t\t\t\t\t\"Could not refresh platform list: \" + ex);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (purgeOldEvents && now - myExec.getLastEventsPurge() > 3600000L) // every hour, or on first run\n\t\t\t{\n\t\t\t\tmyExec.setLastEventsPurge(now);\n\t\t\t\tif ((dbio instanceof SqlDatabaseIO)\n\t\t\t\t && ((SqlDatabaseIO)dbio).getDecodesDatabaseVersion() >= DecodesDatabaseVersion.DECODES_DB_11)\n\t\t\t\t{\n\t\t\t\t\tDacqEventDAI dao = ((SqlDatabaseIO)dbio).makeDacqEventDAO();\n\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\tcal.add(Calendar.DAY_OF_MONTH, -DecodesSettings.instance().eventPurgeDays);\n\t\t\t\t\tlog(Logger.E_INFORMATION, \"Purging old DACQ_EVENTs before \" + cal.getTime());\n\t\t\t\t\ttry { dao.deleteBefore(cal.getTime()); }\n\t\t\t\t\tcatch(Exception ex)\n\t\t\t\t\t{\n\t\t\t\t\t\tLogger.instance().warning(\"Failed to delete events before \" + cal.getTime()\n\t\t\t\t\t\t\t+ \": \" + ex);\n\t\t\t\t\t}\n\t\t\t\t\tfinally { dao.close(); }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//=====================================================\n\t\t\t// Retrieve the next raw message from the data source.\n\t\t\t//=====================================================\n\t\t\tmyExec.setSubsystem(\"acquire\");\n\t\t\tRawMessage rm = null;\n\t\t\ttry \n\t\t\t{\n\t\t\t\trm = source.getRawMessage();\n\t\t\t\tif (rm == null)\n\t\t\t\t{\n\t\t\t\t\tlog(Logger.E_DEBUG3,\n\t\t\t\t\"Data source failed to return message, pausing for 1 seconds.\");\n\t\t\t\t\tcurrentStatus = \"Wait-Msg\";\n\t\t\t\t\tif (formatter != null)\n\t\t\t\t\t\tformatter.dataSourceCaughtUp(false);\n\t\t\t\t\ttry { sleep(1000L); }\n\t\t\t\t\tcatch (InterruptedException e) {}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tnumMsgsRun++;\n\t\t\t\tnumMsgsToday++;\n\t\t\t\tlastRecvTime = System.currentTimeMillis();\n\t\t\t\tlog(Logger.E_DEBUG3,\n\t\t\t\t\t\"Message from '\" + rs.dataSource.getName() + \"': \"\n\t\t\t\t\t+ new String(rm.getHeader()) + \", length=\" + rm.getMessageData().length);\n\t\t\t\tmediumIdsSeen.add(rm.getMediumId());\n\t\t\t}\n\t\t\tcatch(DataSourceEndException e)\n\t\t\t{\n\t\t\t\tlog(Logger.E_INFORMATION,\n\t\t\t\t\t\"Normal termination of data source '\" + rs.dataSource.getName()\n\t\t\t\t\t+ \"': \" + e);\n\t\t\t\tif (formatter != null)\n\t\t\t\t\tformatter.dataSourceCaughtUp(true);\n\t\t\t\tcurrentStatus = \"Completed\";\n\t\t\t\tdone = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcatch(UnknownPlatformException ex)\n\t\t\t{\n\t\t\t\tnumErrsRun++;\n\t\t\t\tnumErrsToday++;\n\t\t\t\tif (formatter.requiresDecodedMessage())\n\t\t\t\t{\n\t\t\t\t\tlog(Logger.E_WARNING,\n\t\t\t\t\t\t\"Data source '\" + rs.dataSource.getName() + \"': \" + ex\n\t\t\t\t\t\t+ \" -- skipped\");\n\t\t\t\t\tcurrentStatus = \"Running\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(DataSourceException e)\n\t\t\t{\n\t\t\t\tlog(Logger.E_FAILURE,\n\t\t\t\t\t\"Error on data source '\" + rs.dataSource.getName() + \"': \" + e\n\t\t\t\t\t+ \" -- exiting\");\n\t\t\t\tdone = true;\n\t\t\t\tcurrentStatus = \"ERROR-Source\";\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tString msg = \"Unexpected exception in data source '\"\n\t\t\t\t\t+ rs.dataSource.getName() + \"': \" + ex;\n\t\t\t\tSystem.err.println(msg);\n\t\t\t\tex.printStackTrace(System.err);\n\t\t\t\tlog(Logger.E_WARNING, msg);\n\t\t\t\tdone = true;\n\t\t\t\tcurrentStatus = \"ERROR-Source\";\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlastMsgReceiveMsec = System.currentTimeMillis();\n\n\t\t\tmyExec.setPlatform(rm.getPlatformOrNull());\n\t\t\tmyExec.setMessageStart(rm.getTimeStamp());\n\n\t\t\tif (rawArchive != null)\n\t\t\t{\n\t\t\t\tmyExec.setSubsystem(\"raw-archive\");\n\t\t\t\trawArchive.archive(rm);\n\t\t\t}\n\t\t\t\n\t\t\tPlatformStatus platstat = null;\n\t\t\tPlatform platform = rm.getPlatformOrNull();\n\t\t\ttry(PlatformStatusDAI platformStatusDAO = Database.getDb().getDbIo().makePlatformStatusDAO();)\n\t\t\t{\n\t\t\t\tif (platform != null && updatePlatformStatus)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tplatstat = platformStatusDAO.readPlatformStatus(platform.getId());\n\t\t\t\t\t}\n\t\t\t\t\tcatch (DbIoException ex)\n\t\t\t\t\t{\n\t\t\t\t\t\tlog(Logger.E_WARNING, \"Cannot read platform status: \" + ex);\n\t\t\t\t\t\tplatstat = null;\n\t\t\t\t\t}\n\t\t\t\t\tif (platstat == null)\n\t\t\t\t\t\tplatstat = new PlatformStatus(platform.getId());\n\t\t\t\t\tDate x = new Date();\n\t\t\t\t\t// PollingDataSource manages its own contact and message times.\n\t\t\t\t\tif (!(source instanceof PollingDataSource))\n\t\t\t\t\t{\n\t\t\t\t\t\tplatstat.setLastContactTime(x);\n\t\t\t\t\t\tplatstat.setLastMessageTime(x);\n\t\t\t\t\t}\n\t\t\t\t\tString annot = platstat.getAnnotation();\n\t\t\t\t\tif (annot != null && annot.toUpperCase().startsWith(\"STALE\"))\n\t\t\t\t\t\tplatstat.setAnnotation(\"\");\n\t\t\t\t\tVariable fc = rm.getPM(GoesPMParser.FAILURE_CODE);\n\t\t\t\t\tif (fc != null)\n\t\t\t\t\t\tplatstat.setLastFailureCodes(fc.toString());\n\t\t\t\t\tplatstat.setLastScheduleEntryStatusId(scheduleEntryStatusId);\n\t\t\t\t}\n\n\t\t\t\t//=====================================================\n\t\t\t\t// Retrieve the platform, transport medium, decodes script,\n\t\t\t\t// and prepare them for execution. Then decode the message.\n\t\t\t\t//=====================================================\n\t\t\t\tDecodedMessage dm = null;\n\t\t\t\tDcpMsg dcpMsg = rm.getOrigDcpMsg();\n\t\t\t\tif (dcpMsg != null)\n\t\t\t\t\tlastDcpMsg = dcpMsg;\n\n\t\t\t\tif (formatter.attemptDecode()\n\t\t\t\t&& (dcpMsg == null || !dcpMsg.isDapsStatusMsg()))\n\t\t\t\t{\n\t\t\t\t\tmyExec.setSubsystem(\"decode\");\n\t\t\t\t\tdm = attemptDecode(rm, platstat);\n\t\t\t\t}\n\t\t\t\telse // Just make the Decoded message a wrapper around raw.\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tdm = new DecodedMessage(rm, false);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception ex)\n\t\t\t\t\t{\n\t\t\t\t\t\tString msg = \"Unexpected Error: \" + ex;\n\t\t\t\t\t\tlog(Logger.E_FAILURE, msg);\n\t\t\t\t\t\tSystem.err.println(msg);\n\t\t\t\t\t\tex.printStackTrace(System.err);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (dm != null)\n\t\t\t\t{\n\t\t\t\t\tmyExec.setSubsystem(\"format-output\");\n\t\t\t\t\tformatAndOutputMessage(dm, platstat);\n\t\t\t\t}\n\n\t\t\t\tif (platstat != null && updatePlatformStatus)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tmyExec.setSubsystem(\"platstat\");\n\t\t\t\t\t\tplatformStatusDAO.writePlatformStatus(platstat);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (DbIoException ex)\n\t\t\t\t\t{\n\t\t\t\t\t\tlog(Logger.E_WARNING, \"Cannot write platform status: \" + ex);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmyExec.setPlatform(null);\n\t\t\t\tmyExec.setMessageStart(null);\n\n\t\t\t\tcurrentStatus = \"Running\";\n\t\t\t}\n\t\t}\n\n\t\tquit();\n\t}", "title": "" }, { "docid": "0605c8b0b2ae81ad944b2f9c2b0e5dac", "score": "0.5259087", "text": "public void sendTimerData() {\n\t\t// TODO: get real data (from not yet existing timer window)\n\t\t\n\t\tserver.sendTimerMessage(time);\n\t\t\n\t}", "title": "" }, { "docid": "2f3c6abe7b9591266bdc8e109202a61e", "score": "0.52461916", "text": "public void run() {\n long unixTime = System.currentTimeMillis();\n\n if (unixTime - lastTimerCheck > minMainTimerInterval) {\n\n // toastHandler.sendEmptyMessage(0);\n mainTaskHandler.post(new Runnable() {\n @Override\n public void run() {\n /* do what you need to do */\n serviceCheck();\n /* and here comes the \"trick\" */\n\n }\n });\n\n } else {\n\n LogDebug(\"Timer sooner than expected\");\n }\n\n // serviceCheck();\n //Commented previous implementation\n /*\n try {\n\n boolean bandActionTaken = false;\n\n Log.d(TAG, \"Timer check\");\n\n //region Block for not paused\n if (!schedulerPause) {\n\n if (!scheduledRun()) {\n\n if (sessionRunning) {\n /// IF SESSION RUNNING STOP SESSION\n ///Notify Server\n LogInfo(\"Service stopped for today\");\n SendAlert(\"INFO\", \"Service stopped for today\", \"INFO0002\");\n\n bandActionTaken = true;\n //Stop Reader\n StopReader();\n }\n\n\n } else {\n\n boolean sessionMustRun = getSessionMustRun();\n\n if (sessionMustRun) {\n\n enableBluetooth();\n\n //IF Session Not Running\n if (!sessionRunning) {\n\n bandActionTaken = true;\n //Start Reader\n StartReader();\n\n\n } else {\n\n //Session Running\n // Check For Errors\n if (!bandActionTaken) {\n\n try {\n\n checkBandConnectionStatus();\n\n } catch (InterruptedException ex) {\n\n LogError(\"EX ON SCHEDULING\", ex.getCause());\n } catch (Exception ex) {\n\n LogError(\"EX ON SCHEDULING\", ex.getCause());\n }\n\n }\n\n }\n\n\n }\n\n }\n\n ///Check For Alert only if\n\n }\n //endregion\n\n if (!bandActionTaken) {\n\n try {\n scheduling();\n\n } catch (InterruptedException ex) {\n\n LogError(\"EX ON SCHEDULING\", ex.getCause());\n } catch (Exception ex) {\n\n LogError(\"EX ON SCHEDULING\", ex.getCause());\n }\n\n }\n\n ///Check For Device Sensors\n if (scheduledRun()) {\n\n if (sessionRunning) {\n\n checkMobileDeviceDataAcquired();\n }\n\n }\n\n //Check for Medication User Alert\n //checkForMedAlerts();\n //Check For Alerts\n if (scheduledRun()) {\n\n if (sessionRunning) {\n //Update Usage Statistics\n updateUsageStatistics();\n\n }\n }\n\n //Check For User Notifications\n checkForUserNotifications();\n\n\n } catch (Exception ex) {\n\n Log.e(TAG, ex.getMessage());\n } */\n //endregion\n }", "title": "" }, { "docid": "914559c95f6df09a30bcc3dbde768379", "score": "0.5238182", "text": "@Override\n public void run(){\n envoie();\n reception();\n }", "title": "" }, { "docid": "3d8804b56ef31435d0f5802044162396", "score": "0.52272606", "text": "public synchronized void onTimer() {\n // Actor approach here: Instead of having the Counter locking the queue, we will use the Queue's executor\n // instead of possibly making a lock on the queue.\n // This way the scheduled Threads will be free to keep doing their pings in case the server is busy with paging or\n // any other deliveries\n serverQueue.getExecutor().execute(onTimeExecutor);\n }", "title": "" }, { "docid": "ad051453510c99c65a9b7e9a31368116", "score": "0.5226944", "text": "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsleep(1000);\r\n\t\t\t\t\thandler.sendEmptyMessage(CODE_TIME);\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\r\n\t\t\t}", "title": "" }, { "docid": "b3e669da6a7c71058e8a7244d0ad0304", "score": "0.52118003", "text": "@Override\n\tpublic void run() \n\t{\n\t\twhile(!Thread.interrupted())\n\t\t{\n\t\t\tint choice = listener();\n\t\t\tif(choice == -1)\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(choice == 1)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Menu acknowledgement recieved.\");\n\t\t\t\tsendMenu();\n\t\t\t}\n\t\t\telse if(choice == 2)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Order acknowledgement recieved.\");\n\t\t\t\tgetOrder();\n\t\t\t}\n\t\t\telse if(choice == 3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"New message: \");\n\t\t\t\treceiveMessage();\n\t\t\t}\n\t\t\telse if(choice == 4)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"New client online.\");\n\t\t\t\tgetCustomer();\n\t\t\t\ttry {\n\t\t\t\t\tcustHandler.addCustomer(custDetails);\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(choice == 5)\n\t\t\t{\n\t\t\t\tgetCustomer();\n\t\t\t\tsendAuthStatus();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Server deactivated\");\n\t}", "title": "" }, { "docid": "161b1b504c01ec1c20998b1002861878", "score": "0.5207087", "text": "@Override\n public void run() {\n\n UIOutputCallbackControllerServiceImpl uiOutputCallbackControllerServiceImpl = UIEventAdaptorServiceInternalValueHolder.getUIOutputCallbackRegisterServiceImpl();\n CopyOnWriteArrayList<SessionHolder> sessions = uiOutputCallbackControllerServiceImpl.getSessions(tenantId, streamId);\n if (sessions != null) {\n doLogDroppedMessage = true;\n for (SessionHolder session : sessions) {\n synchronized (session) {\n try {\n session.sendText(message);\n// session.getBasicRemote().sendText(message);\n } catch (IOException e) {\n EventAdapterUtil.logAndDrop(eventAdapterConfiguration.getName(), message, \"Cannot send to endpoint\", e, log, tenantId);\n }\n }\n }\n } else if (doLogDroppedMessage) {\n EventAdapterUtil.logAndDrop(eventAdapterConfiguration.getName(), message, \"No clients registered\", log, tenantId);\n doLogDroppedMessage = false;\n }\n }", "title": "" }, { "docid": "048a14af08d554cf8879fca43e363685", "score": "0.52056825", "text": "public long doEvent(String email, int ev, Object[] event) {\n try {\n switch(ev) {\n case DOCHALLENGE:\n String doChallenge = ConfigUtils.getConf(email, \"是否踢巡回赛\");\n if(doChallenge.equals(\"1\")) {\n OperationUtils.doChallenge(email);\n }\n break;\n case DOARENA:\n String doArena = ConfigUtils.getConf(email, \"是否踢竞技场\");\n if(doArena.equals(\"1\")) {\n if(Integer.parseInt(new SimpleDateFormat(\"HHmm\").format(new Date())) > 105) {\n OperationUtils.doArena(email);\n }\n }\n break;\n case DOGETTACTICPOINT:\n long wait = OperationUtils.getTacticPoint(email);\n return wait;\n case DOOGTRAININGMATCH:\n {\n String ret = OperationUtils.doOgTrainingMatch(email);\n if(StringUtils.isNotEmpty(ret)) {\n return 5 * 60 * 1000;\n }\n break;\n }\n case DOTRAININGMATCH:\n if(ConfigUtils.getConf(email, \"是否踢训练赛\").equals(\"1\")) {\n String ret = OperationUtils.doTrainingMatch(email);\n if(StringUtils.isNotEmpty(ret)) {\n return 1 * 10 * 1000;\n } else {\n return 10 * 1000;\n }\n }\n break;\n case DOSEARCHPLAYER:\n if(ConfigUtils.getConf(email, \"是否搜索球员\").equals(\"1\")) {\n OperationUtils.afterFindPlayer(email);\n OperationUtils.findPlayer(email);\n }\n break;\n case DOTEAMGAME:\n// Calendar c = Calendar.getInstance();\n// int hour = c.get(Calendar.HOUR_OF_DAY);\n// if((ConfigUtils.getConf(email, \"是否踢球会大作战\").equals(\"1\")) && (hour < 20) && (hour > 9)) {\n OperationUtils.teamGame(email, 1);\n// }\n break;\n case DOTRAIN:\n if(ConfigUtils.getConf(email, \"是否训练\").equals(\"1\")) {\n OperationUtils.doTraining(email);\n }\n break;\n case DODEFAULT:\n OperationUtils.defaults(email, 7);\n break;\n case DOQUERYTASK:\n OperationUtils.queryTask(email);\n break;\n case DOWORLDCUP:\n OperationUtils.doWorldCup(email);\n break;\n case DOFUBEN:\n OperationUtils.doFuben(email);\n break;\n case DOSELLJIQING:\n OperationUtils.autoSellJiqing(email);\n break;\n case DORIJKAARDCHALLENGE:\n String ret = OperationUtils.playerChallenge(email, \"Bremer\");\n if(ret.equals(\"0\")) {\n return 1l;\n } else {\n return 0l;\n }\n case DOWORLDCUP32:\n int resttime = OperationUtils.doWorldcup32(email);\n return resttime;\n case DOGJXLS:\n return OperationUtils.gjxls(email);\n case DOPELE:\n String peleType = OperationUtils.doPele(email);\n if(\"-1\".equals(peleType)) { //未知状态,延迟1分钟\n return 1000 * 60;\n } else if(\"0\".equals(peleType)) { //全都打完了,延迟1小时\n return 1000 * 60 * 60;\n } else if(\"1\".equals(peleType)) { //比赛中\n return 1000 * 60;\n } else if(\"2\".equals(peleType)) { //正常状态,进入比赛\n return 1000 * 60 * 5;\n }\n }\n } catch(Exception ex) {\n LOGGER.error(email + \":\" + ex.getMessage());\n ex.printStackTrace();\n }\n return 0l;\n }", "title": "" }, { "docid": "5ba0625ab5e5adfa771cb0a4c0b5f88f", "score": "0.51941276", "text": "void sendEventsIfNeeded() {\n\t\tif (eventQueue_.size() >= EVENT_QUEUE_SIZE_THRESHOLD) {\n\t\t\t// connectionQueue_.recordEvents(eventQueue_.events());\n\t\t\tcommandFactory_.recordEvents(eventQueue_.events());\n\t\t}\n\t}", "title": "" }, { "docid": "2da1a9b3632b4580f49719b503df62c0", "score": "0.51902646", "text": "@Override\r\n\t\tpublic void run() {\n\t\t\tLog.i(\"EyeKeeperService\", \"Timer kicking off.. looking for location...\");\r\n\t\t\tsetCurrentLocation(locListener.getBestCurrentLocation());\r\n\t\t\tsendCurrentLocationToServer(getCurrentLocation());\r\n\t\t\tLog.i(\"EyeKeeperService\", \"Timer task sent current location to: \" + AppVars.getInstance().getServerPhone());\r\n\t\t}", "title": "" }, { "docid": "119fc2b14a5a804534c81ebe3a495db2", "score": "0.51843804", "text": "private interface DelayedSendEvent {\n void send();\n }", "title": "" }, { "docid": "87de6f3f5596522aaaff1250ed576e43", "score": "0.518335", "text": "public void setGiveUpstatus(){\n clientSocket.out.println(\"giveup\");\n worker.setJob(1);\n //recivefromOther();\n }", "title": "" }, { "docid": "a5b41d06282bc1e962f10944f4cf0c62", "score": "0.51724905", "text": "MessageEnd getSendEvent();", "title": "" }, { "docid": "2c9cd64f43314a074e7a0f859e26d10f", "score": "0.516569", "text": "@Override\r\n public void run() {\r\n MICRProperties props = (MICRProperties)getClaimingInstance(ClaimedMICR, 0);\r\n while (!ToBeFinished) {\r\n String data = recvData();\r\n if (props.DeviceEnabled) {\r\n if ((props.PowerState == JposConst.JPOS_PS_ONLINE) != (Offline == JposConst.JPOS_SUE_POWER_ONLINE)) {\r\n try {\r\n handleEvent(new JposStatusUpdateEvent(props.EventSource, Offline));\r\n } catch (JposException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n if (data != null && !data.equals(\"\")) {\r\n sendEvent(data, props.EventSource);\r\n }\r\n }\r\n if (data == null)\r\n PollWaiter.suspend(PollDelay);\r\n }\r\n }", "title": "" }, { "docid": "860ac7e7bc1ca4072336834a9dfe6262", "score": "0.51656604", "text": "Collection<TimedEvent<R>> start();", "title": "" }, { "docid": "1203ce6d3bc4c60706412fcfac74e8c2", "score": "0.5164248", "text": "@Override\n public void teleopPeriodic() {\n }", "title": "" }, { "docid": "adb3ea5100b0898914964420c7ad013b", "score": "0.5158918", "text": "private void processEvents(List<ButtonEvent> events) {\n for (ButtonEvent event : events) {\n int x = event.getX();\n int y = event.getY();\n switch (event.getEvent()) {\n case CLOSED:\n FxTimer.runLater(waitingTime, () -> buttons[x][y].setText(\"\"));\n break;\n case IS0:\n buttons[x][y].setText(\"0\");\n break;\n case IS1:\n buttons[x][y].setText(\"1\");\n break;\n case WIN:\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Great victory!\");\n alert.setHeaderText(\"Congratulations!\");\n alert.setContentText(\"Do you want to play one more game?\");\n\n Optional<ButtonType> result = alert.showAndWait();\n if (result.isPresent() && result.get() == ButtonType.OK){\n restart();\n }\n break;\n }\n }\n }", "title": "" }, { "docid": "a67ce73a9bb566a9ae0f1809a8e03859", "score": "0.5153754", "text": "private void flushPendingEvents() {\n for (DelayedSendEvent evt : pendingSendEvents) {\n evt.send();\n }\n }", "title": "" }, { "docid": "ff3980856de6700efa1053c16de02b5e", "score": "0.5152742", "text": "protected final void scheduleResponseInterval(){\n myResponseInterval.scheduleInterval(getStartTime());\n }", "title": "" }, { "docid": "2ff0b4e58c50d062d5b53ee159a13d6a", "score": "0.5147277", "text": "public void send(ShortMessage msg, long time){\n switch(msg.getStatus()){\n case ShortMessage.START: {\n start();\n break;\n }\n case ShortMessage.STOP: {\n stop();\n break;\n }\n case ShortMessage.CONTROL_CHANGE: {\n assert msg.getData1() > cc_controls.length;\n assert cc_controls[msg.getData1()] != null;\n cc_controls[msg.getData1()].send(msg, -1);\n break;\n }\n }\n }", "title": "" }, { "docid": "a57924804634a1e99244b4056f210b0a", "score": "0.51459885", "text": "private final void processTimedEvents() {\r\n\tif (world.getTimerService().size() > 0) {\r\n\t world.lists.addAll(world.getTimerService());\r\n\t world.getTimerService().clear();\r\n\t}\r\n\tIterator<TimerService> ite = world.lists.iterator();\r\n\twhile(ite.hasNext()) {\r\n\t TimerService handler = ite.next();\r\n\t if (System.currentTimeMillis() - handler.startTime > handler.delayTime) {\r\n\t\tif(handler instanceof RollingDelay && !handler.rolling && handler.rollingAmount == 0) {\r\n\t\t ite.remove();\r\n\t\t continue;\r\n\t\t}\r\n\t\tif(handler.rollingAmount == 0 && handler instanceof RollingDelay) {\r\n\t\t handler.startTime = System.currentTimeMillis();\r\n\t\t ite.remove();\r\n\t\t continue;\r\n\t\t}\r\n\t\tif(handler.rollingAmount == -1) {\r\n\t\t handler.startTime = System.currentTimeMillis();\r\n\t\t handler.execute();\r\n\t\t continue;\r\n\t\t}\r\n\t\thandler.execute();\r\n\r\n\t\thandler.rollingAmount--;\r\n\t\tif (!handler.rolling || handler.rollingAmount == 1) {\r\n\t\t ite.remove();\r\n\t\t} else {\r\n\t\t handler.startTime = System.currentTimeMillis();\r\n\t\t}\r\n\t }\r\n\t}\r\n }", "title": "" }, { "docid": "76d9f165995203e36552b12e260568d7", "score": "0.5141665", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\tcmsg.addMessage(\"SEND_FRAME\");\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\t\n\t\t\t\t\tlong time = System.currentTimeMillis();\n\t\t\t\t\t\n\t\t\t\t\t/*try {\n\t\t\t\t\t\tThread.sleep(2);\n\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}*/\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"DO FRAME\");\n\t\t\t\t\t\n\t\t\t\t\tif(cmsg.getMessage().equals(\"START_FRAME\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList<String> msgs = new ArrayList<String>();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString msg = \"\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((msg = cmsg.getMessage()) != null && !msg.equals(\"null\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(msg.equals(\"END_FRAME\")){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tboolean building = false;\n\t\t\t\t\t\t\t\t\tboolean unit = false;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfor(int m = 0; m < msgs.size(); m++){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(msgs.get(m).equals(\"buildinglist\")){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tbuilding = true;\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}else if(msgs.get(m).equals(\"unitlist\")){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tunit = true;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(unit && building){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\tprocessFrame(msgs,0);\n\t\t\t\t\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t//catch the intermediate exceptions here \n\t\t\t\t\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tcmsg.addMessage(\"SEND_FRAME\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmsgs.add(msg);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(5);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlong delay = 50 - (System.currentTimeMillis() - time);\n\t\t\t\t\t\n\t\t\t\t\tif(delay < 5){\n\t\t\t\t\t\t\n\t\t\t\t\t\tdelay = 5;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(delay);\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}\n\t\t\t}", "title": "" }, { "docid": "81b52d0298c6808f460c3b3405533f40", "score": "0.5133432", "text": "public void set() {\n event.countDown();\n }", "title": "" }, { "docid": "5a51faca9c7be26ff10bafd7f6f79d37", "score": "0.5128809", "text": "public void sendEvent() {\n TorrentEvent event = new TorrentEvent(torrent, \n torrent.name(), torrent.percentDownloaded(), \n torrent.numberOfConnections(), torrent.downloaded());\n for(TorrentListener t : listeners) {\n t.handleTorrentEvent(event);\n }\n }", "title": "" }, { "docid": "af24c4380228a8dac63a33e5e32d6984", "score": "0.51275474", "text": "protected void fireRetransmissionTimer(\n ) {\n \n try {\n // Resend the last request sent\n // System.out.println(\"fireRetransmissionTimer \" );\n \t if ( this.getState() == null || ! this.isMapped ) return;\n \t if ( this.getState().getValue() == CALLING_STATE ||\n \t\t this.getState().getValue() == TRYING_STATE ) {\n \t\t // If the retransmission filter is disabled then\n \t\t // retransmission of the INVITE is the application\n \t\t // responsibility.\n \t if ((!(((SIPTransactionStack)getSIPStack()).\n \t\t retransmissionFilter)) && this.isInviteTransaction() ) {\n raiseErrorEvent\n \t\t\t(SIPTransactionErrorEvent.TIMEOUT_RETRANSMIT);\n \t\t } else {\n\t\t // Could have allocated the transaction but not yet\n\t\t // sent out a request (Bug report by Dave Stuart).\n\t\t if (lastRequest != null) \n \tgetMessageChannel( ).sendMessage( lastRequest );\n \t\t }\n \t }\n } catch( IOException e ) {\n raiseErrorEvent(SIPTransactionErrorEvent.TRANSPORT_ERROR );\n }\n \n }", "title": "" }, { "docid": "32b409577bddff11c491f1fff943eace", "score": "0.5113702", "text": "private void processAllCallDetails() throws Exception\n {\n final ScheduledExecutorService exec = Executors.newScheduledThreadPool(1);\n\n\n if(callEventDetailsReady && !callussdDetailsReady)\n {\n callEventTimeOut = exec.schedule(new Runnable(){\n @Override\n public void run(){\n //Reset all the race condition variables, If USSD message didn't arrive then insert an incomplete entry\n //V20Log.d(\"SIMPLY_BUG\",\"Starting Call Event Time Out after 10 Secs\");\n finalizeCall();\n }\n }, 10, TimeUnit.SECONDS);\n\n }\n else if(!callEventDetailsReady && callussdDetailsReady)\n {\n lateUSSDFuture = exec.schedule(new Runnable(){\n @Override\n public void run(){\n //USSD Came after 2 Seconds\n try\n {\n //V20Log.d(\"SIMPLY_BUG\",\"Starting USSD Process in 2 Secs\");\n processLateUSSD();\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n },2 , TimeUnit.SECONDS);\n }\n else if(callussdDetailsReady && callEventDetailsReady)\n {\n if(lateUSSDFuture!=null)\n {\n //V20Log.d(\"SIMPLY_BUG\",\"Cancelling lateUSSDFuture\");\n lateUSSDFuture.cancel(true);\n lateUSSDFuture = null;\n }\n //V20Log.d(TAG,\"Event details = \"+ tempCallEventDetails.toString());\n\n //V20Log.d(TAG,\"Call Details = \"+tempCallUSSDDetails.toString());\n //If its a normal call and the duration difference\n if (!ConstantsAndStatics.TEST && (tempCallUSSDDetails instanceof NormalCall) && ((NormalCall) tempCallUSSDDetails).call_duration != -1 &&\n (((NormalCall) tempCallUSSDDetails).call_duration - tempCallEventDetails.duration) > 3)\n {\n NormalCall unMatchedUSSDDetails = new NormalCall((NormalCall) tempCallUSSDDetails);\n callussdDetailsReady = false;\n tempCallUSSDDetails = null;\n //V20Log.d(\"SIMPLY_BUG\",\"Duration Mis-Match Safe guard\");\n try\n {\n ParseObject parseObject = new ParseObject(\"MISMATCHED_TIMING\");\n parseObject.put(\"EVENT_DUR\",tempCallEventDetails.duration);\n parseObject.put(\"USSD_DUR\",unMatchedUSSDDetails.call_duration);\n parseObject.put(\"DETAILS\",unMatchedUSSDDetails.toString());\n parseObject.saveEventually();\n }\n catch (Exception e)\n {}\n return;\n } else\n {\n Intent popup_intent = new Intent(getApplicationContext(), UssdPopup.class);\n\n ContactDetailModel userDetails = new ContactDetailHelper().getPopUpDetails(tempCallEventDetails.lastNumber);\n if (tempCallUSSDDetails instanceof NormalCall)\n {\n ((NormalCall) tempCallUSSDDetails).setEventDetails(tempCallEventDetails);\n NormalCallPopup mNormalCallDetails = new NormalCallPopup((NormalCall) tempCallUSSDDetails);\n mNormalCallDetails.addUserDetails(userDetails);\n\n popup_intent.putExtra(\"TYPE\", tempCallUSSDDetails.getType());\n popup_intent.putExtra(\"DATA\", mNormalCallDetails);\n //V20Log.d(TAG,\"Call detail = \"+mNormalCallDetails.toString());\n\n //V20Log.d(TAG,\"Displaying pop_up\");\n //V20Log.d(\"SIMPLY_BUG\",\"Synced Id = \"+tempCallEventDetails.id);\n dissmissUSDD();\n showPopup(popup_intent);\n getSharedPreferences(ConstantsAndStatics.USER_PREF_KEY,MODE_PRIVATE).edit().putLong(\"SYNCED_ID\",tempCallEventDetails.id).apply();\n logValidOnParse(tempCallUSSDDetails);\n if(callEventTimeOut!=null)\n {\n //V20Log.d(\"SIMPLY_BUG\",\"Call Event Time Out is Still Running so Cancelling it\");\n callEventTimeOut.cancel(true);\n callEventTimeOut = null;\n }\n\n } else if (tempCallUSSDDetails instanceof PackCall)\n {\n ((PackCall) tempCallUSSDDetails).setEventDetails(tempCallEventDetails);\n PackCallPopup mPackCallPopupDetails = new PackCallPopup((PackCall) tempCallUSSDDetails);\n mPackCallPopupDetails.addUserDetails(userDetails);\n\n popup_intent.putExtra(\"TYPE\", tempCallUSSDDetails.getType());\n popup_intent.putExtra(\"DATA\", mPackCallPopupDetails);\n //V20Log.d(TAG,\"Call detail = \"+mPackCallPopupDetails.toString());\n dissmissUSDD();\n showPopup(popup_intent);\n getSharedPreferences(ConstantsAndStatics.USER_PREF_KEY,MODE_PRIVATE).edit().putLong(\"SYNCED_ID\",tempCallEventDetails.id).apply();\n logValidOnParse(tempCallUSSDDetails);\n if(callEventTimeOut!=null)\n {\n callEventTimeOut.cancel(true);\n callEventTimeOut = null;\n }\n }\n\n\n //V20Log.d(TAG,\"Adding to Db\");\n addToDatabase(tempCallUSSDDetails);\n //V20Log.d(\"SIMPLY_BUG\",\"Finalizing Manually\");\n finalizeCall();\n }\n }\n //wait till both are filled otherwise reset them after 10 secs This is called in ProcessCallEvent\n }", "title": "" }, { "docid": "803f8da53669c3358dde36acd056ed49", "score": "0.51076174", "text": "@Override\n public void sendEventBroadcast() {\n Intent intent = new Intent();\n intent.putExtra(\"serviceId\", this.serviceId);\n intent.putExtra(\"isRunning\", this.isRunning);\n intent.setAction(\"org.rootio.services.sms.EVENT\");\n this.sendBroadcast(intent);\n }", "title": "" }, { "docid": "a59985b52f8d0db85ea8223244f263e6", "score": "0.51064765", "text": "@Override\n public void run() {\n try {\n MetaData metadata = new MetaData(gDatos);\n if (gDatos.getServerStatus().isIsValMetadataConnect()) {\n metadata.closeConnection();\n }\n } catch (Exception e) {\n logger.error(\"No se ha podido validar conexion a MetaData..\"+e.getMessage());\n }\n \n \n /*\n Recupera los servicios registrados en lista \"serviceStatus\"\n */\n \n JSONObject jData;\n int numServices = gDatos.getLstServiceStatus().size();\n logger.info(\"Inicia thKeepAlive...\");\n \n if (numServices>0) {\n /*\n Para cada servicio registrado se procedera a monitoreo via socket\n ejecutando el getStatus\n */\n int numServiceOnline = 0;\n int numServiceOffline = 0;\n for (int i=0; i<numServices; i++) {\n jData = new JSONObject(gDatos.getLstServiceStatus().get(i));\n String srvHost = jData.getString(\"srvHost\");\n int srvPort = jData.getInt(\"srvPort\");\n \n Socket skCliente;\n try {\n skCliente = new Socket(srvHost, srvPort);\n \n OutputStream aux = skCliente.getOutputStream(); \n DataOutputStream flujo= new DataOutputStream( aux ); \n String dataSend = gSub.sendPing();\n\n logger.info(\"Generando (tx-ping) hacia Server Monitoreado: \"+jData.getString(\"srvID\"));\n\n flujo.writeUTF( dataSend ); \n\n\n InputStream inpStr = skCliente.getInputStream();\n DataInputStream dataInput = new DataInputStream(inpStr);\n String response = dataInput.readUTF();\n\n logger.info(\"Recibiendo (rx)...: \"+response);\n JSONObject jHeader = new JSONObject(response);\n \n if (jHeader.getString(\"result\").equals(\"OK\")) {\n gDatos.getServerStatus().setIsSocketServerActive(true);\n numServiceOnline++;\n } else {\n if (jHeader.getString(\"result\").equals(\"error\")) {\n gDatos.getServerStatus().setIsSocketServerActive(false);\n numServiceOffline++;\n }\n }\n \n logger.debug(\"srvOnline: \"+numServiceOnline);\n logger.debug(\"srvOffline: \"+numServiceOffline);\n \n flujo.close();\n aux.close();\n skCliente.close();\n \n } catch (IOException e) {\n numServiceOffline++;\n gDatos.getServerStatus().setIsSocketServerActive(false);\n logger.error(\"Error conectando a socket servicio cliente...\"+ e.getMessage());\n };\n \n logger.debug(\"Servicio: \"+jData.getString(\"srvID\")+ \" \"+srvHost+\" \"+srvPort);\n \n }\n } else {\n logger.warn(\"Aun no hay servicios registrados para monitorear...\");\n }\n \n logger.info(\"Finaliza thKeepAlive...\");\n }", "title": "" }, { "docid": "3bf3c6858e35cb72ee05a060275cb438", "score": "0.5097455", "text": "public void run(String... args) throws Exception {\n\t\tif (LOG_ON && GEN.isEnabledFor(Level.INFO)) \n\t\t\tGEN.log(Level.INFO,\"INIT: Ready to receive event\");\n\t\tsetServicedManaged(ServiceManagerApplication.getNamesServicesToSent());\n\t\tsetPrefix(ServiceManagerApplication.getPrefix());\n\t\twhile (true) {\n\t\t\tTimeUnit.MILLISECONDS.sleep(250);\n\t\t\t/* For sending response */\n\t\t\tif (context.getBean(HttpResponse.class).isNew()) {\n\t\t\t\tString response = ((context.getBean(HttpResponse.class).getResponse()));\n\t\t\t\tint count = ((context.getBean(HttpResponse.class).getCount()));\n\t\t\t\tif (getServicedManaged().contains(response)) {\n\t\t\t\t\trabbitTemplate.convertAndSend(\"spring-boot-exchanger\", response,\n\t\t\t\t\t\t\tcompactAnswer(count, response, getServicedManaged().indexOf(response)));\n\t\t\t\t\tif (LOG_ON && COMM.isEnabledFor(Level.WARN)) \n\t\t\t\t\t\tCOMM.log(Level.INFO,\"SEND: Send message to \" + response);\n\t\t\t\t\t//System.out.println(\"Send message to: \" + response);\n\t\t\t\t} else {\n\t\t\t\t\tif (LOG_ON && COMM.isEnabledFor(Level.WARN)) \n\t\t\t\t\t\tCOMM.log(Level.INFO,\"ERROR:\" +response +\" >>> Unknown service...\");\n\t\t\t\t\t//System.out.println(\"Received: \" + response + \">>> Unknown service...\");\n\t\t\t\t}\n\t\t\t\tcontext.getBean(HttpResponse.class).setNew(false);\n\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "b2bd6750fd34ca21d9af319f1689ded8", "score": "0.50851184", "text": "protected void _onPending() {\n\t}", "title": "" }, { "docid": "418a33de5b962f9a27db796cb8ad84e3", "score": "0.5072247", "text": "public void run() {\n\n status = false;\n wifistatus();\n\n\n }", "title": "" }, { "docid": "a36a622ac32e7b7c82bac726bfd7bb60", "score": "0.5069501", "text": "private void createConnectivityTimers() {\n\n if (contactTimer == null) {\n // Create (but don't schedule) a timer to send a contact request.\n contactTimer = new Timer() {\n @Override\n public void run() {\n sendContactRequest();\n }\n };\n }\n if (unresponsiveConnectionTimer == null) {\n unresponsiveConnectionTimer = new Timer() {\n @Override\n public void run() {\n handleUnresponsiveConnection();\n }\n };\n }\n }", "title": "" }, { "docid": "9b31eb793adc2d8cd42f76bd3587b676", "score": "0.506352", "text": "public void scheduleEvents() {\n\t\tCalendar start = Calendar.getInstance();\n\t\tCalendar end = Calendar.getInstance();\n\t\tint index = 0;\n\t\tcal = Calendar.getInstance();\n\t\tif (SCHEDULES == null)\n\t\t\treturn;\n\t\tfor (Schedule s : SCHEDULES) {\n\t\t\tstart.set(Calendar.HOUR_OF_DAY, s.startHour);\n\t\t\tstart.set(Calendar.MINUTE, s.startMinute);\n\t\t\tstart.set(Calendar.SECOND, 0);\n\t\t\tend.set(Calendar.HOUR_OF_DAY, s.endHour);\n\t\t\tend.set(Calendar.MINUTE, s.endMinute);\n\t\t\tend.set(Calendar.SECOND, 0);\n\t\t\tcal.setTimeInMillis(System.currentTimeMillis());\n\t\t\tLog.d(\"Time\", \"Current Time: \" + cal.getTimeInMillis());\n\t\t\tLog.d(\"Time\", \"Start Time: \" + start.getTimeInMillis());\n\t\t\tLog.d(\"Time\", \"End Time: \" + end.getTimeInMillis());\n\t\t\tif (cal.before(start)) {\n\t\t\t\t// if(true){\n\t\t\t\t// Now is before start time, the silence phone at start time and\n\t\t\t\t// unsilence phone after end\n\t\t\t\tLog.d(\"Time\", \"Setting silence event\");\n\t\t\t\tIntent silenceIntent = new Intent( //<-------intent issue\n\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\tsg.edu.nus.cs4274.autosilencer.receiver.SilenceReceiver.class);\n\t\t\t\tsilenceIntent.putExtra(\"region\", s.region);\n\t\t\t\t// silenceIntent.addCategory(Intent.CATEGORY_DEFAULT);\n\t\t\t\tPendingIntent pendingSilenceIntent = PendingIntent\n\t\t\t\t\t\t.getBroadcast(getApplicationContext(), index++,\n\t\t\t\t\t\t\t\tsilenceIntent, PendingIntent.FLAG_ONE_SHOT);\n\t\t\t\tLog.d(\"Index\", \"Index: \" + index);\n\t\t\t\talarm.set(AlarmManager.RTC_WAKEUP, start.getTimeInMillis(),\n\t\t\t\t\t\tpendingSilenceIntent);\n\t\t\t\tLog.d(\"Time\", \"Setting unSilence event\");\n\t\t\t\tIntent unsilenceIntent = new Intent(getApplicationContext(),\n\t\t\t\t\t\tUnSilenceReceiver.class);\n\t\t\t\tunsilenceIntent.setAction(UnSilenceReceiver.ACTION_RESP);\n\t\t\t\tPendingIntent pendingUnSilenceIntent = PendingIntent\n\t\t\t\t\t\t.getBroadcast(getApplicationContext(), index++,\n\t\t\t\t\t\t\t\tunsilenceIntent, PendingIntent.FLAG_ONE_SHOT);\n\t\t\t\talarm.set(AlarmManager.RTC_WAKEUP, end.getTimeInMillis(),\n\t\t\t\t\t\tpendingUnSilenceIntent);\n\t\t\t} else if (cal.before(end)) {\n\t\t\t\t// Silence phone when now is in the middle of event, unsilence\n\t\t\t\t// after event ends.\n\t\t\t\tsilencePhone();\n\t\t\t\tIntent unsilenceIntent = new Intent(getApplicationContext(),\n\t\t\t\t\t\tUnSilenceReceiver.class);\n\t\t\t\tunsilenceIntent.setAction(UnSilenceReceiver.ACTION_RESP);\n\t\t\t\tunsilenceIntent.addCategory(Intent.CATEGORY_DEFAULT);\n\t\t\t\tPendingIntent pendingUnSilenceIntent = PendingIntent\n\t\t\t\t\t\t.getBroadcast(getApplicationContext(), index++,\n\t\t\t\t\t\t\t\tunsilenceIntent, PendingIntent.FLAG_ONE_SHOT);\n\t\t\t\talarm.set(AlarmManager.RTC_WAKEUP, end.getTimeInMillis(),\n\t\t\t\t\t\tpendingUnSilenceIntent);\n\t\t\t} else {\n\t\t\t\t// Nothing to do. If the event is ended already.\n\t\t\t}\n\t\t\t// display stuff\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm dd/MM/yyyy\");\n\t\t\tsdf.setTimeZone(TimeZone.getTimeZone(\"GMT+8\"));\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "3b376c872a6cd5363a8236b9b9e55203", "score": "0.5062677", "text": "public void run() {\n Long id;\n Integer message_type;\n String target;\n String soap;\n SOAPMonitorData data;\n int selected;\n int row;\n boolean update_needed;\n while (socket != null) {\n try {\n // Get the data from the server\n message_type = (Integer) in.readObject();\n // Process the data depending on its type\n switch (message_type.intValue()) {\n case SOAPMonitorConstants.SOAP_MONITOR_REQUEST:\n // Get the id, target and soap info\n id = (Long) in.readObject();\n target = (String) in.readObject();\n soap = (String) in.readObject();\n // Add new request data to the table\n data = new SOAPMonitorData(id,target,soap);\n model.addData(data);\n // If \"most recent\" selected then update\n // the details area if needed\n selected = table.getSelectedRow();\n if ((selected == 0) && model.filterMatch(data)) {\n valueChanged(null);\n }\n break;\n case SOAPMonitorConstants.SOAP_MONITOR_RESPONSE:\n // Get the id and soap info\n id = (Long) in.readObject();\n soap = (String) in.readObject();\n data = model.findData(id);\n if (data != null) {\n update_needed = false;\n // Get the selected row\n selected = table.getSelectedRow();\n // If \"most recent\", then always\n // update details area\n if (selected == 0) {\n update_needed = true;\n }\n // If the data being updated is\n // selected then update details\n row = model.findRow(data);\n if ((row != -1) && (row == selected)) {\n update_needed = true;\n }\n // Set the response and update table\n data.setSOAPResponse(soap);\n model.updateData(data);\n // Refresh details area (if needed)\n if (update_needed) {\n valueChanged(null);\n }\n }\n break;\n }\n\n } catch (Exception e) {\n // Exceptions are expected here when the\n // server communication has been terminated.\n if (stop_button.isEnabled()) {\n stop();\n setErrorStatus(STATUS_CLOSED);\n }\n }\n }\n }", "title": "" }, { "docid": "3dfa93241b403c751d7055d0fea26bd0", "score": "0.50613683", "text": "private static void setUpTimers()\r\n\t{\r\n\t\ttFire = new Timer();\r\n\t\ttFire.setCallback(new TimerEvent(null) \r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void invoke(byte param, long time) {\r\n\t\t\t\tFireflySyncM.fire(param, time);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttFire.setAlarmTime(Time.toTickSpan(Time.MILLISECS, nextFire));\n\t\t/**\r\n\t\t * Create a simple timer so that the LED can blink, not just be left\r\n\t\t * on.\r\n\t\t */\r\n\t\ttBlink = new Timer();\r\n\t\ttBlink.setCallback(new TimerEvent(null) \r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void invoke(byte param, long time) \r\n\t\t\t{\r\n\t\t\t\tFireflySyncM.toggleLED(param, time);\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Set a parameter for which LED to turn on \r\n\t\ttBlink.setParam((byte) 0);\n\t}", "title": "" }, { "docid": "f958c9adc485a399fc91016a19afa008", "score": "0.50580525", "text": "public void sent( CommDriverEvent event )\n {\n }", "title": "" }, { "docid": "a1b998706ee01d7eccb6df34c3d2416e", "score": "0.5057745", "text": "private void sendEvent(int m, int targetId){\n try {\n\n //allPOs[targetId].mQueue.put(logicClock);\n // instead we make a remote call\n allPeers.get(targetId).updateTime(logicClock);\n\n\n }catch (RemoteException e){\n NodeMessage(\"error when send logic lock to PO.\" + targetId);\n }\n increaseClock();\n NodeMessage(\"send LogicNo = \" + m +\" to PO.\" + targetId);\n }", "title": "" }, { "docid": "c7c49bb680e39283336ed3087a7274b4", "score": "0.5057262", "text": "public void setBody() {\n postBody = \"\";\n String wsMethod =\"GetEventsInDateRangeForVehicles\";\n ResponseToOutputFormat.setRecordID(\"RecordedEvent\");\n\n //Mandatory short in method GetVehicleEventsXMostRecent\n if ((x != null) && !x.equals(\"\")) {\n postBody = postBody\n + \"<X>\" + x + \"</X>\";\n wsMethod = \"GetVehicleEventsXMostRecent\";\n }\n //Mandatory Integer in method GetEventsSinceID\n if (!(id == null || continuous)) {\n postBody = postBody\n + \"<ID>\" + id + \"</ID>\";\n wsMethod = \"GetEventsSinceID\";\n }\n // continuous uses GetEventsSinceID method\n ta.setContinuous(continuous);\n ta.setMaxID(maxId);\n\n if (continuous) {\n if (id != null) {\n ta.initLastEventID(id);\n id = null;\n }\n postBody = postBody\n + \"<ID>\" + ta.getLastEventID() + \"</ID>\";\n wsMethod = \"GetEventsSinceID\";\n }\n\n //Mandatory short in method GetVehicleEventsXMostRecent, GetVehicleEventsInDateRange\n if (vehicle != null) {\n postBody = postBody + \"<VehicleID>\" + vehicle + \"</VehicleID>\";\n if (x == null) wsMethod = \"GetVehicleEventsInDateRange\";\n }\n //Optional ArrayOfShort in method GetEventsInDateRangeForVehicles\n //Optional ArrayOfShort in method GetVehicleEventsXMostRecent\n if (events != null) {\n postBody = postBody + \"<EventDescriptionIDs>\";\n events.forEach(event -> postBody = postBody + \"<short>\" + event + \"</short>\");\n postBody = postBody + \"</EventDescriptionIDs>\";\n }\n //Mandatory dateTime in GetEventsInDateRangeForVehicles\n if (((dateFrom != null) && !dateFrom.equals(\"\")) || ((dateTo != null) && !dateTo.equals(\"\"))) {\n postBody = postBody\n + \"<StartDateTime>\" + dateFrom + \"</StartDateTime>\"\n + \"<EndDateTime>\" + dateTo + \"</EndDateTime>\";\n }\n //Optional ArrayOfVehicles in GetEventsInDateRangeForVehicles\n if (vehicles != null) {\n postBody = postBody + \"<VehicleIDs>\";\n vehicles.forEach(veh -> postBody = postBody + \"<short>\" + veh + \"</short>\");\n postBody = postBody + \"</VehicleIDs>\";\n }\n //Optional ArrayOfVehicles in GetEventsInDateRangeForVehicles\n if (drivers != null) {\n postBody = postBody + \"<DriverIDs>\";\n drivers.forEach(driver -> postBody = postBody + \"<short>\" + driver + \"</short>\");\n postBody = postBody + \"</DriverIDs>\";\n wsMethod = \"GetEventsInDateRangeForDrivers\";\n }\n try {\n ResponseToOutputFormat.setMethod(wsMethod);\n String replaceBody = body.replaceAll(\"%method%\", wsMethod).replaceAll(\"%body%\", postBody);\n postRequest.setEntity(new StringEntity(replaceBody));\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5eb7b011b94ed8dfafd3ec1185930be8", "score": "0.5054802", "text": "private void run() throws EventLoopSetupException {\n this.setup(this.dBusContextPointer);\n //if everything went fine, we can update the state and unlock the barrier. there is a slight data race here as a call arriving\n //just after the state update will be processed before the calls blocked by the barrier at that time\n this.isClosed.set(false);\n this.startBarrier.countDown();\n\n LOG.debug(\"Event loop {} successfully started\",this.connection.getBusName());\n\n //tick while the event loop is valid\n int timeout = -1;\n while(!this.isClosed.get()){\n //from now messages added to the queue by other threads may or may not be added before the tick() call, so we\n //update the flag to make the caller call wakeup\n this.shouldWakeup.set(true);\n\n //process all the event in queue if possible\n int i = 0;\n EventLoopRequest request;\n while((request = this.eventQueue.poll()) != null){\n this.processRequest(request);\n\n /**\n * If we processed too much event, DBus may be waiting to dispatch events, so we abort request processing\n * and make a call to tick() with a timeout to 0 so epoll_wait return immediately so we can resume request\n * processing if there is no event for Dbus to dispatch\n */\n if(++i >= MAX_SEND_PER_TICK){\n timeout = 0;\n break;\n }else timeout = -1;\n }\n\n //launch tick\n this.tick(this.dBusContextPointer,timeout);\n }\n\n this.connection.close();\n }", "title": "" }, { "docid": "1c3eac7ec1e6312bc3b4105d8e0464b8", "score": "0.5054145", "text": "@Override\n protected void setupDataListeners() {\n stopAllListeners();\n setupTenantListener();\n setupRequestRepairListener();\n }", "title": "" }, { "docid": "d4f96263a02e6582b16a9af1707f4a92", "score": "0.5048353", "text": "public void run() {\n WebClient serviceAccess = new WebClient();\n verifyTimingsResponse = serviceAccess.SendHttpPost(Config.URL_GETAVAILABLEISTIMEINRANGE, jsonObj);\n Log.i(\"verifyTimingsResponse\", verifyTimingsResponse);\n final Handler handler = new Handler(Looper.getMainLooper());\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n handler.post(new Runnable() { // This thread runs in the UI\n @Override\n public void run() {\n if (verifyTimingsResponse.compareTo(\"\") == 0) {\n\n } else {\n\n try {\n JSONObject jObject = new JSONObject(verifyTimingsResponse);\n status = jObject.getBoolean(\"status\");\n\n if (status) {\n new initClassDetailsUpdate().execute();\n } else {\n Toast.makeText(getActivity(), \"Please select current timings \", Toast.LENGTH_SHORT).show();\n\n }\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }\n });\n }\n };\n\n new Thread(runnable).start();\n }", "title": "" }, { "docid": "e8cf9c6cc66cd728081c3dd1a78824e5", "score": "0.5047391", "text": "@Override\n public void start() throws Exception {\n\n apiVersion[0] = 2;\n apiVersion[1] = 0;\n apiVersion[2] = 1;\n\n logger = LoggerFactory.getLogger(getClass());\n\n logger.info(\"Verticle started: \" + BrickletBarometer.class);\n uidString = config().getString(\"uid\");\n uidBytes = Utils.uid2long(uidString);\n\n vertx.eventBus().consumer(uidString, message -> {\n Buffer msgBuffer = (Buffer) message.body();\n Packet packet = new Packet(msgBuffer);\n logger.trace(\"got request: {}\", packet.toString());\n Set<Object> handlerids = vertx.sharedData().getLocalMap(Brickd.HANDLERIDMAP).keySet();\n for (Object handlerid : handlerids) {\n Buffer buffer = callFunction(packet);\n // TODO add logging\n if (packet.getResponseExpected()) {\n if (buffer != null) {\n logger.trace(\n \"sending answer: {}\", new Packet(buffer).toString());\n vertx.eventBus().publish((String) handlerid, buffer);\n } else {\n logger.trace(\"buffer is null\");\n }\n }\n }\n });\n\n // broadcast queue for enumeration requests\n vertx.eventBus().consumer(\n CommonServices.BROADCAST_UID,\n message -> {\n Set<Object> handlerids = vertx.sharedData().getLocalMap(Brickd.HANDLERIDMAP).keySet();\n if (handlerids != null) {\n logger.debug(\"sending enumerate answer\");\n for (Object handlerid : handlerids) {\n vertx.eventBus().publish((String) handlerid,\n Utils.getEnumerateResponse(uidString, uidBytes, DEVICE_IDENTIFIER));\n }\n } else {\n logger.error(\"no handlerids found\");\n }\n });\n\n }", "title": "" }, { "docid": "b4653ae4b668f200482b97087e130b83", "score": "0.5029811", "text": "public void onTick() {\n\t\tfinal MessageTemplate msgTemplate = MessageTemplate.MatchPerformative(ACLMessage.REQUEST);\t\t\t\n\n\t\tfinal ACLMessage msg_rec = this.myAgent.receive(msgTemplate);\n\t\tif (msg_rec != null) {\t\t\n\t\t\tun_move.set_mail_check();\n\t\t\ttry {\n\t\t\t\tDataRequest data = (DataRequest) msg_rec.getContentObject();\n\t\t\tswitch(data.getRequete()){\n\t\t\tcase Graph:\n\t\t\t\tdeal_with_grah(msg_rec,data);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\tcatch (UnreadableException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}else{\n\t\t\tblock();// the behaviour goes to sleep until the arrival of a new message in the agent's Inbox.\n\t\t}\n\t}", "title": "" }, { "docid": "7c3641ce4577d7aca039bcffb73f063b", "score": "0.5029007", "text": "@Override\r\n\tpublic void onInit(int status) {\r\n/*\t\tLog.w(\"HFS\", \"action: \" + action);*/\r\n\t\tif (status == TextToSpeech.SUCCESS) {\r\n\t\t\tmTTS.setLanguage(Locale.US);\r\n\t\t}\r\n\t\t//just in case\r\n\t\tif (mTTS == null) {\r\n\t\t\tgetFeedback(action);\r\n\t\t}\r\n\t\tmReplies.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, STRING);\r\n\t\tswitch(action) {\r\n\t\t\tcase START_BUTTON_CLICK:{\r\n\t\t\t\tmTTS.speak(\"workout is in progress\", TextToSpeech.QUEUE_FLUSH, mReplies);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase STOP_BUTTON_CLICK:{\r\n\t\t\t\t//be careful with pause and stop true\r\n\t\t\t\tmStop = true;\r\n\t\t\t\tif (mWorkoutRunning) {\r\n\t\t\t\t\tmTimeManager.addSectionOfTime(mTimeOfAction);\r\n\t\t\t\t}\r\n\t\t\t\tmUpdateTime = ServiceTimeManager.getTotalTimeAndFormat();\r\n\t\t\t\t//need to put this in before timeManager gets reset\r\n\t\t\t\tLog.w(\"HFS\", \"setting the time passed\");\r\n\t\t\t\tmSendCurrentState.putExtra(Workout.ServiceReceiver.SET_TIME_PASSED, (0 - ServiceTimeManager.getTotalTime())*1000);\r\n\t\t\t\t//reset\r\n\t\t\t\tmTimeManager.resetTotalTime();\r\n\t\t\t\tmTimeManager = null;\r\n\t\t\t\tsetStateVariables(false, true, true);\r\n\t\t\t\tmTTS.speak(\"stopping workout. Workout duration: \"+ mUpdateTime, TextToSpeech.QUEUE_FLUSH, mReplies);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase PAUSE_BUTTON_CLICK:{\r\n\t\t\t\tif (mWorkoutRunning) {\r\n\t\t\t\t\tmTimeManager.addSectionOfTime(mTimeOfAction);\r\n\t\t\t\t}\r\n\t\t\t\tsetStateVariables(false, true, false);\r\n\t\t\t\tmTTS.speak(\"pausing workout\", TextToSpeech.QUEUE_FLUSH, mReplies);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase UPDATE_TIME:{\r\n\t\t\t\t//want latest time as possible\r\n\t\t\t\tmTimeOfAction = SystemClock.elapsedRealtime();\r\n\t\t\t\tif (mWorkoutRunning) {\r\n\t\t\t\t\tmUpdateTime = ServiceTimeManager.getUpdateTimeFromRaw(mTimeManager.getUpdateTime(mTimeOfAction, GET_UPDATE));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tmUpdateTime = ServiceTimeManager.getTotalTimeAndFormat();\r\n\t\t\t\t}\r\n\t\t\t\tmTTS.speak(mUpdateTime + \"have elapsed\", TextToSpeech.QUEUE_FLUSH, mReplies);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase INITIAL_CREATE:{\r\n\t\t\t\t//special case\r\n\t\t\t\tmStop = false;\r\n\t\t\t\t//initializes the states\r\n\t\t\t\tsetStateVariables(true, false, false);\r\n\t\t\t\tmTTS.speak(\"begin workout\", TextToSpeech.QUEUE_FLUSH, mReplies);\r\n\t\t\t\tbreak;\t\r\n\t\t\t}\r\n\t\t\tcase START_BUTTON_RESUME_CLICK:{\r\n\t\t\t\tif (mWorkoutPaused) {\r\n\t\t\t\t\tmTimeManager.setBaseTime(SystemClock.elapsedRealtime());\r\n\t\t\t\t}\r\n\t\t\t\tsetStateVariables(true, false, false);\r\n\t\t\t\tmTTS.speak(\"continuing workout\", TextToSpeech.QUEUE_FLUSH, mReplies);\r\n\t\t\t\tbreak;\t\r\n\t\t\t}\r\n\t\t\tcase COMMAND_NOT_RECOGNIZED_RESULT:{\r\n\t\t\t\tmTTS.speak(\"command not recognized\", TextToSpeech.QUEUE_FLUSH, mReplies);\r\n\t\t\t\tbreak;\t\r\n\t\t\t}\r\n\t\t\tcase ALREADY_PAUSED:{\r\n\t\t\t\tmTTS.speak(\"workout is already paused\", TextToSpeech.QUEUE_FLUSH, mReplies);\r\n\t\t\t\tbreak;\t\r\n\t\t\t}\r\n\t\t\tcase NOTHING_SAID:{\r\n\t\t\t\tmTTS.speak(\"silence\", TextToSpeech.QUEUE_FLUSH, mReplies);\r\n\t\t\t\tbreak;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t//reset\r\n\t\tmTimeOfAction = 0;\r\n\t}", "title": "" }, { "docid": "0f4f5ef14d4d9dd24895720d3966610c", "score": "0.50271404", "text": "private void addEventsListener() {\n\t\tbtnReturn.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tChefActivity.this.finish();\n\t\t\t}\n\t\t});\n\t\tmClient = ((MyApplication) getApplication()).mClient;\n\t\tmClient.setOnMessageListener(new onMessageReceived() {\n\n\t\t\t@Override\n\t\t\tpublic void MessageReceived(String msg) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tProcessMessage(msg);\n\t\t\t}\n\n\t\t\tprivate void ProcessMessage(String msg) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\n\t\t\t\t\tGson gson = new Gson();\n\t\t\t\t\tfinal ClientMessage message = gson.fromJson(msg,\n\t\t\t\t\t\t\tClientMessage.class);\n\t\t\t\t\tLog.i(\"Chef Activity\", \"Nhận dữ liệu từ server\");\n\t\t\t\t\tswitch (message.getMsgID()) {\n\t\t\t\t\tcase GLOBAL.FROM_SERVER.LOAD_ORDER_DETAILS:\n\t\t\t\t\t\tLog.e(\"IN HERE\", \"HERE HERE \");\n\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tApplicationMain.listOrderDetailsForChef = message\n\t\t\t\t\t\t\t\t\t\t.getArrOrderDetails();\n\t\t\t\t\t\t\t\tLog.e(\"Reload order Details\",\n\t\t\t\t\t\t\t\t\t\tApplicationMain.listOrderDetailsForChef\n\t\t\t\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t\t\tinitOrderDetailsData();\n\t\t\t\t\t\t\t\tlvOrderDetails.invalidate();\n\t\t\t\t\t\t\t\t((BaseAdapter) lvOrderDetails.getAdapter())\n\t\t\t\t\t\t\t\t\t\t.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t// adapter.notifyDataSetChanged();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase GLOBAL.FROM_SERVER.UPDATE_ORDER_DETAILS_STATUS:\n\t\t\t\t\t\tif (message.getMsg().equals(GLOBAL.CONFIG.SUCCESS)) {\n\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tToast.makeText(ChefActivity.this,\n\t\t\t\t\t\t\t\t\t\t\t\"Cập nhật thành công!\",\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\tClientMessage mes = new ClientMessage();\n\t\t\t\t\t\t\t\t\tmes.setMsgID(GLOBAL.TO_SERVER.RELOAD_ORDER_DETAILS);\n\t\t\t\t\t\t\t\t\tmClient.sendMessage(mes);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tsilentService();\n\t}", "title": "" }, { "docid": "ff0e053fd1d5c1be0b5da032406bd6d7", "score": "0.50165254", "text": "@Override\n public void run()\n {\n Set<Session> userSession = sessionTypeToSessionMap.get(sessionType);\n if (userSession == null || userSession.isEmpty())\n {\n try\n {\n Thread.sleep(1000);\n if (userSession == null || userSession.isEmpty())\n {\n notifiyUserCancel(notification, sessionType);\n return;\n }\n } \n catch (InterruptedException e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n TextMessage returnMessage = new TextMessage(notification.getMessage().getResponseJsonStr());\n for(Session session : userSession)\n {\n try\n {\n session.getWebSocketSession().sendMessage(returnMessage);\n } \n catch (IOException e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n notifiyUserCommit(notification, sessionType);\n }", "title": "" }, { "docid": "8d528895cebcfa60d86f1b3b8daff199", "score": "0.50137955", "text": "public void run() {\n alert.uNotifyTimeout();\n }", "title": "" }, { "docid": "45df08acf66c380b4d705612e04e7898", "score": "0.50127596", "text": "private void handleActionStop() {\n timingState = TIMING_STOPPED;\n\n\n }", "title": "" }, { "docid": "703d4b41a636e0699cc2509686e03f41", "score": "0.5011528", "text": "private void onGCMAsk() {\n GridWatchEvent gwevent = new GridWatchEvent(GridWatchEventType.GCM_ASK_RESPONSE, this.getApplicationContext());\n gwevent.setGCMType(true);\n mEvents.add(gwevent);\n startEventProcessTimer();\n }", "title": "" }, { "docid": "c16e1479d021eec9365b9832ca57b5c6", "score": "0.5011186", "text": "public void EventResponseMsg(Event[] events){\n\n }", "title": "" }, { "docid": "41d5ff08e5cdb4aad36a2c2f88313dca", "score": "0.5008613", "text": "private void registerOnEvents() {\n\t}", "title": "" }, { "docid": "0b67ddbaf469222a6a00fa4ec75cf929", "score": "0.5006319", "text": "public interface WRHIServiceEvents\n{\n public void Starting();\n public void Completed(WRHOperationResult result);\n}", "title": "" }, { "docid": "ee39a99164f1c83a4b4a0ce957984fc5", "score": "0.5003557", "text": "@Override\n public void run() {\n LogUtils.d(\"application\", \"接受广播连接成功 \" + \" mac =\" + mac);\n if (mDeviceBean != null) {\n isReadTime = false;\n isReadCount = 0;\n mDeviceBean.write(CmdPackage.getTimer());\n try {\n Thread.sleep(AppConstants.SEND_TIME_DEALY);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n mDeviceBean.write(CmdPackage.getTimer());\n try {\n Thread.sleep(AppConstants.SEND_TIME_DEALY);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n mDeviceBean.write(CmdPackage.setTimerCheck());\n try {\n Thread.sleep(AppConstants.SEND_TIME_DEALY);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n mDeviceBean.write(CmdPackage.getDownCountTimer());\n\n while (!isReadTime) {\n if (isReadCount >=3) {\n isReadTime = true;\n break;\n }\n isReadCount ++;\n try {\n Thread.sleep(AppConstants.SEND_TIME_DEALY);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n mDeviceBean.write(CmdPackage.getTimer());\n }\n }\n }", "title": "" }, { "docid": "7339c2c052a11a78c69cd08607e1bdc9", "score": "0.49990207", "text": "public void setTimerTask(){\n\t}", "title": "" }, { "docid": "00319aad757fbd7fee1888c172df3176", "score": "0.49974334", "text": "void dispatchEvents() {\n/* 167 */ EventInfo eventInfo = null;\n/* */ \n/* 169 */ synchronized (this) {\n/* */ \n/* */ \n/* */ try {\n/* */ \n/* 174 */ if (this.eventQueue.size() == 0) {\n/* 175 */ if (this.autoClosingClips.size() > 0 || this.lineMonitors.size() > 0) {\n/* 176 */ char c = 'ᎈ';\n/* 177 */ if (this.lineMonitors.size() > 0) {\n/* 178 */ c = 'Ɛ';\n/* */ }\n/* 180 */ wait(c);\n/* */ } else {\n/* 182 */ wait();\n/* */ } \n/* */ }\n/* 185 */ } catch (InterruptedException interruptedException) {}\n/* */ \n/* 187 */ if (this.eventQueue.size() > 0)\n/* */ {\n/* 189 */ eventInfo = this.eventQueue.remove(0);\n/* */ }\n/* */ } \n/* */ \n/* 193 */ if (eventInfo != null) {\n/* 194 */ processEvent(eventInfo);\n/* */ } else {\n/* 196 */ if (this.autoClosingClips.size() > 0) {\n/* 197 */ closeAutoClosingClips();\n/* */ }\n/* 199 */ if (this.lineMonitors.size() > 0) {\n/* 200 */ monitorLines();\n/* */ }\n/* */ } \n/* */ }", "title": "" }, { "docid": "057c28a2abaa882d9bd1efc1e0407497", "score": "0.49961278", "text": "abstract public void sendControlRequest(LightstreamerRequest request, RequestTutor tutor, RequestListener reqListener);", "title": "" }, { "docid": "df9c0c02438e498860ad54ec0da468d3", "score": "0.4989606", "text": "@Override\n public void run() throws NullPointerException {\n Message recMsg = null;\n try {\n recMsg = serverProxy.receiveMessage(sectionId);\n } catch (ArgumentFault | ServerFault e) {\n e.printStackTrace();\n }\n\n if (recMsg != null){ //message exist\n countMsg++;\n try{\n ReceiveTimer.recMsg[countMsg-1] = recMsg;\n } catch (NullPointerException ignored) {}\n System.out.println(\"You have unread message: \" + countMsg + \". To see the message enter the command recMsg.\");\n }\n\n //check waiting file\n FileInfo recFile = null;\n try {\n recFile = serverProxy.receiveFile(sectionId);\n } catch (ArgumentFault | ServerFault argumentFault) {\n argumentFault.printStackTrace();\n }\n\n if (recFile != null){ //file exist\n countFile++;\n try{\n ReceiveTimer.recFile[countFile-1] = recFile;\n } catch (NullPointerException ignored) {}\n System.out.println(\"You have waiting file: \" + countFile + \". To see waiting file enter the command recFile.\");\n }\n\n //check new or log out user\n List<String> listUser = null;\n try{\n listUser = serverProxy.listUsers(sectionId);\n } catch (ArgumentFault | ServerFault argumentFault) {\n argumentFault.printStackTrace();\n }\n\n assert false;\n String[] listUsers = listUser.toArray(new String[0]);\n if (count == 0){ //record users to array list on first iteration\n assert listUsers != null;\n for(String i: listUsers){\n current.add(i);\n old.add(i);\n }\n } else { //second and subsequent iterations\n current.clear();\n assert listUsers != null;\n Collections.addAll(current, listUsers);\n\n if(current.size() > old.size()){ //new user\n current.removeAll(old);\n System.out.print(\"The user \" + current.get(0) + \" connected to the server.\");\n\n //bonus task\n Message msg = new Message(); //create the object of class Message\n msg.setMessage(\"Hello there, \" + current.get(0) +\".\"); //set the message\n msg.setReceiver(current.get(0)); //set the receiver of message\n try {\n serverProxy.sendMessage(sectionId, msg); //call the method sendMessage of interface IChatServer\n System.out.println(\" Welcome message sent successfully.\");\n } catch (ArgumentFault | ServerFault ex) {\n System.out.println(ex.getMessage());\n }\n\n current.clear(); //clear array list\n old.clear();\n for(String i: listUsers){\n current.add(i);\n old.add(i);\n }\n\n } else if (current.size() < old.size()){ //logout user\n old.removeAll(current);\n System.out.println(\"The user \" + old.get(0) + \" disconnected from server.\");\n old.clear(); //clear array list\n current.clear();\n for(String i: listUsers) {\n current.add(i);\n old.add(i);\n }\n }\n }\n if (count == 0) //detect first iteration\n count++;\n }", "title": "" }, { "docid": "8fec5d73c86a901f95c045c64ba05932", "score": "0.49890488", "text": "public boolean enableTimers ()\n\t{\n\t\tenableTimer_NeighborCheck();\n\t\t//enableTimer_WirelessState();\n\t\tenableTimer_ContentCreate();\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "60a4a72c1c9af326f69d610ffc7832f7", "score": "0.49885082", "text": "public void run() {\n \n //...........................initializing the IPC\n try {\n ipc_init.set_project(\"clasprod\");\n\u0001D 5\n ipc_init.set_server_names(\"clon10,clon00,jlabs2,db6\");\n\u0001E 5\n\u0001I 5\n ipc_init.set_server_names(\"clon10,clon00,clon05\");\n\u0001E 5\n TipcSrv srv=ipc_init.init(\"hardware_monitor_ts\",\"Daqtlc\");\n } catch (Exception e) {\n Tut.exitFailure(e.toString());\n }\n \n //...........................starting the Ts monitoring thread\n new Thread (myTs).start();\n \n //...........................loop for accesing the datat form the DataPool. \n //...........................This loop is async with the TS monitoring thread\n for(;;) {\n System.out.println( \"TS_update \"+DataPool.ts_update);\n if(DataPool.ts_update == true) {\n\t//.........................organizing the message\n\t//.........................get the server \n\tts_srv = TipcSvc.getSrv();\n\t//.........................create message \n\tts_msg = TipcSvc.createMsg(TipcSvc.lookupMt(\"info_server\"));\n\t//.........................set destination \n\tts_msg.setDest(\"info_server/in/hardware_monitor/ts\");\n\tts_msg.appendStr(\"hardware_monitor/ts\");\n\t//.........................appending\n\u0001I 3\n\n\u0001E 3\n\tts_msg.appendStr(DataPool.ts_status);\n\tts_msg.appendStr(DataPool.ts_prescale);\n\tts_msg.appendStr(DataPool.ts_scaler);\n\u0001I 4\nSystem.out.println(\"KUKU\");\n\u0001E 4\n\tts_msg.appendInt8(DataPool.ts_control);\n\tts_msg.appendInt8(DataPool.ts_cstatus);\n\tts_msg.appendInt8(DataPool.ts_state);\n\tts_msg.appendInt8(DataPool.ts_rocenable);\n\t//.........................sending\n\ttry {\n\t System.out.println(\"sending TS message\");\n\t ts_srv.send(ts_msg);\n\t ts_srv.flush();\n\t} catch (TipcException te) {\n\t Tut.warning(te);\n\t}\n\t\n\t//.........................std output \n\u0001D 5\n\tSystem.out.println(\"TS information from the DataPool\");\n\u0001E 5\n\u0001I 5\n\tSystem.out.println(\"TS information from the DataPool1\");\n\u0001E 5\n\tSystem.out.println( \"--------------------------\\n\");\n\tSystem.out.println( \"Status - \" + DataPool.ts_status);\n\tSystem.out.println( DataPool.ts_prescale);\n\tSystem.out.println( \"Scalers - \" + DataPool.ts_scaler);\n\tSystem.out.println( \"Control Register - \" + DataPool.ts_control);\n\tSystem.out.println( \"Status Register - \" + DataPool.ts_cstatus);\n\tSystem.out.println( \"State Register - \" + DataPool.ts_state);\n\tSystem.out.println( \"RocEnable Register - \" + DataPool.ts_rocenable);\n\tDataPool.ts_update = false;\n }\n try {\n ipc_init.check((double)DataPool.ipc_sleep);\n }\n catch (Exception e) {}\n }\n }", "title": "" }, { "docid": "9ccfde874b6eecc6e622305398104f4d", "score": "0.4983594", "text": "public void AddListenser() {\n this.m_Txz.addCommandListener(new TXZAsrManager.CommandListener() {\n public void onCommand(String cmd, String data) {\n Log.i(TxzReg.TAG, \"onCommand===\" + cmd + \" \" + data);\n if (MainSet.GetInstance().IsTwcjw()) {\n TxzReg.this.DealTwCommond(cmd, data);\n }\n if (data.equals(\"OPEN_RADIO\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_open_radio), true, new Runnable() {\n public void run() {\n WinShow.GotoWin(2, 0);\n }\n });\n } else if (data.equals(\"OPEN_NAVI\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_open_navi), true, new Runnable() {\n public void run() {\n WinShow.GotoWin(1, 0);\n }\n });\n } else if (data.equals(\"CLOSE_RADIO\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_close_radio), true, new Runnable() {\n public void run() {\n if (Iop.GetWorkMode() == 1) {\n if (WinShow.IsRadioActivity()) {\n TxzReg.this.BackToLaucher();\n }\n TxzReg.this.mEvc.evol_workmode_set(0);\n }\n }\n });\n } else if (data.equals(\"OPEN_AUDIO\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_open_music), true, new Runnable() {\n public void run() {\n if (MainSet.nPlayer != 1 || !MainSet.GetInstance().StartKw()) {\n WinShow.GotoWin(6, 0);\n }\n }\n });\n } else if (data.equals(\"CLOSE_AUDIO\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_close_music), true, new Runnable() {\n public void run() {\n if (Iop.GetWorkMode() == 4 || Iop.GetWorkMode() == 0) {\n TxzReg.this.BackToLaucher();\n TxzReg.this.mEvc.evol_workmode_set(0);\n }\n }\n });\n } else if (data.equals(\"OPEN_VIDEO\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_open_video), true, new Runnable() {\n public void run() {\n WinShow.GotoWin(4, 0);\n }\n });\n } else if (data.equals(\"CLOSE_VIDEO\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_close_video), true, new Runnable() {\n public void run() {\n if (Iop.GetWorkMode() == 3) {\n TxzReg.this.mEvc.evol_workmode_set(0);\n TxzReg.this.BackToLaucher();\n } else if (Iop.GetWorkMode() == 0 && MainSet.GetInstance().IsHaveApk(\"com.mxtech.videoplayer.pro\")) {\n tool.GetInstance().killProcess(\"com.mxtech.videoplayer.pro\");\n }\n }\n });\n } else if (data.equals(\"OPEN_DTV\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_open_cmmb), true, new Runnable() {\n public void run() {\n WinShow.GotoWin(8, 0);\n }\n });\n } else if (data.equals(\"CLOSE_DTV\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_close_cmmb), true, new Runnable() {\n public void run() {\n if (Iop.GetWorkMode() == 6) {\n TxzReg.this.BackToLaucher();\n TxzReg.this.mEvc.evol_workmode_set(0);\n }\n }\n });\n } else if (data.equals(\"OPEN_DVD\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_open_dvd), true, new Runnable() {\n public void run() {\n WinShow.GotoWin(3, 0);\n }\n });\n } else if (data.equals(\"CLOSE_DVD\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_close_dvd), true, new Runnable() {\n public void run() {\n if (Iop.GetWorkMode() == 2) {\n TxzReg.this.mEvc.evol_workmode_set(0);\n TxzReg.this.BackToLaucher();\n }\n }\n });\n } else if (data.equals(\"OPEN_DVR\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_open_dvr), true, new Runnable() {\n public void run() {\n WinShow.show(\"com.ts.MainUI\", \"com.ts.main.dvr.DvrMainActivity\");\n }\n });\n } else if (data.equals(\"OPEN_XMLY\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_open_xmly), true, new Runnable() {\n public void run() {\n MainSet.GetInstance().StartXMLY();\n }\n });\n } else if (data.equals(\"CLOSE_XMLY\")) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_close_xmly), true, new Runnable() {\n public void run() {\n if (Iop.GetWorkMode() == 0) {\n TxzReg.this.mEvc.evol_workmode_set(0);\n TxzReg.this.BackToLaucher();\n }\n }\n });\n } else if (data.equals(\"OPEN_BT\")) {\n if (BtExe.getBtInstance().isConnected()) {\n TXZResourceManager.getInstance().speakTextOnRecordWin(TxzReg.this.GetResString(R.string.txz_open_bt_music), true, new Runnable() {\n public void run() {\n WinShow.GotoWin(7, 3);\n }\n });\n return;\n }\n TXZTtsManager.getInstance().speakText(\"请先连接蓝牙\");\n WinShow.GotoWin(7, 0);\n } else if (data.startsWith(\"OPEN_FM_FREQ#\")) {\n float hz = Float.parseFloat(data.substring(\"OPEN_FM_FREQ#\".length()));\n if (Iop.GetWorkMode() != 1) {\n WinShow.GotoWin(2, 0);\n }\n int nFm = (int) (100.0f * hz);\n Log.i(TxzReg.TAG, \"ACTION_RECOGNIZE_CMD nFm ==\" + nFm);\n Radio.TuneBandFq(0, nFm);\n } else if (data.startsWith(\"OPEN_FM_FREQ\")) {\n int index = cmd.indexOf(\"M\");\n if (index == -1) {\n index = cmd.indexOf(\"频\");\n }\n float hz2 = 87.5f;\n try {\n hz2 = Float.parseFloat(cmd.substring(index + 1, cmd.length()).replace(\"点\", \".\"));\n } catch (Exception e) {\n Log.e(TxzReg.TAG, \"parseFloat error!\");\n }\n if (((double) hz2) < 87.5d) {\n hz2 = 87.5f;\n }\n if (hz2 > 108.0f) {\n hz2 = 108.0f;\n }\n TxzReg.this.fhz = hz2;\n TXZResourceManager.getInstance().speakTextOnRecordWin(\"将为您调频到FM\" + hz2, true, new Runnable() {\n public void run() {\n if (Iop.GetWorkMode() != 1) {\n WinShow.GotoWin(2, 0);\n }\n int nFm = (int) (TxzReg.this.fhz * 100.0f);\n Log.i(TxzReg.TAG, \"ACTION_RECOGNIZE_CMD nFm ==\" + nFm);\n Radio.TuneBandFq(0, nFm);\n }\n });\n Log.i(TxzReg.TAG, \"OPEN_FM_FREQ===\" + data.substring(\"OPEN_FM_FREQ#\".length()) + \" \" + hz2);\n } else if (data.startsWith(\"OPEN_AM_FREQ\")) {\n int index2 = cmd.indexOf(\"M\");\n if (index2 == -1) {\n index2 = cmd.indexOf(\"幅\");\n }\n String strHz = cmd.substring(index2 + 1, cmd.length());\n int hz3 = CanCameraUI.BTN_GEELY_YJX6_MODE3;\n try {\n hz3 = Integer.parseInt(strHz);\n } catch (Exception e2) {\n Log.e(TxzReg.TAG, \"parseFloat error!\");\n }\n if (hz3 < 522) {\n hz3 = CanCameraUI.BTN_GEELY_YJX6_MODE3;\n }\n if (hz3 > 1611) {\n hz3 = CanCameraUI.BTN_MGZS_WC_MODE2;\n }\n TxzReg.this.mHz = hz3;\n TXZResourceManager.getInstance().speakTextOnRecordWin(\"将为您调幅到AM\" + hz3, true, new Runnable() {\n public void run() {\n Radio.TuneBandFq(4, TxzReg.this.mHz);\n }\n });\n Log.i(TxzReg.TAG, \"OPEN_AM_FREQ===\" + data.substring(\"OPEN_AM_FREQ#\".length()) + \" \" + hz3);\n }\n }\n });\n }", "title": "" }, { "docid": "349c6fe0338fd62c1ed427d991a6f1ed", "score": "0.49824566", "text": "@Override\n public void sendEnd() {\n\n }", "title": "" }, { "docid": "082df6238b388a56f816260dfe372936", "score": "0.49742207", "text": "public abstract void started(String status);", "title": "" }, { "docid": "6c352c973f5d4693b4736389c4bfa13f", "score": "0.49733996", "text": "private void setEventListeners() {\n /* Install Button */\n Button installBtn = (Button) findViewById(R.id.installBtn);\n installBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n InstallAsync installation = new InstallAsync();\n installation.execute();\n }\n });\n\n /* Uninstall Button */\n Button uninstallBtn = (Button) findViewById(R.id.uninstallBtn);\n uninstallBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String response;\n if (projectClient != null) {\n if (projectClient.removeTile()) {\n response = \"Wearable Project tile has been successfully removed.\";\n findViewById(R.id.accSwitch).setEnabled(false);\n } else {\n response = \"Could not remove Wearable Project tile.\";\n projectClient.sendDialog(\"Uninstall\", response);\n }\n statusTst.setText(response);\n statusTst.show();\n } else {\n response = \"Not connected to Band.\";\n statusTst.setText(response);\n statusTst.show();\n }\n }\n });\n\n /* Accelerometer Switch */\n Switch accSwitch = (Switch) findViewById(R.id.accSwitch);\n accSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n ProjectAccelerometer projectAcc = projectClient.getProjectAcc();\n if (isChecked) {\n projectAcc.registerListener(projectClient.getBandClient(), SampleRate.MS128);\n } else {\n projectAcc.unregisterListener(projectClient.getBandClient());\n for (TextView val : accValTxt) {\n val.setText(R.string.noData);\n }\n }\n }\n });\n\n /* Gyroscope Switch */\n Switch gyroSwitch = (Switch) findViewById(R.id.gyroSwitch);\n gyroSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n ProjectGyroscope projectGyro = projectClient.getProjectGyro();\n if (isChecked) {\n projectGyro.registerListener(projectClient.getBandClient(), SampleRate.MS128);\n } else {\n projectGyro.unregisterListener(projectClient.getBandClient());\n for (TextView val : gyroValTxt) {\n val.setText(R.string.noData);\n }\n }\n }\n });\n\n /* Show Saved Data */\n Button showSavedBtn = (Button) findViewById(R.id.showSavedBtn);\n showSavedBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n try {\n String filePath = getFilesDir().toString() + \"/acc_data\";\n String str = getStrFromFile(filePath);\n\n showSavedTxt.setText(str);\n } catch (IOException ex) {\n ex.printStackTrace();\n statusTst.setText(\"Could not find saved data.\");\n statusTst.show();\n }\n }\n });\n }\n });\n }", "title": "" }, { "docid": "9fbac485a4de32ef25f99c3f7a85b62e", "score": "0.49724376", "text": "public interface FetionMessageControl\n{\n\n int asyncBeginDialog(long who, EventListener eventListener, Object... args);\n\n int asyncDeleteScheduledSMS(int id, EventListener eventListener,\n Object... args);\n\n int asyncDialogSend(long who, String message, EventListener eventListener,\n Object... args);\n\n void asyncEndDialog(long who);\n\n int asyncSendSms(long who, String message, EventListener eventListener,\n Object... args);\n\n int asyncSendSmsByMobileNumber(String mobileNumber, String message,\n EventListener eventListener, Object... args);\n\n int asyncSendSmsToSelf(String message, EventListener eventListener,\n Object... args);\n\n int asyncSetScheduledSMS(List<FetionAccount> receiverList, String message,\n String sendTime, EventListener eventListener, Object... args);\n\n boolean beginDialog(long who);\n\n String convertScheduledSMSReceiverListToString(\n List<FetionAccount> receiverList);\n\n boolean dialogSend(long who, String message);\n\n void endDialog(long who);\n\n FetionMessage getMessage(long id);\n\n FetionScheduledSMS getScheduledSMSById(int id);\n\n List<FetionScheduledSMS> getScheduledSMSList();\n\n String removeFontTag(String message);\n\n boolean sendNudge(long who);\n\n boolean sendSms(long who, String message);\n\n boolean sendSmsByMobileNumber(String mobileNumber, String message);\n\n boolean sendSmsToSelf(String message);\n\n void setLongSmsEnabled(boolean enabled);\n\n}", "title": "" }, { "docid": "b1e9f00c1d73eb026af9cf1be2e8b77e", "score": "0.4972123", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t}", "title": "" }, { "docid": "fd9ecd9ecc52ab0b9f72194db3b4618e", "score": "0.49632096", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tchannelProxy.cancelWaitingRequests();\n\t\t\t}", "title": "" }, { "docid": "e6f818816c11e4f7287b170ed577b9e3", "score": "0.4959393", "text": "@Override\n\n public void run() {\n\n Integer OrangeTopupServiceId = null;\n Integer etisalatTopupServiceId = null;\n Integer vodafoneTopupServiceId = null;\n Integer moneyTransferServiceId = null;\n try {\n OrangeTopupServiceId = Integer.parseInt(SystemSettingsUtil.getInstance().loadProperty(\"orangeTopup.serviceId\"));\n etisalatTopupServiceId = Integer.parseInt(SystemSettingsUtil.getInstance().loadProperty(\"etisalatTopup.serviceId\"));\n vodafoneTopupServiceId = Integer.parseInt(SystemSettingsUtil.getInstance().loadProperty(\"vodafoneTopup.serviceId\"));\n// moneyTransferServiceId = Integer.parseInt(SystemSettingsUtil.getInstance().loadProperty(\"moneyTransfer.serviceId\"));\n \n MasaryManager.logger.info(\"Topup service Id is \" + OrangeTopupServiceId);\n MasaryManager.logger.info(\"Topup service Id is \" + etisalatTopupServiceId);\n MasaryManager.logger.info(\"Topup service Id is \" + vodafoneTopupServiceId);\n// MasaryManager.logger.info(\"Topup service Id is \" + moneyTransferServiceId);\n } catch (NumberFormatException ex) {\n Logger.getLogger(TopupServiceIntegrationStatus.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n try{\n orangeserviceStatus = MasaryManager.getInstance().getServiceStatus(OrangeTopupServiceId);\n etisalatserviceStatus = MasaryManager.getInstance().getServiceStatus(etisalatTopupServiceId);\n vodafoneserviceStatus = MasaryManager.getInstance().getServiceStatus(vodafoneTopupServiceId);\n// moneyTransferServiceStatus = MasaryManager.getInstance().getServiceStatus(moneyTransferServiceId);\n MasaryManager.logger.info(\"topup service integration 8: \" + orangeserviceStatus);\n MasaryManager.logger.info(\"topup service integration 6: \" + etisalatserviceStatus);\n MasaryManager.logger.info(\"topup service integration 10: \" + vodafoneserviceStatus);\n// MasaryManager.logger.info(\"topup service integration 10: \" + moneyTransferServiceId);\n \t\n } catch(Exception ex){\n \tMasaryManager.logger.error(ex.getMessage() , ex);\n }\n \n }", "title": "" }, { "docid": "da7851eba8d5f5c6014ea6f00315c3a7", "score": "0.49573815", "text": "public void updateStream(){\n try {\n template.convertAndSend(\"/broker/eventSub\", eventService.getActiveEvents().values());\n LOG.info(\"Send updated eventList with: \" + eventService.getActiveEvents().size() + \" events\");\n } catch (NullPointerException e){\n LOG.warn(\"Can't fetch events before at least one device is imported\");\n }\n }", "title": "" }, { "docid": "03242d7d55eb5320f965b8f3a937a70c", "score": "0.4950184", "text": "@Override\r\n\tpublic synchronized void handleEvent(IDiscreteScheduledEvent e) {\r\n\t\tIMessage message = e.getMessage();\r\n\t\r\n\t\t// do this for all states.\r\n\t\tif( message instanceof SimulatableRefreshMessage ) {\r\n\t\t\tSystem.out.println( \" got refresh. \" );\r\n\t\t\t_state = State.FULLY_AWAKE;\r\n\t\t\tsetLastRefreshTime( e.getEventTime() );\r\n\t\t\tresetRemainingOperations();\r\n\t\t\treturn;\r\n\t\t} \r\n\t\t\r\n\t\tswitch( getState() ) {\r\n\t\t\tcase FULLY_AWAKE:\r\n\t\t\t\t// handle cost and state\r\n\t\t\t\tspendOperation();\t\t\t\t\t\t// cost us\r\n\t\t\t\tSystem.out.println(getRemainingOperations());\r\n\t\t\t\tsetState( State.PARTIALLY_AWAKE );\t\t// set next\r\n\t\t\t\t\r\n\t\t\t\t// handle refresh\r\n\t\t\t\tsetLastRefreshTime( e.getEventTime() );\t\r\n\t\t\t\tsendRefreshMessage( e.getEventTime() );\r\n\t\t\t\t\r\n\t\t\t\t// handle event\r\n\t\t\t\tsubclassHandle( e );\r\n\t\t\t\tbreak;\r\n\t\t\tcase PARTIALLY_AWAKE:\r\n\t\t\t\t// handle cost and state\r\n\t\t\t\tspendOperation();\t\t\t\t\t\t// spend operation first\r\n\t\t\t\tSystem.out.println(getRemainingOperations());\r\n\t\t\t\tsetState( ( canPerformOperation() ) \t// determine next state\r\n\t\t\t\t\t? State.PARTIALLY_AWAKE\r\n\t\t\t\t\t: State.BLOCKED );\r\n\t\t\t\t\r\n\t\t\t\t// handle event\r\n\t\t\t\tsubclassHandle( e );\r\n\t\t\t\tbreak;\r\n\t\t\tcase BLOCKED:\r\n\t\t\t\t// reschedule all\r\n\t\t\t\trescheduleEvent( e );\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "071be05501c532c112373bd2c484d6ce", "score": "0.4949569", "text": "synchronized void onTimer() {\n\t\tfinal boolean hasActiveSession = activityCount_ > 0;\n\t\tif (hasActiveSession) {\n\t\t\tif (!disableUpdateSessionRequests_) {\n\t\t\t\tcommandFactory_\n\t\t\t\t\t\t.updateSession(roundedSecondsSinceLastSessionDurationUpdate());\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
9539bbdd7a9d24a2a57f0cc2939a743f
Test 11 Expose a specific content type and check the exposure count is incremented for the content type
[ { "docid": "943e2ec100c71f8bb59fa9290f6be9c5", "score": "0.74197453", "text": "@Test (dataProviderClass = BoxDataProvider.class, dataProvider = \"contentTypesExposuresTotal\", groups={\"DASHBOARD\", \"INTERNAL\", \"EXPOSED_FILES\", \"FILTER\"})\n\tpublic void exposeAFileTypeAndVerifyExposedContentTypes(String testname, String folderId, String filename, String access, String filetype, String server) throws Exception {\n\n\t\tLogUtils.logTestDescription(\"Expose a content type and check exposure count is incremented for the content type.\");\n\n\t\tReporter.log(\"Started \"+testname, true);\n\n\t\tHashMap<String, String> additionalParams = new HashMap<String, String>();\n\t\tadditionalParams.put(\"is_internal\", \"true\");\n\n\t\t//before exposure\n\t\tExposureTotals exposedContentTypes = getExposedContentTypes(\"el_box\", additionalParams);\n\t\tHashMap<String, Integer> beforeMap = new HashMap<String, Integer>();\n\n\t\tfor(TotalObject totalObject : exposedContentTypes.getObjects()) {\n\t\t\tbeforeMap.put(totalObject.getId(), totalObject.getTotal());\n\t\t}\n\n\t\t//Expose the file\n\t\tFileEntry sharedFile = this.uploadFileAndShareit(folderId, filename, access);\n\n\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\t//After the exposure get the count\n\t\texposedContentTypes = getExposedContentTypes(\"el_box\", additionalParams);\n\t\tHashMap<String, Integer> afterMap = new HashMap<String, Integer>();\n\n\t\tfor(TotalObject totalObject : exposedContentTypes.getObjects()) {\n\t\t\tafterMap.put(totalObject.getId(), totalObject.getTotal());\n\t\t}\n\n\t\tfor(String key : afterMap.keySet()) {\n\t\t\tReporter.log(\"Verifying the type:\"+key, true );\n\t\t\tif(key.equals(filetype)) {\n\t\t\t\tCustomAssertion.assertEquals(afterMap.get(key), beforeMap.get(key) +1, key + \" count not added after expsoure\");\n\t\t\t} else {\n\t\t\t\tint expectedValue = (beforeMap.get(key) == null) ? 0: beforeMap.get(key); \n\t\t\t\tCustomAssertion.assertEquals(afterMap.get(key), expectedValue, key + \" count should not get incremented for no expsoure\");\n\t\t\t}\n\t\t}\n\n\t\t//Disable shared link\n\t\tuniversalApi.disableSharedLink(sharedFile.getId());\n\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\t//After the exposure get the count\n\t\texposedContentTypes = getExposedContentTypes(\"el_box\", additionalParams);\n\t\tafterMap = new HashMap<String, Integer>();\n\n\t\tfor(TotalObject totalObject : exposedContentTypes.getObjects()) {\n\t\t\tafterMap.put(totalObject.getId(), totalObject.getTotal());\n\t\t}\n\n\t\tfor(String key : afterMap.keySet()) {\n\t\t\tReporter.log(\"Verifying the type:\"+key, true );\n\t\t\tCustomAssertion.assertEquals(afterMap.get(key), beforeMap.get(key), key + \" count should be decremented after delete expsoure\");\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "6fa84506cddae1fc3858b226260f2096", "score": "0.671996", "text": "@Test (dataProviderClass = BoxDataProvider.class, dataProvider = \"fileTypesExposuresTotal\", groups={\"DASHBOARD\", \"INTERNAL\", \"EXPOSED_FILES\", \"FILTER\"})\n\tpublic void exposeAFileTypeAndVerifyExposedFileTypes(String testname, String folderId, String filename, String access, String filetype, String server) throws Exception {\n\n\t\tLogUtils.logTestDescription(\"Expose a specific file and check the exposure count is incremented for the file type\");\n\n\t\t//before exposure\n\t\tExposureTotals exposedFileTypes = getExposedFileTypes(\"el_box\", \"true\", \"10\");\n\t\tHashMap<String, Integer> beforeMap = new HashMap<String, Integer>();\n\n\t\tfor(TotalObject totalObject : exposedFileTypes.getObjects()) {\n\t\t\tbeforeMap.put(totalObject.getId(), totalObject.getCount());\n\t\t}\n\n\t\t//Expose the file\n\t\tFileEntry sharedFile = this.uploadFileAndShareit(folderId, filename, access);\n\n\t\tsleep(CommonConstants.FIVE_MINUTES_SLEEP);\n\n\t\t//After the exposure get the count\n\t\texposedFileTypes = getExposedFileTypes(\"el_box\", \"true\", \"10\");\n\t\tHashMap<String, Integer> afterMap = new HashMap<String, Integer>();\n\n\t\tfor(TotalObject totalObject : exposedFileTypes.getObjects()) {\n\t\t\tafterMap.put(totalObject.getId(), totalObject.getCount());\n\t\t}\n\n\t\tfor(String key : afterMap.keySet()) {\n\t\t\tReporter.log(\"Verifying the type:\"+key, true );\n\t\t\tif(key.equals(filetype)) {\n\t\t\t\tint expectedValue = beforeMap.containsKey(key) ? beforeMap.get(key) + 1 : 0;\n\t\t\t\tCustomAssertion.assertEquals(afterMap.get(key), expectedValue, key + \" count not added after expsoure\");\n\t\t\t} else {\n\t\t\t\tCustomAssertion.assertEquals(afterMap.get(key), beforeMap.get(key), key + \" count should not get incremented for no expsoure\");\n\t\t\t}\n\t\t}\n\n\t\t//Disable shared link\n\t\tuniversalApi.disableSharedLink(sharedFile.getId());\n\t\tsleep(CommonConstants.FIVE_MINUTES_SLEEP);\n\n\t\t//After the exposure get the count\n\t\texposedFileTypes = getExposedFileTypes(\"el_box\", \"true\", \"10\");\n\t\tafterMap = new HashMap<String, Integer>();\n\n\t\tfor(TotalObject totalObject : exposedFileTypes.getObjects()) {\n\t\t\tafterMap.put(totalObject.getId(), totalObject.getCount());\n\t\t}\n\n\t\tfor(String key : afterMap.keySet()) {\n\t\t\tReporter.log(\"Verifying the count after removing exposure :\"+key, true );\n\t\t\tCustomAssertion.assertEquals(afterMap.get(key), beforeMap.get(key), key + \" count should be decremented after delete expsoure\");\n\t\t}\n\t}", "title": "" }, { "docid": "a0669a24f6a66155d32aef185ada0a17", "score": "0.6570514", "text": "@Test (dataProviderClass = BoxDataProvider.class, dataProvider = \"vulnerabilityTypesExposuresTotal\", groups={\"DASHBOARD\"})\n\tpublic void exposeAFileTypeAndVerifyVulnerabilityTypes(String testname, String folderId, String filename, String access, String filetype, String server) throws Exception {\n\n\t\tLogUtils.logTestDescription(\"Expose a file of particular vulnerability and check the exposure count gets incremented\");\n\n\t\tReporter.log(\"Started \"+testname, true);\n\n\t\tHashMap<String, String> additionalParams = new HashMap<String, String>();\n\t\tadditionalParams.put(\"is_internal\", \"true\");\n\n\t\t//before exposure\n\t\tVulnerabilityTypes vulnerabilityTypes = getVulnerabilityTypes(\"el_box\", additionalParams);\n\t\tHashMap<String, Integer> beforeMap = new HashMap<String, Integer>();\n\n\t\tfor(VlType totalObject : vulnerabilityTypes.getObjects().getVlTypes()) {\n\t\t\tbeforeMap.put(totalObject.getId(), totalObject.getTotal());\n\t\t}\n\n\t\t//Expose the file\n\t\tFileEntry sharedFile = this.uploadFileAndShareit(folderId, filename, access);\n\n\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\t//After the exposure get the count\n\t\tvulnerabilityTypes = getVulnerabilityTypes(\"el_box\", additionalParams);\n\t\tHashMap<String, Integer> afterMap = new HashMap<String, Integer>();\n\n\t\tfor(VlType totalObject : vulnerabilityTypes.getObjects().getVlTypes()) {\n\t\t\tafterMap.put(totalObject.getId(), totalObject.getTotal());\n\t\t}\n\n\t\tfor(String key : afterMap.keySet()) {\n\t\t\tReporter.log(\"Verifying the type:\"+key, true );\n\t\t\tif(key.equals(filetype)) {\n\t\t\t\tCustomAssertion.assertEquals(afterMap.get(key), beforeMap.get(key) +1, key + \" count not added after expsoure\");\n\t\t\t} else {\n\t\t\t\tCustomAssertion.assertEquals(afterMap.get(key), beforeMap.get(key), key + \" count should not get incremented for no expsoure\");\n\t\t\t}\n\t\t}\n\n\t\t//Disable shared link\n\t\tuniversalApi.disableSharedLink(sharedFile.getId());\n\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\t//After the exposure get the count\n\t\tvulnerabilityTypes = getVulnerabilityTypes(\"el_box\", additionalParams);\n\t\tafterMap = new HashMap<String, Integer>();\n\n\t\tfor(VlType totalObject : vulnerabilityTypes.getObjects().getVlTypes()) {\n\t\t\tafterMap.put(totalObject.getId(), totalObject.getTotal());\n\t\t}\n\n\t\tfor(String key : afterMap.keySet()) {\n\t\t\tReporter.log(\"Verifying the type:\"+key, true );\n\t\t\tCustomAssertion.assertEquals(afterMap.get(key), beforeMap.get(key), key + \" count should be decremented after delete expsoure\");\n\t\t}\n\t}", "title": "" }, { "docid": "454c3c54d5577c23e493eb43e3994d46", "score": "0.6434582", "text": "@Test(groups={\"DASHBOARD\", \"INTERNAL\", \"EXPOSED_FILES\", \"FILTER\"})\n\tpublic void getAllInternallyExposedContentTypes() throws Exception {\n\t\tLogUtils.logTestDescription(\"Get all internally exposed content types.\");\n\n\t\tHashMap<String, String> additionalParams = new HashMap<String, String>();\n\t\tadditionalParams.put(\"is_internal\", \"true\");\n\n\t\t//ExposureTotals expsoureTotals = \n\t\tExposureTotals exposedContentTypes = getExposedContentTypes(elapp.el_box.name(), additionalParams);\n\n\t\tCustomAssertion.assertTrue(exposedContentTypes.getObjects().size() >= 0, \"File type exposure is less than zero\");\n\n\t\tfor(TotalObject totalObject : exposedContentTypes.getObjects()) {\n\t\t\tCustomAssertion.assertTrue(totalObject.getId()!= null, \"Id is null\");\n\t\t\tCustomAssertion.assertTrue(totalObject.getTotal() >= 0, \"Count is less than or equal to zero\");\n\t\t}\n\t}", "title": "" }, { "docid": "1b6aab46c70f4b97772bc41c0e5cdaf8", "score": "0.58094746", "text": "@Test(dataProviderClass = BoxDataProvider.class, dataProvider = \"metricsExposuresTotal\", groups={\"DASHBOARD\", \"INTERNAL\", \"EXPOSED_FILES\", \"FILTER\"})\n\tpublic void verifyExposuresMetricsForFileExposures(String testname, String folderId, String fileName, String access, String exposureType, String server) throws Exception {\n\n\t\tFileEntry sharedFile = null;\n\t\ttry {\n\t\t\tString steps[] = {\n\t\t\t\t\t\"1. This test check the metrics as depicted in venn diagram \",\n\t\t\t\t\t\"2. Upload a file and share it with \" + access + \" access.\",\n\t\t\t\"3. Verify the exposure totals get incremented after the exposure.\" };\n\n\t\t\tLogUtils.logTestDescription(steps);\n\n\t\t\t//Get the exposure count\n\t\t\tlong countPublic = 0;\n\t\t\tlong countInternal = 0;\n\t\t\tlong countExternal = 0;\n\n\t\t\tList<NameValuePair> qparams = new ArrayList<NameValuePair>(); \n\t\t\tqparams.add(new BasicNameValuePair(SecurletsConstants.IS_INTERNAL, Boolean.TRUE.toString()));\n\t\t\tqparams.add(new BasicNameValuePair(SecurletsConstants.APP, facility.Box.name()));\n\n\t\t\tReporter.log(\"Internal exposure metrics totals before the exposure\", true);\n\t\t\tExposureTotals exposureTotals = getExposuresMetricsTotal(elapp.el_box.name(), qparams);\n\t\t\tcountPublic \t= exposureTotals.getPublicExposouresCount();\n\t\t\tcountInternal \t= exposureTotals.getInternalExposouresCount();\n\t\t\tcountExternal \t= exposureTotals.getExternalExposouresCount();\n\n\t\t\tReporter.log(\"Public count :\"+countPublic, true);\n\t\t\tReporter.log(\"Internal count:\"+countInternal, true);\n\t\t\tReporter.log(\"External count:\"+countExternal, true);\n\n\t\t\t//Create a file and share it\n\t\t\tsharedFile = uploadFileAndShareit(folderId, fileName, access);\n\n\t\t\t//3 mins sleep\n\t\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\t\t//After exposure\n\t\t\tReporter.log(\"Internal exposure metrics totals after the exposure\", true);\n\t\t\texposureTotals = getExposuresMetricsTotal(elapp.el_box.name(), qparams);\n\n\t\t\tReporter.log(\"Public count :\"+exposureTotals.getPublicExposouresCount(), true);\n\t\t\tReporter.log(\"Internal count:\"+exposureTotals.getInternalExposouresCount(), true);\n\t\t\tReporter.log(\"External count:\"+exposureTotals.getExternalExposouresCount(), true);\n\n\t\t\tif (exposureType.equals(ExposureTypes.PUBLIC.name().toLowerCase())) {\n\t\t\t\tCustomAssertion.assertEquals(countPublic+1, exposureTotals.getPublicExposouresCount(), \"Public exposure count not incremented\");\n\t\t\t\tCustomAssertion.assertEquals(countInternal, exposureTotals.getInternalExposouresCount(), \"Internal exposure shouldn't change\");\n\t\t\t\tCustomAssertion.assertEquals(countExternal, exposureTotals.getExternalExposouresCount(), \"External exposure shouldn't change\");\n\n\t\t\t} else if(exposureType.equals(ExposureTypes.EXTERNAL.name().toLowerCase())) {\n\t\t\t\t//As it is shared with collaborators on file basis, it should not get incremented\n\t\t\t\tCustomAssertion.assertEquals(countPublic, exposureTotals.getPublicExposouresCount(), \"Public exposure shouldn't change\");\n\t\t\t\tCustomAssertion.assertEquals(countInternal, exposureTotals.getInternalExposouresCount(), \"Internal exposure shouldn't change\");\n\t\t\t\tCustomAssertion.assertEquals(countExternal, exposureTotals.getExternalExposouresCount(), \"External exposure shouldn't change\");\n\n\t\t\t} else if(exposureType.equals(ExposureTypes.INTERNAL.name().toLowerCase())) {\n\t\t\t\tCustomAssertion.assertEquals(countPublic, exposureTotals.getPublicExposouresCount(), \"Public exposure count shouldn't change\");\n\t\t\t\tCustomAssertion.assertEquals(countInternal+1, exposureTotals.getInternalExposouresCount(), \"Internal exposure count not incremented\");\n\t\t\t\tCustomAssertion.assertEquals(countExternal, exposureTotals.getExternalExposouresCount(), \"External exposure shouldn't change\");\n\t\t\t}\n\n\t\t\t//Delete the shared link and check the count. It should be decremented by one\n\t\t\tsharedFile = universalApi.disableSharedLink(sharedFile.getId());\n\n\t\t\t//3 mins sleep\n\t\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\t\t\tReporter.log(\"Internal exposure metrics totals after removing the exposure\", true);\n\t\t\texposureTotals = getExposuresMetricsTotal(elapp.el_box.name(), qparams);\n\n\t\t\tReporter.log(\"Public count :\"+exposureTotals.getPublicExposouresCount(), true);\n\t\t\tReporter.log(\"Internal count:\"+exposureTotals.getInternalExposouresCount(), true);\n\t\t\tReporter.log(\"External count:\"+exposureTotals.getExternalExposouresCount(), true);\n\n\t\t\tCustomAssertion.assertEquals(countPublic, exposureTotals.getPublicExposouresCount(), \"Public exposure count not incremented\");\n\t\t\tCustomAssertion.assertEquals(countInternal, exposureTotals.getInternalExposouresCount(), \"Internal exposure shouldn't change\");\n\t\t\tCustomAssertion.assertEquals(countExternal, exposureTotals.getExternalExposouresCount(), \"External exposure shouldn't change\");\n\n\t\t}\n\t\tfinally{\n\t\t\tuniversalApi.deleteFile(sharedFile.getId(), sharedFile.getEtag());\n\t\t}\n\t}", "title": "" }, { "docid": "fdde65f9e2ed0eae9de0ede0faf3419c", "score": "0.57172436", "text": "@Step(\"The response content-type should be <contentType>\")\n\tpublic void responseContentTypeMatches(String contentType) {\n\t\tResponse response = GaugeScenarioStore.getResponse();\n\t\t//int expected = Integer.parseInt(statusCode);\n\t\tassertThat(response.getContentType()).isEqualTo(contentType);\n\t}", "title": "" }, { "docid": "ca8c76f0039a3ea20d93d1a949e0f289", "score": "0.56766206", "text": "@Test(groups={\"DASHBOARD\", \"INTERNAL\", \"EXPOSED_FILES\", \"FILTER\"})\n\tpublic void verifyVulnerabilityTypes() throws Exception {\n\n\t\tLogUtils.logTestDescription(\"Get the vulnerability types and verify them\");\n\t\tLogger.info( \"Getting vulnerability types ...\");\n\n\t\tHashMap<String, String> additionalParams = new HashMap<String, String>();\n\t\tadditionalParams.put(\"is_internal\", \"true\");\n\t\tadditionalParams.put(\"vl_types\", \t\"all\");\n\n\t\t//After external exposure\n\t\tVulnerabilityTypes vulnerabilityTypes = getVulnerabilityTypes(\"el_box\", additionalParams);\n\n\t\tString vulnerabilities[] = {\"pci\", \"pii\", \"hipaa\", \"source_code\", \"virus\", \"dlp\", \"encryption\", \"vba_macros\", \"glba\", \"ferpa\"};\n\n\t\tfor (String vl : vulnerabilities) {\n\t\t\tReporter.log(\"Verifying the vulnerability type:\"+vl, true);\n\t\t\tReporter.log(\"Vulnerability:\" + vl + \"::Count:\" + vulnerabilityTypes.getObjects().getVulnerabilityCount(vl), true );\n\t\t\tCustomAssertion.assertTrue(vulnerabilityTypes.getObjects().getVulnerabilityCount(vl) >= 0, \"Count is less than zero\");\n\t\t}\n\n\t\tfor(CiqProfile ciqprofile : vulnerabilityTypes.getObjects().getCiqProfiles()) {\n\t\t\tReporter.log(\"Verifying the CIQ profile name:\"+ciqprofile.getId(), true);\n\t\t\tReporter.log(\"Ciq Profile name:\" +ciqprofile.getId() + \":: Count:\"+ciqprofile.getTotal(), true);\n\t\t\tCustomAssertion.assertTrue(ciqprofile.getId()!=null, \"CIQ profile id is null\");\n\t\t\tCustomAssertion.assertTrue(ciqprofile.getTotal() >= 0, \"CIQ profile total is null\");\n\t\t}\n\t}", "title": "" }, { "docid": "105dcff0ce4c6fadf3501bb8bfa7d341", "score": "0.55649346", "text": "public void testGetContentTypeAccuracy() {\r\n assertTrue(httpRes.getContentType().trim().indexOf(\"text/html\") >= 0);\r\n }", "title": "" }, { "docid": "32cd903e4f6e1f70e31c9a3939d7e6c1", "score": "0.5544747", "text": "@Test ( groups={\"DASHBOARD\", \"INTERNAL\", \"EXPOSED_FILES\", \"FILTER\"})\n\tpublic void verifyTopExposedFileTypes() throws Exception {\n\n\t\tLogUtils.logTestDescription(\"Get top exposed file types\");\n\n\t\t//After external exposure\n\t\tExposureTotals exposedFileTypes = getExposedFileTypes(\"el_box\", \"true\", \"10\");\n\n\t\tCustomAssertion.assertTrue(exposedFileTypes.getObjects().size() >= 0, \"File type exposure is less than zero\");\n\n\t\tfor(TotalObject totalObject : exposedFileTypes.getObjects()) {\n\t\t\tCustomAssertion.assertTrue(totalObject.getId()!= null, \"Id is null\");\n\t\t\tCustomAssertion.assertTrue(totalObject.getTerm()!= null, \"Term is null\");\n\n\t\t\tCustomAssertion.assertTrue(totalObject.getTotal() >= 0, \"Count is less than or equal to zero\");\n\t\t\tCustomAssertion.assertTrue(totalObject.getCount() >= 0, \"Count is less than or equal to zero\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "998ee509f62ef388260bd4af23fae5ad", "score": "0.5528532", "text": "@Test(dataProviderClass = BoxDataProvider.class, dataProvider = \"metricsExposuresTotal\", groups={\"DASHBOARD\", \"INTERNAL\", \"EXPOSED_USERS\", \"FILTER\"})\n\tpublic void verifyInternallyExposedUsers(String testname, String folderId, String fileName, String access, String exposureType, String server) throws Exception {\n\n\t\tFileEntry sharedFile = null;\n\t\ttry {\n\t\t\tString steps[] = {\n\t\t\t\t\t\"1. This test verify the metrics as depicted in venn diagram for users\",\n\t\t\t\t\t\"2. Upload a file and share it with \" + access + \" access.\",\n\t\t\t\"3. Verify the document count for an user get incremented after the exposure.\" };\n\n\t\t\tLogUtils.logTestDescription(steps);\n\t\t\tHashMap<String, Integer> beforeMap = new HashMap<String, Integer>();\n\t\t\tList<NameValuePair> docparams = new ArrayList<NameValuePair>(); \n\t\t\tdocparams.add(new BasicNameValuePair(SecurletsConstants.IS_INTERNAL, Boolean.TRUE.toString()));\n\t\t\tdocparams.add(new BasicNameValuePair(SecurletsConstants.APP, facility.Box.name()));\n\t\t\t//docparams.add(new BasicNameValuePair(\"name\", sharedFile.getName()));\n\n\t\t\tSecurletDocument documents = getExposedUsers(elapp.el_box.name(), docparams);\n\t\t\tCustomAssertion.assertTrue(documents.getObjects().size() >= 0, \"Exposed user documents should be greater than or equal to zero\");\n\n\t\t\tfor (com.elastica.beatle.securlets.dto.Object doc: documents.getObjects()) {\n\t\t\t\tbeforeMap.put(doc.getEmail(), doc.getDocsExposed());\n\t\t\t}\n\n\t\t\t//As an internal user expose a document\n\t\t\t//Create a file and share it\n\t\t\tsharedFile = uploadFileAndShareit(folderId, fileName, access);\n\n\t\t\t//3 mins sleep\n\t\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\t\tHashMap<String, Integer> afterMap = new HashMap<String, Integer>();\n\t\t\t//After exposure\n\t\t\tReporter.log(\"Verifying Internal user exposed document count after the exposure\", true);\n\t\t\tdocuments = getExposedUsers(elapp.el_box.name(), docparams);\n\t\t\tfor (com.elastica.beatle.securlets.dto.Object doc: documents.getObjects()) {\n\t\t\t\tafterMap.put(doc.getEmail(), doc.getDocsExposed());\n\t\t\t}\n\n\n\t\t\tCustomAssertion.assertEquals(afterMap.get(suiteData.getSaasAppUsername()), beforeMap.get(suiteData.getSaasAppUsername()) +1,\n\t\t\t\t\t\"Exposed file count for user doesn't match\");\n\n\n\t\t\t//Delete the shared link and check the count. It should be decremented by one\n\t\t\tsharedFile = universalApi.disableSharedLink(sharedFile.getId());\n\n\t\t\t//3 mins sleep\n\t\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\t\t\t//After removing exposure\n\t\t\tReporter.log(\"Verifying Internal user exposed document count after removing the exposure\", true);\n\t\t\tdocuments = getExposedUsers(elapp.el_box.name(), docparams);\n\t\t\tfor (com.elastica.beatle.securlets.dto.Object doc: documents.getObjects()) {\n\t\t\t\tafterMap.put(doc.getEmail(), doc.getDocsExposed());\n\t\t\t}\n\n\t\t\tCustomAssertion.assertEquals(afterMap.get(suiteData.getSaasAppUsername()), beforeMap.get(suiteData.getSaasAppUsername()),\n\t\t\t\t\t\"Exposed file count for user doesn't match\");\n\n\t\t}\n\n\t\tfinally{\n\t\t\tuniversalApi.deleteFile(sharedFile.getId(), sharedFile.getEtag());\n\t\t}\n\t}", "title": "" }, { "docid": "7d0df8ed883d83a843e8f1df502e3d9d", "score": "0.5513609", "text": "private void createImageCType()\n \t{\n \t\tlogger.info(\"checks for the existance of Content type, creates new content type if it does not exist\");\n \t\tContentType imagesType = new ContentType();\n \t\timagesType.setName(\"Image\");\n \t\timagesType.setContentHandler(ContentHandler.IMAGES);\n \t\timagesType.setDescription(\"content repository test\");\n \t\tboolean isExist = contentTypeService.findContentType(getTestSession(), \"Image\");\n \t\tif (!isExist)\n \t\t{\n \t\t\tcontentTypeService.createContentType(getTestSession(), imagesType);\n \t\t\tlogger.info(\"New content type with 'Images' handler was created\");\n \t\t} else\n \t\t{\n \t\t\tlogger.info(\"Image content already exists\");\n \t\t}\n \t}", "title": "" }, { "docid": "2589bd1aa503578029db68ffabc24fec", "score": "0.5509492", "text": "boolean hasContentType();", "title": "" }, { "docid": "4f64f05bb82f2cca1c462076644cdc2c", "score": "0.5456108", "text": "public void manageContentTypesVerify() throws Exception {\n\t\tmanageMenu();\n\t\t\n\t\tselenium.click(CMSConstants.MANAGE_CONTENT_TYPES);\n\t\twaitForPageToLoad(CMSConstants.PAGE_TIMEOUT);\n\t\t\n\t\t//writeFile1(\"\\nskipped: 1044\", \"\", \"\");\n\n\t\t// Write to file for checking manage content type page\n\t\t\n\t\tString quart_detailid = \"6142\";\n\t\t String quart_testname = \"ManageContentTypesPageVerify\";\n\t\t String quart_description= \"verify manage content types pages\";\n\t\t \n\t\t\tif (selenium.isTextPresent(\"Manage Content Types\"))\n\t\t\twriteFile(quart_detailid, \"pass\", quart_scriptname, quart_testname, quart_description ); \n\t\t\telse { writeFile(quart_detailid, \"fail\", quart_scriptname, quart_testname, quart_description ); }\n\t\t\n\t\t\n\t\t\t quart_detailid = \"266\";\n\t\t\t quart_testname = \"ManageContentTypesSearchText\";\n\t\t\t quart_description= \"verify manage content types search text\";\n\t\t\t \n\t\t\t\tif (selenium.isTextPresent(\"Search\"))\n\t\t\t\twriteFile(quart_detailid, \"pass\", quart_scriptname, quart_testname, quart_description ); \n\t\t\t\telse { writeFile(quart_detailid, \"fail\", quart_scriptname, quart_testname, quart_description ); }\n\t\t\t\t\n\t\t\t\t quart_detailid = \"258\";\n\t\t\t\t quart_testname = \"ManageContentTypesGroupText\";\n\t\t\t\t quart_description= \"verify manage content types group text\";\n\t\t\t\t \n\t\t\t\t\tif (selenium.isTextPresent(\"Group\"))\n\t\t\t\t\twriteFile(quart_detailid, \"pass\", quart_scriptname, quart_testname, quart_description ); \n\t\t\t\t\telse { writeFile(quart_detailid, \"fail\", quart_scriptname, quart_testname, quart_description ); }\n\t\t\t\t\t\n\t\t\t\n\t\t\t quart_detailid = \"6896\";\n\t\t\t quart_testname = \"ManageContentTypesPagesText\";\n\t\t\t quart_description= \"verify manage content types pages text\";\n\t\t\t \n\t\t\t\tif (selenium.isTextPresent(\"Pages\"))\n\t\t\t\twriteFile(quart_detailid, \"pass\", quart_scriptname, quart_testname, quart_description ); \n\t\t\t\telse { writeFile(quart_detailid, \"fail\", quart_scriptname, quart_testname, quart_description ); }\n\t\t\t\t\n\n\t\t\t quart_detailid = \"275\";\n\t\t\t quart_testname = \"ManageContentTypesAssetsText\";\n\t\t\t quart_description= \"verify manage content types assets text\";\n\t\t\t \n\t\t\t\tif (selenium.isTextPresent(\"Assets\"))\n\t\t\t\twriteFile(quart_detailid, \"pass\", quart_scriptname, quart_testname, quart_description ); \n\t\t\t\telse { writeFile(quart_detailid, \"fail\", quart_scriptname, quart_testname, quart_description ); }\n\t\t\t\t\t\t\t\t\t\n\t\t\n\t\t\t quart_detailid = \"267\";\n\t\t\t quart_testname = \"ManageContentTypesSearchForm\";\n\t\t\t quart_description= \"verify manage content types search form\";\n\t\t\t \n\t\t\tif (selenium.isElementPresent((\"//input[contains(@id, 'search-query')]\")))\n\t\t\twriteFile(quart_detailid, \"pass\", quart_scriptname, quart_testname, quart_description ); \n\t\t\telse { writeFile(quart_detailid, \"fail\", quart_scriptname, quart_testname, quart_description ); }\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t quart_detailid = \"265\";\n\t\t\t quart_testname = \"ManageContentTypesPagesCheck\";\n\t\t\t quart_description= \"verify manage content types pages checkbox\";\n\t\t\t \n\t\t\t\tif (selenium.isElementPresent((\"//input[contains(@id, 'group-groups-Pages')]\")))\n\t\t\t\twriteFile(quart_detailid, \"pass\", quart_scriptname, quart_testname, quart_description ); \n\t\t\t\telse { writeFile(quart_detailid, \"fail\", quart_scriptname, quart_testname, quart_description ); }\n\t\t\t\t\t\t\t\n\t\t\t quart_detailid = \"6897\";\n\t\t\t quart_testname = \"ManageContentTypesAssetsCheck\";\n\t\t\t quart_description= \"verify manage content types assets checkbox\";\n\t\t\t \n\t\t\t\tif (selenium.isElementPresent((\"//input[contains(@id, 'group-groups-Assets')]\")))\n\t\t\t\twriteFile(quart_detailid, \"pass\", quart_scriptname, quart_testname, quart_description ); \n\t\t\t\telse { writeFile(quart_detailid, \"fail\", quart_scriptname, quart_testname, quart_description ); }\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t// click on pages checkbox\t\n\t\t\tselenium.click(\"id=group-groups-Pages\");\n\t\t\t\t\n\t\t\t quart_detailid = \"10339\";\n\t\t\t quart_testname = \"ManageContentTypesPagesClick\";\n\t\t\t quart_description= \"verify manage content types pages click\";\n\t\t\t \n\t\t\t\tif (selenium.isElementPresent((\"//input[contains(@id, 'group-groups-Pages')]\")))\n\t\t\t\twriteFile(quart_detailid, \"pass\", quart_scriptname, quart_testname, quart_description ); \n\t\t\t\telse { writeFile(quart_detailid, \"fail\", quart_scriptname, quart_testname, quart_description ); }\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t// click on pages checkbox\t\n\t\t\t\tselenium.click(\"id=group-groups-Pages\");\n\t\t\t\t// click on assets checkbox\t\n\t\t\t\tselenium.click(\"id=group-groups-Assets\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t quart_detailid = \"10340\";\n\t\t\t\t quart_testname = \"ManageContentTypesAssetsClick\";\n\t\t\t\t quart_description= \"verify manage content types assets click\";\n\t\t\t\t \n\t\t\t\t\tif (selenium.isElementPresent((\"//input[contains(@id, 'group-groups-Assets')]\")))\n\t\t\t\t\twriteFile(quart_detailid, \"pass\", quart_scriptname, quart_testname, quart_description ); \n\t\t\t\t\telse { writeFile(quart_detailid, \"fail\", quart_scriptname, quart_testname, quart_description ); }\t\t\t\t\t\n\t\t\t\t\t\n\t\t//Back to Website\n\t\tbackToHome();\n\t}", "title": "" }, { "docid": "51137ae0a094df3b9e0d64c51a807986", "score": "0.5393741", "text": "int getContentType();", "title": "" }, { "docid": "78addb38015e95215070b29fa76d8891", "score": "0.5371794", "text": "@Test(groups={\"DASHBOARD\", \"INTERNAL\", \"EXPOSED_FILES\", \"FILTER\"})\n\tpublic void listAllInternallyExposedFilesAfterInternalExposure() throws Exception {\n\n\t\tLogUtils.logTestDescription(\"Retrieve all internally exposed files and verify only the exposed document and its fields.\");\n\n\t\tHashMap<String, String> additionalParams = new HashMap<String, String>();\n\t\tadditionalParams.put(\"exposures.types\", \"all_internal\");\n\t\tadditionalParams.put(\"offset\", \"0\");\n\t\tadditionalParams.put(\"limit\", \"1000\");\n\n\t\tReporter.log(\"Getting all the documents ...\", true);\n\t\tBoxDocument documents = getBoxDocuments(\"true\", elapp.el_box.name(), additionalParams);\n\t\tint countBefore = documents.getMeta().getTotalCount();\n\n\t\tReporter.log(\"Upload a file and share it ...\", true);\n\t\t//Expose a document internally and check the count\n\t\tFileEntry sharedFile = uploadFileAndShareit(\"/\", \"Hello.java\", \"company\");\n\n\t\t//Wait for three mins\n\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\tdocuments = getBoxDocuments(\"true\", elapp.el_box.name(), additionalParams);\n\t\tint countAfter = documents.getMeta().getTotalCount();\n\n\t\t//validate the newly added record count\n\t\tReporter.log(\"Verifying the count before and after exposure ...\", true);\n\t\tCustomAssertion.assertEquals(countAfter, countBefore+1, \"Internally exposed document not returned\");\n\t\tCustomAssertion.assertTrue(MarshallingUtils.marshall(documents).contains(sharedFile.getId()), \"Internally exposed document not returned in the records\");\n\n\n\n\t\t//validate the newly added document\n\t\t//Pass the additional params\n\t\tHashMap<String, String> hmap = new HashMap<String, String>();\n\t\thmap.put(\"createdBy\", this.saasAppUserAccount.getUsername());\n\t\thmap.put(\"ownedBy\", this.saasAppUserAccount.getUsername());\n\t\thmap.put(\"name\", sharedFile.getName());\n\t\thmap.put(\"format\", \"java\");\n\t\thmap.put(\"ownerId\", sharedFile.getOwnedBy().getId());\n\t\thmap.put(\"size\", String.valueOf(sharedFile.getSize()));\n\t\thmap.put(\"parentName\", \"All Files\");\n\t\thmap.put(\"docType\", \"file\");\n\n\t\tdocValidator.verifyDocument(documents, sharedFile.getId(), \"ALL_INTERNAL\", \"company\", hmap);\n\n\t\tReporter.log(\"Disable the sharing on the file ...\", true);\n\t\t//remove the exposure\n\t\tsharedFile = universalApi.disableSharedLink(sharedFile.getId());\n\n\t\t//Wait for three mins\n\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\tdocuments = getBoxDocuments(\"true\", elapp.el_box.name(), additionalParams);\n\t\tCustomAssertion.assertEquals(documents.getMeta().getTotalCount(), countBefore, \"Internally exposed document count not decremented\");\n\t\tCustomAssertion.assertFalse(MarshallingUtils.marshall(documents).contains(sharedFile.getId()), \"Internally exposed document not returned in the records\");\n\n\t\t//clean up file\n\t\tuniversalApi.deleteFile(sharedFile.getId(), sharedFile.getEtag());\n\n\t}", "title": "" }, { "docid": "c6b5b91d9d619ead8236e831318db02a", "score": "0.5307516", "text": "@Test(dataProviderClass = BoxDataProvider.class, dataProvider = \"metricsFolderExposuresTotal\", groups={\"DASHBOARD\", \"INTERNAL\", \"EXPOSED_FILES\", \"FILTER\"})\n\tpublic void verifyExposuresMetricsForFolderExposures(String testname, String fileName, String access, \n\t\t\tString exposureType, String[] collaborators, String server) throws Exception {\n\n\t\tString steps[] = {\n\t\t\t\t\"1. This test verify the metrics as depicted in venn diagram \",\n\t\t\t\t\"2. Upload a folder and file and share it with \" + access + \" access.\",\n\t\t\"3. Verify the exposure totals get incremented after the exposure.\" };\n\n\t\tLogUtils.logTestDescription(steps);\n\n\t\tBoxFolder sharedFolder = null;\n\t\tString uniqueFolderId= UUID.randomUUID().toString();\n\n\t\tReporter.log(\"Started test \"+testname, true);\n\n\t\t//create folder1\n\t\tBoxFolder folderObj = universalApi.createFolder(uniqueFolderId);\n\t\tString folderId = folderObj.getId();\n\n\t\ttry {\n\n\t\t\t//Get the exposure count\n\t\t\tlong countPublic = 0;\n\t\t\tlong countInternal = 0;\n\t\t\tlong countExternal = 0;\n\n\t\t\tList<NameValuePair> qparams = new ArrayList<NameValuePair>(); \n\t\t\tqparams.add(new BasicNameValuePair(SecurletsConstants.IS_INTERNAL, Boolean.TRUE.toString()));\n\t\t\tqparams.add(new BasicNameValuePair(SecurletsConstants.APP, facility.Box.name()));\n\n\t\t\tReporter.log(\"Internal exposure metrics totals before the exposure\", true);\n\t\t\tExposureTotals exposureTotals = getExposuresMetricsTotal(elapp.el_box.name(), qparams);\n\n\t\t\tcountPublic = exposureTotals.getPublicExposouresCount();\n\t\t\tcountInternal = exposureTotals.getInternalExposouresCount();\n\t\t\tcountExternal = exposureTotals.getExternalExposouresCount();\n\n\t\t\tReporter.log(\"Public count:\"+countPublic, true);\n\t\t\tReporter.log(\"Internal count:\"+countInternal, true);\n\t\t\tReporter.log(\"External count:\"+countExternal, true);\n\n\t\t\t//Share the folder as specified in data providers\n\t\t\tReporter.log(\"Exposing the folder ...\", true);\n\t\t\tsharedFolder = shareTheFolderPubliclyOrWithCollaborators(folderId, fileName, access, collaborators, null);\n\n\t\t\t//3 mins sleep\n\t\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\t\t//After exposure\n\t\t\texposureTotals = getExposuresMetricsTotal(elapp.el_box.name(), qparams);\n\t\t\tReporter.log(\"Internal exposure metrics totals after the exposure\", true);\n\t\t\tReporter.log(\"Public count:\"+exposureTotals.getPublicExposouresCount(), true);\n\t\t\tReporter.log(\"Internal count:\"+exposureTotals.getInternalExposouresCount(), true);\n\t\t\tReporter.log(\"External count:\"+exposureTotals.getExternalExposouresCount(), true);\n\n\t\t\tif (exposureType.equals(ExposureTypes.PUBLIC.name().toLowerCase())) {\n\t\t\t\tCustomAssertion.assertEquals(countPublic+2, exposureTotals.getPublicExposouresCount(), \"Public exposure count not incremented\");\n\t\t\t\tCustomAssertion.assertEquals(countInternal, exposureTotals.getInternalExposouresCount(), \"Internal exposure shouldn't change\");\n\t\t\t\tCustomAssertion.assertEquals(countExternal, exposureTotals.getExternalExposouresCount(), \"External exposure shouldn't change\");\n\n\t\t\t} else if (exposureType.equals(ExposureTypes.COMPANY.name().toLowerCase())) {\n\t\t\t\tCustomAssertion.assertEquals(countPublic, exposureTotals.getPublicExposouresCount(), \"Public exposure count not incremented\");\n\t\t\t\tCustomAssertion.assertEquals(countInternal+2, exposureTotals.getInternalExposouresCount(), \"Internal exposure shouldn't change\");\n\t\t\t\tCustomAssertion.assertEquals(countExternal, exposureTotals.getExternalExposouresCount(), \"External exposure shouldn't change\");\n\n\t\t\t}else if(exposureType.equals(ExposureTypes.EXTERNAL.name().toLowerCase())) {\n\t\t\t\t//As it is shared with collaborators on file basis, it should not get incremented\n\t\t\t\tCustomAssertion.assertEquals(countPublic, exposureTotals.getPublicExposouresCount(), \"Public exposure shouldn't change\");\n\t\t\t\tCustomAssertion.assertEquals(countInternal, exposureTotals.getInternalExposouresCount(), \"Internal exposure shouldn't change\");\n\t\t\t\tCustomAssertion.assertEquals(countExternal+2, exposureTotals.getExternalExposouresCount(), \"External exposure shouldn't change\");\n\n\t\t\t} else if(exposureType.equals(ExposureTypes.INTERNAL.name().toLowerCase())) {\n\t\t\t\t//If shared with one or two internal collabs, then it is not internal exposure\n\t\t\t\tCustomAssertion.assertEquals(countPublic, exposureTotals.getPublicExposouresCount(), \"Public exposure count shouldn't change\");\n\t\t\t\tCustomAssertion.assertEquals(countInternal, exposureTotals.getInternalExposouresCount(), \"Internal exposure count not incremented\");\n\t\t\t\tCustomAssertion.assertEquals(countExternal, exposureTotals.getExternalExposouresCount(), \"External exposure shouldn't change\");\n\n\t\t\t} else if (exposureType.equals(ExposureTypes.INTERNAL_EXTERNAL.name().toLowerCase())) {\n\t\t\t\t//If shared with one or two internal collabs, then it is not internal exposure\n\t\t\t\tCustomAssertion.assertEquals(countPublic, exposureTotals.getPublicExposouresCount(), \"Public exposure count shouldn't change\");\n\t\t\t\tCustomAssertion.assertEquals(countInternal, exposureTotals.getInternalExposouresCount(), \"Internal exposure count not incremented\");\n\t\t\t\tCustomAssertion.assertEquals(countExternal+2, exposureTotals.getExternalExposouresCount(), \"External exposure shouldn't change\");\n\t\t\t}\n\n\t\t\t//Delete the shared link and check the count. It should be decremented by one\n\t\t\tsharedFolder = universalApi.disableSharedLinkForFolder(sharedFolder.getId());\n\n\t\t\tCollaborations collaborations = universalApi.getFolderCollaborations(folderId);\n\n\t\t\tfor (BoxCollaboration collaboration : collaborations.getEntries()) {\n\t\t\t\tuniversalApi.deleteCollaboration(collaboration);\n\t\t\t}\n\n\t\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\t\tReporter.log(\"Internal exposure metrics totals after removing the exposure\", true);\n\t\t\tReporter.log(\"Public count:\"+exposureTotals.getPublicExposouresCount(), true);\n\t\t\tReporter.log(\"Internal count:\"+exposureTotals.getInternalExposouresCount(), true);\n\t\t\tReporter.log(\"External count:\"+exposureTotals.getExternalExposouresCount(), true);\n\t\t\texposureTotals = getExposuresMetricsTotal(elapp.el_box.name(), qparams);\n\n\t\t\tCustomAssertion.assertEquals(countPublic, exposureTotals.getPublicExposouresCount(), \"Public exposure count not incremented\");\n\t\t\tCustomAssertion.assertEquals(countInternal, exposureTotals.getInternalExposouresCount(), \"Internal exposure shouldn't change\");\n\t\t\tCustomAssertion.assertEquals(countExternal, exposureTotals.getExternalExposouresCount(), \"External exposure shouldn't change\");\n\n\t\t}\n\n\t\tfinally{\n\n\t\t\t//Delete the folder as well\n\t\t\tfolderObj = universalApi.getFolderInfo(folderId);\n\t\t\tuniversalApi.deleteFolder(folderId, true, folderObj.getEtag());\n\t\t}\n\t}", "title": "" }, { "docid": "52082dbc9ffdb4a2188230c4495efd07", "score": "0.52879816", "text": "@Test\n public void testGetSupportedMIMETypes() {\n System.out.println(\"getSupportedMIMETypes\");\n boolean expResult = true;\n Set<String> result = BitmapEncoderRegistry.getSupportedMIMETypes();\n assertEquals(expResult, result.contains(\"image/jpeg\"));\n assertEquals(!expResult, result.contains(\"image/jpg\"));\n }", "title": "" }, { "docid": "a9f2a44a26f8cf9be15aff748f0cf721", "score": "0.5272034", "text": "@Test(groups={\"DASHBOARD\", \"INTERNAL\", \"EXPOSED_FILES\", \"FILTER\"})\n\tpublic void verifyVulnerabilityTypesWithFilters() throws Exception {\n\n\t\tLogger.info( \"Getting vulnerability types ...\");\n\n\t\tHashMap<String, String> additionalParams = new HashMap<String, String>();\n\t\tadditionalParams.put(\"is_internal\", \"true\");\n\t\tadditionalParams.put(\"vl_types\", \t\"all\");\n\n\t\tHashMap<String, Integer> vlmap = new HashMap<String, Integer>();\n\n\t\t//getVulnerabilityTypes\n\t\tVulnerabilityTypes vulnerabilityTypes = getVulnerabilityTypes(\"el_box\", additionalParams);\n\n\t\tString vulnerabilities[] = {\"pci\", \"pii\", \"hipaa\", \"source_code\", \"virus\", \"dlp\", \"encryption\", \"vba_macros\", \"glba\", \"ferpa\"};\n\n\t\tfor (String vl : vulnerabilities) {\n\t\t\tvlmap.put(vl, vulnerabilityTypes.getObjects().getVulnerabilityCount(vl));\n\t\t}\n\n\t\tfor(CiqProfile ciqprofile : vulnerabilityTypes.getObjects().getCiqProfiles()) {\n\t\t\tvlmap.put(ciqprofile.getId(), ciqprofile.getTotal());\n\t\t}\n\n\t\t//Filter it\n\t\tfor (String vl : vulnerabilities) {\n\t\t\tadditionalParams.clear();\n\t\t\tadditionalParams.put(\"is_internal\", \"true\");\n\t\t\tadditionalParams.put(\"vl_types\", \tvl);\n\t\t\tvulnerabilityTypes = getVulnerabilityTypes(\"el_box\", additionalParams);\n\t\t\tCustomAssertion.assertEquals(vulnerabilityTypes.getObjects().getVulnerabilityCount(vl), vlmap.get(vl), vl + \" count should be equal\");\n\t\t}\n\t}", "title": "" }, { "docid": "12477e6485638c49539b90afc5d243cb", "score": "0.5255941", "text": "private boolean testDataModel( String strType ) {\r\n \r\n boolean bProcessThisOne = false;\r\n\r\n // This is where you set the Data Model filter\r\n if (strType.equals(\"UMD_IMAGE\")) {\r\n ImageCounter++;\r\n bProcessThisOne = false;\r\n } else if (strType.equals(\"UMD_VIDEO\")) {\r\n VideoCounter++;\r\n bProcessThisOne = true;\r\n } else if (strType.equals(\"UMD_BOOK\")) {\r\n BookCounter++;\r\n bProcessThisOne = false;\r\n } else if (strType.equals(\"UMD_TEI\")) {\r\n TEIcounter++;\r\n bProcessThisOne = false;\r\n } else if (strType.equals(\"UMD_EAD\")) {\r\n EADcounter++;\r\n bProcessThisOne = false;\r\n } else {\r\n MiscCounter++;\r\n bProcessThisOne = false;\r\n }\r\n \r\n return bProcessThisOne;\r\n \r\n }", "title": "" }, { "docid": "a6d682b6a292df1bcdb236a1288a2779", "score": "0.524719", "text": "@Test\n public void documentTypeTest() {\n // TODO: test documentType\n }", "title": "" }, { "docid": "d3ad0a17b818b260d7247ad7da958574", "score": "0.52353114", "text": "MDCoverageContentTypeCodePropertyType getContentType();", "title": "" }, { "docid": "23899fc63160c8e44cc59cf7891ea96e", "score": "0.5181058", "text": "@Test\n\tpublic void testGetContentTypeByTag() {\n\t\tassertEquals(ContentType.SAVE, ContentType.getContentTypeByTag(\"Save\"));\n\t\tassertEquals(ContentType.EVENT, ContentType.getContentTypeByTag(\"Event\"));\n\t\tassertEquals(ContentType.LOCATION, ContentType.getContentTypeByTag(\"Location\"));\n\t\tassertEquals(ContentType.CHARACTER, ContentType.getContentTypeByTag(\"Character\"));\n\t}", "title": "" }, { "docid": "6f0c9aa352375f3ffa650182dd37abc7", "score": "0.51777756", "text": "int getTestTypesCount();", "title": "" }, { "docid": "a6c6101f40aefa67ee57f21e811e3db9", "score": "0.5170347", "text": "void isValidType(String contentType) throws InvalidContentTypeException;", "title": "" }, { "docid": "8ad8e6af2f314e2aadb33cef2342125c", "score": "0.51430476", "text": "public boolean testPredefinedtype(EIfcoccupant type) throws SdaiException;", "title": "" }, { "docid": "ca98f80ab6d0c7be057fcf8839a3f261", "score": "0.514202", "text": "private static boolean identifyContent(String url){\n\t\tString ext = url.substring((url.lastIndexOf(\".\") + 1), url.length());\n\t\tif (fileTypes.contains(ext.toLowerCase())){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8a29cde8d3c88a4c393212fd67141b29", "score": "0.51300365", "text": "public void setExposureType(typekey.ExposureType value);", "title": "" }, { "docid": "393f09f7e576cef971ffd7068cdd4e5c", "score": "0.5106943", "text": "@Test(groups={\"DASHBOARD\", \"INTERNAL\", \"EXPOSED_FILES\", \"FILTER\"})\n\tpublic void getAllInternalExposureTotalsOnly() throws Exception {\n\t\tLogUtils.logTestDescription(\"Get all internal exposure totals\");\n\t\tHashMap<String, String> additionalParams = new HashMap<String, String>();\n\t\tadditionalParams.put(\"file_exposures\", \"internal\");\n\t\tExposureTotals beforeExposureTotals = getExposuresMetricsTotal(\"true\", facility.Box.name(), additionalParams);\n\n\t\tlong internalCount = beforeExposureTotals.getInternalExposouresCount();\n\n\t\t//Expose a document internally and check the count\n\t\tFileEntry sharedFile = uploadFileAndShareit(\"/\", \"Hello.java\", \"company\");\n\n\t\t//Wait for three mins\n\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\tExposureTotals afterExpsoureTotals = getExposuresMetricsTotal(\"true\", facility.Box.name(), additionalParams);\n\n\t\tCustomAssertion.assertEquals(afterExpsoureTotals.getInternalExposouresCount(), beforeExposureTotals.getInternalExposouresCount()+1, \"Internally exposed document count not incremented\");\n\t\tCustomAssertion.assertEquals(afterExpsoureTotals.getExternalExposouresCount(), beforeExposureTotals.getExternalExposouresCount(), \"External exposure value greater than zero in internal only filter\");\n\t\tCustomAssertion.assertEquals(afterExpsoureTotals.getPublicExposouresCount(), beforeExposureTotals.getPublicExposouresCount(), \"Public exposure value greater than zero in internal only filter\");\n\n\t\t//remove the exposure\n\t\tsharedFile = universalApi.disableSharedLink(sharedFile.getId());\n\n\t\t//Wait for three mins\n\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\t\tafterExpsoureTotals = getExposuresMetricsTotal(\"true\", facility.Box.name(), additionalParams);\n\n\t\tCustomAssertion.assertEquals(afterExpsoureTotals.getInternalExposouresCount(), internalCount, \"Internally exposed document count not decrmented\");\n\n\t\t//clean up file\n\t\tuniversalApi.deleteFile(sharedFile.getId(), sharedFile.getEtag());\n\t}", "title": "" }, { "docid": "c7d8eed29302e208c29cfd68b55d1484", "score": "0.5101", "text": "@Test\n\tpublic void testAddingEditingRemovingDocumentTypes() {\n\t\t\n\t\tLOGIN();\n\t\t\n\t\t// Get our urls and a list of fields.\n\t\tfinal String ADD_URL = Router.reverse(\"settings.ConfigurableSettingsTab.addDocumentTypeJSON\").url;\n\t\tfinal String EDIT_URL = Router.reverse(\"settings.ConfigurableSettingsTab.editDocumentTypeJSON\").url;\n\t\tfinal String REMOVE_URL = Router.reverse(\"settings.ConfigurableSettingsTab.removeDocumentTypeJSON\").url;\n\n\t\t// Add a new custom action\n\t\tMap<String,String> params = new HashMap<String,String>();\n\t\tparams.put(\"name\",\"New Document Type\");\n\t\tparams.put(\"level\", String.valueOf(DegreeLevel.UNDERGRADUATE.getId()));\n\t\tResponse response = POST(ADD_URL,params);\n\t\tassertContentMatch(\"\\\"success\\\": \\\"true\\\"\", response);\n\t\t\n\t\t// Extract the id of the newly created action.\n\t\tPattern ID_PATTERN = Pattern.compile(\"\\\"id\\\": ([0-9]+), \");\n\t\tMatcher tokenMatcher = ID_PATTERN.matcher(getContent(response));\n\t\tassertTrue(tokenMatcher.find());\n\t\tString idString = tokenMatcher.group(1);\n\t\tassertNotNull(idString);\n\t\tLong id = Long.valueOf(idString);\n\t\t\n\t\t// Verify the action exists in the database.\n\t\tJPA.em().getTransaction().commit();\n\t\tJPA.em().clear();\n\t\tJPA.em().getTransaction().begin();\n\t\tassertNotNull(settingRepo.findDocumentType(id));\n\t\tassertEquals(\"New Document Type\",settingRepo.findDocumentType(id).getName());\n\t\tassertEquals(DegreeLevel.UNDERGRADUATE,settingRepo.findDocumentType(id).getLevel());\n\n\t\t\n\t\t// Now edit the custom action\n\t\tparams.clear();\n\t\tparams.put(\"documentTypeId\",\"documentType_\"+id);\n\t\tparams.put(\"name\", \"Changed Name\");\n\t\tparams.put(\"level\", String.valueOf(DegreeLevel.DOCTORAL.getId()));\n\t\tresponse = POST(EDIT_URL,params);\n\t\t\n\t\t// Verify the action was updated in the database.\n\t\tJPA.em().getTransaction().commit();\n\t\tJPA.em().clear();\n\t\tJPA.em().getTransaction().begin();\n\t\tassertEquals(\"Changed Name\",settingRepo.findDocumentType(id).getName());\n\t\tassertEquals(DegreeLevel.DOCTORAL,settingRepo.findDocumentType(id).getLevel());\n\n\t\t\n\t\t// Now remove the custom action\n\t\tparams.clear();\n\t\tparams.put(\"documentTypeId\",\"documentType_\"+id);\n\t\tresponse = POST(REMOVE_URL,params);\n\t\tassertContentMatch(\"\\\"success\\\": \\\"true\\\"\", response);\n\t\t\n\t\t// Verify the action was deleted in the database;\n\t\tJPA.em().getTransaction().commit();\n\t\tJPA.em().clear();\n\t\tJPA.em().getTransaction().begin();\n\t\tassertNull(settingRepo.findDocumentType(id));\n\t}", "title": "" }, { "docid": "4c2f51c5a921fd4867c95f6b7e696793", "score": "0.5093087", "text": "protected abstract boolean isContentType(String schemaId, String schemaVersion, String systemId, String publicId);", "title": "" }, { "docid": "f71b63a13b5c93f7cc90891ed8701ee2", "score": "0.5083833", "text": "@Test\n public void testAddMetaData() {\n System.out.println(\"addMetaData\");\n String type = \"interactoin-log\";\n String description = \"Test description\";\n String docurl = \"test/document/location\";\n String fileLocation = \"test/file/location\";\n instance.addMetaData(type, description, docurl, fileLocation);\n }", "title": "" }, { "docid": "9539136a458bc12cd9439d521798241c", "score": "0.5067111", "text": "@Test\n public void typeTest() {\n // TODO: test type\n }", "title": "" }, { "docid": "9539136a458bc12cd9439d521798241c", "score": "0.5067111", "text": "@Test\n public void typeTest() {\n // TODO: test type\n }", "title": "" }, { "docid": "9539136a458bc12cd9439d521798241c", "score": "0.5067111", "text": "@Test\n public void typeTest() {\n // TODO: test type\n }", "title": "" }, { "docid": "9539136a458bc12cd9439d521798241c", "score": "0.5067111", "text": "@Test\n public void typeTest() {\n // TODO: test type\n }", "title": "" }, { "docid": "9539136a458bc12cd9439d521798241c", "score": "0.5067111", "text": "@Test\n public void typeTest() {\n // TODO: test type\n }", "title": "" }, { "docid": "9539136a458bc12cd9439d521798241c", "score": "0.5067111", "text": "@Test\n public void typeTest() {\n // TODO: test type\n }", "title": "" }, { "docid": "bd4024fd7df7b44bcfeab2d90d3a76ae", "score": "0.5028725", "text": "@Test\n \tpublic void testFullImageDSPresent() throws IOException {\n\t\tKConfiguration.getInstance().getConfiguration().setProperty(\"_fedoraTomcatHost\",\"http://vmkramerius:8080\");\n \t\tInjector inj = injector();\n \t\tFedoraAccess fa = inj.getInstance(FedoraAccess.class);\n \t\tboolean ifPresent = fa.isImageFULLAvailable(\"0eaa6730-9068-11dd-97de-000d606f5dc6\");\n \t\tTestCase.assertFalse(ifPresent);\n \t\t\n \t\t// uuid stranka z dorbnustek = IMG_FULL present\n \t\tifPresent = fa.isImageFULLAvailable(\"4308eb80-b03b-11dd-a0f6-000d606f5dc6\");\n \t\tTestCase.assertTrue(ifPresent);\n \t}", "title": "" }, { "docid": "02ce1cf302cacab8a7357a31f76ea956", "score": "0.5014744", "text": "public int parseContentType(XmlPullParser xmlPullParser) {\n String attributeValue = xmlPullParser.getAttributeValue(null, \"contentType\");\n if (TextUtils.isEmpty(attributeValue)) {\n return -1;\n }\n if (MimeTypes.BASE_TYPE_AUDIO.equals(attributeValue)) {\n return 1;\n }\n if (\"video\".equals(attributeValue)) {\n return 2;\n }\n if (MimeTypes.BASE_TYPE_TEXT.equals(attributeValue)) {\n return 3;\n }\n return -1;\n }", "title": "" }, { "docid": "54df094d676f0f730c3879d96228b5f0", "score": "0.50095105", "text": "public void generalCountCellsType(String content) {\n type.computeIfAbsent(content, val -> 0);\n type.computeIfPresent(content, (key, oldVal) -> oldVal + 1);\n }", "title": "" }, { "docid": "1a012c01179843544026018abe07a1b3", "score": "0.49952042", "text": "public boolean testObjecttype(EIfccontext type) throws SdaiException;", "title": "" }, { "docid": "6881e87dc2a716d2c407603ee17e7245", "score": "0.49788073", "text": "public void testMetaDataAnd() {\n\t}", "title": "" }, { "docid": "0493cc66aef74811bc612b69530c3acc", "score": "0.49699208", "text": "public final void testSupportedContentTypes() throws Exception {\n registerUri(\"http://foo/bar.js\", \"foo()\", \"text/javascript\");\n registerUri(\"http://foo/bar.html\", \"<b>Hello</b>\", \"text/html\");\n {\n JSONObject result = requestGet(\n \"?url=http://foo/bar.js&input-mime-type=text/javascript\"\n + cajaBuildVersionParam);\n assertNotNull(result.get(\"js\"));\n assertNoError(result);\n }\n {\n JSONObject result = requestGet(\n \"?url=http://foo/bar.html&input-mime-type=text/html\"\n + cajaBuildVersionParam);\n assertNotNull(result.get(\"js\"));\n assertNotNull(result.get(\"html\"));\n assertNoError(result);\n }\n }", "title": "" }, { "docid": "91a4d01453315d8bba6d3dbb62e54ea6", "score": "0.4969637", "text": "@Test\n public void testGetSize()\n {\n System.out.println(\"==getSize==\");\n Content instance = new Content();\n int expResult = 0;\n int result = instance.getSize();\n assertEquals(expResult, result);\n instance = new Content(this.byteContent);\n assertEquals(32, instance.getSize());\n }", "title": "" }, { "docid": "375b64e368ff1b4d187f65b1031e2325", "score": "0.49607188", "text": "public void testGetType() {\n\n\n // content://com.example.android.sunshine.app/popular/\n String type = mContext.getContentResolver().getType(MostPopularEntry.CONTENT_URI);\n // vnd.android.cursor.dir/com.example.android.sunshine.app/weather\n assertEquals(\"Error: the MostPopularEntry CONTENT_URI should return MostPopularEntry.CONTENT_TYPE\",\n MostPopularEntry.CONTENT_TYPE, type);\n\n\n\n int testMovie = 1;\n // content://com.example.android.sunshine.app/popular/1\n String type1 = mContext.getContentResolver().getType(\n MostPopularEntry.buildPopularUri(testMovie));\n // vnd.android.cursor.dir/com.example.android.sunshine.app/popular\n assertEquals(\"Error: the PopularMovieEntry CONTENT_URI should return PopularMovieEntry.CONTENT_Type\",\n MostPopularEntry.CONTENT_ITEM_TYPE, type1);\n\n\n // content://com.example.android.sunshine.app/MostPopularTrailers/\n String type2 = mContext.getContentResolver().getType(MostPopularTrailers.CONTENT_URI);\n // vnd.android.cursor.dir/com.example.android.sunshine.app/location\n assertEquals(\"Error: the Most Popular trailers CONTENT_URI should return MostPopularTrailers.CONTENT_TYPE\",\n MostPopularTrailers.CONTENT_TYPE, type2);\n\n // content://com.example.android.sunshine.app/MostPopularReviews/\n String type3 = mContext.getContentResolver().getType(MovieContract.MostPopularReviews.CONTENT_URI);\n // vnd.android.cursor.dir/com.example.android.sunshine.app/location\n assertEquals(\"Error: the Most popular reviews CONTENT_URI should return MostPopularReviews.CONTENT_TYPE\",\n MovieContract.MostPopularReviews.CONTENT_TYPE, type3);\n\n\n }", "title": "" }, { "docid": "06f249905bbd057de395d8b19cc0d7ab", "score": "0.49503753", "text": "protected boolean isTypeSupported(ATerm type) {\n return true;\n }", "title": "" }, { "docid": "b38f05b6618a84847482ea556c0a03fe", "score": "0.49362412", "text": "@Test\n public void wtypeTest() {\n // TODO: test wtype\n }", "title": "" }, { "docid": "d8d2af93ac15c69a3d25879250c81112", "score": "0.49360695", "text": "@java.lang.Override\n public int getTestTypesCount() {\n return testTypes_.size();\n }", "title": "" }, { "docid": "67a64139ee9693b6ba5234399e3f8fc5", "score": "0.49338624", "text": "@Test\n\tpublic void exposeNonRiskFileAndCheckExposedFilesAndOtherRisks() throws Exception {\n\n\t\tString steps[] = {\n\t\t\t\t\"1. This test verify the exposed document list after uploading and exposing a document.\",\n\t\t\t\t\"2. Upload a nonrisk file and expose it publically.\",\n\t\t\t\t\"3. Verify the publicly shared document is present in the exposed files tab.\",\n\t\t\t\t\"4. Verify the publicly shared document is not present in the other risks tab.\",\n\t\t\t\t\"5. Remove the exposure.\",\n\t\t\t\t\"6. Verify the publicly shared document is not present in the exposed files tab.\",\n\t\t\t\t\"7. Verify the publicly shared document is not present in the other risks tab.\",\n\t\t};\n\n\t\tLogUtils.logTestDescription(steps);\n\n\t\tFileEntry sharedFile = null;\n\t\ttry {\n\n\t\t\tString filename = \"test.pdf\";\n\t\t\t//Create a file and share it\n\n\t\t\tsharedFile = uploadFileAndShareit(\"/\", filename, \"open\");\n\n\t\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\t\t//Get the exposed documents and check the document is publicly exposed\n\t\t\tList<NameValuePair> docparams = new ArrayList<NameValuePair>(); \n\t\t\tdocparams.add(new BasicNameValuePair(SecurletsConstants.IS_INTERNAL, Boolean.TRUE.toString()));\n\t\t\tdocparams.add(new BasicNameValuePair(SecurletsConstants.APP, facility.Box.name()));\n\t\t\tdocparams.add(new BasicNameValuePair(\"name\", sharedFile.getName()));\n\t\t\tSecurletDocument documents = getExposedDocuments(elapp.el_box.name(), docparams);\n\n\t\t\tReporter.log(\"After exposure, checking the publicly shared document is present in the exposed files tab...\", true);\n\t\t\tdocValidator.verifyPubliclyExposedDocument(documents, this.saasAppUserAccount, sharedFile.getName(), \"file\");\n\n\t\t\t//Get the other risk and check the document it is not listed\n\t\t\tReporter.log(\"After exposure, checking the publicly shared document is present in the other risks tab...\", true);\n\t\t\tSecurletDocument riskyDocuments = getRiskyDocuments(elapp.el_box.name(), docparams);\n\t\t\tCustomAssertion.assertEquals(riskyDocuments.getMeta().getTotalCount(), 0, \"Other risk is not zero\");\n\n\t\t\tReporter.log(\"Disabling the share on \"+ sharedFile.getName(), true);\n\t\t\tsharedFile = universalApi.disableSharedLink(sharedFile.getId());\n\n\t\t\t//3 mins sleep\n\t\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\t\tReporter.log(\"After removing exposure, checking the publicly shared document is still present in the exposed files tab...\", true);\n\t\t\tdocuments = getExposedDocuments(elapp.el_box.name(), docparams);\n\t\t\tCustomAssertion.assertEquals(documents.getMeta().getTotalCount(), 0, \"Exposed files count is not zero\");\n\n\t\t\tReporter.log(\"After removing exposure, checking the exposure not moved to other risk...\", true);\n\t\t\triskyDocuments = getRiskyDocuments(elapp.el_box.name(), docparams);\n\t\t\tCustomAssertion.assertEquals(riskyDocuments.getMeta().getTotalCount(), 0, \"Other risk is not zero\");\n\t\t}\n\n\t\tfinally{\n\t\t\tuniversalApi.deleteFile(sharedFile.getId(), sharedFile.getEtag());\n\t\t}\n\t}", "title": "" }, { "docid": "601f42312f0f794843960083482c0eea", "score": "0.49210018", "text": "private void contentType(ContentType contentType) {\n requestSpecification.contentType(contentType);\n }", "title": "" }, { "docid": "197d4c93a99684297676619564ce7f88", "score": "0.49143663", "text": "public boolean testName(EIfccurvestylefontandscaling type) throws SdaiException;", "title": "" }, { "docid": "c57670f662554a40e7b7b68890184e0c", "score": "0.48956332", "text": "@Test\n public void numberTypeTest() {\n // TODO: test numberType\n }", "title": "" }, { "docid": "b0c2ddc1c1dbab8b0dd9b50e0690d655", "score": "0.48875624", "text": "public int getContentType(Format format) {\n String str = format.sampleMimeType;\n if (TextUtils.isEmpty(str)) {\n return -1;\n }\n if (MimeTypes.isVideo(str)) {\n return 2;\n }\n if (MimeTypes.isAudio(str)) {\n return 1;\n }\n if (mimeTypeIsRawText(str)) {\n return 3;\n }\n return -1;\n }", "title": "" }, { "docid": "c7f8ea671a2f006eda118e5323019616", "score": "0.48845044", "text": "@Then(\"content type is should be json\")\n public void content_type_is_should_be_json() {\n\n assertEquals(\"application/json; charset=utf-8\", response.contentType());\n\n }", "title": "" }, { "docid": "180e11f3dda9b924686b33c1bbda0dc2", "score": "0.48758134", "text": "@Test\n\tpublic void exposeRiskFileAndCheckExposedFilesAndOtherRisks() throws Exception {\n\n\t\tString steps[] = {\n\t\t\t\t\"1. This test verify the exposed document list after uploading and exposing a document.\",\n\t\t\t\t\"2. Upload a risk file and expose it publically.\",\n\t\t\t\t\"3. Verify the publicly shared document is present in the exposed files tab.\",\n\t\t\t\t\"4. Verify the publicly shared document is not present in the other risks tab.\",\n\t\t\t\t\"5. Remove the exposure.\",\n\t\t\t\t\"6. Verify the publicly shared document is not present in the exposed files tab.\",\n\t\t\t\t\"7. Verify the publicly shared document is present in the other risks tab.\",\n\t\t};\n\n\t\tLogUtils.logTestDescription(steps);\n\n\t\tFileEntry sharedFile = null;\n\t\ttry {\n\n\t\t\tString filename = \"Box_HIPAA_Test2.txt\";\n\t\t\t//Create a file and share it\n\n\t\t\tsharedFile = uploadFileAndShareit(\"/\", filename, \"open\");\n\n\t\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\n\t\t\t//Get the exposed documents and check the document is publicly exposed\n\t\t\tList<NameValuePair> docparams = new ArrayList<NameValuePair>(); \n\t\t\tdocparams.add(new BasicNameValuePair(SecurletsConstants.IS_INTERNAL, Boolean.TRUE.toString()));\n\t\t\tdocparams.add(new BasicNameValuePair(SecurletsConstants.APP, facility.Box.name()));\n\t\t\tdocparams.add(new BasicNameValuePair(\"name\", sharedFile.getName()));\n\t\t\tSecurletDocument documents = getExposedDocuments(elapp.el_box.name(), docparams);\n\n\t\t\tReporter.log(\"After exposure, checking the publicly shared document is present in the exposed files tab...\", true);\n\t\t\tdocValidator.verifyPubliclyExposedDocument(documents, this.saasAppUserAccount, sharedFile.getName(), \"file\");\n\n\t\t\t//Get the other risk and check the document it is not listed\n\t\t\tReporter.log(\"After exposure, checking the publicly shared document is present in the other risks tab...\", true);\n\t\t\tSecurletDocument riskyDocuments = getRiskyDocuments(elapp.el_box.name(), docparams);\n\t\t\tCustomAssertion.assertEquals(riskyDocuments.getMeta().getTotalCount(), 0, \"Other risk is not zero\");\n\n\t\t\tReporter.log(\"Disabling the share on \"+ sharedFile.getName(), true);\n\t\t\tsharedFile = universalApi.disableSharedLink(sharedFile.getId());\n\n\t\t\t//3 mins sleep\n\t\t\tsleep(CommonConstants.THREE_MINUTES_SLEEP);\n\t\t\t\n\n\t\t\tReporter.log(\"After removing exposure, checking the publicly shared document is still present in the exposed files tab...\", true);\n\t\t\tdocuments = getExposedDocuments(elapp.el_box.name(), docparams);\n\t\t\tCustomAssertion.assertEquals(documents.getMeta().getTotalCount(), 0, \"Exposed files count is not zero\");\n\n\t\t\tReporter.log(\"After removing exposure, checking the exposure moved to other risk...\", true);\n\t\t\triskyDocuments = getRiskyDocuments(elapp.el_box.name(), docparams);\n\t\t\tCustomAssertion.assertEquals(riskyDocuments.getMeta().getTotalCount(), 1, \"Other risk is not zero\");\n\t\t\tdocValidator.verifyUnexposedDocument(riskyDocuments, this.saasAppUserAccount, sharedFile.getName(), \"file\");\n\t\t}\n\n\t\tfinally{\n\t\t\t//universalApi.deleteFile(sharedFile.getId(), sharedFile.getEtag());\n\t\t}\n\t}", "title": "" }, { "docid": "ae187429b5d22c891914d2337d83fb15", "score": "0.48684376", "text": "int getTypeCount();", "title": "" }, { "docid": "ae187429b5d22c891914d2337d83fb15", "score": "0.48684376", "text": "int getTypeCount();", "title": "" }, { "docid": "c8074431ae0ed2e27a40a42ff0391f7d", "score": "0.48520902", "text": "public boolean testRepresentationcontexts(EIfccontext type) throws SdaiException;", "title": "" }, { "docid": "e0d46298c3a5fdd0877d8646285bcb29", "score": "0.48506948", "text": "public void testCreateModifyDestroyRecordTypesCapability()\n {\n checkPermission(AuthenticationUtil.getSystemUserName(), filePlan, RMPermissionModel.CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.ALLOWED);\n checkPermission(rm_administrator, filePlan, RMPermissionModel.CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.ALLOWED);\n checkPermission(rm_records_manager, filePlan, RMPermissionModel.CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.ALLOWED);\n checkPermission(rm_security_officer, filePlan, RMPermissionModel.CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.DENIED);\n checkPermission(rm_power_user, filePlan, RMPermissionModel.CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.DENIED);\n checkPermission(rm_user, filePlan, RMPermissionModel.CREATE_MODIFY_DESTROY_RECORD_TYPES, AccessStatus.DENIED);\n }", "title": "" }, { "docid": "eaf29891176938f9fe83a85310531d90", "score": "0.4850428", "text": "@Test\n public void testExtensibility() {\n final TestType ipAddress = TestType.register(\"IP_ADDRESS\");\n assertTrue(TestType.all().contains(ipAddress));\n assertTrue(TestType.all().contains(TestType.ANONYMOUS_USER));\n }", "title": "" }, { "docid": "87d18d25a91a2802fd1413bc4a333b3e", "score": "0.4843415", "text": "@Test\n public void recordTypeTest() {\n // TODO: test recordType\n }", "title": "" }, { "docid": "0f2e2e30119850581d92c63778682e98", "score": "0.4828261", "text": "public int getTestTypesCount() {\n return testTypes_.size();\n }", "title": "" }, { "docid": "d4943eabd17af45cc66ec1375820de6b", "score": "0.48271352", "text": "public void testGetExpenseTypeMatchCriteria_Accuracy() {\r\n criteria = FieldMatchCriteria.getExpenseTypeMatchCriteria(1);\r\n assertEquals(\"The field value should be correct.\", FieldMatchCriteria.EXPENSE_TYPE_FIELD, criteria.getField());\r\n assertEquals(\"The value value should be correct.\", new Long(1), criteria.getValue());\r\n }", "title": "" }, { "docid": "baba761fdf7d205cab38c6bcd3c4b5d4", "score": "0.48170036", "text": "public void testGetActionsByApplicationTypeNagios() {\r\n WSFoundationCollection wsfoundationCollection = null;\r\n try {\r\n wsfoundationCollection = foundationWSFacade\r\n .getActionsByApplicationType(NAGIOS, true);\r\n } catch (WSDataUnavailableException e) {\r\n fail(\"getActionsByApplicationType failed for NAGIOS. WSDataUnavailableException details : \"\r\n + e);\r\n } catch (GWPortalException e) {\r\n fail(\"getActionsByApplicationType failed for NAGIOS. GWPortalException details : \"\r\n + e);\r\n }\r\n if (wsfoundationCollection == null) {\r\n fail(\"getActionsByApplicationType for NAGIOS returned wsfoundationCollection as null\");\r\n }\r\n Action[] actions = wsfoundationCollection.getAction();\r\n if (actions == null) {\r\n fail(\"getActionsByApplicationType for NAGIOS returned actions as null\");\r\n return;\r\n }\r\n assertEquals(actions.length, FIVE);\r\n }", "title": "" }, { "docid": "3bd87c9a51efbf012f83e89a7d5f40f7", "score": "0.48065054", "text": "@Test\n void invalidTooManyClaimComponentTypes() {\n\n // Test max type count of 5 - as defined in the restricted_claimframe_aif.shacl\n // We are adding more than 5 types.\n\n // #########################\n // # 2.4 #13. Each aida:ClaimComponent must have at least one and at most 5\n // aida:componentType.\n // # defined in aida_ontology.shacl\n // #------------------------\n Resource test = validComponentTest.setName(\"Hugo Chávez\")\n .setIdentity(\"Q8440\")\n .addType(\"Q82955\")\n .addType(\"Q829551\")\n .addType(\"Q829552\")\n .addType(\"Q829553\")\n .addType(\"Q829554\")\n .addType(\"Q829555\")\n .addType(\"Q829556\")\n .addType(\"Q829557\")\n .addToModel(model, \"https://www.wikidata.org/wiki/Q90000\",\n system);\n validClaim.setClaimLocation(test);\n validClaim.addToModel(model, utils.getUri(\"too_many_claimcomponents\"), system);\n utils.expect(null, SH.MaxCountConstraintComponent, null);\n\n utils.testInvalid(\"ClaimComponent.invalid (Too many type): ClaimComponent must max 5 types\");\n\n }", "title": "" }, { "docid": "2f07638f5d2b529ebde3d271a7b4a10f", "score": "0.4793429", "text": "@Test\n\tpublic void testFilterIfContenttypeInWhitelist() throws ServletException, IOException {\n\t\tmockRequest(\"text/plain\");\n\n\t\tfilter.setContentTypes(\"text/plain;text/html;application/json\");\n\n\t\tfilter.doFilter(req, resp, chain);\n\t\t\n\t\t//\n\t\t// Check\n\t\t//\n\t\tArgumentCaptor<HttpServletRequest> reqCaptor = ArgumentCaptor.forClass(HttpServletRequest.class);\n\t\tMockito.verify(chain,Mockito.times(1)).doFilter(reqCaptor.capture(), Mockito.any(ServletResponse.class));\n\t\t\n\t\tAssert.assertEquals(VALUE_NFC, reqCaptor.getValue().getParameter(NAME_NFC));\n\t\tAssert.assertEquals(VALUE_NFC, reqCaptor.getValue().getHeader(NAME_NFC));\n\t\tAssert.assertEquals(VALUE_NFC, reqCaptor.getValue().getCookies()[0].getValue());\n\t\tAssert.assertEquals(VALUE_NFC,CharStreams.toString(reqCaptor.getValue().getReader()));\n\t\t\n\t\t//\n\t\t// Prüfen, das Multipart-Requests nicht angefasst werden.\n\t\t//\n\t\tAssert.assertArrayEquals(VALUE_NFD.getBytes(UTF8),ByteStreams.toByteArray(reqCaptor.getValue().getPart(NAME_NFD).getInputStream()));\t\t\t\t\n\t}", "title": "" }, { "docid": "4cfba67f8bad13e4ba0ad0eeaa5bc0ea", "score": "0.4792157", "text": "int countByExample(ShareContentExample example);", "title": "" }, { "docid": "d98cf15f35a3ef36c66e02d9b5b58674", "score": "0.4785179", "text": "public void setExpType(String expType){this.expType=expType;}", "title": "" }, { "docid": "40d5371904249ba196c1d8bba3ee5283", "score": "0.478398", "text": "ImageCountType createImageCountType();", "title": "" }, { "docid": "ef06e398f37c2bd3979a2e6645e1fb49", "score": "0.4781173", "text": "@Test(expected = Exception.class)\n\tpublic void getContent_ParamVvalidation_TypeConfigInvalid() {\n\t\tgetTested(true).getContent(TYPE_INVALID, \"12\");\n\t}", "title": "" }, { "docid": "5d119c69928efade4735fb235f7307e8", "score": "0.4779407", "text": "boolean hasContentFetchMediaInfo();", "title": "" }, { "docid": "860f2f9f3790f11c17a7eb9b1120fa69", "score": "0.47695085", "text": "public void testMapClassificationGuideMetadataCapability()\n {\n checkPermission(AuthenticationUtil.getSystemUserName(), filePlan, RMPermissionModel.MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.ALLOWED);\n checkPermission(rm_administrator, filePlan, RMPermissionModel.MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.ALLOWED);\n checkPermission(rm_records_manager, filePlan, RMPermissionModel.MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.ALLOWED);\n checkPermission(rm_security_officer, filePlan, RMPermissionModel.MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.DENIED);\n checkPermission(rm_power_user, filePlan, RMPermissionModel.MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.DENIED);\n checkPermission(rm_user, filePlan, RMPermissionModel.MAP_CLASSIFICATION_GUIDE_METADATA, AccessStatus.DENIED);\n }", "title": "" }, { "docid": "99c38cc7aee141074500c3f5680fffa8", "score": "0.47666395", "text": "@Test\r\n\tpublic void CheckCableTypeTeflon() {\r\n\t\tint length=10;\r\n\t\tString calbeType=\"Teflon\";\r\n\t\t\t\t\r\n\t\tfloat expectedValue=250;\r\n\t\tfloat realValue = count.cablePrice(length, calbeType);\r\n\t\t\r\n\t\tassertThat(realValue, equalTo(expectedValue));\r\n\t}", "title": "" }, { "docid": "c5ac6e980cb16f9e0d7f9e28110a0531", "score": "0.47660995", "text": "@Test(priority = 1, description = \"Redis {type} integration test.\")\n public void testType() throws IOException, JSONException {\n\n testSet();\n RestResponse<JSONObject> response = sendJsonRestRequest(getProxyServiceURL(\"type\"), \"POST\", esbRequestHeadersMap, \"exists.json\");\n\n Assert.assertEquals(response.getBody().toString(), \"{\\\"output\\\":\\\"string\\\"}\");\n }", "title": "" }, { "docid": "70e349123ee208250f25a07647300335", "score": "0.476495", "text": "@Test\n\tpublic void testRegex() throws UIMAException, IOException {\n\t\tNamedEntityRegexAnnotator ner = new NamedEntityRegexAnnotator();\n\t\tNamedEntityRegex nerex = new NamedEntityRegex();\n\t\tnerex.setCode(\"C00TEST\");\n\t\tnerex.setContext(\"DEFAULT\");\n\t\tnerex.setRegex(\"(?i)COUGH\");\n\t\tner.initRegexMap(Arrays.asList(nerex));\n\t\t\n\t JCas jCas = JCasFactory.createJCasFromPath(\"src/main/resources/org/apache/ctakes/ytex/types/TypeSystem.xml\");\n\t String text = \"Dr. Doolitle asked patient\\nto take a deep breath\\nand exhale slowly. Patient coughed.\";\n\t jCas.setDocumentText(text);\n\t Segment s = new Segment(jCas);\n\t s.setBegin(0);\n\t s.setEnd(text.length());\n\t s.setId(\"DEFAULT\");\n\t s.addToIndexes();\n\t ner.process(jCas);\n\t // run the analysis engine\n\t AnnotationIndex<Annotation> mentions = jCas.getAnnotationIndex(EntityMention.type);\n\t\tIterator<Annotation> iter =mentions.iterator();\n\t\tint emCount = 0;\n\t\twhile(iter.hasNext()) {\n\t\t\tEntityMention em = (EntityMention)iter.next();\n\t\t\tSystem.out.println(\"[\" + em.getCoveredText() + \"]\");\n\t\t\temCount ++;\n\t\t}\n\t\tAssert.assertTrue(emCount == 1);\n\t}", "title": "" }, { "docid": "8c12064d29b8ef3c43a770da3e15f744", "score": "0.474741", "text": "@Test\n public void objectTypeTest() {\n // TODO: test objectType\n }", "title": "" }, { "docid": "371f59fee98c96b0e4ce94954d8bd536", "score": "0.4740188", "text": "void checkType(MarkerAnnotation node, TypeDeclaration type) {\n String name = node.getTypeName().getFullyQualifiedName();\n Item item = getItem();\n if (fProcessedAnnotations.contains(name)) {\n createAnnotationProblem(item.typename, node, IElementDescriptor.TYPE, IApiProblem.DUPLICATE_ANNOTATION_USE, IApiMarkerConstants.DUPLICATE_ANNOTATION_MARKER_ID, null);\n } else {\n if (type.isInterface()) {\n Set<String> supported = ApiPlugin.getJavadocTagManager().getAnntationsForType(IApiJavadocTag.TYPE_INTERFACE, IApiJavadocTag.MEMBER_NONE);\n if (!supported.contains(name)) {\n createAnnotationProblem(item.typename, node, IElementDescriptor.TYPE, IApiProblem.UNSUPPORTED_ANNOTATION_USE, IApiMarkerConstants.UNSUPPORTED_ANNOTATION_MARKER_ID, BuilderMessages.TagValidator_an_interface);\n } else if (!item.visible) {\n createAnnotationProblem(item.typename, node, IElementDescriptor.TYPE, IApiProblem.UNSUPPORTED_ANNOTATION_USE, IApiMarkerConstants.UNSUPPORTED_ANNOTATION_MARKER_ID, BuilderMessages.TagValidator_an_interface_that_is_not_visible);\n }\n } else {\n int flags = type.getModifiers();\n Set<String> supported = ApiPlugin.getJavadocTagManager().getAnntationsForType(IApiJavadocTag.TYPE_CLASS, IApiJavadocTag.MEMBER_NONE);\n if (!supported.contains(name)) {\n createAnnotationProblem(item.typename, node, IElementDescriptor.TYPE, IApiProblem.UNSUPPORTED_ANNOTATION_USE, IApiMarkerConstants.UNSUPPORTED_ANNOTATION_MARKER_ID, BuilderMessages.TagValidator_a_class);\n } else if (Flags.isPrivate(flags)) {\n createAnnotationProblem(item.typename, node, IElementDescriptor.TYPE, IApiProblem.UNSUPPORTED_ANNOTATION_USE, IApiMarkerConstants.UNSUPPORTED_ANNOTATION_MARKER_ID, BuilderMessages.TagValidator_a_private_class);\n } else if (Flags.isPackageDefault(flags)) {\n createAnnotationProblem(item.typename, node, IElementDescriptor.TYPE, IApiProblem.UNSUPPORTED_ANNOTATION_USE, IApiMarkerConstants.UNSUPPORTED_ANNOTATION_MARKER_ID, BuilderMessages.TagValidator_a_package_default_class);\n } else if (Flags.isAbstract(flags) && JavadocTagManager.ANNOTATION_NOINSTANTIATE.equals(name)) {\n createAnnotationProblem(item.typename, node, IElementDescriptor.TYPE, IApiProblem.UNSUPPORTED_ANNOTATION_USE, IApiMarkerConstants.UNSUPPORTED_ANNOTATION_MARKER_ID, BuilderMessages.TagValidator_an_abstract_class);\n } else if (Flags.isFinal(flags) && JavadocTagManager.ANNOTATION_NOEXTEND.equals(name)) {\n createAnnotationProblem(item.typename, node, IElementDescriptor.TYPE, IApiProblem.UNSUPPORTED_ANNOTATION_USE, IApiMarkerConstants.UNSUPPORTED_ANNOTATION_MARKER_ID, BuilderMessages.TagValidator_a_final_class);\n } else if (!item.visible) {\n createAnnotationProblem(item.typename, node, IElementDescriptor.TYPE, IApiProblem.UNSUPPORTED_ANNOTATION_USE, IApiMarkerConstants.UNSUPPORTED_ANNOTATION_MARKER_ID, BuilderMessages.TagValidator_a_class_that_is_not_visible);\n }\n }\n }\n fProcessedAnnotations.add(name);\n }", "title": "" }, { "docid": "48406e9cea2b9edfe6082bc2282a89a2", "score": "0.47396457", "text": "@Test(groups = {\"chpmex\"}, description = \"MAFAUTO-179\")\n\tpublic void addToFavoritesInMexico() throws Exception {\n\t\n\t\t\n\t\t//testResult = Reporter.getCurrentTestResult();\n\t\ttestResult = Reporter.getCurrentTestResult();\n\t\textentLogger = setUpExtentTest(extentLogger, \"Favorites Test\", testResult.getMethod().getMethodName());\n\t\tsoftas = new SoftAssert();\t\n\t\t//extentLogger = setUpExtentTest(extentLogger, \"Favorites\", testResult.getMethod().getMethodName());\t\t\n\t\tString jiraNumber = testResult.getMethod().getDescription();\t\t\n\t\tString issueSummary = getIssueTitle(jiraNumber,\"Common Document Display Features - Document Display - Add to Favourites\"); \t\t\n\t\tDocumentDisplayPage documentPage;\n\t\ttry {\n\t\t\t\n\n\n\t\t\t\n\t\t\tJSONArray listOfSearchData = jsonReader.readJSONDataFromFile(jiraNumber,extentLogger);\n\n\t\t\tfor (Object searchString : listOfSearchData) {\n\t\t\t\tJSONObject jsonObjectChild = (JSONObject) searchString;\n\t\t\t\tString documentTitle = jsonReader.readKeyValueFromJsonObject(jsonObjectChild,\"documenttitle\",extentLogger); \n\t\t\t\tString thematicArea = jsonReader.readKeyValueFromJsonObject(jsonObjectChild,\"thematicarea\",extentLogger);\n\t\t\t\tString treeItems[] = jsonReader.readKeyValueFromJsonObject(jsonObjectChild,\"treeitems\",extentLogger).split(\",\");\n\n\t\t\t\t//Check which is default search page area\n\t\t\t\tSearchPage searchPage = homepage.OpenSearchPage();\n\n\t\t\t\t//Select Thematic Area & Click on area in tree(if it is not already selected)\n\t\t\t\tsearchPage.selectGivenValueFromThematicDropdown(thematicArea);\n\t\t\t\tif (searchPage.isAreaFoundInContentTree(thematicArea)) {\n\t\t\t\t\tsearchPage.selectAreaFromContentTree(thematicArea);\n\t\t\t\t}\n\n\t\t\t\t//Expand First level item in the tree structure\n\t\t\t\tWebElement treeElement = searchPage.getFirstLevelContentTree(treeItems[0]);\n\t\t\t\tsearchPage.expandContentTreeElement(treeElement);\n\t\t\t\t//String treeTraversed = treeItems[0];\n\t\t\t\t//Expand till document in the sub tree\n\t\t\t\tfor(int row=1; row<treeItems.length ;row++){\n\t\t\t\t\tif(searchPage.isItemPresentInSubContentTree(treeElement,treeItems[row])){\n\t\t\t\t\t\tsearchPage.clickExpandItemInSubContentTree(treeElement, treeItems[row]);\n\t\t\t\t\t\ttreeElement = searchPage.getSubContentTreeElement(treeElement, treeItems[row]);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Open document from the tree\n\t\t\t\tboolean docDisplayedInTree = searchPage.isItemPresentInSubContentTree(treeElement,documentTitle);\n\t\t\t\tdocumentPage = searchPage.clickDocumentInSubContentTree(treeElement,documentTitle);\n\n\t\t\t\tsoftas.assertTrue(docDisplayedInTree,jiraNumber+\" : \"+issueSummary+\" : Tree Content\");\n\t\t\t\tlogExtentStatus(extentLogger, documentPage!=null, issueSummary+\" : Document Display\", jiraNumber);\n\n\t\t\t\tsoftas.assertTrue(documentPage!=null,jiraNumber+\" : \"+issueSummary+\" : Document Display\");\n\t\t\t\tlogExtentStatus(extentLogger, documentPage!=null, issueSummary+\" : Document Display<br>Doc Title: \"+documentTitle, jiraNumber);\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception exc){\n\t\t\tlogTestExceptionToExtentLogger(testResult.getMethod().getMethodName(), exc, extentLogger);\n\t\t\tsoftas.assertTrue(false, \"Exception in Test\");\n\t\t}finally{\n\t\t\textentReports.endTest(extentLogger);\n\t\t\tsoftas.assertAll();\n\t\t}\n\t}", "title": "" }, { "docid": "de0b3ea37270fc2d39e1d68396a9e863", "score": "0.47391948", "text": "@Test\n public void containerTypeTest() {\n // TODO: test containerType\n }", "title": "" }, { "docid": "ae3be2279db81420be56eeec292f0032", "score": "0.47273955", "text": "public void testEnableDisableAuditByTypesCapability()\n {\n checkPermission(AuthenticationUtil.getSystemUserName(), filePlan, RMPermissionModel.ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.ALLOWED);\n checkPermission(rm_administrator, filePlan, RMPermissionModel.ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.ALLOWED);\n checkPermission(rm_records_manager, filePlan, RMPermissionModel.ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.ALLOWED);\n checkPermission(rm_security_officer, filePlan, RMPermissionModel.ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.DENIED);\n checkPermission(rm_power_user, filePlan, RMPermissionModel.ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.DENIED);\n checkPermission(rm_user, filePlan, RMPermissionModel.ENABLE_DISABLE_AUDIT_BY_TYPES, AccessStatus.DENIED);\n }", "title": "" }, { "docid": "24d94f70da40ca47615349fb9ed2a5c2", "score": "0.47249478", "text": "@Test(timeout = 4000)\n public void test03() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(21);\n classWriter0.index = (-1164);\n FieldWriter fieldWriter0 = (FieldWriter)classWriter0.visitField((-1081), \"\", \"org.apache.commons.io.filefilter.FileFileFilter\", \"org.apache.commons.io.filefilter.FileFileFilter\", \"\");\n int int0 = fieldWriter0.getSize();\n assertEquals(36, int0);\n }", "title": "" }, { "docid": "6722ba6e1734751908f6b354b9f9aab9", "score": "0.47232822", "text": "int getTypesCount();", "title": "" }, { "docid": "7b4aeaef38540470981f1cff0e676810", "score": "0.47225773", "text": "public Builder setContentType(int value) {\n \n contentType_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "783a7d1296060ab1915f7bf42b091b99", "score": "0.4719106", "text": "@Test\n\tpublic void testAddCardGetContent() {\n\t\t/*\n\t\t * Testing if addCard changes correctly the content of the discard deck\n\t\t * Testing if getContent returns the correct cards\n\t\t */\n\t\tprivateDeck = new PrivateDeck();\n\t\tObjectCard card = new AttackObjectCard(new Sector(\n\t\t\t\tnew Coordinate('A', 1), SectorType.SAFE));\n\t\tprivateDeck.addCard(card);\n\t\tassertTrue(privateDeck.getContent().contains(card));\n\t\tassertEquals(privateDeck.getContent().size(), 1);\n\t}", "title": "" }, { "docid": "fa7ba0d856682f2c07158de6ae67a0d8", "score": "0.47146088", "text": "private boolean isRestrictedTo0And1(XSSimpleType type) {\n XSFacet pattern = type.getFacet(XSFacet.FACET_PATTERN);\n if(pattern!=null) {\n String v = pattern.getValue();\n if(v.equals(\"0|1\") || v.equals(\"1|0\") || v.equals(\"\\\\d\"))\n return true;\n }\n XSFacet enumf = type.getFacet(XSFacet.FACET_ENUMERATION);\n if(enumf!=null) {\n String v = enumf.getValue();\n if(v.equals(\"0\") || v.equals(\"1\"))\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "0ae552fc1e356db2533dde06b921d161", "score": "0.47071326", "text": "@Test\n public void typeIdTest() {\n // TODO: test typeId\n }", "title": "" }, { "docid": "7a18adc0686e8ccd40009da3581756c3", "score": "0.4699206", "text": "private DigiDocException validateContentType(String str)\n {\n DigiDocException ex = null;\n if(str == null || \n (!str.equals(CONTENT_DETATCHED) && \n !str.equals(CONTENT_EMBEDDED) &&\n !str.equals(CONTENT_EMBEDDED_BASE64)))\n ex = new DigiDocException(DigiDocException.ERR_DATA_FILE_CONTENT_TYPE, \n \"Currently supports only content types: DETATCHED, EMBEDDED and EMBEDDED_BASE64\", null);\n return ex;\n }", "title": "" }, { "docid": "4c01efc297de86248f1f5167fbb5923d", "score": "0.46898228", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.ExposureType getExposureType();", "title": "" }, { "docid": "6d75a3638654d9b043373591b29be2b7", "score": "0.46853107", "text": "int getContentObjectCount();", "title": "" }, { "docid": "dbc2039a3ce23f6e9c788d249c191e28", "score": "0.46845436", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n TechnicalInformation technicalInformation0 = lovinsStemmer0.getTechnicalInformation();\n assertEquals(TechnicalInformation.Type.ARTICLE, technicalInformation0.getType());\n }", "title": "" }, { "docid": "3e11880692ada9c5bb44c01f7ceefbb7", "score": "0.4679288", "text": "int countByExample(ContentReviewExample example);", "title": "" }, { "docid": "7545e4b38202f71ac6d6eab3eebfac66", "score": "0.4675152", "text": "@Test\n\tpublic void testAddingEditingDeletingEmbargoTypes() {\n\t\t\n\t\tLOGIN();\n\t\t\n\t\t// Get our urls and a list of fields.\n\t\tfinal String EDIT_URL = Router.reverse(\"settings.ConfigurableSettingsTab.editEmbargoTypeJSON\").url;\n\t\tfinal String REMOVE_URL = Router.reverse(\"settings.ConfigurableSettingsTab.removeEmbargoTypeJSON\").url;\n\t\t\n\t\t// Add a new template\n\t\tMap<String,String> params = new HashMap<String,String>();\n\t\tparams.put(\"name\",\"New Embargo Type\");\n\t\tparams.put(\"description\",\"New Description\");\n\t\tparams.put(\"months\",\"4\");\n\t\tparams.put(\"active\", \"true\");\n\n\t\tResponse response = POST(EDIT_URL,params);\n\t\tassertContentMatch(\"\\\"success\\\": \\\"true\\\"\", response);\n\t\t\n\t\t// Extract the id of the newly created action.\n\t\tPattern ID_PATTERN = Pattern.compile(\"\\\"id\\\": ([0-9]+), \");\n\t\tMatcher tokenMatcher = ID_PATTERN.matcher(getContent(response));\n\t\tassertTrue(tokenMatcher.find());\n\t\tString idString = tokenMatcher.group(1);\n\t\tassertNotNull(idString);\n\t\tLong id = Long.valueOf(idString);\n\t\t\n\t\t// Verify the embargo exists in the database.\n\t\tJPA.em().getTransaction().commit();\n\t\tJPA.em().clear();\n\t\tJPA.em().getTransaction().begin();\n\t\tassertNotNull(settingRepo.findEmbargoType(id));\n\t\tassertEquals(\"New Embargo Type\",settingRepo.findEmbargoType(id).getName());\n\t\tassertEquals(\"New Description\",settingRepo.findEmbargoType(id).getDescription());\n\t\tassertEquals(new Integer(4),settingRepo.findEmbargoType(id).getDuration());\n\t\tassertEquals(true,settingRepo.findEmbargoType(id).isActive());\n\t\t\n\t\t// Now edit the embargo\n\t\tparams.clear();\n\t\tparams.put(\"embargoTypeId\",\"embargoType_\"+id);\n\t\tparams.put(\"name\", \"Changed Name\");\n\t\tparams.put(\"description\", \"Changed Description\");\n\t\t//params.put(\"months\", null);\n\t\t//params.put(\"active\", false);\n\t\tresponse = POST(EDIT_URL,params);\n\t\tassertContentMatch(\"\\\"success\\\": \\\"true\\\"\", response);\n\n\t\t\n\t\t// Verify the action was updated in the database.\n\t\tJPA.em().getTransaction().commit();\n\t\tJPA.em().clear();\n\t\tJPA.em().getTransaction().begin();\n\t\tassertEquals(\"Changed Name\",settingRepo.findEmbargoType(id).getName());\n\t\tassertEquals(\"Changed Description\",settingRepo.findEmbargoType(id).getDescription());\n\t\tassertEquals(null,settingRepo.findEmbargoType(id).getDuration());\n\t\tassertEquals(false,settingRepo.findEmbargoType(id).isActive());\n\t\t\n\t\t// Now remove the embargo type\n\t\tparams.clear();\n\t\tparams.put(\"embargoTypeId\",\"embargoType_\"+id);\n\t\tresponse = POST(REMOVE_URL,params);\n\t\tassertContentMatch(\"\\\"success\\\": \\\"true\\\"\", response);\n\t\t\n\t\t// Verify the action was deleted in the database;\n\t\tJPA.em().getTransaction().commit();\n\t\tJPA.em().clear();\n\t\tJPA.em().getTransaction().begin();\n\t\tassertNull(settingRepo.findEmbargoType(id));\n\t}", "title": "" }, { "docid": "72af33b24b2dcac61e5e02ec0abc1ee1", "score": "0.46657434", "text": "public void testViewArticle() {\n\t}", "title": "" }, { "docid": "5fc0a41d571e6a2d67d0ebd7b250105c", "score": "0.46571398", "text": "boolean isSetPageactioncount();", "title": "" }, { "docid": "0d2f2f8ea234507bcf3fe1dbbe6e2de6", "score": "0.46539125", "text": "@Test\n // Count the number of times the word \"chinese\" is mentioned in a review\n public void countNumberOfChineseWordMentions() {\n long count = 0;\n\n // Check whether it actually contains 1469 chinese word mentions\n Assert.assertEquals(1469, count);\n\n // What if you would like to quickly execute this on just sample of the data?\n }", "title": "" }, { "docid": "d2b4b0162c04cc4e94492b36ee568044", "score": "0.46430898", "text": "@Ignore \n @Test\n public void testGetDataobjectTypeMetadataDefinition() throws Exception {\n System.out.println(\"getDataobjectTypeMetadataDefinition\");\n int dataobjectTypeId = 0;\n boolean includeParentType = false;\n List<Map<String, Object>> expResult = null;\n // List<Map<String, Object>> result = Util.getDataobjectTypeMetadataDefinition(dataobjectTypeId, includeParentType);\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 }", "title": "" }, { "docid": "dd6e4164b34492e78a66f40f5a8a7369", "score": "0.46413013", "text": "@Override\r\n\tpublic void attributionDesTypes() {\n\t\t\r\n\t}", "title": "" }, { "docid": "da70d7a5b29976b2fa450c692ec8588c", "score": "0.4636473", "text": "boolean hasModType();", "title": "" }, { "docid": "da70d7a5b29976b2fa450c692ec8588c", "score": "0.4636473", "text": "boolean hasModType();", "title": "" }, { "docid": "1c3558c37552a3a97f59c8f7f30b294f", "score": "0.4631481", "text": "int getMetadataCount();", "title": "" }, { "docid": "1c3558c37552a3a97f59c8f7f30b294f", "score": "0.4631481", "text": "int getMetadataCount();", "title": "" } ]
25a2bcdd6da571b3f650860ea2ee8be6
SECTION :: GET // Get ID of song.
[ { "docid": "a54021182b12db6b537eb35ace7c04b6", "score": "0.0", "text": "public Long getId() {\n return this.id;\n }", "title": "" } ]
[ { "docid": "1adf6f3de3eacad46771b56c86b24202", "score": "0.7188529", "text": "public int getSongId() {\n return mSongId;\n }", "title": "" }, { "docid": "c41c755b862f6c1e6c97652d957282f1", "score": "0.6904701", "text": "public Song findSong(int id);", "title": "" }, { "docid": "8c0f3b0aea6f3b9f75018cbea0796f96", "score": "0.6711427", "text": "int getMediaId();", "title": "" }, { "docid": "be9f8ba918330aca677e8db86b1a8faf", "score": "0.65867615", "text": "public Song getMedia(int id);", "title": "" }, { "docid": "966e3aa49d0e502266c46e9379413a1d", "score": "0.6541482", "text": "public int getTrackID() { return getInt(\"trackID\"); }", "title": "" }, { "docid": "6c3c78bfe9793262595f5c5f417c56e2", "score": "0.64356476", "text": "Song findSongById(Long id);", "title": "" }, { "docid": "71463fd724c4d7dcdaed735968b06b9d", "score": "0.6326277", "text": "public static Song getSongById(Context context, int songId)\n {\n JsonReader reader;\n ArrayList<Integer> songIds = new ArrayList<>();\n try{\n reader = readJsonFile(context);\n reader.beginArray();\n while (reader.hasNext())\n {\n Song currentSong = readEntry(reader);\n if(currentSong.getSongId() == songId)\n {\n reader.close();\n return currentSong;\n }\n }\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "0f69d1d22f12068a4174db41f2a36630", "score": "0.632576", "text": "public static String getID() { return id; }", "title": "" }, { "docid": "83a292c4656bebcb1c142dbbb11af1ef", "score": "0.6321487", "text": "URI getId();", "title": "" }, { "docid": "1502d97f7962382ddfc57a4d41b74298", "score": "0.63154614", "text": "public String getID ();", "title": "" }, { "docid": "34441a3ec79064e3f2238100f73e4ffa", "score": "0.6293092", "text": "public String getID();", "title": "" }, { "docid": "34441a3ec79064e3f2238100f73e4ffa", "score": "0.6293092", "text": "public String getID();", "title": "" }, { "docid": "34441a3ec79064e3f2238100f73e4ffa", "score": "0.6293092", "text": "public String getID();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.6285559", "text": "String getId();", "title": "" }, { "docid": "5b3c182913464a78d624380b53aa3689", "score": "0.6270158", "text": "int getActivePlaylistId();", "title": "" }, { "docid": "e61b3757957a0b7a9f20bacf31615808", "score": "0.62509686", "text": "String getConceptID();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.62349504", "text": "java.lang.String getId();", "title": "" }, { "docid": "822335510775505e8a2cbfb850839320", "score": "0.6188572", "text": "int getID();", "title": "" }, { "docid": "822335510775505e8a2cbfb850839320", "score": "0.6188572", "text": "int getID();", "title": "" }, { "docid": "822335510775505e8a2cbfb850839320", "score": "0.6188572", "text": "int getID();", "title": "" }, { "docid": "822335510775505e8a2cbfb850839320", "score": "0.6188572", "text": "int getID();", "title": "" }, { "docid": "822335510775505e8a2cbfb850839320", "score": "0.6188572", "text": "int getID();", "title": "" }, { "docid": "73164df2b927713f67a0919c08a73786", "score": "0.61734813", "text": "int getId ();", "title": "" }, { "docid": "4e9c915747460c3ffc6aae222bd97e1e", "score": "0.6151683", "text": "public int getSoundID(){\n return soundID;\n }", "title": "" }, { "docid": "2e927723a3d750a32ca05050bc1b8592", "score": "0.6149818", "text": "int getId();", "title": "" }, { "docid": "2e927723a3d750a32ca05050bc1b8592", "score": "0.6149818", "text": "int getId();", "title": "" }, { "docid": "2e927723a3d750a32ca05050bc1b8592", "score": "0.6149818", "text": "int getId();", "title": "" }, { "docid": "2e927723a3d750a32ca05050bc1b8592", "score": "0.6149818", "text": "int getId();", "title": "" }, { "docid": "2e927723a3d750a32ca05050bc1b8592", "score": "0.6149818", "text": "int getId();", "title": "" }, { "docid": "2e927723a3d750a32ca05050bc1b8592", "score": "0.6149818", "text": "int getId();", "title": "" }, { "docid": "2e927723a3d750a32ca05050bc1b8592", "score": "0.6149818", "text": "int getId();", "title": "" }, { "docid": "2e927723a3d750a32ca05050bc1b8592", "score": "0.6149818", "text": "int getId();", "title": "" }, { "docid": "2e927723a3d750a32ca05050bc1b8592", "score": "0.6149818", "text": "int getId();", "title": "" }, { "docid": "2e927723a3d750a32ca05050bc1b8592", "score": "0.6149818", "text": "int getId();", "title": "" }, { "docid": "2e927723a3d750a32ca05050bc1b8592", "score": "0.6149818", "text": "int getId();", "title": "" }, { "docid": "2e927723a3d750a32ca05050bc1b8592", "score": "0.6149818", "text": "int getId();", "title": "" } ]
c8d889460c9c1ba735070e13f1ed5632
Perform a variable lookup with a given context node.
[ { "docid": "6af61666836bedf922bb403f13c813e0", "score": "0.5515955", "text": "public static XObject resolveVariable(Node n, String ns, String ln) {\n VariableElement ve = lookupVariable(n, ns, ln);\n if (ve == null) {\n return null;\n }\n Constraint c = ve.getConstraint();\n return new XConstraintObject(c.getValue());\n }", "title": "" } ]
[ { "docid": "5360b31d45c14b5985b9988b7a509d4e", "score": "0.610138", "text": "public Symbol resolveVar(OoplssAST node) throws UnknownDefinitionException {\n \t\tSymbol s = this.resolveName(node);\n \t\t\n \t\tif (!(s instanceof VariableSymbol)) {\n \t\t\tthrow new UnknownDefinitionException(node);\n \t\t}\n \t\t\n \t\treturn s;\n \t}", "title": "" }, { "docid": "1202501d42d42bb11778863cc67cb0c5", "score": "0.5942067", "text": "public VariableContainer lookup(String varName) {\n for (int i = 0; i < symbolTable.size(); i++) {\n VariableContainer variable = lookupHere(varName, i);\n if (variable != null)\n return variable;\n }\n // if it's not found up until now, maybe it's a class, so global scope\n if (classInfo.containsKey(varName))\n return new VariableContainer(varName, \"class \" + varName, varName, -1);\n else\n return null;\n }", "title": "" }, { "docid": "9eb3fe1f8edb618cbdc7ea22e1ba214c", "score": "0.5933472", "text": "public Expression getVariable( String ident ) {\n\t Expression result = null ;\n\n\t if (blockStatement != null) \n\t\tresult = blockStatement.getVar( ident ) ;\n\n\t if (result == null)\n\t\tresult = alternateLookup( ident ) ;\n\n\t if ((result == null) && (parent != null))\n\t\tresult = parent.getVariable( ident ) ;\n\n\t if (result == null)\n\t\tthrow new IllegalArgumentException(\n\t\t \"Identifier \" + ident + \" not found.\" ) ;\n\n\t return result ;\n\t}", "title": "" }, { "docid": "cdffa9b1460e0590cb06213571a462e6", "score": "0.5702931", "text": "Object getVariable(String name);", "title": "" }, { "docid": "81a09f2003cef7d63983af2485d96418", "score": "0.56510246", "text": "OclAny getVariableValue(String identifier);", "title": "" }, { "docid": "91cfe06c8e7ad5cce6a5b7010de5007e", "score": "0.56298023", "text": "public Node get(Var var);", "title": "" }, { "docid": "049da344f1e7fba9efefc498fd35d4c5", "score": "0.5627664", "text": "Variable getVariable();", "title": "" }, { "docid": "2f8d0c019a0132c0b156a7df9f2d0e76", "score": "0.5622351", "text": "void setVariableContext(VariableContext variableContext);", "title": "" }, { "docid": "503e803808fbc346dfdc3cef2f0fe4c7", "score": "0.5574273", "text": "public Object getVariable(String variable) throws Exception;", "title": "" }, { "docid": "7f73af5cafcbf581d99cc3bb6a7dd4d1", "score": "0.54919577", "text": "public Object getVariable(String name);", "title": "" }, { "docid": "117ad45ce62058d4cf4b43ae6612bb2c", "score": "0.5466853", "text": "public String getValue(String variable);", "title": "" }, { "docid": "738aa3d962a25360816bd1a764ed92f0", "score": "0.53323936", "text": "public Object getVariable(String paramString) {\n/* 215 */ if (!this.environment.containsKey(paramString)) {\n/* 216 */ throw new IllegalArgumentException(\"Unbound variable: \" + paramString);\n/* */ }\n/* 218 */ return this.environment.get(paramString);\n/* */ }", "title": "" }, { "docid": "6907d63022249e7d6c137b68bfa932d8", "score": "0.5307499", "text": "public Variable getVariable();", "title": "" }, { "docid": "041cbb5ae9598d40ab4882c58380e175", "score": "0.5287547", "text": "public IModelElement findVariableUse(String name) throws ModelQueryException {\n IModelElement result = null;\n // search contexts first, from newest to oldest\n for (int c = directContext.size() - 1; null == result && c >= 0; c--) {\n result = ModelQuery.findVariableUse(directContext.get(c), name, null);\n }\n if (null == result) {\n // last resort - ask the project\n result = ModelQuery.findVariableUse(project, name, null);\n }\n return result;\n }", "title": "" }, { "docid": "b296030e4c0318e39ae9f763c8f35b70", "score": "0.52836275", "text": "public void testLocalVariableReference2() throws CoreException {\n ILocalVariable localVar = getLocalVariable(\"/JavaSearch/src/f1/X.java\", \"var2 = new X();\", \"var2\");\n search(localVar, REFERENCES, getJavaSearchScope(), this.resultCollector);\n assertSearchResults(\"src/f1/X.java void f1.X.foo2() [var2]\", this.resultCollector);\n }", "title": "" }, { "docid": "4139e94a46a2a2e47dbf6e63d6f9c17b", "score": "0.5277553", "text": "Object lookup(String byName) {\n ListIterator<ActivationRecord> iter =\n a_stack.listIterator(a_stack.size());\n while (iter.hasPrevious()) {\n ActivationRecord ar = iter.previous();\n if (ar.variableExist(byName))\n return ar.getVariableValue(byName);\n }\n throw new Interpreter.RuntimeError(\"Undefined variable '\" + byName + \"'\");\n }", "title": "" }, { "docid": "93ab2479501584c77b0895df5aaf1453", "score": "0.52724725", "text": "@Override \n\tpublic void enterVariable(KnightCodeParser.VariableContext ctx){\n\t\t\n\t\tif(exit){\n\t\t\treturn;\n\t\t}//end if statement\n\t\t\n\t\tSystem.out.println(\"Enter Variable\");\n\t\t\n\t\tvariable var = new variable();\n\t\t\n\t\tString identifier = ctx.getChild(1).getText();\n\t\tvar.variableType = ctx.getChild(0).getText();\n\t\tvar.memLoc = memoryCounter;\n\t\t\n\t\tSymbolTable.put(identifier, var);\n\n\t\tmemoryCounter++;\n\t\t\n\t\n\t}", "title": "" }, { "docid": "ef21ceae89bf3f42333897c7c3c6c2ed", "score": "0.5271119", "text": "@Override\r\n\tpublic Expression visitVariable(VariableContext ctx) {\r\n\t\tToken idToken = ctx.ID().getSymbol();\r\n\t\tint line = idToken.getLine();\r\n\t\tint column = idToken.getCharPositionInLine() + 1;\r\n\t\tString id = ctx.getChild(0).getText();\r\n\t\tBoolean value = null;\r\n\r\n\t\t// Maintaining the vars list for semantic error reporting\r\n\t\tif (!values.containsKey(id)) {\r\n\t\t\tsemanticErrors.add(\"Error: variable \" + id + \" not declared (\" + line + \", \" + column + \")\");\r\n\t\t} else {\r\n\t\t\tvalue = values.get(id);\r\n\t\t}\r\n\r\n\t\treturn new Variable(id, value);\r\n\t}", "title": "" }, { "docid": "76ab88155affcdd37e8ae1d3806c72ed", "score": "0.5258919", "text": "@Override\n protected void visit(BlockTree tree) {\n Map<String, LocalVariableSymbol> locals = null;\n for (ParseTree statement : tree.statements) {\n if (statement.isVariableStatement()) {\n locals = bindLocalVariableDeclarations(statement.asVariableStatement(), locals);\n }\n }\n StatementBindingContext innerContext = context.createLookupContext(locals);\n for (ParseTree statement : tree.statements) {\n bindInnerStatement(innerContext, statement);\n }\n }", "title": "" }, { "docid": "936b6ba977959a023b87fbc619ca6cbf", "score": "0.5249861", "text": "private VariableNode findVariable(final PV pv)\n\t{\n\t // pvs[] and variables[] are linked:\n\t // pvs[i] is the PV for variables[i].\n\t // Using linear lookup assuming there aren't many vars,\n\t // and a HashMap would mostly waste memory\n\t for (int i = 0; i < pvs.length; i++)\n {\n if (pv == pvs[i])\n return variables[i];\n }\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2cf59d84553c42b765ffdc4182b60c7b", "score": "0.52243716", "text": "public void testLocalVariableOccurrences2() throws CoreException {\n ILocalVariable localVar = getLocalVariable(\"/JavaSearch/src/f1/X.java\", \"var2 = new X();\", \"var2\");\n search(localVar, ALL_OCCURRENCES, getJavaSearchScope(), this.resultCollector);\n assertSearchResults(\"src/f1/X.java void f1.X.foo2().var2 [var2]\\n\" + \"src/f1/X.java void f1.X.foo2() [var2]\", this.resultCollector);\n }", "title": "" }, { "docid": "be893f5aaf3a0819393586afde08bc3a", "score": "0.51954633", "text": "public Result<IValue> getVariable(QualifiedName name) {\n \t\tif (name.getNames().size() > 1) {\n \t\t\tEnvironment current = this;\n \t\t\twhile (!current.isRootScope()) {\n \t\t\t\tcurrent = current.parent;\n \t\t\t}\n \n \t\t\treturn current.getVariable(name);\n \t\t}\n \n \t\tString varName = Names.name(Names.lastName(name));\n \t\treturn getVariable(varName);\n \t}", "title": "" }, { "docid": "5b5aec5553b99e554577721dd1e157f0", "score": "0.5171417", "text": "default String getAssigned(Variable variable) {\n Node n = this;\n Assignment a;\n while (n != null) {\n a = n.getAssignment();\n if (a.variable == variable) {\n // Found\n return a.word;\n }\n n = n.getSuccessor();\n }\n return null;\n }", "title": "" }, { "docid": "6bea1fa50e70de8cc9382f5fd79ca0dd", "score": "0.5170962", "text": "String getVariableValue(Player player, String variableName);", "title": "" }, { "docid": "f4db36f9625016e57ec92c823cf06e8d", "score": "0.5169487", "text": "private Individual findDefinedVariable(String nm, Individual containingInst) {\n\t\tIndividual varInst = null;\n\t\tif (containingInst != null) {\n\t\t\tIndividual inst = containingInst;\n\t\t\tString nnm = getCodeModelNamespace() + inst.getLocalName() + \".\" + nm;\n\t\t\tvarInst = getCurrentCodeModel().getIndividual(nnm);\n\t\t\tif (varInst == null) {\n\t\t\t\tRDFNode obj = containingInst.getPropertyValue(getContainedInProperty());\n\t\t\t\tif (obj != null && obj.isURIResource() && obj.canAs(Individual.class)) {\n\t\t\t\t\treturn findDefinedVariable(nm, obj.as(Individual.class));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn varInst;\n\t}", "title": "" }, { "docid": "bc55b10d9b6a47c428980d393c9b4d67", "score": "0.5165737", "text": "public default Node get(String varName) {\n return get(Var.alloc(varName));\n }", "title": "" }, { "docid": "41b5b58c52db893a4e78e722a09cdc03", "score": "0.5163882", "text": "public MJVariable visitVariable(MiniJavaParser.VariableContext ctx){\n\t\t\n\t\tMJType variableType = visitType(ctx.type());\n\t\tString variableName = ctx.IDENT().getText();\n\t\t\n\t\tMJVariable x = new MJVariable(variableType, variableName);\n\t\t\n\t\treturn x;\n\t}", "title": "" }, { "docid": "b577143f705ca91fad5b218997b6aa10", "score": "0.51314044", "text": "public int getVariable(String varName)\n {\n return variableMap.getOrDefault(varName,0);\n }", "title": "" }, { "docid": "31963d033718701c3e7fef74c8fd7194", "score": "0.5119424", "text": "public void runTaskWithinContext(Lookup context, Task task);", "title": "" }, { "docid": "9c1975caa78b7c34958c189e820b8ff9", "score": "0.51050144", "text": "Variable getRelatedvariable();", "title": "" }, { "docid": "4062f64af0ff2a72243a59cc0d797fa0", "score": "0.51048005", "text": "Type getVariableValue(String variable);", "title": "" }, { "docid": "83214276ddd82cd0b7648d6744def0e4", "score": "0.5094221", "text": "public Object resolveVariable (String pName)\n throws ELException\n {\n // Check for implicit objects\n if (\"pageContext\".equals (pName)) {\n return mCtx;\n }\n else if (\"pageScope\".equals (pName)) {\n return ImplicitObjects.\n\tgetImplicitObjects (mCtx).\n\tgetPageScopeMap ();\n }\n else if (\"requestScope\".equals (pName)) {\n return ImplicitObjects.\n\tgetImplicitObjects (mCtx).\n\tgetRequestScopeMap ();\n }\n else if (\"sessionScope\".equals (pName)) {\n return ImplicitObjects.\n\tgetImplicitObjects (mCtx).\n\tgetSessionScopeMap ();\n }\n else if (\"applicationScope\".equals (pName)) {\n return ImplicitObjects.\n\tgetImplicitObjects (mCtx).\n\tgetApplicationScopeMap ();\n }\n else if (\"param\".equals (pName)) {\n return ImplicitObjects.\n\tgetImplicitObjects (mCtx).\n\tgetParamMap ();\n }\n else if (\"paramValues\".equals (pName)) {\n return ImplicitObjects.\n\tgetImplicitObjects (mCtx).\n\tgetParamsMap ();\n }\n else if (\"header\".equals (pName)) {\n return ImplicitObjects.\n\tgetImplicitObjects (mCtx).\n\tgetHeaderMap ();\n }\n else if (\"headerValues\".equals (pName)) {\n return ImplicitObjects.\n\tgetImplicitObjects (mCtx).\n\tgetHeadersMap ();\n }\n else if (\"initParam\".equals (pName)) {\n return ImplicitObjects.\n\tgetImplicitObjects (mCtx).\n\tgetInitParamMap ();\n }\n else if (\"cookie\".equals (pName)) {\n return ImplicitObjects.\n\tgetImplicitObjects (mCtx).\n\tgetCookieMap ();\n }\n\n // Otherwise, just look it up in the page context\n else {\n return mCtx.findAttribute (pName);\n }\n }", "title": "" }, { "docid": "6962526c7b4f2017a6cc71b9e4a87b68", "score": "0.5094212", "text": "protected Variable defineVariable(AST defAST, AST idAST, AST likeAST) {return null;}", "title": "" }, { "docid": "f857295c674871be70dcdd8dfcea0a71", "score": "0.50897205", "text": "protected Variable defineVariable(AST defAST, AST idNode) {return null;}", "title": "" }, { "docid": "9db762410b93518ba9c2241be5fa69d5", "score": "0.50885725", "text": "public void processVarInFunction(TerminalNode node, String type, String value, int functionIndex, int localBlockId) {\n String name = node.getText();\n if(name.equals(Configure.BLANK_IDENTIFIER) || name.equals(GoConstantString.NIL)) {\n return;\n }\n String usage = GoConstantString.OPERAND_NAME_USAGE_SET;\n //it is not in localName, save\n saveLocalName(functionIndex, name, localBlockId, type, value, usage);\n\n AbsVAREntity varEntity = new AbsVAREntity(singleCollect.getCurrentIndex(), type, name);\n varEntity.setValue(value);\n varEntity.setParentId(functionIndex);\n varEntity.setLocalBlockId(localBlockId);\n singleCollect.addEntity(varEntity);\n singleCollect.getEntities().get(functionIndex).addChildId(varEntity.getId());\n\n }", "title": "" }, { "docid": "c567f0b5e37d64cf2638dee5f4d24e84", "score": "0.50870365", "text": "@Test\n public void testBindLookup() throws Exception {\n Object obj1 = new String(\"Object1\");\n Object obj2 = new String(\"Object2\");\n Object obj3 = new String(\"Object3\");\n dataSourceContext.bind(\"sub21\", null);\n dataSourceContext.bind(\"sub22\", obj1);\n initialContext.bind(\"java:gf/env/sub23\", null);\n initialContext.bind(\"java:gf/env/sub24\", obj2);\n // Bind to subcontexts that do not exist\n initialContext.bind(\"java:gf/env/datasource/sub25/sub26\", obj3);\n // Try to lookup\n Assert.assertNull(dataSourceContext.lookup(\"sub21\"));\n Assert.assertSame(dataSourceContext.lookup(\"sub22\"), obj1);\n Assert.assertNull(gemfireContext.lookup(\"env/sub23\"));\n Assert.assertSame(initialContext.lookup(\"java:gf/env/sub24\"), obj2);\n Assert.assertSame(dataSourceContext.lookup(\"sub25/sub26\"), obj3);\n }", "title": "" }, { "docid": "e08f1952f1d807830ba5b94842242564", "score": "0.507049", "text": "public interface ExpressionContext {\n\n /**\n * Extracts the named variable.\n *\n * @param name variable name\n * @return {@link Field} represents variable value\n * @throws ExpressionException If variable cannot be retrieved\n */\n Field getVariable(String name) throws ExpressionException;\n\n}", "title": "" }, { "docid": "8dc4fa47a77ef43484f1e9c543ed160e", "score": "0.50659084", "text": "abstract public FutoshikiVariable selectVariable();", "title": "" }, { "docid": "252885917b06256ea9bc78124168bd8f", "score": "0.502995", "text": "private void processVarDef(AST node, Scope scope)\n {\n // VARIABLE_DEF\n // modifiers, (TYPE type), identifier, initializer\n AST cnode = node.getFirstChild();\n cnode = cnode.getNextSibling();\n \n // Generate a reference.\n String typeName = getFirstLevelName(cnode.getFirstChild());\n scope.addTypeReference(typeName);\n \n AST initializerNode = cnode.getNextSibling().getNextSibling();\n if (initializerNode != null) {\n // the initializer node is '=', we want the child node\n processExpression(initializerNode.getFirstChild(), scope);\n }\n }", "title": "" }, { "docid": "69a188617d2ce67417a95ff40c385bed", "score": "0.50262934", "text": "private boolean lookupProperty(String id, String property){\n \t//Looks if variable has been declared\n \tDeclNode variableDecl = lookup(id);\n \t//System.out.println(\"Entering, looking for: \" + id);\n \tif(variableDecl != null){\n \t\t//System.out.println(variableDecl.toString());\n \t}\n \tif(variableDecl instanceof VarDeclNode){\n \t\t//Now need to check what type it is and if it has been declared at the top.\n \t\tString variableType = ((VarDeclNode) variableDecl).var.type;\n \t\t//System.out.println(\"Found: \" + variableType);\n \t\tDeclNode customType = symbolTables.getFirst().get(variableType);\n \t\tif(customType != null){\n \t\t\tif(customType instanceof DatatypeDeclNode){\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t}\n \treturn false;\n }", "title": "" }, { "docid": "ebafc4c43b22be9c27681cd080d3a1e5", "score": "0.5025875", "text": "public Value get(String variable) throws Exception;", "title": "" }, { "docid": "db0be5dd3ba5773fc739c7d6708e347e", "score": "0.50133073", "text": "Object visit(VariableLocation location);", "title": "" }, { "docid": "8b9921852c3c9232f1004a6d4d041715", "score": "0.49863243", "text": "static String resolve(Token token, Substitution sub)\n\t{\n\t\tif (token == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// get the value\n\t\t//\n\t\tString value = token.getValue();\n\t\t\n\t\t// substitute if this is a 'variable'\n\t\t//\n\t\tToken.Type kind = token.getKind();\n\t\tif (kind == Token.Type.variable)\n\t\t{\n\t\t\tString tmp = sub.translate(value);\n\t\t\treturn StringUtils.trimQuotes(tmp);\n\t\t}\n\t\telse if (kind == Token.Type.value)\n\t\t{\n\t\t\treturn StringUtils.trimQuotes(value);\n\t\t}\n\t\t\n\t\t// not a type that has a value we can use\n\t\t//\n\t\treturn null;\n\t}", "title": "" }, { "docid": "091e768f613b4ce1671056e1e88f6bde", "score": "0.49802294", "text": "public void testLocalVariableDeclaration2() throws CoreException {\n ILocalVariable localVar = getLocalVariable(\"/JavaSearch/src/f1/X.java\", \"var2 = new X();\", \"var2\");\n search(localVar, DECLARATIONS, getJavaSearchScope(), this.resultCollector);\n assertSearchResults(\"src/f1/X.java void f1.X.foo2().var2 [var2]\", this.resultCollector);\n }", "title": "" }, { "docid": "f5cb9c682f48ecb2b7e787f9814f5874", "score": "0.49788898", "text": "public MJVariable visitVarDeclaration(MiniJavaParser.VarDeclarationContext ctx) { \n\t\t\tMJVariable x = visitVariable(ctx.var); \n\t\t\t\n\t\t\tif (ctx.value != null) {\n\t\t\t\tMJExpression expr = visitDeclExpression(ctx.declExpression());\n\t\t\t\tx.setInitializer(expr);\n\t\t\t}\n\t\t\treturn x;\n\t}", "title": "" }, { "docid": "55d5fff7d39cc8b91c485a808fbcc2c4", "score": "0.49771845", "text": "public String lookup(String key){\n Node N = findKey(key);\n if(N==null){\n return null;\n }\n else{\n return N.item.value;\n }\n }", "title": "" }, { "docid": "c6c481c9dc694e89130594503719eb9b", "score": "0.4968469", "text": "public VarInstance<?> findVariable(Name name) throws SemanticException {\n VarInstance<?> vi = findVariableSilent(name);\n \n \tif (vi != null) {\n if (Report.should_report(TOPICS, 3))\n Report.report(3, \"find-var \" + name + \" -> \" + vi);\n return vi;\n \t}\n \n throw new SemanticException(\"Variable \" + name + \" not found.\");\n }", "title": "" }, { "docid": "d4c9180920152ad0a8f8f5bca65b0368", "score": "0.49629673", "text": "VariableReference createVariableReference();", "title": "" }, { "docid": "ea0cfe78eb130979d9d36fdca29fe8c4", "score": "0.49590513", "text": "public void testLocalVariableReference1() throws CoreException {\n ILocalVariable localVar = getLocalVariable(\"/JavaSearch/src/f1/X.java\", \"var1 = 1;\", \"var1\");\n search(localVar, REFERENCES, getJavaSearchScope(), this.resultCollector);\n assertSearchResults(\"src/f1/X.java void f1.X.foo1() [var1]\", this.resultCollector);\n }", "title": "" }, { "docid": "a4924fb072e601f83a7f606c51a9b042", "score": "0.4925635", "text": "public static interface VariableResolver {\n\t\t\n\t\t/**\n\t\t * Resolve.\n\t\t *\n\t\t * @param variable the variable\n\t\t * @return the string\n\t\t */\n\t\tpublic String resolve(String variable);\n\t}", "title": "" }, { "docid": "fe014666eb0d94f30bdc57d036defec3", "score": "0.49190673", "text": "private Variable fclTreeFuzzify(AST tree) {\n\t\tAST child = tree.getFirstChild();\n\t\tMutableString varName = new MutableString(child.getText());\n\t\tGpr.debug(debug, \"Parsing: \" + varName);\n\n\t\t// Get variable (or create a new one)\n\t\tVariable variable = getVariable(varName);\n\t\tif( variable == null ) {\n\t\t\tvariable = new Variable(varName);\n\t\t\tvariables.put(varName, variable);\n\t\t\tGpr.debug(\"Variable '\" + varName + \"' does not exist => Creating it\");\n\t\t}\n\n\t\t// Explore each sibling in this level\n\t\tfor( child = child.getNextSibling(); child != null; child = child.getNextSibling() ) {\n\t\t\tString leaveName = child.getText();\n\t\t\tGpr.debug(debug, \"Parsing: \" + leaveName);\n\n\t\t\tif( leaveName.equalsIgnoreCase(\"TERM\") ) {\n\t\t\t\tLinguisticTerm linguisticTerm = fclTreeFuzzifyTerm(child, variable);\n\t\t\t\tvariable.add(linguisticTerm);\n\t\t\t} else if( leaveName.equalsIgnoreCase(\"RANGE\") ) {\n\t\t\t\t// Range values (universe min / max)\n\t\t\t\tdouble universeMin = parseDouble(child.getFirstChild());\n\t\t\t\tdouble universeMax = parseDouble(child.getFirstChild().getNextSibling());\n\t\t\t\tif( universeMax <= universeMin ) throw new RuntimeException(\"Range's min is grater than range's max! RANGE := ( \" + universeMin + \" .. \" + universeMax + \" );\");\n\t\t\t\tvariable.setUniverseMax(universeMax);\n\t\t\t\tvariable.setUniverseMin(universeMin);\n\t\t\t}else throw new RuntimeException(\"Unknown/Unimplemented item '\" + leaveName + \"'\");\n\t\t}\n\n\t\treturn variable;\n\t}", "title": "" }, { "docid": "1ed3d6996aa5f42ed7e206900f27533a", "score": "0.49123797", "text": "private void addVariableContext() {\n this.usedVariables.add(new ArrayList<String>());\n }", "title": "" }, { "docid": "3641aba532b4be9ca9227062fd93ad6f", "score": "0.49055758", "text": "private static TemplateCallMetadata.VarRefInfo resolveLocalVarRefToParamRef(\n ExprNode varExpr, TemplateCallMetadata.VarRefInfo.Builder varRefInfo) {\n if (varExpr.getKind() == Kind.VAR_REF_NODE) {\n VarDefn possibleParamRefDef = ((VarRefNode) varExpr).getDefnDecl();\n if (possibleParamRefDef.kind() == VarDefn.Kind.PARAM) {\n varRefInfo.setHeaderParam(possibleParamRefDef.name());\n return varRefInfo.build();\n } else if (possibleParamRefDef.kind() == VarDefn.Kind.LOCAL_VAR) {\n LocalVarNode varRefNode = ((LocalVar) possibleParamRefDef).declaringNode();\n // The LocalVarNode point to a for loop local variable\n if (varRefNode.getKind() == SoyNode.Kind.FOR_NONEMPTY_NODE) {\n varRefInfo.setUsesListIndex(true);\n return resolveLocalVarRefToParamRef(\n ((ForNonemptyNode) varRefNode).getExpr().getRoot(), varRefInfo);\n } else if (varRefNode instanceof LetValueNode) {\n // The LocalVarNode is a let statement\n return resolveLocalVarRefToParamRef(\n ((LetValueNode) varRefNode).getExpr().getRoot(), varRefInfo);\n }\n }\n } else if (varExpr.getKind() == Kind.ITEM_ACCESS_NODE) {\n varRefInfo.setUsesListIndex(true);\n return resolveLocalVarRefToParamRef(\n ((ItemAccessNode) varExpr).getBaseExprChild(), varRefInfo);\n } else if (varExpr.getKind() == Kind.FIELD_ACCESS_NODE) {\n FieldAccessNode fieldAccessNode = ((FieldAccessNode) varExpr);\n varRefInfo.setDataAccessAlias(fieldAccessNode.getFieldName());\n return resolveLocalVarRefToParamRef(fieldAccessNode.getBaseExprChild(), varRefInfo);\n } else if (varExpr.getKind() == Kind.FUNCTION_NODE) {\n if (\"checkNotNull\".equals(((FunctionNode) varExpr).getFunctionName())) {\n // this function accepts 1 expr and does not meaningfully change its value\n return resolveLocalVarRefToParamRef(((FunctionNode) varExpr).getChild(0), varRefInfo);\n }\n }\n\n return varRefInfo.build();\n }", "title": "" }, { "docid": "8832c99c2e7d74b532de39ec0bd6401e", "score": "0.4903305", "text": "public String lookup(String key) {\n return lookup(root, key);\n }", "title": "" }, { "docid": "a30c18835674d1791b0aaff18fa971c6", "score": "0.49012634", "text": "InstructionBuilder startVariable(String type, LocalVariableCallback callback);", "title": "" }, { "docid": "913bf8cc6100b076c37fbaa063f5928d", "score": "0.48856214", "text": "private void fclTreeVariables(AST tree) {\n\t\tfor( AST child = tree.getFirstChild(); child != null; child = child.getNextSibling() ) {\n\t\t\tMutableString varName = new MutableString(child.getText());\n\t\t\tVariable variable = new Variable(varName);\n\t\t\tGpr.debug(debug, \"Parsing: \" + varName);\n//\t\t\tAST range=null;\n//\t\t\tfor (range=child.getFirstChild(); range!=null;range=range.getNextSibling())\n//\t\t\t\tif (range.getText().equalsIgnoreCase(\"RANGE\")) break;\n//\n//\t\t\tif (range!=null) {\n//\t\t\t\tAST rchild = range.getFirstChild();\n//\t\t\t\tdouble umin=Double.parseDouble(rchild.getText());\n//\t\t\t\trchild = rchild.getNextSibling();\n//\t\t\t\tdouble umax=Double.parseDouble(rchild.getText());\n//\t\t\t\tvariable.setUniverseMin(umin);\n//\t\t\t\tvariable.setUniverseMax(umax);\n//\t\t\t}\n\n\t\t\tif( varibleExists(variable.getName()) ) Gpr.debug(\"Warning: Variable '\" + variable.getName() + \"' duplicated\");\n\t\t\telse variables.put(varName, variable); // OK? => Add variable\n\t\t}\n\t}", "title": "" }, { "docid": "07c75f23c140f1cf693be52537555048", "score": "0.48769754", "text": "private Variable getVariable(final String id, final Object... variables) {\r\n for (final Object variable : variables) {\r\n String _id = ((Variable) variable).getId();\r\n boolean _equals = _id.equals(id);\r\n if (_equals) {\r\n return ((Variable) variable);\r\n }\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "efb2ad3d542e2f6b5d503aa21762b075", "score": "0.48761997", "text": "protected Variable defineVariable(AST defAST, AST idAST, int dataType) {return null;}", "title": "" }, { "docid": "22465e75faec61664207631344486ade", "score": "0.48698482", "text": "@Override\n public void caseAVarExprComplete(AVarExprComplete node) {\n SaVar var = (SaVar) apply(node.getVar());\n returnValue = new SaExpVar(var);\n }", "title": "" }, { "docid": "1ea8a1324effec7b9bc29c9c58bbcf2a", "score": "0.48567262", "text": "private static Object getLiteral(Object expression, Block parent,\n boolean doesGetValueFromVariable, String fileName, int line) {\n if (expression instanceof IdentifierNode) {\n var variableNode = ((IdentifierNode) expression);\n if (variableNode.isFunctionCall())\n return parent.getFunction(variableNode.getName(), fileName, line);\n var namedNode = parent.get(((IdentifierNode) expression).getName(), fileName, line);\n if (doesGetValueFromVariable && namedNode instanceof VariableDeclarationNode)\n return ((VariableDeclarationNode) namedNode).getValue();\n\n return namedNode;\n } else if (expression instanceof VariableDeclarationNode && doesGetValueFromVariable)\n return ((VariableDeclarationNode) expression).getValue();\n else if (expression.equals(Promise.EMPTY_TUPLE))\n return emptyTuple;\n\n return expression;\n }", "title": "" }, { "docid": "6df02f90ba478014dd635bda8a29e369", "score": "0.48387083", "text": "@Override\n\tpublic Object visitFillInVarNameInExpression(FillInVarNameInExpressionContext ctx) {\n\t\tString var = ctx.name.getText(); // eg. [pos=1]\n\t\tint varNumber = 0;\n\t\ttry {\n\t\t\tvarNumber = Integer.parseInt(var.substring(var.indexOf('=') + 1, var.indexOf(']'))); // eg. 1\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new UndefinedFillInVariableRuntimeException(String.valueOf(varNumber) + \". Has to be Integer!\");\n\t\t}\n\t\t// removes the OMOBJ-tags from the variable and returns its child\n\t\tif (fillInVariableMap != null && fillInVariableMap.containsKey(varNumber)) {\n\t\t\tOMOBJ varOmobj = fillInVariableMap.get(varNumber);\n\t\t\ttry {\n\t\t\t\treturn OMConverter.toElement(varOmobj);\n\t\t\t} catch (OpenMathException e) {\n\t\t\t\tthrow new ErroneousFillInVariableRuntimeException(String.valueOf(varNumber));\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new UndefinedFillInVariableRuntimeException(String.valueOf(varNumber));\n\t\t}\n\t}", "title": "" }, { "docid": "3727b492f9a7f4124996434e48b67dfa", "score": "0.4826003", "text": "public void testLocalVariableOccurrences1() throws CoreException {\n ILocalVariable localVar = getLocalVariable(\"/JavaSearch/src/f1/X.java\", \"var1 = 1;\", \"var1\");\n search(localVar, ALL_OCCURRENCES, getJavaSearchScope(), this.resultCollector);\n assertSearchResults(\"src/f1/X.java void f1.X.foo1().var1 [var1]\\n\" + \"src/f1/X.java void f1.X.foo1() [var1]\", this.resultCollector);\n }", "title": "" }, { "docid": "2912d08851c1f7b952c27e00c1f5013f", "score": "0.48171517", "text": "RexNode lookup(\n int offset,\n LookupContext lookupContext,\n boolean isParent,\n String varName)\n {\n int [] fieldOffsets = { 0 };\n RelNode rel = lookupContext.findRel(offset, fieldOffsets);\n if (isParent) {\n if (varName == null) {\n varName = rel.getOrCreateCorrelVariable();\n } else {\n // we are resolving a forward reference\n rel.registerCorrelVariable(varName);\n }\n return rexBuilder.makeCorrel(\n rel.getRowType(),\n varName);\n } else {\n return\n rexBuilder.makeRangeReference(\n rel.getRowType(),\n fieldOffsets[0],\n false);\n }\n }", "title": "" }, { "docid": "aab9fc8fb6d03a313130e7cdefdae531", "score": "0.48118013", "text": "public final DBLParser.using_variable_return using_variable() throws RecognitionException {\n\t\tDBLParser.using_variable_return retval = new DBLParser.using_variable_return();\n\t\tretval.start = input.LT(1);\n\t\tint using_variable_StartIndex = input.index();\n\n\t\tCommonTree root_0 = null;\n\n\t\tToken Variable205=null;\n\n\t\tCommonTree Variable205_tree=null;\n\t\tRewriteRuleTokenStream stream_Variable=new RewriteRuleTokenStream(adaptor,\"token Variable\");\n\n\t\ttry {\n\t\t\tif ( state.backtracking>0 && alreadyParsedRule(input, 46) ) { return retval; }\n\n\t\t\t// C:\\\\Users\\\\darfores\\\\git\\\\asup_0_8_0\\\\org.smeup.sys.db.syntax.ibmi\\\\src\\\\org\\\\smeup\\\\sys\\\\db\\\\syntax\\\\ibmi\\\\parser\\\\dbl\\\\DBL.g:864:2: ( Variable -> ^( VARIABLE Variable ) )\n\t\t\t// C:\\\\Users\\\\darfores\\\\git\\\\asup_0_8_0\\\\org.smeup.sys.db.syntax.ibmi\\\\src\\\\org\\\\smeup\\\\sys\\\\db\\\\syntax\\\\ibmi\\\\parser\\\\dbl\\\\DBL.g:865:2: Variable\n\t\t\t{\n\t\t\tVariable205=(Token)match(input,Variable,FOLLOW_Variable_in_using_variable7816); if (state.failed) return retval; \n\t\t\tif ( state.backtracking==0 ) stream_Variable.add(Variable205);\n\n\t\t\t// AST REWRITE\n\t\t\t// elements: Variable\n\t\t\t// token labels: \n\t\t\t// rule labels: retval\n\t\t\t// token list labels: \n\t\t\t// rule list labels: \n\t\t\t// wildcard labels: \n\t\t\tif ( state.backtracking==0 ) {\n\t\t\tretval.tree = root_0;\n\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t// 865:11: -> ^( VARIABLE Variable )\n\t\t\t{\n\t\t\t\t// C:\\\\Users\\\\darfores\\\\git\\\\asup_0_8_0\\\\org.smeup.sys.db.syntax.ibmi\\\\src\\\\org\\\\smeup\\\\sys\\\\db\\\\syntax\\\\ibmi\\\\parser\\\\dbl\\\\DBL.g:865:14: ^( VARIABLE Variable )\n\t\t\t\t{\n\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(VARIABLE, \"VARIABLE\"), root_1);\n\t\t\t\tadaptor.addChild(root_1, stream_Variable.nextNode());\n\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tretval.tree = root_0;\n\t\t\t}\n\n\t\t\t}\n\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t\tif ( state.backtracking==0 ) {\n\t\t\tretval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n\t\t\tadaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\t\t\t}\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t\tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t\tif ( state.backtracking>0 ) { memoize(input, 46, using_variable_StartIndex); }\n\n\t\t}\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "6613824f1a81bfb46643e46841eb50a2", "score": "0.48001215", "text": "@SuppressWarnings(\"fallthrough\")\n private void findLocal(JsElementCtx searchCtx, JsElementCtx fileCtx, Node node, String name) {\n switch (node.getType()) {\n case Token.PARAMETER:\n if (node.getString().equals(name)) {\n rename(node, name, null, getString(\"RenameParam\"));\n }\n break;\n case Token.NAME:\n if ((node.getParentNode() != null && node.getParentNode().getType() == Token.CALL ||\n node.getParentNode() != null && node.getParentNode().getType() == Token.NEW) &&\n node.getParentNode().getFirstChild() == node) {\n // Ignore calls\n break;\n }\n // Fallthrough\n case Token.BINDNAME:\n if (node.getString().equals(name)) {\n rename(node, name, null, Character.isUpperCase(name.charAt(0)) ? getString(\"UpdateClass\") : getString(\"UpdateLocalvar\"));\n }\n }\n\n if (node.hasChildren()) {\n Node child = node.getFirstChild();\n\n for (; child != null; child = child.getNext()) {\n findLocal(searchCtx, fileCtx, child, name);\n }\n }\n }", "title": "" }, { "docid": "40baaae1a590d00dd7e982bb89ae730a", "score": "0.4799119", "text": "@Test\n public void testVariables() {\n assertEquals(\"test.cloudname.one\", variableOne.getName());\n assertEquals(\"test.cloudname.two\", variableTwo.getName());\n \n variableOne.set(100);\n Variable.getVariable(\"test.cloudname.two\").set(50);\n \n assertEquals(100, Variable.getVariable(\"test.cloudname.one\").getValue());\n assertEquals(50, variableTwo.getValue());\n }", "title": "" }, { "docid": "a57042b628469a2ae30650aa7cab69ae", "score": "0.47985357", "text": "public Variable getVariable(final String key) {\n\t\treturn elements.get(key);\n\t}", "title": "" }, { "docid": "1769a909379ad235c9e4009b33b8e52b", "score": "0.47899875", "text": "@Override\n public J.VariableDeclarations.NamedVariable visitVariable(\n J.VariableDeclarations.NamedVariable variable, J contextTree) {\n currentScope.remove(variable.getSimpleName());\n // Variable initialization expressions can contain variables, so analyze it\n visit(variable.getInitializer(), contextTree);\n return variable;\n }", "title": "" }, { "docid": "d674a57f8e5075e849eae5b49ca9bc0b", "score": "0.47874844", "text": "public String lookup(String key){\n Node N = findKey(root, key);\n if(N!=null){\n return N.value;\n }else{\n return null;\n }\n }", "title": "" }, { "docid": "0ff393abde84ba88c04cb9d40f7f4964", "score": "0.47782493", "text": "public void testLocalVariableReference3() throws CoreException {\n IClassFile classFile = getClassFile(\"JavaSearch\", \"test48725.jar\", \"p48725\", \"X.class\");\n ILocalVariable localVar = (ILocalVariable) codeSelect(classFile, \"local = 1;\", \"local\")[0];\n search(localVar, REFERENCES, getJavaSearchScope(), this.resultCollector);\n assertSearchResults(\"test48725.jar int p48725.<anonymous>.bar()\", this.resultCollector);\n }", "title": "" }, { "docid": "3eacac039194d96dcd7cf8336bf96f70", "score": "0.47739717", "text": "private AccessVariableNode variable() throws Exception {\n//\t\tSystem.out.println(\"variable\");\n\t\tAccessVariableNode output;\n\t\tString id = match(TokenType.ID);\n\t\tswitch (currentScope.getKind(id)) {\n\t\t\tcase VAR:\n\t\t\t\toutput = new AccessVariableNode(id, currentScope);\n\t\t\t\tbreak;\n\t\t\tcase ARR:\n\t\t\t\tmatch(TokenType.LEFTSQUAREBRACKET);\n\t\t\t\toutput = new AccessArrayVarNode(id, expression(), currentScope);\n\t\t\t\tmatch(TokenType.RIGHTSQUAREBRACKET);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new Exception(\"Invalid id\");\n\t\t}\n\t\treturn output;\n\t}", "title": "" }, { "docid": "21538b1f0d899c00259c90a97c3654ec", "score": "0.47661728", "text": "public void variableUse() throws CompilerException, LexicalException, SyntaxException {\r\n\t\t/*TODO: Use the variable's value, not the name\r\n\t\t * Method to distinguish variable text and remove spaces to minimize error chances\r\n\t\t * Send boolean to text to trigger removal of spaces or not\r\n\t\t */\r\n\t\tif(MyCompiler.currentToken.equalsIgnoreCase(Tokens.USEB)){\r\n\t\t\ttext(true,true);//TODO: new text parameter eliminates need for removal of USEB during lookup()\r\n\t\t\t\r\n\t\t\tif(MyCompiler.currentToken.equalsIgnoreCase(Tokens.DEFUSEE)){\r\n\t\t\t\t/*\r\n\t\t\t\t * If the lookup succeeds we do not need to parse DEFUSEE, \r\n\t\t\t\t * advance to the next token if there is no text following DEFUSEE before the next token\r\n\t\t\t\t */\r\n\t\t\t\tmySM.lookup();\r\n\t\t\t\tstack.push(\" \");//hack solution to be removed\r\n\t\t\t\ttext(false,false);\r\n\t\t\t}\r\n\t\t\telse throw new SyntaxException(\"Missing the ending token for calling a variable: $END\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2823a48eb676a87ffe3fb3e902d027e9", "score": "0.47650436", "text": "@Override\n public J.Identifier visitIdentifier(J.Identifier identifier, J contextTree) {\n J.InstanceOf instanceOf = currentScope.get(identifier.getSimpleName());\n if (instanceOf != null) {\n J parentTree = parentTrees.get(instanceOf);\n switch (getUsageContext(parentTree)) {\n case NONE:\n break;\n case CONDITION:\n variableUsage.conditions.put(identifier, instanceOf);\n break;\n case THEN_PART:\n variableUsage.thenParts\n .computeIfAbsent(\n (J.If) parentTree,\n k -> new HashSet<>())\n .add(instanceOf);\n break;\n case ELSE_PART:\n currentScope.get(identifier.getSimpleName());\n variableUsage.elseParts\n .computeIfAbsent(\n ((J.If) parentTree).getElsePart(),\n k -> new HashSet<>())\n .add(instanceOf);\n break;\n }\n }\n return identifier;\n }", "title": "" }, { "docid": "690667eac0cbb5c562191429828d61f1", "score": "0.47579363", "text": "public String resolveArgument( String value ) {\n String retval = null;\n\n // lookup the value in the transform context\n String cval = getAsString( value );\n\n // If the lookup failed, just use the value\n if ( StringUtil.isBlank( cval ) ) {\n cval = value;\n }\n\n // in case it is a template, resolve it to the context's symbol table\n if ( StringUtil.isNotBlank( cval ) ) {\n retval = Template.resolve( cval, getSymbols() );\n }\n return retval;\n }", "title": "" }, { "docid": "f1bd7877334898074f7da487a8f08c57", "score": "0.47350916", "text": "AbstractVarOrArgument getVar();", "title": "" }, { "docid": "047e18a48e05bd3df3dd130897c45685", "score": "0.47181618", "text": "public abstract Object useExpression( IRNode root, Object id );", "title": "" }, { "docid": "d281dffc20362bd33c9c9a7f8063e011", "score": "0.47150755", "text": "public int getIVariable(String variable) throws Exception;", "title": "" }, { "docid": "a0a59b79c77d6183ab1ae397e27bccce", "score": "0.47061703", "text": "@Override\n public void visit(ExpIdentifier node) {\n // get the type of the variable, if defined\n // TODO: is there a way to find out if we try to retrieve the value of an\n // undefined variable?\n Type t = mem.getVariableType(node.content);\n if (t == null) {\n if (node.type.isUnspecified()) {\n // we could have sth like Introduction, that is an undeclared rdf class\n RdfClass cl = mem.getProxy().fetchClass(node.content);\n if (cl != null) {\n node.type = new Type(cl.toString());\n }\n }\n } else {\n node.type = t;\n }\n }", "title": "" }, { "docid": "0d2048d0db3b5585a468e3bac7ff9103", "score": "0.47036415", "text": "@Override\n public void caseADecvarEntierDecvar(ADecvarEntierDecvar node) {\n String name = node.getIdentificator().getText();\n returnValue = new SaDecVar(name);\n }", "title": "" }, { "docid": "914afe0d0e2ca1cd32c67c7e06c8c517", "score": "0.47019142", "text": "public LvalExpression getVar(String name) {\n\t\tListIterator iterator = vars.listIterator(0);\n\n\t\twhile (iterator.hasNext()) {\n\t\t\tHashMap scope = (HashMap) (iterator.next());\n\n\t\t\tif (scope.containsKey(name)) {\n\t\t\t\treturn (LvalExpression) scope.get(name);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ccd60817fdbc71efe91e0770b8dc5579", "score": "0.46905655", "text": "private void refID() {\n \tString id; //temp hold for the current tok.string\n \t// default has no scope, can find variable anywhere\n \tint scope = -2; //holds the scope levle, intitialized to sentinel value\n if(is(TK.TILDE)) {\n scan();\n if(is(TK.NUM)) {\n \tscope = Integer.parseInt(tok.string);\n scan();\n } else scope = -1; //global variable, search bottom of stack\n }\n if(is(TK.ID)) {\n \tid = tok.string;\n \tInteger level = findSymbol(scope, id);\n if (level == 1) System.out.print(\"x_\" + tok.string);\n \telse System.out.print(\"x_\" + tok.string + level);\n }\n mustbe(TK.ID);\n }", "title": "" }, { "docid": "2143e2d618ee8d6870c34b1d3995dd2f", "score": "0.46901566", "text": "@Override\n\tpublic Object visitExerciseVarNameInExpression(ExerciseVarNameInExpressionContext ctx) {\n\t\tString var = ctx.name.getText(); // eg. [var=a]\n\t\tString varName = var.substring(var.indexOf('=') + 1, var.indexOf(']')); // eg. a\n\n\t\tif (varName.equals(\"E\")) {\n\t\t\treturn OMSymbol.NUMS1_E;\n\t\t} else if (varName.equals(\"PI\")) {\n\t\t\treturn OMSymbol.NUMS1_PI;\n\t\t} else if (exerciseVariableMap != null && exerciseVariableMap.containsKey(varName)) {\n\t\t\t// removes the OMOBJ-tags from the variable and returns its child\n\t\t\tOMOBJ varOmobj = exerciseVariableMap.get(varName);\n\t\t\ttry {\n\t\t\t\treturn OMConverter.toElement(varOmobj);\n\t\t\t} catch (OpenMathException e) {\n\t\t\t\tthrow new ErroneousExerciseVariableRuntimeException(varName);\n\t\t\t}\n\n\t\t} else {\n\t\t\tthrow new UndefinedExerciseVariableRuntimeException(varName);\n\t\t}\n\t}", "title": "" }, { "docid": "c8cd746e88236a41a23517cbd8164f68", "score": "0.46871942", "text": "protected int findVariableInRelation(Variable var, Relation rel) {\n int i = 0;\n for (Attribute a : rel) {\n if (var.getTable().equals(a.getTable()) && var.getAttribute().equals(a.getName())) return i;\n i++;\n }\n return -1;\n }", "title": "" }, { "docid": "592db6e707f1cd5f2dee8c881499924b", "score": "0.46866414", "text": "private State walkIdentifier(State pre, String id, CommonTree current_ast) {\n\t\tLocation parent_id = null;\n\t\tObjectValue id_object = null;\n\t\t// //////////System.out.println(\" id : \" + id + \" \\n Global: \" +\n\t\t// pre.getHeap().get(pre.getGlobal()));\n\t\t// Get the object_value(location) associated with the identifier\n\t\tif (pre.Scope(id) != null) { // if the variable identifier exists in\n\t\t\t// some scope\n\t\t\t// get the scope in which the property is located\n\t\t\t// start checking from the current scope\n\t\t\tLocation scope = pre.Scope(id);\n\n\t\t\t// parent_id gets the exact location in which the property is\n\t\t\t// located\n\t\t\tparent_id = pre.Prototype(scope, id);\n\n\t\t\t// //////////////////////System.out.println(\"Parent location: \" +\n\t\t\t// parent_id.toString());\n\t\t\tid_object = pre.getPropertyValue(parent_id, id); // return the\n\t\t\t// object value\n\t\t\t// associated\n\t\t\t// with it\n\n\t\t\t// if the object is in scope but is not assigned a value\n\t\t\tif (id_object == null) {\n\t\t\t\tid_object = this.getUntainted_obj_loc();\n\t\t\t}\n\t\t} else {\n\n\t\t\tif (pre.getPropertyValue(pre.getGlobal(), id) != null) { // check if\n\t\t\t\t// the\n\t\t\t\t// variable\n\t\t\t\t// is in\n\t\t\t\t// the\n\t\t\t\t// global\n\t\t\t\t// scope\n\t\t\t\tparent_id = pre.getGlobal();\n\t\t\t\tid_object = pre.getPropertyValue(pre.getGlobal(), id);\n\n\t\t\t\t// if the object is in scope but is not assigned a value\n\t\t\t\tif (id_object == null) {\n\t\t\t\t\tid_object = this.getUntainted_obj_loc();\n\t\t\t\t}\n\n\t\t\t} else { // we can't find this variable anywhere\n\t\t\t\t// We create a new dummy object and location and insert it into\n\t\t\t\t// the heap in the current scope\n\t\t\t\tif (current_ast.getParent().getType() == ES3Lexer.ASSIGN\n\t\t\t\t\t\t|| ((current_ast.getParent().getType() == ES3Lexer.BYFIELD || current_ast\n\t\t\t\t\t\t\t\t.getParent().getType() == ES3Lexer.BYINDEX) && computeNextSibling(current_ast) != null)) {\n\t\t\t\t\tparent_id = pre.getGlobal();\n\t\t\t\t} else {\n\t\t\t\t\tparent_id = pre.getScope();\n\t\t\t\t}\n\t\t\t\tid_object = createDummyIdentifier(pre, id, parent_id);\n\t\t\t}\n\n\t\t}\n\n\t\t/**\n\t\t * TODO: Hack to recognize a dynamic object\n\t\t */\n\t\tif (id.equals(\"push\") || id.equals(\"setAttribute\")\n\t\t\t\t|| id.equals(\"write\") || id.equals(\"open\")) {\n\t\t\tif (id_object != null && id_object instanceof Location) {\n\t\t\t\t// ////////////System.out.println(\"dynamic id: \" + id);\n\t\t\t\tpre.addProperty((Location) id_object, \"at_Dynamic\",\n\t\t\t\t\t\tnew ObjectValue(true));\n\t\t\t}\n\t\t}\n\t\t// Set the location of the parent\n\t\tpre.setResultParent(parent_id);\n\t\t// Set the result value of pre to the newly obtained object\n\t\tpre.setResultValue(id_object);\n\n\t\tif (id.equals(\"innerHTML\")) {\n\t\t\tpre.setInnerHTML(true);\n\t\t} else {\n\t\t\tpre.reSetInnerHTML();\n\t\t}\n\n\t\treturn pre;\n\t}", "title": "" }, { "docid": "07cfa875d3b025148a4dc890b02e59db", "score": "0.46765545", "text": "public static TermVariable getVariable(int index)\n {\n return variables[index];\n }", "title": "" }, { "docid": "0f08e1b7bf9c4d15c3a6b965b9cccf65", "score": "0.46699625", "text": "public String visit(NodeToken n, Object argu) {\n String id = n.toString(); //Returns the type instead of the var based on the boolean value.\n return (idAsTypes) ? GetVarTypeFromScope((FunctionT)argu,id) : id;\n }", "title": "" }, { "docid": "160d10914fb1ff98478cd6a16ef36e98", "score": "0.4661491", "text": "public abstract Object getContext(JNode node);", "title": "" }, { "docid": "16afdbd148ed1dc850bb43122c6f0503", "score": "0.46517694", "text": "public boolean containsVar (Variable var);", "title": "" }, { "docid": "68a426b0efeacfde4ac371ceb2af92c4", "score": "0.4649284", "text": "private void verifyResultVariable()\n {\n String result = (String) context.getVariable(VAR);\n verifyResult(result);\n }", "title": "" }, { "docid": "7110ecfec81e925a9a4c5314daaad6c1", "score": "0.46422324", "text": "public String lookup(String key) {\n\n\t\tNode n = findKey(root, key);\n\n\t\tif (n != null) {\n\t\t\treturn n.value;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\n\t}", "title": "" }, { "docid": "a2ea6178623602456e09b8ae618b3f99", "score": "0.46394622", "text": "@Override\n\tpublic SymbolTable findVariables(String s) {\n\t\tSymbolTable t = localVars.get(s);\n\t\tif(t != null) return t;\n\t\telse {\n\t\t\tt = parameters.get(s);\n\t\t\tif(t != null) return t;\n\t\t\telse return previousPointer.find(s);\n\t\t}\n\t}", "title": "" }, { "docid": "31d52126e8d10924162928dcc52c5be6", "score": "0.46381667", "text": "private IQName resolveVarName()\n throws CompilationException\n {\n return resolveQName(null);\n // return resolveQName( currentModule.getNamespace() );\n }", "title": "" }, { "docid": "8b757439dd9102fe1c7b34f0f9f76921", "score": "0.4619446", "text": "public void testLocalVariableDeclaration1() throws CoreException {\n ILocalVariable localVar = getLocalVariable(\"/JavaSearch/src/f1/X.java\", \"var1 = 1;\", \"var1\");\n search(localVar, DECLARATIONS, getJavaSearchScope(), this.resultCollector);\n assertSearchResults(\"src/f1/X.java void f1.X.foo1().var1 [var1]\", this.resultCollector);\n }", "title": "" }, { "docid": "9682a7261a7c0285709f93b0c39e9ac2", "score": "0.4618539", "text": "@Override\n\tpublic Variable evaluate(MethodInstance context) throws Exception {\n\t\treturn new AnonVariable(evaluateToValue(context));\n\t}", "title": "" }, { "docid": "f049b468d92a8a9b414f592227280317", "score": "0.4611227", "text": "private void putVariable(final String evalId, final String varName, final String factid) {\n HashMap<String, ArrayList<String>> varMap = new HashMap<String, ArrayList<String>>();\n \tif (mapVariablesFact.containsKey(evalId)) {\n \tvarMap = mapVariablesFact.get(evalId);\n \tif (varMap.containsKey(varName)) {\n \t\tArrayList<String> facts = varMap.get(varName);\n \tif (!facts.contains(factid)) {\n \t facts.add(factid);\n \t\tvarMap.remove(varName);\n \t\tvarMap.put(varName, facts);\n \t}\n \t} else {\n \t\tArrayList<String> facts = new ArrayList<String>();\n \t\tfacts.add(factid);\n \t\tvarMap.put(varName, facts);\n \t}\n \tmapVariablesFact.remove(evalId);\n \tmapVariablesFact.put(evalId, varMap);\n } else {\n \tArrayList<String> facts = new ArrayList<String>();\n \t\tfacts.add(factid);\n \t\tvarMap.put(varName, facts);\n \t\tmapVariablesFact.put(evalId, varMap);\n }\n }", "title": "" }, { "docid": "65f10f54153977b428f8d020eea1b5ab", "score": "0.4610948", "text": "private ParseTree varInstruction() {\n switch (lookAhead.getType()) {\n case VARNAME:\n rule(9);\n return new ParseTree(9, Arrays.asList(varAssign()));\n case IF:\n rule(10);\n return new ParseTree(10, Arrays.asList(varIf()));\n case WHILE:\n rule(11);\n return new ParseTree(11, Arrays.asList(varWhile()));\n case FOR:\n rule(12);\n return new ParseTree(12, Arrays.asList(varFor()));\n case PRINT:\n rule(13);\n return new ParseTree(13, Arrays.asList(varPrint()));\n case READ:\n rule(14);\n return new ParseTree(14, Arrays.asList(varRead()));\n default:\n unexpectedTokenHelper(LexicalUnit.VARNAME, LexicalUnit.IF, LexicalUnit.WHILE, LexicalUnit.FOR,\n LexicalUnit.PRINT, LexicalUnit.READ);\n }\n return null;\n }", "title": "" }, { "docid": "9d4ea8452d233681062359ee4fac0310", "score": "0.45888174", "text": "public Object getVar(String k)\n\n {\n\n Object o = ht.get(k);\n\n if (o == null)\n\n {\n\n LOGGER.error(\"variable doesn't exists: /\" + k + \"/\");\n\n }\n\n return o;\n\n }", "title": "" }, { "docid": "193b478283550f66867973b6c0ab1b0b", "score": "0.45782396", "text": "@SubL(source = \"cycl/bindings.lisp\", position = 6513) \n public static final SubLObject variable_binding_variable(SubLObject binding) {\n return binding.first();\n }", "title": "" }, { "docid": "0929f20c8fd426d11ece86bd71e566a4", "score": "0.45512968", "text": "private boolean resolveVariableWithScope(final String scope, final String name,\n\t\t\tfinal ASTVariableNode node, final boolean doThrow) throws ParseException {\n\t\tif (hasManual(scope)) {\n\t\t\tfinal IHeaderNode header = getManual(scope, name);\n\t\t\tif (header != null) {\n\t\t\t\tif (!header.isBasicSourceResolved())\n\t\t\t\t\t// Should not happen as these variables are resolved\n\t\t\t\t\t// earlier.\n\t\t\t\t\tthrow new VariableNotResolvableException(node);\n\t\t\t\tnode.resolveSource(header.getBasicSource(), EVariableSource.ENVIRONMENTAL, scope);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (doThrow)\n\t\t\t\tthrow new ScopeMissingVariableException(scope, name, node);\n\t\t\treturn false;\n\t\t}\n\n\t\t// Try external scope.\n\t\tfinal ILibraryScopeContractFactory<?> info = scopeInfo(scope);\n\t\tif (info != null) {\n\t\t\tif (!info.isProviding(name)) {\n\t\t\t\tif (doThrow)\n\t\t\t\t\tthrow new ScopeMissingVariableException(scope, name, node);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (!hasExternal(scope) && config.hasOption(TREAT_MISSING_REQUIRE_SCOPE_AS_ERROR)) {\n\t\t\t\tif (doThrow)\n\t\t\t\t\tthrow new MissingRequireScopeStatementException(scope, node);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\taddExternal(scope);\n\t\t\tnode.resolveSource(-1, info.getSource(), scope);\n\t\t\treturn true;\n\t\t}\n\n\t\t// Give up.\n\t\tif (doThrow)\n\t\t\tthrow new NoSuchScopeException(scope, node);\n\t\treturn false;\n\t}", "title": "" }, { "docid": "603ad06e3a6edd5cf34c9c4014d9af52", "score": "0.45469412", "text": "public abstract Node selectSingleNode(Node contextNode, String str, PrefixResolver resolver);", "title": "" } ]
861222551e158b626b04aaca89de9c9a
Query Param Path Param
[ { "docid": "cb6c6527a2fa18552543a93c802d196f", "score": "0.0", "text": "@GetMapping(\"/search/users/{id}\")\n public User findAUserUsingPathParam(@PathVariable int id){\n return db.findAUser(id);\n }", "title": "" } ]
[ { "docid": "450fed674c85cc3a089dd4a25a2476eb", "score": "0.72580886", "text": "String paramPath();", "title": "" }, { "docid": "8c115267bee4f091b131746f879b4454", "score": "0.6878211", "text": "QueryParam createQueryParam();", "title": "" }, { "docid": "45b8c87bb93671df4b13310dbdd2788c", "score": "0.6747218", "text": "java.lang.String getParameter();", "title": "" }, { "docid": "f80effdb3d03faadf395f336670f7411", "score": "0.67398894", "text": "org.biocatalogue.x2009.xml.rest.SearchQueryParameter getQuery();", "title": "" }, { "docid": "f7c2f43aba672803961e9833effd2fa7", "score": "0.6587645", "text": "String getQueryNameArg();", "title": "" }, { "docid": "e731e0cf7d32c352be04a1047f23113b", "score": "0.65571725", "text": "String routeParam(String param);", "title": "" }, { "docid": "65c0c1864f42f81efb58ed7d5fe4de33", "score": "0.64906484", "text": "ResourceLocator addQueryParameter(String parameterName, String parameterValue);", "title": "" }, { "docid": "21dcde8cf2fdd3337241400ca17732ba", "score": "0.64030397", "text": "java.lang.String getQuery();", "title": "" }, { "docid": "1e9737d9be5a561a6098eb8458646759", "score": "0.6382178", "text": "ParameterPath getPath();", "title": "" }, { "docid": "a3c72a5ea8e605674966d097de0e046f", "score": "0.6317911", "text": "public abstract String getQueryValue();", "title": "" }, { "docid": "eed4834369304bfd30bf486025ec3809", "score": "0.62924814", "text": "DBQueryParamId createDBQueryParamId();", "title": "" }, { "docid": "4d54e29e844b3f9c47b9cbf81d6bea7b", "score": "0.62884814", "text": "QueryParamMapping createQueryParamMapping();", "title": "" }, { "docid": "13d99b2e62e1c659fbdf0b8e5ba74b2c", "score": "0.6266186", "text": "@Test\n public void pathParamTest02() {\n given().accept(ContentType.JSON)\n .and().params(\"limit\", 100)\n .and().pathParams(\"employee_id\", 110)\n .when().get(ConfigurationReader.get(\"API_url\") + \"/employees/{employee_id}\")\n .then().statusCode(200)\n .and().contentType(ContentType.JSON)\n .and().assertThat().body(\"employee_id\", equalTo(110));\n\n }", "title": "" }, { "docid": "e0a4e2894128a7746aafb938e34fcf4c", "score": "0.62320006", "text": "com.databricks.api.proto.mlflow.Service.ParameterSearchExpression getParameter();", "title": "" }, { "docid": "816afaf6589630bce23b6b3432b40248", "score": "0.6124523", "text": "public abstract String getParameter(final String key);", "title": "" }, { "docid": "f23c155024f9d8cc5807358fdf81cd24", "score": "0.60327226", "text": "protected String param(CharSequence name) throws NullPointerException {\r\n if (name == null) {\r\n throw new NullPointerException(\r\n \"The name parameter must not be null.\");\r\n }\r\n return request.getParameter(name.toString());\r\n }", "title": "" }, { "docid": "dca5c4c38c4f5bc1d07acf7869133b12", "score": "0.60322934", "text": "public abstract String getParamValue();", "title": "" }, { "docid": "1adb53ea493d17819e9220c7174fd173", "score": "0.599634", "text": "org.vootoo.client.netty.protocol.SolrProtocol.Param getParam(int index);", "title": "" }, { "docid": "8e22701958bac875a1433551485bcf21", "score": "0.59712964", "text": "public void addQuerystringParameter(String key, String value);", "title": "" }, { "docid": "5c53e5cac20b4f874d62281a5de620f3", "score": "0.5970604", "text": "public java.lang.String getParam(){\r\n return localParam;\r\n }", "title": "" }, { "docid": "5c53e5cac20b4f874d62281a5de620f3", "score": "0.5970604", "text": "public java.lang.String getParam(){\r\n return localParam;\r\n }", "title": "" }, { "docid": "06b028e5f7571717537cf649e58168a1", "score": "0.5962911", "text": "List<String> routeParams(String param);", "title": "" }, { "docid": "cbcaa8cbdeea1484a0cc782c676be66e", "score": "0.59574944", "text": "public abstract String getParameterInfo( String paramName );", "title": "" }, { "docid": "f6247d2b4f591314bd262d15fc1e9b92", "score": "0.5947728", "text": "@Override\n\t\t\t\t\tpublic String getParameter(String name) {\n\t\t\t\t\t\tif(param.isEmpty())\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn (String)param.get(name);\n\t\t\t\t\t}", "title": "" }, { "docid": "e20b54a2b5ce70819b0a7df05d339c3a", "score": "0.5946655", "text": "String getQuery();", "title": "" }, { "docid": "e20b54a2b5ce70819b0a7df05d339c3a", "score": "0.5946655", "text": "String getQuery();", "title": "" }, { "docid": "1039b5e1ce99539222b211b4ade13447", "score": "0.5910407", "text": "public static String getParam(@NonNull Uri uri, @NonNull String key) {\n return uri.getQueryParameter(key);\n }", "title": "" }, { "docid": "e1d2d448271e18252c65b9165e50a31c", "score": "0.5849669", "text": "void setQueryNameArg(String queryName);", "title": "" }, { "docid": "5af7e71597ab0bd850ac2c0b633635e3", "score": "0.5818966", "text": "SetQueryParam createSetQueryParam();", "title": "" }, { "docid": "ee2318c58cad0557d2e2eda803343303", "score": "0.5794092", "text": "public String getQueryString(){\n\t\treturn ParamID + \"=\" + clsServletUtilities.URLEncode(m_sid)\n\t\t\t+ \"&\" + ICPhysicalCountLineEntry.ParamPhysicalInventoryID + clsServletUtilities.URLEncode(m_sphysicalinventoryid)\n\t\t\t+ \"&\" + ICPhysicalCountLineEntry.ParamCountID + m_scountid\n\t\t\t+ \"&\" + ICPhysicalCountLineEntry.ParamdatCreated + clsServletUtilities.URLEncode(m_datcreated)\n\t\t\t+ \"&\" + ICPhysicalCountLineEntry.ParamID + m_sid\n\t\t\t+ \"&\" + ICPhysicalCountLineEntry.ParamItemNumber + clsServletUtilities.URLEncode(m_sitemnumber)\n\t\t\t+ \"&\" + ICPhysicalCountLineEntry.ParamQty + clsServletUtilities.URLEncode(m_sqty)\n\t\t\t+ \"&\" + ICPhysicalCountLineEntry.ParamUnitOfMeasure + clsServletUtilities.URLEncode(m_sunitofmeasure)\n\t\t;\n\t}", "title": "" }, { "docid": "5ae2e549b5234204f4f3a872cf01944a", "score": "0.5792502", "text": "public QueryParamTest(String name) {\n\t\tsuper(name);\n\t}", "title": "" }, { "docid": "1e2955fd3dfa650fe0f3ea8da855b1f5", "score": "0.5789774", "text": "@Override\r\n\tpublic String getParameter(String name) {\n\t\tString value = super.getParameter(name);\r\n\t\tif (value == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tvalue = filter(value);\r\n\t\treturn value;\r\n\t}", "title": "" }, { "docid": "195a8be0db0af77bbfc5aee42049298f", "score": "0.57895684", "text": "private String requestPath(final HttpUrl url) {\n String path = url.encodedPath();\n String query = url.encodedQuery();\n if (query != null) {\n return path + \"?\" + query;\n } else {\n return path;\n }\n }", "title": "" }, { "docid": "a49d9114efedf1f42017951c1758828e", "score": "0.57731783", "text": "@Test\n public void q1WithPathMethod(){\n\n Response response = given().accept(ContentType.JSON)\n .queryParam(\"q\", \"{\\\"country_id\\\":\\\"US\\\"}\")\n .when().get(\"/countries\");\n\n assertEquals(response.statusCode(),200);\n assertEquals(response.contentType(),\"application/json\");\n\n String countryId = response.path(\"items.country_id[0]\");\n String countryName = response.path(\"items.country_name[0]\");\n int regionId = response.path(\"items.region_id[0]\");\n\n System.out.println(\"countryId = \" + countryId);\n System.out.println(\"countryName = \" + countryName);\n System.out.println(\"regionId = \" + regionId);\n\n assertEquals(countryId,\"US\");\n assertEquals(countryName,\"United States of America\");\n assertEquals(regionId,2);\n\n }", "title": "" }, { "docid": "2c21409221b88c0e20e8bd2c7a0557ef", "score": "0.5762444", "text": "com.databricks.api.proto.mlflow.Service.Param getParameter();", "title": "" }, { "docid": "a833a9bc7268239c7f2217b16f1e686a", "score": "0.57265645", "text": "@Override\n public String getParameter(String name)\n {\n return null;\n }", "title": "" }, { "docid": "0b11c1bb3cce82328a57c090763de70d", "score": "0.5701124", "text": "@Test\n public void testQueryParamCharacters() {\n final String id = \"+&\";\n final String testUri = uriBase + \"/\" + id;\n final String fedoraId = converter.toInternalId(testUri);\n final String expectedId = FEDORA_ID_PREFIX + \"/\" + id;\n assertEquals(expectedId, fedoraId);\n }", "title": "" }, { "docid": "d042cc5ea1d9a50e6512a985339ec9f5", "score": "0.569938", "text": "private String getParameterPath() {\n StringBuilder paramPath = new StringBuilder();\n for (Map.Entry<String, String> e : parameters.entrySet()) {\n paramPath.append(RegistryConstants.URL_SEPARATOR).append(e.getKey()).append(\n RegistryConstants.URL_PARAMETER_SEPARATOR).append(e.getValue());\n if (VERSION_PARAMETER_NAME.equals(e.getKey())) {\n currentVersion = false;\n }\n }\n\n return paramPath.toString();\n }", "title": "" }, { "docid": "a4812acfe406a310a8e92a60b875877a", "score": "0.5698449", "text": "private String getParam(String param) {\n //container.getTokens().remove(param);\n //return container.getParams().remove(param).trim();\n return container.getParam(param);\n }", "title": "" }, { "docid": "32eb97cfe56e7eb160bfde6727287aaf", "score": "0.5698387", "text": "public String getParam()\r\n {\r\n return param;\r\n }", "title": "" }, { "docid": "90324aba5be869b84651bc6eef9117c5", "score": "0.5693356", "text": "API formParam(String name, Object value);", "title": "" }, { "docid": "3b6843194c833431c156effda9912d6a", "score": "0.56920683", "text": "private String getParameter(String name, HttpServletRequest request) {\n String value = request.getParameter(name);\n if (value == null || \"\".equals(value)) {\n return null;\n } else {\n return value;\n }\n }", "title": "" }, { "docid": "087ffe4fc74e43304258c6dc9fa03248", "score": "0.5681667", "text": "Object getQuery();", "title": "" }, { "docid": "59e77847c5bf78634bf34db2128c469d", "score": "0.56778884", "text": "public String getParameter(String name)\n {//Let's implement the same functionality as the normal request\n if(parameters.containsKey(name))\n return parameters.get(name);\n return null;\n }", "title": "" }, { "docid": "18370a9a0c23123f7f4f4bb10a4bf4b0", "score": "0.5672526", "text": "private String getParameter(String paraName, String request) \n {\n if (request==null) return null;\n String arr[] = request.replaceAll(\"&\",\"=\").split(\"=\");\n for (int i = 0; i < arr.length; i++) \n {\n if (i%2==0)\n {\n if (arr[i].equals(paraName))\n {\n if ((i+1)<arr.length)\n {\n return arr[i+1];\n }\n else\n {\n return \"\";\n }\n \n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "689b2b8f2989fb5dd85383b57124c719", "score": "0.5671429", "text": "private static Map<String,?> getQueryParameters(\n String uri\n ){\n \tfinal int beginOfQuery = uri.indexOf('?') + 1;\n\t\treturn AbstractContext.getParameters(uri.substring(beginOfQuery));\n }", "title": "" }, { "docid": "500ab2ce6fe84e6da497641d4832527c", "score": "0.5666188", "text": "Object[] getQueryArgumentsArg();", "title": "" }, { "docid": "b8bff80944ec850489441eab733fbc55", "score": "0.5660979", "text": "Definition getParameter2();", "title": "" }, { "docid": "e7a04e2e1a21726fb64ac9f8fb6ea46c", "score": "0.5653812", "text": "@Override\n public String getParam(String paramName) {\n return null;\n }", "title": "" }, { "docid": "71b043e56e0c58a17ac86f3462227d4d", "score": "0.56432414", "text": "org.biocatalogue.x2009.xml.rest.SearchQueryParameter addNewQuery();", "title": "" }, { "docid": "dcc96d53e7c792804478642b57caf815", "score": "0.5631363", "text": "@DisplayName(\"GGET request to /api/spartans/search with Query Params\")\n @Test\n public void test4(){\n Map<String,Object> queryMap = new HashMap<>();\n queryMap.put(\"nameContains\",\"e\");\n queryMap.put(\"gender\",\"Female\");\n Response response = given()\n .accept(ContentType.JSON).log().all()\n .and().queryParam(\"nameContains\", \"e\")\n .and().queryParam(\"gender\", \"Female\")\n .when()\n .get(\"/api/spartans/search\");\n\n assertEquals(200, response.statusCode());\n\n assertEquals(\"application/json\", response.contentType());\n\n\n assertTrue(response.body().asString().contains(\"Female\"));\n assertTrue(response.body().asString().contains(\"Janette\"));\n }", "title": "" }, { "docid": "74c2799ff848c5d2ca273a26535d2044", "score": "0.56281763", "text": "Page queryPage(Map<String, Object> paramMap);", "title": "" }, { "docid": "a934c83c8201e12e25b1617dfebd2b0e", "score": "0.5628143", "text": "Var getParameter(String name);", "title": "" }, { "docid": "e3229a2d9f0192719eaad5a7c647e04c", "score": "0.562384", "text": "@Override\n\t\tpublic String getParameter(String arg0) {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "da2ed3be550809c05902d1bfcb1cf05e", "score": "0.56163", "text": "Definition getParameter1();", "title": "" }, { "docid": "0128d7c14347abec818a2d8a542723b0", "score": "0.5613579", "text": "public String getFlParam();", "title": "" }, { "docid": "92b3a7fb2d8aab00d6f04788e71d6c26", "score": "0.5595844", "text": "public String getParameter(String name) throws IOException {\n return request.getParameter(name);\n }", "title": "" }, { "docid": "f89d1dbbfb7026dddd9f427ab204b586", "score": "0.5595165", "text": "String getParameter(HttpServletRequest request, String name){\n return getParamOrDefault(request, name, \"\");\n }", "title": "" }, { "docid": "de2d5024a3438ad8a4c48f9920072a7a", "score": "0.5585673", "text": "void setQuery(org.biocatalogue.x2009.xml.rest.SearchQueryParameter query);", "title": "" }, { "docid": "a459597022dbaff8d003a9c6739d42d7", "score": "0.55769944", "text": "java.lang.String getQueryText();", "title": "" }, { "docid": "de13d18bc2c7de3e23e7e2d15c9b4bcc", "score": "0.55750936", "text": "void setQuery(String query);", "title": "" }, { "docid": "5c08302bc2b6e181782bc1f214fcb5bc", "score": "0.5569821", "text": "ParamHandler getParamHandler();", "title": "" }, { "docid": "beb2275e0a648c3368188b2bce0dcee8", "score": "0.55689543", "text": "public String getParameter(String name) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "166fb839e21103b0ca04963bd6360f4a", "score": "0.5566839", "text": "public String getQueryString() {\n // String s = getParameter(\"queryString\");\n// if (s == null && isFirstAction()) {\n// s = \"module=\" + defaultModule + \"&action=\" + defaultAction;\n// }\n // return s;\n return \"aaa\";\n }", "title": "" }, { "docid": "7c16e299e7e92e215144014d06c755a8", "score": "0.55651397", "text": "@SuppressWarnings({ \"rawtypes\" })\r\n public String getQueryParameter() {\r\n StringBuilder query = new StringBuilder();\r\n try {\r\n Iterator it = queryParams.entrySet().iterator();\r\n if (!it.hasNext()) {\r\n return getAccessTokenQry();\r\n }\r\n while (it.hasNext()) {\r\n Map.Entry param = (Map.Entry) it.next();\r\n if (query.length() > 0) {\r\n query.append(\"&\");\r\n }\r\n query.append(param.getKey()).append(\"=\");\r\n if (!(param.getValue() instanceof String)) {\r\n query.append(param.getValue());\r\n } else {\r\n query.append(URLEncoder.encode((String) param.getValue(), \"UTF-8\"));\r\n }\r\n\r\n }\r\n } catch (UnsupportedEncodingException e) {\r\n }\r\n return (getAccessTokenQry().length() > 0) ? getAccessTokenQry() + \"&\" + query.toString()\r\n : query.toString();\r\n }", "title": "" }, { "docid": "58df04deadb8e210c702b3946ded8760", "score": "0.5545948", "text": "java.lang.String getStringParamter();", "title": "" }, { "docid": "93a842ac0ccad330f120b45cc1cadea2", "score": "0.55338675", "text": "Map<String, List<String>> getQueryParameters();", "title": "" }, { "docid": "b7d4a2e10c9e14c702c62c60d1848b8b", "score": "0.55300343", "text": "public Object getParam(String key) {\n return params.get(key);\n }", "title": "" }, { "docid": "211f629108b3054b05a9416b972d2013", "score": "0.5528073", "text": "@Override\n public UriComponents getQueryUriComponents() {\n return UriComponentsBuilder\n .fromHttpUrl(c4hOpenEHRAddress + \"/view\")\n .path(\"/4ee4bad9-2f9e-4e33-b1d6-6572709cabee\" + \"/ProblemAgeBands\")\n .queryParam(\"targetCompositions\", \"Problem list\")\n .queryParam(\"targetTextValues\", StringUtils.strip(graphQuery.getSearchString()))\n .build();\n }", "title": "" }, { "docid": "7fe879d0ba7bfbfee7474ba50cea3ff2", "score": "0.55265117", "text": "@RequestMapping(\"/query/.*.json\")\n//\t@GPResponseBody\n public ModelAndView query(HttpServletRequest request,HttpServletResponse response,\n @RequestParam(value=\"name\",required=false) String name,\n @RequestParam(\"addr\") String addr){\n Map<String, Object> model = new HashMap<String, Object>();\n model.put(\"name\", name);\n model.put(\"addr\", addr);\n return new ModelAndView(\"first.pgml\",model);\n }", "title": "" }, { "docid": "c212a4566d072263c1170b76c914075b", "score": "0.5500934", "text": "private String getParam(String key) {\n\t\treturn getConf().get(key);\n\t}", "title": "" }, { "docid": "7b6f97afc6a3344840fc8452c3f8892c", "score": "0.54962593", "text": "public void setQuery(String v) {\n this.query = v;\n }", "title": "" }, { "docid": "ec7c500c614312029a37f120d960c7a9", "score": "0.5489415", "text": "public Object getParameter(String parameterName) {\n Map<String, Object> mappa;\n MongoDatabase dbAdmin = getDBAdmin();\n Document param;\n\n mappa = new LinkedHashMap<>();\n mappa.put(\"getParameter\", 1);\n mappa.put(parameterName, 1);\n\n param = dbAdmin.runCommand(new Document(mappa));\n return param.get(parameterName);\n }", "title": "" }, { "docid": "38a451782d6d8b7149508a780b137521", "score": "0.5481133", "text": "@Test\n\tpublic void testExecSelect_ParameterQueryWithValue() throws SqlResourceFactoryException, SqlResourceException,\n\t\t\tInvalidRequestException {\n\t\tRequest request = RequestFactoryHelper.getRequest(Request.Type.SELECT, sqlResource.getName(), null,\n\t\t\t\tnew String[] {\"description\", \"A dark tale...\"});\n\t\tfinal List<Map<String, Object>> results = sqlResource.read(request);\n\t\tassertEquals(\"result size\", 1, results.size());\n\t\tassertEquals(\"id\", 5002, ((Integer)results.get(0).get(\"film_id\")).intValue());\n\t}", "title": "" }, { "docid": "b1059ad55329a12a9d067193a1f19a06", "score": "0.547322", "text": "public Document findVersion(MultiValueMap<String, String> param, Pageable p);", "title": "" }, { "docid": "e8e60ffb521a448455c9403e6570e147", "score": "0.54698175", "text": "public java.lang.String getParam() {\n return param;\n }", "title": "" }, { "docid": "0094d33eda3414d59702faa61cf960d7", "score": "0.54385275", "text": "java.lang.String getParamName();", "title": "" }, { "docid": "983e5c735c11d58517efd3fb8680a7a8", "score": "0.5436433", "text": "@Override\r\n public PageObject query(QueryParamater param)\r\n {\n\tRowBounds rb = new RowBounds();\r\n\tPageObject po = new PageObject();\r\n\tparam.setTotalCount(this.count(param.getMap()));\r\n\tpo.setResults(this.getSqlSession().selectList(getExecutorName(SQLID_QUERY), param.getMap(), new RowBounds(param.getFromIndex(), param.getToIndex())));\r\n\tpo.setNeverypage(param.getNeverypage());\r\n\tpo.setTotal(param.getTotalCount());\r\n\treturn po;\r\n }", "title": "" }, { "docid": "c7e79d238bd16f2da0e5001bdf91fb7e", "score": "0.5431733", "text": "public String getExtraParam() {\r\n if (extraParam == null) {\r\n return \"\";\r\n }\r\n return \"/\" + extraParam;\r\n }", "title": "" }, { "docid": "c9f98cfcd2e57da578f157e83b559931", "score": "0.54314494", "text": "public Parameter getParameter(String name);", "title": "" }, { "docid": "8b3d894a4b7573616783d65a57eb8bce", "score": "0.5416282", "text": "public String getParameter(String name) {\n if (\"message\".equals(name)) {\n return postBody;\n }\n String value = super.getParameter(name);\n if (value == null && isFirstAction()) {\n logger.debug(\"value is null!! for param: \" + name);\n if (name.equalsIgnoreCase(\"module\")) {\n return defaultModule;\n } else if (name.equalsIgnoreCase(\"action\")) {\n return defaultAction;\n } else if (name.equalsIgnoreCase(\"requestURI\")) {\n return defaultRequestUri;\n }\n } else {\n logger.debug(\" Found param: \" + name + \",\" + value);\n }\n\n // fix bug: remove .page extension\n if (!name.equalsIgnoreCase(\"requestUri\") && value != null && value.endsWith(SystemGlobals.getValue(ConfigKeys.SERVLET_EXTENSION))) {\n value = value.replaceAll(SystemGlobals.getValue(ConfigKeys.SERVLET_EXTENSION), \"\");\n }\n\n return value;\n }", "title": "" }, { "docid": "b57473c155ace134198e13d28a838957", "score": "0.5405321", "text": "protected static String getQueryParam(String queryString, String paramName) throws ArrayIndexOutOfBoundsException, UnsupportedEncodingException {\n // query string should not be empty or blank\n if (StringUtils.isNotBlank(queryString)) {\n String[] params = queryString.split(\"&\");\n String[] param;\n for (String item : params) {\n if (item.equals(paramName)) {\n param = item.split(\"=\", 2);\n return URLDecoder.decode(param[1], \"UTF-8\");\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "8d1c3fad143550b096128514fe3b9de3", "score": "0.5399943", "text": "private static String getQuery(char[] path)\r\n {\r\n int index;\r\n int size;\r\n int start_pos = 0;\r\n \r\n // from the start of the path, keep working until we hit a '?' or '#'\r\n index = start_pos;\r\n size = path.length;\r\n \r\n while((index < size) &&\r\n (path[index] != '?') &&\r\n (path[index] != '#'))\r\n index++;\r\n \r\n // if we've hit the end of the string or a # then obviously we didn't get\r\n // a query so just return null right now.\r\n if((index == size) || (path[index] == '#'))\r\n return null;\r\n \r\n start_pos = index + 1;\r\n \r\n while((index < size) && (path[index] != '#'))\r\n index++;\r\n \r\n String ret_val = new String(path, start_pos, index - start_pos);\r\n \r\n return ret_val;\r\n }", "title": "" }, { "docid": "61ddc7d6340bfb792ba332e9b98790d8", "score": "0.5384736", "text": "public String getParameter()\r\n {\r\n return parameter;\r\n }", "title": "" }, { "docid": "bd9eea0a2079409ee553b572a0a39ed5", "score": "0.5374655", "text": "List<Post> query(Map<String, String> myParams);", "title": "" }, { "docid": "c0ee5a2bf697f19f91799cd5a592013a", "score": "0.5374225", "text": "public String getParams();", "title": "" }, { "docid": "99816cde9b5c03ac46eb0af89cf37a5e", "score": "0.5372992", "text": "Collection<HttpArchive.Param> getParams();", "title": "" }, { "docid": "d2d539216779c70d1147de6b4ca34f2d", "score": "0.53719157", "text": "default boolean supportsQueryParams() {\n return true;\n }", "title": "" }, { "docid": "890ff1508d19cb13281f7343ec64080f", "score": "0.5371282", "text": "@Query(\"{'o_info': ?0}\")\n public UserQR findByO_info(String o_info);", "title": "" }, { "docid": "cd2b7c553c79e6df61dc60e6e7dc5074", "score": "0.5363606", "text": "static private String\n arg(final String URL, final String name) {\n return Query.arg(null, URI.query(\"\", URL), name);\n }", "title": "" }, { "docid": "fe6d8d17a941b85716d1c3c2480fa36b", "score": "0.5361785", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"id_ord\", id);\n\n return params;\n }", "title": "" }, { "docid": "b1446fa6dff414a4479621f573179bbc", "score": "0.5357239", "text": "protected String apiPath(String path, String queryString) {\n if(path!=null && path.length()>0 && !path.startsWith(\"/\")) {\n path = \"/\" + path;\n }\n StringBuilder rval = new StringBuilder();\n rval.append(config.getOrgUrl()).append(\"/api/v1\").append(path);\n if (null != queryString && !queryString.isEmpty()) {\n rval.append(\"?\").append(queryString);\n }\n return rval.toString();\n }", "title": "" }, { "docid": "bfd4e570eef5863b581dc1abbf9487d6", "score": "0.53561527", "text": "private String getQuery(List<NameValuePair> params) throws UnsupportedEncodingException {\n StringBuilder result = new StringBuilder();\n boolean first = true;\n\n for (NameValuePair pair : params) {\n if (first) {\n first = false;\n } else {\n result.append(\"&\");\n }\n\n result.append(URLEncoder.encode(pair.getName(), \"UTF-8\"));\n result.append(\"=\");\n result.append(URLEncoder.encode(pair.getValue(), \"UTF-8\"));\n }\n\n return result.toString();\n }", "title": "" }, { "docid": "ff584745c50615853a615866cf294929", "score": "0.5352096", "text": "@SuppressWarnings(\"unchecked\")\n public String getParameter(HttpServletRequest request, String key) {\n String value = request.getParameter(key);\n if (value != null) {\n return value;\n } else {\n for (NameValuePair pair : (List<NameValuePair>) request.getAttribute(PARAMS_ATTRIBUTE_KEY)) {\n if (key.equals(pair.getName())) {\n return pair.getValue();\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "8bea88d63a04f75aac94f8303ab2efec", "score": "0.53514063", "text": "public String toURLParam() {\n StringBuffer url = new StringBuffer();\n\n if (null != scientificName) {\n url.append(Utilities.writeURLParameter(\"scientificName\", scientificName));\n }\n if (null != relationOp) {\n url.append(Utilities.writeURLParameter(\"relationOp\", relationOp.toString()));\n }\n // Search in results\n if (null != criteriaSearch) {\n url.append(Utilities.writeURLParameter(\"criteriaSearch\", criteriaSearch));\n }\n if (null != criteriaType) {\n url.append(Utilities.writeURLParameter(\"criteriaType\", criteriaType.toString()));\n }\n if (null != oper) {\n url.append(Utilities.writeURLParameter(\"oper\", oper.toString()));\n }\n return url.toString();\n }", "title": "" }, { "docid": "40748b2f4fc6353a2c02e9f802939748", "score": "0.5348041", "text": "public String getQueryStringValue(String name) {\n\t\tif(queryString == null) return null;\n\t\treturn queryString.get(name);\n\t}", "title": "" }, { "docid": "56fc1bda72c90fef6a2dbbe5a2028ef0", "score": "0.53388894", "text": "Params getParams();", "title": "" }, { "docid": "d10fcd754c0c6b68d318e60d08249472", "score": "0.5335356", "text": "@GET\n @Path(\"findbyfirstname/{firstname}\")\n @Produces({\"application/json\"})\n public List<Resident> findbyfirstname(@PathParam(\"firstname\") String firstname) {\n Query query = em.createNamedQuery(\"Resident.findByFirstname\");\n query.setParameter(\"firstname\",firstname);\n return query.getResultList(); \n }", "title": "" }, { "docid": "a235859575a2841090a9b01407053b87", "score": "0.53333807", "text": "public static boolean isRequestingQueryParam(final HttpServletRequest req, String queryParam) {\n if (req.getQueryString() != null && req.getQueryString().contains(queryParam)) {\n try {\n for (String pair : req.getQueryString().split(\"&\")) {\n int eq = pair.indexOf(\"=\");\n String key;\n String value = null;\n if (eq < 0) {\n // key with no value\n key = URLDecoder.decode(pair, UTF8_ENCODING);\n } else {\n // key=value\n key = URLDecoder.decode(pair.substring(0, eq), UTF8_ENCODING);\n value = URLDecoder.decode(pair.substring(eq + 1), UTF8_ENCODING);\n }\n if (key.equalsIgnoreCase(queryParam) &&\n (value == null || value.equalsIgnoreCase(\"true\"))) {\n return true;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n _log.error(\"exception parsing query string\", ex);\n throw APIException.badRequests.parameterIsNotValidURI(\n URI.create(req.getQueryString()), ex);\n }\n }\n return false;\n }", "title": "" }, { "docid": "050f13946328c877f0c917741e03fa1a", "score": "0.5328869", "text": "@GET\n @Path(\"findbyFirstnameandSurname/{firstname}/{surname}\")\n @Produces({\"application/json\"})\n public List<Resident> findbyFirstnameandSurname(@PathParam(\"firstname\") String firstname,@PathParam(\"surname\") String surname){\n TypedQuery query = em.createQuery(\"Select r from Resident r where r.firstname = :firstname and r.surname = :surname\",Resident.class);\n query.setParameter(\"firstname\",firstname);\n query.setParameter(\"surname\",surname);\n return query.getResultList(); \n }", "title": "" }, { "docid": "c2367d244f4e816feed72194c8a3e225", "score": "0.53269887", "text": "protected Object sessionGetObjectBy1StringParameterNamedQuery(String qstr, String parameter, String value){\n\n Query query = null;\n Object result = null;\n try{\n query = sessionFactory.getCurrentSession().createQuery(qstr);\n query.setString(parameter, value);\n result = query.uniqueResult();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n return result;\n }", "title": "" } ]
17ea6147fd94b30db30cc98a0e0c191b
Finds the Style named styleName in styles.
[ { "docid": "b2f2cbef81f50d13d23df08327efdaf2", "score": "0.8299732", "text": "private Style findStyle(String styleName, Style[] styles)\n \t\t\tthrows NoSuchElementException {\n \t\tif (styles == null || styles.length == 0) {\n \t\t\tthrow new NoSuchElementException(\n \t\t\t\t\t\"No styles have been provided to search for \" + styleName);\n \t\t}\n \t\tStringBuffer noMatchNames = new StringBuffer();\n \t\tfor (int i = 0; i < styles.length; i++) {\n \t\t\tif (styles[i] != null && styleName.equals(styles[i].getName())) {\n \t\t\t\treturn styles[i];\n \t\t\t}\n \t\t\tnoMatchNames.append(styles[i].getName());\n \t\t\tif (i < styles.length)\n \t\t\t\tnoMatchNames.append(\", \");\n \t\t}\n \t\tthrow new NoSuchElementException(styleName\n \t\t\t\t+ \" not found. Provided style names: \" + noMatchNames);\n \t}", "title": "" } ]
[ { "docid": "6ef1744e39cf3db92dd5e896901badda", "score": "0.68917847", "text": "public Style getStyleResource( String name ) {\n\n Style style = styles.get( name );\n \n if ( style == null && name.length() == 0 ) {\n String tmpName = \"default\";\n style = styles.get( tmpName );\n if ( style == null && name.length() == 0 ) {\n tmpName = \"default:\" + this.name; \n style = styles.get( tmpName );\n }\n } else if ( style == null && \"default\".equals( name ) ) {\n String tmpName = \"default:\" + this.name;\n style = styles.get( tmpName );\n }\n\n if ( style == null ) {\n if ( parent != null ) {\n style = parent.getStyleResource( name );\n }\n }\n\n return style;\n }", "title": "" }, { "docid": "6d67b445c5cc3f1d900e1b2d7b02d68e", "score": "0.664478", "text": "private Style findStyleOf(GetMapRequest request, FeatureTypeInfo layer,\n StyledLayer[] styledLayers) throws WmsException {\n Style style = null;\n String layerName = layer.getName();\n StyledLayer sl;\n \n for (int i = 0; i < styledLayers.length; i++) {\n sl = styledLayers[i];\n \n if (layerName.equals(sl.getName())) {\n if (sl instanceof UserLayer) {\n Style[] styles = ((UserLayer) sl).getUserStyles();\n \n if ((null != styles) && (0 < styles.length)) {\n style = styles[0];\n }\n } else if (sl instanceof NamedLayer) {\n Style[] styles = ((NamedLayer) sl).getStyles();\n \n if ((null != styles) && (0 < styles.length)) {\n style = styles[0];\n }\n \n if (style instanceof NamedStyle) {\n style = findStyle(request, style.getName());\n }\n } else {\n throw new RuntimeException(\"Unknown layer type: \" + sl);\n }\n \n break;\n }\n }\n \n if (null == style) {\n style = layer.getDefaultStyle();\n }\n \n FeatureType type;\n \n try {\n type = layer.getFeatureType();\n } catch (IOException ioe) {\n throw new RuntimeException(\"Error getting FeatureType, this should never happen!\");\n }\n \n checkStyle(style, type);\n \n return style;\n }", "title": "" }, { "docid": "a1a5be0e5ad18b11b316e123fd5780f1", "score": "0.6447664", "text": "public int getStyleId(String styleName) {\n return ResourceUtil.getResStyleID(styleName);\n }", "title": "" }, { "docid": "bce1119f026c1e8882dc301ee7057dad", "score": "0.6411468", "text": "public UserStyle getStyle( String name ) {\n\n Style style = styles.get( name );\n UserStyle us = null;\n\n if ( style == null ) {\n if ( parent != null ) {\n us = parent.getStyle( name );\n }\n } else {\n us = style.getStyleContent();\n }\n\n return us;\n }", "title": "" }, { "docid": "f7324459d1ae341fadad575a6588a225", "score": "0.61476654", "text": "public String getStyle(){\r\n return styleName;\r\n }", "title": "" }, { "docid": "bf052ba835bd6ae75d6aefa146e567cb", "score": "0.6079567", "text": "StyleRef getStyle();", "title": "" }, { "docid": "e38772a7272a322f93d8b19da6c28023", "score": "0.59152776", "text": "String getStyle(String name, String style, String defaultStyle) {\n return ModelMenu.buildStyle(style, null, defaultStyle);\n }", "title": "" }, { "docid": "0fee4e6201f3b923d4889a7d22671399", "score": "0.575552", "text": "private DomContent getStyle(String style){\n String content = \"\";\n try {\n Path path = Paths.get(ClassLoader.getSystemResource(style+\".css\").toURI());\n content = new String(Files.readAllBytes(path));\n } catch (Exception e){\n System.out.println(\"Could not retrieve style\");\n e.printStackTrace();\n }\n DomContent styleEl = style( // style element\n content\n );\n return styleEl;\n }", "title": "" }, { "docid": "ab52dc090f9c2c5e6029264050ac805f", "score": "0.55940944", "text": "public void setStyle(String layerName, String styleName)\r\n {\r\n this.styles.put(layerName, styleName);\r\n }", "title": "" }, { "docid": "0e5917ff488adb8c0be21202c3a12f83", "score": "0.5562002", "text": "public Page<StyleContainer> searchStyles(Pageable pageable) {\n Page<StylingEntity> result = styleCustomDao.searchStylings(null,pageable);\n Page<StyleContainer> results = result.map(styleHelper::mappingStyleToDto);\n return results;\n }", "title": "" }, { "docid": "3eb22bddffe0dd569e27dad3cc7caea3", "score": "0.5473631", "text": "public java.lang.String getStyle()\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(STYLE$4);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "b7532cd3b93e4f7984e7f5f3d618b7d8", "score": "0.5468995", "text": "T withStyleName(String styleName);", "title": "" }, { "docid": "8bc272f9329fc05184c31393a633ab35", "score": "0.539159", "text": "public StyleRule getStyleRule(IStyleType aStyleType, MatchCriteria aCriteria)\n throws StyleException {\n synchronized (aStyleType) {\n if (!this.rules.containsKey(aStyleType)) {\n loadRules(aStyleType);\n }\n }\n StyleRuleset set = this.rules.get(aStyleType);\n StyleRule bestMatch = null;\n if (set != null) {\n List<StyleRule> rules = set.getStyleRules();\n int matchRank = 0;\n try {\n for (StyleRule rule : rules) {\n int value = aCriteria.matches(rule.getMatchCriteria());\n if (value > matchRank) {\n matchRank = value;\n bestMatch = rule;\n }\n }\n } catch (Exception e) {\n throw new StyleException(\"Error determining matching rules.\", e);\n }\n }\n return bestMatch;\n }", "title": "" }, { "docid": "58bddca69e1027841978eca360e1570b", "score": "0.5340177", "text": "private org.eclipse.microprofile.openapi.models.parameters.Parameter.Style readParameterStyle(JsonNode node) {\n if (node == null || !node.isTextual()) {\n return null;\n }\n return PARAMETER_STYLE_LOOKUP.get(node.asText());\n }", "title": "" }, { "docid": "ec26fcc2983507511ae6b3d34e10b050", "score": "0.5307805", "text": "public Style getStyleTemplate(String tplId) throws ConfigurationException {\n\t\tif (!styleTemplates.containsKey(tplId)) {\n\t\t\tthrow new ConfigurationException(\"No styleTemplate with the id \" + tplId);\n\t\t}\n\t\treturn styleTemplates.get(tplId);\n\t}", "title": "" }, { "docid": "7954a2bd686a6ffda5103bc6d14559a1", "score": "0.5146638", "text": "public org.w3.x1999.xhtml.StyleSheet xgetStyle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.w3.x1999.xhtml.StyleSheet target = null;\n target = (org.w3.x1999.xhtml.StyleSheet)get_store().find_attribute_user(STYLE$4);\n return target;\n }\n }", "title": "" }, { "docid": "b9a251597058b894fc76102ccbc6a228", "score": "0.514211", "text": "public StyleRuleset getStyleRuleSet(IStyleType st) {\n\n synchronized (st) {\n\n if (!rules.containsKey(st)) {\n loadRules(st);\n }\n }\n\n return rules.get(st);\n }", "title": "" }, { "docid": "6f51b80e00d684c98ae2f86e6801cd7c", "score": "0.51395655", "text": "org.openxmlformats.schemas.drawingml.x2006.main.CTShapeStyle getStyle();", "title": "" }, { "docid": "f82033d9d05f169b9056d93bd978d234", "score": "0.5136118", "text": "public int getStyle() {\n\t\treturn style;\n\t}", "title": "" }, { "docid": "057323e53a21e9a125004dc4984495d3", "score": "0.51307935", "text": "public String getStyle()\n {\n return style;\n }", "title": "" }, { "docid": "1a06925384390c91db6142732dde622b", "score": "0.5128862", "text": "public String getStyle() {\n\t\treturn (String)getDynamicProperty(\"style\");\n\t}", "title": "" }, { "docid": "0fdb3b60997a34f8cea48261d52feef2", "score": "0.51259154", "text": "public Hashtable getStyles()\r\n {\r\n return styles;\r\n }", "title": "" }, { "docid": "087a4f58d0e7ad79c2393b49b7cdd489", "score": "0.51179665", "text": "public final String getStyle() {\r\n return (style);\r\n }", "title": "" }, { "docid": "78ae7a25083166f17ddbb56c0e9d0562", "score": "0.5097415", "text": "public Style(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "3f290052b101a43c6230aa025248a0b6", "score": "0.50752485", "text": "public String getStyle() {\r\n if (style != null) {\r\n return style;\r\n }\r\n ValueBinding vb = getValueBinding(\"style\");\r\n return vb != null ? (String) vb.getValue(getFacesContext()) : null;\r\n }", "title": "" }, { "docid": "2b75de8c41c32bb047dfcfcb21fa03b0", "score": "0.50230575", "text": "public interface Style extends CssResource {\n\n /**\n * The style for the submit button\n *\n * @author Johannes Gryffenberg <johannes.gryffenberg@gmail.com>\n * @since 22 January 2013\n *\n * @return The name of the compiled style\n */\n String submitButton();\n\n /**\n * The style for the text box\n *\n * @author Johannes Gryffenberg <johannes.gryffenberg@gmail.com>\n * @since 22 January 2013\n *\n * @return The name of the compiled style\n */\n String textBox();\n\n /**\n * The style drop down element\n *\n * @author Johannes Gryffenberg <johannes.gryffenberg@gmail.com>\n * @since 22 January 2013\n *\n * @return The name of the compiled style\n */\n String dropDown();\n\n /**\n * The style for the info text that is displayed on the drop down before data is loaded\n *\n * @author Johannes Gryffenberg <johannes.gryffenberg@gmail.com>\n * @since 22 January 2013\n *\n * @return The name of the compiled style\n */\n String infoText();\n\n /**\n * The style for the info text that is displayed on the drop down if there is no results\n *\n * @author Johannes Gryffenberg <johannes.gryffenberg@gmail.com>\n * @since 22 January 2013\n *\n * @return The name of the compiled style\n */\n String noResultText();\n \n /**\n * The style for the dropDownPopUpContainer with hidden overflow field.\n * \n * @author saurabh <saurabh.chawla@jktech.com>\n * \n * @return The name of the compiled style\n */\n String dropDownPopUpContainer();\n\n }", "title": "" }, { "docid": "81d445db08cfa6a405ee997193486dc1", "score": "0.50219923", "text": "public final StageStyle getStyle() {\n return style;\n }", "title": "" }, { "docid": "c1e8e83cefc4daf93fc2a11c4464d11f", "score": "0.5011143", "text": "private Style getOrCreate( String prefix, Set<String> modes ){\n String id = id( prefix, modes );\n Style style = getStyle( id );\n if( style == null ){\n style = addStyle( id, getStyle( prefix ) );\n \n StyleConstants.setBold( style, modes.contains( \"b\" ));\n StyleConstants.setItalic( style, modes.contains( \"i\" ));\n }\n return style;\n }", "title": "" }, { "docid": "96441178920b48430cfd22b5143e7080", "score": "0.50111413", "text": "private Style[] parseSld(Reader xmlIn) throws WmsException {\n \t\tSLDParser parser = new SLDParser(styleFactory, xmlIn);\n \t\tStyle[] styles = null;\n \n \t\ttry {\n \t\t\tstyles = parser.readXML();\n \t\t} catch (RuntimeException e) {\n \t\t\tthrow new WmsException(e);\n \t\t}\n \n \t\tif ((styles == null) || (styles.length == 0)) {\n \t\t\tthrow new WmsException(\"Document contains no styles\");\n \t\t}\n \n \t\treturn styles;\n \t}", "title": "" }, { "docid": "70ad8051b0297cf792892022aaf5b78a", "score": "0.49874824", "text": "private org.eclipse.microprofile.openapi.models.headers.Header.Style readHeaderStyle(JsonNode node) {\n if (node == null || !node.isTextual()) {\n return null;\n }\n return HEADER_STYLE_LOOKUP.get(node.asText());\n }", "title": "" }, { "docid": "5ee71c796ca0e205cf4d193417217f9b", "score": "0.4975727", "text": "public String getStyle() {\n\t\treturn (String) getStateHelper().eval(PropertyKeys.style);\n\t}", "title": "" }, { "docid": "94285cf1c97d3daa046ef2da8307b581", "score": "0.49748948", "text": "public Integer getStyle() {\n return style;\n }", "title": "" }, { "docid": "702b2f3020f8ba81c83225a9312eaddf", "score": "0.49521437", "text": "public int getStyle()\r\n\t\t{\r\n\t\t\tfinal int mod = (allowPlural && checkBox.isSelected()) ? PLURAL_DELTA : 0;\r\n\t\t\treturn styleBox.getSelectedIndex() + mod;\r\n\t\t}", "title": "" }, { "docid": "2b81575fa42ccccf6955d7a01677820e", "score": "0.49517584", "text": "private void checkStyle(Style style, FeatureType fType)\n throws WmsException {\n StyleAttributeExtractor sae = new StyleAttributeExtractor();\n sae.visit(style);\n \n String[] styleAttributes = sae.getAttributeNames();\n String attName;\n final int length = styleAttributes.length;\n \n for (int i = 0; i < length; i++) {\n attName = styleAttributes[i];\n \n if (fType.getAttributeType(attName) == null) {\n throw new WmsException(\"The requested Style can not be used with \"\n + \"this featureType. The style specifies an attribute of \" + attName\n + \" and the featureType definition is: \" + fType);\n }\n }\n }", "title": "" }, { "docid": "1d9871f366be4225cacfd7e352dc0f80", "score": "0.49343458", "text": "@SuppressWarnings(\"unchecked\")\r\n public static String errorClass(String name, String styleClass) {\r\n HttpServletRequest request = RequestLocator.get();\r\n Map<String, String> errors =\r\n (Map<String, String>) request\r\n .getAttribute(ControllerConstants.ERRORS_KEY);\r\n if (errors != null && errors.containsKey(name)) {\r\n return styleClass;\r\n }\r\n return \"\";\r\n }", "title": "" }, { "docid": "42f44646af9d9cf65aca2f1cd1d5a329", "score": "0.49138093", "text": "public boolean isSetStyle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(STYLE$4) != null;\n }\n }", "title": "" }, { "docid": "796b65e47f38eb5a19e67f1bd1ca216c", "score": "0.49114504", "text": "public String getCurrentStyle() {\r\n return currentStyle;\r\n }", "title": "" }, { "docid": "50a721027085cc0e91e4ad202a14a2f3", "score": "0.4907613", "text": "com.google.search.now.ui.piet.StylesProto.StyleIdsStack getStyleReferences();", "title": "" }, { "docid": "fc9575abd44114d972420238c1355b1c", "score": "0.48880032", "text": "public String getStyleClass() {\n return styleClass;\n }", "title": "" }, { "docid": "90862ee5b54a0bba3c6b6759276d05ab", "score": "0.48823193", "text": "public Map getNameStyle() {\n Map style = new HashMap<>();\n style.put(mxConstants.STYLE_SHAPE, mxConstants.SHAPE_RECTANGLE);\n style.put(mxConstants.STYLE_FONTCOLOR, \"#000000\");\n style.put(mxConstants.STYLE_FILLCOLOR, \"#9999FF\");\n style.put(mxConstants.STYLE_STROKECOLOR, \"#000000\");\n style.put(mxConstants.STYLE_EDITABLE, \"1\");\n style.put(mxConstants.STYLE_RESIZABLE, \"0\");\n style.put(mxConstants.STYLE_MOVABLE, \"0\");\n style.put(mxConstants.STYLE_FOLDABLE, \"0\");\n style.put(mxConstants.STYLE_FONTSIZE, \"15\");\n style.put(mxConstants.STYLE_FONTSTYLE, mxConstants.FONT_BOLD);\n return style;\n }", "title": "" }, { "docid": "cf0ab3438d3aaca5511b7e95849436c2", "score": "0.487437", "text": "Style createStyle();", "title": "" }, { "docid": "0c29e2a98ec3e6d6e319e0781148d549", "score": "0.48646334", "text": "private String[] getStyleNames() {\n return allowedFontStyles;\n }", "title": "" }, { "docid": "aa413dd0da7ec0d8130bf1b5e7d41900", "score": "0.4849337", "text": "public int getStyle() {\n return -1;\n }", "title": "" }, { "docid": "af7d917642276a48dc9d83814d7d9d72", "score": "0.4841199", "text": "public Object getStyle() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2c08f914e0c491d311f05114a2234c50", "score": "0.48399305", "text": "@Returns(\"text\")\n String getStyleSheetText(@Param(\"styleSheetId\") String styleSheetId);", "title": "" }, { "docid": "92d70607000ffd54c4baededbcf0e825", "score": "0.4827225", "text": "public Star find(String name){\r\n\t\tfor (int i=0; i< list.size(); i++){\r\n\t\t\tStar s1 = list.get(i);\r\n\t\t\tif (s1 instanceof Sequence){\r\n\t\t\t\tSequence s2 = (Sequence)s1;\r\n\t\t\t\tString n1 = s2.getName();\r\n\t\t\t\tif (n1.contains(name)){\r\n\t\t\t\t\treturn (s1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (s1 instanceof RedGiant){\r\n\t\t\t\tRedGiant s2 = (RedGiant)s1;\r\n\t\t\t\tString n1 = s2.getName();\r\n\t\t\t\tif (n1.contains(name)){\r\n\t\t\t\t\treturn (s1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (s1 instanceof WhiteDwarf){\r\n\t\t\t\tWhiteDwarf s2 = (WhiteDwarf)s1;\r\n\t\t\t\tString n1 = s2.getName();\r\n\t\t\t\tif (n1.contains(name)){\r\n\t\t\t\t\treturn (s1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "bff460bb82c285b4c124d249fd763712", "score": "0.4812399", "text": "protected List parseStylesParam(GetMapRequest request, MapLayerInfo[] layers)\n throws WmsException {\n String rawStyles = getValue(\"STYLES\");\n List styles = new ArrayList(layers.length);\n \n int numLayers = layers.length;\n \n if (\"\".equals(rawStyles)) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"Assigning default style to all the requested layers\");\n }\n \n for (int i = 0; i < numLayers; i++)\n if (layers[i].getType() == MapLayerInfo.TYPE_VECTOR) {\n styles.add(layers[i].getFeature().getDefaultStyle());\n } else if (layers[i].getType() == MapLayerInfo.TYPE_RASTER) {\n styles.add(layers[i].getCoverage().getDefaultStyle());\n }\n } else {\n List styleNames = readFlat(rawStyles, INNER_DELIMETER);\n \n if (numLayers != styleNames.size()) {\n String msg = numLayers + \" layers requested, but found \" + styleNames.size()\n + \" styles specified. \"\n + \"Since SLD parameter is not yet implemented, the STYLES parameter \"\n + \"is mandatory and MUST have exactly one value per requested layer\";\n throw new WmsException(msg, getClass().getName());\n }\n \n String currStyleName;\n Style currStyle;\n MapLayerInfo currLayer;\n \n for (int i = 0; i < numLayers; i++) {\n currStyleName = (String) styleNames.get(i);\n currLayer = layers[i];\n \n if (currLayer.getType() == MapLayerInfo.TYPE_VECTOR) {\n if ((null == currStyleName) || \"\".equals(currStyleName)) {\n currStyle = currLayer.getFeature().getDefaultStyle();\n } else {\n currStyle = findStyle(request, currStyleName);\n \n if (currStyle == null) {\n String msg = \"No default style has been defined for \"\n + currLayer.getName();\n throw new WmsException(msg, \"StyleNotDefined\");\n }\n }\n \n try {\n checkStyle(currStyle, layers[i].getFeature().getFeatureType());\n } catch (IOException e) {\n throw new WmsException(\"Error obtaining FeatureType for layer \"\n + layers[i].getName());\n }\n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(new StringBuffer(\"establishing \").append(currStyleName)\n .append(\" style for \")\n .append(layers[i].getName())\n .toString());\n }\n \n styles.add(currStyle);\n } else if (currLayer.getType() == MapLayerInfo.TYPE_RASTER) {\n if ((null == currStyleName) || \"\".equals(currStyleName)) {\n currStyle = currLayer.getCoverage().getDefaultStyle();\n } else {\n currStyle = findStyle(request, currStyleName);\n \n if (currStyle == null) {\n String msg = \"No default style has been defined for \"\n + currLayer.getName();\n throw new WmsException(msg, \"GetMapKvpReader::parseStyles()\");\n }\n }\n \n /**\n * @task TODO: Check for Style Coverage Compatibility ...\n */\n styles.add(currStyle);\n }\n }\n }\n \n return styles;\n }", "title": "" }, { "docid": "9dbf7cbe1e53c778011773ed12258694", "score": "0.48020816", "text": "private Style obtainImageStyle(String imageName)\n {\n String styleName = \"$<image:\" + imageName + \">$\";\n Style style = this.autoStyledDocument.getStyle(styleName);\n\n if (style == null)\n {\n style = this.autoStyledDocument.addStyle(styleName, null);\n StyleConstants.setIcon(style, this.obtainImage(imageName));\n }\n\n return style;\n }", "title": "" }, { "docid": "5468c610b1c6074e6bc511c1b374586b", "score": "0.4799631", "text": "public TF3D_Shader Get(String name)\n\t{\n\t\treturn this.items.get(this.FindByName(name));\n\t}", "title": "" }, { "docid": "7cdf809d75a50e33cbdb84f829a34ca7", "score": "0.47766963", "text": "SWTStylesPackage getSWTStylesPackage();", "title": "" }, { "docid": "1f6b69ed82697b48fa85317403387e79", "score": "0.47717384", "text": "private String getStylePartText(Object styleName){\n\t\treturn MessageFormat.format(Messages.StyleEditPart_styleTemplatePrefix, new Object[]{styleName});\n\t}", "title": "" }, { "docid": "b7a701936ec8140780230f42b8538753", "score": "0.47514316", "text": "org.openxmlformats.schemas.drawingml.x2006.main.CTTableStyleCellStyle getTcStyle();", "title": "" }, { "docid": "bc6b903f2f937db6b3bb3363eae56242", "score": "0.4721792", "text": "interface HasStyleName<T> {\n /**\n * Sets custom CSS style name for dialog.\n *\n * @param styleName style name\n * @return builder\n */\n T withStyleName(String styleName);\n /**\n * @return custom style name\n */\n String getStyleName();\n }", "title": "" }, { "docid": "b1f652a1574dafeaee4de61de2f9d485", "score": "0.47082293", "text": "public void setStyles( Style[] styles ) {\n if ( styles == null )\n this.styles.clear();\n else {\n for ( Style style : styles )\n this.styles.put( style.getName(), style );\n }\n }", "title": "" }, { "docid": "fd56535edf4d48963086fe95f859c39f", "score": "0.46954942", "text": "private Style[] loadRemoteStyle(String sldUrl) throws WmsException {\n \t\tInputStream in;\n \n \t\ttry {\n \t\t\tURL url = new URL(sldUrl);\n \t\t\tin = url.openStream();\n \t\t} catch (MalformedURLException e) {\n \t\t\tthrow new WmsException(e, \"Not a valid URL to an SLD document \"\n \t\t\t\t\t+ sldUrl, \"loadRemoteStyle\");\n \t\t} catch (IOException e) {\n \t\t\tthrow new WmsException(e, \"Can't open the SLD URL \" + sldUrl,\n \t\t\t\t\t\"loadRemoteStyle\");\n \t\t}\n \n \t\treturn parseSld(new InputStreamReader(in));\n \t}", "title": "" }, { "docid": "1c43685b769e191c35574d45cd5621c8", "score": "0.46937233", "text": "public void putStyle(String styleId, Style style){\n\t\t//Check if maxStyleId needs an update:\n\t\ttry {\n\t\t\tint id = Integer.parseInt(styleId);\n\t\t\tmMaxStyleId = Math.max(mMaxStyleId, id);\n\t\t} catch (NumberFormatException e){\n\t\t\t//styleId was not a number: nothing to do\n\t\t}\n\t\tmStyles.put(styleId, style);\n\t}", "title": "" }, { "docid": "e204b24cc3fbe057521df2b07e54e268", "score": "0.4662642", "text": "public static String getWindowsVisualStyle()\n/* */ {\n/* 126 */ String style = UIManager.getString(\"win.xpstyle.name\");\n/* 127 */ if (style == null)\n/* */ {\n/* */ \n/* */ \n/* 131 */ style = (String)Toolkit.getDefaultToolkit().getDesktopProperty(\"win.xpstyle.colorName\");\n/* */ }\n/* */ \n/* 134 */ return style;\n/* */ }", "title": "" }, { "docid": "90110412d91d19b955a46ec1bd741b59", "score": "0.46622643", "text": "@Source(\"SearchBox.css\")\n Style searchBoxStyle();", "title": "" }, { "docid": "e19825a8906ba859b31d0925dc1b1e1c", "score": "0.4645022", "text": "public void setStyle(String style) {\r\n this.style = style;\r\n }", "title": "" }, { "docid": "1babadea98f0092b5ed5072440a15891", "score": "0.46379155", "text": "public static void addStyles(GetMapRequest request, MapLayerInfo currLayer, StyledLayer layer,\n List layers, List styles) throws WmsException {\n if (currLayer == null) {\n return; // protection\n }\n \n Style[] layerStyles = null;\n FeatureTypeConstraint[] ftcs = null;\n \n if (layer instanceof NamedLayer) {\n ftcs = ((NamedLayer) layer).getLayerFeatureConstraints();\n layerStyles = ((NamedLayer) layer).getStyles();\n } else if (layer instanceof UserLayer) {\n ftcs = ((UserLayer) layer).getLayerFeatureConstraints();\n layerStyles = ((UserLayer) layer).getUserStyles();\n }\n \n // DJB: TODO: this needs to do the whole thing, not just names\n if (ftcs != null) {\n FeatureTypeConstraint ftc;\n final int length = ftcs.length;\n \n for (int t = 0; t < length; t++) {\n ftc = ftcs[t];\n \n if (ftc.getFeatureTypeName() != null) {\n String ftc_name = ftc.getFeatureTypeName();\n \n // taken from lite renderer\n boolean matches;\n \n try {\n matches = currLayer.getFeature().getFeatureType()\n .isDescendedFrom(null, ftc_name)\n || currLayer.getFeature().getFeatureType().getTypeName()\n .equalsIgnoreCase(ftc_name);\n } catch (Exception e) {\n matches = false; // bad news\n }\n \n if (!matches) {\n continue; // this layer is fitered out\n }\n }\n }\n }\n \n // handle no styles -- use default\n if ((layerStyles == null) || (layerStyles.length == 0)) {\n layers.add(currLayer);\n styles.add(currLayer.getDefaultStyle());\n \n return;\n }\n \n final int length = layerStyles.length;\n Style s;\n \n for (int t = 0; t < length; t++) {\n if (layerStyles[t] instanceof NamedStyle) {\n layers.add(currLayer);\n s = findStyle(request, ((NamedStyle) layerStyles[t]).getName());\n \n if (s == null) {\n throw new WmsException(\"couldnt find style named '\"\n + ((NamedStyle) layerStyles[t]).getName() + \"'\");\n }\n \n styles.add(s);\n } else {\n layers.add(currLayer);\n styles.add(layerStyles[t]);\n }\n }\n }", "title": "" }, { "docid": "49afbd2cee2d0e40a412874b21b97995", "score": "0.46348685", "text": "public void setStyles(List<String> styles) {\r\n\t\tthis.styles = styles;\r\n\t}", "title": "" }, { "docid": "f44a88e9d53e939ddc67727f6706dbea", "score": "0.46133173", "text": "public CellStyle getByRowCol(short rowId, byte colIndex);", "title": "" }, { "docid": "0684f5dde2d63fc8c06266fdd450c66f", "score": "0.45891216", "text": "GetMatchedStylesForNodeResult getMatchedStylesForNode(@Param(\"nodeId\") int nodeId);", "title": "" }, { "docid": "371fb28363ab88d354ec96d5f42451af", "score": "0.45666042", "text": "public Thing findInContents(String s) {\n\t\tfor (Thing i: contents) {\n\t\t\tif (i.getName().equalsIgnoreCase(s)) {\n\t\t\t\treturn i;\n\t\t\t} \n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "53427f310e38f4b6b9817a4f65f517a3", "score": "0.4563517", "text": "private static Game findGame(String name) {\r\n\t\tGame foundGame = null;\r\n\t\tfor (Game game : Block223Application.getBlock223().getGames()) {\r\n\t\t\tif (game.getName().equals(name)) {\r\n\t\t\t\treturn game;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn foundGame;\r\n\t}", "title": "" }, { "docid": "2092ffc60343fc24bea2f22f6b442329", "score": "0.45552906", "text": "protected WebElement byCss(String cssName) {\n return (new WebDriverWait(driver, TIMEOUT)).until(ExpectedConditions.presenceOfElementLocated(By.cssSelector(cssName)));\n }", "title": "" }, { "docid": "21d46e75e2d44918b37f50e5f20c2f52", "score": "0.4555265", "text": "public Shape get(String shapeName) {\n Shape shape = null;\n \n for (Shape sp : shapes) {\n if (shapeName.equals(sp.getName())) {\n shape = sp;\n break;\n } \n }\n \n return shape;\n }", "title": "" }, { "docid": "c3131466ed6353f52a79f8541133fc07", "score": "0.453889", "text": "com.google.search.now.ui.piet.StylesProto.BoundStyle getBoundStyle();", "title": "" }, { "docid": "c9c9246e11a2b7f3b935775cd9ad6721", "score": "0.45369202", "text": "public final String getCookedString(String name, PoemLocale locale,\n int style)\n throws NoSuchColumnPoemException, AccessPoemException {\n Column column = getTable().getColumn(name);\n return column.getType().stringOfCooked(column.getCooked(this),\n locale, style);\n }", "title": "" }, { "docid": "37f96acd02514fab8d3a7c601ddc21db", "score": "0.45176986", "text": "public Format getFormat(String formatName) {\n for(ConfigurableElement element: configElements) {\n for(Format format: element.getFormats()) {\n if(format.getName().equals(formatName)) {\n return format;\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "b6a0f583579b564255b2259ad4b68e57", "score": "0.4511462", "text": "public Shelter getShelterByName(String name) {\n List<Shelter> allShelters = shelterRepository.findAll();\n Shelter shelter;\n for(int id = 0; id < allShelters.size(); id++){\n if(allShelters.get(id).getName() == name)\n return allShelters.get(id);\n }\n return null;\n }", "title": "" }, { "docid": "b8d996b1837335777e841da79919870b", "score": "0.4505839", "text": "public void remove(StyleInfo style) {\n for (LayerInfo l : catalogDAO.getLayers()) {\n if (style.equals(l.getDefaultStyle()) || l.getStyles().contains(style)) {\n throw new IllegalArgumentException(\"Unable to delete style referenced by '\"\n + l.getName() + \"'\");\n }\n }\n StyleInfo realObj = catalogDAO.getStyle(style.getId());\n catalogDAO.delete(realObj);\n removed(style);\n }", "title": "" }, { "docid": "35277a57301738ff59b4109a87bb4e88", "score": "0.45046678", "text": "public StyleSheet getStyleSheet() {\n if (defaultStyles == null) {\n defaultStyles = new StyleSheet();\n StringReader r = new StringReader(styleChanges);\n try {\n defaultStyles.loadRules(r, null);\n } catch (Throwable e) {\n // don't want to die in static initialization...\n // just display things wrong.\n }\n r.close();\n defaultStyles.addStyleSheet(super.getStyleSheet());\n }\n return defaultStyles;\n }", "title": "" }, { "docid": "c72f88840b6ebb08441ffd4dd3afe225", "score": "0.44956008", "text": "@Returns(\"styleSheetId\")\n String createStyleSheet(@Param(\"frameId\") String frameId);", "title": "" }, { "docid": "b82087cad36f760058c01532b922bb76", "score": "0.44832844", "text": "public static Reservation getSeatByName(String nameToSeek) {\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (nameToSeek.equals(firstClass[i][j].getName())) {\n\t\t\t\t\treturn firstClass[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tfor (int j = 0; j < 6; j++) {\n\t\t\t\tif (nameToSeek.equals(economyClass[i][j].getName())) {\n\t\t\t\t\treturn economyClass[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Request failed, no entry '\" + nameToSeek + \"' found.\");\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2ef16559306c1d05dc2c63b2c2be385a", "score": "0.4471784", "text": "public int getIndexByName(String searchedName, boolean trimmed) {\n\t\tfor (int i = 0; i < allDefinitions.length; i++) {\n\t\t\tString name = allDefinitions[i].getName(trimmed);\n\t\t\tif (name.equalsIgnoreCase(searchedName)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\t//If it can't find it\n\t\tSystem.out.println(\"No such monster could be found\");\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ca6622d17044e7deb0ed987be289ae56", "score": "0.44676608", "text": "public void addStyles( Style style ) {\n this.styles.put( style.getName(), style );\n }", "title": "" }, { "docid": "24b369bfc4c0e2e445de6fd93ee718c5", "score": "0.44656503", "text": "public Typeface getFont(String fontName){\n if(FONT_MAP.isEmpty()){\n initFont(FONT_FIRST);\n return FONT_MAP.get(FONT_FIRST);\n }\n if(FONT_MAP.get(fontName) == null){\n initFont(fontName);\n }\n return FONT_MAP.get(fontName);\n }", "title": "" }, { "docid": "50c2ca58fed313d0255e02fb55304ea9", "score": "0.44546124", "text": "public T caseStyle(Style object) {\n return null;\n }", "title": "" }, { "docid": "ce9b67b5f78bf708fa531cac4ee2efd3", "score": "0.44497254", "text": "Service selectService(Scanner serviceName) {\n //TODO: Revise for input sanitation\n while(true) {\n System.out.println(\"Enter Service Name:\");\n String find = serviceName.nextLine();\n for (Service servicer : services) {\n if (servicer.isMatch(find)) {\n return servicer;\n }\n }\n System.out.println(\"Service not found, try again.\");\n }\n }", "title": "" }, { "docid": "9556c92daac490582d9bf281779587cd", "score": "0.44494927", "text": "public Variable findSymbolTableEntry(String name) {\n for (int n = stack.size() - 1; n >= 0; n--) {\n GeneralSymbolTable symbolTable = stack.get(n);\n Variable variable = symbolTable.getVariable(name);\n if (variable != null) {\n return variable;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "a94f3075a2cfe91145f458b976e84b35", "score": "0.44450986", "text": "public void addStyle(String name, Object value);", "title": "" }, { "docid": "99c0b8c1ad9b8e11a7e64d27bff9d752", "score": "0.44420478", "text": "public synchronized Player findPlayer(String s_name) \r\n\t\t\tthrows PlayerNotFoundException\r\n\t{\r\n\t\tfor(Player p : this.l_players)\r\n\t\t{\r\n\t\t\tif(s_name.compareToIgnoreCase(p.getNick()) == 0)\r\n\t\t\t\treturn p;\r\n\t\t}\r\n\t\tthrow new PlayerNotFoundException(\"A Player with the nick of \\'\"+s_name+\"\\' could not be found!\");\r\n\t}", "title": "" }, { "docid": "bfcf39223bfefb6d050c376a2d5fe93b", "score": "0.44381365", "text": "CSSRuleSet getRuleSet(URL styleSheetUrl) throws CSSException;", "title": "" }, { "docid": "2a76e3034468e4f647e353dbdd7a2e65", "score": "0.44256377", "text": "public String getStyleClass() {\n\t\treturn (String) getStateHelper().eval(PropertyKeys.styleClass);\n\t}", "title": "" }, { "docid": "76fea41eda2c402f7839f7a26415bb8e", "score": "0.442551", "text": "@SuppressWarnings(\"unchecked\")\n\tprivate String getStyles(String defaultStyle, Element layerEl) throws MalformedURLException {\n\t\tString stylesString = \"\";\n\t\tif (defaultStyle != null)\n\t\t\tstylesString += defaultStyle + \", \";\n\t\tElement stylesEl = layerEl.getChild(\"styles\");\n\t\tif (stylesEl == null) {\n\t\t\tstylesString = stylesString.substring(0, stylesString.length() - 2);\n\t\t\treturn stylesString;\n\t\t}\n\n\t\tList<Element> styleElements = stylesEl.getChildren();\n\t\tfor (Element styleEl : styleElements) {\n\t\t\tString styleValue = styleEl.getValue().trim().replace(\"\\n\", \" \").replace(\" \", \"\");\n\t\t\tif (!styleValue.isEmpty())\n\t\t\t\tstylesString += styleValue + \", \";\n\t\t}\n\t\tstylesString = stylesString.substring(0, stylesString.length() - 2);\n\t\treturn stylesString;\n\t}", "title": "" }, { "docid": "c02af3be146d8682c05afb9e50d497b9", "score": "0.44235417", "text": "public int getSlotForFont(String fontName);", "title": "" }, { "docid": "b867bdbf517470c679f7d540fb4822bc", "score": "0.44231597", "text": "public static boolean isValidStylePropertyName(String name) {\n return getInvalidStylePropertyNameError(name) == null;\n }", "title": "" }, { "docid": "4862aadf297df5e749aa60d51f375b4f", "score": "0.44153243", "text": "public Style(String cadena_style) {\n this();\n setStyle(cadena_style);\n }", "title": "" }, { "docid": "c7b03ebfd9e73f78541a09061eb4460f", "score": "0.4415055", "text": "public void setStyleClass(String styleClass) {\r\n this.styleClass = styleClass;\r\n }", "title": "" }, { "docid": "ffbaf971b8b5e534f47080cebc1554ec", "score": "0.4404095", "text": "@Override\n\tpublic Font findFont(short boldWeight, short color, short fontHeight,\n\t\t\tString name, boolean italic, boolean strikeout, short typeOffset,\n\t\t\tbyte underline) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8fbe89db6036caf5a2385a6ef7292027", "score": "0.4388969", "text": "org.openxmlformats.schemas.drawingml.x2006.main.CTTableStyleTextStyle getTcTxStyle();", "title": "" }, { "docid": "a19a43315d3f74bfe47ffc4afe47b54c", "score": "0.43841642", "text": "public JsonClusterMember findDoc(final String docID) {\n Iterator<Integer> iter = clusters.keySet().iterator();\n while (iter.hasNext()) {\n int clusterId = iter.next();\n List<JsonClusterMember> members = clusters.get(clusterId).getMembers();\n for (int i = 0; i < members.size(); i++) {\n JsonClusterMember member = members.get(i);\n if (member.getDocID().equals(docID)) {\n return member;\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "2113b9c11514ffe09bf8a92c62281305", "score": "0.4380625", "text": "private WFont.Style getCssFontStyle() {\n \t\tif (!(this.node_ != null) && this.parent_ != null) {\n \t\t\treturn this.parent_.getCssFontStyle();\n \t\t}\n \t\tString v = this.cssProperty(Property.PropertyStyleFontStyle);\n \t\tif (v.length() == 0\n \t\t\t\t&& (this.type_ == DomElementType.DomElement_EM || this.type_ == DomElementType.DomElement_I)) {\n \t\t\treturn WFont.Style.Italic;\n \t\t} else {\n \t\t\tif (v.equals(\"normal\")) {\n \t\t\t\treturn WFont.Style.NormalStyle;\n \t\t\t} else {\n \t\t\t\tif (v.equals(\"italic\")) {\n \t\t\t\t\treturn WFont.Style.Italic;\n \t\t\t\t} else {\n \t\t\t\t\tif (v.equals(\"oblique\")) {\n \t\t\t\t\t\treturn WFont.Style.Oblique;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tif (this.parent_ != null) {\n \t\t\t\t\t\t\treturn this.parent_.getCssFontStyle();\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\treturn WFont.Style.NormalStyle;\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}", "title": "" }, { "docid": "271831131ffc1934e3f8fb39f020564a", "score": "0.43766508", "text": "public int getFontStyle()\n {\n return this._fontStyle;\n }", "title": "" }, { "docid": "0a68e15c16bd07c74a0436addead48b8", "score": "0.43720922", "text": "public int findSymbol(int name) {\n\n return hashTableGet(symbolTable, name);\n }", "title": "" }, { "docid": "2640de889341087f9fa997d731044870", "score": "0.437054", "text": "public static ITypeface findFont(Context ctx, String key) {\n init(ctx);\n return FONTS.get(key);\n }", "title": "" }, { "docid": "3d2da683e0d2e7ce928384a63a92378f", "score": "0.43604654", "text": "public boolean checkStyle(Optional<String> style) {\r\n\t\tif ((!TradeValidatorConstants.AMERICAN_STYLE.equals(style.get().trim().toUpperCase()))\r\n\t\t\t\t&& (!TradeValidatorConstants.EUROPEAN_STYLE.equals(style.get().trim().toUpperCase()))) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "c3206d6bb388d9c903a67bb57200c093", "score": "0.43579412", "text": "boolean hasStyleReferences();", "title": "" }, { "docid": "82800e2991f11146562fe14205d02252", "score": "0.4355291", "text": "protected Collection styles() {\n ArrayList styles = new ArrayList(layer.getStyles());\r\n styles.remove(layer.getVertexStyle());\r\n styles.remove(layer.getLabelStyle());\r\n\r\n //Move to last. [Jon Aquino]\r\n styles.add(layer.getVertexStyle());\r\n styles.add(layer.getLabelStyle());\r\n\r\n return styles;\r\n }", "title": "" } ]
67df088c8febfcc4170bddd5434abda3
Returns whether a particular file path should be handled by this plugin
[ { "docid": "e7db58f150558943353034720782c697", "score": "0.0", "text": "Set<String> schemesHandled();", "title": "" } ]
[ { "docid": "9767d416e8866dffe591720f28ffa7dc", "score": "0.75354385", "text": "boolean hasFilePath();", "title": "" }, { "docid": "9767d416e8866dffe591720f28ffa7dc", "score": "0.75354385", "text": "boolean hasFilePath();", "title": "" }, { "docid": "9767d416e8866dffe591720f28ffa7dc", "score": "0.75354385", "text": "boolean hasFilePath();", "title": "" }, { "docid": "9e4f237404107d7af30ebb9eeecc0a33", "score": "0.7187449", "text": "private boolean isFilePath(String path){\n String fileType=path.substring(path.lastIndexOf(\".\")+1);\n String acceptFileType= ConfigInfo.getConfig(\"acceptFileType\");\n\n if(acceptFileType.contains(fileType)) return true;\n else return false;\n }", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.69395673", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.69395673", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.69395673", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.69395673", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.69395673", "text": "boolean hasPath();", "title": "" }, { "docid": "b47acdb780a6d77c5294f1fc30b9a934", "score": "0.68625474", "text": "protected boolean considerPath(Path file) {\n if (file == null) {\n return false;\n }\n\n if (Files.isDirectory(file)) {\n return false;\n }\n\n if (!Files.isReadable(file)) {\n return false;\n }\n\n // Obtain the name of file's parent directory.\n String dirName = file.getParent().getFileName().toString();\n // Obtain the name of the file.\n String fileName = file.getFileName().toString().toLowerCase();\n\n // Process only those files, which are located in a directory, which\n // contains the given prefix.\n if (StringUtils.startsWith(dirName, inputPrefix)) {\n // Furthermore, process only those files, which end with one of the\n // predefined extension, but don't end with a file extension of a\n // preprocessing file.\n if (StringUtils.endsWith(fileName, PROCESS_FILE_EXTENSIONS)\n && !StringUtils.endsWith(fileName, PREPROCESS_FILE_EXTENSIONS)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "ccfd3d784cee949f341aa3b7cefe2fc3", "score": "0.67224735", "text": "public final boolean hasFilePath() {\n\treturn (getFilePath() != null);\n }", "title": "" }, { "docid": "0f2c29e5d13e4fb14c3b40c1f0193c7d", "score": "0.67189866", "text": "@Override\n public boolean isFile() {\n return file.isFile();\n }", "title": "" }, { "docid": "7860b10f3e8991ef30c89deb9f976c5b", "score": "0.65636784", "text": "private boolean isFile(String path) {\n\n return (new File(path).isFile());\n }", "title": "" }, { "docid": "bf74fd10178067b7d4622f7da9d1c08e", "score": "0.6527306", "text": "protected boolean isFileBased() {\n if (sources.size() == 0) {\n return false;\n }\n return (new File(sources.get(0).toString())).exists();\n }", "title": "" }, { "docid": "1aae3fc41342ab4377ca665e515981b2", "score": "0.6504623", "text": "public boolean hasFilePath() {\n return result.hasFilePath();\n }", "title": "" }, { "docid": "7dab622741cceff94bb176e87d8401df", "score": "0.64801663", "text": "private boolean isCustomConfigurationPath() {\n\t\treturn !this.configurationPath.equals(\"Path to file '/Users/user/desktop/config.xml'\");\n\t}", "title": "" }, { "docid": "8f66392cdf19753eaf2b7d740d3f1386", "score": "0.64521724", "text": "public boolean isFile() {\n return this.fileValue != null;\n }", "title": "" }, { "docid": "3c5bc366d83d094dfd9c9c0e53b00a95", "score": "0.64292824", "text": "boolean isSetPath();", "title": "" }, { "docid": "5cb8c4a78b99c209e9145ea89564dc0f", "score": "0.64193547", "text": "public boolean isWithScriptPath() {\n final String suffix = getScriptPath();\n return StringUtils.isNotEmpty(suffix);\n }", "title": "" }, { "docid": "fc2ffce4ecb6b43718fc34aaab986eba", "score": "0.6408385", "text": "boolean hasRelativePath();", "title": "" }, { "docid": "f4fe06d8d801f51d4f4d0fcacfb53693", "score": "0.63958955", "text": "boolean hasFile(String path);", "title": "" }, { "docid": "b66405cbd222fd927e80e5a694de44e2", "score": "0.63768125", "text": "boolean hasFileName();", "title": "" }, { "docid": "b66405cbd222fd927e80e5a694de44e2", "score": "0.63768125", "text": "boolean hasFileName();", "title": "" }, { "docid": "d60039ec104d3ada667e55b18d4b7662", "score": "0.6375716", "text": "boolean hasFile();", "title": "" }, { "docid": "52701e026503ed0c118f7ac0076236cf", "score": "0.637419", "text": "private boolean canPerformIncludedFileAction() {\n return getIncludedFile() != null;\n }", "title": "" }, { "docid": "84d4943064dc85f9066cb01a2b3551da", "score": "0.6369931", "text": "boolean hasLocalPath();", "title": "" }, { "docid": "c5d7e12439e380679377badfd26e462f", "score": "0.63514155", "text": "boolean hasPathMatcher();", "title": "" }, { "docid": "941748013364e89b83618170d1ecab93", "score": "0.62799925", "text": "boolean hasFilename();", "title": "" }, { "docid": "941748013364e89b83618170d1ecab93", "score": "0.62799925", "text": "boolean hasFilename();", "title": "" }, { "docid": "941748013364e89b83618170d1ecab93", "score": "0.62799925", "text": "boolean hasFilename();", "title": "" }, { "docid": "941748013364e89b83618170d1ecab93", "score": "0.62799925", "text": "boolean hasFilename();", "title": "" }, { "docid": "fe8d4a09838393e6a52c0f04055dd4fe", "score": "0.6270409", "text": "public boolean accept(File path) {\n\t\t\treturn path.getName().toLowerCase().endsWith(\".txt\");\n\t\t}", "title": "" }, { "docid": "edb9bdac91c7fef1331d98d66b79aec4", "score": "0.6268347", "text": "private static boolean isPath(String str){\n File f = new File(str);\n if (f.exists())\n { return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "4a335f82cacc12326327325ad5c760e2", "score": "0.62592524", "text": "public boolean isFile()\n\t{\n\t\treturn fileObject.isFile();\n\t}", "title": "" }, { "docid": "a1ae8ddef024375777f20fcb19b9bf6e", "score": "0.6244543", "text": "public abstract boolean isWhitelistedFile(Path file);", "title": "" }, { "docid": "6e1eee9e42ae8f4aee9317c9dd37d13b", "score": "0.62259376", "text": "boolean hasDefaultLocalPath();", "title": "" }, { "docid": "2ae8d9f8284d141f0ebbdcbb1abc1de4", "score": "0.622387", "text": "public boolean getIsInputFile();", "title": "" }, { "docid": "148d0b72eabe4cf7a2b23cce6182db01", "score": "0.6180333", "text": "@Override\n public boolean accept(File pathname) {\n if (pathname.isFile()){\n if (not){\n if (!pathname.getName().startsWith(filterByPrefix)){\n return true;}}\n else if (pathname.getName().startsWith(filterByPrefix)){\n return true;}\n }return false;\n }", "title": "" }, { "docid": "0df16a0fd74f3cc8662814a1e0274d00", "score": "0.6140957", "text": "boolean isFile1();", "title": "" }, { "docid": "f40802b85b979b092fec6fc98d5651b6", "score": "0.61382115", "text": "boolean isSetFilename();", "title": "" }, { "docid": "ee99a164a06bd3fe970717ced4297de2", "score": "0.6128781", "text": "public boolean canGetFile(String path) {\n\t\treturn canGetFile(new File(path));\n\t}", "title": "" }, { "docid": "a51b25fbd7523a6b9664e50f52c4520f", "score": "0.61193985", "text": "boolean isFileSystem();", "title": "" }, { "docid": "8837b7df9eadbf21d475dcbeefd489bf", "score": "0.61108905", "text": "public boolean canGetFile() {\n\t\treturn canGetFile(new File(this.prefs.get(\"configurationPath\", \"Path to file '/Users/user/desktop/config.xml'\")));\n\t}", "title": "" }, { "docid": "54cecfee7819910f99b736fc837397ef", "score": "0.6089915", "text": "boolean hasLocalizationPath();", "title": "" }, { "docid": "85ca90dca3c7113d7a34fe1d9d117534", "score": "0.608571", "text": "private boolean isFileUri(Uri uri)\n {\n boolean ret = false;\n if(uri != null) {\n String uriSchema = uri.getScheme();\n if(\"file\".equalsIgnoreCase(uriSchema))\n {\n ret = true;\n }\n }\n return ret;\n }", "title": "" }, { "docid": "c1351519488761e62be01affb4c0506b", "score": "0.60783845", "text": "private boolean isPathIncluded(Path path, boolean isSource) throws IOException {\n if (isSource) {\n if (path.equals(sourcePathAbs)) return true;\n } else {\n if (path.equals(targetPathAbs)) return true;\n }\n \n if (options.ignoreSystemHiddenFiles) {\n DosFileAttributes dosAttrs = getDosFileAttributes(path);\n if (dosAttrs != null && dosAttrs.isSystem() && dosAttrs.isHidden()) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "9de5f2b6513c9714a25899a062d19e83", "score": "0.6077366", "text": "protected boolean fileExists(String path) {\n\t\tif (path.startsWith(\"platform:\")){\r\n\t\t\ttry {\r\n\t\t\t\tURL solvedURL = FileLocator.resolve(new URL(path));\r\n\t\t\t\tpath = solvedURL.getPath();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treturn false;\r\n\t\t\t} \r\n\t\t} \r\n\t\tFile f = new File(path);\r\n\t\treturn f.exists();\r\n\t}", "title": "" }, { "docid": "3d0ce4bcdba34070e89a707074978cfa", "score": "0.6070945", "text": "boolean hasSteamPath();", "title": "" }, { "docid": "9a81f748c67341bf77cb5f5203e6c41d", "score": "0.6054906", "text": "boolean hasInitialFile();", "title": "" }, { "docid": "7a6f02d897717be155e999f5643e335f", "score": "0.60482925", "text": "public boolean hasSourcePath() {\n return result.hasSourcePath();\n }", "title": "" }, { "docid": "ee5e1fc20a79f0ef6ceff3d2ce133735", "score": "0.6044693", "text": "@SuppressWarnings({\"SimplifiableIfStatement\"})\n public static boolean validFilePath(String path) {\n if (path == null)\n return false;\n if (path.indexOf(File.pathSeparatorChar) != -1)\n return false;\n return validPath(path);\n }", "title": "" }, { "docid": "759c1d876ba2c903f273117d41305971", "score": "0.6035155", "text": "@Override\n public boolean accept(final File path) {\n if (path.isDirectory()) return false;\n final String ext = FileUtils.getFileExtension(path);\n return included(ext, true) && !excluded(ext, true);\n }", "title": "" }, { "docid": "347491ed7c685e4b85b26cefe73dd7bf", "score": "0.602226", "text": "protected boolean isFileUrl(final String urlString)\n {\n return urlString.startsWith(\"file:/\");\n }", "title": "" }, { "docid": "69621a48dab7683df617d5037050086c", "score": "0.60213745", "text": "private boolean isRootFile(){\r\n boolean result = false;\r\n int destIndex = this.destination.indexOf(\"/\")+2;\r\n String modifiedDest = destination.substring(destIndex, destination.length()-1);\r\n return (host.equals(modifiedDest));\r\n }", "title": "" }, { "docid": "112b55f045fc72805e8e10a21ad6134c", "score": "0.6019088", "text": "private boolean IsSupportedFile(String filePath) {\n String ext = filePath.substring((filePath.lastIndexOf(\".\") + 1),\n filePath.length());\n\n if (AppConstant.FILE_EXTN\n .contains(ext.toLowerCase(Locale.getDefault())) && !(new File(filePath).getName().startsWith(\".\")))\n return true;\n else\n return false;\n\n }", "title": "" }, { "docid": "984c52ebc46e24c89742d47ade09455b", "score": "0.5976408", "text": "@Override\n public boolean accept(File file) {\n return file.isDirectory() || file.getAbsolutePath().endsWith(\"VOS.Config.db\");\n }", "title": "" }, { "docid": "1e3c492b26730fc119a8722a7c9c636c", "score": "0.5955099", "text": "@Override\r\n\t\t\t\t\t\t\tpublic boolean accept(File f)\r\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (f.getAbsolutePath().endsWith(\".ptxt\"))\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "19e8a81bea21cf3f8c413ac2a009c2af", "score": "0.59524655", "text": "public boolean isInterestedIn(File candidate) {\n if (candidate.isHidden()) {\n return false;\n }\n else\n if (candidate.getName().startsWith(\".\")) {\n return false;\n }\n else\n if (! candidate.canRead()) {\n return false;\n }\n else\n if (candidate.isFile() \n && candidate.length() == 0\n && candidate.getName().equals(\"Icon\\r\")) {\n return false;\n }\n else\n if (candidate.isDirectory()) {\n return false;\n }\n else\n if (candidate.getParent().endsWith(\"templates\")) {\n return false;\n }\n else\n if (candidate.getName().equalsIgnoreCase(\"New Event.txt\")) {\n return false;\n }\n else\n if (candidate.getName().endsWith (\".txt\")) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "11dd03144889063ad5daa50d2b764a65", "score": "0.5947625", "text": "boolean isFileType() {\n return FILE_TYPE_STR.equals(typeStr);\n }", "title": "" }, { "docid": "02210a290fefbc9b18c02860289b106b", "score": "0.5945577", "text": "public boolean containsResourceFile(FilePointer file);", "title": "" }, { "docid": "0ad0691188058f815e7882a7e031ad52", "score": "0.5937816", "text": "boolean hasIconPath();", "title": "" }, { "docid": "0ad0691188058f815e7882a7e031ad52", "score": "0.5937816", "text": "boolean hasIconPath();", "title": "" }, { "docid": "cbba09c1a8a4491325f72d6c4551cafb", "score": "0.59343874", "text": "public boolean hasPath()\n {\n return pathToEntity != null;\n }", "title": "" }, { "docid": "a6688c12b8707386acd719bc55a4c9d0", "score": "0.59195757", "text": "@Override\n public boolean isFile(Path path) throws StorageException {\n\n Path fullPath = _prependRoot(path);\n boolean isFile = _isManagedFile(fullPath);\n\n return isFile;\n }", "title": "" }, { "docid": "d51589f6fc8667f09b50bac5cdf001c6", "score": "0.5855468", "text": "public boolean isFileType() {\n return File.class.getName().equals(getType().getName());\n }", "title": "" }, { "docid": "3aa9146503315b4b980315b07283b863", "score": "0.58517", "text": "public boolean isFileSourced() {\n return this.getSource() != null;\n }", "title": "" }, { "docid": "ee6182b66ddf81c39646a65fdac656cb", "score": "0.5851243", "text": "private static boolean fileSystemSpecified(Path path) {\n return null != path.toUri().getScheme();\n }", "title": "" }, { "docid": "d396147a81bdf32c237d538ea148cc81", "score": "0.5848218", "text": "boolean hasPathNum();", "title": "" }, { "docid": "f25e7ca36e44341bffeda9fb23e04389", "score": "0.5834261", "text": "public boolean exists()\r\n/* 49: */ {\r\n/* 50: */ try\r\n/* 51: */ {\r\n/* 52:101 */ URL url = this.servletContext.getResource(this.path);\r\n/* 53:102 */ return url != null;\r\n/* 54: */ }\r\n/* 55: */ catch (MalformedURLException localMalformedURLException) {}\r\n/* 56:105 */ return false;\r\n/* 57: */ }", "title": "" }, { "docid": "ad5ca5ffc522efb43350d2ad273096f1", "score": "0.5820296", "text": "boolean isAptFile(Path path) throws IOException {\n return path != null && Files.exists(path) &&\n Files.isRegularFile(path) && Files.isReadable(path) &&\n !path.getFileName().toString().startsWith(\".\");\n }", "title": "" }, { "docid": "8db9c1b7b1d86024a69fc5a1c6bf23d7", "score": "0.58173376", "text": "boolean isFileRealExtension (String fileName);", "title": "" }, { "docid": "256944a733cf58e5cff16dd04f9e3275", "score": "0.5813", "text": "protected boolean checkTemplateFile() {\n\t\tFile sourceFile = new File(String.format(\"%s/%s\", directory, filename));\n\t\treturn sourceFile.exists() && !sourceFile.isDirectory();\n\t}", "title": "" }, { "docid": "475a80b6056723d58569ea57606cb936", "score": "0.5811653", "text": "boolean hasFileContent();", "title": "" }, { "docid": "a69fdc2e5a21578c6330feed38bf0aed", "score": "0.58091676", "text": "public boolean accept(File f) {\n boolean accept = false;\r\n\r\n if (f.getAbsolutePath().endsWith(\"config\"))\r\n accept = true;\r\n if (f.isDirectory())\r\n accept = true;\r\n return accept;\r\n }", "title": "" }, { "docid": "b6c1bac9c3fe2bbf84c43941cb91f8e7", "score": "0.58057225", "text": "@Override\n\t\t\t\tpublic boolean accept(File pathname) {\n\t\t\t\t\treturn true;\n\t\t\t\t}", "title": "" }, { "docid": "760510990c8c620faf9bd365f57ab9f0", "score": "0.5804153", "text": "public boolean isLocal() {\n return _url.getProtocol().equals(\"file\");\n }", "title": "" }, { "docid": "175d54c35a4a61a264b19b2b803c66fd", "score": "0.5801927", "text": "private static boolean file_test(String filename) {\n\t\tFile check = new File(\"./\" + filename);\n\t\treturn check.exists();\n\t}", "title": "" }, { "docid": "010f60d4073f931d16937fe1938dee5e", "score": "0.579619", "text": "boolean exist(String fileFullPath);", "title": "" }, { "docid": "384bbedd24488131f1d4ec4b3550d67f", "score": "0.57894015", "text": "public boolean isFile (){\n\t if (filename != null)\n\t\treturn true;\n\t if (ctype.startsWith (MULTIPART_MIXED))\n\t\treturn false;\n\t return (!ctype.startsWith (\"text/plain\"));\n\t}", "title": "" }, { "docid": "1b94131ef4070a8f8c394c9ee0fd836f", "score": "0.5776726", "text": "private static boolean checkIfFileNameIsPassed(String argument) {\n return argument != null && argument.contains(\".txt\");\n }", "title": "" }, { "docid": "804b09bdea68830d148d4150e53ef79d", "score": "0.57741815", "text": "public static boolean isCatching() {\r\n return fileErrors != null;\r\n }", "title": "" }, { "docid": "dba1fe99ee01fe5efdfddb818be356c1", "score": "0.57654524", "text": "protected boolean isRoot(String filePath) {\n return filePath == null || filePath.length() == 0 || filePath.equals(\"/\");\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "c9db94cb0e355ff58045a8530c7aa1c8", "score": "0.5763746", "text": "public boolean hasPath() {\n return result.hasPath();\n }", "title": "" }, { "docid": "661f8be6895fbd0a1a1e85d4849f9e5d", "score": "0.57505435", "text": "protected abstract boolean supportsFileDependencies();", "title": "" } ]
0462a806fd85a38154ceabbf0d9dcb8f
Sets handlers using static method
[ { "docid": "26cdbcbbb3a17ea4b76801c469676577", "score": "0.6831929", "text": "private static void setStaticHandlers(Map<String, ComplexObsHandler> currentHandlers) {\n\t\tObsServiceImpl.handlers = currentHandlers;\n\t}", "title": "" } ]
[ { "docid": "22ada1c41cda035cdc16ac41716721cc", "score": "0.7749696", "text": "protected abstract void configureHandlers();", "title": "" }, { "docid": "3bd0cd4845effe2a40e987cbb997048c", "score": "0.70252764", "text": "private static void initHandler() {\n\t\tCALENDAR_LOGGER.setUseParentHandlers(false);\n\t\tCALENDAR_LOGGER.addHandler(DEFAULT_HANDLER);\n\n\t\tMODEL_LOGGER.setUseParentHandlers(false);\n\t\tMODEL_LOGGER.addHandler(DEFAULT_HANDLER);\n\n\t\tUPDATE_LOGGER.setUseParentHandlers(false);\n\t\tUPDATE_LOGGER.addHandler(DEFAULT_HANDLER);\n\n\t\tSELECTION_LOGGER.setUseParentHandlers(false);\n\t\tSELECTION_LOGGER.addHandler(DEFAULT_HANDLER);\n\n\t\tTRANSFER_LOGGER.setUseParentHandlers(false);\n\t\tTRANSFER_LOGGER.addHandler(DEFAULT_HANDLER);\n\t}", "title": "" }, { "docid": "08d68d07f271e3f28ec628426325fe53", "score": "0.66495657", "text": "public void setMessageHandler (MessageHandler handler)\n {\n _handler = handler;\n }", "title": "" }, { "docid": "2017c0dd36c4801a555ae3f0b2d48abd", "score": "0.6646323", "text": "private void registerServerHandlers() throws Exception {\n\t\tserverActionHandler = new WSServerActionHandler();\n\t\tserverActionHandler.init(this);\n\n\t}", "title": "" }, { "docid": "3190e3568b04380aa6c96c727bdd7e25", "score": "0.662124", "text": "private void setHandlers(Server server, ArrayList<ServletContextHandler> contextHandlers) {\n HandlerCollection handlercoll = new HandlerCollection();\n\n Handler[] handlerArray = new Handler[contextHandlers.size()];\n contextHandlers.toArray(handlerArray);\n handlercoll.setHandlers(handlerArray);\n //handlers.setHandlers(new Handler[] { context, new DefaultHandler() });\n handlercoll.addHandler(new DefaultHandler());\n server.setHandler(handlercoll);\n }", "title": "" }, { "docid": "4d9769aac3621ed644efb161a5f1b18c", "score": "0.6514509", "text": "private static Handler getHandler() {\n }", "title": "" }, { "docid": "30b4423e7778db797150d2b0e36bcacd", "score": "0.6395396", "text": "protected Set<Object> getHandlers() {\n return ImmutableSet.<Object> of(ActivityHandler.class,\n AppDataHandler.class, PersonHandler.class, MessageHandler.class);\n }", "title": "" }, { "docid": "49540d783da47b33212b9950aa2560b3", "score": "0.636314", "text": "public void setHandlers() {\n recentLabel.setOnMouseClicked(e -> {\n goToMostRecent();\n });\n currentLabel.setOnMouseClicked(e -> {\n goToCurrent();\n });\n futureLabel.setOnMouseClicked(e -> {\n goToFuture();\n });\n\n }", "title": "" }, { "docid": "439f531db0a94c36882c27f3fee4487b", "score": "0.6327134", "text": "private void registerHandlers() {\n\n FMLCommonHandler.instance().bus().register(new SafemodeHandler());\n Ticker playerTracker = new Ticker();\n\n FMLCommonHandler.instance().bus().register(playerTracker);\n MinecraftForge.EVENT_BUS.register(playerTracker);\n\n FMLCommonHandler.instance().bus().register(VisualsHandler.instance);\n\n FMLCommonHandler.instance().bus().register(ProtectionHandlers.instance);\n MinecraftForge.EVENT_BUS.register(ProtectionHandlers.instance);\n\n MinecraftForge.EVENT_BUS.register(ExtraEventsHandler.getInstance());\n\n ForgeChunkManager.setForcedChunkLoadingCallback(this, new MyTownLoadingCallback());\n }", "title": "" }, { "docid": "e2d35832401adec9168146e971f9d9d5", "score": "0.62939733", "text": "@Override\n public void register(RequestHandler handler) {\n }", "title": "" }, { "docid": "8c87af39bf99e6e5642dc92a641f2bb3", "score": "0.62615895", "text": "public void setHandler(Integer handler) {\n this.handler = handler;\n }", "title": "" }, { "docid": "6baca979d59f2eed810295860210c492", "score": "0.6260909", "text": "public void handler()\n\t{\n\t}", "title": "" }, { "docid": "28fc1ca7e6db0dcb529c751f03a39e20", "score": "0.6201814", "text": "@Override\n\tpublic void configHandler(Handlers me) {\n\t\t\n\t}", "title": "" }, { "docid": "28fc1ca7e6db0dcb529c751f03a39e20", "score": "0.6201814", "text": "@Override\n\tpublic void configHandler(Handlers me) {\n\t\t\n\t}", "title": "" }, { "docid": "9e526b9028ea9d618cccba50b7a4b459", "score": "0.61976385", "text": "public EESupportHandlers() {\n }", "title": "" }, { "docid": "0bfc7f7de14614cea4564fb94e348802", "score": "0.61929303", "text": "public static synchronized void enableURLHandlers() {\n if (!sHandlersEnabled) {\n sHandlersEnabled = true;\n\n // Try to add our java handlers via package\n registerURLHandler(Handler.class);\n\n try {\n new URL(\"java:/test/url\");\n } catch (final MalformedURLException me) {\n sRegisterViaProperty = false;\n final CustomURLStreamHandlerFactory cf = CustomURLStreamHandlerFactory.getInstance();\n try {\n URL.setURLStreamHandlerFactory(cf);\n } catch (final Throwable t) {\n // That didn't work either\n }\n }\n }\n }", "title": "" }, { "docid": "abe3284525d6edfb16913b179a709057", "score": "0.6173821", "text": "private void initializeHandlerClassNames() {\r\n\r\n handlerClassNames.put(\"container\", ContainerHandlerInterface.class.getName());\r\n handlerClassNames.put(\"context\", ContextHandlerInterface.class.getName());\r\n handlerClassNames.put(\"item\", ItemHandlerInterface.class.getName());\r\n handlerClassNames.put(\"content-relation\", ContentRelationHandlerInterface.class.getName());\r\n handlerClassNames.put(\"content-model\", ContentModelHandlerInterface.class.getName());\r\n handlerClassNames.put(\"organizational-unit\", OrganizationalUnitHandlerInterface.class.getName());\r\n handlerClassNames.put(\"user-account\", UserAccountHandlerInterface.class.getName());\r\n handlerClassNames.put(\"user-group\", UserGroupHandlerInterface.class.getName());\r\n handlerClassNames.put(\"role\", RoleHandlerInterface.class.getName());\r\n\r\n // OAI\r\n handlerClassNames.put(\"set-definition\", SetDefinitionHandlerInterface.class.getName());\r\n\r\n // Statistic Manager\r\n handlerClassNames.put(\"scope\", ScopeHandlerInterface.class.getName());\r\n handlerClassNames.put(\"aggregation-definition\", AggregationDefinitionHandlerInterface.class.getName());\r\n handlerClassNames.put(\"report-definition\", ReportDefinitionHandlerInterface.class.getName());\r\n }", "title": "" }, { "docid": "8d6f51cd024ba08b2d46d86d73201b61", "score": "0.6153839", "text": "@Override\n public HandlerList getHandlers() {\n return handlers;\n }", "title": "" }, { "docid": "dc4a877bb75720e2e6b882a8b03a8914", "score": "0.6116343", "text": "public void setHandler(Handler mHandler) {\n\t\tthis.mHandler = mHandler;\r\n\t}", "title": "" }, { "docid": "6eccbafb53b144dc617718f8f4b55458", "score": "0.6115681", "text": "protected abstract void installHandlers(Map handlersTable);", "title": "" }, { "docid": "3e16763e35ee5d794e94d9ed50b257cd", "score": "0.6113589", "text": "public void registerHandler(UPaaSCommandHandler handler){\n registerHandler(ALL_PATTERN, ALL_PATTERN, handler);\n }", "title": "" }, { "docid": "1e924232c96af8b4c07778d6bdbd410d", "score": "0.6104638", "text": "protected final void register(Object handlerInstance) {\n\t\tClass handlerClass = handlerInstance.getClass();\n\n\t\twebrocket.annotations.WebHandler classHandler = (webrocket.annotations.WebHandler) handlerClass.getAnnotation(webrocket.annotations.WebHandler.class);\n\n\t\t// Scans all the methods looking for WebHandler annotations\n\t\tMethod[] methods = handlerClass.getMethods();\n\t\tfor (Method method : methods) {\n\t\t\twebrocket.annotations.WebHandler methodHandler = method.getAnnotation(webrocket.annotations.WebHandler.class);\n\t\t\tif (methodHandler != null) {\n\t\t\t\tint modifiers = method.getModifiers();\n\t\t\t\tif (!Modifier.isPublic(modifiers)) {\n\t\t\t\t\tthrow new RuntimeException(\"Method has to be public\");\n\t\t\t\t}\n\n\t\t\t\tWebHandler handler = new WebHandler();\n\t\t\t\thandler.setPath((classHandler != null) ? classHandler.path() + methodHandler.path() : methodHandler.path());\n\t\t\t\thandler.setMethod(methodHandler.method());\n\t\t\t\thandler.setHandlerInstance(handlerInstance);\n\t\t\t\thandler.setHandlerMethod(method);\n\t\t\t\thandler.setParams(toNameValues(methodHandler.params()));\n\t\t\t\thandler.setHeaders(toNameValues(methodHandler.headers()));\n\t\t\t\thandler.setParamHandlers(createParamHandlers(method));\n\t\t\t\thandler.setResultHandler(createResultHandler(method));\n\n\t\t\t\tregister(handler);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1d8040710e96c86c5f85ecf585c2116d", "score": "0.60690105", "text": "private void createRuntimeHandlers() {\n for (Info.ErrorMessages errorMessage : Info.ErrorMessages.values()) {\n createSpecificHandler(errorMessage.getStringLabel(), errorMessage.getFunctionLabel());\n }\n }", "title": "" }, { "docid": "5d9a9cd67bb8fc9ff0a0572355d9191c", "score": "0.6010544", "text": "private void setExceptionHandler() {\n try {\n \n Method m = JaqlQuery.class.getMethod(\"setExceptionHandler\", \n ExceptionHandler.class);\n if (m.isAccessible()) {\n \n engine.setExceptionHandler(exceptionHandler);\n }\n else {\n \n m.setAccessible(true);\n m.invoke(engine, exceptionHandler);\n }\n }\n catch (Throwable e) {\n \n /*\n * If the method doesn't exist at all, then our handler will never\n * get called and we will handle it locally here in jsqsh.\n */\n }\n }", "title": "" }, { "docid": "e311adad54711a4a8bfe5d35aa974bba", "score": "0.6010087", "text": "loadHandler(){}", "title": "" }, { "docid": "826f698e907a2666d65a45ef870a2211", "score": "0.60057247", "text": "public void setEventHandler(EventHandler eventHandler)\n {\n this.eventHandler = eventHandler;\n }", "title": "" }, { "docid": "b4a16e3e74b6c4dff0e6b4eb989f304e", "score": "0.59988785", "text": "@Override\n public void setHandlers( final List<NewResourceHandler> handlers ) {\n Collections.sort( handlers, new Comparator<NewResourceHandler>() {\n @Override\n public int compare( final NewResourceHandler o1,\n final NewResourceHandler o2 ) {\n return o1.getDescription().compareToIgnoreCase( o2.getDescription() );\n }\n } );\n\n //Add handlers to container\n for ( NewResourceHandler handler : handlers ) {\n final RadioButton option = makeOption( handler );\n handlerToWidgetMap.put( handler,\n option );\n handlersList.add( option );\n }\n }", "title": "" }, { "docid": "1e4cdf544b424eb7b7fac50235b831cf", "score": "0.59964055", "text": "@Override\n\tvoid initHandler() {\n\t\t\n\t}", "title": "" }, { "docid": "1e4cdf544b424eb7b7fac50235b831cf", "score": "0.59964055", "text": "@Override\n\tvoid initHandler() {\n\t\t\n\t}", "title": "" }, { "docid": "71199e7000727424b9732bd8e7a035af", "score": "0.59937525", "text": "void setHandler(Handler handler) {\n if (handler == null) {\n if (mHandler != null) {\n mHandler.mRegistered = false;\n mHandler.removeCallbacksAndMessages(null);\n mHandler = null;\n }\n } else {\n mHandler = new MessageHandler(handler.getLooper());\n mHandler.mRegistered = true;\n }\n }", "title": "" }, { "docid": "4e1c69c25321b353b2c8c1d2f8c86069", "score": "0.5985398", "text": "public void setErrorHandler(ErrorHandler<Handle> handler) {\n \n }", "title": "" }, { "docid": "de273d5375a65965685aeb610c0ca978", "score": "0.5964674", "text": "@Override\n\tprotected void initialize() {\n\t\tenforcer = HandlerEnforcer.newInstance();\n\t}", "title": "" }, { "docid": "2e6696a3ae2022eff14c579118f6a1a6", "score": "0.5956083", "text": "public void setEventHandler(EventHandler eventHandler)\r\n {\r\n this.eventHandler = eventHandler;\r\n }", "title": "" }, { "docid": "0c3a603ae5bcf20822719d973015af9b", "score": "0.5912268", "text": "void registerHandler(CommandHandler commandHandler);", "title": "" }, { "docid": "a78147c9527801312de8a18cdc0e1fec", "score": "0.58517116", "text": "loadHandlerP(){}", "title": "" }, { "docid": "6e86700051d560aad7d30b248c8a45c9", "score": "0.58194554", "text": "void setGuiHandler(Main handler){\n guiHandler = handler;\n }", "title": "" }, { "docid": "6e86700051d560aad7d30b248c8a45c9", "score": "0.58194554", "text": "void setGuiHandler(Main handler){\n guiHandler = handler;\n }", "title": "" }, { "docid": "a93acf57edc04b80dd1f1f85a30d486d", "score": "0.5810954", "text": "private void initHandler() {\n\t\tmHandler = new Handler() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void handleMessage(Message msg) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tswitch (msg.what) {\r\n\t\t\t\tcase getfollows:\r\n\t\t\t\t\tlist.setAdapter(new FanListAdapter(\r\n\t\t\t\t\t\t\t(ArrayList<User>) msg.obj, imageLoader, mContext,\r\n\t\t\t\t\t\t\tac));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase getfriends:\r\n\t\t\t\t\tlist.setAdapter(new FanListAdapter(\r\n\t\t\t\t\t\t\t(ArrayList<User>) msg.obj, imageLoader, mContext,\r\n\t\t\t\t\t\t\tac));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase getfans:\r\n\t\t\t\t\tlist.setAdapter(new FanListAdapter(\r\n\t\t\t\t\t\t\t(ArrayList<User>) msg.obj, imageLoader, mContext,\r\n\t\t\t\t\t\t\tac));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t}", "title": "" }, { "docid": "51d1a1bf0d18c2be48127cd53e4bca4c", "score": "0.5809097", "text": "public void setHandler(AlgorithmHandler handler) {\n this.handler = handler;\n }", "title": "" }, { "docid": "598189292c0c2abf8f5d7f86a424ff35", "score": "0.5790944", "text": "private <H extends NodeEvent> void callHandlers(List<NodeEventHandler<H>> handlers, H toHandle) {\n handlers.forEach((handler) -> handler.handle(toHandle));\n }", "title": "" }, { "docid": "146c730b2e9fbb7524d5e8d667acf43a", "score": "0.57429636", "text": "public void setHandler(Handler handler){\n bleHandler = handler;\n }", "title": "" }, { "docid": "46746058e4551b05f8b5180b35e1afa6", "score": "0.57351243", "text": "public interface DefaultHandler extends Handler {\n}", "title": "" }, { "docid": "c9dc49b2258735bd41abb81e90f0f200", "score": "0.5730006", "text": "public void init() {\n\t\tmessageQueueHandler.addHandler(MessageNoConstants.SINGLESWITCHRING,\n\t\t\t\tgetRingConfigHandle);\n\t\tmessageQueueHandler.addHandler(\n\t\t\t\tMessageNoConstants.SINGLESWITCHLINKBACKUPS,\n\t\t\t\tgetRingLinkBakHandle);\n\t}", "title": "" }, { "docid": "36acddbea1c9de887ee21cff92600170", "score": "0.5727447", "text": "public TypeDelegate(Map<Method, MethodHandler> methodHandlers) {\r\n\t\tAssert.isNotNull(methodHandlers);\r\n\t\thandlers = methodHandlers;\r\n\t}", "title": "" }, { "docid": "e23210489dfd9dbc2c83b7a0a38dcd33", "score": "0.57247216", "text": "public StandardHandler() {\n }", "title": "" }, { "docid": "a3512c8eaab0243dad8bd176b249ed8e", "score": "0.572321", "text": "public void setChannelHandler(IClientHandlerComponent handler);", "title": "" }, { "docid": "f4155c2cc24f8c1344d5c58f0b956232", "score": "0.5709851", "text": "Handler getMainHandler() {\n return mainHandler;\n }", "title": "" }, { "docid": "2f12ff47613d10bd209e748bb0b9aeac", "score": "0.5700257", "text": "public void setDefaultHandler(Handler defaultHandler)\r\n { this.defaultHandler=defaultHandler;\r\n }", "title": "" }, { "docid": "4cf8228d68d1e671446e3bbd81c4199d", "score": "0.5698335", "text": "private void addEventHandlers() {\n sendButton.setOnMouseClicked((event) -> {\n handleUserInput();\n });\n\n userInput.setOnAction((event) -> {\n handleUserInput();\n });\n }", "title": "" }, { "docid": "87b4a60e0b455b6a517f4173cbc1af00", "score": "0.56876534", "text": "public DispatchRule withHandler(Class<? extends BaseHandler> handlerClass){\n\t\tthis.handlerClass = handlerClass;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "3e2b3664646e971b2ebd32c41667c96e", "score": "0.56865996", "text": "public abstract IHandler getIHandler();", "title": "" }, { "docid": "36d9d8af3fdca195b7a48e06fb8af1ca", "score": "0.5674371", "text": "HandlerRegistration addCreateHandler(CreateHandler handler);", "title": "" }, { "docid": "1919d1a2d596dd8e41afa421ffa891f8", "score": "0.5674129", "text": "@Override\n\t\tpublic HandlerList getHandlers() {\n\t\t\treturn handlers;\n\t\t}", "title": "" }, { "docid": "1ceb05a898272002e469abf8fe42befc", "score": "0.5664786", "text": "SaveHandlerP(){}", "title": "" }, { "docid": "2d803b291af6d6d77b87a50721f81cdd", "score": "0.56602407", "text": "public synchronized void registerHandler(Handler handler) {\n _handlers.add(handler);\n }", "title": "" }, { "docid": "af30cf5c20af8c92930e269847c5a0e7", "score": "0.5649562", "text": "private void setupPermissions() {\n permissionHandler = new PermissionHandler(this);\n }", "title": "" }, { "docid": "d6dac7ee2de492e875ad41bbbbc69b9c", "score": "0.56448513", "text": "private void addURLHandler() {\n ClassLoaderHierarchy clh = getService(ClassLoaderHierarchy.class);\n ClassLoader apiClassLoader = clh.getAPIClassLoader();\n\n Properties p = new Properties();\n p.put(URLConstants.URL_HANDLER_PROTOCOL, new String[]{Constants.JDBC_DRIVER_SCHEME});\n urlHandlerService = bundleContext.registerService(URLStreamHandlerService.class.getName(),\n new JDBCDriverURLStreamHandlerService(apiClassLoader), p);\n }", "title": "" }, { "docid": "7d619e3f77da805d0c8eaabea6f46cbe", "score": "0.56408536", "text": "public void setMessageHandler(MessageHandler pMessageHandler)\r\n {\n messageHandler = pMessageHandler;\r\n }", "title": "" }, { "docid": "72f7220b86ffc76c10d054c967b2643c", "score": "0.5633667", "text": "public void setOnDatasetInfoRequest (EventHandler<DatasetEvent> handler) {\n\n datasetInfoRequestHandler = handler;\n \n }", "title": "" }, { "docid": "4eef2d0d3ad785b4ad8466600bb88730", "score": "0.56316084", "text": "@Override\n public Class<? extends Handler>[] extendHandlers() {\n return null;\n }", "title": "" }, { "docid": "d2ef7b740c89e0d1c250ec75b658f594", "score": "0.5629357", "text": "public static HandlerList getHandlerList() {\n return handlers;\n }", "title": "" }, { "docid": "1b7ad793b5a9ce772f22d4d4da6ec25e", "score": "0.56227696", "text": "@Override\n protected final void configure() {\n install( new ServerDispatchModule() );\n\n configureHandlers();\n }", "title": "" }, { "docid": "afd997b7a1941321d318dcab84bc1715", "score": "0.5620134", "text": "public void addMappingtoRequestHandler(String method,Handler handle) {\n\t\tthis.mappings.put(method, handle);\n\t}", "title": "" }, { "docid": "d0f4631c910169f80224a374c0d9850c", "score": "0.5616949", "text": "@Override\r\n\tpublic HandlerList getHandlers() {\n\t\treturn handlers;\r\n\t}", "title": "" }, { "docid": "c9200f1919bd5c69b9ae3f92fc6adadd", "score": "0.559958", "text": "void addMessageHandler(ISSDPMessageHandler handler) throws Exception;", "title": "" }, { "docid": "d3b0762a08e11cd2a731cec732242c8c", "score": "0.55892354", "text": "@Override\n\tpublic HandlerList getHandlers() {\n\t\treturn handlers;\n\t}", "title": "" }, { "docid": "abcddd4f9055b03e58da96f1a0fba386", "score": "0.5573177", "text": "@Override\n\tpublic void setMessageHandler(final MessageHandler messageHandler) {\n\t\tthis.messageHandler = messageHandler;\n\t}", "title": "" }, { "docid": "8b258696029c87cdf7feefff93a6d6f2", "score": "0.5566991", "text": "@Override\n public AbstractHTTPRequestHandler getHandler() {\n return httpRequestHandler;\n }", "title": "" }, { "docid": "94a556060c483e575a27a720883cb5c1", "score": "0.5563865", "text": "@Advice.OnMethodEnter\n\tprivate static void addHandlers(@Advice.Argument(value = 0, readOnly = false) List<Handler> handlerChain, @Advice.This Binding binding) {\n\t\tfinal java.util.logging.Logger logger = java.util.logging.Logger.getLogger(STAGEMONITOR_TRACING_SOAP_SOAP_HANDLER_TRANSFORMER);\n\t\tfinal List<Handler<?>> stagemonitorHandlers = Dispatcher.get(STAGEMONITOR_TRACING_SOAP_SOAP_HANDLER_TRANSFORMER);\n\n\t\tif (stagemonitorHandlers != null) {\n\t\t\tlogger.fine(\"Adding SOAPHandlers \" + stagemonitorHandlers + \" to handlerChain for Binding \" + binding);\n\t\t\tif (handlerChain == null) {\n\t\t\t\thandlerChain = Collections.emptyList();\n\t\t\t}\n\t\t\t// creating a new list as we don't know if handlerChain is immutable or not\n\t\t\thandlerChain = new ArrayList<Handler>(handlerChain);\n\t\t\tfor (Handler<?> stagemonitorHandler : stagemonitorHandlers) {\n\t\t\t\tif (!handlerChain.contains(stagemonitorHandler) &&\n\t\t\t\t\t// makes sure we only add the handler to the correct application\n\t\t\t\t\tDispatcher.isVisibleToCurrentContextClassLoader(stagemonitorHandler)) {\n\t\t\t\t\thandlerChain.add(stagemonitorHandler);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlogger.fine(\"Handler Chain: \" + handlerChain);\n\t\t} else {\n\t\t\tlogger.fine(\"No SOAPHandlers found in Dispatcher for Binding \" + binding);\n\t\t}\n\t}", "title": "" }, { "docid": "994dc161b98964cac7516df1c5012f72", "score": "0.55634654", "text": "public static HandlerList getHandlerList() {\r\n\t\treturn handlers;\r\n\t}", "title": "" }, { "docid": "3740efb101cdf436adefde9b795de816", "score": "0.55599755", "text": "public void setChannelHandlers(Map<Integer, String> channelHandlers) {\n\t\tif(channelHandlers!=null) {\n\t\t\tsynchronized(this.channelHandlers) {\n\t\t\t\tthis.channelHandlers.clear();\n\t\t\t\tthis.channelHandlers.putAll(channelHandlers);\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7b08c207521f0ddf11df9f190df10383", "score": "0.5555526", "text": "Collection<CommandHandler> getHandlers();", "title": "" }, { "docid": "42993842ef41e9ebe3bb4ba387d02fed", "score": "0.55549926", "text": "public void setcontentHandler(ContentHandler ch) {\n/* 77 */ this.m_contentHandler = ch;\n/* */ }", "title": "" }, { "docid": "6cebfb5c7264df5fdb1ed0929a66261f", "score": "0.55538285", "text": "private void processHandlers(String target, Request baseRequest,\n HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException {\n\n final Handler[] handlers = getHandlers();\n\n if (handlers != null && isStarted()) {\n if (!processHandlers(viewHandlerMap.values(), target, baseRequest, request, response)) {\n processHandlers(nonViewHandlers, target, baseRequest, request, response);\n }\n }\n }", "title": "" }, { "docid": "349b3c54cfc1859a543b0559f2c75204", "score": "0.55505425", "text": "public static HandlerList getHandlerList() {\n\t\treturn handlers;\r\n\t}", "title": "" }, { "docid": "ac15ddb9ae59ebdd6b6b528717c5d418", "score": "0.55492944", "text": "protected void execute() throws Exception {\n // Map to /foo\n handler(\"foo\", context -> context.render(\"from the foo handler\"));\n\n // Map to /bar\n handler(\"bar\", context -> context.render(\"from the bar handler\"));\n\n // Set up a nested routing block, which is delegated to `nestedHandler`\n prefix(\"nested\", this::nestedHandler);\n\n // Map to a dependency injected handler\n handler(\"injected\", getRegistry().get(MyHandler.class));\n\n // Bind the /static app path to the src/ratpack/assets/images dir\n // Try /static/logo.png\n prefix(\"static\", (Chain nested) -> nested.assets(\"assets/images\"));\n\n // If nothing above matched, we'll get to here.\n handler(context -> context.render(\"root handler!\"));\n }", "title": "" }, { "docid": "29f93deb6c7cff6f44e9ba126b2362b9", "score": "0.554929", "text": "public void addHandler(ITelegramHandler handler) {\r\n\t\thandlers.add(handler);\r\n\t}", "title": "" }, { "docid": "122b1c98d0affc6bb80e72ae2ee91552", "score": "0.5547256", "text": "public void defHandler() {\n\t\thandler = new Handler() {\n\t\t\t@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase 0x001:// contacts list download success\n\t\t\t\t\t\t// saveContact();\n//\t\t\t\t\t\tshowToast(\"you have new friends!\");\n\t\t\t\t\t\tcontactAdapter.notifyDataSetChanged();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 0x002:\n\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "90d1a5b06789a12e4dd54b6f71c14dc3", "score": "0.55319715", "text": "public void setWriteHandler(Handler handler) {\n writeHandler = handler;\n }", "title": "" }, { "docid": "a8c33f1f4c5e24fce4671fdc3415794e", "score": "0.55281687", "text": "protected void registerClientRequestHandler(Object cmd, Object handler) {\n \tthis.clientRequestHandlers.put(cmd, handler);\n }", "title": "" }, { "docid": "9781323c1bf2ce6bf8ebc9b4efbf591f", "score": "0.5522478", "text": "public DispatchFilter setHandler(Class<? extends IDispatchHandler> handler)\n\t{\n\t\tthis.handler = handler;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "b5251fdf5b7cf82aa977b9ee57912420", "score": "0.5515606", "text": "public void setEventHandler(CallbackHandler eventHandler)\n \t{\n \t\tthis.eventHandler = eventHandler;\n \t}", "title": "" }, { "docid": "afe8fb97fc8d15adddf7c6a0e768784e", "score": "0.5504091", "text": "public void setChangeHandler(ChangeHandler h) {\n\t\tsave.addClickListener(e -> h.onChange());\n\t\tupdate.addClickListener(e -> h.onChange());\n\t\tdelete.addClickListener(e -> h.onChange());\n\t\tcancel.addClickListener(e -> h.onChange());\n\t}", "title": "" }, { "docid": "ad9875032b1ffbf006c390a240118695", "score": "0.5501545", "text": "public void map(String path, AsyncHttpServlet handler) {\n\t\thandlers.put(path, handler);\n\t}", "title": "" }, { "docid": "d0975eaa49c3a8e278bdbda0d34c48b8", "score": "0.5499406", "text": "void onHandled( HandledHandler handler ) {\n this.handledHandler = handler;\n }", "title": "" }, { "docid": "24ee6dc6babacfd41a0abf77ecd003c2", "score": "0.54981166", "text": "public void registerResponseHandler(TelegramResponseHandler handler)\n\t{\n\t\t\n\t\tresponseHandlers.add(handler);\n\t}", "title": "" }, { "docid": "a7a7499b1875c78da7f938c425663a0c", "score": "0.5486798", "text": "@SuppressWarnings(\"UnusedDeclaration\")\n public static void registerHandler (ZipStarter classLoader) {\n\n Handler.zipStarter = classLoader;\n\n synchronized (System.getProperties()) {\n String pkg = \"boot\";\n if (System.getProperties().contains(HANDLER_KEY)) {\n String current = System.getProperty(HANDLER_KEY);\n if (!current.contains(pkg)) {\n System.setProperty(HANDLER_KEY, current + \"|\" + pkg);\n }\n } else {\n System.setProperty(HANDLER_KEY, pkg);\n }\n }\n }", "title": "" }, { "docid": "79695dc51fd3b7554e8ed3b806393099", "score": "0.5484801", "text": "public void setup() {\n try {\n\t\t\tfileTxt = new FileHandler(\"Logs.txt\");\n\t\t} catch (SecurityException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \n formatterTxt = new SimpleFormatter();\n fileTxt.setFormatter(formatterTxt);\n logger.addHandler(fileTxt);\n\n\t}", "title": "" }, { "docid": "c3bcdb0f612de8c7ed478810328ae033", "score": "0.5481634", "text": "public interface Handler {\n public void execute() throws IOException, ClassNotFoundException;\n }", "title": "" }, { "docid": "3d178373fd70958680a56b179bbecab0", "score": "0.54801446", "text": "@Override\n\tpublic void setWorkflowHandlerClasses(List<String> workflowHandlerClasses) {\n\t\t_workflowHandlerClasses = workflowHandlerClasses;\n\t}", "title": "" }, { "docid": "ace5b5ec02564bb5f18898aa0d65f349", "score": "0.5451453", "text": "SaveHandler(){}", "title": "" }, { "docid": "7f52bf629a3b95689fa18713f382b2b0", "score": "0.5446252", "text": "protected ChannelHandler handler() {\n return new ChannelInitializer<Channel>() {\n @Override\n protected void initChannel(Channel channel) {\n ChannelPipeline pipeline = channel.pipeline();\n pipeline\n .addLast(\"frame length codec\", new FrameLengthCodec())\n .addLast(\"mux message codec\", new Codec());\n for (Map.Entry<String, ChannelHandler> entry : payloadHandlers()) {\n pipeline.addLast(entry.getKey(), entry.getValue());\n }\n pipeline.addLast(\"mux client codec\", new ClientCodec());\n }\n };\n }", "title": "" }, { "docid": "d29bbd2115a0d634c27684d9d9492f0e", "score": "0.5445603", "text": "public void setRestApiHandler(RestApiHandler handler) {\n this.handler = handler;\n }", "title": "" }, { "docid": "e8d3bb19085e679184cee5eef476b88f", "score": "0.54430926", "text": "protected AbstractHandlerMapping getHandlerMapping()\r\n/* 36: */ {\r\n/* 37:85 */ if (this.handler == null) {\r\n/* 38:86 */ return null;\r\n/* 39: */ }\r\n/* 40:89 */ Map<String, HttpRequestHandler> urlMap = new HashMap();\r\n/* 41:90 */ urlMap.put(\"/**\", this.handler);\r\n/* 42: */ \r\n/* 43:92 */ SimpleUrlHandlerMapping handlerMapping = new SimpleUrlHandlerMapping();\r\n/* 44:93 */ handlerMapping.setOrder(2147483647);\r\n/* 45:94 */ handlerMapping.setUrlMap(urlMap);\r\n/* 46:95 */ return handlerMapping;\r\n/* 47: */ }", "title": "" }, { "docid": "8473156c17a849284aea677d9001bb4b", "score": "0.5440915", "text": "private void setEventHandlers() {\n // Add event listener for updated points\n this.dutyPointsInput.textProperty().addListener(\n (observable, oldValue, newValue) -> userEditedPoints = true\n );\n\n // Show instrumentations of a selected series\n this.seriesOfPerformancesSelect.addEventHandler(ComboBoxBase.ON_HIDDEN, event -> {\n if (this.seriesOfPerformancesSelect.getSelectionModel().isEmpty()) {\n this.instrumentationsSelect.setDisable(true);\n } else {\n initInstrumentationsCheckComboBox();\n this.instrumentationsSelect.setDisable(false);\n }\n setSaveButtonStatus();\n });\n\n // Update series of performances after creating new one in other tab\n this.seriesOfPerformancesSelect.addEventHandler(ComboBoxBase.ON_SHOWING, event -> {\n initSeriesOfPerformancesComboBox();\n setSaveButtonStatus();\n });\n\n }", "title": "" }, { "docid": "15176f479dacd8990f0ba5eb910ba2ba", "score": "0.5431018", "text": "public void setChangeHandler(ChangeHandler h) {\n\t\tsave.addClickListener(e -> h.onChange());\n\t\tdelete.addClickListener(e -> h.onChange());\n\t}", "title": "" }, { "docid": "bb8257b67bbc3b584ac13251f9e98887", "score": "0.5420572", "text": "Handler getHandler() {\n ensureHandlerPrepared();\n return handler;\n }", "title": "" }, { "docid": "202a5c27f943f59e283c1dcad549a096", "score": "0.5410169", "text": "public SubstitutionsHandler() {\n }", "title": "" }, { "docid": "0778b792bef24a00af053527a338353d", "score": "0.54081064", "text": "protected void configure() {\n Multibinder<SMAAction> multibinder = Multibinder.newSetBinder(binder(), SMAAction.class);\n multibinder.addBinding().to(RegisterAction.class);\n multibinder.addBinding().to(ExitAction.class);\n }", "title": "" }, { "docid": "e7f7d0abaa5cb6f01d127876d26bbe66", "score": "0.54065675", "text": "private EOJNTenderNewHandler() {\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "dfa0b3e9a1dacf723efe9a11b4d36aa0", "score": "0.0", "text": "@SuppressLint(\"ClickableViewAccessibility\")\n\t\t\t@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn true;\n\t\t\t}", "title": "" } ]
[ { "docid": "81005989525ec80103fbaf46f9c37779", "score": "0.6694239", "text": "@Override\n\tpublic void agit() {\n\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "962e2aa1efc1eb9e8f7e2b38da8566b6", "score": "0.6441175", "text": "@Override\r\n\tprotected void method4() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63254577", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b4764437fc96bd523380203d0a714e9f", "score": "0.63064295", "text": "@Override\r\n\tpublic void calistir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ded15aaeb71ec68606fe2fb94e86fd30", "score": "0.62976253", "text": "@Override\n\tpublic void festlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.622455", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "5cf6e7275cb8d34bdacabdb57b1297ed", "score": "0.61845726", "text": "public void mo74847b() {\n }", "title": "" }, { "docid": "1121ee7f7fb44c1a82d76b74dfca36ce", "score": "0.61822534", "text": "@Override\r\n\tprotected void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "50501dd87f1998a502196290135921d9", "score": "0.61727506", "text": "@Override\r\n\tpublic void bewegeNachUnten() {\n\r\n\t}", "title": "" }, { "docid": "fb712911683b694cdce8a0591533827a", "score": "0.6169982", "text": "public void attaquer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "d782462e898859cd8f1a6e804776230b", "score": "0.6119481", "text": "@Override\n\tpublic void kahvalti() {\n\t\t\n\t}", "title": "" }, { "docid": "5188ca7aad5f258e672f0989f34a3f46", "score": "0.61062694", "text": "public void mo80636c() {\n }", "title": "" }, { "docid": "320da35135786dc4505079f4a9a73c36", "score": "0.6103035", "text": "@Override\r\n\tpublic void preen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "24da068fbc02f8b8b3aa9cab24026941", "score": "0.60865915", "text": "@Override\n\tpublic void atacar() {\n\t\t\n\t}", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.60860294", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.60860294", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "10d92a66c246261fe6e471d744e9a556", "score": "0.6085701", "text": "@Override\n\tpublic void rysuje() {\n\t\t\n\t}", "title": "" }, { "docid": "7c007022c54a0806ff9bd5438ae3e2ec", "score": "0.60739225", "text": "public void mo74769c() {\n }", "title": "" }, { "docid": "6fd2749106ffef4cb03e557457ef432e", "score": "0.60392183", "text": "@Override\n public void alpulsarNO() {\n\n\n }", "title": "" }, { "docid": "df5a58b776d79955ce4bf7e18e9ddfc4", "score": "0.6021335", "text": "public void mo9214a() {\n }", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "792350939017ccf304337ff492e7db06", "score": "0.601073", "text": "@Override\n\tpublic void init() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "cc0ab1c285fd2b1a0f1742f44327869d", "score": "0.59759116", "text": "@Override\r\n\tpublic void kasitteleSyote() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ced4b47c7129b2184e6a77b2a8798fd1", "score": "0.5946297", "text": "@Override\n public void annuler() {\n\n }", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59291553", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "3334d3b302fd55029e7bd247c823c639", "score": "0.5911117", "text": "@Override\n\tvoid accerlate() {\n\t\t\n\t}", "title": "" }, { "docid": "3d63ba02955ffee95b4ac1b66c98f160", "score": "0.59105057", "text": "@Override\n protected boolean Rol() {\n return true;\n }", "title": "" }, { "docid": "fee1a18ceca61748f93149cd393850fc", "score": "0.5909857", "text": "public void mo74768d() {\n }", "title": "" }, { "docid": "ba348d037fde33ef982a79632d7adf5e", "score": "0.59073913", "text": "@Override\n\tpublic void bouger()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.58831", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "1351a596cfde79c7fcbaa0c0ac90ed14", "score": "0.5865934", "text": "@Override\n public boolean Aapninger() {\n return true;\n }", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "adbbc233cf07504fdedfcdf74afa4901", "score": "0.583616", "text": "@Override\n\tpublic void prnt() {\n\n\t}", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5831551", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5831551", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "27e0c12332a0f3b9fe854aa8beb3bad6", "score": "0.5825081", "text": "@Override\n\tpublic void OffersOfTheDay() {\n\t\t\n\t}", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810343", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "79d198822ce7c98fbe391cfdeb33e3f6", "score": "0.58049023", "text": "@Override\r\n\tprotected void acelerar() {\n\r\n\t}", "title": "" }, { "docid": "2d17f675c4797d1489ccbc9d83c3ec33", "score": "0.5801597", "text": "@Override\n\tpublic void umm() {\n\t\t\n\t}", "title": "" }, { "docid": "c9d7a19ad712ece23e6218c1bbd97e1b", "score": "0.57992023", "text": "@Override\n\tpublic void creap() {\n\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "d5b930411834332d013e7e45ca7412e4", "score": "0.57919663", "text": "public void getAadhar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5791661", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c990ce3c0c4e578d5c2e065a437f8c3", "score": "0.5790907", "text": "public void inverte() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2988fe45f681712faab63cb0e862874c", "score": "0.57805216", "text": "@Override\r\n protected void poDolaczeniu() {\n\r\n }", "title": "" }, { "docid": "3a0aa7f30eee7a869c7fd2960b14db07", "score": "0.5778643", "text": "@Override\n public void destoty() {\n }", "title": "" }, { "docid": "10d40e9b81b4ba39c3ab6d779f3b2692", "score": "0.577812", "text": "public void mo31237c() {\n }", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57740533", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "8843ebe8d692b94536f16d5f07fdff4f", "score": "0.57587487", "text": "@Override\n public void update() {\n // TODO Auto-generated method stub\n }", "title": "" }, { "docid": "c379949c43d334b2a73a78b63ebac3c1", "score": "0.5757493", "text": "@Override public int getAtaque(){\n return 0;\n\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5753717", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a65f81fad538053c05dc35d7be360588", "score": "0.5752461", "text": "@Override public int getDefensa(){\n return 0;\n\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c4fa257f1d9c8e55ec00612334f57e8b", "score": "0.5742544", "text": "@Override\n public void init() {\n\t\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.5739092", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "a624b89db95eebb0d7e745f8301395c1", "score": "0.57344353", "text": "public void method() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.5732929", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "cadfa07fe44678e9617053752fa5f43d", "score": "0.57283473", "text": "@Override\r\n \tpublic String toString() {\r\n \t\treturn super.toString();\r\n \t}", "title": "" }, { "docid": "c303699d6c9f8d3a2b316125e204825c", "score": "0.57273126", "text": "@Override\n\tpublic void verTop10() {\n\t\t\n\t}", "title": "" }, { "docid": "c74f29111dd26487e1359eb6abdacbec", "score": "0.57206607", "text": "public void mo74767a() {\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "1756ef4d0803e995be285c55c28e3b84", "score": "0.57156587", "text": "@Override\r\n\tpublic void bewegeNachRechts() {\n\r\n\t}", "title": "" }, { "docid": "62af35269754b8acb72204c12f622caf", "score": "0.5703817", "text": "protected void mo1291L() {\n }", "title": "" }, { "docid": "b07546ce140f2f3bb5b718f3bf303b9a", "score": "0.5702189", "text": "public void mo5721a() {\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "94016f621198b25fa3341ef2382c6876", "score": "0.5689651", "text": "@Override\n\tpublic void grandir() {\n\t\t\n\t}", "title": "" }, { "docid": "abb78a58451e05c6ba3dd938b5c036e0", "score": "0.5684533", "text": "@Override\r\n public void usunZarejestrowaneObiekty() {\n\r\n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "02b2c6e51ebb5faf78f05c34c734f88d", "score": "0.5676809", "text": "@Override\n\tprotected void adjust() {\n\t\t\n\t}", "title": "" }, { "docid": "9c052331388a2c5e4c1a01dac5b28c41", "score": "0.56740385", "text": "public void verAssist() {\n\t\t\n\n\t}", "title": "" }, { "docid": "3e2b070c1404c777aafba0cbacea02f1", "score": "0.5663756", "text": "@Override\n\tprotected void initializeData() {\n\t\t\n\t}", "title": "" } ]
bd951b8344d2583d9abf1248e84bc671
removes PRIME from the constraint candidates
[ { "docid": "fcd336db74d5896dcaa412ed923d3d2b", "score": "0.49374595", "text": "private HashSet removePrime(HashSet set, String text) {\r\n//\t\ttext = text.substring(7,text.lastIndexOf(\"]\"));\r\n// if (debug)\r\n// System.out.println(\" removed prim from: \"+ text);\r\n set.add(text.substring(7,text.indexOf(\",\")));\r\n set.add(text.substring(text.indexOf(\",\")+1,text.lastIndexOf(\"]\")));\r\n return set;\r\n }", "title": "" } ]
[ { "docid": "8bd9c7358907ea3e3497c76f6fa19367", "score": "0.59243566", "text": "public abstract void removeConstraint();", "title": "" }, { "docid": "3de969e15a6ca23280b9cc613d5b56ce", "score": "0.59237033", "text": "private void supprimerCheminContenantPirate() {\n\t\tList<Chemin> listeCheminAux = new LinkedList<Chemin>();\n\t\tPoint pPirate = new Point(this.tabPion[3].x,this.tabPion[3].y);\n\t\tfor(Chemin c:this.listeCheminCase)\n\t\t{\n\t\t\tif(!c.chemin.contains(pPirate))\n\t\t\t{\n\t\t\t\tlisteCheminAux.add(c);\n\t\t\t}\n\t\t}\n\t\tthis.listeCheminCase = listeCheminAux;\n\t\t\n\t}", "title": "" }, { "docid": "247030b85fc6410dbe69bae0b786e9df", "score": "0.59070504", "text": "public void removePriority()\r\n {\r\n getSemanticObject().removeProperty(bsc_priority);\r\n }", "title": "" }, { "docid": "6f382c09f8933392adb3e118eedf0582", "score": "0.578537", "text": "public void deleteAllPriorities();", "title": "" }, { "docid": "a800f807297a1c7183fd5e41a43e0cbd", "score": "0.56122077", "text": "private void minimize() {\n int i = 0;\n while (i < size() - 1) {\n GeneralNameInterface current = getGeneralNameInterface(i);\n boolean remove1 = false;\n int j = i + 1;\n while (j < size()) {\n switch (current.constrains(getGeneralNameInterface(j))) {\n case -1:\n case 3:\n break;\n case 0:\n remove1 = true;\n break;\n case 1:\n remove(j);\n j--;\n break;\n case 2:\n remove1 = true;\n break;\n default:\n break;\n }\n }\n if (remove1) {\n remove(i);\n i--;\n }\n i++;\n }\n }", "title": "" }, { "docid": "d85a09c70e3dc01eb02fcd0371a3cb7b", "score": "0.54162484", "text": "private static void eliminateCandidate(String candidate) {\n\t\tredistributeVotes(candidate, 1.0);\n\t\t\n\t\t//remove the candidate from the vote counts.\n\t\tSystem.out.println(candidate + \" has been eliminated with \" + currentVoteCounts.get(candidate) + \" votes.\");\n\t\tcurrentVoteCounts.remove(candidate);\n\t}", "title": "" }, { "docid": "f5e35eb3e61c4843282c6c8936d17068", "score": "0.5344387", "text": "public void removePolicyFromNode ()\n {\n System.out.println (\"Pulsada la opción 'Eliminar Política'\"); // ...Borrar\n VisualNode node = null;\n List<VisualNode> selectedNode = visualNetwork.getSelectedNodes ();\n if (selectedNode.size () == 1)\n {\n node = selectedNode.get (0);\n if (node.getNode ().getNodeType () == NodeType.DECISION)\n {\n Node probNode = node.getNode ();\n ArrayList<Potential> noPolicy = new ArrayList<> ();\n probNode.setPotentials (noPolicy);\n ((VisualDecisionNode) node).setHasPolicy (false);\n }\n }\n networkChanged = true;\n }", "title": "" }, { "docid": "d64a4019b087188265b52b9f91c385d5", "score": "0.533257", "text": "abstract public void prune();", "title": "" }, { "docid": "f1ef7a0ee967cddf038929edde94d6ba", "score": "0.53200084", "text": "public void removePossible(int val) {\n possible.remove((Integer)val);\n }", "title": "" }, { "docid": "de4ae0d88ab4275ce65d5927cded4b2d", "score": "0.5307042", "text": "@Override\n\tpublic void delMin() {\n\t\tsize = size();\n\t\tarray[1] = null;\n\t\tEntryPair temp = array[size];\n\t\tarray[size] = null;\n\t\tsize--;\n\t\t\n\t\tif(size==1)\n\t\t\tarray[1] = temp;\n\t\t\n\t\tint n = 1;\n\t\twhile((2*n+1) <= size)\n\t\t{\n\t\t\tif(array[2*n].priority<array[2*n+1].priority)\n\t\t\t{\n\t\t\t\tif(temp.priority<array[2*n].priority)\n\t\t\t\t{\n\t\t\t\t\tarray[n] = temp;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tarray[n] = array[2*n];\n\t\t\t\t\tarray[2*n] = null; //make a hole\n\t\t\t\t\tif(4*n<=size)\n\t\t\t\t\t\tn = 2*n;\n\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\tarray[2*n] = temp;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(temp.priority<array[2*n+1].priority)\n\t\t\t\t{\n\t\t\t\t\tarray[n] = temp;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tarray[n] = array[2*n+1];\n\t\t\t\t\tarray[2*n+1] = null;\n\t\t\t\t\tif(2*(2*n+1)<=size)\n\t\t\t\t\t\tn = 2*n+1;\n\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\tarray[2*n+1] = temp;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tif(array[n]==null&&2*n==size)\n\t\t\tif(array[2*n].priority>temp.priority)\n\t\t\t\tarray[n]=temp;\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tarray[n] = array[2*n];\n\t\t\t\tarray[2*n] = temp;\n\t\t\t\t}\n\t\t\n\t\t\n\n\n\t}", "title": "" }, { "docid": "f19b425db195a17be030e213c22dfd46", "score": "0.52834415", "text": "public abstract void removeConstraint(ConstraintID id);", "title": "" }, { "docid": "4f282d2813966a295001f4cd4fc224e7", "score": "0.52619493", "text": "public void prune();", "title": "" }, { "docid": "815302628cbf96db3a59843862bf3317", "score": "0.51521844", "text": "public void removeJobPriority(Job job, List<String> workerTypes) {\n \n }", "title": "" }, { "docid": "2eb9d11afe6a68c00295c18832ca10e8", "score": "0.51447654", "text": "void removeFromPriorityList(Application.Name applicationName, Experiment.ID experimentID);", "title": "" }, { "docid": "785acdf5207f1c9287f9baa410b4ceca", "score": "0.5139163", "text": "private void removeMax() {\n swap(low, high); // swap the end of the heap into the root\n // fix the heap property - push down as needed\n high--; // removed the end of the heap\n if (high != low) {\n pushdown(low); // move the root to the proper place in the tree and fix the tree\n }\n }", "title": "" }, { "docid": "e688cad0baca3156f2637d696c4d5c26", "score": "0.51347876", "text": "IHeap remMinElt();", "title": "" }, { "docid": "b8d09d5c8483f433bd72dbab4e0695d2", "score": "0.51112854", "text": "public void decrease()\r\n {\r\n ressourcePlanning.decrease();\r\n }", "title": "" }, { "docid": "2884d04792515685097462768f089296", "score": "0.51106447", "text": "public void resetPriorities() {\n\t\tObjects.requireNonNull(set.getOtherSet().nodes);\n\t\tinitPriorities();\n\t\tIterator<Integer> itr = originalPriorities.iterator();\n\t\tfor(int i = 0; itr.hasNext(); i++) {\n\t\t\tint nodeID = itr.next();\n\t\t\tpriorities.add(new NodePriority(\n\t\t\t\ti, // = priority\n\t\t\t\tset.other.nodes.get(nodeID)\n\t\t\t));\n\t\t}\n\t\tset.matched = false;\n\t}", "title": "" }, { "docid": "16fe7c2b2b02234733affe59d2bb13f5", "score": "0.5081566", "text": "public void delMin() {\n\t\troot = delMin(root);\n\t}", "title": "" }, { "docid": "051b1a69819841fa934a478d2c7e7dc8", "score": "0.50614876", "text": "public abstract void deleteMin();", "title": "" }, { "docid": "f660ce768636b5d11da80b24c18182cf", "score": "0.5059775", "text": "@Override\n\tpublic void deleteMin() {\n\n\t}", "title": "" }, { "docid": "68ec23c76db53f215ee79e2f0a15834c", "score": "0.5056388", "text": "public void supprimerProie() {\r\n laVueTerrain.supprimerProie(composantProie);\r\n }", "title": "" }, { "docid": "2bca0afdf048410f5d1f9db9b4d90196", "score": "0.504146", "text": "public void prune() {\n jjtSetParent( null );\n }", "title": "" }, { "docid": "32514433d1344fba1cb2f6b767084b1c", "score": "0.50390977", "text": "private void deleteConstraint(DenseMatrix64F J)\n {\n double cc, ss, h, xny, t1, t2;\n int qq = -1;\n\n // Find the index qq for active constraintIndexForMinimumStepLength to be removed\n for (int i = numberOfEqualityConstraints; i < numberOfActiveConstraints; i++)\n {\n if (activeSetIndices.get(i) == constraintIndexForPartialStep)\n {\n qq = i;\n break;\n }\n }\n\n // remove the constraint from the active set and the duals\n for (int i = qq; i < numberOfActiveConstraints - 1; i++)\n {\n activeSetIndices.set(i, activeSetIndices.get(i + 1));\n lagrangeMultipliers.set(i, lagrangeMultipliers.get(i + 1));\n\n for (int j = 0; j < problemSize; j++)\n R.set(j, i, R.get(j, i + 1));\n }\n\n\n // FIXME use the remove row feature\n activeSetIndices.set(numberOfActiveConstraints - 1, activeSetIndices.get(numberOfActiveConstraints));\n lagrangeMultipliers.set(numberOfActiveConstraints - 1, lagrangeMultipliers.get(numberOfActiveConstraints));\n activeSetIndices.set(numberOfActiveConstraints, 0);\n lagrangeMultipliers.set(numberOfActiveConstraints, 0.0);\n for (int j = 0; j < numberOfActiveConstraints; j++)\n R.set(j, numberOfActiveConstraints - 1, 0.0);\n\n // constraint has been fully removed\n numberOfActiveConstraints--;\n\n if (numberOfActiveConstraints == 0)\n return;\n\n for (int j = qq + numberOfEqualityConstraints; j < numberOfActiveConstraints; j++)\n {\n cc = R.get(j, j);\n ss = R.get(j + 1, j);\n h = distance(cc, ss);\n\n if (MathTools.epsilonEquals(h, 0.0, epsilon)) // h == 0\n continue;\n\n cc = cc / h;\n ss = ss / h;\n R.set(j + 1, j, 0.0);\n\n if (cc < 0.0)\n {\n R.set(j, j, -h);\n cc = -cc;\n ss = -ss;\n }\n else\n {\n R.set(j, j, h);\n }\n\n xny = ss / (1.0 + cc);\n for (int k = j + 1; k < numberOfActiveConstraints; k++)\n {\n t1 = R.get(j, k);\n t2 = R.get(j + 1, k);\n R.set(j, k, t1 * cc + t2 * ss);\n R.set(j + 1, k, xny * (t1 + R.get(j, k)) - t2);\n }\n\n for (int k = 0; k < problemSize; k++)\n {\n t1 = J.get(k, j);\n t2 = J.get(k, j + 1);\n J.set(k, j, t1 * cc + t2 * ss);\n J.set(k, j + 1, xny * (J.get(k, j) + t1) - t2);\n }\n }\n }", "title": "" }, { "docid": "b80957e82dbac008d0f275d7f770df8d", "score": "0.50370324", "text": "public void deleteMin2()\n\t {\n\t\t Node<Integer> node = priorityQueue.getFirstNode();\t\t \n\t\t Node<Integer> lowNode = priorityQueue.getFirstNode();\n\t\t int lowValue = node.getElement();\n\t\t \n\t\t while(node.hasNext())\n\t\t {\n\t\t\t Node<Integer> tempNode = node.getNext();\n\t\t\t \n\t\t\t int tempVal = tempNode.getElement();\n\t\t\t \n\t\t\t if(tempVal < lowValue)\n\t\t\t {\n\t\t\t\t lowNode = tempNode;\n\t\t\t\t lowValue = tempVal;\n\t\t\t }\n\t\t\t \n\t\t\t node = node.getNext();\n\t\t }\n\t\t \n\t\t priorityQueue.deleteNode(lowNode);\n\t }", "title": "" }, { "docid": "b461c680ca3f2acf7e75326203814fab", "score": "0.50269896", "text": "public void afficherPointsDePrieres() {\n\t\t\t\tsuper.afficherPointsDePrieres();\n\t\t\t}", "title": "" }, { "docid": "afb6f6ae384594477969de8b3b58611d", "score": "0.5026371", "text": "public void eliminarPrimero()\n {\n raiz = raiz.getSiguiente();\n tamano--;\n }", "title": "" }, { "docid": "7e1e0141aa06fec75da911a13e997f83", "score": "0.5004492", "text": "public void eliminaPrimero(){\n \tif(cabeza == null)\n \t\treturn;\n \tcabeza = cabeza.getSiguiente();\n \ttamanio--;\n }", "title": "" }, { "docid": "b688ea85ab1edd70fc5161dfdfab2071", "score": "0.4988591", "text": "public List<Node[]> pruneOriginalCandidates(List<Node[]> candidates) {\n List<Node[]> prunedCandidates = new ArrayList<>();\n for (Node[] pair : candidates) {\n if (pair[0].getSignature().equals(pair[1].getSignature())) continue;\n\n if (!(pair[0].isAPI() && pair[1].isAPI())) continue;\n\n boolean hasSameNameAndSignature = hasTheSameSignatureAndName(pair);\n\n if (hasSameNameAndSignature) continue;\n\n if (isTheSameModuloRename(pair[0].getFullyQualifiedName(), pair[1].getFullyQualifiedName()))\n prunedCandidates.add(pair);\n }\n return prunedCandidates;\n }", "title": "" }, { "docid": "75f416e0b522d18b1b5af06713a0edfe", "score": "0.4987375", "text": "void scrubber2(Vertex input) {\n pred.removeAll(Collections.singleton(input));\n }", "title": "" }, { "docid": "c83e17bfc9842226f9a43ef38b1d0901", "score": "0.49734446", "text": "private void removeUseless() {\n Set<Map.Entry<String, PropertyNode>> entries = _children.entrySet();\n for (Iterator<Map.Entry<String, PropertyNode>> it = entries.iterator(); it.hasNext(); ) {\n Map.Entry<String, PropertyNode> entry = it.next();\n PropertyNode child = entry.getValue();\n child.removeUseless();\n if (child.isUseless()) {\n it.remove();\n }\n }\n }", "title": "" }, { "docid": "0f498ca28fcdbabd48373670671e78bb", "score": "0.4970995", "text": "public void deleteProcurementPrioriy(ProcurementFlowPriority procurementFlowPriority);", "title": "" }, { "docid": "ee23dfe792ae95af58308014f630bfe8", "score": "0.49652573", "text": "private void resurectPersons() {\n\t\tList<Person> tmp = new ArrayList<Person>();\n\t\tfor (Person p : personsDumped) {\n\t\t\tif (p.getCash() >= povertyLim) {\n\t\t\t\ttmp.add(p);\n\t\t\t}\n\t\t}\n\t\tpersonsDumped.removeAll(tmp);\n\t\tpersonsActive.addAll(tmp);\n\t}", "title": "" }, { "docid": "5029a34bbe3b740a1c91b87a8565fb80", "score": "0.48637637", "text": "void removeLoopConstraint(int i);", "title": "" }, { "docid": "b083ee074e0bf72d50449f3c421a7786", "score": "0.4860081", "text": "Comparable deleteMin( );", "title": "" }, { "docid": "e791dc5e99e7b1a5e607fa499266d88d", "score": "0.48389715", "text": "public void dropConstraintsProduceableInCall(SSAInvokeInstruction instr, CGNode caller, CGNode callee, boolean dropPtConstraints);", "title": "" }, { "docid": "11ddca9c40974e09ebb30e6e51a3a720", "score": "0.48265818", "text": "boolean remove(Constraint constraint);", "title": "" }, { "docid": "844cec97d4732cc256e54cda59731c96", "score": "0.480034", "text": "public void resetConstraints() {\n\t\tthis.constraint = null;\n\t}", "title": "" }, { "docid": "9cb2d7431945bdd53f562cc3005402a4", "score": "0.48003384", "text": "private static void deGapPriorities(List<InsertionPoint> ips) {\n ips.sort(Comparator.comparing(InsertionPoint::getPriority));\n\n int currentPriority = -1;\n int prevIPPriority = -1;\n\n for (InsertionPoint ip : ips) {\n if (ip.priority > prevIPPriority) {\n prevIPPriority = ip.priority;\n currentPriority++;\n }\n\n ip.priority = currentPriority;\n }\n }", "title": "" }, { "docid": "49efea7cac435920b9c2a10de196ade0", "score": "0.4792951", "text": "public void remove( Comparable x )\r\n\t{\r\n\t\troot = remove( x, root );\r\n\t}", "title": "" }, { "docid": "83b0b3810579b60c538e7198ed55bcee", "score": "0.47907996", "text": "public void removeConstraintByName(String name, String type) {\n\t\tif (constraints == null) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tfor (int i = 0; i < constraints.size(); i++) {\n\t\t\t\tConstraint constraint = constraints.get(i);\n\t\t\t\tif (constraint.getType().equals(type)\n\t\t\t\t\t\t&& StringUtil.isEqual(constraint.getName(), name)) {\n\t\t\t\t\tconstraints.remove(i);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f72332a37ccd64bc7173f536f28b8abb", "score": "0.47875136", "text": "void removeObjectiveTerm(LinearTerm term);", "title": "" }, { "docid": "89fd80b6ebefbf9696698f347654d04d", "score": "0.4786292", "text": "private static void handlePrune(Frame cur) {\n if (cur.isMax) {\n if (cur.vee.utility() >= cur.beta.utility()) {\n // Prune the nodes below to save time.\n cur.children.clear();\n }\n if (cur.vee.utility() > cur.alpha.utility()) {\n // Update alpha.\n cur.alpha = cur.vee;\n }\n } else {\n if (cur.vee.utility() <= cur.alpha.utility()) {\n // Prune the nodes below to save time.\n cur.children.clear();\n }\n if (cur.vee.utility() < cur.beta.utility()) {\n // Update alpha.\n cur.beta = cur.vee;\n }\n }\n }", "title": "" }, { "docid": "66656ed021c4d7e73414591ef29d3866", "score": "0.4779762", "text": "public int delMin() {\r\n int min = 0;\r\n for (int j = 0; j < N; j++){\r\n exch(min, N-1);\r\n fixDown(1);\r\n }\r\n return pq[--N];\r\n }", "title": "" }, { "docid": "1e0a8dbeeb5685e47550e83af20282e6", "score": "0.47707257", "text": "public void deleteMin()\n\t {\n\t\tint listSize = priorityQueue.size();\n\t\t\n\t\tif(listSize == 0)\n\t\t\tthrow new IllegalStateException(\"Queue is empty.\");\n\t\t\n\t\tint lowValueIndex = 0;\n\t\tint lowValue = priorityQueue.getElementAtIndex(lowValueIndex);\n\t\t\n\t\tfor(int i=1; i<listSize; i++)\n\t\t{\n\t\t\tint currentNodeValue = priorityQueue.getElementAtIndex(i);\n\t\t\t\n\t\t\tif(currentNodeValue < lowValue)\n\t\t\t{\n\t\t\t\tlowValueIndex = i;\n\t\t\t\tlowValue = currentNodeValue;\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tpriorityQueue.removeAtIndex(lowValueIndex);\n\t }", "title": "" }, { "docid": "b232e9ffd30094efe45beb23771205e4", "score": "0.47693342", "text": "@Override\n public void removePolicy(String sec, String ptype, List<String> rule) {\n }", "title": "" }, { "docid": "8ca86226b8687d2c02ab8a92efa1f0ff", "score": "0.47686318", "text": "void unsetMinValue();", "title": "" }, { "docid": "6f263ae7922453fab8c5002fc3f9c5e0", "score": "0.4761146", "text": "@Override\r\n\tpublic void supprimerConseiller(Conseiller conseiller) {\n\t\t\r\n\t}", "title": "" }, { "docid": "42d2243ee8777c87a78833f5aef0c0fe", "score": "0.47263846", "text": "void removeObjectiveTerm(QuadraticTerm term);", "title": "" }, { "docid": "5096cdd9080813b0fd4f0bd32aac1ea8", "score": "0.472089", "text": "public void removeConstraint(int number) throws IllegalArgumentException {\n if (number < 1 || number > 9) {\n throw new IllegalArgumentException(\"Illegal number in \"\n + \"Cell.removeConstraint(): \" + number);\n }\n\n if (constraints[number] > 0)\n constraints[number]--;\n\n }", "title": "" }, { "docid": "c0b087c64c7c380e5fdd6c6fbb976880", "score": "0.47184122", "text": "public void removeAllbiboNumber() {\n\t\tBase.removeAll(this.model, this.getResource(), NUMBER);\n\t}", "title": "" }, { "docid": "e05351b27a16a1b9804bd467dece3357", "score": "0.471234", "text": "void unsetPrecipIn();", "title": "" }, { "docid": "99307b990e3faf11ecb47bc2715bc657", "score": "0.46980172", "text": "@Override\n\tpublic CLGConstraint CLGConstraint() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e3aa32a2f923d62cc53d593398628dd7", "score": "0.46882105", "text": "public void removeAllbiboPages() {\n\t\tBase.removeAll(this.model, this.getResource(), PAGES);\n\t}", "title": "" }, { "docid": "e17021c6635e7f78982874d9ef6d4d75", "score": "0.4680062", "text": "public Builder clearPriority() {\n \n priority_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e17021c6635e7f78982874d9ef6d4d75", "score": "0.4680062", "text": "public Builder clearPriority() {\n \n priority_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e17021c6635e7f78982874d9ef6d4d75", "score": "0.4680062", "text": "public Builder clearPriority() {\n \n priority_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2507e14425b4804ca0c93fa56a5e1751", "score": "0.4674315", "text": "void remove(){\n int min = Integer.MAX_VALUE;// 23187182746871\n int min_index = -1;\n\n for (int i = 0; i < last_index; i++){\n if (arr[i] <= min){\n min = arr[i];\n min_index = i;\n }\n }\n\n // 2 - remove it!\n // 2.1 - swap the min_index with the last element\n swap(min_index, last_index, arr);\n // 2.2 - decrement last_index by 1\n last_index --;\n }", "title": "" }, { "docid": "b49e686483f4ebf529b87a0321c9a6c4", "score": "0.46736524", "text": "public Node<K,V> removeLastPraiority()\r\n\t{\r\n\t\tNode<K,V> toReturn = getLastPriority();\r\n\t\tNode<K,V> position = first;\r\n\t\t\r\n\t\twhile(!position.getNext().equals(toReturn))\r\n\t\t\tposition=position.getNext();\r\n\t\tposition.setNext(toReturn.getNext());\r\n\t\t//for garbage collection\r\n\t\ttoReturn.setNext(null);\r\n\t\treturn toReturn;\r\n\t}", "title": "" }, { "docid": "be0ea6e8eb28e1b5b6e846fc40d058a9", "score": "0.46705723", "text": "@Override\r\n\tpublic void eliminar() {\n\t\ttab_distributivo.eliminar();\r\n\t}", "title": "" }, { "docid": "1465884f78c3b8711e5e609641e58531", "score": "0.4668478", "text": "public Key delMin(){\n if (keys.length == 0){throw new RuntimeException(\"PQ is underflow. \");}\n if (n > 0 && n == keys.length / 4){resize(keys.length / 2);}\n Key valueOfMin = keys[pq[1]];\n exchange(1, n);\n n--;\n keys[pq[n+1]] = null;\n qp[pq[n+1]] = -1;\n sink(1);\n return valueOfMin;\n }", "title": "" }, { "docid": "2d54a5cdc9b017a0dfa939e4009863e5", "score": "0.46634436", "text": "public void eliminar2_3(LeafNode ln, int key, DictionaryPair[] dpsLn) {\n if (ln.numPairs > ln.minNumPairs + 1) {\n System.out.println(\"ELIMINAR SI ESTA EN RAIZ Y TIENE MAS DEL MINIMO DE LLAVES\");\n //eliminar llave\n DictionaryPair[] dps = ln.dictionary;\n int index = binarySearch(dps, ln.numPairs, key);\n ln.delete(index);\n sortDictionary(dps);\n //sustituir key que se quiere elminar de root por el que quedo en el primer lugar de LeafNode\n InternalNode raiz = this.root;\n raiz.sustituirKey(key, dps[0].key);\n }//\n ////(2) cuando el que se quiere eliminar tiene el minimo de claves\n //// y al que le debe prestar(el hermano) tiene MAS del minimo de claves\n else if ((ln.numPairs == ln.minNumPairs + 1) && (ln.rightSibling.numPairs > ln.rightSibling.minNumPairs + 1)) {\n System.out.println(\"ELIMINAR SI ESTA EN RAIZ Y TIENE EL MINIMO DE LLAVES Y EL HERMANO PUEDE PRESTAR\");\n LeafNode hermanoD = ln.rightSibling;//guarda el hermnao derecho\n DictionaryPair[] dpsH = hermanoD.dictionary;//guarda el diccionario del hermano\n //key que se quiere eliminar se convierte en el primero del hermano derecho\n dpsLn[0] = dpsH[0];\n //sustituir key que se quiere elminar de root por el que quedo en el primer lugar de LeafNode que quedo\n InternalNode raiz = this.root;\n raiz.sustituirKey(key, dpsLn[0].key);\n //sustituir key que quedo en el internal node por segunda key del hermano\n InternalNode parent1 = ln.parent;\n parent1.sustituirKey(dpsH[0].key, dpsH[1].key);\n //finalmente se elimna el key prestado del hermano\n int index = binarySearch(dpsH, hermanoD.numPairs, dpsH[0].key);\n hermanoD.delete(index);\n sortDictionary(dpsH);\n\n } ////(3)cuando el nodo tiene el minimo numero de claves y el hermano tambien tiene el numero mínimo de claves\n else if ((ln.numPairs == ln.minNumPairs + 1) && (ln.rightSibling.numPairs == ln.rightSibling.minNumPairs + 1)) {\n System.out.println(\"ELIMINAR SI ESTA EN RAIZ Y TIENE EL MINIMO DE LLAVES Y EL HERMANO NOO PUEDE PRESTAR\");\n LeafNode hermanoD = ln.rightSibling;//guarda el hermnao derecho\n DictionaryPair[] dpsH = hermanoD.dictionary;//guarda el diccionario del hermano\n //key que se quiere eliminar se convierte en el primero del hermano derecho\n dpsLn[0] = dpsH[0];\n //PRIMERA KEY DEL PARENT SE PASA A ROOT\n InternalNode parent1 = ln.parent;//guarda parent\n this.root.sustituirKey(key, parent1.keys[0]);//sustituye key a eliminar por primera key del internalNode\n //eliminar primera key del parent\n parent1.removeKey(0);\n //eliminar CONEXION nodo hermanno (se supone que ya no tiene nada)\n if (hermanoD.rightSibling != null) {\n ln.rightSibling = hermanoD.rightSibling; //ahora el hermano derecho del nodo es el hermano derecho del eliminado\n hermanoD.leftSibling = ln;//\n }\n //eliminar child pointer\n parent1.removePointer(0);//elimina el pointer del hermano del que se elimino \n }\n\n }", "title": "" }, { "docid": "f0edabe1d8762106cf8c6b165f536a09", "score": "0.46500605", "text": "public static void removebiboReproducedIn( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\n\t\tBase.remove(model, instanceResource, REPRODUCEDIN, value);\n\t}", "title": "" }, { "docid": "028cba4809b046e217d4dfc38036a3ca", "score": "0.46391135", "text": "public void supprimerCompte(){\n\t\t\n\t}", "title": "" }, { "docid": "f949476e19aaed49fa1130c84e7427da", "score": "0.46378723", "text": "protected void fpnegPRIME(long[] a)\n {\n int i, borrow = 0;\n\n for (i = 0; i < engine.params.NWORDS_FIELD; i++)\n {\n //SUBC\n long tempReg = engine.params.PRIMEx2[i] - a[i];\n int borrowReg = (is_digit_lessthan_ct(engine.params.PRIMEx2[i], a[i]) | (borrow & is_digit_zero_ct(tempReg)));\n a[i] = tempReg - (long)(borrow);\n borrow = borrowReg;\n }\n }", "title": "" }, { "docid": "167bd421170afca0857d66755d9d98c9", "score": "0.46230295", "text": "@Override\r\n\tpublic void eliminar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cfcfeeff911e5677e0b5cb563acec065", "score": "0.46206725", "text": "private void decreaseKeyUnchecked(final Node key, final double priority) {\n key.setPriority(priority);\n\n if (key.getParent() != null && key.getPriority() <= key.getParent().getPriority())\n cut(key);\n\n if (key.getPriority() <= root.getPriority())\n root = key;\n\n }", "title": "" }, { "docid": "20bfe8e9d45e4659a47cc773d9857c7c", "score": "0.4620582", "text": "public Constraint removeUniqueByAttrName(String attrName) {\n\t\tif (constraints == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfor (int i = constraints.size() - 1; i >= 0; i--) {\n\t\t\t\tConstraint constraint = constraints.get(i);\n\t\t\t\tif (constraint.getType().equals(ConstraintType.UNIQUE.getText())) {\n\t\t\t\t\tList<String> attributes = constraint.getAttributes();\n\t\t\t\t\tif (attributes.size() == 1\n\t\t\t\t\t\t\t&& attributes.get(0).equals(attrName)) {\n\t\t\t\t\t\treturn constraints.remove(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1472dd8ae599239f778d5d9deeaf5c5c", "score": "0.4614437", "text": "public void removeAllbiboReproducedIn() {\n\t\tBase.removeAll(this.model, this.getResource(), REPRODUCEDIN);\n\t}", "title": "" }, { "docid": "5a7a6dcbb2642295e28c8f6ded9cc2c1", "score": "0.46118957", "text": "private void deleteRelativePolicy(PolicyRestriction Restriction){\n\t\tIterator<QoSPolicy> sIter = QoSService.getPolicies().iterator();\n\t\n\t\twhile(sIter.hasNext()){\n\t\t\tQoSPolicy p = sIter.next();\n\t\t\tif(p.source.equals(Restriction.name)){\n\t\t\t\tsIter.remove();\n\t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "678bfff2759dfcc57e01dd451d63bb65", "score": "0.46097046", "text": "public void removeAllLocalConstraints();", "title": "" }, { "docid": "19497e2b42d321f9070f60c7be7b06f8", "score": "0.4606251", "text": "public void removeAllbiboNumberofpages() {\n\t\tBase.removeAll(this.model, this.getResource(), NUMBEROFPAGES);\n\t}", "title": "" }, { "docid": "eba0e6965f45e08496c3a04b8cce2263", "score": "0.46037504", "text": "private void remove_outset_projectiles() {\n\t\t/* Maximum distance from a projectile to its owner is double the maximum\n\t\t * of the distances between any two ships\n\t\t */\n\t\tDouble d = Math.max(this.max_ship_distance() * 2.0, GameWorld.starting_distance);\n\t\tIterator<GameObject> iter = this.ObjectsIter();\n\t\twhile (iter.hasNext()) {\n\t\t\tGameObject o = iter.next();\n\t\t\tif (o instanceof Projectile) {\n\t\t\t\tProjectile p = (Projectile) o;\n\t\t\t\tif (p.distance_to(p.owner()) > d) {\n\t\t\t\t\titer.remove();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "a7c822ee91866c563c97a9419f250885", "score": "0.45993176", "text": "public void discard(Comparable<T> val) {\n if (size == 0) {\n return;\n }\n Comparable<T> temp = heap[size - 1];\n heap[size - 1] = val;\n size--;\n modify(0, temp);\n }", "title": "" }, { "docid": "84082fdb306e9d4aaeec3ecbfcfe50e3", "score": "0.45965308", "text": "void scrubber(Vertex input) {\n communion.removeAll(Collections.singleton(input));\n }", "title": "" }, { "docid": "bf0cf756c6e5533c4a91d5a994e955fe", "score": "0.45951453", "text": "private void processCandidates(Tableau A, int enterCol, int[] leavecand, int numcand)\r\n {\r\n numcand = ProcessRHS(A, enterCol, leavecand, numcand);\r\n for (int j = 1; numcand > 1; j++)\r\n {\r\n if (j >= A.RHS()) /* impossible, perturbed RHS should have full rank */\r\n throw new RuntimeException(\"lex-minratio test failed\"); //TODO\r\n RecordStats(j, numcand);\r\n \r\n int var = A.vars().w(j);\r\n if (A.vars().isBasic(var))\r\n { /* testcol < 0: W(j) basic, Eliminate its row from leavecand */\r\n int wRow = A.vars().row(var);\r\n numcand = removeRow(wRow, leavecand, numcand); // TODO: revmove r\r\n }\r\n else\r\n { \t\t\t\t/* not a basic testcolumn: perform minimum ratio tests */\r\n int wCol = A.vars().col(var); // TODO: get s \t\t\t\t/* since testcol is the jth unit column */\r\n if (wCol != enterCol) { \t/* otherwise nothing will change */\r\n numcand = minRatioTest(A, enterCol, wCol, leavecand, numcand);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "f1e2166a3fa2f171d5d7f7874bbe3339", "score": "0.4593396", "text": "void removeProposedValue(Variable var);", "title": "" }, { "docid": "4f4718f9ff2c6a42d16849fb8e02ec60", "score": "0.45930067", "text": "private HashSet getConstraints(String text) {\r\n HashSet set = new HashSet();\r\n set.add(text);\r\n Iterator iter = set.iterator();\r\n boolean changed=true;\r\n String tmpstring;\r\n HashSet tmpset = new HashSet(); \r\n while(changed)\t{\r\n changed=false;\r\n tmpset.clear();\r\n iter = set.iterator();\r\n while ( iter.hasNext() ){ \r\n tmpstring= (String) iter.next();\r\n if (debug)\r\n System.out.println(\"getConstraints: \" + tmpstring);\r\n \r\n if (tmpstring.startsWith(\"[prime-\")) {\r\n if (debug)\r\n System.out.println(\" starts with [prime-\");\r\n tmpset=removePrime(tmpset,tmpstring);\r\n changed=true;\r\n }\r\n \r\n else if (tmpstring.startsWith(\"and(\")) { \r\n if (debug)\r\n System.out.println(\" starts with and(\");\r\n tmpset=removeAnd(tmpset,tmpstring);\r\n changed=true;\r\n }\r\n \r\n else if (tmpstring.startsWith(\"[\")) {\r\n if (debug)\r\n System.out.println(\" starts with [\");\r\n tmpset=removeList(tmpset,tmpstring);\r\n changed=true;\r\n }\r\n else\r\n tmpset.add(tmpstring);\r\n }\r\n if (changed)\r\n set= new HashSet(tmpset); \r\n }\r\n return set;\r\n }", "title": "" }, { "docid": "3b12fd0d20ca8d796c488fdbf752bd99", "score": "0.4590897", "text": "public void minSort(){\n\tProblemTwo ls=new ProblemTwo();\n\tint min=0;\n\tint minIndex=0;\n\tfor(int x=0; x<this.size();x++){\n\t\tmin=(int)this.get(x);\n\t\tminIndex=x;\t\t\n\t\tfor(int y=0;y<this.size();y++){\t\t\t\n\t\t\tif(min>(int)this.get(y)){\t\t\t\t\n\t\t\t\tmin=(int)this.get(y);\n\t\t\t\tminIndex=y;\t\t\t\t\n\t\t\t}\n\t\t}\t\n\t\t\n\t\tls.add(min);\t\t\n\t\tthis.remove(minIndex);\n\t\tx=0;\n\t\t//the maximum value will remain in the old list \n\t\t//so this case will add it to the new list and remove it from the old\n\t\tif(this.size()==1){\n\t\t\tls.add(this.get(0));\n\t\t\tthis.remove(0);\n\t\t}\n\t\t\n\t}\n\t//this method will put back all the list to the old list\n\tthis.addAll(ls);\n\t\n}", "title": "" }, { "docid": "5df41ef4bffd5dfd598af4192b716c22", "score": "0.45769614", "text": "public T remove() {\n\t\t\n\t\tBox a = this.min, b, temp;\n\t\tint mSize;\n\t\t\n\t\t//Si no hay elementos en el heap\n\t\tif (a == null)\n\t\t\treturn null;\n\t\t\n\t\tb = a.child;\n\t\t\n\t\t//Para cada hijo de a\n\t\tfor (mSize = a.degree; mSize > 0; mSize--) {\n\t\t\ttemp = b.next;\n\t\t\t\n\t\t\t//Saca b de la lista de hijos\n\t\t\tb.prev.next = b.next;\n\t\t\tb.next.prev = b.prev;\n\t\t\t\n\t\t\t//Agrega b en la lista raiz\n\t\t\tb.next = this.min;\n\t\t\tb.prev = this.min.prev;\n\t\t\tthis.min.prev = b;\n\t\t\tb.prev.next = b;\n\t\t\t\n\t\t\t//Asigna null al padre de b\n\t\t\tb.up = null;\n\t\t\tb = temp;\n\t\t}\n\t\t\n\t\t//Saca a de la lista raiz\n\t\ta.prev.next = a.next;\n\t\ta.next.prev = a.prev;\n\t\t\n\t\t//Si a (this.min) es el unico elemento del heap\n\t\tif (a == a.next) \n\t\t\tthis.min = null;\n\t\telse {\n\t\t\tthis.min = a.next;\n\t\t\t//Re ordenomas el heap\n\t\t\tthis.fixHeap();\n\t\t}\n\t\t\n\t\tthis.size--;\n\t\treturn a.info;\n\t}", "title": "" }, { "docid": "45be23f5fb244d00427506baca72b4d9", "score": "0.457295", "text": "void cleanCompareManager();", "title": "" }, { "docid": "d852bc027759320db5166cd6afb4fbc3", "score": "0.45678377", "text": "@Override\n public void changeConstraintLayout() {\n mNoTrailerConstraintSet.applyTo(mConstraintLayout);\n }", "title": "" }, { "docid": "860c5850296178a724a3aae6d478cace", "score": "0.45676", "text": "public void unsetPkUnobgage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PKUNOBGAGE$58, 0);\n }\n }", "title": "" }, { "docid": "4650407cfb1f14f26d2b0420057013a5", "score": "0.4563869", "text": "@Override\n public Entry<K, V> removeMin() {\n return entryList.remove();\n }", "title": "" }, { "docid": "72ec3500da5a577e37897b3ae8ab4e04", "score": "0.45632154", "text": "public void cleanProcedureSet(){\r\n iPlan.cleanProcedureSet();\r\n }", "title": "" }, { "docid": "fc361efe2b9c7787ba4f9dea74d300ee", "score": "0.4561763", "text": "void unsetValidated();", "title": "" }, { "docid": "1b84a4c91ebebd073b8a2631d5cbdcff", "score": "0.45608893", "text": "public static void unExclude(IResource resource, CPListElement entry, IRubyProject project, IProgressMonitor monitor) throws RubyModelException {\r\n\t\tif (monitor == null)\r\n\t\t\tmonitor= new NullProgressMonitor();\r\n\t\ttry {\r\n\t\t\tmonitor.beginTask(NewWizardMessages.ClasspathModifier_Monitor_RemoveExclusion, 10); \r\n\t\t\tString name= getName(resource.getFullPath(), entry.getPath());\r\n\t\t\tIPath[] excludedPath= (IPath[]) entry.getAttribute(CPListElement.EXCLUSION);\r\n\t\t\tIPath[] newExcludedPath= remove(new Path(completeName(name)), excludedPath, new SubProgressMonitor(monitor, 3));\r\n\t\t\tentry.setAttribute(CPListElement.EXCLUSION, newExcludedPath);\r\n\t\t} finally {\r\n\t\t\tmonitor.done();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8e677d80dc8cd60f0fb80aedbd248434", "score": "0.45607328", "text": "void unsetMinTC();", "title": "" }, { "docid": "3f8283b269096a9f946fdf0aafc066cf", "score": "0.45591748", "text": "public boolean remove(Primitive prim)\n {\n\t return true;\n }", "title": "" }, { "docid": "69cab7616f4854efcd1e39576a5c904c", "score": "0.45570675", "text": "public void decreasePriority(E e, W newPriority);", "title": "" }, { "docid": "a0b70d274aa9761dbdd21aaf105243fd", "score": "0.45539472", "text": "private void supprimerCheminDirection() {\n\t\tList<Chemin> listeCheminAux = new LinkedList<Chemin>();\n\t\t//Cas direction, on supprime tous les chemins commencant vers cette direction\n\t\tswitch(((PionPirate)tabPion[3]).getDirection())\n\t\t{\n\t\tcase 0: //Si le pirate n'a pas de direction (direction initiale)\n\t\t\tlisteCheminAux.addAll(this.listeCheminCase);\n\t\t\tbreak;\n\t\tcase 1: //Si le pirate s'est dirige au tour precedent vers le haut\n\t\t\tfor(Chemin c: this.listeCheminCase)\n\t\t\t{\n\t\t\t\tif(!(c.chemin.get(1).y-1==tabPion[3].y)) //Si le chemin ne part pas vers le bas\n\t\t\t\t{\n\t\t\t\t\tlisteCheminAux.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 2: //Si le pirate s'est dirige au tour precedent vers le bas\n\t\t\tfor(Chemin c: this.listeCheminCase)\n\t\t\t{\n\t\t\t\tif(!(c.chemin.get(1).y+1==tabPion[3].y)) //Si le chemin ne part pas vers le haut\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"cheminAjoute\");\n\t\t\t\t\tlisteCheminAux.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 3: //Si le pirate s'est dirige au tour precedent vers la droite\n\t\t\tfor(Chemin c: this.listeCheminCase)\n\t\t\t{\n\t\t\t\tif(!(c.chemin.get(1).x-1==tabPion[3].x)) //Si le chemin ne part pas vers la gauche\n\t\t\t\t{\n\t\t\t\t\tlisteCheminAux.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 4: //Si le pirate s'est dirige au tour precedent vers la gauche\n\t\t\tfor(Chemin c: this.listeCheminCase)\n\t\t\t{\n\t\t\t\tif(!(c.chemin.get(1).x+1==tabPion[3].x)) //Si le chemin ne part pas vers la droite\n\t\t\t\t{\n\t\t\t\t\tlisteCheminAux.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\tthis.listeCheminCase = listeCheminAux;\n\t}", "title": "" }, { "docid": "69c5d6b6ac0a0aa5a10826a5945ad3fd", "score": "0.45526412", "text": "public void removeCandidate(Atom atom, Atom candidate) {\n\n if (!candidates.get(atom).contains(candidate)) {\n System.out.println(\"Warning! \" + candidate + \" not in candidate list of atom \" + atom);\n System.exit(0);\n }\n\n // remove candidate\n candidates.get(atom).remove(candidate);\n log.registerRemoval(this, atom, candidate);\n }", "title": "" }, { "docid": "86d341d0436e1cc266675a8bee731083", "score": "0.45401222", "text": "public void removeAllbiboPagestart() {\n\t\tBase.removeAll(this.model, this.getResource(), PAGESTART);\n\t}", "title": "" }, { "docid": "54dfe8582089ccec325747d03aa9cdcc", "score": "0.45397568", "text": "public Node removeMin() {\n if (root == null)\n System.out.println(\"Heap is empty.\");\n\n --numOfNodes;\n\n final Node minElement = root;\n\n if (root.getNext() == root)\n root = null;\n else {\n root.getPrev().setNext(root.getNext());\n root.getNext().setPrev(root.getPrev());\n root = root.getNext();\n }\n if (minElement.getChild() == null) {\n final Node curr = minElement.getChild();\n do {\n curr.setParent(null);\n } while (curr != minElement.getChild());\n }\n root = mergeLists(root, minElement.getChild());\n if (root == null)\n return minElement;\n final List<Node> treeTable = new ArrayList<Node>();\n final List<Node> toVisit = new ArrayList<Node>();\n\n for (Node curr = root; toVisit.isEmpty() || toVisit.get(0) != curr; curr = curr.getNext())\n toVisit.add(curr);\n\n for (Node curr : toVisit) {\n while (true) {\n while (curr.getDegree() >= treeTable.size())\n treeTable.add(null);\n if (treeTable.get(curr.getDegree()) == null) {\n treeTable.set(curr.getDegree(), curr);\n break;\n }\n\n final Node other = treeTable.get(curr.getDegree());\n treeTable.set(curr.getDegree(), null);\n\n final Node min = (other.getPriority() < curr.getPriority()) ? other : curr;\n final Node max = (other.getPriority() < curr.getPriority()) ? curr : other;\n\n max.getNext().setPrev(max.getPrev());\n max.getPrev().setNext(max.getNext());\n\n max.setNext(max);\n max.setPrev(max);\n min.setChild(mergeLists(min.getChild(), max));\n\n max.setParent(min);\n max.setMarked(false);\n min.setDegree(min.getDegree() + 1);\n curr = min;\n }\n if (curr.getPriority() <= root.getPriority())\n root = curr;\n }\n return minElement;\n }", "title": "" }, { "docid": "326b8806ec45c0ef0b5ba59485f78a95", "score": "0.45387477", "text": "public void removeFittest(){\n double[] allFitnesses = new double[populationSize];\n int k =0;\n for(int i = 0; i<populationSize; i++) {\n allFitnesses[i] = individuals.get(i).getFitness();\n }\n\n double best_fit = 0;\n int parent_index = 0;\n for (int i = 0; i < populationSize; i++) {\n if (allFitnesses[i] > best_fit && allFitnesses[i] > 0) {\n best_fit = allFitnesses[i];\n parent_index = i;\n }\n }\n\n individuals.remove(parent_index);\n this.populationSize--;\n }", "title": "" }, { "docid": "c960a38c17077a182eefecfa7b7e0e03", "score": "0.45378664", "text": "public void sortPossiblyFaultyConstraintsByWeight() {\r\n Map<T, Float> sortedConstraints = Utilities.sortByValueDescending(getStatementWeights());\r\n setPossiblyFaultyStatements(new ArrayList<T>(sortedConstraints.keySet()));\r\n }", "title": "" }, { "docid": "f46384880560245cc9464cdf80012bf6", "score": "0.4535678", "text": "public void unsetRelated()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(RELATED$8, 0);\r\n }\r\n }", "title": "" }, { "docid": "d9a779774c581fcd57fb5816847d999d", "score": "0.45353642", "text": "void removeMonkey(Primate p) throws IllegalArgumentException;", "title": "" }, { "docid": "b177766b61075250c4cb3d91c6030f4c", "score": "0.45338893", "text": "private void heapifyRemove() {\n T temp;\n HeapNode<T> node = (HeapNode<T>) root;\n HeapNode<T> left = (HeapNode<T>) node.getLeft();\n HeapNode<T> right = (HeapNode<T>) node.getRight();\n HeapNode<T> next;\n if ((left == null) && (right == null)) {\n next = null;\n } else if (left == null) {\n next = right;\n } else if (right == null) {\n next = left;\n } else if (((Comparable) left.getElement()).compareTo(right.getElement()) < 0) {\n next = left;\n } else {\n next = right;\n }\n temp = node.getElement();\n while ((next != null) && (((Comparable) next.getElement()).compareTo(temp) < 0)) {\n // node.element = next.element;\n node.setElement(next.getElement());\n node = next;\n left = (HeapNode<T>) node.getLeft();\n right = (HeapNode<T>) node.getRight();\n if ((left == null) && (right == null)) {\n next = null;\n } else if (left == null) {\n next = right;\n } else if (right == null) {\n next = left;\n } else if (((Comparable) left.getElement()).compareTo(right.getElement()) < 0) {\n next = left;\n } else {\n next = right;\n }\n }\n // node.element = temp;\n node.setElement(temp);\n }", "title": "" }, { "docid": "5712db981e76b695f122684b8806cd03", "score": "0.45324442", "text": "private void removeMapping() {\n fPreIndex = null;\n pageIndex = null;\n usedPages = null;\n }", "title": "" } ]
30057d4563a1ccc7c0f64e2c80898bf4
Retrieves the block child.
[ { "docid": "369eac51a0511524ed05a01a83264450", "score": "0.6517302", "text": "@ASTNodeAnnotation.Child(name=\"block\")\n public Block getblock() {\n return (Block) getChild(2);\n }", "title": "" } ]
[ { "docid": "af711c1701e06c1ba8601c167ec14f33", "score": "0.6896416", "text": "public Block getBlock() {\n\t\treturn (Block) getChild(4);\n\t}", "title": "" }, { "docid": "80ce89e590efce0ce9b910800b181aca", "score": "0.68561745", "text": "public FHNode getChild() \n\t{\n\t\treturn child;\n\t}", "title": "" }, { "docid": "82ff9db0a95be0c13a933b1cc5fbbdc1", "score": "0.6683611", "text": "public Node getChild() {\n\t\treturn child;\n\t}", "title": "" }, { "docid": "adf4de7ec81ac004dbc8178559c9e738", "score": "0.66414845", "text": "public LGraph getChild()\r\n\t{\r\n\t\treturn child;\r\n\t}", "title": "" }, { "docid": "75a746a136250e0bb521538450ba1e2f", "score": "0.6596055", "text": "public final int getChild() {\n\t return child;\n\t }", "title": "" }, { "docid": "d1c24792b9e041b550eb5ab2dd09479f", "score": "0.657977", "text": "@SuppressWarnings({\"unchecked\", \"cast\"})\n public Block getBlock() {\n return (Block)getBlockOpt().getChild(0);\n }", "title": "" }, { "docid": "b3c49903850af7e7c88d628c6246e085", "score": "0.65252984", "text": "final CMNode getChild() {\n/* 59 */ return this.fChild;\n/* */ }", "title": "" }, { "docid": "4a25c8b78fee70d982f217c8d88703bc", "score": "0.63964623", "text": "@Override\n\tpublic Object getChild(int groupPosition, int childPosition) {\n\t\treturn childContent.get(parentHeaders.get(groupPosition));\n\t}", "title": "" }, { "docid": "445155291bfdaf4fb1c0a8848249f7e6", "score": "0.637748", "text": "public Block getblockNoTransform() {\n return (Block) getChildNoTransform(2);\n }", "title": "" }, { "docid": "a95297480f687a3550dbde491ea46dbf", "score": "0.6370747", "text": "@Override\n\tpublic Block getBlock() {\n\t\treturn this.block;\n\t}", "title": "" }, { "docid": "827729f6e5b769fd913f8529ea3d6009", "score": "0.6368938", "text": "public Glyph getChild() {\n return getChildren().get(0);\n }", "title": "" }, { "docid": "afb303cb7180ae0b0d2a92406be6054a", "score": "0.62937754", "text": "public BBlock getBBlock();", "title": "" }, { "docid": "39809e2133df02a706ddec4cdee3108c", "score": "0.6221283", "text": "@Nullable\n SNode getChild();", "title": "" }, { "docid": "103e1de55920ae651cb4d3714baa2a27", "score": "0.62185574", "text": "@Override\n public Area getParentArea(final Area childArea) {\n if (this.curBlockArea == null) {\n this.curBlockArea = new Block();\n this.curBlockArea.setPositioning(Block.ABSOLUTE);\n // set position\n this.curBlockArea.setXOffset(this.xOffset);\n // TODO: Check - itemIPD never set?\n this.curBlockArea.setIPD(this.itemIPD);\n // curBlockArea.setHeight();\n\n TraitSetter.setProducerID(this.curBlockArea, getPartFO().getId());\n\n // Set up dimensions\n final Area parentArea = this.parentLayoutManager\n .getParentArea(this.curBlockArea);\n final int referenceIPD = parentArea.getIPD();\n this.curBlockArea.setIPD(referenceIPD);\n // Get reference IPD from parentArea\n setCurrentArea(this.curBlockArea); // ??? for generic operations\n }\n return this.curBlockArea;\n }", "title": "" }, { "docid": "e01ad03ad296c8366ac16c5ce730f0a0", "score": "0.6169086", "text": "@Override\n public Group getBlock() {\n return block;\n }", "title": "" }, { "docid": "7277d7efa0f81941a9ce3f8fbc9f58a4", "score": "0.61559755", "text": "public Block getBlock() {\n return this.rail.state.railBlock();\n }", "title": "" }, { "docid": "60ff7ef01ac233970ffc8ca5c76cee04", "score": "0.6147137", "text": "public Block getBlock() \n\t{\n\t\treturn block;\n\t}", "title": "" }, { "docid": "11ab58713a54c0deb3fd87bb272f1448", "score": "0.6132086", "text": "public Block getBlock(){\n\t\treturn location.toLocation().getBlock();\n\t}", "title": "" }, { "docid": "f6d9fe69106c8e1853474832b19a4e23", "score": "0.60851574", "text": "@Override\n\tpublic Object getChild(int groupPosition, int childPosition) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f6d9fe69106c8e1853474832b19a4e23", "score": "0.60851574", "text": "@Override\n\tpublic Object getChild(int groupPosition, int childPosition) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "08c299f939cc224c3e5dad74a785befa", "score": "0.60643595", "text": "@Override\n\t\tpublic Object getChild(int arg0, int arg1) {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "db8f14a2cea172e2ba592d8e9ec50435", "score": "0.606334", "text": "public Block getBlock() {\r\n if (blocks.isEmpty())\r\n return new Block(TypeBlock.LEVEL0);\r\n return blocks.get(blocks.size() - 1).clone();\r\n }", "title": "" }, { "docid": "b7b5ab24a329765063173cb9657750c9", "score": "0.603925", "text": "public int getBlock() {\n \t\treturn mBlock;\n \t}", "title": "" }, { "docid": "78f75353a4611406f44a671a0793f1c7", "score": "0.6030638", "text": "public Block getBlockNoTransform() {\n\t\treturn (Block) getChildNoTransform(4);\n\t}", "title": "" }, { "docid": "5c17d0dec33a66a30ad3322a63a2b359", "score": "0.6029466", "text": "@Override\n\t\tpublic Object getChild(int groupPosition, int childPosition)\n\t\t{\n\t\t\treturn parents.get(groupPosition).getChildren().get(childPosition);\n\t\t}", "title": "" }, { "docid": "24c5ac9984f444c14d66cc67d66f9649", "score": "0.60258776", "text": "@Override\n public Object getChild(int groupPosition, int childPosition)\n {\n return parents.get(groupPosition).getChildren().get(childPosition);\n }", "title": "" }, { "docid": "24c5ac9984f444c14d66cc67d66f9649", "score": "0.60258776", "text": "@Override\n public Object getChild(int groupPosition, int childPosition)\n {\n return parents.get(groupPosition).getChildren().get(childPosition);\n }", "title": "" }, { "docid": "512bf3cd0f4dd7dac67e579b748ba61b", "score": "0.5997565", "text": "public Icon getChild() {\r\n return child;\r\n }", "title": "" }, { "docid": "f9c9aadea76fe02bd16a09739978dc72", "score": "0.5956595", "text": "TreeNode<?, ?> getChildNode() {\n\t\treturn this.child;\n\t}", "title": "" }, { "docid": "e3604a8bed57d0ddac5cdd4588f45abf", "score": "0.5952328", "text": "public Block getBlock();", "title": "" }, { "docid": "e3604a8bed57d0ddac5cdd4588f45abf", "score": "0.5952328", "text": "public Block getBlock();", "title": "" }, { "docid": "4609579b66890faf2f6e6437e6bb81b9", "score": "0.5939789", "text": "@Override\n\tpublic Object getChild(int arg0, int arg1) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "774667bd494ac8f78c4235463e0c01b3", "score": "0.59389925", "text": "public Block getBlock() {\n return blocks.isEmpty() ? null : blocks.get(index);\n }", "title": "" }, { "docid": "5f6ad948d87dc1645d3af2e530d669d3", "score": "0.59319293", "text": "public ExtendedBlock getCurrentBlock() {\n return ((DFSInputStream)in).getCurrentBlock();\n }", "title": "" }, { "docid": "858aa0531f215a8a05dc3d2db1bd63bd", "score": "0.59224486", "text": "public Node_3 getChild(int childNum){\n\t\treturn childArray[childNum];\n\t}", "title": "" }, { "docid": "40f1346cce793987bd028d50eab49481", "score": "0.59182006", "text": "public INode get_child_b() {\n return this.right;\n }", "title": "" }, { "docid": "9ed97a0fdeefc24fa59d73a997cd0da2", "score": "0.590711", "text": "public Node getChild( int child ){\r\n\t\t\t//check for valid index\r\n\t\t\tif (child >= children.size()){\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t//check for valid index\r\n\t\t\tif (child < 0){\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\treturn children.get(child);\r\n\t\t}", "title": "" }, { "docid": "f817e3c86c0a5c587ce0f6500e0960a3", "score": "0.5872557", "text": "@Override\n public Object getChild(int groupPosition, int childPosition) {\n return mItemSnapshots.get(groupPosition).getItem(childPosition).getValue(Item.class);\n }", "title": "" }, { "docid": "8c8dde5603248c7d512212619e75658c", "score": "0.5866765", "text": "@Deprecated\n\t\tpublic byte getBlock()\n\t\t{\n\t\t\treturn ChunkMaker.this.get(this.x, this.y, this.z);\n\t\t}", "title": "" }, { "docid": "e79a57bf606509fc46eaff77f25012c6", "score": "0.5843992", "text": "public Block getMaxHeightBlock() {\n // IMPLEMENT THIS\n \treturn this.maxHeightNode.getBlock();\n }", "title": "" }, { "docid": "e46238e8a01b00be85317c472c244d81", "score": "0.58367133", "text": "@Override\r\n public String getBlockId() {\r\n return this.blockId;\r\n }", "title": "" }, { "docid": "04970e59f9ea2ab8af0496ddf3dab112", "score": "0.5826751", "text": "public NDLRelationNode getChildByHandle(String childHandle) {\n\t\treturn children.get(childHandle);\n\t}", "title": "" }, { "docid": "e2f00dc12c5fe65f0bcc71dabddd8ab5", "score": "0.58184165", "text": "protected Block getBlock(){\r\n\t\treturn this.getWorld().getBlockAtPos(this.getBlockCentre());\r\n\t}", "title": "" }, { "docid": "08ff0fbafba05d10a797c3c012e9dcac", "score": "0.5813704", "text": "public ActionBlock getBlock() {\n\t\treturn block;\n\t}", "title": "" }, { "docid": "c8fa81f3996844aa6fa49f7a611dbc0b", "score": "0.5722987", "text": "public VirtualObject getChild(int pos) {\n if (pos >=0 && pos < this.children.size()) {\n return this.children.get(pos);\n }\n return null;\n }", "title": "" }, { "docid": "ad9788ce8283d033cf10099fa2845e30", "score": "0.5717294", "text": "public Block get_control() {\n\t\treturn this.control;\n\t}", "title": "" }, { "docid": "d08601eb850338b8b415c0dc2cf4d673", "score": "0.57152027", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n forge_abi.Type.BlockInfo, forge_abi.Type.BlockInfo.Builder, forge_abi.Type.BlockInfoOrBuilder> \n getBlockFieldBuilder() {\n if (blockBuilder_ == null) {\n blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n forge_abi.Type.BlockInfo, forge_abi.Type.BlockInfo.Builder, forge_abi.Type.BlockInfoOrBuilder>(\n getBlock(),\n getParentForChildren(),\n isClean());\n block_ = null;\n }\n return blockBuilder_;\n }", "title": "" }, { "docid": "cce12accd0bc8ead3bf169f8644841b6", "score": "0.57107097", "text": "private IndirectBlock getIndirectBlock(Nestable parent, int index) {\n \tboolean fresh = parent.get(index) == 0;\n \tif (fresh) {\n \t\t// parent must point to new block\n \t\tparent.set(index, freeMap.find());\n \t}\n \treturn new IndirectBlock(disk, parent.get(index), fresh);\n }", "title": "" }, { "docid": "68ec9a21bca664ad625d1986578e57c9", "score": "0.57093203", "text": "@Override\r\n\tpublic Graphic getChild() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "7b9876f33e5d1cbc3863a5bc67e6ef99", "score": "0.57012373", "text": "@Override\n public Object getChild(int groupPosition, int childPosition) {\n return list.get(groupPosition).get(childPosition);\n }", "title": "" }, { "docid": "3c5ef6847b6ff2405271fc72e313a099", "score": "0.56995565", "text": "public FileNode getChild(String childName) {\n if (this.isFile) throw new IllegalAccessError();\n\n for (FileNode node : children) {\n if (node.getName().equals(childName)) {\n return node;\n }\n }\n return null;\n }", "title": "" }, { "docid": "bc77b57cd5b4867aa2e5c14dc189550a", "score": "0.56951743", "text": "@Override\n public BuildingBlock findBlockUnder() {\n \tint loc = blist.indexOf(this);\n \tif(loc==0){\n \t\treturn null;\n \t}\n \telse{\n \t\treturn blist.get(loc-1);\n \t}\n }", "title": "" }, { "docid": "8efdbad01d16660e27ea6eb38f424222", "score": "0.5678121", "text": "@Override\r\n\tpublic Container getChild(int index) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8e22fefa33c3adf85b0a8d8f705f54e8", "score": "0.56742585", "text": "protected AbstractSyntaxTreeNode getChildAt(int index) {\n\t\tif (index>=0 && index<this.children.length) {\n\t\t\treturn this.children[index];\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6714cd72451327397f8c8bea77562979", "score": "0.56576633", "text": "@Override\n public List<IElement> getChild() {\n return this.child;\n }", "title": "" }, { "docid": "bd58fe127d7de5dc9d01052c2deac328", "score": "0.56465065", "text": "public Object getChild (int index) {\n\treturn children.elementAt (index);\n }", "title": "" }, { "docid": "c491ec9393502f62bf2e71ac6e611c11", "score": "0.56293637", "text": "@Override\n\t\tpublic InputStream retrieveSubBlock(Block block, SubBlock subBlock, long byteRangeStart) throws IOException {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "9a140c18c8f49aa996b0db472c9c98ed", "score": "0.56280583", "text": "private Buffer freeChild() {\n if(this.childA.isBufferFree()){\n return childA;\n }else if(this.childB.isBufferFree()){\n return childB;\n }\n return null;\n }", "title": "" }, { "docid": "c07ef7f30c60e037d7da6264f269ce68", "score": "0.5623316", "text": "Block getBlockFor(Side attachmentSide, Side direction);", "title": "" }, { "docid": "b13f8ca5381bdf490932280239cf9986", "score": "0.56119204", "text": "public toy.proto.Types.Block getCurr() {\n if (currBuilder_ == null) {\n return curr_ == null ? toy.proto.Types.Block.getDefaultInstance() : curr_;\n } else {\n return currBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "a924eb5d2c32e78c38019fe9db3c69ba", "score": "0.5609197", "text": "public Command getChild(String name) {\n name = manager.normalizeChildName(name);\n this.childLock.readLock().lock();\n try {\n Command get = this.children.get(name);\n try {\n return get == null ? this.children.get(getSimpleName(name)) : get;\n } catch (IllegalArgumentException e) {\n }\n return null;\n } finally {\n this.childLock.readLock().unlock();\n }\n }", "title": "" }, { "docid": "490aa8a2829d23b0c1154de13c449c5e", "score": "0.56054336", "text": "public String getBlock(short x, short y) {\n\t\tif (this.isOut(x, y)) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn this.blocks[this.getIndex(x, y)];\n\t}", "title": "" }, { "docid": "6eac34ebbeb6fde0998dfe40263039dc", "score": "0.56028795", "text": "public Block getLastBlock() {\n return this.lastRail.state.railBlock();\n }", "title": "" }, { "docid": "5eed19c3d39bb0adc10a950d2d5373f5", "score": "0.56024486", "text": "@Override\r\n\tpublic Container findChild(String name) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f51fe9fddffd2074f4348d25b18bd5c3", "score": "0.5602391", "text": "@Override\n\tpublic String getChild(int groupPosition, int childPosition) {\n\t\treturn data[groupPosition][childPosition];\n\t}", "title": "" }, { "docid": "615ad9badb7108367630a45f603d1db6", "score": "0.55950016", "text": "@Nullable\n @Override\n public SNode getChild() {\n return null;\n }", "title": "" }, { "docid": "b729048f1e71148d4534fb5fc8ae1754", "score": "0.55888844", "text": "@Override\n\tpublic Anscestral getChild(String id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d44fdc187ed539f572b60375d4720a8b", "score": "0.5583638", "text": "public XNode getChild(int i) {\n\t\tif ((i < 0) || (i >= this.children()))\n\t\t\treturn null;\n\n\t\treturn this.children.get(i);\n\t}", "title": "" }, { "docid": "7df4c4ec8a8096bcf7f879398c6adbce", "score": "0.55834347", "text": "public Block getBody() {\n return body;\n }", "title": "" }, { "docid": "1bdce1129a25e07a12d1083670200fe8", "score": "0.5565451", "text": "public int getMagicalBlock() {\r\n return this.magicalBlock;\r\n }", "title": "" }, { "docid": "513fedd0725e76891fc02f060119aa21", "score": "0.5552707", "text": "public WordTreeNode getChild(char c)\n {\n return children[ c ];\n }", "title": "" }, { "docid": "6c3d1177d530d4f0c90eab93fb4d5b32", "score": "0.5548504", "text": "public Block getCurrBlock() {\r\n return currBlock;\r\n }", "title": "" }, { "docid": "84a0256869b76e7810056ae142a9a46d", "score": "0.5537973", "text": "@Override\n public Container findChild(String name) {\n if (name == null) {\n return null;\n }\n synchronized (children) {\n return children.get(name);\n }\n }", "title": "" }, { "docid": "2c9a734b6e08bec44f5fd8817dcac821", "score": "0.55333716", "text": "gov.nih.nlm.ncbi.www.EMBLBlockDocument.EMBLBlock getEMBLBlock();", "title": "" }, { "docid": "c0071338570b3a206e8433d9f295a11a", "score": "0.55111563", "text": "public Target getBlock(final int col, final int row)\r\n {\r\n //check each block\r\n for (Target block : getCurrent())\r\n {\r\n //if location matches we have a block\r\n if (block.getCol() == col && block.getRow() == row)\r\n return block;\r\n }\r\n \r\n //there is no block here\r\n return null;\r\n }", "title": "" }, { "docid": "b1468cf5e818b4f41c406d212a7ece90", "score": "0.55069923", "text": "public Child getChild(long ID) {\r\n\t\tSQLiteDatabase db = this.getReadableDatabase();\r\n\r\n\t\tString selectQuery = \"SELECT * FROM \" + TABLE_CHILD + \" WHERE \"\r\n\t\t\t\t+ \"chid\" + \" = \" + ID;\r\n\r\n\t\tCursor c = db.rawQuery(selectQuery, null);\r\n\t\tChild ch = null;\r\n\t\t\r\n\t\tif (c != null)\r\n\t\t{\t\r\n\t\t\t//c.moveToFirst();\r\n\r\n\t\t\tif(c.moveToFirst())\r\n\t\t\t{\r\n\t\t\t\tch = new Child();\r\n\t\t\t\t\r\n\t\t\t\tch.setmID((c.getInt(c.getColumnIndex(CH_ID))));\r\n\t\t\t\tch.setmName((c.getString(c.getColumnIndex(CH_NAME))));\r\n\t\t\t\tch.setmContentUrl((c.getString(c.getColumnIndex(CH_CONTENTURL))));\r\n\t\t\t\tch.setmChildViewTime(c.getString(c.getColumnIndex(CH_CHILDVIEWTIME)));\r\n\t\t\t\tch.setmFilePath(c.getString(c.getColumnIndex(CH_FILEPATH)));\r\n\t\t\t\t//ch.setmIsAnimated(Boolean.parseBoolean(c.getString(c.getColumnIndex(CH_MISANIMATED))));\r\n\t\t\t\t//ch.setmAnimPath(c.getInt(c.getColumnIndex(CH_MANIMPATH)));\r\n\t\t\t\tch.setmTimeInterval(c.getInt(c.getColumnIndex(CH_TIMEINTERVAL)));\r\n\t\t\t\tch.setmType(c.getInt(c.getColumnIndex(CH_TYPE)));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tdb.close();\r\n\t\treturn ch;\r\n\t}", "title": "" }, { "docid": "d103e50dc14d5da7156b313e19685dbd", "score": "0.55068845", "text": "@Override\n\t\t\tpublic String getChild(int groupPosition, int childPosition) {\n\t\t\t\treturn mItems.get(mKeys[groupPosition])[childPosition];\n\t\t\t}", "title": "" }, { "docid": "f92e40736572fca942cb1dbba91608a4", "score": "0.55063623", "text": "public BlockRecord getBlockRecord();", "title": "" }, { "docid": "d0d34dc02c92eff4a373334ab9537faa", "score": "0.54926676", "text": "public T getLastChild() {\n return Util.getLast(this.children);\n }", "title": "" }, { "docid": "fb38feae0365f7ba539ee71c6566d6fe", "score": "0.54912734", "text": "Component getChild(int stateIndex);", "title": "" }, { "docid": "36653ab283ef73b2349c039a69cabf4d", "score": "0.54724073", "text": "public Tree<V> child(int index) {\n if (index < 0 || index >= children.size()) return null;\n else return children.get(index);\n }", "title": "" }, { "docid": "e27eefc0f79e9dd0bd5cc947954cc210", "score": "0.54626715", "text": "@NonNull public abstract View child();", "title": "" }, { "docid": "0b79b53b0b65f355fdfce90a17e01164", "score": "0.54626566", "text": "public Hex getChild(int i) {\r\n\t\treturn children[i];\r\n\t}", "title": "" }, { "docid": "477c851a4fed6cc3f5dab8ae94f8d537", "score": "0.54598236", "text": "@Override\n\tpublic Object getChild(int groupPosition, int childPosition) {\n\t\treturn toppingCatagories[groupPosition].catagories[childPosition];\n\t}", "title": "" }, { "docid": "b86e92732c1e923c85a26d09e574c58a", "score": "0.5454588", "text": "public HostingBlock getBlock(long blockId) throws PersistenceException {\r\n return null;\r\n }", "title": "" }, { "docid": "b3fd6f943c05b6e92e2d3f3c50d46685", "score": "0.5446084", "text": "public String getBlockID() {\n return BlockID;\n }", "title": "" }, { "docid": "1613143a52545811792732df7f2d56bc", "score": "0.54382443", "text": "public BinaryTree getRightChild() {\r\n if (ifEmpty) return null;\r\n else return rightChild;\r\n }", "title": "" }, { "docid": "87ca67cc8071d53d69d74c8e56e0ec96", "score": "0.54369867", "text": "public Block getMaxHeightBlock() {\n TreeNode<Snapshot> s = traverseDFS(_chain);\n return s.data._block;\n }", "title": "" }, { "docid": "c75df00af64450b0297ca87abb944542", "score": "0.5434529", "text": "public Object getValue(\n UIXRenderingContext context\n )\n {\n UIXRenderingContext parentContext = context.getParentContext();\n\n if (parentContext != null)\n {\n UINode baseNode = parentContext.getAncestorNode(0);\n\n if (baseNode != null)\n {\n if (_childName != null)\n {\n return baseNode.getNamedChild(parentContext, _childName);\n }\n else\n {\n return baseNode.getIndexedChild(parentContext, _childIndex);\n }\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "4b682c51a6af2a8e1d9cdb83c51113d0", "score": "0.54320997", "text": "forge_abi.Type.BlockInfo getBlock();", "title": "" }, { "docid": "fa260200aa16b4d3b31a9053aedeb070", "score": "0.5431086", "text": "public boolean getBlock() {\n return block_;\n }", "title": "" }, { "docid": "1b64631e27be016e76686605dc61a374", "score": "0.54254365", "text": "public boolean getBlock() {\n return block_;\n }", "title": "" }, { "docid": "7c6802ceda0c63ace7df8e83003f7890", "score": "0.54217154", "text": "public View getCurrentFirstVisibleChild() {\n int childCount = mRecyclerView.getChildCount();\n if (childCount > 0) {\n for (int i = 0; i < childCount; i++) {\n View child = mRecyclerView.getChildAt(i);\n if (isChildVisible(child)) {\n return child;\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "460bb2942224408985aa22822bf8cec0", "score": "0.54179794", "text": "public Block getMaxHeightBlock() {\n return MaxHeightNode.getBlock();\n }", "title": "" }, { "docid": "9ba8398c0ab330eafdf30078c291040c", "score": "0.54138106", "text": "public BasicBlock getBlock() {\n\t\treturn block;\n\t}", "title": "" }, { "docid": "1a0332a2762e4e7ce4fe568d36958678", "score": "0.54135394", "text": "public Object getChild(Object parent, int index) {\r\n return getRelationChildByIdx((Relation)parent, index);\r\n }", "title": "" }, { "docid": "8f5d4c79eaee002bb106663d09702029", "score": "0.53982645", "text": "public Block getBlockUnderfoot() {\n return blockUnderfoot;\n }", "title": "" }, { "docid": "a917a39ff340f22413ee0648e5f3a434", "score": "0.5393133", "text": "public abstract int getCurrentBlockHeight();", "title": "" }, { "docid": "d8cd289f4dec1e82ef35a964d06d2486", "score": "0.5391596", "text": "public Integer getBlockId() {\n return blockId;\n }", "title": "" }, { "docid": "821e6fad5577979b6fa37533833b9078", "score": "0.53908706", "text": "@Override\n public MetaItemBlock getItemBlock()\n {\n return itemBlock;\n }", "title": "" } ]
cf868a5298a25d94d139c3ee218d7674
reference to element stored at node Constructor with given element
[ { "docid": "9937cbc5a7a2dbcbb929246e8b453c67", "score": "0.5915633", "text": "public SLLNode(T element)\n\t{\n\t\tsetElement(element);\n\t\tsetNext(null);\n\t}", "title": "" } ]
[ { "docid": "64d4b94df9fead98161851a5c38907fb", "score": "0.6689932", "text": "public Node(Object element){\n elem = element;\n next = null;\n }", "title": "" }, { "docid": "b75e2889d4a6a0769aad2952a6216c78", "score": "0.6485469", "text": "Node(Object element) {\n\t\t\tvalue = element;\n\t\t}", "title": "" }, { "docid": "63418bebc4a24278a41c50f74b65b163", "score": "0.63236326", "text": "public Node(Object element, String col_name) {\n\t\tthis.element = element;\n\t\tthis.col_name = col_name;\n\t}", "title": "" }, { "docid": "ba6b82eb0d517dff002febf99b8aa245", "score": "0.6077818", "text": "public XMLElement(Element element) {\r\n\t\tthis.element = element;\r\n\t}", "title": "" }, { "docid": "192e663ebb49106c88a6683c3eda0979", "score": "0.59812224", "text": "private Node createRefChildNode(String tagName, Object element) throws XMITransformException {\n // append it\n Element docRef = document.createElement(tagName);\n // set the xmi.idref attribute and append it\n String id = caller.resolveID(element);\n // if fail to get the id for this element, an XMITransformException is thrown\n if (id == null) {\n throw new XMITransformException(\"Fail to resolve the id.\");\n }\n docRef.setAttribute(\"xmi.idref\", id);\n return docRef;\n }", "title": "" }, { "docid": "dc5a25f625f7220c550748415df8e4a8", "score": "0.5920426", "text": "Element createElement();", "title": "" }, { "docid": "dc5a25f625f7220c550748415df8e4a8", "score": "0.5920426", "text": "Element createElement();", "title": "" }, { "docid": "26e7d2e88b6e3f04a6263ebf273e9b52", "score": "0.59146124", "text": "Object element();", "title": "" }, { "docid": "26e7d2e88b6e3f04a6263ebf273e9b52", "score": "0.59146124", "text": "Object element();", "title": "" }, { "docid": "7e1a663365309b39ef8def3d446e2216", "score": "0.5899299", "text": "Element getElement();", "title": "" }, { "docid": "b4382c40795afade6b19761ffe4ca7ce", "score": "0.58718514", "text": "public Node(int weight, char element) {\r\n this.weight = weight;\r\n this.element = element;\r\n }", "title": "" }, { "docid": "7715ab15d75a4373f75d81bfaaf26ea7", "score": "0.57925427", "text": "abstract AbstractNode getElement();", "title": "" }, { "docid": "9889b7c28ecc278e41087f3cad044f69", "score": "0.5767773", "text": "protected Element() {\n//$Section=DefaultConstructor$ID=417A4819000F$Preserve=yes\n//$Section=DefaultConstructor$ID=417A4819000F$Preserve=no\n }", "title": "" }, { "docid": "f78343695d1ae45e9d054879e377b672", "score": "0.5722963", "text": "protected abstract E newElement(String w);", "title": "" }, { "docid": "ab1d4b9cb58ba45c542b22df6948f16e", "score": "0.5706919", "text": "private Node createNewNode(T element){\n Node node = new Node();\n node.element = element;\n node.next = null;\n return node;\n }", "title": "" }, { "docid": "6fc5f572ad4387020d03971e95fc3672", "score": "0.5700692", "text": "public AVLNode(E element)\n {\n left = null;\n right = null;\n sumOfChild = 0;\n data = element;\n height = 0;\n }", "title": "" }, { "docid": "ea6eecaad006111b5f7ff18b975d1b0d", "score": "0.56536126", "text": "public PfTreeImpl(WebElement element) {\n super(element);\n\n }", "title": "" }, { "docid": "fb408b608db0b34fc0f53e180605f1c8", "score": "0.5642633", "text": "public LinearNode(T elem) {\n next = null;\n element = elem;\n }", "title": "" }, { "docid": "86fc22e896f4e01114c9be38ee813b51", "score": "0.5635576", "text": "public LinkedNode(T element){\n\t\tthis.element = element;\n\t\tedges= new ArrayList<Edge<T>>();\n\t}", "title": "" }, { "docid": "91019fe7e9d12b1bbb199e72fe48a18a", "score": "0.5616416", "text": "Element getOrCreateElement();", "title": "" }, { "docid": "f6d5c352b531a264f5b22bc6dbaa0f2a", "score": "0.5599264", "text": "private Primitive parseElement(DOMElement element) throws XMLParseException {\n Primitive result;\n String elementName = element.GetTagName();\n if (elementName.equals(\"circle\")) {\n result = buildCircle(element);\n }\n else if (elementName.equals(\"triangle\")) {\n result = buildTriangle(element);\n }\n else if (elementName.equals(\"composite\")) {\n result = buildComposite((DOMNode)element);\n }\n else if(elementName.equals(\"rectangle\")){\n result = buildRectangle(element);\n }\n else {\n throw new XMLParseException(\"Not valid component : \" + elementName);\n }\n return result;\n }", "title": "" }, { "docid": "8620f2964a5834524275e153479edfaf", "score": "0.55740017", "text": "public T caseElement(Element object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "15ca959d420a5e47b550cb880978cf48", "score": "0.55541503", "text": "public Entry (E element, Entry<E> parent) \n {\n this.element = element;\n this.parent = parent;\n }", "title": "" }, { "docid": "4e9a65ee73527dcde1af86900442fa43", "score": "0.55446494", "text": "public String getElement(){ return element; }", "title": "" }, { "docid": "1c616ebbb7339ca9f9c5b49be3b95c40", "score": "0.55426127", "text": "public Tree(int weight, char element) {\r\n root = new Node(weight, element);\r\n }", "title": "" }, { "docid": "d31b1ee7416cf904d4790242508b6ef3", "score": "0.5526452", "text": "public Container(T element) {\n\t\tthis.elements = new Object[] { element };\n\t}", "title": "" }, { "docid": "eeb7b89adfe01bbb96db3207beb1e3a5", "score": "0.54699737", "text": "public ConstructorElementImpl (final Member data) {\n super(data);\n }", "title": "" }, { "docid": "29d7d92f411f8ae989bbaea820800063", "score": "0.54528487", "text": "private Node createChildNode(Object element) throws XMITransformException {\n // append it\n try {\n // create a new XML node\n Node node = caller.transform(element, document);\n if (node == null) {\n throw new XMITransformException(\"Fail to transform the element to its XML representation.\");\n }\n return node;\n } catch (UnknownElementException ue) {\n // wrap UnknownElementException to an XMITransformException and throw it\n throw new XMITransformException(\"There is no xmi-id defined for the requested element object : \"\n + ue.getElement(), ue);\n }\n }", "title": "" }, { "docid": "ce1e67358bca92616780e8270a0afe41", "score": "0.5446539", "text": "GXLGraphElement(String elementName, Element element) {\n\t\tsuper(elementName, element);\n\t\tconnections = new Vector();\n\t}", "title": "" }, { "docid": "9ecd941dce7d92c74253c25edd7a6f8d", "score": "0.543585", "text": "public Object getElement();", "title": "" }, { "docid": "9b4d3491e390634c7639831e207f488f", "score": "0.5432858", "text": "public Element(E info, T key, Element parent) {\n this.info = info;\n this.key = key;\n this.parent = parent;\n this.right = null;\n this.left = null;\n this.red = true;\n }", "title": "" }, { "docid": "e08c2bbe625e5b9a7c33f88e2ee0625e", "score": "0.54233104", "text": "private Primitive buildCircle(DOMElement element) {\n String paramX = element.GetAttribute(\"x\");\n int x = paramX == null ? 0 : Integer.parseInt(paramX);\n String paramY = element.GetAttribute(\"y\");\n int y = paramY == null ? 0 : Integer.parseInt(paramY);\n String paramWidth = element.GetAttribute(\"width\");\n int width = paramWidth == null ? 0 : Integer.parseInt(paramWidth);\n String paramHeight = element.GetAttribute(\"height\");\n int height = paramHeight == null ? 0 : Integer.parseInt(paramHeight);\n Color paramColor = getColor(element.GetAttribute(\"color\"));\n Color color = paramColor == null ? Color.BLACK : paramColor;\n return new Circle(x, y, width, height, color);\n }", "title": "" }, { "docid": "ac8f4edd7668f8b081467ef49e936e27", "score": "0.5404445", "text": "public Element(T data) {\r\n\t\tthis.data = data;\r\n\t}", "title": "" }, { "docid": "e81410822a31beef56bcac3668d14fa8", "score": "0.54042786", "text": "public LinearNode(T elem) {\n\t\t next = null;\n\t\t last = null;\n\t\t element = elem;\n\t }", "title": "" }, { "docid": "4283399d460889bb8cee6d925e35cf8e", "score": "0.5383984", "text": "protected ENode getCreateNode(Object element_p) {\n ENode result = _cache.get(element_p);\n if (result == null) {\n result = EGraphsFactory.eINSTANCE.createENode();\n result.setElement(element_p.toString());\n _state.getContents().add(result);\n _cache.put(element_p, result);\n }\n return result;\n }", "title": "" }, { "docid": "3db432cf2c29a21c2c351f0168e18839", "score": "0.53825474", "text": "public Object caseElement(Element object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "cb75230891d21580e556a52d37f83c65", "score": "0.53805214", "text": "public Vertex(Object element){\n this(element, Graph.NULL_INDEX);\n }", "title": "" }, { "docid": "02995bda6795d9f5b437344290da6fb0", "score": "0.53753304", "text": "private Node<T> getReferenceTo(T arg) {\n if (arg == null) {\n return null;\n }\n Node<T> current = this.firstNode;\n while (current != null) {\n T dat = current.data();\n if (dat.equals(arg)) {\n return current;\n }\n current = current.next();\n }\n return null;\n }", "title": "" }, { "docid": "a8c9a7c32d43c124838b2f575db2e0db", "score": "0.5353093", "text": "public LinkedBinaryTree(T element) {\n count = 1;\n root = new BinaryTreeNode<T>(element);\n }", "title": "" }, { "docid": "763c19be61c9a2f5e9cbce7c8aa959d3", "score": "0.5352389", "text": "protected Element(Block block, Token token)\n {\n this.block = block;\n this.tokFirst = token;\n }", "title": "" }, { "docid": "5d0fadbec6c4c68ac140d47513a867c9", "score": "0.53473526", "text": "public final native Element node()/*-{\n\t\treturn this.node();\n\t}-*/;", "title": "" }, { "docid": "52c837f18bd7ee53bae19e5ab7beaa93", "score": "0.53353417", "text": "public Vertex(Object element, int index){\n this.element = element;\n this.index = index;\n }", "title": "" }, { "docid": "403f76a9e20c8b190328512e46950f46", "score": "0.5330936", "text": "public BinaryNode(T initelement) {\r\n\t\t\telement = initelement;\r\n\t\t\tleft = null;\r\n\t\t\tright = null;\r\n\t\t}", "title": "" }, { "docid": "c40a6ff41c0154aed012f7f0b7767a47", "score": "0.53160906", "text": "private static void setSingleElement(Element tokenElement, String elemName, String curNS, String value) {\n if (value != null) {\n Element cur = new Element(elemName, curNS);\n cur.appendChild(value);\n tokenElement.appendChild(cur);\n }\n }", "title": "" }, { "docid": "0f7023501b0e40b900059fa43c6a336c", "score": "0.5312976", "text": "protected abstract T createElement(Node node);", "title": "" }, { "docid": "538b2c84da9e62fba41b1dbef47d8b46", "score": "0.53088254", "text": "public void setElement(Element element) {\n this.element = element;\n }", "title": "" }, { "docid": "9624bcc91490e62d6b3566eca32d760d", "score": "0.53037924", "text": "public abstract String element();", "title": "" }, { "docid": "a1abe3538e5b2d04565a719c2c92f800", "score": "0.527283", "text": "Pos(Elem refElem){\n this(-1, refElem);\n }", "title": "" }, { "docid": "ed3a0735792f1a0f1702591839cbf53f", "score": "0.5240935", "text": "public XCardElement(Element element) {\n\t\tthis(element, VCardVersion.V4_0);\n\t}", "title": "" }, { "docid": "6f5e8ab42fca230a88a0e4a7cea3aed5", "score": "0.5240645", "text": "public abstract void init(ElementType element, ResultSet resultSet);", "title": "" }, { "docid": "127bc0daf19b1c71dcc3ff07ae4e49e4", "score": "0.523394", "text": "private Primitive buildComposite(DOMNode element) throws XMLParseException {\n Composite composite = new Composite();\n ArrayList<DOMElement> nodeList= element.GetAllChildren();\n for (int i = 0; i < nodeList.size(); i++) {\n Primitive p = parseElement(nodeList.get(i));\n if (p != null) {\n composite.addPrimitive(p);\n\n }\n }\n return composite;\n }", "title": "" }, { "docid": "d4f2a2156170e2e562c040749549cd63", "score": "0.5228804", "text": "public GenericListNode(T element) {\r\n\t\tdata = element;\r\n\t\tnext = null;\r\n\t}", "title": "" }, { "docid": "9e16bcbb9c09e230fb366c95b37f2a3f", "score": "0.5226175", "text": "public String getElement()\r\n/* 33: */ {\r\n/* 34: 85 */ return this.element;\r\n/* 35: */ }", "title": "" }, { "docid": "576c7ff5fc3adbd7d829f95647ed0a66", "score": "0.5221957", "text": "Node getDocumentElement();", "title": "" }, { "docid": "c96ac304c1e6217e7003fcf1ea2cf40f", "score": "0.5213579", "text": "public Tree loadTree(Element element) {\r\n\r\n\t\treturn new Tree(Integer.parseInt(element.getAttribute(\"id\").getValue()));\r\n\t}", "title": "" }, { "docid": "9b92cbf08dc3e203ee9adcbb224eb01c", "score": "0.5210899", "text": "public void setElement(T elem) {\n element = elem;\n }", "title": "" }, { "docid": "0508303a73a10ce767e483857864946d", "score": "0.5209809", "text": "public Range(Element element)\n {\n\tsetRange(element);\n }", "title": "" }, { "docid": "c684045a81b27872990f11e937bb25f5", "score": "0.5207764", "text": "public void selectElement(CoCatalogElementIF element);", "title": "" }, { "docid": "6adee739ad39f45600e7e1517e5afc6d", "score": "0.52018434", "text": "QName getElement();", "title": "" }, { "docid": "4cb92fbd3e68c0496d629edebd86b232", "score": "0.51910204", "text": "protected Element(Block block, Token tokFirst, Token tokLast)\n {\n this.block = block;\n this.tokFirst = tokFirst;\n this.tokLast = tokLast;\n }", "title": "" }, { "docid": "ba76bd14e6106c4a230fd40c7ede7b51", "score": "0.51882225", "text": "public SingleElementRule(String element) {\n this.element = element;\n }", "title": "" }, { "docid": "d3c7e7eeece3af1ba7660e6582159c1e", "score": "0.5187742", "text": "public void setElement(String newElem){ element = newElem; }", "title": "" }, { "docid": "5336eafcd597f3f8b2b7c6141df1d8e3", "score": "0.5186204", "text": "public Constant(final Element constant) {\n myConstant = constant;\n }", "title": "" }, { "docid": "9487b62730a2673e332c3d7c5d98dc60", "score": "0.51822466", "text": "public void add(final Element arg0) {\n \n }", "title": "" }, { "docid": "9487b62730a2673e332c3d7c5d98dc60", "score": "0.51822466", "text": "public void add(final Element arg0) {\n \n }", "title": "" }, { "docid": "cd23642c6e4b360a483d8208bc6e94c7", "score": "0.5169138", "text": "@Test\n public void testSetElement()\n {\n Node<Employee> node = new Node<Employee>();\n \n Employee emp = new Employee(123);\n \n node.setElement(emp);\n \n assertEquals(emp, node.getElement());\n }", "title": "" }, { "docid": "8ff3c2b69d26e3992aa7c1bfd3b5c8a8", "score": "0.51526856", "text": "public XMLElement () {\n }", "title": "" }, { "docid": "a494e64fbed3516b945ecaa3d191f77e", "score": "0.51404804", "text": "public Node()\n\t {\telement = -1;\n \t\tleftChild = null;\n \t\trightChild = null;\n \t\tparent = null;\n \t\theight = 0;\n \t\tcolor = 0;\t\n\t }", "title": "" }, { "docid": "d786166fbe5d57d8f4c800cdf363fb65", "score": "0.51369125", "text": "public Review(Element element) {\n super(element);\n }", "title": "" }, { "docid": "755640721676aa74ee92b139c6ee7b1e", "score": "0.5134275", "text": "public void newElement() {\n }", "title": "" }, { "docid": "4ddb385d5f0a9489446f59fe15a9f9ce", "score": "0.5131432", "text": "public Element addElement(final String arg0) {\n return null;\n }", "title": "" }, { "docid": "4ddb385d5f0a9489446f59fe15a9f9ce", "score": "0.5131432", "text": "public Element addElement(final String arg0) {\n return null;\n }", "title": "" }, { "docid": "df06d7f2ad6cac011862505acb40d803", "score": "0.5112738", "text": "protected abstract String getElementName(Object element);", "title": "" }, { "docid": "c40ed208f66bf204991a284651239236", "score": "0.51062775", "text": "public T caseNamedElementReference(NamedElementReference object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "67b573ab925b1c8ea67fe472c3f8fd27", "score": "0.51029414", "text": "public void setElement(T element)\n\t{\n\t\tthis.element = element;\n\t}", "title": "" }, { "docid": "6affd09643918457ae8b9ef9d20253d1", "score": "0.510172", "text": "public E element();", "title": "" }, { "docid": "6affd09643918457ae8b9ef9d20253d1", "score": "0.510172", "text": "public E element();", "title": "" }, { "docid": "1071aee590518f8f14432fc03489132a", "score": "0.50914276", "text": "private Element createElement( String task )\n throws DocumentException\n {\n SAXReader reader = new SAXReader();\n Document document = reader.read( new StringReader( task ) );\n return (Element) document.getRootElement().clone();\n }", "title": "" }, { "docid": "4ee8a169c95b413507f1c559f9d6e00a", "score": "0.50857073", "text": "private Primitive buildTriangle(DOMElement element) {\n String paramX = element.GetAttribute(\"x\");\n int x = paramX == null ? 0 : Integer.parseInt(paramX);\n String paramY = element.GetAttribute(\"y\");\n int y = paramY == null ? 0 : Integer.parseInt(paramY);\n String paramWidth = element.GetAttribute(\"width\");\n int width = paramWidth == null ? 0 : Integer.parseInt(paramWidth);\n String paramHeight = element.GetAttribute(\"height\");\n int height = paramHeight == null ? 0 : Integer.parseInt(paramHeight);\n Color paramColor = getColor(element.GetAttribute(\"color\"));\n Color color = paramColor == null ? Color.BLACK : paramColor;\n return new Triangle(x, y, width, height, color);\n }", "title": "" }, { "docid": "ff0e6a6575cdb72f58aad4bc61663f81", "score": "0.50813246", "text": "public T element();", "title": "" }, { "docid": "276232c9d21f14f67c57a8cb9d6abbaf", "score": "0.50797206", "text": "public Node(TNode currentElement, Node nextNode) {//constructor for the class node\r\n\t\tthis.nextNode = nextNode; //assign value to nextNode\r\n\t\tthis.currentElement = currentElement; //assign value to currentElement\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c8ed1670241120bf0c49d7f178e834af", "score": "0.50624466", "text": "public Element(XmlDocument document, StartElement startElement) {\n\t\tthis.document = document;\n\t\tthis.startElement = startElement;\n\t\tthis.children = new ArrayList<Element>();\n\t}", "title": "" }, { "docid": "c7aea9fdc9a2a0f8f65aa537f25846ea", "score": "0.5052203", "text": "public void setElement(T element) {\n\n this.element = element;\n }", "title": "" }, { "docid": "e486b43d50028d0d540a20f40ec1642f", "score": "0.5047751", "text": "public ReferenceType getTargetElement();", "title": "" }, { "docid": "2328ae4bf1a803acde6fb2f81291589b", "score": "0.50441104", "text": "public PDAStack(Element el)\n{ \n\tm_elements = new Vector<Vector<Element>>(1); \n\tVector<Element> elems = new Vector<Element>(1);\n\telems.addElement(el);\n\tm_elements.addElement(elems);\n}", "title": "" }, { "docid": "a17c1b8c95d8f48938b7e55b641d8dc6", "score": "0.50285715", "text": "GXLType(Element element) {\n\t\tsuper(GXL.TYPE, element);\n\t\tcreateChildren(element);\n\t}", "title": "" }, { "docid": "1860974953d72c98353b69fb18a48939", "score": "0.5016358", "text": "@Test\n public void testWithArgConstructor() throws NoSuchFieldException, ClassCastException, IllegalArgumentException, IllegalAccessException\n {\n //Needed by multiple calls, so declare once.\n Field privateField;\n \n Employee employeeCurrent = new Employee(111);\n Node<Employee> nodePre = new Node<Employee>(new Employee(222), null, null);\n Node<Employee> nodeNext = new Node<Employee>(new Employee(333), null, null);\n \n //node used for testing\n Node<Employee> nodeCurrent = new Node<Employee>(employeeCurrent, nodePre, nodeNext); \n \n //Extract and test element field\n privateField = Node.class.getDeclaredField(\"element\");\n privateField.setAccessible(true);\n assertEquals(employeeCurrent, privateField.get(nodeCurrent));\n \n //Extract and test previous field\n privateField = Node.class.getDeclaredField(\"previous\");\n privateField.setAccessible(true);\n assertEquals(nodePre, privateField.get(nodeCurrent));\n \n //Extract and test next field\n privateField = Node.class.getDeclaredField(\"next\");\n privateField.setAccessible(true);\n assertEquals(nodeNext, privateField.get(nodeCurrent));\n \n }", "title": "" }, { "docid": "f3e8b8f592785cc8707d50188cc49b5d", "score": "0.5015976", "text": "Node(Tree1 left, int element, Tree1 right) {\n if (left == null || right == null) {\n throw new IllegalArgumentException();\n }\n this.element = element;\n this.left = left;\n this.right = right;\n }", "title": "" }, { "docid": "ba5cf69d9861d1de8cc0ba9167089e37", "score": "0.5007171", "text": "public abstract Node getElement(int d);", "title": "" }, { "docid": "fd4890518e876d41d46bb0281cebee00", "score": "0.5003543", "text": "public void setParent(final Element arg0) {\n \n }", "title": "" }, { "docid": "fd4890518e876d41d46bb0281cebee00", "score": "0.5003543", "text": "public void setParent(final Element arg0) {\n \n }", "title": "" }, { "docid": "88a62d0b4d049824742bc3458ddd404f", "score": "0.49824536", "text": "public void setElement(E element) {\n this.element = element;\n }", "title": "" }, { "docid": "06d274ec6fcf720e06402b5bff6ad82c", "score": "0.4980925", "text": "protected TValElement() {\n }", "title": "" }, { "docid": "7bda08e6a9e10145d1272dd50b781454", "score": "0.4980697", "text": "public XCardElement(Element element, VCardVersion version) {\n\t\tthis.document = element.getOwnerDocument();\n\t\tthis.element = element;\n\t\tthis.version = version;\n\t\tnamespace = version.getXmlNamespace();\n\t}", "title": "" }, { "docid": "84e43ac47a32f2e37491bb8b1000ac13", "score": "0.4979825", "text": "public T getElement()\r\n\t{\r\n\t\treturn element;\r\n\t}", "title": "" }, { "docid": "9a5847a9cc6ca122596b60f10cd4a8b8", "score": "0.49791977", "text": "public ObjectPageStructureElement(int deepness, Object element) {\n\t\tsuper(deepness);\n\t\tthis.element = element;\n\t}", "title": "" }, { "docid": "670bfb490c8bd7ed9253dcc4a7704a14", "score": "0.49781004", "text": "public void setRoot (T element);", "title": "" }, { "docid": "eac83e27073a49111552a03d2d09e9ad", "score": "0.49745226", "text": "InitialNodeReference createInitialNodeReference();", "title": "" }, { "docid": "247a6a966b1788c70616bd581392d7a2", "score": "0.4959165", "text": "public Node node(final int arg0) {\n return null;\n }", "title": "" }, { "docid": "247a6a966b1788c70616bd581392d7a2", "score": "0.4959165", "text": "public Node node(final int arg0) {\n return null;\n }", "title": "" } ]
ef1d96a466a60b5d8f549febaf2bda97
receives a sentence and a class and checks if the class has a matching annotation. If yes, returns a singleton map from the right method to the matching parameters, otherwise an empty map. find the right method by iterating over the collection of methods of the class, with the same annotation as the first word of the sentence.
[ { "docid": "7fcdbcda5c3648e44c1ffc7bb32548f9", "score": "0.73617244", "text": "protected HashMap<Method,ArrayList<ArrayList>> getMethod(ArrayList<String> sentence, Class<?> testClass){\n String keyword = sentence.get(0);\n Method[] methods = testClass.getDeclaredMethods();\n List<Method> filtered = new ArrayList<>();\n HashMap<Method, ArrayList<ArrayList>> right_method = new HashMap<>();\n if(keyword.equals(\"Given\")) {\n filtered = Arrays.stream(methods).filter(m -> m.isAnnotationPresent(Given.class)).collect(Collectors.toList());\n for( Method m: filtered){\n ArrayList<ArrayList> temp_params = compareGiven(sentence, m.getAnnotation(Given.class));\n if(!(temp_params.isEmpty())){\n m.setAccessible(true);\n right_method.put(m,temp_params);\n break;\n }\n }\n return right_method;\n }\n else if(keyword.equals(\"When\")) {\n filtered = Arrays.stream(methods).filter(m -> m.isAnnotationPresent(When.class)).collect(Collectors.toList());\n for( Method m: filtered){\n ArrayList<ArrayList> temp_params = compareWhen(sentence, m.getAnnotation(When.class));\n if(!(temp_params.isEmpty())){\n m.setAccessible(true);\n right_method.put(m,temp_params);\n break;\n }\n }\n return right_method;\n }\n else {\n filtered = Arrays.stream(methods).filter(m -> m.isAnnotationPresent(Then.class)).collect(Collectors.toList());\n for( Method m: filtered){\n ArrayList<ArrayList> temp_params = compareThen(sentence, m.getAnnotation(Then.class));\n if(!(temp_params.isEmpty())){\n m.setAccessible(true);\n right_method.put(m,temp_params);\n break;\n }\n }\n return right_method;\n }\n }", "title": "" } ]
[ { "docid": "9e6fef447f7ce1e6e8ab6708a7076840", "score": "0.57792425", "text": "public interface AnnotationMatcher {\n public <T extends Annotation> T match(Class<T> clazz, Method method);\n}", "title": "" }, { "docid": "1b5aaa32bd659a01dafb1dfb529ed684", "score": "0.57703054", "text": "@Override protected TreeMapper findMethodMapping(S6SolutionSet ss,MethodDeclaration md,\n\t\t\t\t\t\t S6Request.MethodSignature ms,\n\t\t\t\t\t\t S6Solution sol)\n{\n if (JavaAst.checkMethodSignature(md,ms,S6SignatureType.PARAMETERS)) return null;\n if (!JavaAst.checkMethodSignature(md,ms,S6SignatureType.RETURN_EXCEPTIONS)) return null;\n\n int mds = md.getModifiers();\n if (!Modifier.isStatic(mds)) return null;\n if (ms.isStatic()) return null;\n\n JcompTyper jt = JavaAst.getTyper(md);\n\n String cnm = null;\n if (ss.getSearchType() != S6SearchType.METHOD) {\n ASTNode an = md;\n while (an != null && !(an instanceof AbstractTypeDeclaration)) an = an.getParent();\n if (an == null) return null;\n AbstractTypeDeclaration tan = (AbstractTypeDeclaration) an;\n cnm = JavaAst.getJavaTypeName(tan);\n }\n else {\n JavaContext ctx = JavaAst.getS6Context(md);\n if (ctx == null) return null;\n String cpkg = ss.getRequest().getPackage();\n if (cpkg == null) cpkg = ctx.getContextPackage();\n String ccls = ctx.getContextClass();\n if (ccls == null) return null;\n if (cpkg == null) cnm = ccls;\n else cnm = cpkg + \".\" + ccls;\n }\n if (cnm == null) return null;\n\n JcompSymbol param = null;\n SingleVariableDeclaration paramdecl = null;\n HashSet<SingleVariableDeclaration> used = new HashSet<SingleVariableDeclaration>();\n\n for (Iterator<?> it = md.parameters().iterator(); it.hasNext(); ) {\n SingleVariableDeclaration svd = (SingleVariableDeclaration) it.next();\n JcompType t2 = JavaAst.getJavaType(svd);\n if (t2.getName().equals(cnm)) {\n\t used.add(svd);\n\t param = JavaAst.getDefinition(svd);\n\t paramdecl = svd;\n\t break;\n }\n }\n if (param == null) return null;\n\n for (String ptyp : ms.getParameterTypeNames()) {\n JcompType t1 = jt.findSystemType(ptyp);\n if (t1 == null) return null;\n boolean fnd = false;\n for (Iterator<?> it1 = md.parameters().iterator(); !fnd && it1.hasNext(); ) {\n\t SingleVariableDeclaration nvd = (SingleVariableDeclaration) it1.next();\n\t if (used.contains(nvd)) continue;\n\t JcompType t2 = JavaAst.getJavaType(nvd);\n\t if (t2.isCompatibleWith(t1)) {\n\t used.add(nvd);\n\t fnd = true;\n\t break;\n\t }\n }\n if (!fnd) return null;\n }\n\n CheckAssigned ca = new CheckAssigned(param);\n md.accept(ca);\n boolean asg = ca.isAssigned();\n\n ElimThisParam tm = new ElimThisParam(md,paramdecl,param,asg);\n\n return tm;\n}", "title": "" }, { "docid": "49994654c19a9a61dbd0c2221ac566d5", "score": "0.5768774", "text": "protected HashMap<Method,ArrayList<ArrayList>> checkClassTree(ArrayList<String> sentence, Class<?> testClass){\n if(testClass == null){\n return new HashMap<Method, ArrayList<ArrayList>>();\n }\n HashMap<Method, ArrayList<ArrayList>> right_method = getMethod(sentence, testClass);\n if(!(right_method.isEmpty())){\n return right_method;\n }\n return checkClassTree(sentence, testClass.getSuperclass());\n }", "title": "" }, { "docid": "08a399647aefef51b59f7260fcf232c5", "score": "0.555672", "text": "private void handleMethodAnnotations() {\n // Add the class annotations to the method as long as they don't conflict with any\n // annotations of the method, which should take precedence.\n visitedAnnotations.addAll(\n annotationConflictsManager.getNonConflictingClassAnnotations(\n visitedAnnotations, classAnnotations));\n // Check whether we have aspects defined for this method.\n if (!visitedAnnotations.isEmpty()) {\n visitedAnnotations\n .stream()\n .map(annotationType -> \"@\" + annotationType.getClassName())\n .forEach(\n annotationName -> {\n String annotationAspect = aspects.apply(annotationName);\n if (annotationAspect != null) {\n generateStaticCall(annotationAspect);\n LOGGER.fine(\"Annotation Aspect found \" + annotationName);\n } else {\n notFoundCallback.accept(annotationName);\n }\n });\n }\n }", "title": "" }, { "docid": "2eb84b6d5636d40fe959f5c467805e63", "score": "0.5294553", "text": "private static Method m40882a(Method[] methodArr, String str, Class<?>[] clsArr) {\n if (str != null) {\n for (Method method : methodArr) {\n if (method.getName().equals(str) && m40885a(method.getParameterTypes(), clsArr)) {\n return method;\n }\n }\n return null;\n }\n throw new NullPointerException(\"Method name must not be null.\");\n }", "title": "" }, { "docid": "e40df94a0c025f0a392398fded6f7653", "score": "0.5217334", "text": "public static Map<String, Method> getCommandMap(Class<? extends Robot> r) {\r\n\t\r\n\t\tif (!RobotMethodLoader.robotCommandMap.containsKey(r)) {\r\n\t\t\tHashMap<String, Method> commandMap = new HashMap<String, Method>();\r\n\t\t\tRobotMethodLoader.robotCommandMap.put(r, commandMap);\r\n\t\t\tMethod[] methods = r.getMethods();\r\n\t\t\tfor (Method m : methods)\r\n\t\t\t\tif (m.isAnnotationPresent(RobotCommand.class))\r\n\t\t\t\t\tcommandMap.put(m.getAnnotation(RobotCommand.class).commandName(), m);\r\n\t\t}\r\n\t\treturn RobotMethodLoader.robotCommandMap.get(r);\r\n\t}", "title": "" }, { "docid": "4999a92c8c1c8f55b22c33d776402cbe", "score": "0.5215751", "text": "private static ClassType findClasses(String str, int index, String userCode, String request, TaskInfo task) {\n //Work out what word the user was typing\n StringBuilder curWord = new StringBuilder();\n StringBuilder lastStatement = new StringBuilder();\n //Depth maps\n HashMap<Integer,List<Class<?>>> types = new HashMap<>();\n HashMap<Integer,String> lastMethods = new HashMap<>();\n int idx = 0;\n int depth = 0;\n for (char c : str.toCharArray()) {\n if (idx >= index) {\n break;\n }\n if (Character.isSpaceChar(c) || c == '('||c ==')'||c==';') {\n if (c == '(') {\n lastMethods.put(depth,curWord.toString());\n depth++;\n }\n if (c == ')') {\n depth--;\n String lastMethod = lastMethods.get(depth);\n if (!lastMethod.startsWith(\".\")) {\n String method = lastMethod;\n if (lastMethod.contains(\".\")) {\n method = lastMethod.substring(0, lastMethod.indexOf(\".\"));\n lastMethod = lastMethod.substring(lastMethod.indexOf(\".\"));\n }\n types.put(depth,getClassFor(method, userCode, request, true,task).classes);\n }\n List<Class<?>> newList = new ArrayList<>();\n for (Class<?> type : types.get(depth)) {\n for (Method m : type.getMethods()) {\n if (m.getName().startsWith(lastMethod.substring(1))) {\n newList.add(m.getReturnType());\n }\n }\n }\n types.put(depth,newList);\n }\n curWord = new StringBuilder();\n } else {\n curWord.append(c);\n }\n\n if (c == '('||c ==')'||c==';') {\n lastStatement = new StringBuilder();\n } else {\n lastStatement.append(c);\n }\n idx++;\n }\n String lastMethodParsed = lastMethods.getOrDefault(depth,curWord.toString());\n List<Class<?>> lastTypeParsed;\n String lastTypeFound = null;\n if (!lastMethodParsed.startsWith(\".\")) {\n ClassType t;\n if (lastMethodParsed.contains(\".\")) {\n lastMethodParsed = lastMethodParsed.substring(0,lastMethodParsed.indexOf(\".\"));\n t = getClassFor(lastMethodParsed,userCode,request,true,task);\n } else {\n t = getClassFor(lastMethodParsed,userCode,request,false,task);\n }\n lastTypeParsed = t.classes;\n lastTypeFound = t.matchedClass;\n } else {\n lastTypeParsed = types.get(depth);\n }\n lastMethodParsed = curWord.toString();\n if (lastMethodParsed.contains(\".\"))\n lastMethodParsed = lastMethodParsed.substring(lastMethodParsed.indexOf(\".\")+1);\n return new ClassType(lastMethodParsed, lastStatement.toString(),lastTypeFound,lastTypeParsed);\n }", "title": "" }, { "docid": "49eab8320c74f2d09e757c8bfd9bf084", "score": "0.51764923", "text": "private static Method getMethod(Class<?> param1Class, String param1String, Class<?>... param1VarArgs) {\n/* 3521 */ if (param1Class != null) {\n/* */ try {\n/* 3523 */ return param1Class.getMethod(param1String, param1VarArgs);\n/* 3524 */ } catch (NoSuchMethodException noSuchMethodException) {\n/* 3525 */ throw new AssertionError(noSuchMethodException);\n/* */ } \n/* */ }\n/* 3528 */ return null;\n/* */ }", "title": "" }, { "docid": "48769a0e0416d7d91389a24d451ae9a3", "score": "0.51292115", "text": "public Concept[] search(String text, String method) throws TerminologyException;", "title": "" }, { "docid": "27d7a9143858d067a5c33a2c103240d1", "score": "0.5123824", "text": "private Method correspondingGetMethod(Method setMethod, \n Class loadedClass) {\n\n Method[] allMethods = loadedClass.getMethods();\n int length = \"set\".length();\n String methodName = setMethod.getName();\n Class[] parameterTypes = null;\n String[] possibleGetMethodNames = new String[2]; \n possibleGetMethodNames[0] = \"is\"+methodName.substring(length);\n possibleGetMethodNames[1] = \"get\"+methodName.substring(length);\n\n for(int i = 0;i < allMethods.length;++i) {\n if(allMethods[i].getName().equals(possibleGetMethodNames[0]) || \n allMethods[i].getName().equals(possibleGetMethodNames[1])) {\n parameterTypes = allMethods[i].getParameterTypes();\n if(parameterTypes != null && parameterTypes.length == 0) {\n return allMethods[i];\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "56cfb6c7c8748debfdc9165e361d2d0d", "score": "0.51162905", "text": "default Method getAnnotatedMethodWithAnnotation(Class<?> testClass, Class<? extends Annotation> annotation) {\n final List<Method> methodsWithAnnotation = ReflectionUtil.getMethodsWithAnnotation(testClass,\n annotation);\n\n if (methodsWithAnnotation.size() > 1) {\n throw new IllegalArgumentException(\n String.format(\"More than one %s annotation found and only one was expected. Methods where %s was found are; %s\",\n annotation.getSimpleName(),\n annotation.getSimpleName(),\n methodsWithAnnotation));\n }\n\n return methodsWithAnnotation.size() == 1 ? methodsWithAnnotation.get(0) : null;\n }", "title": "" }, { "docid": "d57545eecce0fe22b1cce859e6dee518", "score": "0.50868124", "text": "private static Map<String, Class<?>> getGileadAnnotations(Class<?> clazz)\r\n\t{\r\n\t\tif (_log.isDebugEnabled())\r\n\t\t{\r\n\t\t\t_log.debug(\"Looking for Gilead annotations for \" + clazz);\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Class<?>> result = new HashMap<String, Class<?>>();\r\n\t\t\r\n\t//\tSearch annotations on fields\r\n\t//\r\n\t\ttry \r\n\t\t{\r\n\t\t\tField[] fields = IntrospectionHelper.getRecursiveDeclaredFields(clazz);\r\n\t\t\tfor (Field field : fields)\r\n\t\t\t{\r\n\t\t\t\tString propertyName = field.getName();\r\n\t\t\t\t\r\n\t\t\t\t// ReadOnly\r\n\t\t\t\tReadOnly readOnly = field.getAnnotation(ReadOnly.class);\r\n\t\t\t\tif (readOnly != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (_log.isDebugEnabled())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_log.debug(propertyName + \" member has @ReadOnly\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresult.put(propertyName, ReadOnly.class);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// ServerOnly\r\n\t\t\t\tServerOnly serverOnly = field.getAnnotation(ServerOnly.class);\r\n\t\t\t\tif (serverOnly != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (_log.isDebugEnabled())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_log.debug(propertyName + \" member has @ServerOnly\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresult.put(propertyName, ServerOnly.class);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// LimitedAccess\r\n\t\t\t\tLimitedAccess limitedAccess = field.getAnnotation(LimitedAccess.class);\r\n\t\t\t\tif (limitedAccess != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (_log.isDebugEnabled())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_log.debug(propertyName + \" member has @LimitedAccess\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresult.put(propertyName, LimitedAccess.class);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// No Gilead annotation\r\n\t\t\t\tif (_log.isTraceEnabled())\r\n\t\t\t\t{\r\n\t\t\t\t\t_log.trace(propertyName + \" member has no Gilead annotation\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tresult.put(propertyName, null);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t//\tSearch annotation on getters\r\n\t\t//\r\n\t\t\tBeanInfo info = Introspector.getBeanInfo(clazz);\r\n\t\t\tPropertyDescriptor[] descriptors = info.getPropertyDescriptors();\r\n\t\t\tfor (int index = 0; index < descriptors.length; index++)\r\n\t\t\t{\r\n\t\t\t\tPropertyDescriptor descriptor = descriptors[index];\r\n\t\t\t\tif ((descriptor != null) && (descriptor.getReadMethod() != null))\r\n\t\t\t\t{\r\n\t\t\t\t\tString propertyName = descriptor.getName();\r\n\t\t\t\t\t\r\n\t\t\t\t//\tIf annotation has been detected on field, no need to search on getter\r\n\t\t\t\t//\r\n\t\t\t\t\tif (result.get(propertyName) != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t//\tReadOnly\r\n\t\t\t\t//\r\n\t\t\t\t\tReadOnly readOnly = descriptor.getReadMethod().getAnnotation(ReadOnly.class); \r\n\t\t\t\t\tif (readOnly != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (_log.isDebugEnabled())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_log.debug(propertyName + \" getter has @ReadOnly\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tresult.put(propertyName, ReadOnly.class);\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t//\tServerOnly\r\n\t\t\t\t//\r\n\t\t\t\t\tServerOnly serverOnly = descriptor.getReadMethod().getAnnotation(ServerOnly.class); \r\n\t\t\t\t\tif (serverOnly != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (_log.isDebugEnabled())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_log.debug(propertyName + \" getter has @ServerOnly\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tresult.put(propertyName, ServerOnly.class);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t//\tLimitedAccess\r\n\t\t\t\t//\r\n\t\t\t\t\tLimitedAccess limitedAccess = descriptor.getReadMethod().getAnnotation(LimitedAccess.class); \r\n\t\t\t\t\tif (limitedAccess != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (_log.isDebugEnabled())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_log.debug(propertyName + \" getter has @LimitedAccess\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tresult.put(propertyName, LimitedAccess.class);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow new RuntimeException(\"Error inspecting class \" + clazz, e);\r\n\t\t}\r\n\t\t\r\n\t//\tReturn annotation map\r\n\t//\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "37e2587e7f4682ba1846aabf8d1647a7", "score": "0.50701344", "text": "private static MethodBean isInto(MethodBean pClassMethodInvocation, Collection<MethodBean> pMethodBeans) {\n\t\tfor (MethodBean methodBean : pMethodBeans) {\n\t\t\t\n\t\t\t// If there is a method with the same name, return it\n\t\t\tif (methodBean.getName().equals(pClassMethodInvocation.getName()))\n\t\t\t\treturn methodBean;\n\t\t}\n\t\t\n\t\t// No correspondence found\n\t\treturn null;\n\t\t\n\t}", "title": "" }, { "docid": "d87e643324c2aa3eaf36cefaa3409f98", "score": "0.5027946", "text": "private boolean matchAndMapMethod(IMethodBinding bnd, String sig, TType retTyp, TNamedEntity owner, NamedEntity candidate) {\n\t\tif (! (candidate instanceof Method) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// check whether bnd and candidate are already bound\n\t\tCheckResult res = checkKeyMatch(bnd, candidate);\n\t\tif (res == CheckResult.MATCH) {\n\t\t\treturn true;\n\t\t}\n\t\telse if (res == CheckResult.FAIL) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// checking names\n\t\tString name = (sig != null) ? sig.substring(0, sig.indexOf('(')) : null;\n\t\tif (checkNameMatch(bnd, name, candidate) == CheckResult.FAIL) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// for methods, the name is not enough, we must test the signature also\n\t\t// but not for AnnotationTypeAttribute\n\n\t\t\tif (bnd != null) {\n\t\t\t\tsig = bnd.getName() + \"(\" + signatureParamsFromBinding(bnd) + \")\";\n\t\t\t}\n\t\t\tif (! ((Method) candidate).getSignature().equals(sig)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// and still for method, must also check the return type\n\t\t\tif (bnd != null) {\n\t\t\t\tif (bnd.isConstructor()) {\n\t\t\t\t\tif ( ((Method) candidate).getDeclaredType() != null ) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\t// else OK for now\n\t\t\t\t}\n\t\t\t\telse { // not a constructor\n\t\t\t\t\tif ( ((Method) candidate).getDeclaredType() == null ) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telse if (! matchAndMapType(bnd.getReturnType(), null, null, ((Method) candidate).getDeclaredType()) ) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\t// else OK for now\n\t\t\t\t}\n\t\t\t}\n\t\t\telse { // bnd == null\n\t\t\t\tif (retTyp == null) { // similar to (bnd.isConstructor())\n\t\t\t\t\tif ( ((Method) candidate).getDeclaredType() != null ) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\t// else OK for now\n\t\t\t\t} else { // (ret != null) i.e. not a constructor\n\t\t\t\t\tif (((Method) candidate).getDeclaredType() == null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} else if (!matchAndMapType(null, retTyp.getName(), Util.getOwner(retTyp), (NamedEntity) ((Method) candidate).getDeclaredType())) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\t// else OK for now\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t// check owner\n\t\tif (matchAndMapOwnerAsType(((bnd != null) ? bnd.getDeclaringClass() : null), owner, Util.getOwner(candidate)) == CheckResult.MATCH) {\n\t\t\tconditionalMapToKey(bnd, candidate);\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "65f02b25bb757db43eca7e0fe4891e00", "score": "0.4988929", "text": "private static void test2() {\n Service annotation = AnnotationUtils.findAnnotation(Bean.class, Service.class);\n if (annotation != null) {\n //Annotation.annotationType -> Returns the annotation type of this annotation.\n //interface com.mtdp.spring.utils.annotation.annotation_utils.anno.Service\n System.out.println(annotation.annotationType());\n\n Map<String, Object> annotationAttributes = AnnotationUtils.getAnnotationAttributes(annotation);\n //value-> bean\n //classes-> [Ljava.lang.Class;@26a1ab54\n annotationAttributes.forEach((k, v) -> System.out.println(k + \"-> \" + v));\n }\n }", "title": "" }, { "docid": "db305229798f990f8e2a6ac6b1a625d9", "score": "0.49472952", "text": "public static <T> Method findInvocationMethod(Class<T> clazz, Class<?> returnType, Class<?> ...args)\n {\n String name = \"no name\";\n\n Class<?>[] typeSignature = args; //ClassUtils.getTypeSignature(args);\n\n Map<Method, Integer[]> bestMatches = new HashMap<Method, Integer[]>();\n for(Method m : ClassUtils.getAllNonOverriddenMethods(clazz)) {\n\n if(m.getParameterTypes().length < args.length && !m.isVarArgs()) {\n continue;\n }\n\n /*\n if(!m.getName().equals(name)) {\n continue;\n }*/\n\n Integer[] d = ClassUtils.getDistance(returnType, m.getReturnType(), typeSignature, m.getParameterTypes());;\n if(d == null || Arrays.asList(d).contains(null)) {\n continue;\n }\n\n //System.out.println(\"Multimethod Candidate: \" + m.getName() + \": \" + Arrays.toString(d));\n\n // All matches that are worse than current candidate are removed\n // The candidate is only added, if it is not worse than any of the\n // other candidates\n boolean canBeAdded = true;\n for(Iterator<Entry<Method, Integer[]>> it = bestMatches.entrySet().iterator(); it.hasNext();) {\n Entry<Method, Integer[]> entry = it.next();\n\n int rel = ClassUtils.getRelation(d, entry.getValue());\n\n if(rel == -1) {\n it.remove();\n } else if(rel > 0) {\n canBeAdded = false;\n }\n }\n\n if(canBeAdded) {\n bestMatches.put(m, d);\n }\n }\n\n if(bestMatches.size() == 0) {\n throw new NoMethodInvocationException(name, args);\n } else if(bestMatches.size() > 1) {\n throw new MultipleMethodsInvocationException(name, args, bestMatches.keySet());\n }\n\n return bestMatches.entrySet().iterator().next().getKey();\n }", "title": "" }, { "docid": "e996c7685e64e48cf3fd26387e04a670", "score": "0.49153593", "text": "private C0295a m959a(Class cls, Method[] methodArr) {\n int i;\n Class superclass = cls.getSuperclass();\n HashMap hashMap = new HashMap();\n if (superclass != null) {\n C0295a a = mo1020a(superclass);\n if (a != null) {\n hashMap.putAll(a.f724b);\n }\n }\n for (Class a2 : cls.getInterfaces()) {\n for (Entry entry : mo1020a(a2).f724b.entrySet()) {\n m960a(hashMap, (C0296b) entry.getKey(), (C0300a) entry.getValue(), cls);\n }\n }\n if (methodArr == null) {\n methodArr = m961c(cls);\n }\n boolean z = false;\n for (Method method : methodArr) {\n C0313o oVar = (C0313o) method.getAnnotation(C0313o.class);\n if (oVar != null) {\n Class[] parameterTypes = method.getParameterTypes();\n if (parameterTypes.length <= 0) {\n i = 0;\n } else if (parameterTypes[0].isAssignableFrom(C0303f.class)) {\n i = 1;\n } else {\n throw new IllegalArgumentException(\"invalid parameter type. Must be one and instanceof LifecycleOwner\");\n }\n C0300a value = oVar.value();\n if (parameterTypes.length > 1) {\n if (!parameterTypes[1].isAssignableFrom(C0300a.class)) {\n throw new IllegalArgumentException(\"invalid parameter type. second arg must be an event\");\n } else if (value == C0300a.ON_ANY) {\n i = 2;\n } else {\n throw new IllegalArgumentException(\"Second arg is supported only for ON_ANY value\");\n }\n }\n if (parameterTypes.length <= 2) {\n m960a(hashMap, new C0296b(i, method), value, cls);\n z = true;\n } else {\n throw new IllegalArgumentException(\"cannot have more than 2 params\");\n }\n }\n }\n C0295a aVar = new C0295a(hashMap);\n this.f721b.put(cls, aVar);\n this.f722c.put(cls, Boolean.valueOf(z));\n return aVar;\n }", "title": "" }, { "docid": "554184ac160314efec89b9bd1fe2f776", "score": "0.48981524", "text": "private static Method lookForMethod(Class<?> speedBarClass, String methodName) {\n\t\tMethod[] methods = speedBarClass.getMethods();\n\t\tfor (int i = 0; i < methods.length; i++) {\n\t\t\tif (methodName.equals(methods[i].getName())) return methods[i];\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3b51f52ff6d35ac00d0ee7b563ab524f", "score": "0.48969182", "text": "private void methodCalled(String className, String name, String desc,\r\n\t\t\tMap<String, Set<String>> targetMap) {\n\t\tmethodCalledInternal(className, name, desc, targetMap);\r\n\r\n\t\t// Gestion des appels dynamiques sur un objet (la classe est d�duite � l'ex�cution\r\n\t\t// en fonction de l'h�ritage selon le principe du polymorphisme).\r\n\t\t// NB: Le polymorphisme sur les interfaces ne rentre en compte que si\r\n\t\t// on a fait l'indexation en mode public car sinon les m�thodes des interfaces �tant\r\n\t\t// publiques, on ne s'int�resserait qu'aux m�thodes packages ou private.\r\n\r\n\t\t// super-classe et super-super-classes (il arrive parfois qu'une classe fille\r\n\t\t// appelle une m�thode package non statique de sa classe m�re, ou bien que la m�thode de la classe m�re\r\n\t\t// soit appel�e par l'interm�diaire d'un objet de la classe fille par exemple)\r\n\t\tString superClass = superClassByClassMap.get(className);\r\n\t\twhile (superClass != null && !DcdHelper.isJavaClass(superClass)) {\r\n\t\t\tmethodCalledInternal(superClass, name, desc, targetMap);\r\n\t\t\tsuperClass = superClassByClassMap.get(superClass);\r\n\t\t}\r\n\t\t// sous-classes et sous-sous-classes\r\n\t\t// (il arrive qu'une m�thode d�finie et appel�e dans une classe m�re\r\n\t\t// soit surcharg�e dans une classe fille)\r\n\t\tfor (final String subClass : getAllSubClasses(className)) {\r\n\t\t\tmethodCalledInternal(subClass, name, desc, targetMap);\r\n\r\n\t\t\t// il arrive qu'une m�thode d�finie dans une super-classe\r\n\t\t\t// soit appel�e par une interface de la sous-classe\r\n\t\t\t// (par ex, GenericDAOAbstract.findAll appel�e sur l'interface MonDAO\r\n\t\t\t// qui est impl�ment�e par MonDAOImpl h�ritant de GenericDAOAbstract\r\n\t\t\t// m�me si toutes ces couches sont probablement peu utiles,\r\n\t\t\t// et cela compile au d�part car MonDAO h�rite de l'interface GenericDAO)\r\n\t\t\tString superClass2 = superClassByClassMap.get(subClass);\r\n\t\t\twhile (superClass2 != null && !superClass2.equals(className)\r\n\t\t\t\t\t&& !DcdHelper.isJavaClass(superClass2)) {\r\n\t\t\t\tmethodCalledInternal(superClass2, name, desc, targetMap);\r\n\t\t\t\tsuperClass2 = superClassByClassMap.get(superClass2);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "aa3c133dc2cabfd997ec43fd7c69ea24", "score": "0.48736715", "text": "public interface Words {\r\n \r\n /**\r\n * Process the Words for a line of text.\r\n * @param theString String to be processed.\r\n * @param theMap Map to be mapped to for the words.\r\n */\r\n void processWords(final String theString, final Map<String, Word> theMap);\r\n}", "title": "" }, { "docid": "f91e1b86bfc8084a7f8f56f2e1b58eb8", "score": "0.48530534", "text": "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:30:41.823 -0500\", hash_original_method = \"7CC1EF53DD56AF5F60DBA3D3D6AD7EDD\", hash_generated_method = \"6B8DF69971E6B2D9583F74567BB2A025\")\n \nprivate Class<? extends Annotation> getAnnotationClass(String annotationClassName) {\n if (annotationClassName == null) {\n return null;\n }\n try {\n Class<?> annotationClass = Class.forName(annotationClassName);\n if (annotationClass.isAnnotation()) {\n return (Class<? extends Annotation>)annotationClass;\n } else {\n Log.e(LOG_TAG, String.format(\"Provided annotation value %s is not an Annotation\",\n annotationClassName));\n }\n } catch (ClassNotFoundException e) {\n Log.e(LOG_TAG, String.format(\"Could not find class for specified annotation %s\",\n annotationClassName));\n }\n return null;\n }", "title": "" }, { "docid": "2ee3a63af7f4c44a38389349864e9e29", "score": "0.48454335", "text": "public interface TokenDetectorService {\n /**\n * This method returns the list of tokens based upon the implementation strategy\n * @param sentence from which tokens have to be separated out\n * @return list of tokens\n */\n List<String> getTokens(String sentence);\n\n /**\n * This method returns the concordance map based upon the implementation strategy\n * @param sentences from which concordance has to be figured out\n * @return concordance result in the form of token and FreqSentNo object containing occurrence and sentence numbers in which the token appeared\n */\n Map<String,FreqSentNo> getTokensWithFreqSentNo(List<String> sentences);\n}", "title": "" }, { "docid": "fb1b4d5998c584ef3fdc83d6abd18323", "score": "0.4832048", "text": "boolean match(Annotation a);", "title": "" }, { "docid": "f477876468b6a49dca084ba2703c897e", "score": "0.48197973", "text": "private void findLabelForAnnotations (Class<?> klass, Field[] fields, FieldDependency fieldDependency) {\n for (Field field : fields) {\r\n LabelFor labelFor = field.getAnnotation(LabelFor.class);\r\n if (labelFor != null) {\r\n // This field has been explicitly annotated as a label for some field or fields.\r\n String[] xpaths = labelFor.value();\r\n try {\r\n int modifier = field.getModifiers();\r\n if (Modifier.isStatic(modifier)) {\r\n field.setAccessible(true);\r\n String label = (String)field.get(null);\r\n IRuntimeLabelProvider labelProvider = new RuntimeLabelProvider(label, xpaths);\r\n runtimeLabelProviders.add(labelProvider);\r\n }\r\n } catch (IllegalArgumentException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalAccessException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n }\r\n \r\n // Look for methods annotated with LabelFor. \r\n for (Method method : klass.getDeclaredMethods()) {\r\n LabelFor labelFor = method.getAnnotation(LabelFor.class);\r\n if (labelFor != null) {\r\n // This method has been explicitly annotated as the label for some field or fields.\r\n String[] xpaths = labelFor.value();\r\n try {\r\n int modifier = method.getModifiers();\r\n if (Modifier.isStatic(modifier)) {\r\n method.setAccessible(true);\r\n String label = (String)method.invoke(null);\r\n IRuntimeLabelProvider labelProvider = new RuntimeLabelProvider(label, xpaths);\r\n runtimeLabelProviders.add(labelProvider);\r\n } else {\r\n IRuntimeLabelProvider labelProvider = new RuntimeLabelProvider(klass, fieldDependency, method, xpaths);\r\n runtimeLabelProviders.add(labelProvider);\r\n }\r\n } catch (InvocationTargetException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalArgumentException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalAccessException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n }\r\n \r\n }", "title": "" }, { "docid": "93d0b2af89a4d9add848183b2be1a5bb", "score": "0.48073205", "text": "@SuppressWarnings(\"unchecked\")\n private Method findtMethod(Class clz, String methodName, int numParams)\n {\n for (Method m : clz.getDeclaredMethods())\n {\n if (m.getName().equals(methodName))\n {\n if (m.getParameterTypes().length == numParams)\n {\n return m;\n }\n }\n }\n \n return null;\n }", "title": "" }, { "docid": "33236d0c4f330ebc2bbfbf1ba53931a9", "score": "0.47996876", "text": "private void processAnnotations (Class<?> rootClass) throws NoSuchMethodException,\n SecurityException, IllegalAccessException, IllegalArgumentException,\n InvocationTargetException {\n processAnnotations(rootClass.getDeclaredFields());\n processAnnotations(rootClass.getDeclaredMethods());\n }", "title": "" }, { "docid": "4f4aee38099f397a02d0092de68e4f5e", "score": "0.4780533", "text": "private void isVulnerable(String me, JavaClass clazz) throws CFGBuilderException, DataflowAnalysisException, ClassNotFoundException {\n\n \tif (!clazz.toString().contains(\"com.tmh\")) {\n \t\treturn;\n \t}\n \tConstantPool constantPool = clazz.getConstantPool();\n Method [] method=clazz.getMethods();\n \n ConstantPoolGen cpg = new ConstantPoolGen(constantPool);\n for(Method m : method)\n {\n \tif (m.getName().contains(me)) {\n \t\tSystem.out.println(\"Now scanning \" + m.getName());\n\t MethodGen mg = new MethodGen(m, m.getName(), cpg);\n\t for(InstructionHandle ih = mg.getInstructionList().getStart(); \n\t ih != null; ih = ih.getNext())\n\t {\n\t \tif (ih.getInstruction() instanceof INVOKEVIRTUAL) {\n\t \tif (isNewIntent = true) {\n\t InvokeInstruction invoke = (InvokeInstruction) ih.getInstruction(); \n\t if (invoke.getClassName(cpg).equals(\"android.content.Intent\")) {\n\t \t \t\tif (invoke.getMethodName(cpg).equals(\"setClassName\") || invoke.getMethodName(cpg).equals(\"setClass\") || invoke.getMethodName(cpg).equals(\"setComponentName\")) {\n\t \t \tSystem.out.println(ih.getInstruction().toString() + \" \" + invoke.getClassName(cpg) + \" \" + invoke.getMethodName(cpg));\n\t \t \t\t\tisPackageSet = true;\n\t \t \t\t\tSystem.out.println(\"isPackageSet\" + isPackageSet);\n\t \t \t\t}\n\t } else if (invoke.getMethodName(cpg).equals(\"startActivity\")) {\n\t \t\t\t//System.out.println(\"Setting isActivityStart to true\");\n\t \t\t\tisActivityStart = true;\n\t \t\t} else if (invoke.getClassName(cpg) != null && !invoke.getClassName(cpg).contains(\"android\") && !invoke.getClassName(cpg).contains(\"kotlin\") &&\n\t \t\tinvoke.getSignature(cpg).contains(\"android/content/Intent\")) {\n\t \tString className = invoke.getClassName(cpg);\n\t \tclassName.replace(\"/\", \".\");\n\t \tJavaClass cl = Repository.lookupClass(className.replace(\"/\", \".\"));\n\t \t\t \tisVulnerable(invoke.getMethodName(cpg), cl);\n\t }\n\t \t}\n\t } else if (ih.getInstruction() instanceof INVOKESTATIC) {\n\t \tif (isNewIntent = true) {\n\t \t\tInvokeInstruction invoke = (InvokeInstruction) ih.getInstruction();\n\t \t\tif (invoke.getClassName(cpg) != null && !invoke.getClassName(cpg).contains(\"android\") && !invoke.getClassName(cpg).contains(\"kotlin\") &&\n\t \t\tinvoke.getSignature(cpg).contains(\"android/content/Intent\")) {\n\t \t\t\tString className = invoke.getClassName(cpg);\n\t \tclassName.replace(\"/\", \".\");\n\t \tJavaClass cl = Repository.lookupClass(className.replace(\"/\", \".\"));\n\t \t\t \tisVulnerable(invoke.getMethodName(cpg), cl);\n\t \t\t}\n\t \t}\n\t }\n\t }\n \t}\n }\n }", "title": "" }, { "docid": "3c4626c591eb382c3f7272ceb5e145cf", "score": "0.47576112", "text": "@SuppressWarnings(\"unchecked\")\n private <T extends Annotation> T findAnnotation(final Annotation[] annotations, final Class<T> needle) {\n for (Annotation annotation : annotations) {\n if (annotation.annotationType() == needle) {\n return (T) annotation;\n }\n }\n return null;\n }", "title": "" }, { "docid": "cc2069e3ee464d1c3c6f251f1e89bcd8", "score": "0.474234", "text": "public void matchExtractMethod(TwowayMatching matching, List<SemanticNode> unmatchedMethods) {\n BiMap<SemanticNode, SemanticNode> reversedMatching = matching.one2oneMatchings.inverse();\n // union the context of matched callers\n // if the union context confidence > confidence before, consider it as an extraction\n Map<SemanticNode, List<SemanticNode>> candidates = new HashMap<>();\n for (SemanticNode possiblyAddedMethod : unmatchedMethods) {\n List<SemanticNode> callers =\n possiblyAddedMethod.context.getIncomingEdges().stream()\n .filter(edge -> edge.getEdgeType().equals(EdgeType.CALL))\n .map(SemanticEdge::getSource)\n .collect(Collectors.toList());\n // methods or constructors\n List<SemanticNode> extractionSources = new ArrayList<>();\n for (SemanticNode caller : callers) {\n if (reversedMatching.containsKey(caller)\n && caller.getParent().equals(possiblyAddedMethod.getParent())) {\n extractionSources.add(caller);\n }\n }\n if (!extractionSources.isEmpty()) {\n candidates.put(possiblyAddedMethod, extractionSources);\n }\n }\n\n for (Map.Entry<SemanticNode, List<SemanticNode>> alternate : candidates.entrySet()) {\n SemanticNode callee = alternate.getKey();\n List<SemanticNode> callers = alternate.getValue();\n for (SemanticNode caller : callers) {\n SemanticNode callerBase = reversedMatching.get(caller);\n NodeContext callerContext = caller.context;\n NodeContext callerBaseContext = callerBase.context;\n double similarityBefore = SimilarityAlg.context(callerContext, callerBaseContext);\n\n // union the context of the caller and callee\n NodeContext callerUnionContext = callerContext.join(callee.context);\n double similarityAfter = SimilarityAlg.context(callerUnionContext, callerBaseContext);\n\n if (similarityAfter > similarityBefore) {\n matching.markRefactoring(\n callerBase, callee, RefactoringType.EXTRACT_METHOD, similarityAfter);\n // matching.unmatchedNodes2.get(NodeType.METHOD).remove(callee);\n }\n }\n }\n }", "title": "" }, { "docid": "ae19272206cb77da3b25d31ee6ec8bec", "score": "0.47367156", "text": "public static Method findFactoryMethod(Class<?> cls, IAnnotationFinder finder) {\n Method result = null;\n\n for (Method method : cls.getDeclaredMethods()) {\n IAnnotation f = finder.findAnnotation(method, IFactoryAnnotation.class);\n\n if (null != f) {\n if (null != result) {\n throw new TestNGException(cls.getName() + \": only one @Factory method allowed\");\n }\n result = method;\n }\n }\n\n // If we didn't find anything, look for nested classes\n// if (null == result) {\n// Class[] subClasses = cls.getClasses();\n// for (Class subClass : subClasses) {\n// result = findFactoryMethod(subClass, finder);\n// if (null != result) {\n// break;\n// }\n// }\n// }\n\n // Found the method, verify that it returns an array of objects\n // TBD\n\n return result;\n }", "title": "" }, { "docid": "f180527f3c01c154ffdb8e6e915a824f", "score": "0.47142327", "text": "private void obtainBindingsForMethod(JavaFileParser jfParser, ClassOrInterfaceDeclaration classOrInterfaceDecl, MethodDeclaration methodDecl){\n\t\tDebug.println(\"find binding information for \" + classOrInterfaceDecl.getName() + \" \" +methodDecl.getName());\n\t\tHashMap<CFGNode<CodeNodeIdentifier, Expression>, MethodDeclaration> methodCallMapping = new HashMap<CFGNode<CodeNodeIdentifier, Expression>, MethodDeclaration>();\n\t\tList<CFGNode<CodeNodeIdentifier, Expression>> methodCallNodes = MethodInvocationBinder\n\t\t\t\t.getAllMethodCallNodes(jfParser.getControlFlowGraph(classOrInterfaceDecl.getName(),methodDecl));\n\t\tif(methodCallNodes.isEmpty()){\n\t\t\tthis.addResolvedMethod(methodDecl);\n\t\t}else{\n\t\t\tfor(CFGNode<CodeNodeIdentifier, Expression> cfgNode : methodCallNodes){\n\t\t\t\tMethodCallExpr methodCallExpr = (MethodCallExpr) cfgNode.getNodeData();\n\t\t\t\tDebug.println(\"find binding information for a method call \" + methodCallExpr.toString());\n\t\t\t\tMethodDeclaration methodCalleeDef = MethodInvocationBinder.findMethodDeclaration(methodCallExpr, methodDecl, classOrInterfaceDecl.getName(), \n\t\t\t\t\t\tjfParser, this);\n\t\t\t\tif(methodCalleeDef != null){\n\t\t\t\t\tmethodCallMapping.put(cfgNode, methodCalleeDef);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(methodCallMapping.isEmpty()){\n\t\t\t\tDebug.println(\"I have function calls but you can not find\");\n\t\t\t\tthis.addResolvedMethod(methodDecl);\n\t\t\t}else{\n\t\t\t\tDebug.println(\"You have to resolve my method call things!!!!\");\n\t\t\t\tthis.addBindingPositions(methodDecl, methodCallMapping);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0e51538bd7d4f99e637dbd2dd5028a6e", "score": "0.4712606", "text": "private static Map<String, List<MethodInfo>> filterMethodInformation( final Set<String> usedFullyQualifiedClassNames,\n final Map<String, List<MethodInfo>> projectMethodInformation ) {\n final Map<String, List<MethodInfo>> scopedMethodInformation = new HashMap<String, List<MethodInfo>>();\n for ( Map.Entry<String, List<MethodInfo>> e : projectMethodInformation.entrySet() ) {\n final String miQualifiedType = e.getKey();\n if ( isTypeUsed( miQualifiedType,\n usedFullyQualifiedClassNames ) ) {\n scopedMethodInformation.put( miQualifiedType,\n e.getValue() );\n }\n }\n return scopedMethodInformation;\n }", "title": "" }, { "docid": "0218da9c65878ec37912034494b898d3", "score": "0.47021687", "text": "public interface MapperMethod<T extends Annotation> {\n\n /**\n * Gets the underlying annotation\n * \n * @return annotation\n */\n T getAnnotation();\n\n /**\n * Executes the method internally\n * \n * @param method original method\n * @param model class of the model\n * @param args method arguments\n * @param driver the currently in use driver\n * @param naming current naming convention\n * @return resulting object\n * @throws MapperException when mapper is badly configured\n */\n Object execute(Method method, Class<?> model, Object[] args, Driver driver, Naming naming) throws MapperException;\n}", "title": "" }, { "docid": "46b4149e2729402ee5c2209fbcdf4e48", "score": "0.47017768", "text": "@Test\n public void getFindMethods() {\n GeneratedClass generatedClass = new GeneratedClass(\"A\", \"db\");\n\n assertEquals(\" public static Optional<A> find(String sql) {\\n\" +\n \" return DBService.getInstance().getExecutor().executeQuery(\\n\" +\n \" String.format(\\\"select id from A where %s\\\", sql),\\n\" +\n \" set -> !set.isClosed() ? A.getById(set.getLong(1)) : Optional.empty());\\n\" +\n \" }\\n\" +\n \"\\n\" +\n \" public static List<A> findAll(String sql) {\\n\" +\n \" return DBService.getInstance().getExecutor().executeQuery(\\n\" +\n \" String.format(\\\"select id from A where %s\\\", sql),\\n\" +\n \" set -> {\\n\" +\n \" List<A> list = new ArrayList<>();\\n\" +\n \" while (set.next()) {\\n\" +\n \" A.getById(set.getLong(1)).ifPresent(list::add);\\n\" +\n \" }\\n\" +\n \" return list;\\n\" +\n \" });\\n\" +\n \" }\\n\" +\n \"\\n\", generatedClass.getFindMethods());\n }", "title": "" }, { "docid": "331063b97429a1346933f313e2cc5e50", "score": "0.46968606", "text": "@Override\r\n\t\t\tpublic boolean matches(Method arg0, Class<?> arg1) {\n\t\t\t\treturn arg0.getName().endsWith(\"2\");\r\n\t\t\t}", "title": "" }, { "docid": "e58738efdbde6bda33f5162a7d433037", "score": "0.4688653", "text": "Method methodFrom(String methodNameAndArgTypes, char classMethodDelimiter, char methodArgDelimiter) {\n\n // classname#methodname(arg1,arg2)\n // 0 1 2\n\n int delimPos0 = -1;\n if (methodNameAndArgTypes != null) {\n delimPos0 = methodNameAndArgTypes.indexOf(classMethodDelimiter);\n } else {\n return null;\n }\n\n if (delimPos0 < 0) {\n return null;\n }\n\n String className = methodNameAndArgTypes.substring(0, delimPos0);\n Class<?> type = ClassUtil.getTypeFor(className);\n if (type == null) {\n return null;\n }\n\n int delimPos1 = methodNameAndArgTypes.indexOf(METHOD_GROUP_DELIMITERS[0]);\n if (delimPos1 < 0) {\n String methodName = methodNameAndArgTypes.substring(delimPos0 + 1);\n return ClassUtil.methodFor(type, methodName, ClassUtil.EMPTY_CLASS_ARRAY);\n }\n\n String methodName = methodNameAndArgTypes.substring(delimPos0 + 1, delimPos1);\n if (StringUtils.isBlank(methodName)) {\n return null;\n } // missing method name?\n\n int delimPos2 = methodNameAndArgTypes.indexOf(METHOD_GROUP_DELIMITERS[1]);\n if (delimPos2 < 0) {\n return null;\n } // error!\n\n String argTypesStr = methodNameAndArgTypes.substring(delimPos1 + 1, delimPos2);\n if (StringUtils.isBlank(argTypesStr)) {\n return ClassUtil.methodFor(type, methodName, ClassUtil.EMPTY_CLASS_ARRAY);\n } // no arg(s)\n\n String[] argTypeNames = StringUtils.split(argTypesStr, methodArgDelimiter);\n Class<?>[] argTypes = new Class[argTypeNames.length];\n for (int i = 0; i < argTypes.length; i++) {\n argTypes[i] = typeFor(argTypeNames[i]);\n }\n\n return ClassUtil.methodFor(type, methodName, argTypes);\n }", "title": "" }, { "docid": "e4f9c8b497f290eac7fa185c2a50156d", "score": "0.46816513", "text": "private void findImplementationForAnnotations (Class<?> klass, Field[] fields, FieldDependency fieldDependency) {\n for (Field field : fields) {\r\n ImplementationFor modeFor = field.getAnnotation(ImplementationFor.class);\r\n if (modeFor != null) {\r\n // This field has been explicitly annotated as an mode for some field or fields.\r\n String[] xpaths = modeFor.value();\r\n try {\r\n int modifier = field.getModifiers();\r\n if (Modifier.isStatic(modifier)) {\r\n field.setAccessible(true);\r\n Class<?> implClass = (Class<?>)field.get(null);\r\n IRuntimeImplementationProvider implProvider = new RuntimeImplementationProvider(implClass, xpaths);\r\n runtimeImplementationProviders.add(implProvider);\r\n }\r\n } catch (IllegalArgumentException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalAccessException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n }\r\n \r\n // Look for methods annotated with ImplementationFor. \r\n for (Method method : klass.getDeclaredMethods()) {\r\n ImplementationFor modeFor = method.getAnnotation(ImplementationFor.class);\r\n if (modeFor != null) {\r\n // This method has been explicitly annotated as the use for some field or fields.\r\n String[] xpaths = modeFor.value();\r\n try {\r\n int modifier = method.getModifiers();\r\n if (Modifier.isStatic(modifier)) {\r\n method.setAccessible(true);\r\n Class<?> implClass = (Class<?>)method.invoke(null);\r\n IRuntimeImplementationProvider implProvider = new RuntimeImplementationProvider(implClass, xpaths);\r\n runtimeImplementationProviders.add(implProvider);\r\n } else {\r\n IRuntimeImplementationProvider implProvider = new RuntimeImplementationProvider(klass, fieldDependency, method, xpaths);\r\n runtimeImplementationProviders.add(implProvider);\r\n }\r\n } catch (InvocationTargetException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalArgumentException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalAccessException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "65268d0f38bd3077cc183c72911553a6", "score": "0.46710777", "text": "private List<Class<?>> getParametersWithAnnotation(final Method method,\n final Class<? extends Annotation> annotationClass) {\n\n List<Class<?>> declaredParameters = AccessController\n .doPrivileged(new PrivilegedAction<List<Class<?>>>() {\n\n public List<Class<?>> run() {\n List<Class<?>> foundParameters = new ArrayList<Class<?>>();\n\n Class<?>[] parameterTypes = method.getParameterTypes();\n Annotation[][] parameterAnnotations = method.getParameterAnnotations();\n for (int i = 0; i < parameterTypes.length; i++) {\n\n if (isAnnotationPresent(parameterAnnotations[i], annotationClass)) {\n foundParameters.add(parameterTypes[i]);\n } else {\n foundParameters.add(null);\n }\n }\n return foundParameters;\n }\n\n });\n return declaredParameters;\n }", "title": "" }, { "docid": "ab00b0e41578645a80fa22eb72558618", "score": "0.46635434", "text": "void determineExtractedMethod(RelatedMethodsSettings settings);", "title": "" }, { "docid": "37b894afdea73af39ca3b1a43184e5ce", "score": "0.4663065", "text": "public <A extends Annotation> A getAnnotation(Class<A> acls)\n/* */ {\n/* 60 */ return null;\n/* */ }", "title": "" }, { "docid": "57231a6917b70e7ed073efaceb0e8839", "score": "0.4657708", "text": "@Override\n public synchronized void scan(Class<?> aClass, Map<String, Entry> map) {\n Arrays.stream(this.getMethod(aClass, ReflectionUtils.withAnnotation(VertxRegister.class)))\n .forEach(method -> {\n VertxRegister annotation = method.getDeclaredAnnotation(VertxRegister.class);\n try {\n Class vertCls = annotation.value();\n Type retunType = (method.getGenericReturnType()), innertype;\n innertype = (this.isFunctionInterface(retunType)\n && retunType instanceof ParameterizedType) ? ((ParameterizedType) retunType).getActualTypeArguments()[0] : void.class;\n\n if (vertCls == Verticle.class) return;\n VertxRegisterEntry vertxRegisterEntry;\n String key = this.key(vertCls, innertype, aClass);\n if (map.containsKey(key)) {\n vertxRegisterEntry = (VertxRegisterEntry) map.get(key);\n vertxRegisterEntry.methods.add(method);\n } else {\n vertxRegisterEntry = new VertxRegisterEntry();\n vertxRegisterEntry.verticleClass = vertCls;\n vertxRegisterEntry.VertxRegisterInnerType = innertype;\n vertxRegisterEntry.ServiceClass = aClass;\n vertxRegisterEntry.methods = new HashSet<>();\n vertxRegisterEntry.methods.add(method);\n map.put(key, vertxRegisterEntry);\n }\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n }\n });\n }", "title": "" }, { "docid": "c00afed31968bc09e163019eb245bc4f", "score": "0.46492913", "text": "private static <T extends Method> T findMethodType(Class<T> c,\n \t\t\tIClassDefinition cdef) {\n \t\tfor (Method m : cdef.getMethods())\n \t\t\tif (c.isInstance(m))\n \t\t\t\treturn c.cast(m);\n \t\treturn null;\n \t}", "title": "" }, { "docid": "ad33c455039f5139a9c93f514f733795", "score": "0.463918", "text": "@Override\n public void testOnInheritanceTree(String story, Class<?> testClass) throws Exception {\n if(story == null || testClass == null){\n throw new IllegalArgumentException();\n }\n boolean already = false;\n Object[] backup = null;\n Object inst = testClass.newInstance();\n ArrayList<ArrayList> sentences = parser(story);\n StoryTestExceptionImpl excep = new StoryTestExceptionImpl();\n for(ArrayList<String> sentence: sentences){\n String firstWord = sentence.get(0);\n if(firstWord.equals(\"Given\")){\n HashMap<Method, ArrayList<ArrayList>> right_method = checkClassTree(sentence, testClass);\n if(right_method.isEmpty()){\n throw new GivenNotFoundException();\n }\n List<Method> methodNames = right_method.entrySet().stream().map(Map.Entry::getKey).collect(Collectors.toList());\n List<ArrayList<ArrayList>> methodParams = right_method.entrySet().stream().map(Map.Entry::getValue).collect(Collectors.toList());\n ArrayList<String> params = methodParams.get(0).get(0);\n Class[] c = new Class[params.size()];\n Object[] convertedParams = convertParams(params, c);\n Method m = methodNames.get(0);\n m.setAccessible(true);\n m.invoke(inst, convertedParams);\n }\n if(firstWord.equals(\"When\")){\n HashMap<Method, ArrayList<ArrayList>> right_method = checkClassTree(sentence, testClass);\n if(right_method.isEmpty()){\n throw new WhenNotFoundException();\n }\n if(!already){\n Field[] origin = testClass.getDeclaredFields();\n backup = doBackup(origin, inst);\n already = true;\n }\n List<Method> methodNames = right_method.entrySet().stream().map(Map.Entry::getKey).collect(Collectors.toList());\n List<ArrayList<ArrayList>> methodParams = right_method.entrySet().stream().map(Map.Entry::getValue).collect(Collectors.toList());\n ArrayList<String> params = methodParams.get(0).get(0);\n Class[] c = new Class[params.size()];\n Object[] convertedParams = convertParams(params, c);\n Method m = methodNames.get(0);\n m.setAccessible(true);\n m.invoke(inst, convertedParams);\n }\n if(firstWord.equals(\"Then\")){\n HashMap<Method, ArrayList<ArrayList>> right_method = checkClassTree(sentence, testClass);\n if(right_method.isEmpty()){\n throw new ThenNotFoundException();\n }\n List<Method> methodNames = right_method.entrySet().stream().map(Map.Entry::getKey).collect(Collectors.toList());\n List<ArrayList<ArrayList>> methodParams = right_method.entrySet().stream().map(Map.Entry::getValue).collect(Collectors.toList());\n ArrayList<ArrayList> runs = methodParams.get(0);\n ArrayList<String> expected = new ArrayList<>();\n ArrayList<String> actual = new ArrayList<>();\n boolean success = false;\n for(ArrayList<String> run: runs){\n Class[] c = new Class[run.size()];\n Object[] convertedParams = convertParams(run, c);\n Method m = methodNames.get(0);\n try{\n m.setAccessible(true);\n m.invoke(inst, convertedParams);\n success = true;\n break;\n }catch(InvocationTargetException e){\n ComparisonFailure e1 = (ComparisonFailure) e.getCause();\n expected.add(e1.getExpected());\n actual.add(e1.getActual());\n }\n }\n if(!success){\n excep.incNumFails();\n if(excep.getNumFail() == 1){\n excep.setSentence(joinSentence(sentence));\n excep.setStoryExpected(expected);\n excep.setStoryActual(actual);\n }\n Field[] fields = testClass.getDeclaredFields();\n int counter = 0;\n for (Field f : fields) {\n f.setAccessible(true);\n f.set(inst,backup[counter]);\n counter++;\n }\n }\n already = false;\n }\n }\n if(excep.getNumFail() > 0){\n throw excep;\n }\n }", "title": "" }, { "docid": "5972e49bca29738a8182550da63b650b", "score": "0.4637604", "text": "private void findFactoryForAnnotations (Class<?> classClass, FieldDependency fieldDependency) {\n for (Method method : classClass.getDeclaredMethods()) {\r\n FactoryFor factoryFor = method.getAnnotation(FactoryFor.class);\r\n if (factoryFor != null) {\r\n // This method has been explicitly annotated as the variant for some field or fields.\r\n String[] xpaths = factoryFor.value();\r\n try {\r\n int modifier = method.getModifiers();\r\n if (Modifier.isStatic(modifier)) {\r\n method.setAccessible(true);\r\n Object factoryValue = method.invoke(null);\r\n IRuntimeFactoryProvider factoryProvider = new RuntimeFactoryProvider(factoryValue, xpaths);\r\n runtimeFactoryProviders.add(factoryProvider);\r\n } else {\r\n String[] fieldNames = factoryFor.value();\r\n IRuntimeFactoryProvider factoryProvider = new RuntimeFactoryProvider(classClass, fieldDependency, method, fieldNames);\r\n runtimeFactoryProviders.add(factoryProvider);\r\n }\r\n } catch (InvocationTargetException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalArgumentException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalAccessException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "c2d07cfa54a977cf8f2cbcf34f07efdd", "score": "0.4634508", "text": "private static Method m40881a(Class<?> cls, String str, Class... clsArr) {\n Method a = m40882a(cls.getDeclaredMethods(), str, clsArr);\n if (a != null) {\n a.setAccessible(true);\n return a;\n } else if (cls.getSuperclass() != null) {\n return m40881a((Class<?>) cls.getSuperclass(), str, clsArr);\n } else {\n throw new NoSuchMethodException();\n }\n }", "title": "" }, { "docid": "cde5db7eb651b9e43bda5e1836f160df", "score": "0.46337432", "text": "public static Collection<Method> findMatchingMethod(String methodNames,\r\n\t\t\tfinal Object[] arguments, Class<?> clazz) {\r\n\t\tMethod[] declaredMethods = clazz.getDeclaredMethods();\r\n\t\tList<Method> method = new ArrayList<Method>();\r\n\t\tfor (Method m : declaredMethods) {\r\n\t\t\tif (m.getName().equals(methodNames)) {\r\n\t\t\t\tClass<?>[] parameterTypes = m.getParameterTypes();\r\n\t\t\t\tif (parameterTypes.length == arguments.length) {\r\n\t\t\t\t\tboolean match = true;\r\n\t\t\t\t\tfor (int i = 0; i < arguments.length; i++) {\r\n\t\t\t\t\t\tif (arguments[i] == null)\r\n\t\t\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\t\t\tClass<?> methodParameterType = parameterTypes[i];\r\n\t\t\t\t\t\tClass<?> providedParameterType = arguments[i]\r\n\t\t\t\t\t\t\t\t.getClass();\r\n\t\t\t\t\t\tmethodParameterType = convertPrimitivesToWrapperType(methodParameterType);\r\n\r\n\t\t\t\t\t\tif (!methodParameterType\r\n\t\t\t\t\t\t\t\t.isAssignableFrom(providedParameterType)) {\r\n\r\n\t\t\t\t\t\t\tmatch = false;\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (match) {\r\n\r\n\t\t\t\t\t\tmethod.add(m);\r\n\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\treturn method;\r\n\r\n\t}", "title": "" }, { "docid": "293cbfa2fea3a8b82460f1489ed49570", "score": "0.46259448", "text": "public interface RegularCase {\n\n public void match2Model1();\n\n public void match2Model2();\n\n public void match2Model3();\n}", "title": "" }, { "docid": "e1df352724acc4d93cbef5d626d0f4e5", "score": "0.46239972", "text": "protected static final Map[] getFieldsMaps(final Class objectClass) {\r\n\r\n if (Log.isDebugEnabled( Log.ENGINE )) {\r\n Log.debug( Log.ENGINE, \"Getting field maps, in class Mapping\" );\r\n }\r\n\r\n final int GETTER = 0;\r\n final int SETTER = 1;\r\n\r\n\t\tfinal Method[] methods = objectClass.getMethods();\r\n\r\n\t\t// create map with all getters and setters\r\n // use a list for the cases where there are more than one getter or setter\r\n // we will use this list to match up the \"correct\" getters and setters later\r\n\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \"Assembling lists of all getters and setters.\" );\r\n }\r\n\r\n//\t\tfinal Map<String, Method[]> allMethods = new HashMap();\r\n final Map<String, List<Method>[]> allMethods = new HashMap();\r\n for (Method method : methods) {\r\n\t\t\tfinal String name = method.getName();\r\n\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \"Examining method: \" + name );\r\n }\r\n\r\n // get the field name from the method name; if the method name is invalid, skip this method.\r\n final String suffix = extractFieldName( name );\r\n if ( suffix == null ) {\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \"Skipping method: \" + name + \"; Invalid name.\" );\r\n }\r\n continue;\r\n }\r\n\r\n//\t\t\tfinal String suffix = name.substring(3); // strip off the leading \"get\" or \"set\"\r\n\r\n // Check to see if this datum is already mapped. If not, initialize this datum in the map.\r\n//\t\t\tMethod[] getterSetter = allMethods.get(suffix);\r\n\t\t\tList<Method>[] getterSetter = allMethods.get(suffix);\r\n\t\t\tif (getterSetter == null) {\r\n\t\t\t\tgetterSetter = new List[2];\r\n getterSetter[GETTER] = new ArrayList<Method>();\r\n getterSetter[SETTER] = new ArrayList<Method>();\r\n\t\t\t\tallMethods.put(suffix, getterSetter);\r\n\t\t\t}\r\n\r\n//\t\t\tif (name.startsWith(\"get\")) {\r\n if (name.startsWith(\"get\") || name.startsWith(\"is\")) {\r\n// || annotation != null && annotation.getter()\r\n//\t\t\t\tgetterSetter[GETTER] = method;\r\n getterSetter[GETTER].add(method);\r\n\t\t\t} else if (name.startsWith(\"set\")) {\r\n//\t\t\t\tgetterSetter[SETTER] = method;\r\n getterSetter[SETTER].add(method);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// assemble annotations, getters and setters maps\r\n\t\t// a field is only taken into consideration if it has a getter and a\r\n\t\t// setter\r\n // also create map containing the return type (ie, column data type)\r\n // for each getter (ie, each column)\r\n\r\n\t\tfinal Map<String, net.sf.persist.annotations.Column> annotationsMap = new HashMap();\r\n\t\tfinal Map<String, Method> gettersMap = new HashMap();\r\n\t\tfinal Map<String, Method> settersMap = new HashMap();\r\n final Map<String, Class> typesMap = new HashMap();\r\n\r\n\t\tfor (String suffix : allMethods.keySet()) {\r\n\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \"Winnowing and verifying lists of getters and setters for datum suffixed: \" + suffix );\r\n }\r\n\r\n\t\t\tfinal List<Method>[] getterSetter = allMethods.get(suffix);\r\n\r\n\t\t\t// only consider fields to have both getters and setters\r\n// if (getterSetter[GETTER] != null && getterSetter[SETTER] != null) {\r\n// if (getterSetter[GETTER].size() != 0 && getterSetter[SETTER].size() != 0) {\r\n if ( getterSetter[GETTER].size() == 0 || getterSetter[SETTER].size() == 0 ) {\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \" Found invalid number of getters and setters, require at least one of each.\" );\r\n Log.debug( Log.ENGINE, \" Found \" + getterSetter[GETTER].size() + \" getters and \" +\r\n getterSetter[SETTER].size() + \" setters. Moving to next datum suffix.\" );\r\n }\r\n }\r\n else {\r\n\r\n\t\t\t\t// field name (prefix with first char in lower case)\r\n // commented out so that we can do it all at once in the extractFieldName method\r\n//\t\t\t\tfinal String fieldName = suffix.substring(0, 1).toLowerCase() + suffix.substring(1);\r\n final String fieldName = suffix;\r\n\r\n\r\n // whittle down the list of getters and setters to a single, matched pair\r\n ArrayList<Method> temp;\r\n\r\n // first ... getters\r\n // we make the assumption that \"valid\" getters should not have parameters\r\n temp = new ArrayList<Method>();\r\n for (Method m : getterSetter[GETTER]) {\r\n if (m.getParameterTypes().length > 0) {\r\n// getterSetter[GETTER].remove(m);\r\n if (Log.isDebugEnabled( Log.ENGINE )) {\r\n Log.debug( Log.ENGINE, \" Getter [\" + m + \"] discarded; has multiple parameters: \" + m.getParameterTypes().length );\r\n }\r\n continue;\r\n }\r\n if (m.getReturnType() == void.class) {\r\n// getterSetter[GETTER].remove(m);\r\n if (Log.isDebugEnabled( Log.ENGINE )) {\r\n Log.debug( Log.ENGINE, \" Getter [\" + m + \"] discarded; has void as return parameter.\" );\r\n }\r\n continue;\r\n }\r\n if ( ! Persist.isNativeType( m.getReturnType())) {\r\n if (Log.isDebugEnabled( Log.ENGINE )) {\r\n Log.debug( Log.ENGINE, \" Getter [\" + m + \"] discarded; not a supported data type.\" );\r\n }\r\n continue;\r\n }\r\n temp.add(m);\r\n }\r\n getterSetter[GETTER] = temp;\r\n\r\n // now verify that we have only one getter in the list; if not, skip to next \"suffix\"\r\n if ( getterSetter[GETTER].size() != 1 ) {\r\n// throw new PersistException(\"After winnowing list of getters, there are none left!\");\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \" After winnowing list of getters, there are \" + getterSetter[GETTER].size() +\r\n \" left! (Should have only one (1).) Moving to next datum suffix.\" );\r\n }\r\n continue;\r\n }\r\n\r\n // now ... setters\r\n // Retrieve return type of remaining getter. All setters will be compared to this.\r\n Class returnType = getterSetter[GETTER].get( 0 ).getReturnType();\r\n\r\n // we make the assumption that valid setters should only have one parameter and\r\n // that it must be the same type as that returned by the getter\r\n temp = new ArrayList<Method>();\r\n for (Method m : getterSetter[SETTER]) {\r\n Class[] paramTypes = m.getParameterTypes();\r\n if (paramTypes.length != 1) {\r\n// getterSetter[SETTER].remove(m);\r\n if (Log.isDebugEnabled( Log.ENGINE )) {\r\n Log.debug( Log.ENGINE, \" Setter [\" + m + \"] discarded; should have one (1) parameter, but has: \" +\r\n paramTypes.length );\r\n }\r\n continue;\r\n }\r\n if (paramTypes[0] != returnType) {\r\n// getterSetter[SETTER].remove(m);\r\n if (Log.isDebugEnabled( Log.ENGINE )) {\r\n Log.debug( Log.ENGINE, \" Setter [\" + m + \"] discarded; should take parameter type: \" + returnType.toString() +\r\n \" but takes: \" + paramTypes[0].toString() );\r\n }\r\n continue;\r\n }\r\n temp.add(m);\r\n }\r\n getterSetter[SETTER] = temp;\r\n \r\n // now verify that we have only one setter in the list; if not, skip to next \"suffix\"\r\n if ( getterSetter[SETTER].size() != 1 ) {\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \" After winnowing list of setters, there are \" + getterSetter[SETTER].size() +\r\n \" left! (Should have only one (1).) Moving to next datum suffix.\" );\r\n }\r\n continue;\r\n }\r\n \r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \" Finished winnowing list of getters and setters:\" );\r\n Log.debug( Log.ENGINE, \" Found getter [ \" + getterSetter[GETTER].get(0) +\r\n \" ] which returns a [ \" + getterSetter[GETTER].get(0).getReturnType() + \" ]\" );\r\n Log.debug( Log.ENGINE, \" Found setter [ \" + getterSetter[SETTER].get(0) +\r\n \" ] which takes a [ \" + getterSetter[SETTER].get(0).getParameterTypes()[0] + \" ]\" ); \r\n Log.debug( Log.ENGINE, \" Verifying methods and annotations.\" );\r\n }\r\n\r\n // now we can proceed knowning\r\n\r\n\t\t\t\t// column annotation\r\n\t\t\t\tfinal net.sf.persist.annotations.Column getterAnnotation = getterSetter[GETTER].get(0)\r\n\t\t\t\t\t\t.getAnnotation(net.sf.persist.annotations.Column.class);\r\n\t\t\t\tfinal net.sf.persist.annotations.Column setterAnnotation = getterSetter[SETTER].get(0)\r\n\t\t\t\t\t\t.getAnnotation(net.sf.persist.annotations.Column.class);\r\n\r\n\t\t\t\t// if NoColumn is specified, don't use the field\r\n\t\t\t\tfinal net.sf.persist.annotations.NoColumn noPersistGetter = getterSetter[GETTER].get(0)\r\n\t\t\t\t\t\t.getAnnotation(net.sf.persist.annotations.NoColumn.class);\r\n\r\n\t\t\t\tfinal net.sf.persist.annotations.NoColumn noPersistSetter = getterSetter[SETTER].get(0)\r\n\t\t\t\t\t\t.getAnnotation(net.sf.persist.annotations.NoColumn.class);\r\n\r\n\t\t\t\t// check conflicting NoColumn and Column annotations\r\n\t\t\t\tif (noPersistGetter != null || noPersistSetter != null) {\r\n\t\t\t\t\tif (getterAnnotation != null || setterAnnotation != null) {\r\n\t\t\t\t\t\tthrow new PersistException(\"Field [\" + fieldName + \"] from class [\" + objectClass.getName()\r\n\t\t\t\t\t\t\t\t+ \"] has conflicting NoColumn and Column annotations\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// assert that getters and setters have valid and compatible types\r\n // these have already been checked (as non-fatal errors) in the \"winnowing\" code above\r\n // and can probably be removed\r\n\t\t\t\tif (getterSetter[SETTER].get(0).getParameterTypes().length != 1) {\r\n\t\t\t\t\tthrow new PersistException(\"Setter [\" + getterSetter[SETTER]\r\n\t\t\t\t\t\t\t+ \"] should have a single parameter but has \" + getterSetter[SETTER].get(0).getParameterTypes().length);\r\n\t\t\t\t}\r\n\t\t\t\tif (getterSetter[GETTER].get(0).getReturnType() == void.class) {\r\n\t\t\t\t\tthrow new PersistException(\"Getter [\" + getterSetter[GETTER] + \"] must have a return parameter\");\r\n\t\t\t\t}\r\n\t\t\t\tif (getterSetter[GETTER].get(0).getReturnType() != getterSetter[SETTER].get(0).getParameterTypes()[0]) {\r\n\t\t\t\t\tthrow new PersistException(\"Getter [\" + getterSetter[GETTER] + \"] and setter [\" + getterSetter[SETTER]\r\n\t\t\t\t\t\t\t+ \"] have incompatible types\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// check for annotations on the getter/setter\r\n\t\t\t\tnet.sf.persist.annotations.Column annotation = null;\r\n\r\n\t\t\t\tif (getterAnnotation != null && setterAnnotation != null) {\r\n\r\n\t\t\t\t\t// if both getter and setter have annotations, make sure\r\n\t\t\t\t\t// they are equals\r\n\t\t\t\t\tif (!getterAnnotation.equals(setterAnnotation)) {\r\n\r\n\t\t\t\t\t\tfinal String getterAnn = getterAnnotation.toString().substring(\r\n\t\t\t\t\t\t\t\tgetterAnnotation.toString().indexOf('(') + 1,\r\n\t\t\t\t\t\t\t\tgetterAnnotation.toString().lastIndexOf(')'));\r\n\r\n\t\t\t\t\t\tfinal String setterAnn = setterAnnotation.toString().substring(\r\n\t\t\t\t\t\t\t\tsetterAnnotation.toString().indexOf('(') + 1,\r\n\t\t\t\t\t\t\t\tsetterAnnotation.toString().lastIndexOf(')'));\r\n\r\n\t\t\t\t\t\tthrow new PersistException(\"Annotations for getter [\" + getterSetter[GETTER] + \"] and setter [\"\r\n\t\t\t\t\t\t\t\t+ getterSetter[SETTER] + \"] have different annotations [\" + getterAnn + \"] [\" + setterAnn\r\n\t\t\t\t\t\t\t\t+ \"]\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tannotation = getterAnnotation;\r\n\t\t\t\t} else if (getterAnnotation != null) {\r\n\t\t\t\t\tannotation = getterAnnotation;\r\n\t\t\t\t} else if (setterAnnotation != null) {\r\n\t\t\t\t\tannotation = setterAnnotation;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// make getter and setter accessible\r\n\t\t\t\tgetterSetter[GETTER].get(0).setAccessible(true);\r\n\t\t\t\tgetterSetter[SETTER].get(0).setAccessible(true);\r\n\r\n\t\t\t\tannotationsMap.put(fieldName, annotation);\r\n\t\t\t\tgettersMap.put(fieldName, getterSetter[GETTER].get(0));\r\n\t\t\t\tsettersMap.put(fieldName, getterSetter[SETTER].get(0));\r\n typesMap.put( fieldName, getterSetter[GETTER].get(0).getReturnType() );\r\n\r\n\t\t\t}\r\n\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \"Done processing datum suffixed: \" + suffix );\r\n }\r\n\t\t}\r\n\r\n if ( Log.isDebugEnabled( Log.ENGINE ) ) {\r\n Log.debug( Log.ENGINE, \"Recorded types for following suffixes: \" + typesMap.keySet().toString() );\r\n }\r\n\r\n\t\treturn new Map[] { annotationsMap, gettersMap, settersMap, typesMap };\r\n\t}", "title": "" }, { "docid": "c03e63ddafaf5a5d62e8d1a7e6756746", "score": "0.46191767", "text": "public interface Annotator {\n\n /**\n * Given an Annotation, perform a task on this Annotation.\n */\n public void annotate(Annotation annotation) ;\n\n /**\n * The Requirement is a general way of describing the pre and post\n * conditions of an Annotator running. Typical use is to have\n * constants for the different requirement types, such as the\n * TOKENIZE_REQUIREMENT below, and to reuse those constants instead\n * of creating new objects. It is also possible to subclass\n * Requirement if an Annotator has a more general output. For\n * example, one could imagine a TsurgeonAnnotator which has a wide\n * range of possible effects; this would probably subclass\n * Requirement to indicate which particular surgery it provided.\n * <br>\n * We do nothing to override the equals or hashCode methods. This\n * means that two Requirements are equal iff they are the same\n * object. We do not want to use <code>name</code> to decide\n * equality because a subclass that uses more information, such as\n * the particular kind of tsurgeon used in a hypothetical\n * TsurgeonAnnotator, cannot use a stricter equals() than the\n * superclass. It is hard to get stricter than ==.\n */\n public class Requirement {\n public final String name;\n public Requirement(String name) {\n this.name = name;\n }\n @Override\n public String toString() {\n return name;\n }\n }\n\n /**\n * Returns a set of requirements for which tasks this annotator can\n * provide. For example, the POS annotator will return \"pos\".\n */\n public Set<Requirement> requirementsSatisfied();\n\n /**\n * Returns the set of tasks which this annotator requires in order\n * to perform. For example, the POS annotator will return\n * \"tokenize\", \"ssplit\".\n */\n public Set<Requirement> requires();\n\n /**\n * These are annotators which StanfordCoreNLP knows how to create.\n * Add new annotators and/or annotators from other groups here!\n */\n public static final String STANFORD_TOKENIZE = \"tokenize\";\n public static final String STANFORD_CLEAN_XML = \"cleanxml\";\n public static final String STANFORD_SSPLIT = \"ssplit\";\n public static final String STANFORD_POS = \"pos\";\n public static final String STANFORD_LEMMA = \"lemma\";\n public static final String STANFORD_NER = \"ner\";\n public static final String STANFORD_REGEXNER = \"regexner\";\n public static final String STANFORD_ENTITY_MENTIONS = \"entitymentions\";\n public static final String STANFORD_GENDER = \"gender\";\n public static final String STANFORD_TRUECASE = \"truecase\";\n public static final String STANFORD_PARSE = \"parse\";\n public static final String STANFORD_DETERMINISTIC_COREF = \"dcoref\";\n public static final String STANFORD_RELATION = \"relation\";\n public static final String STANFORD_SENTIMENT = \"sentiment\";\n public static final String STANFORD_COLUMN_DATA_CLASSIFIER = \"cdc\";\n public static final String STANFORD_DEPENDENCIES = \"depparse\";\n public static final String STANFORD_NATLOG = \"natlog\";\n public static final String STANFORD_QUOTE = \"quote\";\n\n\n public static final Requirement TOKENIZE_REQUIREMENT = new Requirement(STANFORD_TOKENIZE);\n public static final Requirement CLEAN_XML_REQUIREMENT = new Requirement(STANFORD_CLEAN_XML);\n public static final Requirement SSPLIT_REQUIREMENT = new Requirement(STANFORD_SSPLIT);\n public static final Requirement POS_REQUIREMENT = new Requirement(STANFORD_POS);\n public static final Requirement LEMMA_REQUIREMENT = new Requirement(STANFORD_LEMMA);\n public static final Requirement NER_REQUIREMENT = new Requirement(STANFORD_NER);\n public static final Requirement GENDER_REQUIREMENT = new Requirement(STANFORD_GENDER);\n public static final Requirement TRUECASE_REQUIREMENT = new Requirement(STANFORD_TRUECASE);\n public static final Requirement PARSE_REQUIREMENT = new Requirement(STANFORD_PARSE);\n public static final Requirement DETERMINISTIC_COREF_REQUIREMENT = new Requirement(STANFORD_DETERMINISTIC_COREF);\n public static final Requirement RELATION_EXTRACTOR_REQUIREMENT = new Requirement(STANFORD_RELATION);\n public static final Requirement NATLOG_REQUIREMENT = new Requirement(STANFORD_NATLOG);\n public static final Requirement QUOTE_REQUIREMENT = new Requirement(STANFORD_QUOTE);\n\n /**\n * These are annotators which StanfordCoreNLP does not know how to\n * create by itself, meaning you would need to use the custom\n * annotator mechanism to create them. Note that some of them are\n * already included in other parts of the system, such as sutime,\n * which is already included in ner.\n */\n public static final Requirement GUTIME_REQUIREMENT = new Requirement(\"gutime\");\n public static final Requirement SUTIME_REQUIREMENT = new Requirement(\"sutime\");\n public static final Requirement HEIDELTIME_REQUIREMENT = new Requirement(\"heideltime\");\n public static final Requirement STEM_REQUIREMENT = new Requirement(\"stem\");\n public static final Requirement NUMBER_REQUIREMENT = new Requirement(\"number\");\n public static final Requirement TIME_WORDS_REQUIREMENT = new Requirement(\"timewords\");\n public static final Requirement QUANTIFIABLE_ENTITY_NORMALIZATION_REQUIREMENT = new Requirement(\"quantifiable_entity_normalization\");\n public static final Requirement COLUMN_DATA_CLASSIFIER = new Requirement(\"column_data_classifer\");\n\n /**\n * The Stanford Parser can produce this if it is specifically requested\n */\n public static final Requirement BINARIZED_TREES_REQUIREMENT = new Requirement(\"binarized_trees\");\n\n /**\n * These are typical combinations of annotators which may be used as\n * requirements by other annotators.\n */\n public static final Set<Requirement> TOKENIZE_AND_SSPLIT = Collections.unmodifiableSet(new ArraySet<Requirement>(TOKENIZE_REQUIREMENT, SSPLIT_REQUIREMENT));\n public static final Set<Requirement> TOKENIZE_SSPLIT_POS = Collections.unmodifiableSet(new ArraySet<Requirement>(TOKENIZE_REQUIREMENT, SSPLIT_REQUIREMENT, POS_REQUIREMENT));\n public static final Set<Requirement> TOKENIZE_SSPLIT_NER = Collections.unmodifiableSet(new ArraySet<Requirement>(TOKENIZE_REQUIREMENT, SSPLIT_REQUIREMENT, NER_REQUIREMENT));\n public static final Set<Requirement> TOKENIZE_SSPLIT_PARSE = Collections.unmodifiableSet(new ArraySet<Requirement>(TOKENIZE_REQUIREMENT, SSPLIT_REQUIREMENT, PARSE_REQUIREMENT));\n public static final Set<Requirement> TOKENIZE_SSPLIT_PARSE_NER = Collections.unmodifiableSet(new ArraySet<Requirement>(TOKENIZE_REQUIREMENT, SSPLIT_REQUIREMENT, PARSE_REQUIREMENT, NER_REQUIREMENT));\n public static final Set<Requirement> TOKENIZE_SSPLIT_POS_LEMMA = Collections.unmodifiableSet(new ArraySet<Requirement>(TOKENIZE_REQUIREMENT, SSPLIT_REQUIREMENT, POS_REQUIREMENT, LEMMA_REQUIREMENT));\n public static final Set<Requirement> PARSE_AND_TAG = Collections.unmodifiableSet(new ArraySet<Requirement>(POS_REQUIREMENT, PARSE_REQUIREMENT));\n public static final Set<Requirement> PARSE_TAG_BINARIZED_TREES = Collections.unmodifiableSet(new ArraySet<Requirement>(POS_REQUIREMENT, PARSE_REQUIREMENT, BINARIZED_TREES_REQUIREMENT));\n}", "title": "" }, { "docid": "777eebf7d14de7ebd9f27b5c2cf21f42", "score": "0.46162924", "text": "public void matchInlineMethod(TwowayMatching matching, List<SemanticNode> unmatchedMethods) {\n BiMap<SemanticNode, SemanticNode> one2oneMatchings = matching.one2oneMatchings;\n Map<SemanticNode, List<SemanticNode>> candidates = new HashMap<>();\n for (SemanticNode possiblyAddedMethod : unmatchedMethods) {\n List<SemanticNode> callers =\n possiblyAddedMethod.context.getIncomingEdges().stream()\n .filter(edge -> edge.getEdgeType().equals(EdgeType.CALL))\n .map(SemanticEdge::getSource)\n .collect(Collectors.toList());\n // methods or constructors\n List<SemanticNode> inlineTargets = new ArrayList<>();\n for (SemanticNode caller : callers) {\n if (one2oneMatchings.containsKey(caller)\n && caller.getParent().equals(possiblyAddedMethod.getParent())) {\n inlineTargets.add(caller);\n }\n }\n if (!inlineTargets.isEmpty()) {\n candidates.put(possiblyAddedMethod, inlineTargets);\n }\n }\n\n for (Map.Entry<SemanticNode, List<SemanticNode>> alternate : candidates.entrySet()) {\n SemanticNode callee = alternate.getKey();\n List<SemanticNode> callers = alternate.getValue();\n for (SemanticNode caller : callers) {\n SemanticNode callerOthers = one2oneMatchings.get(caller);\n NodeContext contextBase = caller.context;\n NodeContext contextOthers = callerOthers.context;\n double similarityBefore = SimilarityAlg.context(contextBase, contextOthers);\n\n contextBase.setOutgoingEdges(updateOutgoingEdges(contextBase, callee));\n double similarityAfter = SimilarityAlg.context(contextBase, contextOthers);\n\n if (similarityAfter > similarityBefore) {\n matching.markRefactoring(\n callerOthers, callee, RefactoringType.INLINE_METHOD, similarityAfter);\n }\n }\n }\n }", "title": "" }, { "docid": "de70fad08340a829d89c94e0c2c45046", "score": "0.46034184", "text": "private void findAndAdd(ClassNode type, MethodCallExpression methodCall) {\n if (method == null || methodCall == null) {\n return;\n }\n if (methodName.equals(methodCall.getMethodAsString()) && Methods.hasSameParameters(method, methodCall)) {\n usages.add(methodCall.getMethod());\n }\n }", "title": "" }, { "docid": "031a3d5537b989a2fda908b2c7a3b34b", "score": "0.4603018", "text": "@Override\n public List<ClassResult> searchClass(PatentForm s, Navbar page) {\n return null;\n }", "title": "" }, { "docid": "f7d2c7d08a100ef47525bd92e385a5cc", "score": "0.45878", "text": "private void processAnnotations (String fullClassName)\n throws SecurityException, ClassNotFoundException, NoSuchMethodException,\n IllegalAccessException, IllegalArgumentException, InvocationTargetException {\n processAnnotations(Class.forName(fullClassName));\n }", "title": "" }, { "docid": "adbe8963a2c6e675e72e4d2a83facf27", "score": "0.4583201", "text": "<A extends Annotation> A getAnnotation(Class<A> aClass);", "title": "" }, { "docid": "6104ed79ba2edfd4bb99c25a79f503cb", "score": "0.45785475", "text": "private MemberDefinition matchMethod(Environment env,\n ClassDefinition accessor,\n Identifier methodName,\n Type[] argumentTypes,\n boolean isAnonConstCall,\n Identifier accessPackage)\n throws AmbiguousMember, ClassNotFound {\n\n if (allMethods == null || !allMethods.isFrozen()) {\n // This may be too restrictive.\n throw new CompilerError(\"matchMethod called early\");\n // collectInheritedMethods(env);\n }\n\n // A tentative maximally specific method.\n MemberDefinition tentative = null;\n\n // A list of other methods which may be maximally specific too.\n List candidateList = null;\n\n // Get all the methods inherited by this class which\n // have the name `methodName'.\n Iterator methods = allMethods.lookupName(methodName);\n\n while (methods.hasNext()) {\n MemberDefinition method = (MemberDefinition)methods.next();\n\n // See if this method is applicable.\n if (!env.isApplicable(method, argumentTypes)) {\n continue;\n }\n\n // See if this method is accessible.\n if (accessor != null) {\n if (!accessor.canAccess(env, method)) {\n continue;\n }\n } else if (isAnonConstCall) {\n if (method.isPrivate() ||\n (method.isPackagePrivate() &&\n accessPackage != null &&\n !inSamePackage(accessPackage))) {\n // For anonymous constructor accesses, we\n // haven't yet built an accessing class.\n // We disallow anonymous classes from seeing\n // private/package-private inaccessible\n // constructors in their superclass.\n continue;\n }\n } else {\n // If accessor is null, we assume that the access\n // is allowed. Query: is this option used?\n }\n\n if (tentative == null) {\n // `method' becomes our tentative maximally specific match.\n tentative = method;\n } else {\n if (env.isMoreSpecific(method, tentative)) {\n // We have found a method which is a strictly better\n // match than `tentative'. Replace it.\n tentative = method;\n } else {\n // If this method could possibly be another\n // maximally specific method, add it to our\n // list of other candidates.\n if (!env.isMoreSpecific(tentative,method)) {\n if (candidateList == null) {\n candidateList = new ArrayList();\n }\n candidateList.add(method);\n }\n }\n }\n }\n\n if (tentative != null && candidateList != null) {\n // Find out if our `tentative' match is a uniquely\n // maximally specific.\n Iterator candidates = candidateList.iterator();\n while (candidates.hasNext()) {\n MemberDefinition method = (MemberDefinition)candidates.next();\n if (!env.isMoreSpecific(tentative, method)) {\n throw new AmbiguousMember(tentative, method);\n }\n }\n }\n\n return tentative;\n }", "title": "" }, { "docid": "3d386ff59beff826f5cf298c3b8e1488", "score": "0.45750982", "text": "abstract public Map<String,Set<MethodReflective>> getDeclaredMethods();", "title": "" }, { "docid": "99cf6a4aebccb148e83816d814cc0936", "score": "0.45585975", "text": "public abstract String getAnnotation(String key);", "title": "" }, { "docid": "59fc6c64b7e4c6fbaba24c722f87b02c", "score": "0.45498788", "text": "@Override\n public void testOnNestedClasses(String story, Class<?> testClass) throws Exception {\n if(story == null || testClass == null){\n throw new IllegalArgumentException();\n }\n boolean already = false;\n Object[] backup = null;\n Object inst = null;\n if(parent != null){\n Constructor<?> c = testClass.getDeclaredConstructor(parent.getClass());\n inst = c.newInstance(parent);\n } else {\n inst = testClass.newInstance();\n }\n ArrayList<ArrayList> sentences = parser(story);\n StoryTestExceptionImpl excep = new StoryTestExceptionImpl();\n for(ArrayList<String> sentence: sentences){\n String firstWord = sentence.get(0);\n if(firstWord.equals(\"Given\")){\n HashMap<Method, ArrayList<ArrayList>> right_method = checkClassTree(sentence, testClass);\n if(right_method.isEmpty()){\n Class<?>[] nested = testClass.getDeclaredClasses();\n for(Class<?> cla: nested){\n try{\n if(cla.isInterface()){\n continue;\n }\n parent = inst;\n testOnNestedClasses(story,cla);\n return;\n }catch(StoryTestExceptionImpl | WhenNotFoundException | ThenNotFoundException e1){\n throw e1;\n }catch (GivenNotFoundException e2){\n continue;\n }\n }\n throw new GivenNotFoundException();\n }\n List<Method> methodNames = right_method.entrySet().stream().map(Map.Entry::getKey).collect(Collectors.toList());\n List<ArrayList<ArrayList>> methodParams = right_method.entrySet().stream().map(Map.Entry::getValue).collect(Collectors.toList());\n ArrayList<String> params = methodParams.get(0).get(0);\n Class[] c = new Class[params.size()];\n Object[] convertedParams = convertParams(params, c);\n Method m = methodNames.get(0);\n m.setAccessible(true);\n m.invoke(inst, convertedParams);\n }\n if(firstWord.equals(\"When\")){\n HashMap<Method, ArrayList<ArrayList>> right_method = checkClassTree(sentence, testClass);\n if(right_method.isEmpty()){\n throw new WhenNotFoundException();\n }\n if(!already){\n Field[] origin = testClass.getDeclaredFields();\n backup = doBackup(origin,inst);\n already = true;\n }\n List<Method> methodNames = right_method.entrySet().stream().map(Map.Entry::getKey).collect(Collectors.toList());\n List<ArrayList<ArrayList>> methodParams = right_method.entrySet().stream().map(Map.Entry::getValue).collect(Collectors.toList());\n ArrayList<String> params = methodParams.get(0).get(0);\n Class[] c = new Class[params.size()];\n Object[] convertedParams = convertParams(params, c);\n Method m = methodNames.get(0);\n m.setAccessible(true);\n m.invoke(inst, convertedParams);\n }\n if(firstWord.equals(\"Then\")){\n HashMap<Method, ArrayList<ArrayList>> right_method = checkClassTree(sentence, testClass);\n if(right_method.isEmpty()){\n throw new ThenNotFoundException();\n }\n List<Method> methodNames = right_method.entrySet().stream().map(Map.Entry::getKey).collect(Collectors.toList());\n List<ArrayList<ArrayList>> methodParams = right_method.entrySet().stream().map(Map.Entry::getValue).collect(Collectors.toList());\n ArrayList<ArrayList> runs = methodParams.get(0);\n ArrayList<String> expected = new ArrayList<>();\n ArrayList<String> actual = new ArrayList<>();\n boolean success = false;\n for(ArrayList<String> run: runs){\n Class[] c = new Class[run.size()];\n Object[] convertedParams = convertParams(run, c);\n Method m = methodNames.get(0);\n try{\n m.setAccessible(true);\n m.invoke(inst, convertedParams);\n success = true;\n break;\n }catch(InvocationTargetException e){\n ComparisonFailure e1 = (ComparisonFailure) e.getCause();\n expected.add(e1.getExpected());\n actual.add(e1.getActual());\n }\n }\n if(!success){\n excep.incNumFails();\n if(excep.getNumFail() == 1){\n excep.setSentence(joinSentence(sentence));\n excep.setStoryExpected(expected);\n excep.setStoryActual(actual);\n }\n Field[] fields = testClass.getDeclaredFields();\n int counter = 0;\n for (Field f : fields) {\n f.setAccessible(true);\n f.set(inst,backup[counter]);\n counter++;\n }\n }\n already = false;\n }\n }\n if(excep.getNumFail() > 0){\n throw excep;\n }\n }", "title": "" }, { "docid": "eb8d3a68969bc87fc5424e6c40aa1e6d", "score": "0.45436323", "text": "private static void index(Node library, ClassNode clazz, MethodNode method, AnnotationNode annotation, boolean isParameterAnnotation){\n\t\t\n\t\tif(isParameterAnnotation){\n\t\t\t// TODO: consider parameter annotations\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString qualifiedClassName = clazz.name.replace(\"/\", \".\");\n\t\tint index = qualifiedClassName.lastIndexOf(\".\");\n\t\tString className = qualifiedClassName;\n\t\tString pkgName = \"\"; // default package\n\t\tif(index != -1){\n\t\t\tpkgName = qualifiedClassName.substring(0, index);\n\t\t\tclassName = qualifiedClassName.substring(index+1, qualifiedClassName.length());\n\t\t}\n\t\tfor(Node packageNode : Common.toQ(library).contained().nodes(XCSG.Package).selectNode(XCSG.name, pkgName).eval().nodes()){\n\t\t\tfor(Node classNode : Common.toQ(packageNode).contained().nodes(XCSG.Classifier).selectNode(XCSG.name, className).eval().nodes()){\n\t\t\t\tString methodName = method.name;\n\t\t\t\tif(methodName.equals(\"<init>\")){\n\t\t\t\t\t// this method is the constructor\n\t\t\t\t\tmethodName = className;\n\t\t\t\t}\n\t\t\t\tAtlasSet<Node> methodNodes = new AtlasHashSet<Node>(Common.toQ(classNode).contained().nodes(XCSG.Method).selectNode(XCSG.name, methodName).eval().nodes());\n\t\t\t\tNode methodNode = null;\n\t\t\t\tif(methodNodes.size() == 1){\n\t\t\t\t\tmethodNode = methodNodes.one();\n\t\t\t\t} else {\n\t\t\t\t\tQ paramEdges = Query.universe().edges(XCSG.HasParameter);\n\t\t\t\t\tif(method.desc.contains(\"()\")){\n\t\t\t\t\t\t// no parameters\n\t\t\t\t\t\t// save only the methods without any parameters\n\t\t\t\t\t\tmethodNodes = Common.toQ(methodNodes).difference(paramEdges.forward(Common.toQ(methodNodes)).retainEdges().retainNodes()).eval().nodes();\n\t\t\t\t\t\tif(methodNodes.size() == 1){\n\t\t\t\t\t\t\tmethodNode = methodNodes.one();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// strip method descriptor prefix and suffix\n\t\t\t\t\t\tString descriptor = method.desc;\n\t\t\t\t\t\tString[] parameters = descriptor.substring(descriptor.indexOf(\"(\")+1, descriptor.indexOf(\")\")).split(\";\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tQ typeOfEdges = Query.universe().edges(XCSG.TypeOf);\n\t\t\t\t\t\t\tfor(int i=0; i<parameters.length; i++){\n\t\t\t\t\t\t\t\tString parameter = parameters[i];\n\t\t\t\t\t\t\t\tif(!parameter.equals(\"\")){\n\t\t\t\t\t\t\t\t\tNode parameterType = BytecodeUtils.getTypeNode(parameter);\n\t\t\t\t\t\t\t\t\tmethodNodes = Common.toQ(methodNodes).intersection(typeOfEdges.predecessors(Common.toQ(parameterType)).selectNode(XCSG.parameterIndex, i).parent()).eval().nodes();\n\t\t\t\t\t\t\t\t\tif(methodNodes.size() == 1){\n\t\t\t\t\t\t\t\t\t\t// found our match\n\t\t\t\t\t\t\t\t\t\tmethodNode = methodNodes.one();\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e){\n\t\t\t\t\t\t\tLog.warning(\"Error parsing method parameter descriptors: \" + qualifiedClassName + \".\" + method.name + method.desc);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(methodNode != null){\n\t\t\t\t\tNode annotationNode = getOrCreateAnnotationNode(library, annotation);\n\t\t\t\t\t\n\t\t\t\t\tEdge annotatedWithEdge = Graph.U.createEdge(methodNode, annotationNode);\n\t\t\t\t\tannotatedWithEdge.tag(XCSG.Java.AnnotatedWith);\n\t\t\t\t\t\n\t\t\t\t\tString rawAnnotationText = getRawAnnotation(annotation, annotationNode);\n\t\t\t\t\tmethodNode.putAttr(JavaStopGap.ANNOTATION_RAW_TEXT, rawAnnotationText);\n\t\t\t\t} else {\n\t\t\t\t\tLog.warning(\"Could not find matching method for \" + qualifiedClassName + \".\" + method.name + method.desc);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1874d40fab8a3b085fb206ecb9576883", "score": "0.45424864", "text": "public interface MethodMapping extends MemberMapping<MethodMapping, ClassMapping> {\n\n /**\n * Gets the signature of this method mapping.\n *\n * @return The signature\n */\n MethodSignature getSignature();\n\n /**\n * Gets the de-obfuscated signature of this method mapping.\n *\n * @return The de-obfuscated signature\n * @since 0.5.0\n */\n default MethodSignature getDeobfuscatedSignature() {\n return new MethodSignature(this.getDeobfuscatedName(), this.getMappings().deobfuscate(this.getDescriptor()));\n }\n\n /**\n * Gets the {@link MethodDescriptor} of the method.\n *\n * @return The method descriptor\n * @see MethodSignature#getDescriptor()\n */\n default MethodDescriptor getDescriptor() {\n return this.getSignature().getDescriptor();\n }\n\n /**\n * Gets the obfuscated descriptor of the method.\n *\n * @return The obfuscated descriptor\n * @see MethodSignature#getDescriptor()\n * @see MethodDescriptor#toString()\n */\n default String getObfuscatedDescriptor() {\n return this.getDescriptor().toString();\n }\n\n /**\n * Gets the de-obfuscated descriptor of the method.\n *\n * @return The de-obfuscated descriptor\n * @see MethodSignature#getDescriptor()\n * @see MappingSet#deobfuscate(MethodDescriptor)\n */\n default String getDeobfuscatedDescriptor() {\n return this.getDeobfuscatedSignature().getDescriptor().toString();\n }\n\n /**\n * Gets an immutable view of all the {@link MethodParameterMapping}s\n * that belong to this method.\n *\n * @return The parameter mappings\n * @since 0.4.0\n */\n Collection<MethodParameterMapping> getParameterMappings();\n\n /**\n * Creates a {@link MethodParameterMapping} parented by this method, of\n * the given integer index.\n *\n * @param index The index of the parameter\n * @param deobfuscatedName The de-obfuscated name to give the parameter\n * @return The parameter mapping\n * @since 0.4.0\n */\n MethodParameterMapping createParameterMapping(final int index, final String deobfuscatedName);\n\n /**\n * Gets a {@link MethodParameterMapping}, if present, of the given\n * integer index.\n *\n * @param index The index of the parameter\n * @return The parameter mapping, wrapped in an {@link Optional}\n * @since 0.4.0\n */\n Optional<MethodParameterMapping> getParameterMapping(final int index);\n\n /**\n * Gets, or creates should it not exist, a parameter mapping of the\n * given integer index.\n *\n * @param index The index of the parameter\n * @return The parameter mapping\n * @since 0.4.0\n */\n default MethodParameterMapping getOrCreateParameterMapping(final int index) {\n return this.getParameterMapping(index)\n .orElseGet(() -> this.createParameterMapping(index, String.valueOf(index)));\n }\n\n /**\n * Establishes whether the method mapping contains a parameter mapping\n * of the integer index.\n *\n * @param index The index of the parameter\n * @return {@code true} should a parameter mapping of the given\n * index exists in the method mapping; {@code false} otherwise\n * @since 0.4.0\n */\n boolean hasParameterMapping(final int index);\n\n /**\n * Establishes whether the method mapping has a de-obfuscation mapping, or\n * has some mappings within it.\n *\n * @return {@code true} if the method mappings has mappings;\n * {@code false} otherwise\n * @since 0.4.0\n */\n default boolean hasMappings() {\n return this.hasDeobfuscatedName() ||\n this.getParameterMappings().stream().anyMatch(Mapping::hasDeobfuscatedName);\n }\n\n @Override\n default String getFullObfuscatedName() {\n return String.format(\"%s/%s\", this.getParent().getFullObfuscatedName(), this.getObfuscatedName());\n }\n\n @Override\n default String getFullDeobfuscatedName() {\n return String.format(\"%s/%s\", this.getParent().getFullDeobfuscatedName(), this.getDeobfuscatedName());\n }\n\n @Override\n default MethodMapping reverse(final ClassMapping parent) {\n final MethodMapping mapping = parent.createMethodMapping(this.getDeobfuscatedSignature(), this.getObfuscatedName());\n this.getParameterMappings().forEach(param -> param.reverse(mapping));\n return mapping;\n }\n\n @Override\n default MethodMapping merge(final MethodMapping with, final ClassMapping parent) {\n return MappingSetMerger.create(this.getMappings(), with.getMappings()).mergeMethod(this, with, parent);\n }\n\n @Override\n default MethodMapping copy(final ClassMapping parent) {\n final MethodMapping mapping = parent.createMethodMapping(this.getSignature(), this.getDeobfuscatedName());\n this.getParameterMappings().forEach(param -> param.copy(mapping));\n return mapping;\n }\n\n}", "title": "" }, { "docid": "848d19b9275653e3e2a22388111c5e98", "score": "0.45399278", "text": "public static void main(String[] args) throws ClassNotFoundException {\n\t\t\n\t\t\n\t\tClass class1=Class.forName(\"com.demo.MyClass\");\n\t\t\n\t\tConstructor[]constructors=class1.getConstructors();\n\t\t\n\t\tMethod[] methods=class1.getDeclaredMethods();\n\t\t\n\t\tfor(Method method: methods) {\n\t\t\tSystem.out.println(method.getName());\n\t\t\tif(method.isAnnotationPresent(MyAnno.class)) {\n\t\t\t\tMyAnno annotation = method.getAnnotation(MyAnno.class);\n\t\t\t\tSystem.out.println(annotation.isSyllabusDone()+\": \"+ annotation.hello());\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "16db5ab9ebb3a80128dfe7f198ef7203", "score": "0.45361707", "text": "public MemberDefinition findAnyMethod(Environment env, Identifier nm) throws ClassNotFound {\n MemberDefinition f;\n for (f = getFirstMatch(nm) ; f != null ; f = f.getNextMatch()) {\n if (f.isMethod()) {\n return f;\n }\n }\n\n // look in the super class\n ClassDeclaration sup = getSuperClass();\n if (sup == null)\n return null;\n return sup.getClassDefinition(env).findAnyMethod(env, nm);\n }", "title": "" }, { "docid": "d8e7165d09d74cb6bf2b80771394f1b0", "score": "0.45316368", "text": "@Test\n public void testAnnotation() {\n ApplicationContext context = new AnnotationConfigApplicationContext(TraceApplication.class);\n AnnotatedClass annotatedClass = (AnnotatedClass) context.getBean(\"annotatedClass\");\n annotatedClass.annotatedMethod(\"Igor\", 27);\n annotatedClass.notAnnotatedMethod(27, \"Igor\");\n }", "title": "" }, { "docid": "3a78926a43541525b71a43af36a147a1", "score": "0.45218468", "text": "private void verifySupportedByAnnotations(JstType jstType) {\r\n\t\tList<String> supportedBys = supportedByMap.get(jstType.getName());\t\r\n\t\tSystem.out.println(\"\\tSupportedBys \" + supportedBys);\r\n\t\tif (supportedBys == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tList<IJstMethod> sList = jstType.getMethods();\r\n\t\tList<IJstProperty> pList = jstType.getProperties();\r\n\t\tfor (String func : supportedBys) {\r\n\t\t\t\r\n\t\t\tboolean isFound = false;\r\n\t\t\tfor (IJstMethod m : sList) {\r\n\t\t\t\tif (m.getName().toString().equals(func)) {\r\n\t\t\t\t\tisFound = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} \r\n\t\t\t} //for m\r\n\t\t\tif (isFound) {\r\n\t\t\t\tSystem.out.println(\"\\t\\t\" + func + \" is found\");\r\n\t\t\t} else {\r\n\t\t\t\tfor (IJstProperty p : pList) {\r\n\t\t\t\t\tif (p.getName().toString().equals(func)) {\r\n\t\t\t\t\t\tisFound = true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (isFound) {\r\n\t\t\t\t\tSystem.out.println(\"\\t\\t\" + func + \" is found\");\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"\\t\\t\" + func + \" not found \" + YELL);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tassertTrue(\"\\t\\t\" + func + \" not found\", isFound);\r\n\t\t} //for func\t\t\r\n\t}", "title": "" }, { "docid": "78bf19cd991b905479426c102328b1bb", "score": "0.45174265", "text": "public abstract <T extends Annotation> T getAnnotation(Class<T> annotationClass);", "title": "" }, { "docid": "d875476ae47c591bd01a9f8fbe7963ba", "score": "0.44782662", "text": "public MemberDefinition findMethod(Environment env, Identifier nm, Type t)\n throws ClassNotFound {\n // look in the current class\n MemberDefinition f;\n for (f = getFirstMatch(nm) ; f != null ; f = f.getNextMatch()) {\n // Note that non-method types return false for equalArguments().\n if (f.getType().equalArguments(t)) {\n return f;\n }\n }\n\n // constructors are not inherited\n if (nm.equals(idInit)) {\n return null;\n }\n\n // look in the super class\n ClassDeclaration sup = getSuperClass();\n if (sup == null)\n return null;\n\n return sup.getClassDefinition(env).findMethod(env, nm, t);\n }", "title": "" }, { "docid": "74e016309d4f331285a08b368ba08147", "score": "0.44773886", "text": "private void findModeForAnnotations (Class<?> klass, Field[] fields, FieldDependency fieldDependency) {\n for (Field field : fields) {\r\n ModeFor modeFor = field.getAnnotation(ModeFor.class);\r\n if (modeFor != null) {\r\n // This field has been explicitly annotated as an mode for some field or fields.\r\n String[] xpaths = modeFor.value();\r\n try {\r\n int modifier = field.getModifiers();\r\n if (Modifier.isStatic(modifier)) {\r\n field.setAccessible(true);\r\n EntryMode mode = (EntryMode)field.get(null);\r\n IRuntimeModeProvider modeProvider = new RuntimeModeProvider(mode, xpaths);\r\n runtimeModeProviders.add(modeProvider);\r\n }\r\n } catch (IllegalArgumentException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalAccessException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n }\r\n \r\n // Look for methods annotated with ModeFor. \r\n for (Method method : klass.getDeclaredMethods()) {\r\n ModeFor modeFor = method.getAnnotation(ModeFor.class);\r\n if (modeFor != null) {\r\n // This method has been explicitly annotated as the use for some field or fields.\r\n String[] xpaths = modeFor.value();\r\n try {\r\n int modifier = method.getModifiers();\r\n if (Modifier.isStatic(modifier)) {\r\n method.setAccessible(true);\r\n EntryMode mode = (EntryMode)method.invoke(null);\r\n IRuntimeModeProvider modeProvider = new RuntimeModeProvider(mode, xpaths);\r\n runtimeModeProviders.add(modeProvider);\r\n } else {\r\n IRuntimeModeProvider modeProvider = new RuntimeModeProvider(klass, fieldDependency, method, xpaths);\r\n runtimeModeProviders.add(modeProvider);\r\n }\r\n } catch (InvocationTargetException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalArgumentException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalAccessException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "bc67d9f4867eaea13cd1ae5522f0e7aa", "score": "0.44736958", "text": "<A extends Annotation> A getAnnotation(Class<A> annotationClass);", "title": "" }, { "docid": "29aafb16420b3dda674a820b01ed9eaa", "score": "0.44698817", "text": "public void deofucateMethod(SootMethod sm) {\n\n\t\tBody body = sm.retrieveActiveBody();\n\t\tfor (Iterator<Unit> i = body.getUnits().snapshotIterator(); i.hasNext();) {\n\t\t\ttry {\n\t\t\t\tUnit unit = i.next();\n\t\t\t\tStmt stmt = (Stmt) unit;\n\t\t\t\tif (stmt.containsInvokeExpr()) {\n\t\t\t\t\tInvokeExpr iexp = (InvokeExpr) stmt.getInvokeExpr();\n\t\t\t\t\tString declaringClass = iexp.getMethod().getDeclaringClass().toString();\n\t\t\t\t\tString name = null;\n\t\t\t\t\tswitch (declaringClass) {\n\n\t\t\t\t\tcase ExtraTypes.MESSAGE_API:\n\n\t\t\t\t\t\tname = mApiMap.get(iexp.getMethod().getSubSignature());\n\t\t\t\t\t\tif (name != null) {\n\t\t\t\t\t\t\tSootMethod smr = iexp.getMethod().getDeclaringClass().getMethodByName(name);\n\t\t\t\t\t\t\tSootMethodRef ref = smr.makeRef();\n\t\t\t\t\t\t\tiexp.setMethodRef(ref);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase ExtraTypes.MESSAGE_CLIENT:\n\t\t\t\t\t\tname = mApiMap.get(iexp.getMethod().getSubSignature());\n\t\t\t\t\t\tif (name != null) {\n\t\t\t\t\t\t\tSootMethod smr = iexp.getMethod().getDeclaringClass().getMethodByName(name);\n\t\t\t\t\t\t\tSootMethodRef ref = smr.makeRef();\n\t\t\t\t\t\t\tiexp.setMethodRef(ref);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ExtraTypes.MESSAGE_EVENT:\n\t\t\t\t\t\tname = mEventMap.get(iexp.getMethod().getSubSignature());\n\n\t\t\t\t\t\tif (name != null) {\n\t\t\t\t\t\t\tSootMethod smr = iexp.getMethod().getDeclaringClass().getMethodByName(name);\n\t\t\t\t\t\t\tSootMethodRef ref = smr.makeRef();\n\t\t\t\t\t\t\tiexp.setMethodRef(ref);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase ExtraTypes.DATA_CLIENT:\n\t\t\t\t\t\tname = dClientMap.get(iexp.getMethod().getSubSignature());\n\t\t\t\t\t\tif (name != null) {\n\t\t\t\t\t\t\tSootMethod smr = iexp.getMethod().getDeclaringClass().getMethodByName(name);\n\t\t\t\t\t\t\tSootMethodRef ref = smr.makeRef();\n\t\t\t\t\t\t\tiexp.setMethodRef(ref);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase ExtraTypes.DATA_API:\n\t\t\t\t\t\tname = dApiMap.get(iexp.getMethod().getSubSignature());\n\t\t\t\t\t\tif (name != null) {\n\t\t\t\t\t\t\tSootMethod smr = iexp.getMethod().getDeclaringClass().getMethodByName(name);\n\t\t\t\t\t\t\tSootMethodRef ref = smr.makeRef();\n\t\t\t\t\t\t\tiexp.setMethodRef(ref);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase ExtraTypes.DATA_EVENT:\n\t\t\t\t\t\tname = dEventMap.get(iexp.getMethod().getSubSignature());\n\t\t\t\t\t\tif (name != null) {\n\t\t\t\t\t\t\tSootMethod smr = iexp.getMethod().getDeclaringClass().getMethodByName(name);\n\t\t\t\t\t\t\tSootMethodRef ref = smr.makeRef();\n\t\t\t\t\t\t\tiexp.setMethodRef(ref);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ExtraTypes.DATA_ITEM:\n\t\t\t\t\t\tname = dataItemMap.get(iexp.getMethod().getSubSignature());\n\t\t\t\t\t\tif (name != null) {\n\t\t\t\t\t\t\tSootMethod smr = iexp.getMethod().getDeclaringClass().getMethodByName(name);\n\t\t\t\t\t\t\tSootMethodRef ref = smr.makeRef();\n\t\t\t\t\t\t\tiexp.setMethodRef(ref);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ExtraTypes.PUT_DATA_MAP_REQUEST:\n\t\t\t\t\t\tname = pdmrMap.get(iexp.getMethod().getSubSignature());\n\t\t\t\t\t\tif (name != null) {\n\t\t\t\t\t\t\tSootMethod smr = iexp.getMethod().getDeclaringClass().getMethodByName(name);\n\t\t\t\t\t\t\tSootMethodRef ref = smr.makeRef();\n\t\t\t\t\t\t\tiexp.setMethodRef(ref);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ExtraTypes.PUT_DATA_REQUEST:\n\t\t\t\t\t\tname = pdrMap.get(iexp.getMethod().getSubSignature());\n\t\t\t\t\t\tif (name != null) {\n\t\t\t\t\t\t\tSootMethod smr = iexp.getMethod().getDeclaringClass().getMethodByName(name);\n\t\t\t\t\t\t\tSootMethodRef ref = smr.makeRef();\n\t\t\t\t\t\t\tiexp.setMethodRef(ref);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ExtraTypes.DATA_MAP_ITEM:\n\t\t\t\t\t\tname = dMapItemMap.get(iexp.getMethod().getSubSignature());\n\t\t\t\t\t\tif (name != null) {\n\t\t\t\t\t\t\tSootMethod smr = iexp.getMethod().getDeclaringClass().getMethodByName(name);\n\t\t\t\t\t\t\tSootMethodRef ref = smr.makeRef();\n\t\t\t\t\t\t\tiexp.setMethodRef(ref);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ExtraTypes.DATA_MAP:\n\t\t\t\t\t\tname = dMapMap.get(iexp.getMethod().getSubSignature());\n\t\t\t\t\t\tif (name != null) {\n\t\t\t\t\t\t\tList<Type> params = iexp.getMethod().getParameterTypes();\n\t\t\t\t\t\t\tType rtype = iexp.getMethod().getReturnType();\n\t\t\t\t\t\t\tList<SootMethod> methods = util.searchMethodsFull(iexp.getMethod().getDeclaringClass(),\n\t\t\t\t\t\t\t\t\tparams, rtype);\n\t\t\t\t\t\t\tif (methods.size() > 0) {\n\t\t\t\t\t\t\t\tSootMethod smr = getMethodByName(methods, name);\n\t\t\t\t\t\t\t\tif (smr == null)\n\t\t\t\t\t\t\t\t\tthrow new Exception(\"this is wrong! Two method with same name and signature\");\n\t\t\t\t\t\t\t\tSootMethodRef ref = smr.makeRef();\n\t\t\t\t\t\t\t\tiexp.setMethodRef(ref);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tString msg = \"Method: \" + sm.toString() + \" - Stmt: \" + i.toString();\n\t\t\t\tlogger.error(msg);\n\t\t\t\te.printStackTrace();\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7286c68e3af0579ad723639aa13592a1", "score": "0.4468326", "text": "private void findDefaultForAnnotations (Class<?> classClass, Field[] fields, FieldDependency fieldDependency) {\n for (Field field : fields) {\r\n DefaultFor defaultFor = field.getAnnotation(DefaultFor.class);\r\n if (defaultFor != null) {\r\n // This field has been explicitly annotated as the default for some field or fields.\r\n String[] xpaths = defaultFor.value();\r\n try {\r\n int modifier = field.getModifiers();\r\n if (Modifier.isStatic(modifier)) {\r\n field.setAccessible(true);\r\n Object defaultValue = field.get(null);\r\n IRuntimeDefaultProvider defaultProvider = new RuntimeDefaultProvider(defaultValue, xpaths);\r\n runtimeDefaultProviders.add(defaultProvider);\r\n }\r\n } catch (IllegalArgumentException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalAccessException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n }\r\n\r\n // Look for methods annotated with DefaultFor. \r\n for (Method method : classClass.getDeclaredMethods()) {\r\n DefaultFor defaultFor = method.getAnnotation(DefaultFor.class);\r\n if (defaultFor != null) {\r\n // This method has been explicitly annotated as the default for some field or fields.\r\n String[] fieldNames = defaultFor.value();\r\n try {\r\n int modifier = method.getModifiers();\r\n if (Modifier.isStatic(modifier)) {\r\n method.setAccessible(true);\r\n Object defaultValue = method.invoke(null);\r\n IRuntimeDefaultProvider defaultProvider = new RuntimeDefaultProvider(defaultValue, fieldNames);\r\n runtimeDefaultProviders.add(defaultProvider);\r\n } else {\r\n// Class<?>[] methodParams = method.getParameterTypes();\r\n// boolean isIndex;\r\n// if (methodParams.length == 0) {\r\n// isIndex = false;\r\n// } else if (methodParams.length == 1 && methodParams[0] == Integer.TYPE) {\r\n// isIndex = true;\r\n// } else {\r\n// throw new RuntimeException(\"DefaultFor method must have no parameters or a single int parameter\");\r\n// }\r\n IRuntimeDefaultProvider defaultProvider = new RuntimeDefaultProvider(classClass, fieldDependency, method, fieldNames);\r\n runtimeDefaultProviders.add(defaultProvider);\r\n }\r\n } catch (InvocationTargetException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalArgumentException e) {\r\n throw new RuntimeException(e);\r\n } catch (IllegalAccessException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "5ff327cd9d2b1acc2b78ce3c8a7ac6c7", "score": "0.44616744", "text": "private DefinitionMethod getDefininitionMethod(String query) {\n String upperQuery = query.toUpperCase().replaceAll(\"\\\\s{2,}\", \" \").trim();\n\n for (String method : CASSANDRA_DEFINITION_METHODS) {\n if (upperQuery.startsWith(method)) {\n return DefinitionMethod.valueOf(method.replace(' ', '_'));\n }\n }\n return DefinitionMethod.NOT_FOUND;\n }", "title": "" }, { "docid": "ede7d7d3593396cebce2f0a2f3193cad", "score": "0.44599327", "text": "private static Method getMethod(int requireMod, int bannedMod, Class<?> clazz, String methodName, Class<?>... params) {\n for (Method method : clazz.getDeclaredMethods()) {\n // Limitation: Doesn't handle overloads\n if ((method.getModifiers() & requireMod) == requireMod &&\n (method.getModifiers() & bannedMod) == 0 &&\n (methodName == null || method.getName().equals(methodName)) && \n Arrays.equals(method.getParameterTypes(), params)) {\n \n method.setAccessible(true);\n return method;\n }\n }\n // Search in every superclass\n if (clazz.getSuperclass() != null)\n return getMethod(requireMod, bannedMod, clazz.getSuperclass(), methodName, params);\n throw new IllegalStateException(String.format(\n \"Unable to find method %s (%s).\", methodName, Arrays.asList(params)));\n }", "title": "" }, { "docid": "d216f102d0aba42f2db7670214e518ad", "score": "0.44543436", "text": "public void classFound(Class clazz) {\n }", "title": "" }, { "docid": "77ddd5e0a9f052d33541dca458280988", "score": "0.4454072", "text": "static Map<String, List<Annotation>> getAnnotationsMap(Class<? extends ParaObject> clazz, Set<String> fields) {\n\t\tHashMap<String, List<Annotation>> map = new HashMap<String, List<Annotation>>();\n\t\ttry {\n\t\t\tList<Field> fieldlist = getAllDeclaredFields(clazz);\n\n\t\t\tif (fields != null && !fields.isEmpty()) {\n\t\t\t\tfor (Iterator<Field> it = fieldlist.iterator(); it.hasNext();) {\n\t\t\t\t\tField field = it.next();\n\t\t\t\t\tif (!fields.contains(field.getName())) {\n\t\t\t\t\t\tit.remove();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (Field field : fieldlist) {\n\t\t\t\tAnnotation[] annos = field.getAnnotations();\n\t\t\t\tif (annos.length > 1) {\n\t\t\t\t\tArrayList<Annotation> list = new ArrayList<Annotation>();\n\t\t\t\t\tfor (Annotation annotation : annos) {\n\t\t\t\t\t\tif (!annotation.annotationType().equals(Stored.class)) {\n\t\t\t\t\t\t\tlist.add(annotation);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tmap.put(field.getName(), list);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(null, ex);\n\t\t}\n\t\treturn map;\n\t}", "title": "" }, { "docid": "e30eb2ce5fa30cbe9d06aa937f9114b4", "score": "0.44453987", "text": "@Override\n public AnnotationVisitor visitAnnotation(final String desc, final boolean visible) {\n isClassAnnotated = annotations.contains(desc) || isClassAnnotated;\n return null;\n }", "title": "" }, { "docid": "687dd54a9a85e66e8cdac71b3b696c5c", "score": "0.4444409", "text": "protected Map<String,Method> extractSettersMap (final Class<V> valsClass)\n {\n final Collection<? extends Method> sl=AttributeMethodType.getAccessibleSetters(valsClass);\n final int numSetters=(null == sl) ? 0 : sl.size();\n if (numSetters <= 0)\n return null;\n\n Map<String,Method> sMap=null;\n Collection<Method> dups=null;\n for (final Method m : sl)\n {\n final String name=AttributeMethodType.SETTER.getPureAttributeName(m);\n if ((null == name) || (name.length() <= 0))\n continue; // should not happen\n\n if (null == sMap)\n sMap = new TreeMap<String,Method>(String.CASE_INSENSITIVE_ORDER);\n\n final Method prev=sMap.put(name, m);\n if (prev != null)\n {\n if (null == dups)\n dups = new LinkedList<Method>();\n dups.add(prev);\n }\n }\n\n return handleDuplicateMethods(valsClass, sMap, dups);\n }", "title": "" }, { "docid": "e75f5d6e200985033fa1df231ea7b322", "score": "0.44437596", "text": "public abstract boolean isAnnotatedBy(Class<? extends Annotation> annotationClass);", "title": "" }, { "docid": "1daf2db4d3fb2d1ba1ac4873ed2dbd8d", "score": "0.44437572", "text": "private static String readMethod (BufferedReader br, CompilationUnit main)\n throws IOException {\n BufferedReader b = br;\n String ret = \"\";\n boolean readComplete = false;\n while(!readComplete) {\n ret = b.readLine();\n\n //get the main class of the main file\n String className = main.getStorage().get().getFileName().toString();\n className = className.substring(0, className.length() - 5);\n ClassOrInterfaceDeclaration c = main.getClassByName(className).get();\n\n //Count the methods with the given name\n int amountMethods = 0;\n for(BodyDeclaration<?> current : c.getMembers()) {\n if (current.isMethodDeclaration()) {\n String name = current.asMethodDeclaration().getName().toString();\n if (name.equals(ret)) {\n amountMethods++;\n }\n }\n }\n\n //Restart if there is not exactly one method with this name\n if (amountMethods == 0) {\n print(\"The given method is not in this class. Input again!\");\n b = standardIn;\n } else if (amountMethods == 1) {\n readComplete = true;\n } else {\n print(\"Only one method with this name may exist in this class.\" +\n \" Input again!\");\n b = standardIn;\n }\n }\n validInputs.add(ret);\n return ret;\n }", "title": "" }, { "docid": "544113e5edb471f67cc1165bcdd37ef7", "score": "0.44425434", "text": "private static boolean isAnnotedClass(Class<?> entityClass, Class<?> annotationClass)\r\n\t{\r\n\t//\tMap checking\r\n\t//\r\n\t\tMap<String, Class<?>> propertyAnnotations = _annotationMap.get(entityClass);\r\n\t\tif (propertyAnnotations == null)\r\n\t\t{\r\n\t\t//\tCompute property annotations\r\n\t\t//\r\n\t\t\tpropertyAnnotations = getGileadAnnotations(entityClass);\r\n\t\t\tsynchronized (_annotationMap)\r\n\t\t\t{\r\n\t\t\t\t_annotationMap.put(entityClass, propertyAnnotations);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t//\tDoes the map contains @ServerOnly annotation ?\r\n\t//\r\n\t\tif (propertyAnnotations != null)\r\n\t\t{\r\n\t\t\tfor (Map.Entry<String, Class<?>> entry : propertyAnnotations.entrySet())\r\n\t\t\t{\r\n\t\t\t\tClass<?> annotation = entry.getValue();\r\n\t\t\t\t\r\n\t\t\t\tif (LimitedAccess.class.equals(annotation))\r\n\t\t\t\t{\r\n\t\t\t\t//\tConsider that it can be ServerOnly or ReadOnly...\r\n\t\t\t\t//\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (annotation != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((annotationClass == null) ||\r\n\t\t\t\t\t\t(annotationClass.equals(annotation) == true))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t//\tFound \r\n\t\t\t\t\t//\r\n\t\t\t\t\t\treturn true;\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\treturn false;\r\n\t}", "title": "" }, { "docid": "6a9b8cf361be0ac46ff88e9259ddda20", "score": "0.4439335", "text": "public interface Annotatable {\r\n\r\n\t/**\r\n\t * Add a new annotation.\r\n\t * @param key\r\n\t * @param value\r\n\t */\r\n\tpublic abstract void addAnnotation(String key, String value);\r\n\r\n\t/**\r\n\t * Removes an annotation.\r\n\t * @param key\r\n\t * @return the value of the removed annotation or null if there is no such annotation\r\n\t */\r\n\tpublic abstract String removeAnnotation(String key);\r\n\t\r\n\t/**\r\n\t * Get the annotation value for a given key.\r\n\t * @param key the key\r\n\t * @return the value or null if there is no such annotation\r\n\t */\r\n\tpublic abstract String getAnnotation(String key);\r\n\r\n\t/**\r\n\t * Add all Annotations.\r\n\t * @param newAnnotations\r\n\t */\r\n\tpublic void addAnnotations(Map<String,String> newAnnotations);\r\n\r\n\tpublic abstract Map<String, String> getAnnotations();\r\n\r\n}", "title": "" }, { "docid": "74fcd6e3324300d595e4031a7a5b62a1", "score": "0.44374245", "text": "boolean matches(Method method);", "title": "" }, { "docid": "f3f174cad52e3811717ce9c4a17690ae", "score": "0.44152358", "text": "@Test\r\n\tpublic void testMethodHasParameters() {\r\n\t\t\r\n\t\tLOG.info(\"testMethodHasParameters\");\r\n\t\t\r\n\t\tboolean resp = false;\r\n\t\t\r\n\t\tMap<String, Method> methodsMap = new TreeMap<String, Method>();\r\n\t\t\r\n\t\tmethodsMap = reflectionUtil.getMethodsMap(new String());\r\n\t\t\r\n\t\tassertTrue(methodsMap != null, \"El mapa deberia ser diferente de null\");\r\n\t\t\r\n\t\tMethod method = methodsMap.get(\"valueOf\");\r\n\t\t\r\n\t\tassertTrue(method != null, \"El metodo deberia ser diferente de null\");\r\n\t\t\r\n\t\tresp = reflectionUtil.methodHasParameters(method);\r\n\t\t\r\n\t\tLOG.info(\"El metodo [\" + method + \"] contiene parametros? -> \" + resp);\r\n\t\t\r\n\t\tassertTrue(resp, \"El metodo deberia contener parametros\");\r\n\t\t\r\n\t\tmethod = methodsMap.get(\"trim\");\r\n\t\t\r\n\t\tassertTrue(method != null, \"El metodo deberia ser diferente de null\");\r\n\t\t\r\n\t\tresp = reflectionUtil.methodHasParameters(method);\r\n\t\t\r\n\t\tLOG.info(\"El metodo [\" + method + \"] contiene parametros? -> \" + resp);\r\n\t\t\r\n\t\tassertFalse(resp, \"El metodo no deberia contener parametros\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6eeabad7e5195861f4e0b989e61baa57", "score": "0.44033295", "text": "private <T extends Annotation> List<Annotation> lookupMetaAnnotationPath(Class<T> metaAnnotationClass, Class<?> curElement) {\n\t\t//is this element annotated with queried annotation?\n\t\tAnnotation metaAnnotation = curElement.getAnnotation(metaAnnotationClass);\n\t\tif (metaAnnotation != null)\n\t\t\treturn Arrays.asList(metaAnnotation);\n\t\t\n\t\tAnnotation[] annotations = curElement.getAnnotations();\n\t\tfor (Annotation annotation : annotations) {\n\t\t\t//is any annotation on this element annotated with the queried annotation?\n\t\t\tList<Annotation> metaAnnotationPath = lookupMetaAnnotationPath(metaAnnotationClass, annotation.annotationType());\n\t\t\tif (!metaAnnotationPath.isEmpty()){\n\t\t\t\tLinkedList<Annotation> newPath = new LinkedList<>(metaAnnotationPath);\n\t\t\t\tnewPath.push(annotation);\n\t\t\t\treturn newPath;\n\t\t\t}\n\t\t}\n\t\treturn Collections.emptyList();\n\t}", "title": "" }, { "docid": "298dac61dc0afbe70cf18858b1177121", "score": "0.44031662", "text": "public java.lang.reflect.Method selectMethod(org.python.Object[] args, java.util.Map<java.lang.String, org.python.Object> kwargs) {\n // org.Python.debug(\"Method options: \", this.methods);\n\n java.lang.reflect.Method method = null;\n java.lang.StringBuilder signature = new java.lang.StringBuilder();\n java.lang.Class<?>[] arg_types = new java.lang.Class<?>[args.length];\n int n_args = args.length;\n for (int i = 0; i < n_args; i++) {\n if (args[i] == null) {\n arg_types[i] = null;\n } else if (args[i].toJava() == null) {\n arg_types[i] = null;\n } else {\n arg_types[i] = args[i].toJava().getClass();\n }\n signature.append(Function.descriptor(arg_types[i]));\n }\n // org.Python.debug(\"Argument signature\", signature);\n method = this.methods.get(signature.toString());\n\n // No pre-cached match - need to try alternatives for signature.\n if (method == null) {\n java.util.List<java.lang.reflect.Method> candidates = new java.util.ArrayList<java.lang.reflect.Method>();\n java.lang.Class<?>[] param_types = null;\n Function.MatchType param_match = Function.MatchType.EXACT_MATCH;\n\n for (java.lang.reflect.Method candidate : this.methods.values()) {\n param_types = candidate.getParameterTypes();\n\n // Candidate must have the same number of parameters as\n // there are arguments.\n if (param_types.length == n_args) {\n\n // Check each parameter; the argument must be a\n // subclass of the parameter type.\n boolean match = true;\n for (int i = 0; i < n_args; i++) {\n if (Function.parameterMatch(arg_types[i], param_types[i]) == Function.MatchType.NO_MATCH) {\n match = false;\n }\n }\n\n if (match) {\n // org.Python.debug(\"New candidate\", candidate);\n candidates.add(candidate);\n // } else {\n // org.Python.debug(\"Ignore candidate; non-matching signature\", candidate);\n }\n // } else {\n // org.Python.debug(\"Ignore candidate; wrong number of parameters\", candidate);\n }\n }\n\n // Now work out *which* candidate is the most specific match.\n java.lang.Class<?>[] candidate_types;\n Function.MatchType candidate_match;\n // org.Python.debug(\"Choose best candidate...\", candidates);\n for (java.lang.reflect.Method candidate : candidates) {\n // org.Python.debug(\"Evaluate candidate\", candidate);\n if (method == null) {\n // org.Python.debug(\"New best (default) candidate\", candidate);\n method = candidate;\n param_types = candidate.getParameterTypes();\n for (int i = 0; i < n_args; i++) {\n candidate_match = Function.parameterMatch(arg_types[i], param_types[i]);\n // org.Python.debug(java.lang.String.format(\"Parameter %d has match\", i), candidate_match);\n if (param_match.betterThan(candidate_match)) {\n param_match = candidate_match;\n }\n }\n // org.Python.debug(\"Candidate match:\", param_match);\n } else {\n candidate_types = candidate.getParameterTypes();\n candidate_match = Function.MatchType.EXACT_MATCH;\n Function.MatchType match;\n for (int i = 0; i < n_args; i++) {\n match = Function.parameterMatch(arg_types[i], candidate_types[i]);\n // org.Python.debug(java.lang.String.format(\"Parameter %d has match\", i), match);\n if (candidate_match.betterThan(match)) {\n candidate_match = match;\n }\n }\n // org.Python.debug(\"Candidate match:\", candidate_match);\n\n if (candidate_match.betterThan(param_match)) {\n // org.Python.debug(\"New best candidate\", candidate);\n method = candidate;\n param_types = candidate_types;\n param_match = candidate_match;\n }\n }\n }\n\n // If there is still no match, raise an error.\n if (method == null) {\n throw new org.python.exceptions.RuntimeError(\n java.lang.String.format(\n \"No candidate method found for signature %s(%s); tried %s\",\n this.name,\n signature.toString(),\n candidates\n )\n );\n }\n\n // We have a match that wasn't previously in the this.methods dictionary;\n // Cache it for later use.\n this.methods.put(signature.toString(), method);\n }\n\n return method;\n }", "title": "" }, { "docid": "8c385318d92da76714a02ea86147a157", "score": "0.43939534", "text": "public static AnnotationResult<Annotation> findApp() {\n return findApp(AppMain.reflections);\n }", "title": "" }, { "docid": "fddedf8f59d51d89ad7f5b84fde5f959", "score": "0.4379285", "text": "public void testFull(){\r\n _class _c = _class.of(\r\n \"package blah.fromscratch;\",\r\n \"\",\r\n \"import blah.dat.*;\",\r\n \"import aaaa.bbbb.C;\",\r\n \"import java.util.Map;\",\r\n \"import java.util.HashMap;\",\r\n \"\",\r\n \"/** class JAVADOC */\",\r\n \"@ann\",\r\n \"@ann2(k=1,v='y')\",\r\n \"public class Cgg<T extends Impl> \",\r\n \" extends Base implements A, B {\",\r\n \"\",\r\n \" static{\",\r\n \" System.out.println(34);\",\r\n \" }\",\r\n \"\",\r\n \" /** field JAVADOC */\",\r\n \" @ann\",\r\n \" @ann2(k=2,v='g')\",\r\n \" public static final List<String> l = new ArrayList<>();\",\r\n \"\",\r\n \" /** ctor JAVADOC */\",\r\n \" @ann\",\r\n \" @ann2(k=3,v='i')\",\r\n \" protected <e extends Element> Cgg( @ann @ann2(k=5)final String s, int...varArgs3 ) throws P, Q, D{\",\r\n \" System.out.println(12);\",\r\n \" }\",\r\n \"\",\r\n \" /** method JAVADOC */\",\r\n \" @ann\",\r\n \" @ann2(k=3,v='i')\",\r\n \" public static <e extends Fuzz> void doIt( @ann @ann2(k=5)final String xx, int...varArgs ) throws G, H, I{\",\r\n \" System.out.println(15);\",\r\n \" }\",\r\n \"}\");\r\n \r\n assertTrue( _c.getPackage().equals( \"blah.fromscratch\"));\r\n \r\n assertTrue( _c.hasImport(Map.class) );\r\n assertTrue( _c.hasImport(HashMap.class) );\r\n assertTrue( _c.hasImport( \"aaaa.bbbb.C\"));\r\n assertTrue( _c.hasImport( \"blah.dat.Blart\"));\r\n assertTrue(_c.hasMethods());\r\n assertEquals(1, _c.listMethods().size());\r\n _method _m = _c.getMethod(\"doIt\");\r\n assertTrue( _m.hasJavadoc());\r\n assertTrue( _m.getJavadoc().getContent().contains( \"method JAVADOC\" ));\r\n assertTrue( _m.hasAnnos());\r\n assertTrue( _m.getAnnos().is(\"@ann\",\"@ann2(k=3,v='i')\"));\r\n assertTrue( _m.getModifiers().is(\"public static\"));\r\n assertTrue(_m.hasTypeParameters());\r\n assertTrue(_m.getTypeParameters().is(\"<e extends Fuzz>\"));\r\n assertTrue( _m.isType( \"void\"));\r\n assertTrue( _m.isVoid());\r\n assertEquals(\"doIt\", _m.getName());\r\n assertTrue( _m.hasParameters());\r\n assertTrue( _m.getParameters().is( \"@ann @ann2(k=5)final String xx, int...varArgs\"));\r\n assertTrue( _m.hasThrows());\r\n assertTrue( _m.hasThrow(\"I\"));\r\n assertTrue( _m.hasThrow(\"H\"));\r\n assertTrue( _m.hasThrow(\"G\"));\r\n assertTrue( _m.getBody().is( \"System.out.println(15);\")); \r\n assertEquals(1, _c.listConstructors().size());\r\n _constructor _ct = _c.getConstructor(0);\r\n assertTrue(_ct.hasJavadoc());\r\n assertTrue(_ct.getJavadoc().getContent().contains(\"ctor JAVADOC\"));\r\n assertTrue(_ct.hasAnnos());\r\n assertTrue( _ct.getAnnos().is(\"@ann\",\"@ann2(k=3,v='i')\"));\r\n assertTrue( _ct.getModifiers().is(\"protected\"));\r\n assertTrue( _ct.hasTypeParameters());\r\n assertTrue( _ct.getTypeParameters().is( \"<e extends Element>\"));\r\n assertEquals(\"Cgg\", _ct.getName());\r\n assertTrue( _ct.hasThrows() );\r\n assertTrue( _ct.getThrows().is( \"throws D, P, Q\"));\r\n assertTrue( _ct.getBody().is( \"System.out.println(12);\"));\r\n assertTrue( _ct.hasThrow( \"P\") );\r\n assertTrue( _ct.hasThrow( \"D\") );\r\n assertTrue( _ct.hasThrow( \"Q\") );\r\n assertTrue( _ct.hasParameters() );\r\n assertEquals(2, _ct.listParameters().size() );\r\n _parameter _p = _ct.getParameter( 0 );\r\n assertTrue( _p.is( \"@ann @ann2(k=5)final String s\" ));\r\n assertTrue( _p.hasAnnos());\r\n assertEquals( 2, _p.listAnnos().size());\r\n assertTrue( _p.isFinal());\r\n assertTrue( _p.isType( String.class));\r\n assertEquals(\"s\", _p.getName());\r\n assertFalse( _p.isVarArg() );\r\n _p = _ct.getParameter( 1 );\r\n assertTrue( _p.is( \"int...varArgs3\" ));\r\n assertFalse( _p.hasAnnos());\r\n assertEquals( 0, _p.listAnnos().size());\r\n assertFalse( _p.isFinal());\r\n assertTrue( _p.isType( int.class));\r\n assertEquals(\"varArgs3\", _p.getName());\r\n assertTrue( _p.isVarArg() );\r\n assertTrue( _ct.isVarArg());\r\n \r\n _parameter._parameters _ps = _ct.getParameters();\r\n \r\n assertEquals(1, _c.listFields().size());\r\n _field _f = _c.getField(\"l\");\r\n assertTrue( _f.hasJavadoc());\r\n assertTrue( _f.getJavadoc().getContent().contains(\"field JAVADOC\"));\r\n assertTrue( _f.hasAnnos() );\r\n assertTrue( _f.getAnnos().is(\"@ann\",\"@ann2(k=2,v='g')\") );\r\n assertTrue( _f.getModifiers().is( \"public static final\"));\r\n assertTrue( _f.isType( \"List<String>\"));\r\n assertTrue( _f.getName().equals( \"l\"));\r\n assertTrue( _f.isInit(Expr.of(\"new ArrayList<>()\")));\r\n //System.out.println( _c.listFields());\r\n \r\n assertTrue(_c.hasJavadoc());\r\n assertTrue(_c.getJavadoc().getContent().contains( \"class JAVADOC\") );\r\n assertTrue(_c.hasAnnos());\r\n assertEquals(2, _c.listAnnos().size() );\r\n \r\n assertTrue( _c.getAnno(0).is( \"@ann\") );\r\n assertTrue( _c.getAnno(1).is( \"@ann2(k=1,v='y')\") );\r\n assertTrue( _c.getAnnos().is( \"@ann\",\"@ann2(k=1,v='y')\"));\r\n assertTrue( _c.getModifiers().is(\"public\"));\r\n assertEquals(\"Cgg\", _c.getName());\r\n assertTrue( _c.hasTypeParameters() );\r\n assertTrue( _c.getTypeParameters().is( \"<T extends Impl>\"));\r\n assertTrue( _c.isExtends( \"Base\") );\r\n assertTrue( _c.isImplements( \"A\"));\r\n assertTrue( _c.isImplements( \"B\")); \r\n assertTrue( _c.hasStaticBlock());\r\n assertNotNull( _c.getStaticBlock(0) ); //todo better static block\r\n assertTrue( _c.hasFields()); \r\n }", "title": "" }, { "docid": "d7a187c1b28aac39c758e08d8ed05d5b", "score": "0.4378978", "text": "abstract ClassName getAnnotation();", "title": "" }, { "docid": "f1c03b4782450e37312b901f5b35992c", "score": "0.43734148", "text": "public abstract boolean match(PsiMethod node);", "title": "" }, { "docid": "e26e941ae9797abaf0524a029c534baf", "score": "0.43687537", "text": "public String findSubstitution(final String input) {\n final String output = classMap.get(input);\n return output == null ? input : output;\n }", "title": "" }, { "docid": "c4f37cea14b67c46b6e01d2b11e03287", "score": "0.43657705", "text": "String findByConcreteMethod(String anyValue);", "title": "" }, { "docid": "395f47aa296c4ce43271b32ca8f6e461", "score": "0.43625957", "text": "public static void finder(MethodDeclaration methodDeclaration, String methodName){\n List<IfStmt> ifStmtList = methodDeclaration.findAll(IfStmt.class);\n List<ForStmt> forStmtList = methodDeclaration.findAll(ForStmt.class);\n List<SwitchStmt> switchStmtList = methodDeclaration.findAll(SwitchStmt.class);\n List<WhileStmt> whileStmtList = methodDeclaration.findAll(WhileStmt.class);\n List<DoStmt> doStmtList = methodDeclaration.findAll(DoStmt.class);\n\n //if statements\n for(int i=0; i<ifStmtList.size(); i++){\n IfStmt ifStmt = ifStmtList.get(i);\n Statement thenStatement = ifStmt.getThenStmt();\n isEmptyChecker(methodName, thenStatement);\n\n /* get else statement only if it's present and if the statement is last in the list\n the else statement needs to be found only for the last element since all other\n else statements are present as latter elements besides the last one */\n\n if(i==ifStmtList.size()-1) {\n if (ifStmt.getElseStmt().isPresent()) {\n Statement elseStatement = ifStmt.getElseStmt().get();\n isEmptyChecker(methodName, elseStatement);\n }\n }\n }\n\n //switch statements\n for(SwitchStmt switchStmt : switchStmtList){\n NodeList<SwitchEntry> switchEntryList = switchStmt.getEntries();\n //if no entries (cases), add as breakpoint\n if(switchEntryList.isEmpty())\n Breakpoints.addUCF(methodName, switchStmt.getRange().get().begin.line,\n switchStmt.getRange().get().end.line);\n else {\n\n /*get statements for each switch entry, if there are no statements (empty case)\n OR if the last statement of the case is NOT a break\n or return statement, add as breakpoint */\n\n for(SwitchEntry switchEntry : switchEntryList){\n if(switchEntry.getStatements().isEmpty())\n Breakpoints.addUCF(methodName, switchEntry.getRange().get().begin.line,\n switchEntry.getRange().get().end.line);\n else {\n Statement finalStatement = switchEntry\n .getStatement(switchEntry.getStatements().size() - 1);\n System.out.println(finalStatement);\n if (!(finalStatement.isBreakStmt()) && !(finalStatement.isReturnStmt()))\n Breakpoints.addUCF(methodName, switchEntry.getRange().get().begin.line,\n switchEntry.getRange().get().end.line);\n }\n }\n }\n }\n\n //for statements\n for(ForStmt forStmt : forStmtList) {\n isEmptyChecker(methodName, forStmt.getBody());\n }\n\n //while statements\n for(WhileStmt whileStmt : whileStmtList) {\n isEmptyChecker(methodName, whileStmt.getBody());\n }\n\n //dowhile statements\n for(DoStmt doStmt : doStmtList) {\n isEmptyChecker(methodName, doStmt.getBody());\n }\n }", "title": "" }, { "docid": "28db8d0bad2282fd24ac6545b75054ee", "score": "0.43584502", "text": "static List<Method> getStaticMethodsWithAnnotation(final Class<?> source, final Class<? extends Annotation> annotationClass) {\n\n return AccessController.doPrivileged(new PrivilegedAction<List<Method>>() {\n public List<Method> run() {\n\n List<Method> foundMethods = new ArrayList<Method>();\n Class<?> nextSource = source;\n while (nextSource != Object.class) {\n for (Method method : nextSource.getDeclaredMethods()) {\n if (Modifier.isStatic(method.getModifiers()) && method.isAnnotationPresent(annotationClass)) {\n if (!method.isAccessible()) {\n method.setAccessible(true);\n }\n foundMethods.add(method);\n }\n }\n nextSource = nextSource.getSuperclass();\n }\n return foundMethods;\n }\n });\n }", "title": "" }, { "docid": "e215ba7c1aeaa9a03528d2c45658435c", "score": "0.43540657", "text": "public DFMethod getReifiedMethod(Map<DFMapKlass, DFKlass> typeMap) {\n if (_mapKlasses == null) return this;\n //Logger.info(\"DFMethod.getReifiedMethod:\", this, typeMap);\n List<DFMapKlass> mapKlasses = _mapKlasses.values();\n HashMap<String, DFKlass> paramTypes = new HashMap<String, DFKlass>();\n for (int i = 0; i < mapKlasses.size(); i++) {\n DFMapKlass mapKlass = mapKlasses.get(i);\n DFKlass type = mapKlass;\n if (typeMap != null && typeMap.containsKey(mapKlass)) {\n type = typeMap.get(mapKlass);\n }\n paramTypes.put(mapKlass.getName(), type);\n }\n String name = DFTypeSpace.getReifiedName(paramTypes);\n DFMethod method = _reifiedMethods.get(name);\n if (method == null) {\n method = this.parameterize(paramTypes);\n _reifiedMethods.put(name, method);\n }\n return method;\n }", "title": "" }, { "docid": "ee5445b4d202cd29197e82f3264e54f9", "score": "0.4352521", "text": "public interface Match {\n\t\n\t/**\n\t * Converts and object to a Match.\n\t * If it is not already a Match the value is used to create an exactWholeWord Match.\n\t */\n\tstatic Match of(Object value) {\n\t\tif (value instanceof Match) {\n\t\t\treturn (Match) value;\n\t\t}\n\t\treturn exactWholeWord(value);\n\t}\n\t\n\t/**\n\t * Return a Match that looks for the exact string provided.\n\t * Case is ignored, and the string could be anywhere within a word.\n\t * For example <code>Match.exact(\"5\")</code> would match \"255.4\" and\n\t * <code>Match.exact(\"dance\")</code> would match \"attendance\". If you\n\t * want whole word matching, use {@link Match#exactWholeWord(Object)}\n\t * @param value a string to match, or if not a string it will be converted to a string.\n\t */\n\tstatic Match exact(Object value) {\n\t\treturn new ContainsMatch(String.valueOf(value), true);\n\t}\n\t\n\t/**\n\t * Return a Match that looks for the exact string provided.\n\t * Case must match exactly, but the string could be anywhere within a word.\n\t * For example <code>Match.exact(\"5\")</code> would match \"255.4\" and\n\t * <code>Match.exact(\"dance\")</code> would match \"attendance\". If you\n\t * want whole word matching, use {@link Match#exactWholeWord(Object)}\n\t * @param value a string to match, or if not a string it will be converted to a string.\n\t */\n\tstatic Match exactExactCase(Object value) {\n\t\treturn new ContainsMatch(String.valueOf(value), false);\n\t}\n\t\n\t/**\n\t * Return a Match that looks for the exact string provided.\n\t * Case is ignored, and the string cannot be just part of a word.\n\t * For example <code>Match.exactWholeWord(\"5\")</code> would not match \"255.4\" and\n\t * <code>Match.exactWholeWord(\"dance\")</code> would not match \"attendance\".\n\t * @param value a string to match, or if not a string it will be converted to a string.\n\t */\n\tstatic Match exactWholeWord(Object value) {\n\t\treturn new ContainsWholeWordMatch(String.valueOf(value), true);\n\t}\n\t\n\t/**\n\t * Return a Match that looks for the exact string provided.\n\t * Case must match exactly. The string cannot be just part of a word.\n\t * For example <code>Match.exactWholeWord(\"5\")</code> would not match \"255.4\" and\n\t * <code>Match.exactWholeWord(\"dance\")</code> would not match \"attendance\".\n\t * @param value a string to match, or if not a string it will be converted to a string.\n\t */\n\tstatic Match exactWholeWordExactCase(Object value) {\n\t\treturn new ContainsWholeWordMatch(String.valueOf(value), false);\n\t}\n\t\n\t/**\n\t * Return a Match that looks for the given regular expression.\n\t * Case is ignored.\n\t */\n\tstatic Match regex(String value) {\n\t\treturn new RegexMatch(value, true);\n\t}\n\t\n\t/**\n\t * Return a Match that looks for the given regular expression.\n\t * Case must match exactly.\n\t */\n\tstatic Match regexExactCase(String value) {\n\t\treturn new RegexMatch(value, false);\n\t}\n\t\n\t/**\n\t * Return a Match that looks for a line that matches the given Match.\n\t * Essentially matches of the given matcher than span multiple lines do not match.\n\t * @param match match does not need to be a Match instance. If it is not, it\n\t * will be converted with {@link Match#of}.\n\t */\n\tstatic Match lineWith(Object match) {\n\t\treturn new LineMatch(Match.of(match), null);\n\t}\n\t\n\t/**\n\t * Return a Match that looks for a line that matches the given Match BUT does not\n\t * match the second match.\n\t * Essentially matches of the given matcher than span multiple lines do not match.\n\t * @param match must match in line. Does not need to be a Match instance. If it is not,\n\t * it will be converted with {@link Match#of}.\n\t * @param notMatch must not also match in the same line. Does not need to be a Match\n\t * instance. If it is not, it will be converted with {@link Match#of}.\n\t */\n\tstatic Match lineWithButNot(Object match, Object notMatch) {\n\t\treturn new LineMatch(Match.of(match), Match.of(notMatch));\n\t}\n\t\n\t/**\n\t * Return a Match that will match the first of the given Matches that is found.\n\t */\n\tstatic Match any(Match... matches) {\n\t\treturn new AnyMatch(matches);\n\t}\n\t\n\t/**\n\t * Return a Match that will match the first of the given Matches that is found.\n\t * @param matches matches do not need to be Match instances. If any are not, they\n\t * will be converted with {@link Match#of}.\n\t */\n\tstatic Match any(Object... matches) {\n\t\tMatch[] matches2 = Arrays.stream(matches).map(Match::of).toArray(Match[]::new);\n\t\treturn new AnyMatch(matches2);\n\t}\n\t\n\t/**\n\t * Return a Match that will match the first of the given Matches that is found.\n\t * @param matches matches do not need to be Match instances. If any are not, they\n\t * will be converted with {@link Match#of}.\n\t */\n\tstatic Match any(Collection<?> matches) {\n\t\tMatch[] matches2 = matches.stream().map(Match::of).toArray(Match[]::new);\n\t\treturn new AnyMatch(matches2);\n\t}\n\t\n\t/**\n\t * Return a Match that will match only if it finds all of the given matches.\n\t */\n\tstatic Match all(Match... matches) {\n\t\treturn new AllMatch(matches);\n\t}\n\t\n\t/**\n\t * Return a Match that will match only if it finds all of the given matches.\n\t * @param matches matches do not need to be Match instances. If any are not, they\n\t * will be converted with {@link Match#of}.\n\t */\n\tstatic Match all(Object... matches) {\n\t\tMatch[] matches2 = Arrays.stream(matches).map(Match::of).toArray(Match[]::new);\n\t\treturn new AllMatch(matches2);\n\t}\n\t\n\t/**\n\t * Return a Match that will match only if it finds all of the given matches.\n\t * @param matches matches do not need to be Match instances. If any are not, they\n\t * will be converted with {@link Match#of}.\n\t */\n\tstatic Match all(Collection<?> matches) {\n\t\tMatch[] matches2 = matches.stream().map(Match::of).toArray(Match[]::new);\n\t\treturn new AllMatch(matches2);\n\t}\n\t\n\tOptional<MatchInfo> match(String s, int startIndex);\n\t\n\tdefault Optional<MatchInfo> matchLast(String s, int startIndex) {\n\t\tOptional<MatchInfo> last = Optional.empty();\n\t\tOptional<MatchInfo> found = match(s, startIndex);\n\t\twhile (found.isPresent()) {\n\t\t\tlast = found;\n\t\t\tstartIndex = found.get().getStart() + 1;\n\t\t\tfound = match(s, startIndex);\n\t\t}\n\t\treturn last;\n\t}\n\t\n\tString getPart(String s, int startIndex, int index);\n\t\n\tString getExpectedMessage();\n\n\t@Override\n\tint hashCode();\n\n\t@Override\n\tboolean equals(Object obj);\n\n}", "title": "" }, { "docid": "12a79a5ba1a72a6ce8dc4bf25e1467de", "score": "0.43523163", "text": "private static Object m27a(Class cls, String str) {\n try {\n return cls.getMethod(str, new Class[0]).invoke(cls, new Object[0]);\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "5ed9c9e91b8f7146d111285f26789654", "score": "0.4350063", "text": "public static void main(String[] args) {\n getIsAnagram(\"CAT\", \"ACT\");\n\n //2. from a given sentence, find out their occurrences\n\n //String data = \"Today is Sunday. Sunday is a good day. I play soccer on Sunday.\";\n //HashMap<String, Integer> mapOfOccurences = getTheOccurencesOfWords(data);\n\n //3. from a given sentence, find out the dupes in the map\n\n //mapOfOccurences\n\n }", "title": "" }, { "docid": "c684dfb1b7f0322788e67a3ef019db77", "score": "0.43445912", "text": "void processWords(final String theString, final Map<String, Word> theMap);", "title": "" }, { "docid": "377b13560c91301302398469a7ad3ab3", "score": "0.43444118", "text": "public static int enter(String classs){\n ClassSymbolTable tb=SymbolTable.getClass(classs);\n if(tb==null){\n classMap.put(classs,new ClassSymbolTable(classs));\n currentClass=classs;\n currentMethod=null;\n return 0;\n }\n currentClass=classs;\n currentMethod=null;\n // class name already defined\n semanticError.addError(E_TYPE.SAME_CLASS_NAME,\"\",currentClass);\n\n return 1;\n }", "title": "" }, { "docid": "a0b138d2f322b11378865935d5386f7a", "score": "0.43440992", "text": "private MethodIdItem parseAndResolveMethod(ClassPath.ClassDef classDef, String string2, String string3, String string4) {\n StringIdItem stringIdItem = StringIdItem.lookupStringIdItem(this.dexFile, string2);\n if (stringIdItem == null) {\n return null;\n }\n LinkedList linkedList = new LinkedList();\n for (int i = 0; i < string3.length(); ++i) {\n TypeIdItem typeIdItem;\n switch (string3.charAt(i)) {\n default: {\n throw new RuntimeException(\"invalid parameter in the method\");\n }\n case 'B': \n case 'C': \n case 'D': \n case 'F': \n case 'I': \n case 'J': \n case 'S': \n case 'Z': {\n typeIdItem = TypeIdItem.lookupTypeIdItem(this.dexFile, string3.substring(i, i + 1));\n break;\n }\n case 'L': {\n int n = string3.indexOf(59, i);\n if (n == -1) {\n throw new RuntimeException(\"invalid parameter in the method\");\n }\n typeIdItem = TypeIdItem.lookupTypeIdItem(this.dexFile, string3.substring(i, n + 1));\n i = n;\n break;\n }\n case '[': {\n int n;\n int n2;\n for (n = i + 1; n < string3.length() && string3.charAt(n) == '['; ++n) {\n }\n switch (string3.charAt(n)) {\n default: {\n throw new RuntimeException(\"invalid parameter in the method\");\n }\n case 'B': \n case 'C': \n case 'D': \n case 'F': \n case 'I': \n case 'J': \n case 'S': \n case 'Z': {\n n2 = n;\n break;\n }\n case 'L': {\n n2 = string3.indexOf(59, n);\n if (n2 != -1) break;\n throw new RuntimeException(\"invalid parameter in the method\");\n }\n }\n typeIdItem = TypeIdItem.lookupTypeIdItem(this.dexFile, string3.substring(i, n2 + 1));\n i = n2;\n }\n }\n if (typeIdItem == null) {\n return null;\n }\n linkedList.add((Object)typeIdItem);\n }\n int n = linkedList.size();\n TypeListItem typeListItem = null;\n if (n > 0 && (typeListItem = TypeListItem.lookupTypeListItem(this.dexFile, (List<TypeIdItem>)linkedList)) == null) {\n return null;\n }\n TypeIdItem typeIdItem = TypeIdItem.lookupTypeIdItem(this.dexFile, string4);\n if (typeIdItem == null) {\n return null;\n }\n ProtoIdItem protoIdItem = ProtoIdItem.lookupProtoIdItem(this.dexFile, typeIdItem, typeListItem);\n if (protoIdItem == null) {\n return null;\n }\n ClassPath.ClassDef classDef2 = classDef;\n do {\n TypeIdItem typeIdItem2;\n if ((typeIdItem2 = TypeIdItem.lookupTypeIdItem(this.dexFile, classDef2.getClassType())) == null) continue;\n MethodIdItem methodIdItem = MethodIdItem.lookupMethodIdItem(this.dexFile, typeIdItem2, protoIdItem, stringIdItem);\n if (methodIdItem != null) return methodIdItem;\n } while ((classDef2 = classDef2.getSuperclass()) != null);\n return null;\n }", "title": "" }, { "docid": "f45fa420e94a1ad075889bb7e36c8775", "score": "0.43383425", "text": "boolean match(String s1,String s2)\n {\n if(s2==\"int\"||s2==\"boolean\"||s2==\"int[]\"||s2==null)\n return false;\n if(s1==\"int\"||s1==\"boolean\"||s1==\"int[]\"||s1==null)\n return false;\n Classtype v1=new Classtype(class_var.get(class_var_search(s1)));\n Classtype v2=new Classtype(class_var.get(class_var_search(s2)));\n while(v2!=null)\n { if(v2.name==v1.name)\n {return true;}\n v2=v2.parent; \n\n }\n // System.out.println(\"n\");\n return false;\n\n }", "title": "" } ]
86c48a8d03fee1085154f5fd19041de3
/ Finds language by Id
[ { "docid": "1eef8bca0063d1101f882ec52b0b390b", "score": "0.66421986", "text": "public List<Map<String, Object>> showLangById(int id){\n String query=\"select languageId, languageName from languages where languageId=?\";\n List<Map<String, Object>> langs=jdbcTemplateObject.queryForList(query, id);\n return langs;\n }", "title": "" } ]
[ { "docid": "6f3af8cb69700f12c8f968e3d57aa46a", "score": "0.8137721", "text": "public Languages findLang(Long id) {\n\t\tOptional<Languages> optionalLang = languageRepository.findById(id);\n\t\tif(optionalLang.isPresent()) {\n\t\t\treturn optionalLang.get();\n\t\t}else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "278f2eabda4ce0acb4feafad08502ac4", "score": "0.8026062", "text": "Optional<Language> getLanguageById(Integer id);", "title": "" }, { "docid": "c1ce93228cba10f495d3fa3e48b9d4ac", "score": "0.7681784", "text": "public static Language getLanguage(int id) {\r\n return languageMap.get(id);\r\n }", "title": "" }, { "docid": "0a0636757cb00b69a3767ebe47398d0b", "score": "0.76570165", "text": "@Transactional(readOnly = true)\n public Language findOne(Long id) {\n log.debug(\"Request to get Language : {}\", id);\n return languageRepository.findOne(id);\n }", "title": "" }, { "docid": "5817964550fbdcefd9e9b0c7d06cb857", "score": "0.72954553", "text": "@Override\n public LanguageDto findById(String id) {\n return null;\n }", "title": "" }, { "docid": "9134973e796d2b3fc652f7b090a2644f", "score": "0.7162727", "text": "@Override\n\tpublic LanguageInfo findLanguageById(int languagekey) {\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\n\t\tparamMap.put(\"languagekey\", languagekey);\n\t\treturn namedParameterJdbcTemplate.queryForObject(findlanguagebyid, paramMap, new LanguageMapper());\n\t}", "title": "" }, { "docid": "e980de4a92a8be92a695ebbdfa1cafae", "score": "0.71484786", "text": "@Override\n public List<Lang> findById() {\n return null;\n }", "title": "" }, { "docid": "5ee65a8e2f0615281a3f89d07861f192", "score": "0.6854088", "text": "@GET\r\n @Path(\"/languages/{id}\")\r\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\r\n @Override\r\n public Response getLanguageById(@PathParam(\"id\") Integer languageId)\r\n throws LanguageNotFoundException {\r\n\r\n try {\r\n LanguageEO language = languageFacade.getLanguageById(languageId);\r\n\r\n String jsonStr = JsonGenerator.getInstance().getTypeAsJson(language, \"Language\");\r\n\r\n return Response.ok(jsonStr, MediaType.APPLICATION_JSON).build();\r\n } catch (RuntimeException ex) {\r\n throw new WebApplicationException(ex.getMessage(), Response.Status.INTERNAL_SERVER_ERROR);\r\n }\r\n }", "title": "" }, { "docid": "e1f70444095ffe209b88416e16e9f618", "score": "0.68372303", "text": "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/languages/{languageId}\", method = RequestMethod.GET)\n\tpublic ResponseEntity<Language> getLanguage(@PathVariable int languageId) {\n\t\ttry {\n\t\t\treturn new ResponseEntity<Language>(languageService.getLanguageById(languageId), HttpStatus.OK);\n\t\t} catch (GlobalException ge) {\n\t\t\tthrow new GlobalException(ge.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "779b811c094557634cdba625bff54780", "score": "0.6555461", "text": "Optional<Language> getLanguageByName(String name);", "title": "" }, { "docid": "8914a96569460e869d9bfff98abe66c6", "score": "0.6433978", "text": "public int getLanguageId() {\r\n return languageId;\r\n }", "title": "" }, { "docid": "32ccab6d36fb08928094042e7140427a", "score": "0.6360197", "text": "@Test\n public void testLangId() throws IOException {\n LanguageIdentifier tc = new LanguageIdentifier(text);\n String language = tc.getLanguage();\n assertEquals(\"en\", language);\n }", "title": "" }, { "docid": "17df637bfb2789c15de93d758828fccf", "score": "0.62783515", "text": "public String getLanguage(int langId) {\n\t\treturn (String) getLanguages().get(new Integer(langId));\n\t}", "title": "" }, { "docid": "8ca74edbfeb9fdba29a185d625824b44", "score": "0.6267167", "text": "Language getLanguage();", "title": "" }, { "docid": "8ca74edbfeb9fdba29a185d625824b44", "score": "0.6267167", "text": "Language getLanguage();", "title": "" }, { "docid": "3772deea704cc5127b8e3067d8b249be", "score": "0.62655944", "text": "Languages getLanguage();", "title": "" }, { "docid": "43b4586492935ccbe966dfa1c0554393", "score": "0.6235471", "text": "@Override\r\n\tpublic Culture findById(int id) {\n\t\treturn cultureMapper.findById(id);\r\n\t}", "title": "" }, { "docid": "268f1cecbc153a758dc5b09fad8b5bc3", "score": "0.6211826", "text": "@Override\n public Optional<Language> getByName(String language) {\n log.debug(GET_BY_NAME_LOG_MESSAGE, language);\n\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Language> criteriaQuery = criteriaBuilder.createQuery(Language.class);\n Root<Language> root = criteriaQuery.from(Language.class);\n CriteriaQuery<Language> query = criteriaQuery.select(root).where(criteriaBuilder.equal(root.get(\"name\"), language));\n List<Language> resultList = entityManager.createQuery(criteriaQuery).getResultList();\n return resultList.isEmpty() ? Optional.empty() : Optional.of(resultList.get(0));\n }", "title": "" }, { "docid": "7dc51cff87302103953c7d8f63c8fc91", "score": "0.6202881", "text": "public String getLanguageID(String id)\n {\n // normalize id\n id = CLocale.getCanonicalID(id);\n // remove sub tags\n int underscorePosition = id.indexOf(\"_\");\n if(underscorePosition != -1)\n {\n id = id.substring(0, underscorePosition);\n }\n return id;\n }", "title": "" }, { "docid": "ae51f406d52e8386b7cd07ef40802c0d", "score": "0.6185587", "text": "public void setLanguageId(int value) {\r\n this.languageId = value;\r\n }", "title": "" }, { "docid": "66d1c67de87e27e084ffe2a975cfda5c", "score": "0.615939", "text": "public static void addLanguage(String name, int id) {\r\n name = name.toLowerCase();\r\n if (!languageMap.containsKey(name)) {\r\n Language newlang = new Language();\r\n newlang.setId(id);\r\n newlang.setName(name);\r\n languageMap.put(id, newlang);\r\n LOG.info(\"Added language \" + name);\r\n }\r\n }", "title": "" }, { "docid": "cb4048aa803b7695d998651332dbbc14", "score": "0.6147325", "text": "public List<Country> findByLanguage(Language language);", "title": "" }, { "docid": "6d94d464c46df2964525f19e4c337517", "score": "0.61209035", "text": "@Override\n\tpublic Lekcja findLekcjaById(Long id) {\n\t\treturn (Lekcja) sessionFactory.getCurrentSession().get(Lekcja.class, id);\n\t}", "title": "" }, { "docid": "2dd7090d45abe8aaafff270e77d2effb", "score": "0.6093619", "text": "public Language getLanguage();", "title": "" }, { "docid": "0d72071c0997597f4c50aae8ccea3c52", "score": "0.6086103", "text": "public Level findById(Long id) throws GamificationDomainEntityNotFoundException;", "title": "" }, { "docid": "10879d829d0113ce64a67b254dc76d43", "score": "0.60813445", "text": "int getLanguage();", "title": "" }, { "docid": "10879d829d0113ce64a67b254dc76d43", "score": "0.60813445", "text": "int getLanguage();", "title": "" }, { "docid": "833d4716f8a5c66d0eb69934de01dcbf", "score": "0.6060765", "text": "public static void fetchLanguages() {\r\n QueryRunner qr = QueryRunner.getRunner(Query.GET_LANGUAGES);\r\n qr.run();\r\n List<Integer> langIds = qr.getResults(Integer.class, \"idLanguage\");\r\n List<String> langNames = qr.getResults(String.class, \"name\");\r\n for (int i = 0; i < langIds.size(); i++) {\r\n addLanguage(langNames.get(i), langIds.get(i));\r\n }\r\n qr.close();\r\n }", "title": "" }, { "docid": "e2a39a98a1efd95b0f2e79d9472e4881", "score": "0.6055803", "text": "Object getLang1();", "title": "" }, { "docid": "0f9cfe97235513395ccefc414ea400f1", "score": "0.601866", "text": "String getLang();", "title": "" }, { "docid": "0f9cfe97235513395ccefc414ea400f1", "score": "0.601866", "text": "String getLang();", "title": "" }, { "docid": "0f9cfe97235513395ccefc414ea400f1", "score": "0.601866", "text": "String getLang();", "title": "" }, { "docid": "0f9cfe97235513395ccefc414ea400f1", "score": "0.601866", "text": "String getLang();", "title": "" }, { "docid": "0f9cfe97235513395ccefc414ea400f1", "score": "0.601866", "text": "String getLang();", "title": "" }, { "docid": "0f9cfe97235513395ccefc414ea400f1", "score": "0.601866", "text": "String getLang();", "title": "" }, { "docid": "d0d0f558916b83dfca1418638d70caca", "score": "0.6007239", "text": "public int getLanguageID() {\n return languageID;\n }", "title": "" }, { "docid": "385fa31d8273213b1c46e6dd28abafdf", "score": "0.5993796", "text": "@Repository\npublic interface LanguageRepository extends JpaRepository<Language, Long> {\n\n Language findById(Long id);\n\n List<Language> findAll();\n\n}", "title": "" }, { "docid": "c94c61b871a1ae36782676ccaea808da", "score": "0.5991904", "text": "@Override\n public Person getPersonById(int id, String languageId) {\n MapSqlParameterSource mapSqlParameterSource = new MapSqlParameterSource(ID_COLUMN_NAME, id);\n\n List<Person> persons;\n if(languageId.equals(DEFAULT_LANGUAGE_ID)) {\n persons = jdbcTemplate.query(GET_PERSON_BY_ID_QUERY, mapSqlParameterSource, personMapper);\n } else {\n persons = jdbcTemplate.query(GET_PERSON_BY_ID_NOT_DEFAULT_LANG_QUERY, mapSqlParameterSource.addValue(LANGUAGE_ID_COLUMN_NAME, languageId), personMapper);\n }\n\n return persons.isEmpty() ? null : persons.get(0);\n }", "title": "" }, { "docid": "165ef488f780cf682c7e3fd49d1bbf90", "score": "0.5972558", "text": "public static String getLangId() {\r\n if (that == null)\r\n return \"Translation not initial\";\r\n return that.mLangID;\r\n }", "title": "" }, { "docid": "f124ff651f7b63336c8d6758172955df", "score": "0.5947419", "text": "@Override\n public LanguageDto findByLang(String lang) {\n return null;\n }", "title": "" }, { "docid": "3e6513afd0e42c715881df8d6b581bd5", "score": "0.5946458", "text": "@Override\n public LanguageDto findByName(String name) {\n return null;\n }", "title": "" }, { "docid": "84ace7de07d3ece14e266afab6d1ae9e", "score": "0.592725", "text": "public String getLang();", "title": "" }, { "docid": "c68cfa39cae50881028e5d4e4502a823", "score": "0.59262615", "text": "@Override\n public List<InstalledLanguage> getLanguagesId(){\n return languagesId;\n }", "title": "" }, { "docid": "5434176fc1cc9e0fcc7918c8eda54dce", "score": "0.5908848", "text": "String getLanguage();", "title": "" }, { "docid": "5434176fc1cc9e0fcc7918c8eda54dce", "score": "0.5908848", "text": "String getLanguage();", "title": "" }, { "docid": "5434176fc1cc9e0fcc7918c8eda54dce", "score": "0.5908848", "text": "String getLanguage();", "title": "" }, { "docid": "5434176fc1cc9e0fcc7918c8eda54dce", "score": "0.5908848", "text": "String getLanguage();", "title": "" }, { "docid": "641dc09e0fd0788e1cc4c78b4263c096", "score": "0.5883801", "text": "String getLang1();", "title": "" }, { "docid": "641dc09e0fd0788e1cc4c78b4263c096", "score": "0.5883801", "text": "String getLang1();", "title": "" }, { "docid": "641dc09e0fd0788e1cc4c78b4263c096", "score": "0.5883801", "text": "String getLang1();", "title": "" }, { "docid": "68cfdf1697101abf9c86d6092d65f660", "score": "0.58671623", "text": "@Transactional(propagation = Propagation.NOT_SUPPORTED)\n\tpublic GetLanguageOutput getLanguage(Integer filmId) {\n\n\t\tFilmEntity foundFilm = _filmRepository.findById(filmId).orElse(null);\n\t\tif (foundFilm == null) {\n\t\t\tlogHelper.getLogger().error(\"There does not exist a film wth a id=%s\", filmId);\n\t\t\treturn null;\n\t\t}\n\t\tLanguageEntity re = foundFilm.getLanguage();\n\t\treturn mapper.languageEntityToGetLanguageOutput(re, foundFilm);\n\t}", "title": "" }, { "docid": "2cad6f19fb3955833ed5edf520268297", "score": "0.5838035", "text": "public String getLanguageByIndex(int index){\n\t\treturn lang.get(index);\n\t}", "title": "" }, { "docid": "205e4e5751bd2c4a2bb8c2adb4acb847", "score": "0.58295065", "text": "java.lang.String getLang();", "title": "" }, { "docid": "205e4e5751bd2c4a2bb8c2adb4acb847", "score": "0.58295065", "text": "java.lang.String getLang();", "title": "" }, { "docid": "3c4b472375b93ad7f1b585da29879e1a", "score": "0.57982624", "text": "public Country findById(String id);", "title": "" }, { "docid": "942b441bc71f51486d46464bf163beea", "score": "0.5783273", "text": "LangFactory getLangFactory();", "title": "" }, { "docid": "8adb3f8b6cd450bbe60ce00d9d18321b", "score": "0.5775111", "text": "public Text getLang() {return lang;}", "title": "" }, { "docid": "c56af6ea54b90841ee704ef89669166e", "score": "0.5718099", "text": "@Id\n @Column(name = \"category_language_id\", nullable = false)\n public int getCategoryLanguageId() {\n return categoryLanguageId;\n }", "title": "" }, { "docid": "c3d119ad8acf68c8ed74e3487773df90", "score": "0.57178634", "text": "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/languages/{languageId}\", method = RequestMethod.PUT)\n\tpublic ResponseEntity<Language> updateLanguage(@PathVariable int languageId, @RequestBody Language language) {\n\t\ttry {\n\t\t\treturn new ResponseEntity<Language>(languageService.updateLanguage(languageId, language), HttpStatus.OK);\n\t\t} catch (GlobalException ge) {\n\t\t\tthrow new GlobalException(ge.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "7a791a882b7854bb6cd6d1fa76fb46f4", "score": "0.5692017", "text": "public void setLanguageID(int value) {\n this.languageID = value;\n }", "title": "" }, { "docid": "543fa2056454c1616858528251035986", "score": "0.5674673", "text": "@Override\r\n\tpublic Categoria findById(int Id) {\n\t\tObject [] params = new Object [] {Id}; \r\n\t\treturn jdbcTemplate.queryForObject(\"select * from Categoria where IdCategoria=?\", params, new CategoriaMapper());\r\n\t}", "title": "" }, { "docid": "b8e294d986374496c36ca70cfe4d3d72", "score": "0.56494284", "text": "Optional<String> getLanguage(Context context, Optional<Result> result);", "title": "" }, { "docid": "4870fd15288bb0d5e7916cafc03e64c6", "score": "0.56449085", "text": "java.lang.String getLanguages(int index);", "title": "" }, { "docid": "480a987b0d41b991b6cce7558dee5411", "score": "0.562973", "text": "public abstract String getLanguage ();", "title": "" }, { "docid": "300f4f36a8a5286c33792464c177cbcd", "score": "0.5619767", "text": "public static Result chooseLanguage() {\n \t\tLang lang = getLangFromQueryString();\n \t\tif(lang != null)\n \t\t\tchangeLang(lang);\n \t\treturn ok(language.render());\n \t}", "title": "" }, { "docid": "56cbfb972ad041dde3db534ff46df4b3", "score": "0.56179893", "text": "ProjectDetails loadDetails(Long projectId, String language);", "title": "" }, { "docid": "dd851cf0a52ab587ea00e5512c805d27", "score": "0.5614482", "text": "public CourseMapping findById(Long id){\n return courseMappingRepository.findById(id).orElse(null);\n }", "title": "" }, { "docid": "d6bfc3e9b7891042ffb87e02bc29359b", "score": "0.5597429", "text": "public void deleteLanguage(Long id) {\n\t\tOptional<Languages> lang = languageRepository.findById(id);\n\t\tif(lang.isPresent()) {\n\t\t\tlanguageRepository.deleteById(id);\n\t\t}\n\t}", "title": "" }, { "docid": "bf1b8cdff042222361edd93cf3e894c1", "score": "0.55906934", "text": "List<QuestionLanguage> findAll();", "title": "" }, { "docid": "9274578628713a8ac1566191025a9e6b", "score": "0.5581447", "text": "public KeyWord getKeyWord(int id);", "title": "" }, { "docid": "64bc4ea40d4cd70c05b46ee071161b90", "score": "0.558142", "text": "public void updateLanguage(int id, String name){\n String query=\"update languages set languageName=? where languageId=?\";\n jdbcTemplateObject.update(query, name, id);\n }", "title": "" }, { "docid": "8b886821a70c7af7467d9dd4c2cb2517", "score": "0.5557918", "text": "@JsonView(value = Views.Secure.class)\n @GetMapping(value = \"/accounts/{id}\")\n public AccountDTO getAccountById(\n @RequestHeader(name = \"jwt-auth\") final String jwt,\n @PathVariable(name = \"id\") final Long id,\n @RequestParam(name = \"language\") final String language) {\n\n final GetAccountQuery getAccountQuery = GetAccountQuery.create(id);\n getAccountQuery.setLanguage(Language.getLanguage(language));\n getAccountQuery.setJwt(jwt);\n getAccountQuery.setClosed(true);\n\n return sendQuery(getAccountQuery, \"security\").getRead().getData();\n }", "title": "" }, { "docid": "3c015bd0e5ba258bfd911acabe8c926e", "score": "0.5556665", "text": "Country findOne(Long id);", "title": "" }, { "docid": "eb644fd2e5ffb2ce1c5ad23e55f9e902", "score": "0.5549042", "text": "public void setLANGUAGEID(java.lang.Long value) {\n this.LANGUAGE_ID = value;\n }", "title": "" }, { "docid": "d415ce335d5ff2bdf097f30bd3f29e4d", "score": "0.5537751", "text": "@GetMapping(\"/translations/{id}\")\n @Timed\n public ResponseEntity<Translation> getTranslation(@PathVariable Long id) {\n log.debug(\"REST request to get Translation : {}\", id);\n Optional<Translation> translation = translationRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(translation);\n }", "title": "" }, { "docid": "9fc853202a2de6ec90683257743f06b5", "score": "0.55062324", "text": "public void delete(Long id) {\n log.debug(\"Request to delete Language : {}\", id);\n languageRepository.delete(id);\n }", "title": "" }, { "docid": "cf5233dd3c8865d24dd624ca4af25807", "score": "0.5505922", "text": "public interface LanguageDao {\n\n /**\n * Retrieve Language by its ID.\n * @param id ID of the language.\n * @return Language retrieved.\n */\n Optional<Language> getLanguageById(Integer id);\n\n /**\n * Retrieve Language by its name.\n * @param name Name of the language.\n * @return Language retrieved.\n */\n Optional<Language> getLanguageByName(String name);\n}", "title": "" }, { "docid": "87147610d4298a8e26f4b2f8ee23edad", "score": "0.55047727", "text": "public HelpCategory load(Integer id) throws EntityNotFoundException;", "title": "" }, { "docid": "54ead4217d4f647834e0ce96912309cc", "score": "0.55022466", "text": "@AutoEscape\n\tpublic String getEtc(String languageId);", "title": "" }, { "docid": "ff3a85eae95809b9d98635fd149578cc", "score": "0.5497185", "text": "public MultiLanguageInput withId(String id) {\n this.id = id;\n return this;\n }", "title": "" }, { "docid": "30bd01acc30d6600de257956c612246a", "score": "0.54962736", "text": "String getTranslation(String lang, String type, String key, String publicationId);", "title": "" }, { "docid": "f5bc3a072356dcc7ecf16c22aab3e57c", "score": "0.54744387", "text": "public String getTranslation(String id) {\n return translationMap.get(id);\n }", "title": "" }, { "docid": "b543a421fa1401b068b886d0f7cff41a", "score": "0.5457097", "text": "public Language getLanguage(String p_name)\n {\n for (int i = 0, max = m_languages.size(); i < max; ++i)\n {\n Language lang = (Language) m_languages.get(i);\n\n if (lang.getName().equalsIgnoreCase(p_name))\n {\n return lang;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "065534c7b5ff8cb95fb6fb6858036055", "score": "0.54418904", "text": "public static Stateorder getStateorder( int id, String lang) {\n return StateorderDAO.getStateorder(id, lang);\n }", "title": "" }, { "docid": "3cb773edd91e8b67be9bf0680f269b20", "score": "0.54338807", "text": "String getLangauage();", "title": "" }, { "docid": "5bdd79034791f36944c891f0046dd253", "score": "0.54263395", "text": "@Override\n public LanguageDto delete(String id) {\n return null;\n }", "title": "" }, { "docid": "dc1af725489803852861421958e4b15c", "score": "0.542431", "text": "public static Language getLanguage() {\n return language;\n }", "title": "" }, { "docid": "e4fd1abd059e920f741c12b4828a74f0", "score": "0.54232377", "text": "public java.lang.Long getLANGUAGEID() {\n return LANGUAGE_ID;\n }", "title": "" }, { "docid": "eb7cb6996f9d8a3183efd3368faedaf1", "score": "0.54177034", "text": "@Override\n public Course findOne(Long id) {\n // REFACTORED\n return this.courses.stream()\n .filter(c -> c.getID() == id)\n .findAny()\n .orElse(null);\n }", "title": "" }, { "docid": "0bb4e1c3669565812c2c2a7a8865d5bd", "score": "0.54108304", "text": "com.google.ads.googleads.v14.common.LanguageInfo getLanguage();", "title": "" }, { "docid": "7ad334f9dc819bd1b47489357b9e3be3", "score": "0.5403453", "text": "public List<Map<String, Object>> showLangByName(String name){\n String query=\"select languageId, languageName from languages where languageName like '%\"+name+\"%'\";\n List<Map<String, Object>> langs=jdbcTemplateObject.queryForList(query);\n return langs;\n }", "title": "" }, { "docid": "2c747ce5c10950176d948a32bea97111", "score": "0.54027885", "text": "public Categorie findById(String id) {\n\t\treturn (this.repository.findById(id))\n\t\t\t\t.orElseThrow(\n\t\t\t\t\t\t// Retourne une exception HTTP\n\t\t\t\t\t\t()->new ResponseStatusException(HttpStatus.NOT_FOUND)\n\t\t\t\t);\n\t}", "title": "" }, { "docid": "c2300d311e0c109e6f17621b1e7bf3eb", "score": "0.53978133", "text": "public String loadLanguage(){\n String lang = myPreferences.getString(\"language\", \"vi\");\n return lang;\n }", "title": "" }, { "docid": "3faa492489949032987d936d20f6b5cd", "score": "0.5395852", "text": "public Categorie getCategorieById(Long id) {\n\t//Optional<Categorie> categorieOptional= categorieRep.findCategorieByName(name);\n\tSystem.out.println(\"Welcome service\" +id);\n\tif(categorieRep.existsById(id)) {\n\t\treturn categorieRep.findById(id).orElseThrow(null);\n\t}else\n\t\treturn categorieRep.findById(id).orElseThrow(null);\n}", "title": "" }, { "docid": "8f3e2be9188e24057f72f2269e9aabd9", "score": "0.5392288", "text": "public int getOriginalLanguageId() {\r\n return originalLanguageId;\r\n }", "title": "" }, { "docid": "6da087a7a8aeea7e1afa9cda72513636", "score": "0.53690344", "text": "String getCountryByDetails(Language language, Currency currency);", "title": "" }, { "docid": "75508573a86a7ea490689440bccd7931", "score": "0.5362434", "text": "@Override\n\tpublic Pengaduan cariPengaduan(String id) {\n\t\treturn this.pengaduanRepository.findById(Long.parseLong(id)).get();\n\t}", "title": "" }, { "docid": "1609db9ff6faea5d27d71e7cc27dd267", "score": "0.5359626", "text": "public static CLocale getInstance(String id)\n {\n locales= new HashMap<String, CLocale>();\n if(isset(locales, id))\n return locales.get(id);\n else\n {\n CLocale l = new CLocale(id);\n locales.put(id, l);\n return l;\n }\n }", "title": "" }, { "docid": "f284387cfba69cb8a8461f63be7b34a3", "score": "0.53581256", "text": "String getLanguageTag();", "title": "" }, { "docid": "0611fb2caa30899d438cf6a14c56d5ee", "score": "0.535644", "text": "@Repository\npublic interface MessageRepository extends JpaRepository<Message, Long> {\n\n @Query(\"SELECT message FROM Message message WHERE message.language = :language\")\n Message findByLanguage(@Param(\"language\") String language);\n}", "title": "" } ]
5ac67da1b65bbaad9dc383dac4a3fcef
Sets the ZT value for this ClassRoom.
[ { "docid": "263a4e4720a03a96377ac57222b913e3", "score": "0.7036993", "text": "public void setZT(java.lang.String ZT) {\n this.ZT = ZT;\n }", "title": "" } ]
[ { "docid": "68ca33c8318122d655e93977e405ac99", "score": "0.56955737", "text": "public void setTz(TzType timeZone);", "title": "" }, { "docid": "05faec59ede94a42881a0331ab2dcfb9", "score": "0.56778616", "text": "public java.lang.String getZT() {\n return ZT;\n }", "title": "" }, { "docid": "ebc3f9161fb1823ef522b52336cb3037", "score": "0.5518817", "text": "public void setZ(float z);", "title": "" }, { "docid": "5179a96b8802ae31d3ace076d877bed5", "score": "0.5385397", "text": "public void setZ(double z)\n {\n this.z = z;\n }", "title": "" }, { "docid": "cc6e3973c2dea8edf58e5592c0311463", "score": "0.5329684", "text": "public void setZ(double z) {\r\n\t\tthis.z = z;\r\n\t}", "title": "" }, { "docid": "ea5e69cc977e555d4ae487d2db02181d", "score": "0.5305566", "text": "public void setZ(float z) {\n this.z = z;\n }", "title": "" }, { "docid": "b8c5a3524eb771700df8cca3dc8b3928", "score": "0.5272568", "text": "public Builder setZ(float value) {\n bitField0_ |= 0x00000008;\n z_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9e2ce89b638694747ffe6926468b34b9", "score": "0.52659297", "text": "public Builder setZ(double value) {\n bitField0_ |= 0x00000004;\n z_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9e2ce89b638694747ffe6926468b34b9", "score": "0.52659297", "text": "public Builder setZ(double value) {\n bitField0_ |= 0x00000004;\n z_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4db54b0a304bd0226d52e34d5c7af643", "score": "0.5263506", "text": "public void setZ(double z) {\n if (coordinates.length >= 3) {\n coordinates[2] = z;\n }\n }", "title": "" }, { "docid": "4e9f6b1c1484eb6727fe5e00ca1bb0b4", "score": "0.52627236", "text": "public void setSpawnZ(int z) {\n this.spawnZ = z;\n }", "title": "" }, { "docid": "5b8a086825cab1450071578aff01c04f", "score": "0.5244718", "text": "public Builder setZ(float value) {\n bitField0_ |= 0x00000004;\n z_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5b8a086825cab1450071578aff01c04f", "score": "0.5244718", "text": "public Builder setZ(float value) {\n bitField0_ |= 0x00000004;\n z_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5b8a086825cab1450071578aff01c04f", "score": "0.5244718", "text": "public Builder setZ(float value) {\n bitField0_ |= 0x00000004;\n z_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9b080fde959be63e758afec15c9e9d7f", "score": "0.518564", "text": "public void setZ(float Z) {m_v[2] = Z;}", "title": "" }, { "docid": "0826b35c5c0aa8cb8a3d92117974ddc9", "score": "0.51749426", "text": "public void setViewZ(int z)\n {\n viewVector[2] = z;\n }", "title": "" }, { "docid": "8581302c7d5f6aec1267a10b126481f2", "score": "0.5115074", "text": "public void setOrgZ(double value) {\r\n\t\tOrgZ=value;\r\n\t}", "title": "" }, { "docid": "a7b62d16a3b50125ccd4e9cc4198c8ba", "score": "0.50367165", "text": "public void setZ(final double z) {\n\t\tthis.z = z;\n\t}", "title": "" }, { "docid": "e3081935c512b9c43a8988506d285056", "score": "0.5011316", "text": "@Override\n public SecUserRecord setZCreateTime(Timestamp value) {\n set(17, value);\n return this;\n }", "title": "" }, { "docid": "36d3247c9f5690f976de4f2c1a7c1ea2", "score": "0.5006928", "text": "protected void setZOrder(int zOrder) {\n this.originalZOrder = zOrder;\n }", "title": "" }, { "docid": "42444725d7e10055d98bd7ccb36d8397", "score": "0.50013393", "text": "public void setRotationZ(String newValue);", "title": "" }, { "docid": "437f7c5a4d16778b6769022d0d1d0259", "score": "0.49925053", "text": "public void setYxzt(String yxzt) {\n this.yxzt = yxzt == null ? null : yxzt.trim();\n }", "title": "" }, { "docid": "64000eeac2ff1564f90886609c2acc2f", "score": "0.49218947", "text": "public MaterialBuilder setKT(double KT) {\r\n\t\t\tthis.kT = KT;\r\n\t\t\treturn this;\r\n\t\t}", "title": "" }, { "docid": "37d7f5443db472b64aeed45f081fd8e8", "score": "0.4908127", "text": "public void setZ(double z) {\n if (z < -Aquarium.DEPTH || z > Aquarium.DEPTH * 2) {\n throw new IllegalArgumentException(\"z is out of range: \" + z);\n }\n this.z = z;\n\n // The z position determines the scale.\n this.scale = 0.5 + this.z / Aquarium.DEPTH / 2.0;\n }", "title": "" }, { "docid": "cac9da8d9899fa9400393ceaade18fed", "score": "0.49065092", "text": "private void setZ(float value) {\n this.bitField0_ |= 4;\n this.z_ = value;\n }", "title": "" }, { "docid": "1f46b564418ebf18b85bebe2f4171549", "score": "0.48631686", "text": "public void setZstini(float value) {\n this.zstini = value;\n }", "title": "" }, { "docid": "d3a503ad1a2f2850f5ed23f6b3a5072e", "score": "0.48604307", "text": "@Override\n public SecUserRecord setZUpdateTime(Timestamp value) {\n set(19, value);\n return this;\n }", "title": "" }, { "docid": "c1d63a6cdef4841f13a38442e1ba557b", "score": "0.4848054", "text": "void setMinZ(int z);", "title": "" }, { "docid": "09bc8ef5dc36de5b9e90c4e49badedfa", "score": "0.48392034", "text": "public Builder setZvalue(float value) {\n bitField0_ |= 0x00000020;\n zvalue_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "68111771d831af5f26c103c5037dd5a5", "score": "0.47984168", "text": "public void setRotationalStiffnessZ(IfcRotationalStiffnessMeasure RotationalStiffnessZ)\n\t{\n\t\tthis.RotationalStiffnessZ = RotationalStiffnessZ;\n\t\tfireChangeEvent();\n\t}", "title": "" }, { "docid": "716b84b863a17468c43e7fadc2444145", "score": "0.47950286", "text": "void setZpid(java.lang.String zpid);", "title": "" }, { "docid": "4fb7ea2b9da32044d9389cf69d4dc011", "score": "0.474044", "text": "void setCt(int value);", "title": "" }, { "docid": "8b3ed8dba59ade32eb9db97fe9347b98", "score": "0.4735911", "text": "public void setFlag_Z(char val) {\n setSREG_bit(SREG_Z, val);\n }", "title": "" }, { "docid": "42329a97dadfc539080164fbf733f2b0", "score": "0.4725958", "text": "public Builder setOriginZ(int value) {\n bitField0_ |= 0x00000004;\n originZ_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "986842474de0142de6eff84bb733fc85", "score": "0.4712852", "text": "public void setTbst(int tbst) {\r\n }", "title": "" }, { "docid": "5211130b7d75f6241b3291a848b27b74", "score": "0.4680184", "text": "public void setZid(Integer zid) {\n this.zid = zid;\n }", "title": "" }, { "docid": "5211130b7d75f6241b3291a848b27b74", "score": "0.4680184", "text": "public void setZid(Integer zid) {\n this.zid = zid;\n }", "title": "" }, { "docid": "6c05e20efc8086800bd2d0fdc9f93228", "score": "0.46767622", "text": "@Test\r\n public void testSetTimestrz() throws Exception {\r\n BusinessTraffic bt = new BusinessTraffic();\r\n bt.setTrafficin(new Double(1.0));\r\n bt.setId(new Integer(1));\r\n bt.setCreatetime(new Date());\r\n String timestr = null;\r\n\r\n bt.setTimestr(timestr);\r\n }", "title": "" }, { "docid": "7af15cf16ab1a10fad7cd74d3d295e6c", "score": "0.46453306", "text": "public TzType getTz();", "title": "" }, { "docid": "fa77a03f0436fedbfcb192a3eb331bcf", "score": "0.46451646", "text": "void setTimeZone(String timeZone);", "title": "" }, { "docid": "2294b4ad329b0ac3d04251dab9380874", "score": "0.46381253", "text": "public void setAttimezone(float attimezone) {\n this.attimezone.set(attimezone);\n }", "title": "" }, { "docid": "82deec123c4de494cf911440847c34c6", "score": "0.46339056", "text": "public void setZabity(boolean zabity)\n {\n this.zabity = zabity;\n }", "title": "" }, { "docid": "bcd970040d27054ddc6d1fd8f69285d7", "score": "0.4619694", "text": "public void setZ(float z) {\n/* 128 */ this.values.set(2, (COSBase)new COSFloat(z));\n/* */ }", "title": "" }, { "docid": "612aed75c478a6fe0efce7dadada28ac", "score": "0.45678908", "text": "public schema.dto.Flight.Builder setCrsDepTime(java.lang.Integer value) {\n validate(fields()[5], value);\n this.crs_dep_time = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "title": "" }, { "docid": "e4efa995951f67da4814602014fa27ef", "score": "0.45366004", "text": "public void setTemperature(int temp) {\n\t\tthis.temp = temp;\n\n\t\tfor(Zone z:zones)\n\t\t{\n\t\t\tz.checkTemperature(this.temp);\n\t\t}\n\t\tnotifyView();\n\t}", "title": "" }, { "docid": "6f2cb0ab9fb91edbc5d3f7b3741cbca3", "score": "0.4533555", "text": "public void setKnzAktiv( long pKnzAktiv )\r\n {\r\n m_knz_aktiv = pKnzAktiv;\r\n }", "title": "" }, { "docid": "538a09d838c02c988936b604d98ae387", "score": "0.4510077", "text": "public void setZoneType(typekey.ZoneType value);", "title": "" }, { "docid": "fdbccddab6916a52ea8fc852332016ae", "score": "0.45025176", "text": "public void setPosz(double posz) {\r\n this.posz = posz;\r\n }", "title": "" }, { "docid": "42736a95d59f5d2d50064c96dc3ddcc2", "score": "0.45022452", "text": "public void setTranslationZ(String newValue);", "title": "" }, { "docid": "dcdf7ebb30d3e292d93c71c5b1d4d527", "score": "0.45020118", "text": "void setTimeZone(java.util.xsd.TimeZone timeZone);", "title": "" }, { "docid": "8fa7e7460c283c4700c95a777d0afc52", "score": "0.4489603", "text": "public Builder setPosZ(float value) {\n bitField0_ |= 0x00000004;\n posZ_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2982fe9b4b98f8cd3f9cfd3585fb6d5e", "score": "0.44826892", "text": "public void SetTorus( gp_Torus T) {\n OCCwrapJavaJNI.Geom_ToroidalSurface_SetTorus(swigCPtr, this, gp_Torus.getCPtr(T), T);\n }", "title": "" }, { "docid": "272d2e739a2e54ac030a4c5aef7b118d", "score": "0.44793135", "text": "public void setZcxz(String zcxz) {\n this.zcxz = zcxz == null ? null : zcxz.trim();\n }", "title": "" }, { "docid": "ea645e08e4a9ca62261ef6a879707a8f", "score": "0.44744062", "text": "public void setTtl(int ttl) {\n BitUtilities.setUpper4Bits(getBuf(), POSITION_TTL_LEN_HIGH, ttl);\n }", "title": "" }, { "docid": "93550621a971813f1573f3495c6fc1f9", "score": "0.4467733", "text": "@Test\r\n\tpublic void setTriageZone(){\r\n\t\tListTracker lt = new ListTracker();\r\n\t\tPatient p1=new Patient(lt);\r\n\t\tp1.setTriageZone(Zone.TRAUMA);\r\n\t\tassertEquals(\"zone is wrong\",Zone.TRAUMA,p1.getTriageZone());\r\n\t}", "title": "" }, { "docid": "f64a051429f24fc00eacb82b4c439ffc", "score": "0.44506177", "text": "public void setAxisZ(double axisZ) {\n this.axisZ = axisZ;\n }", "title": "" }, { "docid": "2c90161092d96875e5e04595e1feb1a1", "score": "0.44426563", "text": "public void setTimezone(){\n \t\tReporter.log(\" Verificar el drop-down de timezone \");\n \t\t\n \t\t\n \t\tSelect selectTZ= new Select(driver.findElement(selectTimeZone));\n \t\t \t\t \t\t\n \t\tselectTZ.selectByValue(\"America/Anchorage\");\n\n }", "title": "" }, { "docid": "1fe309aecab606fac82146cc65f56be1", "score": "0.44400883", "text": "public MerchantProperties setTimezone(java.lang.String timezone) {\n logChange(\"timezone\");\n\n try {\n getJSONObject().put(\"timezone\", timezone == null ? org.json.JSONObject.NULL : com.clover.sdk.v3.JsonHelper.toJSON(timezone));\n } catch (org.json.JSONException e) {\n throw new java.lang.IllegalArgumentException(e);\n }\n\n cacheMarkDirty(CacheKey.timezone);\n return this;\n }", "title": "" }, { "docid": "279ba10b966889a4996b266bd642bac6", "score": "0.44380254", "text": "public final void set(Tuple3d t1) {\n \n \tthis.set(t1.x, t1.y, t1.z, 1);\n }", "title": "" }, { "docid": "e6e30c0bae03a3182a4e634a678feb59", "score": "0.44357252", "text": "@JsProperty\n void setZIndex(int value);", "title": "" }, { "docid": "40353acc8073e4734ddf66ed6a762e8d", "score": "0.44274873", "text": "@NotNull\n/* */ public Vector setZ(int z) {\n/* 690 */ this.z = z;\n/* 691 */ return this;\n/* */ }", "title": "" }, { "docid": "ff3e25dd2a3cd66e1b078dfeb90c4c39", "score": "0.44253692", "text": "public Tattoo set(String name, int down);", "title": "" }, { "docid": "5df79967ae1287cad0492333f198a108", "score": "0.4405716", "text": "public MerchantProperties setVat(java.lang.Boolean vat) {\n logChange(\"vat\");\n\n try {\n getJSONObject().put(\"vat\", vat == null ? org.json.JSONObject.NULL : com.clover.sdk.v3.JsonHelper.toJSON(vat));\n } catch (org.json.JSONException e) {\n throw new java.lang.IllegalArgumentException(e);\n }\n\n cacheMarkDirty(CacheKey.vat);\n return this;\n }", "title": "" }, { "docid": "af669087c9e8ddc844cf68410d5e41a4", "score": "0.43942684", "text": "public Builder setT(long value) {\n \n t_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5de25daa3502e3dd4f4a489d173a3362", "score": "0.43871957", "text": "@Override\n public SecUserRecord setZUpdateBy(String value) {\n set(18, value);\n return this;\n }", "title": "" }, { "docid": "ce9854b51510263b60a9a1686a5b2517", "score": "0.43858433", "text": "public void setTIMESTAMPLTZ(int paramInt, TIMESTAMPLTZ paramTIMESTAMPLTZ)\n/* */ throws SQLException\n/* */ {\n/* 7629 */ synchronized (this.connection)\n/* */ {\n/* */ \n/* 7632 */ setTIMESTAMPLTZInternal(paramInt, paramTIMESTAMPLTZ);\n/* */ }\n/* */ }", "title": "" }, { "docid": "7ef9d079febf4a7d9929f3ce5d1537e9", "score": "0.43849155", "text": "public void setLinearStiffnessZ(IfcLinearStiffnessMeasure LinearStiffnessZ)\n\t{\n\t\tthis.LinearStiffnessZ = LinearStiffnessZ;\n\t\tfireChangeEvent();\n\t}", "title": "" }, { "docid": "6febfe658637fd4d293dbe7834ba5106", "score": "0.4380317", "text": "@Override\n\tpublic void setZ_order( int z_order )\n\t{\n\t\tspriteToWatch.setZ_order( z_order );\n\t\tfireChange(\n\t\t\t\"z_order\",\n\t\t\tnull,\n\t\t\tz_order );\n\n\t}", "title": "" }, { "docid": "7deaed1db3a74f381c246ab9342d8676", "score": "0.43793222", "text": "public void setTop(float t) {\r\n\t\ttop = t;\r\n\t\tupdate();\r\n\t}", "title": "" }, { "docid": "084dd431d2ecc0ab98ce607129647d82", "score": "0.43786225", "text": "public schema.dto.Flight.Builder setDepTime(java.lang.Integer value) {\n validate(fields()[4], value);\n this.dep_time = value;\n fieldSetFlags()[4] = true;\n return this;\n }", "title": "" }, { "docid": "e2f1c857fe29f937fec3c4b172f241f0", "score": "0.4371087", "text": "public void setUMSKZ(\n com.nhry.webService.client.Supplier.functions.UMSKZ_type1 param) {\n localUMSKZTracker = param != null;\n\n this.localUMSKZ = param;\n }", "title": "" }, { "docid": "613aaba0b927ff921a5fc2292df04d6f", "score": "0.43702018", "text": "public void mo15440z(boolean z) {\n synchronized (this.f3558mH) {\n this.f3566wZ = z;\n m4719dJ();\n }\n }", "title": "" }, { "docid": "449227914cd23e92f01889c976785dcd", "score": "0.43683997", "text": "public void setTIMESTAMPTZ(int paramInt, TIMESTAMPTZ paramTIMESTAMPTZ)\n/* */ throws SQLException\n/* */ {\n/* 7565 */ synchronized (this.connection)\n/* */ {\n/* */ \n/* 7568 */ setTIMESTAMPTZInternal(paramInt, paramTIMESTAMPTZ);\n/* */ }\n/* */ }", "title": "" }, { "docid": "002042bf80c6724f4696db09c19c6c26", "score": "0.43674728", "text": "public void setTimeZone(ZoneId timeZone)\n/* */ {\n/* 69 */ this.timeZone = timeZone;\n/* */ }", "title": "" }, { "docid": "d29960c78abd738107cb7309ca56d4d0", "score": "0.4357702", "text": "public Builder clearZvalue() {\n bitField0_ = (bitField0_ & ~0x00000020);\n zvalue_ = 0F;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "cc75e22039c81d7e245db5a7d534c605", "score": "0.43478724", "text": "public void set(T value) {\n this.set(null, value);\n }", "title": "" }, { "docid": "9d777824d225848b7d93f6565cc5edb3", "score": "0.43411472", "text": "public void setTimeZone(java.lang.String timeZone)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TIMEZONE$18, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TIMEZONE$18);\n }\n target.setStringValue(timeZone);\n }\n }", "title": "" }, { "docid": "94d8d42247ccd1bc97d5ab6cdfaf8634", "score": "0.4337873", "text": "public void setOpsaz_zone(java.lang.String param){\n localOpsaz_zoneTracker = true;\n \n this.localOpsaz_zone=param;\n \n\n }", "title": "" }, { "docid": "fe9494e02a2112e93aec6f3f3a79ed4e", "score": "0.43162385", "text": "public CoordinatesSystem setZAxis(Axis<Z> axis)\r\n {\r\n axisZ = axis;\r\n return this;\r\n }", "title": "" }, { "docid": "c557ab71af28ad889efd8e6c1ae7d75c", "score": "0.431458", "text": "public org.LNDCDC_NCS_TCS.TEAMS.apache.nifi.LNDCDC_NCS_TCS_TEAMS.Builder setTRGCRTDTPARTUTC(java.lang.CharSequence value) {\n validate(fields()[10], value);\n this.TRG_CRT_DT_PART_UTC = value;\n fieldSetFlags()[10] = true;\n return this;\n }", "title": "" }, { "docid": "0ce531bfa452f63f1d740a166ce121ac", "score": "0.4312982", "text": "public void setTimeZone(TimeZone value) {\n zone = value;\n sharedZone = false;\n /*\n * Recompute the fields from the time using the new zone. This also\n * works if isTimeSet is false (after a call to set()). In that case the\n * time will be computed from the fields using the new zone, then the\n * fields will get recomputed from that. Consider the sequence of calls:\n * cal.setTimeZone(EST); cal.set(HOUR, 1); cal.setTimeZone(PST). Is cal\n * set to 1 o'clock EST or 1 o'clock PST? Answer: PST. More generally, a\n * call to setTimeZone() affects calls to set() BEFORE AND AFTER it up\n * to the next call to complete().\n */\n areAllFieldsSet = areFieldsSet = false;\n }", "title": "" }, { "docid": "67225e9c19482bb23fa1a0fa6b8b0ca3", "score": "0.43042302", "text": "public SimpleFloatProperty attimezoneProperty() {\n return attimezone;\n }", "title": "" }, { "docid": "e7c8dc2fa076355249aef0a99ec2edf2", "score": "0.43027782", "text": "void setMaxZ(int z);", "title": "" }, { "docid": "a953bcfc6efbad3526093a3832d83de1", "score": "0.42935544", "text": "@NotNull\n/* */ public Vector setZ(float z) {\n/* 714 */ this.z = z;\n/* 715 */ return this;\n/* */ }", "title": "" }, { "docid": "d05958387f0be1cdb0f4292ac6311d21", "score": "0.4283408", "text": "public void setZcdw(String zcdw) {\n this.zcdw = zcdw == null ? null : zcdw.trim();\n }", "title": "" }, { "docid": "484f8dc06ac054e535f1677b3165a0dd", "score": "0.42817825", "text": "public void xsetTimeZone(org.apache.xmlbeans.XmlString timeZone)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TIMEZONE$18, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TIMEZONE$18);\n }\n target.set(timeZone);\n }\n }", "title": "" }, { "docid": "3ae2fbf0699038425d52ad3ac4fbab46", "score": "0.42807472", "text": "public void setZona(cl.sernapesca.www.schema.CodigoDescripcionType zona) {\n this.zona = zona;\n }", "title": "" }, { "docid": "336de3ebee83307fa78c3579fce276ab", "score": "0.42735496", "text": "public void setBZ(java.lang.String BZ) {\n this.BZ = BZ;\n }", "title": "" }, { "docid": "141c3663a8175e5ea3e946ee72eff54d", "score": "0.42691663", "text": "public void setZIndex(Number zIndex) {\n\t\tthis.zIndex = zIndex;\n\t}", "title": "" }, { "docid": "97c2c1efb9c4018b277cebc1835a1039", "score": "0.4254291", "text": "public Builder clearZ() {\n bitField0_ = (bitField0_ & ~0x00000004);\n z_ = 0D;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "97c2c1efb9c4018b277cebc1835a1039", "score": "0.4254291", "text": "public Builder clearZ() {\n bitField0_ = (bitField0_ & ~0x00000004);\n z_ = 0D;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8f23527b093f9afc6e92c249bb732b47", "score": "0.42523837", "text": "private void setClock() {\n\t\tclock.setHour(Integer.parseInt(tfHour.getText()));\n\t\tclock.setMinute(Integer.parseInt(tfMinute.getText())); \n\t\tclock.setSecond(Integer.parseInt(tfSecond.getText()));\n\t}", "title": "" }, { "docid": "e2ab06a3fb160588969d71bb17eb7f17", "score": "0.4250519", "text": "public void setAC( int temp ) {\r\n\t\t\r\n\t\tSystem.out.println(\"Setting AC Temperatura at ... \" + temp);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "dda4994f34e04c2b1343bf80ed5492a8", "score": "0.4240958", "text": "public Builder clearZ() {\n bitField0_ = (bitField0_ & ~0x00000004);\n z_ = 0F;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "dda4994f34e04c2b1343bf80ed5492a8", "score": "0.4240958", "text": "public Builder clearZ() {\n bitField0_ = (bitField0_ & ~0x00000004);\n z_ = 0F;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "dda4994f34e04c2b1343bf80ed5492a8", "score": "0.4240958", "text": "public Builder clearZ() {\n bitField0_ = (bitField0_ & ~0x00000004);\n z_ = 0F;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6a6b9759898d54ab5aab5f975f962c80", "score": "0.42404", "text": "@NotNull\n/* */ public Vector setZ(double z) {\n/* 702 */ this.z = z;\n/* 703 */ return this;\n/* */ }", "title": "" }, { "docid": "80f4b8599541f5ba65de0cab340af666", "score": "0.423356", "text": "public Builder clearZ() {\n bitField0_ = (bitField0_ & ~0x00000008);\n z_ = 0F;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4fe9eb733e715e1d13efec8e00b44590", "score": "0.4229172", "text": "public void setFlag_T(char val) {\n setSREG_bit(SREG_T, val);\n }", "title": "" }, { "docid": "fb6b2bedc69ebf94d3b6dd708d2a3ddb", "score": "0.42172498", "text": "public void setRoomMode(RoomMode_type0 param){\r\n \r\n this.localRoomMode=param;\r\n \r\n\r\n }", "title": "" } ]
470661b340f34f9f6e3e3c548d23dfa7
Test of execute method, of class Save.
[ { "docid": "4af129fd2db1eff8617c4f88be72cf55", "score": "0.0", "text": "@Test\n public void testExecuteAddTaskAddRessource() {\n //sauvegarde d'un nouveau projet seulement\n project = DAO.getInstance().insertProject(\"name\", MyDate.now());\n project.getTasks().add(new Task(\"name\", MyDate.now(), MyDate.now(), 0, \"note\", project.getId()));\n project.getTasks().add(new Task(\"name\", MyDate.now(), MyDate.now(), 0, \"note\", project.getId()));\n project.getTasks().add(new Task(\"name\", MyDate.now(), MyDate.now(), 0, \"note\", project.getId()));\n project.setState(new StateNotSave());\n \n project = new Save(project).execute();\n //obligé de sauvegardé après l'ajout des tâches sinon pas ID disponible pour les prédecesseurs\n Task t = project.getTasks().get(0);\n Task t2 = project.getTasks().get(1);\n t.getRessources().add(new Human(0.0f, \"name\", \"firstname\", \"role\", t.getId()));\n t2.getRessources().add(new Equipment(0.0f, \"reference\", \"name\", t2.getId()));\n \n project.setState(new StateNotSave());\n project = new Save(project).execute();\n \n Project proj = DAO.getInstance().getProject(project.getId());\n assertEquals(proj.getTasks().get(0).getRessources().size(), 1);\n assertEquals(proj.getTasks().get(1).getRessources().size(), 1);\n \n List<Ressource> list = DAO.getInstance().getAllRessourceByIdTask(t.getId());\n List<Ressource> list2 = DAO.getInstance().getAllRessourceByIdTask(t2.getId());\n assertEquals(list.get(0), proj.getTasks().get(0).getRessources().get(0));\n assertEquals(list2.get(0), proj.getTasks().get(1).getRessources().get(0));\n \n }", "title": "" } ]
[ { "docid": "be5c61b414564b7ff3068260e5f2f618", "score": "0.70810467", "text": "public void testSave() throws Exception {\n\t}", "title": "" }, { "docid": "4e7fc2934d8f46f4a1b3779a5b6772ab", "score": "0.6978642", "text": "@Test\n public void testExecute() {\n //sauvegarde d'un nouveau projet seulement\n project = new Project(null,\"project\", MyDate.now());//projet de base état sauvegarder\n project.setState(new StateNotSave());\n project = new Save(project).execute();\n Project proj = DAO.getInstance().getProject(project.getId());\n assertEquals(proj, project);\n \n }", "title": "" }, { "docid": "94e13fc1937142815dddb2ec8bf54315", "score": "0.6896782", "text": "@Test\r\n public void testSave() throws Exception {\r\n System.out.println(\"save\");\r\n long expResult = 0;\r\n long result = instance.save(estado);\r\n assertEquals(expResult, result);\r\n }", "title": "" }, { "docid": "b8528b6d92a28f1a5fe0c5ad5c83a9f4", "score": "0.6773368", "text": "@Test\n public void testExecute2() {\n //sauvegarde d'un nouveau projet seulement\n project = DAO.getInstance().insertProject(\"name\", MyDate.now());\n project = new Save(project).execute();\n Project proj = DAO.getInstance().getProject(project.getId());\n assertEquals(proj, project);\n \n }", "title": "" }, { "docid": "2c5fb02dcfe022ec6cef5821aaecd1e8", "score": "0.67024803", "text": "public void testSaveTaskResult()\n {\n \tboolean wasSaved = taskManager.saveTaskResult(\"67890\", \"231423\");\n \tassertEquals( true , wasSaved );\n }", "title": "" }, { "docid": "399c393c37335c3c45a3ebd734f658d3", "score": "0.6626979", "text": "@Test\r\n public void testSave() {\r\n System.out.println(\"save\");\r\n OBJInvPayPlan currency = null;\r\n int Act = 0;\r\n SERInvPayPlan.save(currency, Act);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "ed8a7b0627f8d6ba200ae26073abaacf", "score": "0.6484857", "text": "@Test\n public void testSaveCurrentWork() {\n }", "title": "" }, { "docid": "3f957d8420c3725e0163b24c860a5cb0", "score": "0.6366025", "text": "@Test\n public void testSaving() {\n System.out.println(\"saving\");\n User instance = new User();\n boolean expResult = true;\n boolean result = instance.saving();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "b3a760370d6e4c29e8dee7d7e8f48881", "score": "0.6360221", "text": "@Test\n public void testExecute() {\n System.out.println(\"execute\");\n String instruction = \"\";\n Main.execute(instruction);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "86a04993c1e51c002507de49afed05e0", "score": "0.6356342", "text": "public String execute() {\n try {\n GameState.instance().store(saveFilename);\n return \"Data saved to \" + saveFilename +\n GameState.SAVE_FILE_EXTENSION + \".\\n\";\n } catch (Exception e) {\n System.err.println(\"Couldn't save!\");\n e.printStackTrace();\n return \"\";\n }\n }", "title": "" }, { "docid": "e157a52807e37725dba36186225efc3e", "score": "0.6299603", "text": "@Test\r\n\tpublic void testSave() {\r\n\t\t// get some test records\r\n\t\tUser user1 = createTestRecord1();\r\n\t\tUser user2 = createTestRecord2();\r\n\r\n\t\t// save user 1\r\n\t\tlog.info(\"About to run dao.save(user1) ... \");\r\n\t\tdao.save(user1);\r\n\r\n\t\t// verify results\r\n\t\tUser user = dao.findById(user1.getId());\r\n\t\tAssert.assertTrue(user != null);\r\n\r\n\t\t// save user 2\r\n\t\tlog.info(\"About to run dao.save(user2) ... \");\r\n\t\tdao.save(user2);\r\n\r\n\t\t// verify results\r\n\t\tuser = dao.findById(user2.getId());\r\n\t\tAssert.assertTrue(user != null);\r\n\r\n\t\t// clean up the database\r\n\t\tdao.delete(user1);\r\n\t\tdao.delete(user2);\r\n\t}", "title": "" }, { "docid": "bd1373b7a3a711376501dad9992082b8", "score": "0.62834185", "text": "private void save(){\n\t\t//some code goes here\n\t}", "title": "" }, { "docid": "05e1281d433d17dab8a5f172207db079", "score": "0.62480354", "text": "private void execute() {\n \n }", "title": "" }, { "docid": "a1c0d1bc92ce94f0525beb651edfefbf", "score": "0.62237054", "text": "public boolean execute();", "title": "" }, { "docid": "a1c0d1bc92ce94f0525beb651edfefbf", "score": "0.62237054", "text": "public boolean execute();", "title": "" }, { "docid": "b8d740d5481af15ec7198e27933bc91f", "score": "0.6198791", "text": "public void execute();", "title": "" }, { "docid": "b8d740d5481af15ec7198e27933bc91f", "score": "0.6198791", "text": "public void execute();", "title": "" }, { "docid": "b8d740d5481af15ec7198e27933bc91f", "score": "0.6198791", "text": "public void execute();", "title": "" }, { "docid": "b8d740d5481af15ec7198e27933bc91f", "score": "0.6198791", "text": "public void execute();", "title": "" }, { "docid": "1e3234c4faffc8c65a4dedf6ba9bcec0", "score": "0.6191174", "text": "@Override\r\n\tpublic void execute() throws Exception {\n\t\tthis.model.saveToDb(params.remove(), params.remove());\r\n\r\n\t}", "title": "" }, { "docid": "da88f1a5c5edd0dd8c87bd10292a74f8", "score": "0.618898", "text": "public String save() throws Exception {\r\n\t\treturn execute();\r\n\t}", "title": "" }, { "docid": "ba8d7086a67968f5255a2f70db33efdf", "score": "0.6184445", "text": "public void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "ba8d7086a67968f5255a2f70db33efdf", "score": "0.6184445", "text": "public void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "70f3a6b205ce6e3cee368cef36183407", "score": "0.6181729", "text": "@Test\n\tpublic void testExecute() {\n\t\tMap<Protocol, ServiceExecutor> protocolMapping = new HashMap<Protocol, ServiceExecutor>();\n\t\tprotocolMapping.put(protocol, executor);\n\t\tfactory.setProtocolMapping(protocolMapping);\n\n\t\t// Call the tested method\n\t\tfactory.execute(TEST_CORRELATION_ID, registration, input);\n\n\t\t// Verify if the call was redirected correct\n\t\tverify(executor, times(1)).execute(TEST_CORRELATION_ID, registration, input);\n\t}", "title": "" }, { "docid": "9005f80fb15f4a1f2a44ecb1171bf80d", "score": "0.6177261", "text": "@Override\r\n\tpublic void executeTestCase() throws Exception {\n\r\n\t}", "title": "" }, { "docid": "82fbc8f405b54b8448f4c640dc79f8a2", "score": "0.6176843", "text": "boolean execute();", "title": "" }, { "docid": "18276019b75a23b9f82970661a97d9da", "score": "0.61494285", "text": "public boolean save(Testbed testbed);", "title": "" }, { "docid": "54e7e541c9f71a6395d5633405afe448", "score": "0.6146559", "text": "@Test\r\n public void testSave() {\r\n System.out.println(\"save\");\r\n \r\n MessageBean instance = new MessageBean();\r\n int expResult = 1;\r\n int result = instance.save(obj);\r\n assertEquals(expResult, result);\r\n \r\n \r\n }", "title": "" }, { "docid": "0b004f5c7e8b78a1e1cffeb6886ffbac", "score": "0.6144872", "text": "public abstract void execute();", "title": "" }, { "docid": "0b004f5c7e8b78a1e1cffeb6886ffbac", "score": "0.6144872", "text": "public abstract void execute();", "title": "" }, { "docid": "0b004f5c7e8b78a1e1cffeb6886ffbac", "score": "0.6144872", "text": "public abstract void execute();", "title": "" }, { "docid": "0b004f5c7e8b78a1e1cffeb6886ffbac", "score": "0.6144872", "text": "public abstract void execute();", "title": "" }, { "docid": "0b004f5c7e8b78a1e1cffeb6886ffbac", "score": "0.6144872", "text": "public abstract void execute();", "title": "" }, { "docid": "0b004f5c7e8b78a1e1cffeb6886ffbac", "score": "0.6144872", "text": "public abstract void execute();", "title": "" }, { "docid": "39cd8e54264d9d14a8d6851428dc4997", "score": "0.61383903", "text": "void save() throws Exception;", "title": "" }, { "docid": "8337c4dc4a15cac45a8f1e60d767f4e3", "score": "0.613499", "text": "protected abstract T execute();", "title": "" }, { "docid": "14e836a398838cbe2a0b1444ecb9cd70", "score": "0.613062", "text": "protected void execute() {\n \t\n }", "title": "" }, { "docid": "90a97e6af18b1e1be21d0bf97afa9b5b", "score": "0.6109505", "text": "public void execute();", "title": "" }, { "docid": "14bb4a2407f107e4f4a1ed0866416c92", "score": "0.61034465", "text": "public abstract Result execute();", "title": "" }, { "docid": "0e6b35af8ed7b397ae2d6ee132dcbe16", "score": "0.61017716", "text": "public void execute() {\n }", "title": "" }, { "docid": "b61afb7b3d62a3b771263cc6af0ccbc9", "score": "0.61004335", "text": "@Override\n\tpublic void execute() {\n\t\tdocument.save();\n\t}", "title": "" }, { "docid": "270ac0dea82246920b24defe16ffa124", "score": "0.60973525", "text": "public void testExecute() {\n action.execute();\n\n assertFalse(\"The visibility should be updated to false.\", node.isVisible());\n assertTrue(\"The action should can be un-done.\", action.canUndo());\n }", "title": "" }, { "docid": "bc4d0c7fdabbf518076166381a4aae20", "score": "0.6088388", "text": "public void execute(){\n }", "title": "" }, { "docid": "ab9023268b37606c4e9f4ee670562eac", "score": "0.60848564", "text": "public void test_execute() throws Exception {\n instance.addEdit(new MockUndoableAction(integer));\n instance.addEdit(new TransientUndoableAction(new MockTransientAction(integer), \"TransientUndoableAction\"));\n\n instance.execute();\n\n assertEquals(2, integer.get());\n }", "title": "" }, { "docid": "1b1f911331b5cf61986cd2f31c4cc0ab", "score": "0.6084562", "text": "public void execute() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cbb9fc19bca38bbcaac472d514189919", "score": "0.6082504", "text": "@Override\n\tpublic String execute() throws Exception {\n\t\treturn this.SUCCESS;\n\t}", "title": "" }, { "docid": "e41a5959822925664d95e598878f5d4e", "score": "0.6082362", "text": "@Override\r\n\tpublic String execute() throws Exception {\n\t\tsavePath=PacthUtill.getPacthVal(\"saveOrderSuccessSavePath\");\r\n\t\tfictitiousPath=PacthUtill.getPacthVal(\"saveOrderSuccessSavePathFictitiousPath\");\r\n\t\tResultMessage resultMessage = null;\r\n\t\tUser user = userService.selectByRdCode(salesmanSuccess.getCustomerPhoneRdCode());\r\n\t\tif (user == null) {\r\n\t\t\tresultMessage = new ResultMessage(\"-1\", \"false\", \"该推荐码不存在,请查证\");\r\n\t\t\tgetJsonText(resultMessage);\r\n\t\t\treturn this.SUCCESS;\r\n\t\t}\r\n\t\tSalesman salesman=salesmanService.querySalesmanById(salesmanSuccess.getServiceSalesman());\r\n\t\tif(salesman==null)\r\n\t\t{\r\n\t\t\tresultMessage = new ResultMessage(\"-2\", \"false\", \"注意请填写的登录ID而不是姓名或者检查一下ID\");\r\n\t\t\tgetJsonText(resultMessage);\r\n\t\t\treturn this.SUCCESS;\r\n\t\t}\r\n\t\tString random = RandomUtill.randomUtil();\r\n\t\tfictitiousPath = fictitiousPath +salesmanSuccess.getOrderNumber() +random;\r\n\t\tsavePath = savePath + salesmanSuccess.getOrderNumber() + random;\r\n\t\tString tempPath = \"\";\r\n\t\twhile (!(createDir(savePath))) {\r\n\r\n\t\t\trandom = RandomUtill.randomUtil();\r\n\t\t\tfictitiousPath = fictitiousPath + salesmanSuccess.getOrderNumber() + random;\r\n\t\t\tsavePath = savePath + salesmanSuccess.getOrderNumber()+ random;\r\n\r\n\t\t}\r\n\t\tInputStream is = new FileInputStream(file);\r\n\t\tOutputStream os = new FileOutputStream(new File(savePath, fileFileName));\r\n\t\r\n\r\n\t\tbyte[] buffer = new byte[500];\r\n\t\twhile (-1 != (is.read(buffer, 0, buffer.length))) {\r\n\r\n\t\t\tos.write(buffer);\r\n\t\t}\r\n\t\tos.close();\r\n\t\tis.close();\r\n\t\ttempPath = tempPath + fictitiousPath + \"/\" + fileFileName;\r\n\t\tsalesmanSuccess.setPayVoucher(tempPath);\r\n\t\tint i=salesmanService.saveSalesManSuccess(salesmanSuccess);\r\n\t\tif(i>0)\r\n\t\t{\r\n\t\t\tresultMessage = new ResultMessage(\"1\", \"true\", \"添加成功\");\r\n\t\t\tgetJsonText(resultMessage);\r\n\t\t\treturn this.SUCCESS;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tresultMessage = new ResultMessage(\"-4\", \"false\", \"添加失败\");\r\n\t\t\tgetJsonText(resultMessage);\r\n\t\t\treturn this.SUCCESS;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2632b844fff14bcd0f513812e352594b", "score": "0.60694075", "text": "@Override\n public String execute() throws Exception {\n\n System.out.println(\"[ENTERING PRETEST ACTION]\");\n Student s = (Student) session.get(\"student\");\n\n //don't need to show pretest to the special user, shouldn't come here\n //if incase, double check.\n if (s.isIsSpecialStudent()) {\n return Result.FINISHEDALL;\n }\n\n //String result = run(s);\n //TODO: rajendra 4/14/2015. Temporarily disabling..\n String result = Result.FINISHEDALL;\n\n System.out.println(\"[RETURNING FROM PRETEST ACTION]\");\n return result;\n }", "title": "" }, { "docid": "31db489d5e8e14b7bdbabad78786cc85", "score": "0.6062419", "text": "@Override\n\tpublic int execute(IDatabase store) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "65ac93715167c3b9be33a0955e9c48d7", "score": "0.6061653", "text": "@Test\n public void Cases_23337_execute() throws Exception {\n VoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n myCase.navToRecord();\n\n // Click Edit button\n sugar().cases.recordView.edit();\n\n // Set case subject empty and try to save a case\n sugar().cases.recordView.setFields(customData);\n\n // And cancel edition\n sugar().cases.recordView.cancel();\n\n // Verify that record hasn't been changed\n myCase.verify(caseData);\n\n VoodooUtils.voodoo.log.info(testName + \" complete.\");\n }", "title": "" }, { "docid": "fd3b2a876f3aa4ece105c1ece535d98e", "score": "0.6059183", "text": "@Test\n public void execute() {\n }", "title": "" }, { "docid": "ef9b0f9c45fbd574173924bd4a11382b", "score": "0.60535073", "text": "@Override\n\t\t\tpublic void execute() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "22c3bed9976ece62ed85e2f6685dee33", "score": "0.60425305", "text": "public void execute() {\n\t}", "title": "" }, { "docid": "220c4fd7bb54645b1a1301e41199fad7", "score": "0.6039873", "text": "protected void execute() {\r\n \r\n }", "title": "" }, { "docid": "5235792cbb0e1bc2df1df641ac903ecc", "score": "0.6029736", "text": "public void executeTestOperations() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "87fedfd6c959ba211b1566002aeb4f3c", "score": "0.6016875", "text": "@Test\n public void execute() {\n expectedModel.undoModulePlanner();\n assertCommandSuccess(new UndoCommand(), model, commandHistory, UndoCommand.MESSAGE_SUCCESS, expectedModel);\n\n // single undoable state in model\n expectedModel.undoModulePlanner();\n assertCommandSuccess(new UndoCommand(), model, commandHistory, UndoCommand.MESSAGE_SUCCESS, expectedModel);\n\n // no undoable states in model\n assertCommandFailure(new UndoCommand(), model, commandHistory, UndoCommand.MESSAGE_FAILURE);\n }", "title": "" }, { "docid": "199e6b3dd39f4747630726819d5a59ed", "score": "0.5995181", "text": "@Test\n public void saveQuake(){\n mQuakesRepository.saveQuake(QUAKES_RECENT.get(0));\n\n // upon save command, check if both data sources are being called\n verify(mQuakesLocalDataSource).saveQuake(QUAKES_RECENT.get(0));\n verify(mQuakesRemoteDataSource).saveQuake(QUAKES_RECENT.get(0));\n }", "title": "" }, { "docid": "8a09599a469afa3934ee00a4dc0d649b", "score": "0.5988289", "text": "@Test\n public void testPlaceOrderAndSave() {\n }", "title": "" }, { "docid": "af01162246e2680204d54748fa94a2dc", "score": "0.5988195", "text": "@Override\n void preExecutionSave() {\n }", "title": "" }, { "docid": "e304ca926ab56e1a2567b7872aeee7d1", "score": "0.5983632", "text": "@Test\r\n\tpublic void testExecuteCommand() {\r\n\t\tRequirementsTrackerModel model = RequirementsTrackerModel.getInstance();\r\n\t\tmodel.createNewRequirementsList();\r\n\t\tmodel.addRequirement(\"summary\", \"acceptanceTestId\");\r\n\t\tCommand c = new Command(CommandValue.ACCEPT, \"summary\", \"id\", 1, \"estimate\", \"developer\", Rejection.DUPLICATE);\r\n\t\tmodel.executeCommand(0, c);\r\n\t\tRequirement r = model.getRequirementById(0);\r\n\t\tassertEquals(\"Accepted\", r.getState().getStateName());\r\n\t\tassertEquals(\"summary\", r.getSummary());\t\t\r\n\t\tassertEquals(\"estimate\", r.getEstimate());\r\n\t\tassertEquals(1, r.getPriority());\r\n\t}", "title": "" }, { "docid": "935cfd745f3131560c2361d957c41a22", "score": "0.59834653", "text": "void execute();", "title": "" }, { "docid": "935cfd745f3131560c2361d957c41a22", "score": "0.59834653", "text": "void execute();", "title": "" }, { "docid": "935cfd745f3131560c2361d957c41a22", "score": "0.59834653", "text": "void execute();", "title": "" }, { "docid": "935cfd745f3131560c2361d957c41a22", "score": "0.59834653", "text": "void execute();", "title": "" }, { "docid": "935cfd745f3131560c2361d957c41a22", "score": "0.59834653", "text": "void execute();", "title": "" }, { "docid": "a790dc03e35124bab970ef59f43b6977", "score": "0.5957412", "text": "@Override\r\n\tpublic void execute() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a790dc03e35124bab970ef59f43b6977", "score": "0.5957412", "text": "@Override\r\n\tpublic void execute() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7eeabbf10d13601150f87c7ee09a679e", "score": "0.59393394", "text": "@Test\n public void testPersist() {\n ModuleAction action = testModuleAction();\n \n repository.persist(action);\n \n assertTrue(new File(DATA_FILE_NAME).exists());\n }", "title": "" }, { "docid": "c9d287170c4b51b1311d71347fac9ac3", "score": "0.5933421", "text": "@Override\n\tpublic void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "c9d287170c4b51b1311d71347fac9ac3", "score": "0.5933421", "text": "@Override\n\tpublic void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "675b36adbbd4dd6db3f89b37f26a5b7e", "score": "0.59332526", "text": "@Test\r\n public void testSave() {\r\n System.out.println(\"save\");\r\n MovimentoDocumento mDocumento = new MovimentoDocumento();\r\n mDocumento.setDataRecepcao(new Date(DateUtil.strToDate(\"10/02/2017\").getTime()));\r\n mDocumento.setDataReenvio(new Date(DateUtil.strToDate(\"20/02/2017\").getTime()));\r\n mDocumento.getDepartamento().setIdDepartamento(12);\r\n mDocumento.getDocumento().setNumeroProtocolo(1);\r\n mDocumento.setNotas(\"N1\");\r\n MovimentoDocumentoDAO instance = new MovimentoDocumentoDAO();\r\n //instance.save(mDocumento);\r\n }", "title": "" }, { "docid": "5fec5c47edd7781fb3a828a3af8fd0ac", "score": "0.5921211", "text": "public abstract void save();", "title": "" }, { "docid": "5fec5c47edd7781fb3a828a3af8fd0ac", "score": "0.5921211", "text": "public abstract void save();", "title": "" }, { "docid": "6e899c64d991ef0440f3e22fd390738d", "score": "0.5920059", "text": "@Override\r\n public void execute(Object obj) {\n \r\n }", "title": "" }, { "docid": "8879e8a832dfe469815cb9ee43451caa", "score": "0.5917596", "text": "public void testExecute() throws Exception {\n System.out.println(\"execute\");\n //BaseOne instance = new BaseOne(\"5 5 1 2 N LMLMLMLMM 3 3 E MMRMMRMRRM 1 4 E LRMMRMMRMRRM 3 3 E MMRMMRMRRM 1 2 N LMLMLMLMM\");\n String expResult = \"1 3 N 5 1 E 3 2 E 5 1 E 1 3 N\";\n String result = \"1 3 N 5 1 E 3 2 E 5 1 E 1 3 N\";\n //String result = instance.execute();\n assertEquals(expResult, result);\n System.out.println(\"Result:\"+result);\n }", "title": "" }, { "docid": "e1c3564bbe181f361448966a46c53822", "score": "0.59113", "text": "public Object execute(Object obj) throws Exception;", "title": "" }, { "docid": "97b26a3b14852a96b41749ea41ec3b70", "score": "0.59088916", "text": "@Test\n public void executionTest() throws ApiException {\n String action = null;\n String name = null;\n Integer projectId = null;\n api.execution(action, name, projectId);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "43a988041a3cfd63ba516d5f6f264eb0", "score": "0.59049547", "text": "@Test\n public void testSaveDoc() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.5894069", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.5894069", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.5894069", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.5894069", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.5894069", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.5894069", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.5894069", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.5894069", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.5894069", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.5894069", "text": "protected void execute() {\n }", "title": "" }, { "docid": "1a6ffead3119a75a8b3c9a8dde48a8c7", "score": "0.5889216", "text": "@Test\n public void testExecute() {\n AbstractBolt bolt = mock(AbstractBolt.class);\n Map<String, Object> config = new HashMap<>();\n TopologyContext context = mock(TopologyContext.class);\n OutputCollector outputCollector = mock(OutputCollector.class);\n bolt.prepare(config, context, outputCollector);\n\n Tuple tuple = TupleUtil.mockDataTuple();\n\n bolt.execute(tuple);\n\n verify(bolt).process(eq(tuple));\n verify(outputCollector).ack(eq(tuple));\n }", "title": "" }, { "docid": "b31ec93662389007aeef1ac4ea19ea29", "score": "0.58799255", "text": "@Test\n\tpublic void execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tFieldSet testData = new FieldSet();\n\t\ttestData.put(\"name\", \"Test\");\n\t\t\n\t\tsugar.accounts.navToListView();\n\t\tsugar.accounts.listView.create();\n\t\tsugar.accounts.createDrawer.getEditField(\"name\").set(testData.get(\"name\"));\n\t\tsugar.accounts.createDrawer.saveAndCreateNew();\n\t\t\n\t\tsugar.accounts.createDrawer.getEditField(\"name\").set(testData.get(\"name\"));\n\t\tsugar.accounts.createDrawer.cancel();\n\t\t\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "title": "" }, { "docid": "18d7075cdd1be559c3b6f547dbc42af7", "score": "0.58677185", "text": "Object execute() throws Throwable;", "title": "" }, { "docid": "38f0108ae740840f93a006ea1944275d", "score": "0.58545053", "text": "public abstract void execute() throws Exception;", "title": "" }, { "docid": "2cc0009c958f605dec7bf9af0a95d7a4", "score": "0.5849797", "text": "protected void execute() \n {\n }", "title": "" }, { "docid": "bfc9ecdeced33fce154ee1d3fdfacb55", "score": "0.5846466", "text": "@Test\n public void testSaveLoadGame() {\n System.out.println(\"loadGame\");\n GoGame instance = new GoGame(false);\n instance.panel.board.Play(150, 150, 0, false);\n instance.saveGame();\n instance.exitGame();\n instance.loadGame();\n Stone st = instance.panel.board.findStoneByPos(150, 150);\n assertTrue(st.getX() == 150);\n }", "title": "" }, { "docid": "2dc0c9128707529ca2824e197ff69766", "score": "0.5829416", "text": "@Test\r\n public void testSaveAll() throws Exception {\r\n System.out.println(\"saveAll - no implaments\");\r\n }", "title": "" }, { "docid": "b964d68ba881b652b372c37baf318b56", "score": "0.5828745", "text": "@Test\n public void testSaveMoto() {\n System.out.println(\"saveMoto\");\n\n IMotoRepository repo = new MotoRepository();\n Moto newMoto;\n Service instance = new Service(null, null, repo);\n boolean expResult = false;\n boolean result = instance.saveMoto(null);\n assertEquals(expResult, result);\n\n newMoto = new Moto(\"sx2s\", \"Yamaha\", 2011);\n newMoto.setTiempo(\"4:59\");\n expResult = true;\n result = instance.saveMoto(newMoto);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "aec2e9b45f20c8b16c6fb500d0aefc59", "score": "0.58274525", "text": "public void saveAction() {\n\t\t\n\t}", "title": "" }, { "docid": "5f66f61c9a24fe319a2bcdab724f1228", "score": "0.58116746", "text": "@Override\n\tpublic void execute() {\n\n\t}", "title": "" }, { "docid": "8d2ca64e89c842c59740a2c8e21c8f24", "score": "0.5811605", "text": "protected void execute() {\n\t}", "title": "" }, { "docid": "8d2ca64e89c842c59740a2c8e21c8f24", "score": "0.5811605", "text": "protected void execute() {\n\t}", "title": "" }, { "docid": "8d2ca64e89c842c59740a2c8e21c8f24", "score": "0.5811605", "text": "protected void execute() {\n\t}", "title": "" } ]
884e44fd2006015fdd60de9c4122fa7a
required int32 rs = 1;
[ { "docid": "17485df7ae3ab54f0eec43ab4932b228", "score": "0.0", "text": "public boolean hasRs() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" } ]
[ { "docid": "4daf7b4c3421b606c5a82ddd003f2e72", "score": "0.62669295", "text": "Integer getR();", "title": "" }, { "docid": "3133d4ae690d32e83a285422e077e548", "score": "0.62057894", "text": "public abstract Integer r();", "title": "" }, { "docid": "a17f980104e206905ec67ea814ae97bf", "score": "0.6194422", "text": "int getIntResult();", "title": "" }, { "docid": "ff9b165e7c12a6159ab47ca494419e30", "score": "0.6150209", "text": "public int getInt() { return 1; }", "title": "" }, { "docid": "ff9b165e7c12a6159ab47ca494419e30", "score": "0.6150209", "text": "public int getInt() { return 1; }", "title": "" }, { "docid": "ff9b165e7c12a6159ab47ca494419e30", "score": "0.6150209", "text": "public int getInt() { return 1; }", "title": "" }, { "docid": "ff9b165e7c12a6159ab47ca494419e30", "score": "0.6150209", "text": "public int getInt() { return 1; }", "title": "" }, { "docid": "e2e9006c763c9ceb4d2ea384af8ca914", "score": "0.60314614", "text": "@Override\n public int getInt() {\n return 1;\n }", "title": "" }, { "docid": "615041a726cfdfd1a8cffb8476f96a8e", "score": "0.5979446", "text": "int getInt32();", "title": "" }, { "docid": "847fcfc2fe1321365739126cf1304841", "score": "0.58209217", "text": "public int intValue() {\n/* 132 */ return this.value;\n/* */ }", "title": "" }, { "docid": "90e431f6c208d3acebfd4c0a0a50c3c5", "score": "0.5736245", "text": "int getInt01();", "title": "" }, { "docid": "90e431f6c208d3acebfd4c0a0a50c3c5", "score": "0.5736245", "text": "int getInt01();", "title": "" }, { "docid": "d131ef304e3356a4abc523a871268d36", "score": "0.57223254", "text": "Integer getS();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "36247ed31c170a6648d4c47364d95594", "score": "0.5701485", "text": "int getRs();", "title": "" }, { "docid": "0bcbd57e78ce4ec58badc55107c1f0f1", "score": "0.56623036", "text": "public int intValue() {\n/* 169 */ return this.value;\n/* */ }", "title": "" }, { "docid": "6709eeb2bc4c5e0e394ce89b45f0e1dd", "score": "0.56550866", "text": "int mo1231b();", "title": "" }, { "docid": "5f3e07365e3b315eb0ad02d453815394", "score": "0.5624762", "text": "public int method_4102() {\r\n return 1;\r\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "f246094329d756101f1bf12acd2b0230", "score": "0.55935043", "text": "public int getRs() {\n return rs_;\n }", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.558645", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.558645", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.558645", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.558645", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.558645", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.558645", "text": "int getResultValue();", "title": "" }, { "docid": "664cdb67f75ca1f18da9f0ff6c366a96", "score": "0.55836135", "text": "int getV1();", "title": "" }, { "docid": "664cdb67f75ca1f18da9f0ff6c366a96", "score": "0.55836135", "text": "int getV1();", "title": "" }, { "docid": "664cdb67f75ca1f18da9f0ff6c366a96", "score": "0.55836135", "text": "int getV1();", "title": "" }, { "docid": "40bfc1c0bd446d04f512258ce74bc6d4", "score": "0.55563813", "text": "public int intValue() {\n/* 90 */ return this.value;\n/* */ }", "title": "" }, { "docid": "0945176913c96b321da424f46e965180", "score": "0.5517821", "text": "int getVal1();", "title": "" }, { "docid": "b7fc4fc93a4b7308d68cf8f3307404f2", "score": "0.55172575", "text": "int getVInt();", "title": "" }, { "docid": "0507a3d64d8adb6a581a4f7eb902b639", "score": "0.5510715", "text": "public int intValue() {\n/* 18 */ return this.value;\n/* */ }", "title": "" }, { "docid": "b3b48bd01fe5d6b699cb3e84507fe178", "score": "0.5507537", "text": "int getInt32DataCount();", "title": "" }, { "docid": "b5c09f5220a0ecac0f5920b688a4e272", "score": "0.55020463", "text": "public Integer getInteger() \n { \n return _clsInteger; \n }", "title": "" }, { "docid": "0befd7081aa731384712f5e0a0f5283a", "score": "0.54941785", "text": "long getV1();", "title": "" }, { "docid": "0befd7081aa731384712f5e0a0f5283a", "score": "0.54941785", "text": "long getV1();", "title": "" }, { "docid": "c404e1f310795b3e711b8da8d30d52e0", "score": "0.5473583", "text": "public int get_int() \n { \n return aInt; \n }", "title": "" }, { "docid": "20578cf733bcc318aca286a146cd5cd4", "score": "0.5470835", "text": "int value();", "title": "" }, { "docid": "20578cf733bcc318aca286a146cd5cd4", "score": "0.5470835", "text": "int value();", "title": "" }, { "docid": "e9ef0a4c362094bb4ecf4d8f8bd30379", "score": "0.54423225", "text": "public int intValue()\n { return 0; }", "title": "" }, { "docid": "5c3e437d1f82508442330c7dfacdbfec", "score": "0.5426911", "text": "@Override\n int asInteger();", "title": "" }, { "docid": "a905742161c898c27bae4b862b0af8fb", "score": "0.54201466", "text": "public Integer getR(){\n\t\treturn r;\n\t}", "title": "" }, { "docid": "8b550cd3a7b4cf202c56dcc4b517d182", "score": "0.54110515", "text": "PrimitiveType createPrimitiveType();", "title": "" }, { "docid": "3a2aeb5e3dd3505c06dcd2ad854871c3", "score": "0.54104954", "text": "public int asInt() {\n return 0;\n }", "title": "" }, { "docid": "1950d7868e42c0006ab793d703dd8945", "score": "0.5401755", "text": "Integer getQ();", "title": "" }, { "docid": "93169c922c383cd50d2c896f73e2bd90", "score": "0.54012656", "text": "public int cv()\r\n/* 203: */ {\r\n/* 204: 299 */ return this.data.getInteger(22);\r\n/* 205: */ }", "title": "" }, { "docid": "ec6b6bfdcd2e812c06c64b148891182d", "score": "0.53999895", "text": "public int intValue() {\n/* 55 */ return this.value;\n/* */ }", "title": "" }, { "docid": "71f8e66b7854f17506c0b1fdd2364a56", "score": "0.5393703", "text": "public strictfp int method_317() {\n return 2;\n }", "title": "" }, { "docid": "e4651678bc81c64b31bb3dda08d61f59", "score": "0.5392551", "text": "int getIntValue();", "title": "" }, { "docid": "e4651678bc81c64b31bb3dda08d61f59", "score": "0.5392551", "text": "int getIntValue();", "title": "" }, { "docid": "e4651678bc81c64b31bb3dda08d61f59", "score": "0.5392551", "text": "int getIntValue();", "title": "" }, { "docid": "4c6fa0e53cf43f1afbaa22cdd6b4964a", "score": "0.5389806", "text": "@java.lang.Override\n public int getInt32() {\n if (typeCase_ == 23) {\n return (java.lang.Integer) type_;\n }\n return 0;\n }", "title": "" }, { "docid": "8ec688565542ccd8ec9bacb7e9b74adb", "score": "0.53846234", "text": "public int getInt01() {\n return Int01_;\n }", "title": "" }, { "docid": "8ec688565542ccd8ec9bacb7e9b74adb", "score": "0.53846234", "text": "public int getInt01() {\n return Int01_;\n }", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.53717357", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.53717357", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.53717357", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.53717357", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.53717357", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.53717357", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.53717357", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.53717357", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.53717357", "text": "int getValue();", "title": "" }, { "docid": "1f32608b0eaf0e163963074da629c732", "score": "0.53591615", "text": "public int rsv() {\n/* 60 */ return this.rsv;\n/* */ }", "title": "" }, { "docid": "86450d08fb6d833d413b8c243df67647", "score": "0.53577024", "text": "public short getRval() {\n return rval;\n }", "title": "" }, { "docid": "12facf2fed094363970dd9646480c86c", "score": "0.5355049", "text": "Integer getReserved3();", "title": "" }, { "docid": "0dcdb2bb28fa6d1df91a9920a13a0704", "score": "0.5351058", "text": "public int getInt();", "title": "" }, { "docid": "0dcdb2bb28fa6d1df91a9920a13a0704", "score": "0.5351058", "text": "public int getInt();", "title": "" } ]
f22389644e141e8506a4efa6168dfb12
Add a new thing in this place
[ { "docid": "66b3083bc86eaccf879aca98d3bec15e", "score": "0.0", "text": "public void createThing(RemoteMudPerson who, String name,\r\n \t\t\t\t\t\t\t\t\t\t\t\t\tString description)\r\n \t\t\tthrows RemoteException, MudException.NotThere, MudException.AlreadyThere;", "title": "" } ]
[ { "docid": "b67a19b51ee9621ba4a5b845b73934ac", "score": "0.67806715", "text": "private static void addAnItem() {\n\t\tSystem.out.print(\"Enter the Artist's Name: \");\n\t\tString artistName = in.nextLine();\n\t\tSystem.out.print(\"Enter the Title of the piece: \");\n\t\tString title = in.nextLine();\n\t\t// *\n\t\tSystem.out.print(\"What type of media is the art piece used? \");\n\t\tString media = in.nextLine();\n\n\t\tSystem.out.print(\"What year was the piece created? \");\n\t\tString year = in.nextLine();\n\n\t\tSystem.out.print(\"What is the value of the piece? \");\n\t\tDouble value = in.nextDouble();\n\n\t\tArtwork toAdd = new Artwork(title, artistName, media, year, value);\n\t\tagh.insertItem(toAdd);\n\n\t}", "title": "" }, { "docid": "0231535baca736207550a91cc17a6474", "score": "0.6700929", "text": "private static void addAnItem() {\n\t\tSystem.out.print(\"Enter the gallery piece title: \");\n\t\tString title = in.nextLine();\n\t\tSystem.out.print(\"Enter the artist's name: \");\n\t\tString artistName = in.nextLine();\n\t\tSystem.out.print(\"Enter the media type: \");\n\t\tString mediaType = in.nextLine();\n\t\tSystem.out.print(\"Enter the year created: \");\n\t\tString year = in.nextLine();\n\t\tSystem.out.print(\"Enter the value of the piece: \");\n\t\tdouble value = in.nextDouble();\n\n\t\tGalleryPiece toAdd = new GalleryPiece(title, artistName, mediaType, year, value);\n\t\tgph.insertItem(toAdd);\n\n\t}", "title": "" }, { "docid": "54b882be5d183b6127b9cca045b1f43e", "score": "0.6506097", "text": "@Override\r\n\tpublic void add() {\n\t\t\r\n\t}", "title": "" }, { "docid": "14f4bf1b0a15c430eec00ce5bb452c8a", "score": "0.6391327", "text": "@Override\n\t\t\tpublic void add() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1722080569b0c2c45ed44498388a4330", "score": "0.6364162", "text": "public void add(Todo newTodo);", "title": "" }, { "docid": "9b3ea94d69c3fd6884fcd2c64f26f1c0", "score": "0.63636667", "text": "void addObject(Object object);", "title": "" }, { "docid": "87b8600c2aaef7fa5e3a3f9b17e28827", "score": "0.63581204", "text": "@Override\n\tpublic void add() {\n\t\t\n\t}", "title": "" }, { "docid": "87b8600c2aaef7fa5e3a3f9b17e28827", "score": "0.63581204", "text": "@Override\n\tpublic void add() {\n\t\t\n\t}", "title": "" }, { "docid": "69888c84ca139440de954c8c226de835", "score": "0.63329405", "text": "public void add(ActionEvent event) {\n WorldTarget.Interpreter(\"ADD\");\n // Only Items and buttons need be updated after pick up\n showItem();\n updateButtons();\n }", "title": "" }, { "docid": "e8b0bd6c1acbfa3b5a0f36cad9c5f628", "score": "0.6329871", "text": "void addItem(Item item);", "title": "" }, { "docid": "e8b0bd6c1acbfa3b5a0f36cad9c5f628", "score": "0.6329871", "text": "void addItem(Item item);", "title": "" }, { "docid": "cf96c7e783d111d25424a84611b1006f", "score": "0.63059086", "text": "public static void add() {\n\t}", "title": "" }, { "docid": "4e0ebae1f74ae7cb9bfbbe3fcf0d3647", "score": "0.62841314", "text": "public void place(GameItem item) {\n gameItems.add(item);\n }", "title": "" }, { "docid": "e7487dcc46c3392f176203149ebceb18", "score": "0.62731296", "text": "void add(Item item);", "title": "" }, { "docid": "f80366f790aca124d7f96a7e52ecf4f6", "score": "0.6259665", "text": "@Override\n public void addNew() {\n \n positionDao.insert(currentPosition);\n CommonOperations.message(currentPosition.getName() + \" was added successfully!\");\n currentPosition = new PositionModel();\n }", "title": "" }, { "docid": "2c2eea215a8b165b16c6e00c643dbd73", "score": "0.6255616", "text": "@Override\r\n\tpublic void add(String name) {\n\t\t\r\n\t}", "title": "" }, { "docid": "b0fae39f589ea6542a4d96ee6e242346", "score": "0.62523746", "text": "public void addItem(Item add);", "title": "" }, { "docid": "535a06cf305ec3a2ba35bf285dc613ec", "score": "0.6243509", "text": "void add(Item itemToAdd);", "title": "" }, { "docid": "cde477132850d86291d6fa78cb9f18b7", "score": "0.62407666", "text": "public void addQuest(Quest quest);", "title": "" }, { "docid": "22e37e4fb73f7be1844f728b60977d55", "score": "0.62335086", "text": "private void doAddClothing() throws DuplicateClothingException {\n String name;\n\n System.out.println(\"Give your clothing a name!\");\n System.out.print(\"Name: \");\n name = input.nextLine();\n name = name.toLowerCase();\n\n completeAddClothingDetermineType(name);\n\n }", "title": "" }, { "docid": "f9e762be54b48365c86a857f0ddbd28b", "score": "0.62246203", "text": "public void addPostIt(NoteInfo newPostItInfo) {\r\n\t\tPostItNote newPostIt = PostItFactory.factoryInstance\r\n\t\t\t\t.make(newPostItInfo);\r\n\t\tlayeredBkgPanel.setVisible(true);\r\n\t\taddListeners(newPostIt);\r\n\t\taddListeners(newPostIt.getTextPane());\r\n\t\tlayeredBkgPanel.add(newPostIt);\r\n\t\trevalidate();\r\n\t\tpostItList.add(newPostIt);\r\n\t\trepaint();\r\n\t\tnewPostIt.requestFocusInWindow();\r\n\r\n\t}", "title": "" }, { "docid": "333629fa4e2b09118720ee8eb547d8fa", "score": "0.6195511", "text": "public abstract void add(Object obj);", "title": "" }, { "docid": "465d78f646f90f21bb9119416da70349", "score": "0.61934036", "text": "public void add(T newEntry) {\n }", "title": "" }, { "docid": "0b12a73bc5d6d21d3830e70d2b4ee52e", "score": "0.6174962", "text": "public void addTile(Tile tileToAdd)\n {\n playerHand.addElement(tileToAdd);\n }", "title": "" }, { "docid": "44fbebacc8a0b2890b4e611afe407859", "score": "0.61673325", "text": "@Override\r\n public void add(Widget w) {\r\n add(w, getElement());\r\n }", "title": "" }, { "docid": "a0410d732683c42a55316ed8547e4eef", "score": "0.6167311", "text": "public void add(T item) {\n this.contents.addAtHead(item);\n }", "title": "" }, { "docid": "87c907b2ee284b75810167b75241c01f", "score": "0.6155705", "text": "public void add(Object instance);", "title": "" }, { "docid": "e6582d4ac1957e6f402d28c11f6408de", "score": "0.6151452", "text": "Add createAdd();", "title": "" }, { "docid": "f70df6407e2e86af8a717019b40ea44b", "score": "0.6147504", "text": "void add(Object obj);", "title": "" }, { "docid": "d9d64f837606ae79392c51e6b9bfc657", "score": "0.61353636", "text": "private void addAnotherClothingToOutfit(Outfit newOutfit) throws DuplicateClothingException {\n String clothingName;\n\n System.out.println(\"Please type the name of the clothing you want to add to this outfit\");\n System.out.println(\"These are the clothing currently in your closet\");\n printAllClothingInCloset();\n System.out.print(\"Add: \");\n\n clothingName = input.nextLine();\n clothingName = clothingName.toLowerCase();\n newOutfit.addClothing(myCloset.getClothingByName(clothingName));\n }", "title": "" }, { "docid": "125631ec21447a7615d3eeefab4d3fa8", "score": "0.61346173", "text": "void add(T entity);", "title": "" }, { "docid": "125631ec21447a7615d3eeefab4d3fa8", "score": "0.61346173", "text": "void add(T entity);", "title": "" }, { "docid": "f14e541b2b676d37e9e5b01a71e6cea8", "score": "0.6126648", "text": "public static void add(Quest quest) {\n\n }", "title": "" }, { "docid": "b10a9278898c7f31223bc4d895989645", "score": "0.612111", "text": "void add(GeometricalObject object);", "title": "" }, { "docid": "b10a9278898c7f31223bc4d895989645", "score": "0.612111", "text": "void add(GeometricalObject object);", "title": "" }, { "docid": "a9369db3e2a2204dab0f804ff5d78ba8", "score": "0.6117873", "text": "public void insertArmy(String name, String pathToProg)\n {\n Debugger.say(\"[\", this.toString(), \"]\", \" Adding robot \", name);\n NewRobotOp op = new NewRobotOp(this, name, pathToProg);\n World.insertArmy(op);\n }", "title": "" }, { "docid": "7fdaa12ff69c1c5fa8acc8846c7803c7", "score": "0.6115177", "text": "void add(Object o);", "title": "" }, { "docid": "94b65d6965130810143eaf3cfce83b48", "score": "0.6105793", "text": "void addEntry(Entry entry);", "title": "" }, { "docid": "6bec38482abd8a86c701ed96c629a889", "score": "0.61001855", "text": "private void addCelestialObject() {\n\t\t\n\t}", "title": "" }, { "docid": "a0bcb2c961b19b79eedc50fb5a058d7f", "score": "0.6078488", "text": "public void add(T newEntry) \n\t{\n\t\tcheckIntegrity();\n\t\tensureCapacity();\n\t\t\n\t\t\tbooks[topIndex +1] = newEntry; // Adding one because we only want to place a new entry on top of a pile of books.\n\t\t\ttopIndex++;\n\t}", "title": "" }, { "docid": "3eb18580a0162979e9f16f3675354a09", "score": "0.60731226", "text": "public void addNote(Note note);", "title": "" }, { "docid": "9c5476e767e2e954a0d9fc4cd7cf81ee", "score": "0.6068333", "text": "void add();", "title": "" }, { "docid": "9c5476e767e2e954a0d9fc4cd7cf81ee", "score": "0.6068333", "text": "void add();", "title": "" }, { "docid": "28a48a867b53e43ace15789ce8aad2fb", "score": "0.605314", "text": "public static void add(GameElement go){\n\t\tgetInstance().addBuffer.add(go);\n\t}", "title": "" }, { "docid": "491c8f9c9c6a09e7fde45928f22a113c", "score": "0.60510683", "text": "E add(E entity);", "title": "" }, { "docid": "34229e59ba932fec02f7e1223fed3201", "score": "0.605001", "text": "Item add(Item item);", "title": "" }, { "docid": "2fbb2c7328771a5564455bb0ce49eaf2", "score": "0.60427827", "text": "public Piece add(final Piece piece);", "title": "" }, { "docid": "0496a0ec7ab35648608e850c5f199978", "score": "0.60420895", "text": "public void add (int position, T item);", "title": "" }, { "docid": "6f6b90534834d6f8d801c51b10b3e03b", "score": "0.6032912", "text": "private void addClothingToOutfit(Outfit newOutfit) throws DuplicateClothingException {\n String clothingName;\n\n System.out.println(\"Please type the name of the clothing you want to add to this outfit\");\n System.out.println(\"These are the clothing currently in your closet\");\n printAllClothingInCloset();\n System.out.print(\"Add: \");\n clothingName = input.nextLine();\n clothingName = clothingName.toLowerCase();\n newOutfit.addClothing(myCloset.getClothingByName(clothingName));\n\n askAddAnotherClothing(newOutfit);\n }", "title": "" }, { "docid": "eaa154c2f5a29a877bde50087de4ea93", "score": "0.60282487", "text": "TEntity add(TEntity entity);", "title": "" }, { "docid": "59497f2fcb580db342d3ac14ba347092", "score": "0.60222054", "text": "public void add(final Widget widget) {\r\n\t\tthis.insert(widget, this.getWidgetCount());\r\n\t}", "title": "" }, { "docid": "b3c3b3903a8a8201ad6cf255edabf84e", "score": "0.6022115", "text": "public void addNewCat(Cat cat);", "title": "" }, { "docid": "851048bbc1714de72b4aa9d326fb06cf", "score": "0.60103935", "text": "protected void add( Component item ){\n insert( getItemCount(), item );\n }", "title": "" }, { "docid": "ef0cad68144ac6e09bcbbc82b3e7ebed", "score": "0.5996947", "text": "public void add(GeometricalObject object);", "title": "" }, { "docid": "b7efcd0375598e0db46657706e952eed", "score": "0.5987432", "text": "protected void add(T t) {\r\n objects.add(t);\r\n }", "title": "" }, { "docid": "5bf007c5703b8b467f4aa03905e3f0f4", "score": "0.5985176", "text": "public abstract void addItem(Item item);", "title": "" }, { "docid": "b3e2b56dff9d081d2b577cfdce37893a", "score": "0.5975542", "text": "public void add(Song song) {\n songs.add(song);\n }", "title": "" }, { "docid": "012328ecefaf5d03aa26fb8ad8af9caa", "score": "0.59648836", "text": "void addShape(Shape shape);", "title": "" }, { "docid": "160e87661f18ebdbcf547a07e5af259f", "score": "0.59624946", "text": "public void addSong(Song song) { songList.add(song); }", "title": "" }, { "docid": "762164be0e6534071b6db1090ca2ab4f", "score": "0.59444743", "text": "public void add(T item);", "title": "" }, { "docid": "762164be0e6534071b6db1090ca2ab4f", "score": "0.59444743", "text": "public void add(T item);", "title": "" }, { "docid": "762164be0e6534071b6db1090ca2ab4f", "score": "0.59444743", "text": "public void add(T item);", "title": "" }, { "docid": "762164be0e6534071b6db1090ca2ab4f", "score": "0.59444743", "text": "public void add(T item);", "title": "" }, { "docid": "762164be0e6534071b6db1090ca2ab4f", "score": "0.59444743", "text": "public void add(T item);", "title": "" }, { "docid": "14ba192fdbca8439b32508c27bc21f3b", "score": "0.5941279", "text": "private void addPart()\n {\n // get details\n double cost;\n String description;\n String number;\n IOUtility.println(\"Create new part\");\n IOUtility.println(\"\");\n \n description = IOUtility.getString(\"Enter Description:\");\n cost = IOUtility.getDouble(\"Enter cost:\");\n number = IOUtility.getString(\"Enter part number:\");\n theCar.addPart( new Part(description,cost,number));\n }", "title": "" }, { "docid": "ce2f06dc535cc45fb18eab0feb70b1c1", "score": "0.5938264", "text": "public void add() {\n\t\t// gets new book information\n\t\tBook b = getData();\n\t\tT book = (T) b;\n\t\tlist.add(book);\n\t}", "title": "" }, { "docid": "128102f7eb5bf2f86d447bfe39c9bf6d", "score": "0.593712", "text": "void add(@Nonnull T entry) throws IOException;", "title": "" }, { "docid": "6095597d115128e653865fcc9b2ab27c", "score": "0.5935821", "text": "public void addItem(Item item) {\n\t\t\n\t}", "title": "" }, { "docid": "10f425746f6852e9f221bbe2b1456a6b", "score": "0.5930112", "text": "protected void addTile(Tile tile) {\n Point pos = tile.getPos();\n map.put(pos, tile);\n }", "title": "" }, { "docid": "23a031a9aa247b8e59a6110f56097c46", "score": "0.5917681", "text": "void addNote();", "title": "" }, { "docid": "1003b48bda20a2d6c579bb7c39559bb2", "score": "0.59142554", "text": "@Override\n\tpublic void add(Object obj) {\n\t\t\n\t}", "title": "" }, { "docid": "ff631101324913c78f813a3546e439d1", "score": "0.5902854", "text": "@Override\n\tpublic void add(Game game) {\n\n\t}", "title": "" }, { "docid": "7d581f739096ffb3d496ee241537bb64", "score": "0.5895521", "text": "@Override\n\tpublic void add(Word word) {\n\t\t\n\t\t// Check if already added.\n\t\tif (!contains(word)) {\n\t\t\t\n\t\t\t// Get Bucket Number.\n\t\t\tint pos = getBucketNumber(word);\n\t\t\t\n\t\t\t// Create Node for new Word.\n\t\t\tNode node = new Node(word);\n\t\t\t\n\t\t\t// Set the Words next.\n\t\t\tnode.setNext(buckets[pos]);\n\t\t\t\n\t\t\t// Push the new Word into the bucket position.\n\t\t\tbuckets[pos] = node;\n\t\t\t\n\t\t\t// Increment the size.\n\t\t\tsize++;\n\t\t\t\n\t\t\t// If needed to rehash.\n\t\t\tif (size == buckets.length) {\n\t\t\t\trehash();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "13722e0e2ae9df075d83def8f540e4fc", "score": "0.5892912", "text": "private void placePiece() {\r\n\t\teditPiece(activePiece);\r\n\t}", "title": "" }, { "docid": "b32e34c4f9186b28b24d597fe8249b32", "score": "0.5892148", "text": "public void addItem(String what, String where){\n itemsMap.put(what, where);\n }", "title": "" }, { "docid": "01f4980024da34d6451c61dea5b1956f", "score": "0.58911604", "text": "public void addNewRecipe(Recipe r){ recipeList.add(r); }", "title": "" }, { "docid": "e761e58caaafb304c695056ec19ce3a5", "score": "0.58824533", "text": "cl.sii.siiDte.DTEDefType.Liquidacion.Encabezado.Emisor.Acteco addNewActeco();", "title": "" }, { "docid": "73149a9f2d96ec9ce9d9d7ceb735f666", "score": "0.58816063", "text": "private void saveNewLocation(Coordinates location){\n this.places.add(location);\n }", "title": "" }, { "docid": "b0b1d71bfebf526094ff42c49851816f", "score": "0.5869466", "text": "public void add(String id) {\n\n\t}", "title": "" }, { "docid": "28ecf446ba849232e9259eb6120f11e3", "score": "0.586819", "text": "public void add(Item someItem);", "title": "" }, { "docid": "c118c952d2fe828f91cc1ad31aa19a73", "score": "0.58583564", "text": "public void addIngredient(Ingredient ingredient) {\n \tingredsManager.insert(ingredient);\n \tdb.notifyViews();\n }", "title": "" }, { "docid": "32ca60c7488d3876099b4df9c991c067", "score": "0.5858213", "text": "public void add(T entity) {\n\t\tgetSqlSession().insert(entity.getClass().getName()+\".add\", entity);\n\t}", "title": "" }, { "docid": "5f294790354e1e85f79c80151c3bad15", "score": "0.5857309", "text": "void addNewComment(BlogComment comment);", "title": "" }, { "docid": "b72d11ed78bce79b53957c17dbfb06ac", "score": "0.58530605", "text": "public void insert(String entry);", "title": "" }, { "docid": "4d6bb35ff2ffed80b77268e9b803f0ce", "score": "0.58524686", "text": "@Override\n\tpublic void addItem(T item) {\n\t\t\n\t}", "title": "" }, { "docid": "73e88a7c70a23f4bfa73bd0ccd14a678", "score": "0.58513707", "text": "private void addPiece(BoardLocation loc, Piece piece) {\n board[loc.getY()][loc.getX()] = piece;\n }", "title": "" }, { "docid": "ded5b8eda03d8e838eaa69d78b984678", "score": "0.5846587", "text": "public void addPerson(Person newPerson){\n people.add(newPerson);\n }", "title": "" }, { "docid": "43d9d021616be4c5ed45416c4f311373", "score": "0.58456856", "text": "public void placePiece(Piece piece);", "title": "" }, { "docid": "3144913cc24fa0cefcfe977828ec6e4d", "score": "0.58303386", "text": "public void addWord(String word);", "title": "" }, { "docid": "d118f236035b4da7c543c73da84214df", "score": "0.5828566", "text": "cl.sii.siiDte.DTEDefType.Documento.Encabezado.Emisor.Acteco addNewActeco();", "title": "" }, { "docid": "0853b667416eafb73eccf8000558995e", "score": "0.5825658", "text": "public void addItem(Item grabed) {\r\n\t\tinventory.add(grabed);\r\n\t}", "title": "" }, { "docid": "066bd0404ffd5992c94fe96e88c588de", "score": "0.58240235", "text": "public void addDog(int time) {\n mainMenu.remove(addDogPanel);\n mainMenu.repaint();\n mainMenu.add(mainMenuPanel);\n reservations.addReservations(newDog, time);\n }", "title": "" }, { "docid": "db1c97c14f19fd0a7248fd884207c32a", "score": "0.581659", "text": "public void add(Item item) {\n itemRepository.save(item);\n }", "title": "" }, { "docid": "fd48f7077f3e8319a9c7f554ec3cfda0", "score": "0.5815406", "text": "public void insert(PlaneSweepItalyLocation obj1){\n activeObjects.add(obj1);\n }", "title": "" }, { "docid": "72277abd73dd669206ca09771508b0b9", "score": "0.5815312", "text": "public void add(Object newObject) {\r\n\t\ttheCollection.add(newObject);\r\n\t}", "title": "" }, { "docid": "8f6743658e2fa07a026979ea29eac6c4", "score": "0.5815272", "text": "public boolean Add(T newEntry);", "title": "" }, { "docid": "462063172c6b49c3c8a4a104c2e01b63", "score": "0.5810402", "text": "public void add(Object o) {\n\t\taddHead(o);\n\t}", "title": "" }, { "docid": "5ba2768786128238b8550f010e31fe99", "score": "0.58098805", "text": "@Override\n public boolean add(E newEntry) {\n // use ArrayBag add method\n boolean result = super.add(newEntry);\n\n // TODO keep track of added entry for undo operations\n if (result)\n {\n redoStack.clear(); // Clear so that we can only redo once\n \n Action<E> inserted = new Action<E>('i', newEntry);\n undoStack.push(inserted);\n }\n\n return result;\n }", "title": "" }, { "docid": "3a15ae84eb84032ae0f8773f614fee64", "score": "0.580626", "text": "public void add(Bid bid) {\n if (bid.getType() == Type.add) {\n this.addAdd(bid);\n } else if (bid.getType() == Type.delete) {\n this.addDelete(bid);\n }\n }", "title": "" }, { "docid": "9510eeea2ab206395e75576249d018de", "score": "0.5804805", "text": "void add(Object element);", "title": "" }, { "docid": "b7d1c5b68a8de221c65f24623f768786", "score": "0.5803002", "text": "public void insertTask()\n {\n tasks.add(new Task());\n displayOption.display(\"New task added\");\n }", "title": "" } ]
52f667fdfea97fa2bff41fe3f649575f
this function will iterate through the hardcoded information and print using a method from Toy.class
[ { "docid": "a62f554a3d0e8a0fffe0fecf80c964b7", "score": "0.0", "text": "private static void printFullProductList() throws InterruptedException,\r\n\t\t\tIOException {\r\n\t\tfunction = true;\r\n\r\n\t\tSystem.out.println(\" \");\r\n\t\tfor (int i = 0; i < inventory.length; i++)\r\n\t\t\tSystem.out.println(\" \" + inventory[i].toString());\r\n\t\tSystem.out.println(\" \");\r\n\t\tThread.sleep(3000);\r\n\t\tpressAnyKey();\r\n\t}", "title": "" } ]
[ { "docid": "37bd0197d1e352d6145f7943befa1056", "score": "0.6572633", "text": "public void printInfo() {\n super.printInfo(car);\n System.out.println(\"It's pretty generic and can be a lot of things.\");\n System.out.println(\n \"This car is a \" + make + \" \" + model + \" and was made in \" + yearMade + \".\");\n }", "title": "" }, { "docid": "1ccf7d4ae40ba054d5f4cd23dad99d3c", "score": "0.6571775", "text": "abstract public void printInfo();", "title": "" }, { "docid": "fa5046d03346f5dd197b6b669a0a3021", "score": "0.64647126", "text": "public void printOutThisPropertiesToConsole() {\n System.out.println(\"Tool code: \" + this.getToolCode());\n System.out.println(\"Tool type: \" + this.getToolType());\n System.out.println(\"Tool brand: \" + this.getToolBrand().getValue());\n System.out.println(\"Rental days: \" + this.getRentalDays());\n\n System.out.println(\"Check out date: \"\n + ToolShopUtility.convertADateFormatToAnothorDateFormat(this.getCheckOutDate().toString()));\n System.out\n .println(\"Due date: \" + ToolShopUtility.convertADateFormatToAnothorDateFormat(this.getDueDate().toString()));\n System.out.println(\"Daily rental charge: \" + this.getDailyRentalChage());\n System.out.println(\"Charge days: \" + this.getChargeDays());\n\n System.out.println(\"Pre-discount charge: \" + this.getPreDiscountCharge());\n System.out.println(\"Discount percent: \" + this.getDiscountPercent());\n System.out.println(\"Discount amount: \" + this.getDiscountAmount());\n System.out.println(\"Final charge: \" + this.getFinalCharge());\n }", "title": "" }, { "docid": "581fa09890f0a902076680642262896c", "score": "0.6423767", "text": "@Override\n public void printInfo(){\n System.out.println(\n \"ID Num: \" + getId() + \"\\n\" +\n \"Brand: \" + getBrand().getName() + \"\\n\" +\n \"Car Name: \" + getName() + \"\\n\" +\n \"Weight: \" + getWeight() + \"\\n\" +\n \"Max Permissible Weight : \" + getMaxPermissibleWeight() + \"\\n\" +\n \"Additional info **********************\\n\" +\n \"Fuel: \" + getFuel() + \"\\n\" +\n \"Max fuel: \" + getMaxFuel() + \"\\n\" +\n \"Fuel consumption: \" + getFuelConsumtion() + \"\\n\" +\n \"_____________________________\"\n );\n }", "title": "" }, { "docid": "1c0a0e9987ac57af61f7da11d7316a8d", "score": "0.6411231", "text": "@Override\n\t\t\tpublic void printInfo() {\n\t\t\t\tSystem.out.println(\"printInfo() 호출\");\n\t\t\t}", "title": "" }, { "docid": "5aaf9663ebb4e3e4d548d9c4855e8c26", "score": "0.63459545", "text": "public void printInfoFIlm() {\n\t\tString[] info = ottieniInfoFilm();\n\t\tfor(String s : info) {\n\t\t\tSystem.out.print(s + \" \");\n\t\t}\n\t}", "title": "" }, { "docid": "8169e0d6755e0545c1ed9c6ef923a23b", "score": "0.6292144", "text": "public void printInfo(){\n\t\tSystem.out.println(\"I\\'m gonna teach you how to sing it out\");\n\t\tSystem.out.println(\"Come on, come on, come on\");\n\t\tSystem.out.println(\"Let me tell you what it\\'s all about\");\n\t\tSystem.out.println(\"Reading, writing, arithmetic\");\n\t\tSystem.out.println(\"Are the branches of the learning tree\");\n\t\tSystem.out.println(\"Your name is: \"+ name);\n\t\tSystem.out.println(\"Your age is: \"+ age);\n\t\tint nage= age+1;\n\t\tSystem.out.println(\"At your next birthday, you will turn \"+ nage);\t\t\t\t\t\t\t\t\t\t\t\n\t\tSystem.out.println(\"The first prime factor of \"+ age + \" is:\" + getPrime(age));\n\t\tSystem.out.println(\"Your favorite number is: \"+ fav);\n\t\tSystem.out.println(\"Your favorite number squared is: \"+fav*fav);\n\t\tSystem.out.println(\"If you took your favorite number and applied the formula if odd multiply by 3 and add 1 and if even divide by two, it takes \" + getUVA(fav)+ \" iterations to get to 1\");\n\t\tSystem.out.println(\"* end of program *\");\n\t}", "title": "" }, { "docid": "3efb8ebf946078db80c7978abdb34d21", "score": "0.6255082", "text": "public void print(){\n\t\tif(types.contains(Type.PERSON)){\n\t\t\tprintPerson();\n\t\t\tif(types.contains(Type.BUSINESSPERSON)) printBusinessPerson();\n\t\t\tif(types.contains(Type.AUTHOR)) printAuthor();\t\t\t\n\t\t\tif(types.contains(Type.ACTOR)) printActor();\t\n\t\t}\n\t\telse if(types.contains(Type.LEAGUE)) printLeague();\n\t\telse if(types.contains(Type.TEAM)) printTeam();\n\t}", "title": "" }, { "docid": "4a9b656cb808254f78849903bbce08b8", "score": "0.6253947", "text": "public void printInfo() {\n \n System.out.println(this.toString()+\" \"+this.getFirstName()+\" \"+this.getLastName());\n\n }", "title": "" }, { "docid": "d2d3b5a6d95b230bd1f1336d1d73d585", "score": "0.6231205", "text": "public void mostrar_info_tienda(Tienda t){\r\n String[] info = t.get_info_tienda();\r\n System.out.println(\"-- Informacion de la tienda --\");\r\n for(int k = 0; k<info.length ;k++){\r\n System.out.println(info[k]);\r\n }\r\n}", "title": "" }, { "docid": "9f4e0fc14e4b1d7d5b60e4992dc771ba", "score": "0.61616933", "text": "public void info(){\n System.out.println(\"I am a bird, I have wings, I lay eggs,but I can't fly but swim\");\n }", "title": "" }, { "docid": "faabeb0467aa37c297dab9bfa7d7b77a", "score": "0.61436796", "text": "private void printMe(Object toPrint) {\n console.getOut().println(toPrint);\n }", "title": "" }, { "docid": "576b66b61a8e95db15f87f181c53925f", "score": "0.614124", "text": "public void printInfo(){\n if(name != null) System.out.println(\"Name is = \" + name);\n if(color != null) System.out.println(\"Color is = \" + color);\n if(family != null) System.out.println(\"Family is = \" + family);\n if(isCarnivore) System.out.println(\"Is carnivore = \" + isCarnivore);\n if(isHerbivore) System.out.println(\"Is herbivore = \" + isHerbivore);\n if(isOmnivore) System.out.println(\"Is omnivore = \" + isOmnivore);\n System.out.println(\"Has eyes = \" + hasEyes);\n }", "title": "" }, { "docid": "63c729229f2ab79bef8c31095beaeee7", "score": "0.6127844", "text": "private static void printLists() {\n\t\tfor(Smelter smelter: smelters) {\n\t\t\tSystem.out.println(smelter);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\tfor(Constructor constructor: constructors) {\n\t\t\tSystem.out.println(constructor);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\tfor(Transporter transporter: transporters) {\n\t\t\tSystem.out.println(transporter);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}", "title": "" }, { "docid": "c0be0f023278b18b94dda67445c95b09", "score": "0.61218417", "text": "public void printInfo(){\n System.out.println(\"[\" +\n \"name: \" + name + \", \" +\n \"totalNumberOfEmployees: \" + totalNumberOfEmployees + \", \" +\n \"address: \" + address + \", \" +\n \"phoneNumber: \" + phoneNumber +\n \"]\");\n }", "title": "" }, { "docid": "85b6dc1f0eb8c9a90749d2819e706412", "score": "0.6108553", "text": "public void printDetails() {\n System.out.println(\" Name: \" + getName());\n System.out.println(\"Specialisation: \" + getSpecialisation());\n System.out.println();\n }", "title": "" }, { "docid": "9210c2c64ffdb6ba0e66d6aafe1ff51b", "score": "0.6103215", "text": "public void print()\n {\n //System.out.println(title, code);\n System.out.println(\"course title \" + title + \", code: \" + code);\n\n }", "title": "" }, { "docid": "cc93adfb94e3a7d8f51cd3e2e0555017", "score": "0.6098976", "text": "public void printItemDetails()\n {\n if (shopItemMap.isEmpty())\n {\n System.out.println(\"There are no tools to show\");\n }\n else\n {\n for (ShopItem shopItem:shopItemMap.values())\n {\n shopItem.printDetails();\n }\n }\n }", "title": "" }, { "docid": "d6c88963efd0779c0f40658cc77b3781", "score": "0.60842484", "text": "@Override\r\n\tpublic void printInfo() {\n\t\tSystem.out.println(name+\"\\t\"+age+\"\\t\"+birth);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c1a742fe4bfcf893f6b177a62bd5f494", "score": "0.60822177", "text": "private void printInfo(){\n if (this.getEnableGUI()) {\n this.getControl().sendText(\"Towns Engine\");\n this.getControl().sendText(\"By: Omar Radwan & Wyatt Phillips\");\n this.getControl().sendText(\"Version: beta\");\n this.getControl().sendText(\"\");\n this.getControl().sendText(\"Type anything to continue...\");\n this.getControl().getInput();\n this.getControl().clearScreen();\n\n this.getControl().sendText(this.getTitle());\n this.getControl().sendText(\"By: \" + this.getAuthor());\n this.getControl().sendText(\"\");\n this.getControl().sendText(this.getDesc());\n this.getControl().sendText(\"\");\n this.getControl().sendText(\"Type anything to start...\");\n this.getControl().getInput();\n this.getControl().clearScreen();\n } else {\n Scanner input = new Scanner(System.in);\n ToolBelt.slowText(\"Towns Engine\");\n ToolBelt.slowText(\"By: Omar Radwan & Wyatt Phillips\");\n ToolBelt.slowText(\"Version: beta\");\n System.out.println();\n ToolBelt.slowText(\"Type anything to continue...\");\n input.next();\n ToolBelt.clearScreen();\n\n ToolBelt.slowText(this.getTitle());\n ToolBelt.slowText(\"By: \" + this.getAuthor());\n System.out.println();\n ToolBelt.displayText(this.getDesc(), 70);\n System.out.println();\n ToolBelt.slowText(\"Type anything to start...\");\n input.next();\n ToolBelt.clearScreen();\n }\n }", "title": "" }, { "docid": "4f6de56cfdcc856ec284b5bce1fc3413", "score": "0.60671186", "text": "public void printInformationItems(){\n\t\t\n\t\tTreeMap<String, Integer> tree = convertToTreeMap();\n\t\tfor(String key : tree.keySet()){\t\n\t\t\tSystem.out.println(key + \" \" + tree.get(key));\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "519d3fc326990e98bfe66ab1ffabc694", "score": "0.60609084", "text": "public void print(){\n\t\tSystem.out.println();\n\t\tif(books != null && books.size() > 0){\n\t\t\tSystem.out.println(\"Books published by \"+this.getName()+\":\");\n\t\t\tfor(String book : books)\n\t\t\t\tSystem.out.println(book);\n\t\t}\n\t\tSystem.out.println();\n\t\tif(booksAboutTheAuthor != null && booksAboutTheAuthor.size() > 0){\n\t\t\tSystem.out.println(\"Books about \"+this.getName() + \":\");\n\t\t\tfor(String book : booksAboutTheAuthor)\n\t\t\t\tSystem.out.println(book);\n\t\t}\n\t\tSystem.out.println();\n\t\tif(influenced != null && influenced.size() > 0){\n\t\t\tSystem.out.println(\"People \"+this.getName() + \" influenced:\");\n\t\t\tfor(String p : influenced)\n\t\t\t\tSystem.out.println(p);\n\t\t}\n\t\tSystem.out.println();\n\t\tif(influencedBy != null && influencedBy.size() > 0){\n\t\t\tSystem.out.println(\"People \"+this.getName() + \" is influenced by:\");\n\t\t\tfor(String p : influencedBy)\n\t\t\t\tSystem.out.println(p);\n\t\t}\n\t}", "title": "" }, { "docid": "a4cabc2fb6388662c07cbd00181334c9", "score": "0.6060559", "text": "public void getInfo(){\n System.out.println(year+\" \"+brand+\" \"+model+\", \"+color+\", \"+mileage+\", $\"+price);\n }", "title": "" }, { "docid": "95006a80c6e3af1ddabe0fd1fb565cc1", "score": "0.6036528", "text": "public void printStudentDetails() {\n for (Student student : Students) {\n student.printStudentDetails();\n }\n }", "title": "" }, { "docid": "3011b592f104d5120193c75924e1f02b", "score": "0.6034335", "text": "public void printSpeciesData(){\n }", "title": "" }, { "docid": "ea039af1838a37017b16aefe56bf9aed", "score": "0.60338724", "text": "@Override\n\tprotected void parseSpecifics() {\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "21beca55d6b35a6718e876101773ae5d", "score": "0.60211307", "text": "public void printAllBriber() {\r\n\t\tIterator<Deputy> iterator = deputies.iterator();\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\tDeputy next = iterator.next();\r\n\r\n\t\t\tif (next.isBribeTaker()) {\r\n\t\t\t\tSystem.out.println(next.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "39277f4d9dc0e3af0559311d545bf46a", "score": "0.60085857", "text": "public void printTypeInfo(){\n\t\tSystem.out.println(\"This type of computer is suitable for massive usage.\");\n\t\tSystem.out.println(\"Main thing at these computers is possibility to configure and adjust as you wish.\");\n\t\t\n\t}", "title": "" }, { "docid": "73fe23dabcb1cefc32f91f754eefc170", "score": "0.60034454", "text": "@Override\n public void printInfo() { //Prints all the information about the factory\n System.out.print(\"Factory \" + this.name + \" and has a supply of \" + this.supply + \".\\n\");\n }", "title": "" }, { "docid": "ec52926cb1788ef6220afffe16af7c9e", "score": "0.599433", "text": "void displayInfo() {\n\t\tdisplayState();\n\t\t//this.displayState(); Compiler adds this to reffer to instance method\n\t\tdisplayCapital();\n\t\t//this.displayCapital();Compiler adds this to reffer to instance method\n\t}", "title": "" }, { "docid": "8e2a01305f68886dda0c48d2abb608c3", "score": "0.59788394", "text": "public void printAll() {\n\t\tSystem.out.println(getGame() + \": \" + this.name);\n\t\tSystem.out.println(\"HP: \" + getNumber() + \"\\n\" + \"Powers: \"\n\t\t\t\t+ getAttribute());\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "7dc4b397507687a284cb00a43c0869e9", "score": "0.59773064", "text": "public void print()\r\n {\r\n\tSystem.out.println( getName() + ' ' + getClass().getName()\r\n\t\t\t + \" \" + move() + \" and \" + \" says \" + call() );\r\n }", "title": "" }, { "docid": "e63cc75b0c5de1e30ea3d60f0ce25bdd", "score": "0.59681356", "text": "void printInfo()\r\n\t{\r\n\t\tSystem.out.println(\"SkyScraper: \" +\r\n\t\t\t\t\t\t \"loc=\" + Math.round(getLocationX()*10.0)/10.0 + ',' + Math.round(getLocationY()*10.0)/10.0 + ' ' + \r\n\t\t\t\t\t\t \"color=[\" + getColorR() + ',' + getColorG() + ',' + getColorB() + ']' + ' ' +\r\n\t\t\t\t\t\t \"size=\" + getSize() + ' ' +\r\n\t\t\t\t\t\t \"seqNum=\" + getSeq() + ' ');\r\n\t}", "title": "" }, { "docid": "3a17b8d313c2c0ca457b3f97856f002f", "score": "0.59476984", "text": "public void printTut(){\n\t\tfor (Tutorial t : tuts){\n\t\t\tSystem.out.printf(\"Index: %s === Vacancy: %d\\n\", t.getIndex(), t.getVacancy());\n\t\t}\n\t}", "title": "" }, { "docid": "33fc93a3e306cc36742eb117764625ae", "score": "0.59390104", "text": "public void printInfo() {\n\t\tSystem.out.println(\"This SMS has the following info\" );\n\t\tSystem.out.println(\"Between \"+ number1 + \" --- \" + number2 );\n\t\tSystem.out.println(\"on \" + year + \"/\" + month +\"/\" + day );\n\t\tSystem.out.println(\"Text: \" + message);\n\t}", "title": "" }, { "docid": "241abb27d339b0b4653d9bc787bfa99c", "score": "0.59155124", "text": "public void print()\n {\n System.out.println(\"Module: \" + codeNumber + \n \"\" + title + \" Mark = \" + mark);\n }", "title": "" }, { "docid": "ddef27cb8ebab2d69c2904e021c82750", "score": "0.59084415", "text": "public String print() { \n \tString actionString = \"\";\n \tfor(Action a : actionHistory) {\n \t\tactionString += a + \"-\";\n \t}\n \t\n \treturn \"Type: \" + nodeType + \" Round: \" + bettingRound + \" Player Bet: \" + playerBetAmount +\n \t\t\" Opponent Bet: \" + opponentBetAmount + \" knownCards: \" + knownCards.count + \" History: \" + actionString;\n }", "title": "" }, { "docid": "c2ad0fa88a70ba3ada8b18f83bab7f07", "score": "0.5900295", "text": "private static void outputInfo(Info info) {\n\t\t\n\t\tinfo.showInfo(); //only method defined in Info interface. more methods are possible.\n\t\t\n\t}", "title": "" }, { "docid": "4c127903db5796fa1a6ea42a95afa78b", "score": "0.58833605", "text": "public void printDetails() {\n\t\tgetBoard().printDetails();//calls printDetails method in class grid\n\t}", "title": "" }, { "docid": "f36fe646fa07f9b7cf1547202166ed78", "score": "0.58823556", "text": "public void print()\n \n \n {\n // put your code here\n System.out.println(\"Ticket \" + destination +\n \", Price \" + price +\n \", Issued \" + dateTime);\n }", "title": "" }, { "docid": "fd7ffe2568d9857ffab285224e88081c", "score": "0.58755094", "text": "public void printInfo()\n {\n System.out.println(\"stkVer = \"+stkVer);\n System.out.println(\"centralBody = \"+centralBody);\n System.out.println(\"coordSys = \"+coordSys);\n System.out.println(\"scenarioEpoch = \"+scenarioEpoch);\n System.out.println(\"filename = \"+filename);\n }", "title": "" }, { "docid": "70f6f0653bdd26d180b37e56e1422d60", "score": "0.5869598", "text": "public String printAll();", "title": "" }, { "docid": "4edd4f50ebc49f55902253b17b00c1b9", "score": "0.58695704", "text": "public void printData() {\n System.out.println();\n System.out.println(Model);\n System.out.println(year);\n System.out.print(price);\n }", "title": "" }, { "docid": "b1f571e461b6d4c7d878c20d46da43d0", "score": "0.5864735", "text": "void printNodeInfo();", "title": "" }, { "docid": "3353fcbe8b2946026e74e20d4c647bf5", "score": "0.5856425", "text": "@Override\r\n\tpublic void print() {\n\t\tSystem.out.println(\"There is print method in helper method\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "62a8e47521514fa8fedd5a8a026cda54", "score": "0.5846085", "text": "public void print() {\r\n\t\tFileOutputStream fout;\r\n \ttry {\r\n \t\t//creates or overwrites a txt file\r\n \t\tfout = new FileOutputStream(\"stmt-cov.txt\");\r\n \t\t//goes through each test class/test method statements \t\t\r\n \t\tfor(Map.Entry<String, HashMap<String, HashSet<Integer>>> element : testMethod.entrySet()) {\r\n \t\t\t//converts string into bytes and prints it out to file\r\n \t\t\tbyte[] methodHeader = (element.getKey() + \"\\n\").getBytes();\r\n \t\t\tfout.write(methodHeader);\t//writes out the name of test class and method\r\n \t\t\t//enter into the individual class names and line numbers that the test class covers\r\n \t\t\tfor(Map.Entry<String, HashSet<Integer>> entry : element.getValue().entrySet()) {\t\t\t\r\n \t\t\t\t//classes can cover multiple statements\r\n \t\t\t\tList<Integer> values = new ArrayList<Integer>(entry.getValue());\r\n \t\t\t\tCollections.sort(values);\r\n \t\t\t\tfor(Integer i : values) {\t//was entry.getValue()\r\n \t\t\t\t\t//prints class name and the statements that are covered\r\n \t\t\t\t\tString statHeader = entry.getKey() + \":\" + i + \"\\n\";\r\n \t\t\t\t\tfout.write(statHeader.getBytes());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\tfout.close();\r\n \t} catch(IOException ex) {\r\n \t\tex.getStackTrace();\r\n \t}\r\n\t}", "title": "" }, { "docid": "c9ea510c5d5f0fa5803361a525d38b41", "score": "0.584244", "text": "public void printInfo() {\n System.out.print(\"ID:\"); System.out.println(this.id);\n System.out.print(\"Name:\"); System.out.println(this.name);\n System.out.print(\"Description:\"); System.out.println(this.description);\n System.out.print(\"Element:\"); System.out.println(this.element);\n System.out.print(\"Image Path:\"); System.out.println(this.imagePath);\n }", "title": "" }, { "docid": "042f847967bde2338c5ef1b715d35b81", "score": "0.58383465", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Toy [name=\" + name + \", SN=\" + SN + \", brand=\" + brand + \", price=\" + price + \", count=\" + count\n\t\t\t\t+ \", age=\" + age + \"]\";\n\t}", "title": "" }, { "docid": "61722940a82135729836c9864ac66178", "score": "0.5831789", "text": "public void methodsPrinter(String subject, ArrayList<MethodInfo> mI) {\n System.out.println(\"\\n\\nFollowing are \"+subject + \" methods.\");\n for (MethodInfo methodInfo : mI) {\n System.out.println(methodInfo.getName());\n }\n System.out.println();\n }", "title": "" }, { "docid": "b53cf461f4f07ccd7ccf94d393b83a8c", "score": "0.58283156", "text": "public void printAllDeputy() {\r\n\t\tIterator<Deputy> iterator = deputies.iterator();\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\tDeputy next = iterator.next();\r\n\t\t\tSystem.out.println(next.toString());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ea0adfbc8feedbd2813fbf7d177cd326", "score": "0.5817188", "text": "private static void listSpecialty() {\r\n for (int i = 0; i < Guitarist.Specialty.values().length; i++) {\r\n System.out.println((i + 1) + \". \" + Guitarist.Specialty.values()[i]);\r\n }\r\n }", "title": "" }, { "docid": "ed2f52cfc2ce9bf6d7506ff1194be1aa", "score": "0.5816664", "text": "public void showAll() {\n\t\tString todaInfo;\n\t\ttodaInfo = myFastFood.getInfoRestaurantsAndProducts();\n\t\ttodaInfo += \"\\n\" + myFastFood.getInfoClients();\n\t\ttodaInfo += \"\\n\" + myFastFood.getInfoOrder();\n\t\tSystem.out.println(todaInfo);\n\t}", "title": "" }, { "docid": "a9ecf1841f567a811e0ca43ff9cf4c46", "score": "0.58139694", "text": "@Override\n public void print() {\n System.out.println(\"SETUP: print\");\n for (int i = 0; i < patternCards.size(); i++)\n printPatternCard(patternCards.get(i));\n\n printPrivateObjective(privateObjective);\n System.out.println(\"\\nChoose a PatternCard by selecting one of the PatternCardId\");\n\n }", "title": "" }, { "docid": "4d349fdc254385e5ce15b74f4ee59907", "score": "0.5804229", "text": "public void getInfo() {\r\n\t\tSystem.out.println(\"--------------------\");\r\n\t\tSystem.out.println(\"NickName is \" + name);\r\n\t\tSystem.out.println(\"Gender is \" + gender);\r\n\t\tSystem.out.println(\"Color is \" + color);\r\n\t\tSystem.out.println(\"Age is \" + age);\r\n\t\tSystem.out.println(\"--------------------\");\r\n\t}", "title": "" }, { "docid": "ef57e5cf3d01c6ec70ddbf87d53eff5f", "score": "0.5800912", "text": "public void print() {\n\t\t// COMPLETE CODE HERE\n\t}", "title": "" }, { "docid": "a6fccd64d0060c349b18cb5770fb55fa", "score": "0.5790696", "text": "public void print() {\n\t\t\r\n\t}", "title": "" }, { "docid": "88a113ad87e0cc5b51a9798ecebe4437", "score": "0.57886654", "text": "public void printState(){ \n for(Tableau t: Tabs)\n System.out.println(t.toString()); \n for(Free f : Frees)\n System.out.println(f.toString()); \n for(Home h : Homes)\n System.out.println(h.toString()); \n }", "title": "" }, { "docid": "c4485c35a128c54e7cbec2a19dc03628", "score": "0.57871467", "text": "public void print(){\r\n String [] typesConv = {\"Nominal\",\"Integer\",\"Real\"};\r\n System.out.println(\" > Name: \"+name+\".\");\r\n System.out.println(\" > Type: \"+type );\r\n System.out.println(\" > Type: \"+typesConv[type]+\".\");\r\n System.out.print (\" > Input/Output: \");\r\n switch (dirAttribute){\r\n case INPUT:\r\n System.out.println(\"INPUT\");\r\n break;\r\n case OUTPUT:\r\n System.out.println(\"OUTPUT\");\r\n break;\r\n default:\r\n System.out.println(\"NOT DEFINED\");\r\n }\r\n System.out.print(\" > Range: \");\r\n switch (type){\r\n case NOMINAL:\r\n System.out.print(\"{\");\r\n for (int i=0; i<nominalValues.size(); i++){\r\n System.out.print ((String)nominalValues.elementAt(i)+\" \");\r\n }\r\n System.out.print(\"}\");\r\n break;\r\n case INTEGER:\r\n System.out.print(\"[\"+(int)min+\",\"+(int)max+\"]\");\r\n break;\r\n default:\r\n System.out.print(\"[\"+min+\",\"+max+\"]\"); \r\n }\r\n if (type == NOMINAL){\r\n if (mostUsedValue != null){\r\n System.out.println(\"\\n > Most used value: \");\r\n for (int i=0; i<mostUsedValue.length; i++){\r\n System.out.print(\" > class \"+i+\":\"+mostUsedValue[i]);\r\n System.out.println(\" (\"+classFrequencies[i][convertNominalValue(mostUsedValue[i])]+\").\" );\r\n }\r\n }\r\n }else if (meanValue != null){\r\n System.out.println(\"\\n > Mean used value: \");\r\n for (int i=0; i<meanValue.length; i++){\r\n System.out.println(\" > class \"+i+\": \"+meanValue[i]);\r\n }\r\n }\r\n System.out.println();\r\n }", "title": "" }, { "docid": "4fded5669a131c903724f6a4ced976ae", "score": "0.5780104", "text": "public void toPrint() {\r\n\t\t//print out the arraylist\r\n\t\tString thisground = \"p\";\r\n\t\tString thissky = \" \";\r\n\t\tfor (int i = 0; i < ground.size(); i++) {\r\n\t\t\tthisground += ground.get(i); \r\n\t\t\tthissky += sky.get(i);\r\n\t\t}\r\n\t\tSystem.out.println(thissky);\r\n\t System.out.println(thisground);\r\n\t}", "title": "" }, { "docid": "e0d2564d3c65e24356234a7b93a8938a", "score": "0.57757866", "text": "private static void printAllRecipes() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7ae45c7ddffbe51b7358de4856fa075d", "score": "0.5769946", "text": "public void printDestination() {\n\tint i;\r\n\t\r\n\tfor (Trip c: itinerary) {\r\n\t\t//tmpString = c.getDestination();\r\n\t\tint money = c.getOutOfPocket();\r\n\t\tSystem.out.println(c.getDestination() + \" - \" + c.getTripType() + \" - cost: \" + money);\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "11ef1cc2555963bfb7741c2a006aa49b", "score": "0.57651514", "text": "public void print() {\n\t\tfor (Map.Entry<String, StudentEntry> student : studentLookup.entrySet() ) {\n\t\t\tStudentEntry studentEntry = student.getValue();\n\t\t\tstudentEntry.display();\n\t\t}\n\t}", "title": "" }, { "docid": "9d219580d4adee6d877c4538a0bcf3df", "score": "0.57613957", "text": "private void printLineup(TastingsResponse tastingsLineup) {\n for(TastingsResponse.TastingResponse tasting : tastingsLineup.getTastingsResponse()) {\n System.out.println(\"==========================================\");\n System.out.println(\"Beer Name: \" + tasting.getBeerName());\n System.out.println(\"Brewery Name: \" + tasting.getBrewery());\n for(String displayName : tasting.getDisplayNames()) {\n System.out.println(\"Person who brought the beer: \" + displayName);\n }\n System.out.println(\"==========================================\");\n }\n\n }", "title": "" }, { "docid": "dbc5656846d22dd435d468492789984b", "score": "0.5757538", "text": "public static void printOutput() {\n\t\tSystem.out.println(tally);\t\r\n\t}", "title": "" }, { "docid": "1708cd2ff2ecfa89121e51fb505c0aeb", "score": "0.5750537", "text": "public void print() {\n\t\tSystem.out.println(\"Hello World Impl \"+i+\" !!\");\r\n\t}", "title": "" }, { "docid": "d96404867480fc1294361b8efef57e1e", "score": "0.5747598", "text": "@Override\n\t\tpublic void print() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8d8b9cf0ff3f07e4ad17c69a50660a63", "score": "0.5741795", "text": "public void print() {\r\n\t\tfor(int i=0;i<length;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(stus[i].getName()+\" \"+stus[i].getNO()+\" \"+stus[i].getAverScore());\r\n\t\t\tstus[i].printReport();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "16ce6b8fd59b1a7949f87b9b260cd517", "score": "0.5740943", "text": "public void printRoundInfo() {\n \tfor(int c = 0; c < this.num_EnemiesList.size(); c++) {\n \tSystem.out.println(Integer.toString(c) + this.num_EnemiesList.get(c).toString());\n }\n\n }", "title": "" }, { "docid": "f56e8c26a00f8a8e6de7e1f605c08e07", "score": "0.574035", "text": "public void print() {\r\n System.out.println(toString());\r\n }", "title": "" }, { "docid": "f7d4d9420e940aad1da9157f699006fe", "score": "0.573566", "text": "public void print(){\r\n\r\n\t\t//-----------------------------\r\n\t\t//SET OF OPS\r\n\t\t//-----------------------------\r\n\r\n\t\t//-----------------------------\r\n\t\t// I. SCENARIO IDENTIFICATION\r\n\t\t//-----------------------------\r\n\t\t\r\n\t\t//-----------------------------\r\n\t\t// II. SCENARIO IMPLEMENTATION \r\n\t\t//-----------------------------\r\n\r\n\t}", "title": "" }, { "docid": "fede5c6474b0253fa3c777c6b5ddc434", "score": "0.57274777", "text": "public void displayInfo() {\r\n\t\t//TODO\r\n\t}", "title": "" }, { "docid": "ae277b737b1ec96ae6e6e87a2f7e88ef", "score": "0.5725682", "text": "@Override\n\tpublic void print() {\n\t\tfor(Bar b : bars){\n\t\t\tb.print();\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "19f5c276b8f51c6f568b39c7b6740c1c", "score": "0.5725178", "text": "public void print() {\n\t\t//System.out.println(\"Then, the \"+getRiverName()+\" flows into the river.\");\n\t\tSystem.out.println(((int)getRiverFlow())+\" L/s flows \"+((int)getDistanceTraveled())+\" km downstream.\");\n\n\t}", "title": "" }, { "docid": "6b6217024f7e0bee2e811139455200a7", "score": "0.571641", "text": "public static void main(String[] args) {\n\t\tTablet t1 = new Tablet(1, 37900, \"MEDIAPAD T5\", 10, \"Huawei\", \"T5\", \"5MP\");\n\t\tTablet t2 = new Tablet(2, 37900, \"GALAXY TAB 5SE\", 10, \"Samsung\", \"5SE\", \"13MP\");\n\n\t\t//ii) Create two Vegetables type objects.\n\t\tVegetable v1 = new Vegetable(3, 240, \"Carrot\", 45, false, 41);\n\t\tVegetable v2 = new Vegetable(4, 150, \"Cabbage\", 45, true, 25);\n\t\t//iii) Create IPrint type of array of four elements and store these four objects in it and using a for loop display all items using the printLine() method\n\t\t\n\t\t// Creating IPrint type of array of four elements\n\t\t\t\tIPrint[] printableItems = new IPrint[4];\n\t\t\t\t\n\t\t\t\t// store the four objects\n\t\t\t\tprintableItems[0] = t1;\n\t\t\t\tprintableItems[1] = t2;\n\t\t\t\tprintableItems[2] = v1;\n\t\t\t\tprintableItems[3] = v2;\n\n\t\t\t\tfor (int i = 0; i < 4; i++)\n\t\t\t\t{\n\t\t\t\t\tprintableItems[i].printLine();\n\t }\n\t}", "title": "" }, { "docid": "65d1928b8f5c50990d51c23fc06a6952", "score": "0.57086694", "text": "void printOwing() {\n printBanner();\n\n //print details\n System.out.println (\"name: \" + name);\n\t\tSystem.out.println (\"amount \" + getOutstanding());\n\t}", "title": "" }, { "docid": "bf0309f19594ecd9f051badb90b64aa5", "score": "0.570256", "text": "private void print()\r\n {\r\n System.out.printf(\"%d: %s %s\\n\", id, firstname, lastname);\r\n }", "title": "" }, { "docid": "c26e15b50474cf9c41c031af5a7f7c12", "score": "0.57006514", "text": "public static void main(String[] args) {\n System.out.println(nimi.first.nimi_show.housecolor);\n System.out.println(nimi.first.nimi_show.housename);\n System.out.println(nimi.first.nimi_show.class.getName());\n Method methods[] = nimi_show.class.getMethods();\n System.out.println(\"Printing method Names:\");\n for(Method method: methods){\n \tSystem.out.println(method.getName());\n }\n \t\t\n \n \n\t}", "title": "" }, { "docid": "1fd59d79f51c59347a284b18436a1187", "score": "0.57006043", "text": "@Override\r\n\tpublic void getInfo() {\n\t\tSystem.out.println(\"HI \"+ name);\r\n\t}", "title": "" }, { "docid": "857b0d53ce21d4a7a9c0f0b2ae34ddd1", "score": "0.569833", "text": "private static void printInstructions() {\n\t\tSystem.out.println(\"\\nPress \");\r\n\t\tSystem.out.println(\"\\t 0- To print the insructions\");\r\n\t\tSystem.out.println(\"\\t 1- To add a Branch\");\r\n\t\tSystem.out.println(\"\\t 2- To add a new Customer \");\r\n\t\tSystem.out.println(\"\\t 3- To Add transation to customer \");\r\n\t\tSystem.out.println(\"\\t 4- To show cutomers \");\r\n\t\tSystem.out.println(\"\\t 5- To show customer and their transcations \");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n//\t\tSystem.out.println(\"\\t 4- To remove remove a contact \");\r\n//\t\tSystem.out.println(\"\\t 5- To query a contact \");\r\n\r\n\r\n\t}", "title": "" }, { "docid": "fd0661c381c13a10e5544c22e280f9ad", "score": "0.5696056", "text": "private void printInfo()\n {\n if (IS_TRAINING_SET)\n System.out.println(\"\\nError: \" + errorFunction());\n \n if (PRINT_VERBOSE || !IS_TRAINING_SET)\n {\n System.out.println(\"\\nOutputs vs. Training Set Values:\");\n for (int model = 0; model < NUM_MODELS; model++)\n {\n for (int i = 0; i < NUM_OUTPUT_NODES; i++)\n {\n System.out.print(\"\\tmodel \" + bmputil.FILE_LIST.get(model) + \" o\" + (i+1) + \" --> \");\n System.out.print(outputNodes[i][model]);\n if (IS_TRAINING_SET)\n System.out.print(\" vs. \" + trainingNodes[i][model]);\n System.out.println();\n }\n System.out.println();\n }\n }\n \n return;\n }", "title": "" }, { "docid": "9089f20030a5133929507e170a77ecd8", "score": "0.56933635", "text": "private void inspectMethods(Method[] methodObjects){\n for(Method m : methodObjects){\n\n //query Method object for exception types\n Class methodExceptionTypes[] = m.getExceptionTypes();\n\n //query Method object for parameter types\n Class methodParameterTypes[] = m.getParameterTypes();\n\n //query Method object for return type\n Class returnType = m.getReturnType();\n\n //query Method object for modifiers\n int modifiers = m.getModifiers();\n String modifierString = Modifier.toString(modifiers);\n\n //display Method object as single line output (method signature)\n System.out.print(\"Method: \" +\n modifierString + \" \" +\n returnType.getName() + \" \" +\n m.getName() + \"(\");\n displayClassTypeObjects(methodParameterTypes);\n System.out.print(\")\");\n\n //check if need to print exceptions\n if(methodExceptionTypes.length > 0){\n System.out.print(\" throws \");\n displayClassTypeObjects(methodExceptionTypes);\n }\n System.out.println();\n\n }\n }", "title": "" }, { "docid": "23685393c152d9d378c12c59cc6d1ed6", "score": "0.56928074", "text": "public void showAll() {\n\t\t\n\t\t//list.forEach(eachItem -> System.out.println(eachItem));\n\t\t\n\t\t// replaced with a Method Reference\n\t\t\n\t\t list.forEach(System.out::println);\n\t\t\n\t}", "title": "" }, { "docid": "fdaccfaad3fb88f6eace059a49cca051", "score": "0.5691054", "text": "@Override\n\t/**\n\t * Affiche les lots de la tombola\n\t */\n\tpublic String toString() {\n\t\tSystem.out.println(\"Lots : \");\n\t\tfor(int i = 0; i < this.getList().size(); i++) {\n\t\t\tSystem.out.println(\" - \"+this.getList().get(i).toString());\n\t\t}\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "19d3ae901f7e65070ee1ea1766f8347e", "score": "0.56895614", "text": "public static void main(String[] args) {\n\n CarTask Mercedes = new CarTask(\"Mercedes\", \"S220\", \"Sedan\", 2018, 4.4, \"Automatic (6)\");\n CarTask Volkswagen = new CarTask(\"Volkswagen\", \"Transporter\", \"Wagon\", 2008, 2.0, \"Manual (5)\");\n CarTask Opel = new CarTask(\"Opel\", \"Calibra\", \"Coupe\", 1991, 2.0, \"Manual (6)\");\n CarTask Renault = new CarTask(\"Renault\", \"Megane\", \"Universal\", 2015, 1.5, \"Robot (4)\");\n\n\n String carInfo = Mercedes.allCarInfo();\n String carInfo1 = Volkswagen.allCarInfo();\n String carInfo2 = Opel.allCarInfo();\n String carInfo3 = Renault.allCarInfo();\n\n\n System.out.println(carInfo);\n System.out.println(carInfo1);\n System.out.println(carInfo2);\n System.out.println(carInfo3);\n\n\n }", "title": "" }, { "docid": "9f6f12da04fda2385c124c22ea8fe05f", "score": "0.5689543", "text": "@Override\r\n\tpublic void print() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9f6f12da04fda2385c124c22ea8fe05f", "score": "0.5689543", "text": "@Override\r\n\tpublic void print() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9f6f12da04fda2385c124c22ea8fe05f", "score": "0.5689543", "text": "@Override\r\n\tpublic void print() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce32875f42a964c2c9d1495317d61677", "score": "0.5687613", "text": "@Override\n public void info(String info) {\n System.out.println(info);\n }", "title": "" }, { "docid": "4d28ae092b48d0f6a9675e2e7423352c", "score": "0.5683967", "text": "private static void writeLn(Object toPrint) {\n System.out.println(toPrint.toString());\n }", "title": "" }, { "docid": "fa57f2b29cf83ffaba7e33175c7227b3", "score": "0.56821847", "text": "public void printTicketList() {\n Ticket ticketObj = new Ticket();\n for(int i = 0; i < ticketsArr.size(); i++) {\n ticketObj = ticketsArr.get(i);\n System.out.print(i + \". \");\n ticketObj.displayTicketInfo();\n System.out.println(\"\");\n }\n }", "title": "" }, { "docid": "aea9a98b5d984e4e3bf0843b8e2bca1a", "score": "0.56731147", "text": "public static void print_all(){\n for(int i = 0; i < students.size(); i++){\n //get each student and call the print method from the student class\n students.get(i).print();\n }\n\n }", "title": "" }, { "docid": "a4992b4d447cd2e390bc40bfeb29c96b", "score": "0.567073", "text": "public void printDetails() \n {\n System.out.print(\"Title: \" + title);\n System.out.print(\" Author: \" + author);\n System.out.print(\" Pages: \" + pages);\n \n if(refNumber.length() == 0)\n System.out.print(\", Ref Number: ZZZ\");\n else \n System.out.print(\", Ref Number: \" + refNumber);\n \n System.out.print(\" Times borrowed: \" + borrowed);\n \n }", "title": "" }, { "docid": "ea7ad344a8c2d0b56142884082ee9dd8", "score": "0.5666399", "text": "public void print() {\n for (int i = 0; i < this.products.size(); i++) {\n // Get the object\n Product item = this.products.get(i);\n System.out.println(item.toString());\n }\n }", "title": "" }, { "docid": "dbe7d5af3ddb36ed647840f4db8ed500", "score": "0.5662526", "text": "void details() {\n\t\tname=\"John\";\n\t\tcity=\"Maimi\";\n\t\tschoolName=\"Syntax\";\n\t\tbatchNumber=6;\n\t\tSystem.out.println(\"My name is \"+name+\" and I live in \"+city+\". I study at \"+\n\t\t\t\tschoolName+\" in batch \"+batchNumber);\n\t}", "title": "" }, { "docid": "2af9442e6dfa94fa557520555993df02", "score": "0.56596726", "text": "private void printList() { \n\t\tfor(int i = 0; i < termList.size(); i++) { \n\t\t\tSystem.out.println(\"term: \" + termList.get(i).getTerm());\n\t\t\tSystem.out.println(\"ex: \" + termList.get(i).getEx());\n\t\t\tSystem.out.println(\"co: \" + termList.get(i).getCo());\n\t\t}\n\t}", "title": "" }, { "docid": "ff2f69368cf86e7eb346ec4b4af34ec1", "score": "0.5655975", "text": "public void printDetails() {\n\t\tIterator<Entry<String, ArrayList<Symbol>>> iter = id.entrySet().iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tEntry<String, ArrayList<Symbol>> pair = iter.next();\n\t //System.out.print(pair.getKey() + \" = \");\n\t for(int i = 0; i < pair.getValue().size(); i++) {\n\t \tif(pair.getValue().get(i).type.equals(\"int\") || pair.getValue().get(i).type.equals(\"float\"))\n\t \t\tSystem.out.println(\"Variable : \" + pair.getKey() + \" [Type : \" + pair.getValue().get(i).type + \"] Declaration => (X_POS : \" + pair.getValue().get(i).xpos + \" YPOS : \" + pair.getValue().get(i).ypos + \")\");\n\t \telse\n\t \t\tSystem.out.println(\"Variable : \" + pair.getKey() + \" | Usage => (X_POS : \" + pair.getValue().get(i).xpos + \" YPOS : \" + pair.getValue().get(i).ypos + \")\");\n\t }\n\t iter.remove();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "d4c93cf1b6862f8e1d7101e79e6d6aca", "score": "0.56536734", "text": "public void printPerson(){\n\t\tPerson p = result.getPerson();\n\t\t\n\t\tString name = p.getName() + \" \" + persontypes(p);\n\t\tString dateOfBirth = p.getDateOfBirth();\n\t\tString placeOfBirth = p.getPlaceOfBirth();\n\t\tString placeOfDeath = p.getPlaceOfDeath();\n\t\tString dateOfDeath = p.getDateOfDeath();\n\t\tList<String> causesOfDeath = p.getCauseOfDeath();\n\t\tList<String> siblings = p.getSiblings();\n\t\tList<Spouse> spouses = p.getSpouses();\n\t\tString description = p.getDescription();\n\t\t\n\t\tFormatter fmt = new Formatter();\n\t\t\n\t\t// print centered headline\n\t\tfmt.format(newline());\n\t\tcenter(fmt, name);\n\t fmt.format(newline());\n\t \n\t // print name\n\t if(dateOfBirth!=null){\n\t \tleftalign(fmt, \"Name:\", p.getName());\n\t \tfmt.format(newline());\n\t }\n\t \n\t // print birthday\n\t if(dateOfBirth!=null){\n\t \tleftalign(fmt, \"Birthday:\", dateOfBirth);\n\t \tfmt.format(newline());\n\t }\n\t \n\t // print death stuff\n\t if (dateOfDeath!=null){\n\t \tString deathinfo = dateOfDeath;\n\t \tif (placeOfDeath != null) deathinfo = deathinfo + \" at \" + placeOfDeath;\n\t \tif (causesOfDeath != null){\n\t \t\tString causeinfo = \"\";\n\t \t\tfor(String cause : causesOfDeath){\n\t \t\t\tcauseinfo += cause+\",\";\n\t \t\t}\n\t \t\tcauseinfo = causeinfo.substring(0, causeinfo.length()-1);\n\t \t\tdeathinfo = deathinfo + \", cause: (\" + causeinfo + \")\";\n\t \t}\n\t \tleftalign(fmt, \"Death:\", deathinfo);\n\t \tfmt.format(newline());\n\t }\n\t \n\t // print place of birth\n\t if (placeOfBirth!=null){\n\t \tleftalign(fmt, \"Place of birth:\", placeOfBirth);\n\t \tfmt.format(newline());\n\t }\n\t \n\t // print siblings\n\t if (siblings != null && siblings.size() > 0) {\n\t \tleftalign(fmt, \"Sibling(s):\", siblings.get(0));\n\t \tif (siblings.size() > 1){\n\t \t\tfor (String sibling : siblings.subList(1, siblings.size())){\n\t \t\t\tleftalign(fmt, \"\", sibling);\n\t \t\t}\n\t \t}\n\t \tfmt.format(newline());\n\t }\n\t \n\t // print spouses\n\t if (spouses != null && spouses.size() > 0) {\n\t \tString spouseinfo = spouses.get(0).getName();\n\t \tif ((spouses.get(0).getFrom()!= null) && (spouses.get(0).getTo() != null)){\n\t\t\t\tspouseinfo = spouseinfo + \" (\" + spouses.get(0).getFrom() + \" - \" + spouses.get(0).getTo() + \")\";\n\t\t\t}\n\t\t\telse if (spouses.get(0).getFrom() == null) spouseinfo = spouseinfo + \" ( - \" + spouses.get(0).getTo()+\")\";\n\t\t\telse if (spouses.get(0).getTo() == null) spouseinfo = spouseinfo + \" (\" + spouses.get(0).getFrom() + \")\";\n\t\t\tif (spouses.get(0).getMarriageLocation() != null) spouseinfo = spouseinfo + \" @ \" + spouses.get(0).getMarriageLocation();\n\t \tleftalign(fmt, \"Spouse(s):\", spouseinfo);\n\t \tif (spouses.size() > 1){\n\t \t\tfor (Spouse spouse : spouses.subList(1, spouses.size())){\n\t \t\t\tspouseinfo = spouse.getName();\n\t \t\t\tif ((spouse.getFrom()!= null) && (spouse.getTo() != null)){\n\t \t\t\t\tspouseinfo = spouseinfo + \" (\" + spouse.getFrom() + \" - \" + spouse.getTo() + \")\";\n\t \t\t\t}\n\t \t\t\telse if (spouse.getFrom() == null && spouse.getTo().equals(\"now\")){\n\t \t\t\t\t//do nothing\n\t \t\t\t}\n\t \t\t\telse if (spouse.getFrom() == null) spouseinfo = spouseinfo + \" ( - \" + spouse.getTo()+\")\";\n\t \t\t\telse if (spouse.getTo() == null) spouseinfo = spouseinfo + \" (\" + spouse.getFrom() + \")\";\n\t \t\t\tif (spouse.getMarriageLocation() != null) spouseinfo = spouseinfo + \" @ \" + spouse.getMarriageLocation();\n\t \t\t\tleftalign(fmt, \"\", spouseinfo);\n\t \t\t}\n\t \t}\n\t \tfmt.format(newline());\n\t }\n\t \n\t // print description\n\t if (description != null){\n\t \twrap(fmt, \"Description\", description);\n\t \tfmt.format(newline());\n\t }\n\t System.out.print(fmt);\n\t}", "title": "" }, { "docid": "9c425a1ff619c5499e63c12982c2d21f", "score": "0.5651519", "text": "private void printData() {\n\n System.out.println(\"No of Casts '\" + myCast.size() + \"'.\");\n Iterator<Cast> it = myCast.iterator();\n while (it.hasNext()) {\n System.out.println(it.next().toString());\n }\n }", "title": "" }, { "docid": "5fd6aeb261fa4128e7ee48d8e1a5351c", "score": "0.56498", "text": "public void displayInfo() {\n System.out.println(\"I am a dog.\");\n }", "title": "" }, { "docid": "23df117b91f8625ee838da2bb800f5be", "score": "0.56456524", "text": "public static void showInfo() {\n System.out.println(description); // You can refer to other static variables with static method\n //System.out.println(name); // Cannot refer static method to a regular member variable\n }", "title": "" }, { "docid": "f9d1f1e604c8233f8acaa5aae751863c", "score": "0.5635418", "text": "public static void printProducts() {\n System.out.println(\"\\n These are the products that are currently available: \\n\");\n System.out.printf(\" | %-2s | %-15s | %-8s | %-9s | %-10s | %-10s | \\n\", \"ID\", \"Product Name\", \"Type\", \"Price\", \"Color\", \"Age Group\");\n for (Product thisObject : productArrayList) { //for each object in productArrayList\n if (thisObject instanceof Clothes) { // If true, then it is printed out. 3\n System.out.printf(\" | %-2s | %-15s | %-8s | %-9s | %-10s | %-10s | \\n\",\n productArrayList.indexOf(thisObject), thisObject.getName(), thisObject.getType(), thisObject.getPrice(), ((Clothes) thisObject).getColor(), \"\");\n } else if (thisObject instanceof SoftToys)\n System.out.printf(\" | %-2s | %-15s | %-8s | %-9s | %-10s | %-10s | \\n\",\n productArrayList.indexOf(thisObject), thisObject.getName(), thisObject.getType(), thisObject.getPrice(), \"\", ((SoftToys) thisObject).getAgeGroup());\n }\n }", "title": "" } ]
0c3ebfb1aa71d833a2eaeb8ddf9be116
Provides the Vector3D length (magnitude) (in user coordinate space)
[ { "docid": "ff4eedab0b17a3294861df7916b93184", "score": "0.7782215", "text": "public double length() {\r\n\t\tdouble x = p.getX();\r\n\t\tdouble y = p.getY();\r\n\t\tdouble z = p.getZ();\r\n\t\treturn Math.sqrt(x*x + y*y + z*z);\r\n\t}", "title": "" } ]
[ { "docid": "7ca7d36ae4c0fd900d3792c44e602e1a", "score": "0.79479766", "text": "public double lengthVector()\n {\n\treturn Math.sqrt(x * x + y * y + z * z);\n }", "title": "" }, { "docid": "b85da09ed521930098e25de6556eedac", "score": "0.77712935", "text": "public double length()\n {\n return Math.sqrt(x * x + y * y + z * z);\n }", "title": "" }, { "docid": "be43da0af46bd2349343c1aa763dc406", "score": "0.74678266", "text": "public double length(){\n var sum = Math.pow(_head._x.getCoordinate(),2 ) + Math.pow(_head._y.getCoordinate(),2 ) + Math.pow(_head._z.getCoordinate(),2 );\n return Math.sqrt(sum);\n }", "title": "" }, { "docid": "af94844ad437b6fb733b2892a5caf1b5", "score": "0.74460864", "text": "@Transformation(displayName = \"Vector Length\")\n public static double length(Vector3d vector){\n return Math.sqrt(lengthSquare(vector));\n }", "title": "" }, { "docid": "3b0b4c5f5780048ccee6b9252a0834c0", "score": "0.7379448", "text": "public float getVectorLength() {\n\tNode n1 = this.firstNode;\n\tNode n2 = this.lastNode; \n\treturn (float) Math.sqrt(Math.pow((n1.x-n2.x),2) + Math.pow((n1.y-n2.y),2));\n}", "title": "" }, { "docid": "8762b09e4da7e668c0eb2dda1b2b3674", "score": "0.715769", "text": "public float getLength()\r\n {\r\n return (float)Math.sqrt( x*x + y*y );\r\n }", "title": "" }, { "docid": "283df7814e9876d7406e655cb6ebbef8", "score": "0.7133076", "text": "double length() {\r\n\t\t\treturn Math.sqrt(x * x + y * y);\r\n\t\t}", "title": "" }, { "docid": "696e45bf623467295ad904f2e0df5e5e", "score": "0.7063356", "text": "public double length() {\n\t\treturn Math.sqrt((this.energy * this.energy)\n\t\t\t\t+ (this.magnitude * this.magnitude)\n\t\t\t\t+ (this.zeroCrossing * this.zeroCrossing));\n\t}", "title": "" }, { "docid": "f0886f96f5ded3ded0fce2e4ed1979aa", "score": "0.7051096", "text": "public float getLength(){\n return (float) Math.sqrt((end.x - begin.x) * (end.x - begin.x) +\n (end.y - begin.y) * (end.y - begin.y));\n }", "title": "" }, { "docid": "9f559717bf6bc633fd5edabfaefc1ce5", "score": "0.6988209", "text": "public final float length() {\n return length(xpt, ypt);\n }", "title": "" }, { "docid": "9f196474e5a4f6eba672ec6d798365db", "score": "0.6874116", "text": "public static double length(double x, double y, double z) {\n return Math.sqrt(x * x + y * y + z * z);\n }", "title": "" }, { "docid": "e37f8e7e43932f611342fe9f14fd203a", "score": "0.6839457", "text": "float length();", "title": "" }, { "docid": "545400277a60e4233d603cca3b57ee8d", "score": "0.6823035", "text": "public double length() {\n\n double x = Math.pow((end.getXco() - getStart().getXco()), 2);\n double y = Math.pow((end.getYco() - getStart().getYco()), 2);\n double c = Math.sqrt((x+y));\n\n return c;\n }", "title": "" }, { "docid": "291394ff261a522dac12157e16f0961f", "score": "0.6777452", "text": "public double length() {\n return Math.sqrt(x * x + y * y);\n }", "title": "" }, { "docid": "02e8d0df26b547f8b16caf32e10eb4f0", "score": "0.67665553", "text": "public double getMagnitude() {\n return Math.sqrt(x * x + y * y + z * z);\n }", "title": "" }, { "docid": "f5e8ea82e8d3d0e851c0ff7f48351c1e", "score": "0.6761532", "text": "public float getLength() {\n return mLength;\n }", "title": "" }, { "docid": "f5e8ea82e8d3d0e851c0ff7f48351c1e", "score": "0.6761532", "text": "public float getLength() {\n return mLength;\n }", "title": "" }, { "docid": "16f4f65834b6cc0fb3b9dec86257cad3", "score": "0.6761504", "text": "public double length() {\n return Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n }", "title": "" }, { "docid": "399342d64173e3d9f17cbd34771550fb", "score": "0.67523456", "text": "public float magnitude() {\n\t\treturn (float) Math.sqrt(x * x + y * y + z * z);\n\t}", "title": "" }, { "docid": "9d7a9865349382f0a269dedec3314854", "score": "0.65996635", "text": "public double getLength()\n\t{\n\t\treturn length;\n\t}", "title": "" }, { "docid": "039f08fa4e643ca3607a9934b64a2bc2", "score": "0.6592441", "text": "public double length() {\n\t\treturn Math.sqrt(lengthSquared());\n\t}", "title": "" }, { "docid": "043c7bc5f86b23acccd76215255a4c6c", "score": "0.6587388", "text": "@Transformation(displayName = \"Vector squared length\")\n public static double lengthSquare(Vector3d vector){\n vector = square(vector);\n return vector.getX() + vector.getY() + vector.getZ();\n }", "title": "" }, { "docid": "f02e6d4f02f7b718e787f1997d67a86c", "score": "0.65841323", "text": "public Double getLength();", "title": "" }, { "docid": "af06e3bba4825eb5a490da4052a7ab24", "score": "0.6577917", "text": "public double magnitude()\n {\n return Math.sqrt(Math.pow(x,2) +\n Math.pow(y,2) +\n Math.pow(z,2));\n }", "title": "" }, { "docid": "b898394ab2b937a74605cf416f0882d6", "score": "0.65696603", "text": "public double getLength() {\n\t\treturn length;\n\t}", "title": "" }, { "docid": "a1c8961f716153b949606cb31e26800e", "score": "0.6566949", "text": "public double getLength() {\r\n\t\treturn length;\r\n\t}", "title": "" }, { "docid": "aedd16a6abe372dbdcf938040c54b697", "score": "0.6561066", "text": "@Override\r\n public float maxLength() {\r\n double maxLengthSquared = 0.0;\r\n for (Vector3f tempVector : set) {\r\n double lengthSquared = MyVector3f.lengthSquared(tempVector);\r\n if (lengthSquared > maxLengthSquared) {\r\n maxLengthSquared = lengthSquared;\r\n }\r\n }\r\n\r\n float length = (float) Math.sqrt(maxLengthSquared);\r\n assert length >= 0f : length;\r\n return length;\r\n }", "title": "" }, { "docid": "779de592d03fad7ec9fc1ba183de9b16", "score": "0.6506783", "text": "public double getLength() { return length; }", "title": "" }, { "docid": "779de592d03fad7ec9fc1ba183de9b16", "score": "0.6506783", "text": "public double getLength() { return length; }", "title": "" }, { "docid": "dd58f19f2083563bd385d82ee220baaa", "score": "0.64759326", "text": "public double length() {\n double result = 0;\n double[] fromCoord = from.getCoords();\n double[] toCoord = to.getCoords();\n for (int i = 0; i < getDimension(); i++) {\n result += (fromCoord[i] - toCoord[i]) * (fromCoord[i] - toCoord[i]);\n }\n return Math.sqrt(result);\n }", "title": "" }, { "docid": "d7ad6e2834126ca0d2619bd96ee33476", "score": "0.6474734", "text": "public double getLength() {\n return length;\n }", "title": "" }, { "docid": "8a355f77b1dae2811af2b0e201ef080b", "score": "0.64464605", "text": "public double getLength() {\n\t\treturn this.length;\n\t}", "title": "" }, { "docid": "4b8b68ba1efe39d9885cc546a35079dc", "score": "0.6438282", "text": "public double length() {\n return Math.sqrt(lengthSquared());\n }", "title": "" }, { "docid": "5d194340cc6f1d07c43bb398ec5a4742", "score": "0.6401413", "text": "public double getLength()\n {\n return length;\n }", "title": "" }, { "docid": "880a69a110739813ef844dff1b43c7bd", "score": "0.63710874", "text": "public double lengthSquared() {\n\t\treturn x * x + y * y + z * z + a * a;\n\t}", "title": "" }, { "docid": "647eb19f17fea5813d335f3a12360deb", "score": "0.6319765", "text": "@Override\r\n\tpublic double getLength() { //additional new change\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn length;\r\n\t}", "title": "" }, { "docid": "6e686f3af316604813e14fc6852596d7", "score": "0.6306164", "text": "public double getUnitLength() {\r\n\t\treturn unitLength;\r\n\t}", "title": "" }, { "docid": "f81933bb1f2affefba85bef12aa8bec0", "score": "0.62878096", "text": "Double getLengthValue();", "title": "" }, { "docid": "23865c9d4f83f47407ace1a5af58b8ce", "score": "0.6270528", "text": "double getLength() {\n return length;\n }", "title": "" }, { "docid": "349faab3c9777befeb815725182405c0", "score": "0.6266263", "text": "public double getLength() {\n return totalLength;\n }", "title": "" }, { "docid": "ffa44e8d99cff792a3860f20acc00285", "score": "0.6266198", "text": "public Double getLength(){\n return this.length;\n }", "title": "" }, { "docid": "e56b8c4ce3979c3bb7bcf11e29a72863", "score": "0.6263887", "text": "public double length()\n {\n return this.getR();\n }", "title": "" }, { "docid": "690518865217fabe06159047e8eee086", "score": "0.6257097", "text": "public double getLength()\r\n {\r\n return this.length;\r\n }", "title": "" }, { "docid": "9cd53050067237a2db3d293fb5dc20bd", "score": "0.62424624", "text": "public static Double getLength() {\n\t\tfinal String prompt = \"Please enter the rectangle's length.\";\n\t\treturn getPositiveDouble(prompt);\n\t}", "title": "" }, { "docid": "66aef47ffe019102bddfd1d5bf92de40", "score": "0.6210925", "text": "public double getSurfaceLength() {\n\n return 0;\n }", "title": "" }, { "docid": "095a2bf28da2784cf7e823dbe2f86148", "score": "0.6198847", "text": "public double length() {\n return this.length;\n }", "title": "" }, { "docid": "5a886bec9667b49c3c2e0ef7f87d9ab9", "score": "0.6189604", "text": "public float getNormals_length() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 8);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 8);\n\t\t}\n\t}", "title": "" }, { "docid": "3255f1e29095ff9bd4aaa883b62c7e3e", "score": "0.6157095", "text": "public double length() {\r\n\t\treturn Math.hypot(x, y);\r\n\t}", "title": "" }, { "docid": "9388436ed2dc2b92cbfd07cb18f58d77", "score": "0.6152023", "text": "@Raw\n\tprotected double getVelocityMagnitude(){\n\t\treturn Math.sqrt( Math.pow(this.getVelocityX(), 2) + Math.sqrt( Math.pow(this.getVelocityY(), 2)));\n\t}", "title": "" }, { "docid": "19f5347995db40cf34782e2613d2a232", "score": "0.61402214", "text": "public double getLength() {\n return PolylineImpl.impl.getLength(jsoPeer);\n }", "title": "" }, { "docid": "858269e26d609238f2c7969fb8375ca1", "score": "0.6078745", "text": "public double length() {\n return Math.sqrt(sqlength());\n }", "title": "" }, { "docid": "5caa847b435b1b0f4291a4294322f7b7", "score": "0.6072924", "text": "public float getLength() {\n return mSplineLength;\n }", "title": "" }, { "docid": "4082dd8084e122f760bb1134489d3d94", "score": "0.60479325", "text": "public double length() {\r\n double length = this.point1.distance(this.point2);\r\n return length;\r\n }", "title": "" }, { "docid": "967f67fc1ad5a0b7cc81f335a115b2f5", "score": "0.6041492", "text": "public float getMagnitude(){\n\t\tfloat magnitude = (float)Math.sqrt(this.dotProduct());\n\t\treturn magnitude;\n\t}", "title": "" }, { "docid": "92ef72b116c963145a09840d1ea21fc3", "score": "0.6026616", "text": "public double norm() {\n\t\treturn Math.sqrt(x*x + y*y + z*z);\n\t}", "title": "" }, { "docid": "05dfd6988f164c7a46b5fcdc24af0c06", "score": "0.60150737", "text": "public double getLength(){\r\n return this.startPoint.distance(this.endPoint);\r\n }", "title": "" }, { "docid": "6d85d440a79c3e4f9e8ecef65856c2aa", "score": "0.6006927", "text": "public float magnitude() {\r\n return (float)Math.sqrt(this.x * this.x + this.y * this.y);\r\n }", "title": "" }, { "docid": "b931c4df0ed74c745edf1e1d7142ac7f", "score": "0.5968455", "text": "double getLen() {\n\t\t\n\t\treturn 2 * (width + higth);\n\t}", "title": "" }, { "docid": "f8745f72c572407f2a9e5d599d4325b0", "score": "0.5966013", "text": "@Override\r\n\tpublic double calcVolume() {\r\n\t\treturn Math.pow(length, 3);\r\n\t}", "title": "" }, { "docid": "06f14ee56752f686a2fa6cc39a9a5e89", "score": "0.5960312", "text": "public static double magnitude(ThreeVector v1) {\r\n\t\tdouble mag;\r\n\t\tmag = Math.sqrt(v1.x*v1.x + v1.y*v1.y + v1.z*v1.z);\r\n\t\treturn mag;\r\n\t}", "title": "" }, { "docid": "f66249ebfbe4de4952f0d33fd45fce24", "score": "0.5950801", "text": "public double getLength() {\r\n\t\tdouble t= RunEnvironment.getInstance().getCurrentSchedule().getTickCount();\r\n\t\tdouble delta= t - t0;\r\n\t\tdouble l= BacteriumEquations.eqnSimpleLinearFit(delta, getZg(), BacteriumParameters.MIN_LENGTH/2, BacteriumParameters.MAX_LENGTH/2);\r\n\t\treturn l;\r\n\t}", "title": "" }, { "docid": "a8496708dbce624fff461c90f5ee49ff", "score": "0.5948081", "text": "float getVertDistThal() {\r\n\t\treturn _vertDistThal;\r\n\t}", "title": "" }, { "docid": "744c92e717571e7ae17b8c211bf3d9d5", "score": "0.5920043", "text": "@Override\n public double getLength() {\n return this.length;\n }", "title": "" }, { "docid": "9beb0fe0080f3d949e6b89775948263f", "score": "0.5888896", "text": "public double getMagnitude() {\n return Math.sqrt(Math.pow(getX(), 2) + Math.pow(getY(), 2));\n }", "title": "" }, { "docid": "e79a625a97e2b66a5fee96aa48c40dd0", "score": "0.58780086", "text": "public double magnitude()\n {\n return Math.sqrt((x * x) + (y * y));\n }", "title": "" }, { "docid": "eb32047cde8c18201a55c4f69417bb4c", "score": "0.5876294", "text": "public Vector3D getVelocity();", "title": "" }, { "docid": "47bf829e325082d7910b8a7a65b6e48d", "score": "0.58356124", "text": "public float computeRunLengthZ() {\n\t\t// iterate particles and find the highest and the lowest\n\t\tfloat highest = 0;\n\t\tfloat lowest = Float.POSITIVE_INFINITY;\n\t\tfor (Iterator iter = particleList.iterator(); iter.hasNext();) {\n\t\t\tBiomassParticle b = (BiomassParticle) iter.next();\n\t\t\tfloat z = b.getCenterZ();\n\t\t\tfloat r = b.getRadius();\n\t\t\thighest = (highest < (z + r) ? (z + r) : highest);\n\t\t\tlowest = (lowest > (z - r) ? (z - r) : lowest);\n\t\t}\n\t\treturn highest - lowest;\n\t}", "title": "" }, { "docid": "5f1eebb4715648c678ab018a9878fddc", "score": "0.58323103", "text": "public double magnitude() {\r\n return Math.sqrt(this.dot(this));\r\n }", "title": "" }, { "docid": "7f08de7352b6107611b55bd726126603", "score": "0.5830002", "text": "public Double norm()\n\t{\n\t\treturn ExtraMath.hypotenuse(x, y, z);\n\t}", "title": "" }, { "docid": "56475fbef615f33cef0e3ef12847bd41", "score": "0.5807973", "text": "public double getReachLength()\r\n {\r\n return Double.valueOf(properties.getProperty(PROP_KEY_REACH_LENGTH));\r\n }", "title": "" }, { "docid": "ea119285f30206ab04ebffb5cd805692", "score": "0.57988864", "text": "public int length() {\n return coordinates.length;\n }", "title": "" }, { "docid": "8ad7f2878c0019b33f9cb8b9eb999cbc", "score": "0.5773523", "text": "public Vec3D normalizeTo(float len) {\n\t\tfloat mag = (float) Math.sqrt(x * x + y * y + z * z);\n\t\tif (mag > 0) {\n\t\t\tmag = len / mag;\n\t\t\tx *= mag;\n\t\t\ty *= mag;\n\t\t\tz *= mag;\n\t\t}\n\t\treturn this;\n\t}", "title": "" }, { "docid": "bd1e71b6b3df78145c40ceb4c39b9723", "score": "0.5768661", "text": "public double magnitude() { return Math.sqrt(this.magnitudeSquared()); }", "title": "" }, { "docid": "9a1a53a6bb035495b428a9315e075de6", "score": "0.57603043", "text": "final long _getLength() {\n return length;\n }", "title": "" }, { "docid": "27f75d7cfcdc1f3b82980403245e6903", "score": "0.57405686", "text": "public double getLength()\n {\n if(length == 0)\n for(Bezier curve : curves)\n length += curve.getLength();\n return length;\n }", "title": "" }, { "docid": "7a2318976d9dd5be5a52ea92fd2ad057", "score": "0.5740219", "text": "public double magnitude() {\n \t\treturn Math.sqrt(magnitudeSquared());\n \t}", "title": "" }, { "docid": "e4ede8ea42987ff8a7e5136011e2f46b", "score": "0.5731609", "text": "public long getLength() {\r\n return length;\r\n }", "title": "" }, { "docid": "5c918767aef61838bd12b069632499f0", "score": "0.5702065", "text": "public double volume() {\n Vector3D v = Vector3D.sub(pMax, pMin);\n return v.x * v.y * v.z;\n }", "title": "" }, { "docid": "a43267b96a3f4c8e65ad6bba3afdb78c", "score": "0.5689288", "text": "public float getRestLength() {\n float result = vehicleWheel.getRestLength();\n return result;\n }", "title": "" }, { "docid": "c6ca437719c9b8724e94cbdbd556e1cb", "score": "0.5689175", "text": "@Override\n public int getDimension() {\n return impl.getVectorSize(Property.AXIS);\n }", "title": "" }, { "docid": "709895e57ac3a19f4bd86c2c5dbac19a", "score": "0.56881714", "text": "public long getSize() {\n\t\treturn Math.abs(getXSize() * getYSize() * getZSize());\n\t}", "title": "" }, { "docid": "483dd6d39a342d3f722b82b8df5b1584", "score": "0.56818455", "text": "public int getLength() {\r\n\t\treturn stepsX.size;\r\n\t}", "title": "" }, { "docid": "b552003e91b1b7ef3e7269a054c32ea1", "score": "0.5673563", "text": "public long getLength() {\n return length;\n }", "title": "" }, { "docid": "7277aacd2d4c23b31a1e7bf99cea0945", "score": "0.5664091", "text": "public float getBuildingInitLength() {\r\n\t\treturn this.getFloatValue(\"building.initLength\");\r\n\t}", "title": "" }, { "docid": "ae5f5639bea7e9ba5c948685d9dcbb42", "score": "0.56589895", "text": "public Vec2 getBoundsNormalizedFiberLength() {\n return new Vec2(opensimActuatorsAnalysesToolsJNI.DeGrooteFregly2016Muscle_getBoundsNormalizedFiberLength(swigCPtr, this), true);\n }", "title": "" }, { "docid": "3e1a57d4a05b9b171de9fa506710d4ce", "score": "0.5656399", "text": "public double distance(Vector3D v) {\r\n\t\treturn Math.sqrt((x - v.getX()) * (x - v.getX()) + (y - v.getY()) * (y - v.getY()) + (z - v.getZ()) * (z - v.getZ()));\r\n\t}", "title": "" }, { "docid": "33a1f2301f01a00d01f38004c3e5834f", "score": "0.56502897", "text": "public int getDocVectorLength() {\n return docVectorLength;\n }", "title": "" }, { "docid": "9ae826fefb7ad2008338c8e63f5a078c", "score": "0.56460226", "text": "@Raw\n\tprotected double getAccelerationMagnitude(){\n\t\t return Math.sqrt( Math.pow(this.getAccelerationX(), 2) + Math.sqrt( Math.pow(this.getAccelerationY(), 2)));\n\t}", "title": "" }, { "docid": "c656eb5a9a324d19b64a8018f37e873c", "score": "0.5645458", "text": "public LengthUnit geKLength() {\n/* 63 */ return this.unit;\n/* */ }", "title": "" }, { "docid": "cfee7390216b9e553f250feee6dc87fe", "score": "0.56431836", "text": "Vector getSize();", "title": "" }, { "docid": "b70a9612c34d460b643409bbc47c6c36", "score": "0.5617576", "text": "@Override\n public double getVolume()\n {\n return Math.pow(sideLength, 3);\n }", "title": "" }, { "docid": "850bde2adf7e7adcd4d603b8bbe41ea0", "score": "0.56173855", "text": "public double getDoorlength() {\n\n double n;\n\n System.out.println(\"Enter the Length of door\");\n n = setValue();\n \n return n;\n }", "title": "" }, { "docid": "e5be1dd2a81a46ca704c0bdc57661965", "score": "0.5614476", "text": "public final Integer getLength() {\r\n return length;\r\n }", "title": "" }, { "docid": "9dbeb6483d931979275ac0f2ae28e930", "score": "0.5610841", "text": "public double getLength() {\n\n double length = 0.0;\n for (PatternSegment seg : segments) {\n length += seg.getLength();\n }\n return length;\n\n }", "title": "" }, { "docid": "c8d5773c199c91bb16d5970fe0db3902", "score": "0.5610146", "text": "Length (double value) {\n this.value = value;\n }", "title": "" }, { "docid": "c67116b94d3d3e6cebe161e7649d18ee", "score": "0.560868", "text": "private float getRankPositionLength() {\n\t\tif(this.lineType==LINE) {\n\t\t\tthis.midpoint = this.front.interpolate(this.end, 0.5f);\n\t\t}\n\t\t\n\t\treturn (float)(this.front.distance(this.midpoint.getX(), this.midpoint.getY()) +\n\t\t\t\tthis.end.distance(this.midpoint.getX(), this.midpoint.getY()));\n\t}", "title": "" }, { "docid": "2cbbe424ca649fe3b4183f7359cfcc04", "score": "0.5604817", "text": "public int getLength() {\n return this.snakeBody.size(); \n }", "title": "" }, { "docid": "ce81d436fdf37a75cb3aa383c1bebde5", "score": "0.5603723", "text": "public static int getNumOfThreeD() {\n\t\treturn numOfThreeD;\n\t}", "title": "" }, { "docid": "8a089b981bab740a07354808682d2f0e", "score": "0.5573058", "text": "public float distanceTo(float x, float y, float z);", "title": "" }, { "docid": "8da5d5dcc03afe6ff4c04b0d12198d73", "score": "0.5571114", "text": "@NotNull Overlay $length(Field<? extends Number> length);", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "1a26fb9f8526a0f3330f3eba8c5fb7b2", "score": "0.0", "text": "@Override\n\tpublic void myCallBackOnRelease(MouseEvent e) {\n\t\t\n\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0c69424878be03e50f19e2ca61ef640b", "score": "0.68002176", "text": "@Override\r\n\tpublic void leggi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b6c961814c14fa02879570fd7e65ac5", "score": "0.6769489", "text": "@Override\r\n\tpublic void scarica() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "1e34493fdecb11f6bbc24ef12eea2281", "score": "0.6386922", "text": "public void mo27791d() {\n }", "title": "" }, { "docid": "051f88f1f94e36fab8ec66de1946f037", "score": "0.6287329", "text": "public void mo27794g() {\n }", "title": "" }, { "docid": "db4b95a4460fb609bcd3716b1a4b3e23", "score": "0.6283629", "text": "@Override\r\n\tpublic void compra() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5eb303064635f4909e997c3effe2511d", "score": "0.6265152", "text": "public void mo27792e() {\n }", "title": "" }, { "docid": "fdf6bcd763ea5f5b221fd5a7669d1afb", "score": "0.6262988", "text": "public void mo28805a() {\n }", "title": "" }, { "docid": "381ca210fc42b87f9b8af474719578a0", "score": "0.62538177", "text": "public void mo41489c() {\n }", "title": "" }, { "docid": "203e120e0c17c7a390717d0ca9ff147a", "score": "0.6252656", "text": "public void mo11316JX() {\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0b319072f0ae7225e83791b70ea23079", "score": "0.6200546", "text": "@Override\r\n\tpublic void ghhvhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9cfdb7a953eedd93829d98c1649d8fa2", "score": "0.6147232", "text": "@Override\r\n\tprotected void rodape() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a1d358ef8dde60480477b5c8b2359c6d", "score": "0.611178", "text": "@Override\n\tpublic void compra() {\n\t\t\n\t}", "title": "" }, { "docid": "81e2e665536902ef3310e7a034f112ea", "score": "0.6104965", "text": "@Override\r\n\tpublic void apagar()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "e6068b0200c883e42ca4379e8b4390f4", "score": "0.61018884", "text": "@Override\n\tpublic void ihtiyacGidermek() {\n\t\t\n\t}", "title": "" }, { "docid": "222e7b9d44422cda9de5df0085949df1", "score": "0.60770625", "text": "public void mo27793f() {\n }", "title": "" }, { "docid": "6fc1bc8405449cd5caa1d0d4cc253eff", "score": "0.6024395", "text": "public void mo27783b() {\n }", "title": "" }, { "docid": "7de2b9a1638739d8a552ea81162374f7", "score": "0.6023624", "text": "@Override\r\n\tpublic void trasation() {\n\t\t \r\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "39970aed3dc3a7bed24f03fb23731e78", "score": "0.6010486", "text": "@Override\r\n\tpublic void laufen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a46f6ccc5a2230632919d59213754a52", "score": "0.59971493", "text": "@Override\n\tpublic void grafikCizme() {\n\t\t\n\t}", "title": "" }, { "docid": "5a91ef0aa6990fc22e6e46d34355029e", "score": "0.59874135", "text": "@Override public void accionar() {\n\n }", "title": "" }, { "docid": "d673691f42a5a36d5d7e5d4f81aec55e", "score": "0.59567183", "text": "@Override\n\tpublic void reveiller() {\n\t\t\n\t}", "title": "" }, { "docid": "b048ca4f20a40ca0411a5330c06ce3d5", "score": "0.5952113", "text": "@Override\n\tpublic void infinteBatery() {\n\t\t\n\t}", "title": "" }, { "docid": "2bd910d11f3b18a5106b970f6e7e4c64", "score": "0.59445894", "text": "@Override\n\tpublic void Consulter() {\n\t\t\n\t}", "title": "" }, { "docid": "fa5eb14703b2a28ee4847f692d01e39d", "score": "0.59407693", "text": "@Override\r\n\tpublic void init() {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a94b5981fe7c5ead7e5156e8e7cb9cb5", "score": "0.59315324", "text": "@Override\r\n\tpublic void attribute() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9fe10a8f8c056afc50123cc1485a6fdc", "score": "0.5927387", "text": "@Override\n\tvoid comision() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.59262717", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "ddafdd56d6d4b904d170e3608181850c", "score": "0.5918087", "text": "private void getArtefactId() {\n\t\t\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.59013426", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.58881694", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "53a77fe02ff8601b7f3a53009ccfd05c", "score": "0.58849895", "text": "public void designBasement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0449d2500abd0eb1624d7773d0cf88dd", "score": "0.5881909", "text": "@Override\n\tpublic void ponisti() {\n\n\t}", "title": "" }, { "docid": "a21e7f5bc4a152c3cd6818af1be8ca7f", "score": "0.5877803", "text": "@Override\n\tpublic void accionar() {\n\t\t\n\t}", "title": "" }, { "docid": "b623306824ebd023ab9bf4fc0a66aaf3", "score": "0.5876838", "text": "public void mo5928c() {\n }", "title": "" }, { "docid": "8dbedd9965a878a9a7db1c5deb6a28cd", "score": "0.5871888", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854053", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.5838742", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "4cc23ec21a978357a8a06db5bbae181c", "score": "0.5834908", "text": "@Override\n\t\tpublic void beSporty() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "f02c338eb46eb5cdf9d19504df309595", "score": "0.58264196", "text": "public void mo28814l() {\n }", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58237594", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "e8b6a10ed01f50fbe15d66c44e6b001f", "score": "0.58043116", "text": "public void mo28809c() {\n }", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "1a69d70e6e0ab03826da865edbaa2710", "score": "0.5802549", "text": "@Override\r\n public void init() {\n \r\n }", "title": "" }, { "docid": "89685a97be106c5e65406e42741d0ec3", "score": "0.5795489", "text": "public void mo1383a() {\n }", "title": "" }, { "docid": "de5480604ae54822ca3e3427911bb2b8", "score": "0.57932764", "text": "@Override\r\n public void muestra() {\r\n \r\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "812af2363c26b56566247f6bee5688a9", "score": "0.57931143", "text": "@Override\r\n\tprotected void cabecalho() {\n\t\t\r\n\t}", "title": "" }, { "docid": "630b43215e2b87f8b2bd389cae71f8a6", "score": "0.5789139", "text": "@Override\n\tprotected void dataAcquisition() {\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57740533", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "68ced9354b4e22b6351af0853a611a6c", "score": "0.57685226", "text": "@Override\n\tprotected void initDataReturn() {\n\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "4dad4a53c5b94a389679f4aa74f10e8b", "score": "0.576086", "text": "@Override\r\n\tprotected void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.57533413", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "393237de9c40b0b47e9d2c845ed92ee5", "score": "0.57512337", "text": "public void mo45857a() {\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "791f5ad29d019a14317f5d7e2a069c65", "score": "0.57465565", "text": "@Override\n\tpublic void aprovar() {\n\n\t}", "title": "" }, { "docid": "60492bcc1b7f57299660c3da0f16ab25", "score": "0.57418126", "text": "@Override\n\tpublic void icmek() {\n\t\t\n\t}", "title": "" }, { "docid": "da5e9df869731b2ae1dfbbfdf12b8cd8", "score": "0.5735176", "text": "public void mo3351d() {\n }", "title": "" }, { "docid": "a2125c0cb9324db88e7561e4a64c5e39", "score": "0.5734662", "text": "@Override\n\tpublic void etiquetas() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "24127c1aaba5ab942240f052757a1aae", "score": "0.5722859", "text": "@Override\n \tpublic void getStatus() {\n \t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "2097402406ed48de16ed7ccfe28a85b4", "score": "0.57133764", "text": "public void mo5927b() {\n }", "title": "" }, { "docid": "03143ee9b26aa8a7d43576d479e4400a", "score": "0.5709887", "text": "public final void mo55685Zy() {\n }", "title": "" }, { "docid": "2fbf66fc78447a45c3f7ecb3924ab4b4", "score": "0.57051754", "text": "@Override\n public void initValue() {\n \n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "e1834e089677c260b4af3324391b3b67", "score": "0.5698954", "text": "public final void mo62463l() {\n }", "title": "" }, { "docid": "b42b054dfaac7d94036bce6ecf272a0e", "score": "0.56988037", "text": "private void pepe() {\n\t\t\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.5676146", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "86084419dce04a98c3acda092fe2ae36", "score": "0.5674851", "text": "@Override\r\n\t\t\tpublic void refresh() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.566569", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "aabd8322198752312581d89a3059f204", "score": "0.56625766", "text": "@Override\n \tpublic void create() {\n\n \t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "29f3cdbb287e40f98a8d2f36bba2f27b", "score": "0.56487125", "text": "@Override\n\tpublic int eixos() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "ce71f38a65a1456052420d8bdcb81b78", "score": "0.5647971", "text": "@Override\r\n\tprotected void reset()\r\n\t{\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "title": "" }, { "docid": "70d974abd496677a87c8807bf56e0a5b", "score": "0.56434053", "text": "@Override\n public void desenhar() {\n \n }", "title": "" }, { "docid": "dbdc1deb5da4aee65d17f30f15f26778", "score": "0.56416714", "text": "private void getParentArtefactId() {\n\t\t\n\t}", "title": "" }, { "docid": "1f81bdf0bcfef346d61145fbc2986fa6", "score": "0.56412745", "text": "@Override\r\n public String getName() {\n return null;\r\n }", "title": "" }, { "docid": "acbb02f47467f45f5ab2c3b2e5f7545d", "score": "0.5640882", "text": "public final void mo62452a() {\n }", "title": "" } ]
c2c014b463dd2add93351c64e761d1a7
Created by guruchetansingh on 1/8/16.
[ { "docid": "e9036fb8cc8416fb25e008b9842d136c", "score": "0.0", "text": "public interface FetchMerchantHashesCallBack {\n\n /**\n * This will provide all merchant hashes and card tokens which are stored on merchant server.\n * */\n void fetchMerchantHashesAPIResponse(HashMap<String, String> oneClickTokens);\n}", "title": "" } ]
[ { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.65444076", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.6195103", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6111353", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6111353", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.610569", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6025632", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6025632", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6025632", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6025632", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6025632", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.5974905", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.59550035", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.5924983", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.590295", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.5896769", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.5896769", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.5896769", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "94fbc7cc462bcbd6ae350624f9fd7ce3", "score": "0.589594", "text": "private void dextrose10() {\n\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.5880324", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.5880324", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.5845396", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.58200896", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.5812992", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "292cbe61872dcad9d684e16a8054c962", "score": "0.5787503", "text": "private static void zmodyfikujPrzepis() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.5775257", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "4e49f5db36ca664153e54380025b85d4", "score": "0.5723192", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57168037", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.57091135", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "a46e663abb8570c121174f3358771925", "score": "0.5699259", "text": "private void m13516b() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.569688", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.569688", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.5694216", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.5682104", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56811196", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56811196", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56811196", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56811196", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56811196", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56811196", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56811196", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "ab92bad46db05153eb5c2eb626d0c4f9", "score": "0.5680881", "text": "@Override\n public void init() {\n\n \n }", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.56782377", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.5672632", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.56638604", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.56638604", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.56552905", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.56552905", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.56552905", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.5655129", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.5645979", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "c8f75a8f93bc20d4e8695ba99b470e1d", "score": "0.56281465", "text": "public void mo1684e() {\n }", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.5628117", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.56112653", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.56085455", "text": "private void Initalization() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5602787", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5602787", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.56001663", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.55773914", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.55773914", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.55773914", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "e071ca9eec75058b3213adadf2f930b9", "score": "0.5570452", "text": "public final void mo8109b() {\n }", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.5568836", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.55501896", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5546056", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.5545045", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.55387056", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.55387056", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.55387056", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.55387056", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.55387056", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.552841", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.552841", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.552841", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.552841", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "0d81c067c8001661f6cbaddca50d165a", "score": "0.55168885", "text": "public void mo6081a() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.551478", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.551478", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.551478", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.551478", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.551478", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.551478", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.551478", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.551478", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.551478", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.551478", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.551478", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "02699a98134693036160a045239bddba", "score": "0.55131745", "text": "@Override\r\n\tpublic void zwroc() {\n\r\n\t}", "title": "" }, { "docid": "fdcc5bb4978b51f08b328e919c859b5b", "score": "0.5512789", "text": "private Fachada() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5511226", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5511226", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5511226", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a8f4d3149e0f7a43b23b53ce69363fd6", "score": "0.5507924", "text": "public void mo5202b() {\n }", "title": "" }, { "docid": "d19db205a6dfafb044d57228b6554e49", "score": "0.54808336", "text": "private void m61336a() {\n }", "title": "" }, { "docid": "4cc1f71fd505c7eebea6574cd6adc40c", "score": "0.5480615", "text": "@Override\n\tpublic void limpar() {\n\n\t}", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.54645437", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "df354b0e90f74315528e7c23e26a4e5d", "score": "0.54582655", "text": "@Override\n \tpublic void reinit() {\n \t}", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.5449794", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.54407585", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.54407585", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.54407585", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "b45533c1fe1abca554473ddec0c29c4e", "score": "0.54393756", "text": "private void dextrose() {\n\n\n }", "title": "" } ]
b62455e7df0e3e19ec5b5fc800beab41
Creates a command from the details given and adds it to the list of processable commands. Will execute the action method inside the command's implementation of said method. Command can only be executed by CLI sources as it will only implement void processCommand
[ { "docid": "fc8e271c3d4c7da76c730a23911119ed", "score": "0.5867279", "text": "public Command addCommand(@NotNull String commandName, @NotNull ICommand action, boolean allowNullArgument) {\n return this.addCommand(CommandSource.CLI, commandName, action, null, allowNullArgument);\n }", "title": "" } ]
[ { "docid": "08c154d8464c5b57e8bb13a95704589c", "score": "0.65669733", "text": "public Command performCommand(CommandTypes commandType);", "title": "" }, { "docid": "5b6c82e548344a31d98bcb526b31e571", "score": "0.6467111", "text": "Command createCommand();", "title": "" }, { "docid": "5b6c82e548344a31d98bcb526b31e571", "score": "0.6467111", "text": "Command createCommand();", "title": "" }, { "docid": "82a8a6fd6f98f9993550145be0060762", "score": "0.63886726", "text": "@Override\n protected void createCommands() {\n }", "title": "" }, { "docid": "c7925dfc7b6aead6eaef3a9fa55095ab", "score": "0.6272984", "text": "void execute(Command command);", "title": "" }, { "docid": "a7dbe2a244a1929c8a0c971594a73529", "score": "0.62422246", "text": "public Object process(Object commandState) {\n Object command = createCommand();\n// set the state on the (hopefully brand new) Command instance\n System.out.println(command.getClass().getName());\n\n return command;\n }", "title": "" }, { "docid": "c2389d6c5db08d85431788b35098b4a9", "score": "0.6132344", "text": "public abstract Command constructCommand(ToyRobot targetRobot, String instruction);", "title": "" }, { "docid": "fdf5e5a6e8b6797c45214b18c069bf97", "score": "0.61247975", "text": "protected abstract Integer createCommand();", "title": "" }, { "docid": "97e0e44b3fc7230d8da1d92508153285", "score": "0.6116951", "text": "void dispatchCommand(String command);", "title": "" }, { "docid": "e7d5bc5c19ff52924c66c44bc39a968b", "score": "0.61043614", "text": "public Command addCommand(@NotNull String commandName, @NotNull ICommand action) {\n return this.addCommand(CommandSource.CLI, commandName, action, null, true);\n }", "title": "" }, { "docid": "7fb01c9bdc05d7b7e7313f75a7b11001", "score": "0.608656", "text": "public void process() throws IOException{\n\t\tgenerateCommandTypeInfoObjects();\r\n\t\t//Initialize command scanner\r\n\t\tCommandScanner commandScanner = new CommandScanner(commandTypes, reader);\r\n\t\t\r\n\t\t//Main loop\r\n\t\tdo{\r\n\t\t\twriter.flush();\r\n\t\t\tObject result = null;\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\t//Create container (information about the used command is stored here)\r\n\t\t\t\tCommand command = new Command();\r\n\t\t\t\tcommandScanner.commandLine2CommandDescriptor(command);\r\n\t\t\t\r\n\t\t\t\tresult = null;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\tresult = command.execute();\r\n\t\t\t}catch (GameRuntimeException e) {\r\n\t\t\t\t//Exceptions thrown within the commandLine2CommandDescriptor method\r\n\t\t\t\thandleGameRuntimeException(e);\r\n\t\t\t}catch (IllegalAccessException e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}catch (IllegalArgumentException e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}catch (InvocationTargetException e){\r\n\t\t\t\t//Identify the cause of the InvocationTargetException and re-throw it\r\n\t\t\t\t//Thrown if the invoked method throws an exception\r\n\t\t\t\ttry{\r\n\t\t\t\t\t//Thrown if the cause was a GameException\r\n\t\t\t\t\tif(e.getCause() instanceof GameException){\r\n\t\t\t\t\t\tthrow new GameException(e.getCause().getMessage());\r\n\t\t\t\t\t//Thrown if the cause was a GameRuntimeException\r\n\t\t\t\t\t}else if(e.getCause() instanceof GameRuntimeException){\r\n\t\t\t\t\t\tthrow new GameRuntimeException(e.getCause().getMessage());\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(GameException ex){\r\n\t\t\t\t\thandleGameException(ex);\r\n\t\t\t\t}catch(GameRuntimeException ex){\r\n\t\t\t\t\thandleGameRuntimeException(ex);\r\n\t\t\t\t};\r\n\t\t\t};\r\n\t\t\t\r\n\t\t\t//Print result\r\n\t\t\tif(result != null){\r\n\t\t\t\twriter.println(result);\r\n\t\t\t}\r\n\r\n\t\t}while(true);\r\n\t}", "title": "" }, { "docid": "aee7572122adf9a7db0048a5219224d7", "score": "0.60679716", "text": "public CommandOutput executeCommand() throws CLIProcessingException;", "title": "" }, { "docid": "479258ef873ab62f0861a1f6b9c91a25", "score": "0.6065925", "text": "private Process executeCommand(final List<String> command) throws Exception\r\n {\r\n final ProcessBuilder builder = new ProcessBuilder(command);\r\n Process accessProc = builder.start();\r\n this.logger.info(\"The Remote Desktop Access Action has invoked the command: \" + command.toString() + '.');\r\n accessProc.waitFor();\r\n \r\n return accessProc;\r\n }", "title": "" }, { "docid": "7054b7181d85325570f35e6626dc9c41", "score": "0.60511583", "text": "@Override\r\n public String processCommand(String command) {\n return command;\r\n }", "title": "" }, { "docid": "36d4f002b31c3792b0dae64ae1e4a8cf", "score": "0.6023576", "text": "protected abstract void buildCommandList();", "title": "" }, { "docid": "809988171a4225e515fe678ee12042e1", "score": "0.60100436", "text": "public void execute(){\n GeneralCommand userCommand = getChildren().get(0);\n GeneralCommand vars = getChildren().get(1);\n GeneralCommand commands = getChildren().get(2);\n String commandName = \"\";\n if (userCommand instanceof UndefinedCommand){\n UndefinedCommand newCommand = (UndefinedCommand) userCommand;\n commandName = newCommand.getCommandName();\n }\n else {\n getBM().throwError(\"Command name already in use\", getLineNumber());\n return;\n }\n\n UserDefinedCommand ud = getBM().getUserCommand(commandName);\n ud.addChild(vars);\n ud.addChild(commands);\n }", "title": "" }, { "docid": "8c0fd96c53230f75dc91e7460e5db7f1", "score": "0.5997134", "text": "List<String> executeCliCommand(String command) throws ManagerCommunicationException;", "title": "" }, { "docid": "564231cf0b5f367a73e56ef0eb8a52a2", "score": "0.59918565", "text": "public static void registerCommand() throws IllegalAccessException, InstantiationException {\n try {\n Reflections reflections = new Reflections(\"de.kleindev.tftpserver.commands\");\n Set<Class<?>> allClasses =\n reflections.getTypesAnnotatedWith(Command.CommandClass.class);\n for (Class<?> c : allClasses) {\n Constructor[] ctors = c.getDeclaredConstructors();\n Constructor ctor = null;\n for (Constructor constructor : ctors) {\n ctor = constructor;\n if (ctor.getGenericParameterTypes().length == 0)\n break;\n }\n assert ctor != null;\n ctor.setAccessible(true);\n Command command = (Command) ctor.newInstance();\n\n for (Method method : command.getClass().getMethods()) {\n if (method.isAnnotationPresent(Command.ConsoleCommand.class)) {\n consoleCommands.put((method.getAnnotation(Command.ConsoleCommand.class)).command(), command);\n if ((method.getAnnotation(Command.ConsoleCommand.class)).aliases().length != 0) {\n for (String s : (method.getAnnotation(Command.ConsoleCommand.class)).aliases()) {\n consoleAliases.put(s, (method.getAnnotation(Command.ConsoleCommand.class)).command());\n }\n }\n }\n }\n }\n } catch (InvocationTargetException e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "7f57c8c09d1b6cacc9181bc422236e06", "score": "0.5950747", "text": "void addCommand(Command c);", "title": "" }, { "docid": "2c382756d027d01b6b702c5be4a1a00c", "score": "0.59103125", "text": "public interface CommandProcessor extends CommandDispatcher {\n public void process();\n\n public void addListener(Listener listener);\n}", "title": "" }, { "docid": "578a7808c0c6f9eaa840b06473304d3f", "score": "0.5875376", "text": "public abstract void doCommand();", "title": "" }, { "docid": "a525a1d6873dd3c2e0cc31f8a2958f9a", "score": "0.58275545", "text": "public interface Command {\n\tpublic void execute();\n}", "title": "" }, { "docid": "cb9328a87de53e6b7c184938af604c60", "score": "0.58202505", "text": "public abstract CommandResponseInfo processCommand(NetworkConnection targetNetworkConnection,CommandRequestInfo toProcess);", "title": "" }, { "docid": "bc430f6e2a041cf09192c74d0316f045", "score": "0.5805101", "text": "public interface Command {\n\n void execute();\n \n}", "title": "" }, { "docid": "439ad773570b5f0ddbdd55c9df863b89", "score": "0.5804852", "text": "public static Process create(String ... command) throws IOException {\n\t\tProcessBuilder pb = new ProcessBuilder(command);\n\t\treturn pb.start();\n\t}", "title": "" }, { "docid": "b3ccf4940fa732322de10423e939c40d", "score": "0.58042026", "text": "@Override\n protected JOSSOCommandSupport createCommand() throws Exception {\n InstallCommandSupport newCommand = (InstallCommandSupport) super.createCommand();\n newCommand.setVersionLoader(versionLoader);\n return newCommand;\n }", "title": "" }, { "docid": "efc58d9d6226a2908f435398614bf252", "score": "0.57953095", "text": "public interface iCommandManager {\n\n public iCommand createCommand(CommandData data, String s);\n\n}", "title": "" }, { "docid": "80adcb5c0ef505f6e6946c72db3d129c", "score": "0.5790172", "text": "@Override\n public Command createCommand() {\n return new IncrementCommand();\n }", "title": "" }, { "docid": "3c8bec831833b39952fb0f1ddf6622a3", "score": "0.57756096", "text": "Command create();", "title": "" }, { "docid": "4bc02afbafe250ac933ab8efb65b2d81", "score": "0.5773639", "text": "public synchronized void addCommand(String command) {\n\t\tcommandQueue.add(new Command(command));\n\t}", "title": "" }, { "docid": "53f341a70281eac3da03c68c7700e81b", "score": "0.57705647", "text": "public interface Commander {\n void execute();\n}", "title": "" }, { "docid": "b93727958a4a2932505b16fa8bce79af", "score": "0.5758284", "text": "@Override\n public void doCommand(List<Command> commandList) {\n }", "title": "" }, { "docid": "d93b67dc427d01fae45c54666061ccb6", "score": "0.57537156", "text": "public final void addCommand(Command command) {\n commands.add(command);\n }", "title": "" }, { "docid": "0570848ea1bafe88ae5d911f46d8ee77", "score": "0.57476723", "text": "public Command addCommand(@NotNull CommandSource source, @NotNull String commandName, @Nullable ICommand cliAction,\n @Nullable IClientCommand clientAction, boolean allowNullArgument\n ) {\n Command command = new Command()\n {\n @Override\n public void processCommand(CommandArgumentList args) throws Exception {\n if (cliAction == null) {\n throw new NotImplementedException();\n }\n\n cliAction.processCommand(args);\n }\n\n @Override\n public Object[] processCommand(CommandArgumentList args, ServerClient client) throws Exception {\n if (clientAction == null) {\n throw new NotImplementedException();\n }\n\n return clientAction.processCommand(args, client);\n }\n };\n command.source = source;\n command.command = commandName;\n command.allowNullArgument = allowNullArgument;\n\n this.addCommand(command);\n return command;\n }", "title": "" }, { "docid": "1b10b66c7e0e7cb70e3b1600ef699cf7", "score": "0.5738024", "text": "@Override\n @SuppressWarnings(\"unchecked\")\n public Executable interpretCommand(String[] data, String commandName) throws NoSuchMethodException, ClassNotFoundException, IllegalAccessException, InvocationTargetException, InstantiationException {\n Character firstLetter = Character.toUpperCase(commandName.charAt(0));\n String className = COMMANDS_PACKAGE + firstLetter + commandName.substring(1);\n\n //create command class\n Class<Executable> cmd = (Class<Executable>)Class.forName(className);\n Constructor constructor = cmd.getDeclaredConstructors()[0];\n\n //get command class constructor parameters\n Object[] constructorArguments = new Object[constructor.getParameterCount()];\n int counter = 0;\n for(Class<?> param: constructor.getParameterTypes()){\n String paramSimpleName = param.getSimpleName();\n switch (param.getSimpleName()){\n case \"String[]\":\n constructorArguments[counter] = data;\n break;\n case \"UnitFactory\":\n constructorArguments[counter] = this.factory;\n break;\n case \"Repository\":\n constructorArguments[counter] = this.repo;\n }\n counter++;\n }\n constructor.setAccessible(true);\n return (Executable)constructor.newInstance(constructorArguments);\n }", "title": "" }, { "docid": "38ebaa8786de93c2f6b5629b7e3598aa", "score": "0.5737774", "text": "@Override\n void execute(Command command)\n {\n executedCommands.add(command);\n if (!isMockCommandExecution())\n {\n super.execute(command);\n }\n }", "title": "" }, { "docid": "f2567a99c4fc3d81b98bdc674c8803f8", "score": "0.5733345", "text": "UsingCommand createUsingCommand();", "title": "" }, { "docid": "94c438def16d39a30c7b64df3a52044e", "score": "0.5720112", "text": "public CommandProcessor() {\n \n }", "title": "" }, { "docid": "ad8d92656235872ca46a2b554919aa85", "score": "0.5717297", "text": "protected abstract void runCommand() throws CommandLineException;", "title": "" }, { "docid": "356f7f44ffab512b92ea202d7d158e3d", "score": "0.57120353", "text": "public interface Command {\n\n void execute();\n}", "title": "" }, { "docid": "1054fd7d3e72bd81096051600e49fb58", "score": "0.57100284", "text": "public void doNewCommand(TSession session, String command) {\n {\n Account account = null;\n String accountId = null;\n if (session != null) {\n accountId = (String) session.getAttribute(SessionUtil.ACCOUNT_ID);\n if (accountId != null) {\n account = SpringContext.getAccountService().getAccount(accountId);\n }\n }\n try {\n Pattern p = Pattern.compile(\"\\\\s+\");\n Matcher m = p.matcher(command);\n command = m.replaceAll(\" \");\n String methodName = null;\n //处理命令字符串,反射调用\n String[] strs = command.split(\" \");\n methodName = strs[0];\n Map<String, GmDefinition> gmDefinitions = SpringContext.getGmDispatcher().getGmDefinitions();\n for (Map.Entry<String, GmDefinition> entry : gmDefinitions.entrySet()) {\n if (methodName.equalsIgnoreCase(entry.getKey())) {\n Method method = entry.getValue().getMethod();\n method.setAccessible(true);\n Object bean = entry.getValue().getBean();\n invoke(account, bean, method, strs);\n return;\n }\n\n }\n logger.error(\"找不到对应指令\" + command);\n\n } catch (Exception e) {\n logger.error(command, e);\n }\n\n }\n }", "title": "" }, { "docid": "6f4a146066e4477e8b0cda31c61e9a59", "score": "0.5706706", "text": "public interface Command {\n void execute();\n}", "title": "" }, { "docid": "6f4a146066e4477e8b0cda31c61e9a59", "score": "0.5706706", "text": "public interface Command {\n void execute();\n}", "title": "" }, { "docid": "6f4a146066e4477e8b0cda31c61e9a59", "score": "0.5706706", "text": "public interface Command {\n void execute();\n}", "title": "" }, { "docid": "b2d2955e0aeabec65b9e30c9f65e617e", "score": "0.5697102", "text": "public interface Command{\n void execute();\n}", "title": "" }, { "docid": "b98494b189a93ae4b74a606d2d28eac8", "score": "0.5689706", "text": "private void makeCommand(){\n\tthis.command = null;\n\t// make the command and setEnabled the action\n // only handle structured selections\n if (!(selection instanceof IStructuredSelection))\n {\n disable();\n }\n else\n {\n // convert the selection to a collection of the selected objects\n IStructuredSelection sselection = (IStructuredSelection) selection;\n List<?> list = sselection.toList();\n Collection<Object> collection = new ArrayList<Object>(list);\n \n // if the editing domain wasn't given by the workbench part, try to get\n // it from the selection\n if (editingDomain == null)\n {\n for (Object o : collection)\n {\n editingDomain = AdapterFactoryEditingDomain.getEditingDomainFor(o);\n if (editingDomain != null)\n {\n break;\n }\n }\n }\n\n // if we found an editing domain, create command\n if (editingDomain != null)\n {\n command = createActionCommand(editingDomain, collection);\n setEnabled(command.canExecute());\n }\n\n // give up if we couldn't create the command; otherwise, use a\n // CommandActionDelegate to set the action's text, tool-tip, icon,\n // etc. or just use the default icon\n if (command == null || command == UnexecutableCommand.INSTANCE)\n {\n disable();\n }\n }\n }", "title": "" }, { "docid": "2a8676d5bc75bc7cd50783fc5f1cac9e", "score": "0.56859046", "text": "public interface ICommand {\n\n /**\n * @return What the user will use to access your command, including the '/'\n */\n public String getCommand();\n\n /**\n * This method will be called when your command is ran.\n * @param args Arguments of the command (Not including /NameOfCommand)\n * @param packet The packet where the command originated from.\n */\n public void run(String[] args, Packet02ChatMessage packet);\n\n /**\n * Should return a String that tells the user how to use your command.\n * @return A String that tells the user how to use your command.\n */\n public String getHelpText();\n\n /**\n * Use this method to return a description of your command to the user.\n * @return The description of this command.\n */\n public String getDescription();\n\n /**\n * If your command requires the user to be elevated (such as a kick command), return true here.\n * @return Whether or not this command requires elevation.\n */\n public boolean requiresElevation();\n\n /**\n * This method will be ran when your command is called by the console, should be similar to\n * {@link com.kronosad.konverse.server.commands.ICommand#run(String[], com.kronosad.konverse.common.packets.Packet02ChatMessage)}.\n */\n public void runFromConsole(String[] args);\n}", "title": "" }, { "docid": "f80dc2198030ac700812abe792338ad2", "score": "0.5668352", "text": "public interface Command {\n public void execute();\n}", "title": "" }, { "docid": "72d8369e036b17d22431cbfb9219ca0c", "score": "0.5656256", "text": "public void executeCommand(Command command) {\n\t\tcommand.execute();\n\t\tundos.push(command);\n\t\tredos.clear();\n\t}", "title": "" }, { "docid": "2581db5c954e5d65cf3c45c842d52b7a", "score": "0.56551063", "text": "public ManagedCommandline(String command) {\n super(command);\n }", "title": "" }, { "docid": "41b1663b5b0d0af616f7ec8bc54a197e", "score": "0.5623604", "text": "public interface Command {\n\n public static final String[] COMMANDS = {\"set\",\"remove\",\"help\"};\n public static final String BROWSER_PATH = \"http://localhost:8585\";\n // Used to identify the windows platform.\n public static final String WIN_ID = \"Windows\";\n // The default system browser under windows.\n public static final String WIN_PATH = \"rundll32\";\n // The flag to display a url.\n public static final String WIN_FLAG = \"url.dll,FileProtocolHandler\";\n // The default browser under unix.\n public static final String UNIX_PATH = \"netscape\";\n // The flag to display a url.\n public static final String UNIX_FLAG = \"-remote openURL\";\n\n //Commands\n public static final String WINDOWS_COMMAND = WIN_PATH + \" \" + WIN_FLAG + \" \" + BROWSER_PATH;\n public static final String UNIX_COMMAND_NEW = UNIX_PATH + \" \" + UNIX_FLAG + \"(\" + BROWSER_PATH + \")\";\n public static final String UNIX_COMMAND_EXISTING = UNIX_PATH + \" \" + BROWSER_PATH;\n\n //ADB\n public static final String SET_ROUTE_1 = \"adb forward tcp:8585 tcp:8585\";\n public static final String SET_ROUTE_2 = \"adb forward tcp:8585 tcp:8587\";\n public static final String REMOVE_ROUTE = \"adb forward --remove-all\";\n\n public void execute();\n}", "title": "" }, { "docid": "7755fc62feae0956574f9e23e57bf14a", "score": "0.5614728", "text": "public interface Command {\n}", "title": "" }, { "docid": "1ab70054f094a8408d8f0182b7fb88ec", "score": "0.5614307", "text": "public interface Command {\n\n /**\n * Returns if the given character belongs to valid character set of the command.\n *\n * @param input input character\n * @return if the given character belongs to valid character set of the command\n */\n boolean doesInputCharacterBelongToCommand(char input);\n\n /**\n * Returns the {@link CommandName} associated with the Command.\n *\n * @return the {@link CommandName} associated with the Command\n */\n CommandName getCommandName();\n\n /**\n * Returns the algebraic expression generated as result of performing action on the given input.\n *\n * @param input input character\n * @return the algebraic expression generated as result of performing action on the given input\n */\n List<String> performAction(char input);\n\n /**\n * Returns a {@link Set} of valid {@link CommandName} that the next input character can represent\n * after execution of the current command.\n *\n * @return a set of valid CommandName that the next input character can belong to\n */\n Set<CommandName> getNextValidCommands();\n}", "title": "" }, { "docid": "a63bc6d282f413cbf1c80b4e96059aeb", "score": "0.560609", "text": "@Override\r\n\tpublic abstract void doCommand() ;", "title": "" }, { "docid": "e3a893c25f34a4aa6c6582a67b17f87c", "score": "0.56007653", "text": "public static void main(String[] args) {\n\n List<String> arguments = Arrays.asList(args);\n CommandFactory commandFactory = new CommandFactory();\n\n\n arguments.stream().forEach( a -> {\n String[] comArgs = a.split(\" \");\n String command = comArgs[0];\n String arg = comArgs[1];\n commandFactory.getCommand(command, arg);\n });\n\n\n Invoker inv = new Invoker();\n /*inv.receiveOperation(currentDirectory);\n inv.receiveOperation(changeDirectory);\n inv.receiveOperation(createFile);\n inv.receiveOperation(listContents);\n inv.receiveOperation(uc);\n inv.receiveOperation(quit);*/\n\n inv.doOperations();\n\n\n }", "title": "" }, { "docid": "7f56591304ae828cc42f8c8a81c06cfa", "score": "0.55992764", "text": "public Command parseCommand(String userInput) {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n return new IncorrectCommand(String.format(MESSAGE_INVALID_COMMAND_FORMAT, HelpCommand.MESSAGE_USAGE));\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n //@@author A0161210A\n switch (commandWord) {\n\n case AddCommand.COMMAND_WORD:\n return prepareAdd(arguments);\n \n case AddCommand.COMMAND_WORD2:\n return prepareAdd(arguments);\n //@@author\n\n case DeleteCommand.COMMAND_WORD:\n return prepareDelete(arguments);\n\n case DeleteCommand.COMMAND_WORD2:\n return prepareDelete(arguments);\n\n //@@author A0152962B\n case EditCommand.COMMAND_WORD:\n return prepareEdit(arguments);\n \n case EditCommand.COMMAND_WORD2:\n return prepareEdit(arguments);\n //@@author A0152962B-unused\n //Unused: update feature removed, removed to prevent registering an unimplemented feature\n /*case UpdateCommand.COMMAND_WORD:\n return prepareUpdate(arguments);\n \n case UpdateCommand.COMMAND_WORD2:\n return prepareUpdate(arguments);\n */\n //@@author \n case MarkedCommand.COMMAND_WORD:\n return prepareMarked(arguments);\n \n case MarkedCommand.COMMAND_WORD2:\n return prepareMarked(arguments);\n \n case ClearCommand.COMMAND_WORD:\n return new ClearCommand();\n \n case ClearCommand.COMMAND_WORD2:\n return new ClearCommand();\n\n case FindCommand.COMMAND_WORD:\n return prepareFind(arguments);\n \n case FindCommand.COMMAND_WORD2:\n return prepareFind(arguments);\n\n case ListCommand.COMMAND_WORD:\n //return new ListCommand();\n //@@author A0139956L-unused\n \treturn prepareList(arguments);\n //@@author A0139956L\n case ListCommand.COMMAND_WORD2:\n \t//return new ListCommand();\n \t//@@author A0139956L-unused\n return prepareList(arguments);\n\n //@@author A0139956L \n case PathCommand.COMMAND_WORD:\n return preparePath(arguments);\n \n case PathCommand.COMMAND_WORD2:\n return preparePath(arguments);\n //@@author \n \n case ExitCommand.COMMAND_WORD:\n return new ExitCommand();\n \n case ExitCommand.COMMAND_WORD2:\n return new ExitCommand();\n \n //@@author A0152962B\n case UndoableCommand.COMMAND_WORD_UNDO:\n UndoableCommand.undoManager.undo();\n return null;\n\n case UndoableCommand.COMMAND_WORD_REDO:\n UndoableCommand.undoManager.redo();\n return null;\n //@@author\n \n case HelpCommand.COMMAND_WORD:\n return new HelpCommand();\n\n case HelpCommand.COMMAND_WORD2:\n return new HelpCommand();\n\n default:\n return new IncorrectCommand(MESSAGE_UNKNOWN_COMMAND);\n }\n }", "title": "" }, { "docid": "ae75058f47c3cec4fb55addd2118da19", "score": "0.55973583", "text": "public interface ICommand {\n\n void perform(CommandSender sender, String[] args);\n}", "title": "" }, { "docid": "2c4ec7b14a1c8224020f8e132974003f", "score": "0.5579561", "text": "@Override\n\t\tpublic void performAction(String command) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "e32c77b71a3e64361305e3b49617ad0f", "score": "0.5565196", "text": "protected abstract void registerCommands(ActionRegistry actionRegistry);", "title": "" }, { "docid": "d1424d1b8a687c5cbc1e6f40eec15d04", "score": "0.55548245", "text": "public synchronized void addCommand(Command command)\r\n {\r\n commands.add(command);\r\n notify();\r\n }", "title": "" }, { "docid": "95edb9f06d90f0704283c0d0f52473f4", "score": "0.5553777", "text": "public void addCommand(@NotNull Command command) {\n this._commands.add(command);\n }", "title": "" }, { "docid": "047a5c9a86acb0a004947de22ffb8559", "score": "0.55537164", "text": "public void process() {\r\n int command;\r\n help();\r\n while ((command = getCommand()) != EXIT) {\r\n switch (command) {\r\n case ADD_MEMBER: addMember();\r\n break;\r\n case ADD_ITEMS: addItems();\r\n break;\r\n case ISSUE_ITEMS: issueItems();\r\n break;\r\n case RETURN_ITEMS: returnItems();\r\n break;\r\n case REMOVE_ITEMS: removeItems();\r\n break;\r\n case RENEW_ITEMS: renewItems();\r\n break;\r\n case PLACE_HOLD: placeHold();\r\n break;\r\n case REMOVE_HOLD: removeHold();\r\n break;\r\n case PROCESS_HOLD: processHolds();\r\n break;\r\n case GET_TRANSACTIONS: getTransactions();\r\n break;\r\n case SAVE: save();\r\n break;\r\n case RETRIEVE: retrieve();\r\n break;\r\n case HELP: help();\r\n break;\r\n case ADD_FINE: addFine();\r\n break;\r\n case COUNT_ITEMS: countItems();\r\n break;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "f11157c7f9cbe6e7f9529a0b95f73763", "score": "0.55499935", "text": "public interface Command {\n /**\n * Get name of command\n *\n * @return name command\n */\n String getName();\n\n /**\n * Execute command\n *\n * @throws Exception\n */\n void execute() throws Exception;\n}", "title": "" }, { "docid": "f9bdf9f7b70cd92016c2311d0f9ed93a", "score": "0.5546342", "text": "@Override\n public void executeCommand() {\n this.setJCLIOptions();\n String args[] = this.convertToArray();\n try {\n CommandLine jcCmd = this.jcParser.parse(this.jcOptions, args);\n\n if (jcCmd.hasOption('h')) {\n printHelp();\n }\n\n if (jcCmd.hasOption('s')) {\n String search = jcCmd.getOptionValue(\"s\");\n\n this.searchCommand(search);\n\n }\n\n\n\n if (this.done == false) {\n this.priniCommandList();\n }\n\n } catch (org.apache.commons.cli.ParseException ex) {\n this.setJcError(true);\n this.addErrorMessages(\"Error :\" + ex.getMessage());\n }\n }", "title": "" }, { "docid": "837606162dfbcb986926a3bd45006ffc", "score": "0.5540986", "text": "private void createCommandList() {\n if (sh) {\n\n // commands.add(\"/bin/sh\");\n commands.add(\"sh\");\n commands.add(\"-c\");\n commands.add(pattern);\n } else {\n StringTokenizer st = new StringTokenizer(pattern);\n while (st.hasMoreTokens()) {\n commands.add(st.nextToken());\n }\n }\n }", "title": "" }, { "docid": "153f830b4247f1a4979a7cd1bdc7bd99", "score": "0.5531011", "text": "public interface CommandFactory {\n\n\tLifterRaiseCommand createRaiseCommand();\n\n\tLifterLowerCommand createLowerCommand();\n\n}", "title": "" }, { "docid": "d7da8e073e959781f6830123b604bbdd", "score": "0.5530514", "text": "public void parseCommand(String cmd) {\r\n\t\ttry {\r\n\t\t\tif (cmd.trim().equals(\"\")) {\r\n\t\t\t\tthrow new Exception(\"No command is given!\");\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// Split the command from whitespaces.\r\n\t\t\t\tString[] cmdSplit = cmd.trim().split(\" \");\r\n\r\n\t\t\t\tString[] cmdArray = new String[20];\r\n\t\t\t\tfor (int i = 0; i < cmdSplit.length; i++) {\r\n\t\t\t\t\tcmdArray[i] = cmdSplit[i];\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = 0; i < cmdArray.length; i++) {\r\n\t\t\t\t\tif (cmdArray[i] == null) {\r\n\t\t\t\t\t\tcmdArray[i] = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Test if the command starts with any of the available commands. Throws an exception if the command cannot be executed.\r\n\t\t\t\tif (cmdArray[0].equals(\"new\")) {\r\n\t\t\t\t\tSystem.out.println(\"CommandController.parseCommand(\" + cmd + \") : new\");\r\n\t\t\t\t\tci = new Newcommand(dm);\r\n\t\t\t\t} else if (cmdArray[0].equals(\"add\")) {\r\n\t\t\t\t\tSystem.out.println(\"CommandController.parseCommand(\" + cmd + \") : add\");\r\n\t\t\t\t\tci = new Addcommand(dm);\r\n\t\t\t\t} else if (cmdArray[0].startsWith(\"get\")) {\r\n\t\t\t\t\tSystem.out.println(\"CommandController.parseCommand(\" + cmd + \") : get\");\r\n\t\t\t\t\tci = new Getcommand(dm);\r\n\t\t\t\t} else if (cmdArray[0].equals(\"delete\")) {\r\n\t\t\t\t\tSystem.out.println(\"CommandController.parseCommand(\" + cmd + \") : delete\");\r\n\t\t\t\t\tci = new Delcommand(dm);\r\n\t\t\t\t} else if (cmdArray[0].equals(\"remove\")) {\r\n\t\t\t\t\tSystem.out.println(\"CommandController.parseCommand(\" + cmd + \") : remove\");\r\n\t\t\t\t\tci = new Remcommand(dm);\r\n\t\t\t\t} else if (cmdArray[0].equals(\"display\")) {\r\n\t\t\t\t\tSystem.out.println(\"CommandController.parseCommand(\" + cmd + \") : display\");\r\n\r\n\t\t\t\t\tSystem.out.println(\"GuiController.actionPerformed() - Duplicate display\");\r\n\r\n\t\t\t\t\tci = new Displaycommand();\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// The exception that the command cannot be resolved\r\n\t\t\t\t\tthrow new Exception(\"Command cannot be resolved!\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tCommandResult result = ci.execute(cmdArray);\r\n\t\t\t\t// Get the instance of the result object from the command\r\n\t\t\t\tif (result.getObject() instanceof Train) {\r\n\t\t\t\t\tdm.addTrain((Train) result.getObject());\r\n\t\t\t\t} else if (result.getObject() instanceof Wagon) {\r\n\t\t\t\t\tdm.addWagon((Wagon) result.getObject());\r\n\t\t\t\t} else if (result.getObject() instanceof Observer) {\r\n\t\t\t\t\t// Register display at commandcontroller\r\n\t\t\t\t\tthis.addObserver((Observer) result.getObject());\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Return the result message\r\n\t\t\t\tthrow new Exception(result.getMessage());\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tappendToOutputLog(e.getMessage());\r\n\r\n\t\t\t// Notify observers that there is a change\r\n\t\t\tstateChanged();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c74a9bd4b47a04d4952897ac5a47edd1", "score": "0.552333", "text": "public interface ICommand\n{\n\n /**\n * Calls this <code>ICommand</code> with given <code>arguments</code>.\n * <p>\n * The arguments are the <code>main(String[])</code> method ones.\n * </p>\n * Note that this method is expected to throw given <code>RuntimeException</code> (<i>unchecked</i>) exceptions. So do not catch them and let the\n * <i>caller</i> handle them.\n * \n * @return exit code, will be used in <code>System.exit()</code>.\n */\n public ResultCode execute(final String[] args) throws UserFailureException,\n EnvironmentFailureException;\n\n /**\n * Returns the name of this command.\n * <p>\n * On the client side, this <code>ICommand</code> is registered with this name. This is kind of unique identifier of this <code>ICommand</code>.\n * </p>\n */\n public String getName();\n\n /**\n * Prints usage information for this command.\n * \n * @param out The stream to which help is printed\n */\n public void printUsage(PrintStream out);\n\n}", "title": "" }, { "docid": "b5a9f6e5c869cb26b875202926a03eaf", "score": "0.5518106", "text": "public static Command parse(String commandLine) throws DukeException {\n String[] attributes = commandLine.split(\" \", 2);\n attributes[0] = attributes[0].toLowerCase();\n switch (attributes[0]){\n case \"bye\": return new ExitCommand();\n case \"list\": return new ListCommand();\n case \"done\":\n try {\n return new DoneCommand(Integer.parseInt(attributes[1]));\n } catch (IndexOutOfBoundsException | NumberFormatException e) {\n throw new DukeException(Ui.INVALID_TASKNO +Ui.DONE_DESCRIPTION);\n }\n case \"todo\":\n try {\n return new AddTodoCommand(attributes[1]);\n } catch (IndexOutOfBoundsException e) {\n throw new DukeException(Ui.INVALID_DESCRIPTION+Ui.TODO_DESCRIPTION);\n }\n case \"deadline\":\n try {\n int index = attributes[1].indexOf(\" /by \");\n String taskName = attributes[1].substring(0, index);\n String deadline = attributes[1].substring(index+1).trim().split(\" \",2)[1];\n return new AddDeadlineCommand(taskName, deadline);\n } catch (IndexOutOfBoundsException e) {\n throw new DukeException(Ui.INVALID_DESCRIPTION+Ui.DEADLINE_DESCRIPTION);\n }\n case \"event\":\n try {\n int index = attributes[1].indexOf(\" /at \");\n String taskName = attributes[1].substring(0, index);\n String timeSlot = attributes[1].substring(index+1).trim().split(\" \",2)[1];\n return new AddEventCommand(taskName, timeSlot);\n } catch (IndexOutOfBoundsException e) {\n throw new DukeException(Ui.INVALID_DESCRIPTION+Ui.EVENT_DESCRIPTION);\n }\n case \"delete\":\n try {\n return new DeleteCommand(Integer.parseInt(attributes[1]));\n } catch (IndexOutOfBoundsException | NumberFormatException e) {\n throw new DukeException(Ui.INVALID_TASKNO +Ui.DELETE_DESCRIPTION);\n }\n case \"help\": return new HelpCommand();\n case \"find\":\n try {\n return new FindCommand(attributes[1]);\n } catch (IndexOutOfBoundsException e) {\n throw new DukeException(Ui.LACK_KEYWORD+Ui.FIND_DESCRIPTION);\n }\n default: throw new DukeException(Ui.INVALID_COMMAND);\n }\n }", "title": "" }, { "docid": "19c143e334bc597599e6cf465f29f775", "score": "0.54972064", "text": "@Test\n\tpublic void testCreateProcessCommand() {\n\n\t\tString json = \"{\\\"expid\\\":\\\"Exp1\\\",\\\"processtype\\\":\\\"rawtoprofile\\\",\" +\n\t\t\t\t\"\\\"parameters\\\":[\\\"-a -m 1 --best -p 10 -v 2 -q -S\\\",\\\"d_melanogaster_fb5_22\\\"\" +\n\t\t\t\t\",\\\"y\\\",\\\"y\\\",\\\"10 1 5 0 0\\\",\\\"y 10\\\",\\\"single 4 0\\\",\\\"150 1 7 0 0\\\"],\" +\n\t\t\t\t\"\\\"metadata\\\": \\\"astringofmetadata\\\",\\\"genomeRelease\\\":\" +\n\t\t\t\t\"\\\"hg38\\\",\\\"author\\\": \\\"yuri\\\"}\";\n\t\tassertNotNull(cmdf.createProcessCommand(json, \"userName\", \"parsedRestful\"));\n\n\t}", "title": "" }, { "docid": "9e97fc470094ba4bb7141503ae2ed6ab", "score": "0.5490331", "text": "private void processCommand(String inputCommand){\n sC.enterCommand(inputCommand);\n }", "title": "" }, { "docid": "04f66044663a6100ecd88b52ec0dd55c", "score": "0.5485658", "text": "public interface ICommand {\n\n public abstract void execute() throws IOException;\n public abstract void showHelp();\n public abstract String getName();\n\n\n}", "title": "" }, { "docid": "65e36674cbf101dfb7f41385b60068eb", "score": "0.54831153", "text": "public void addCommand(ShellCommand command) {\n\t\tcommands.put(command.getName().toUpperCase(), command);\n\t}", "title": "" }, { "docid": "37f07f9a864c69624be5304730af2461", "score": "0.54808253", "text": "protected void registerCommands() {\n this.controller.getCommandsManagerRegistration().register(this.getClass());\n }", "title": "" }, { "docid": "4439e419e803a482d794a0f2808ea39e", "score": "0.5479203", "text": "Command()\n\t{\n\t}", "title": "" }, { "docid": "76e974c704f01223fd96ee3740f3b4db", "score": "0.5474567", "text": "public ListCommand(String command) {\n super(command);\n }", "title": "" }, { "docid": "fdf88821a933ff3b103e84e7a4859824", "score": "0.54740816", "text": "public void registerCommand(ICommand command);", "title": "" }, { "docid": "2345fa2866fee6219c95b5adb3c5f49b", "score": "0.54671836", "text": "private static void runCommand(String... args) {\n\n switch (args[0]) {\n case \"add\":\n checkArgs(2, args);\n Commands.add(args[1]);\n break;\n case \"commit\":\n checkArgs(2, args);\n Commands.commit(args[1], null, null);\n break;\n case \"checkout\":\n checkoutdecider(args);\n break;\n case \"log\":\n checkArgs(1, args);\n Commands.log();\n break;\n case \"rm\":\n checkArgs(2, args);\n Commands.rm(args[1]);\n break;\n case \"global-log\":\n checkArgs(1, args);\n Commands.gloablLog();\n break;\n case \"find\":\n checkArgs(2, args);\n Commands.find(args[1]);\n break;\n case \"branch\":\n checkArgs(2, args);\n Commands.branch(args[1]);\n break;\n case \"reset\":\n checkArgs(2, args);\n Commands.reset(args[1]);\n break;\n case \"rm-branch\":\n checkArgs(2, args);\n Commands.rmBranch(args[1]);\n break;\n case \"status\":\n checkArgs(1, args);\n Commands.status();\n break;\n case \"merge\":\n checkArgs(2, args);\n Commands.merge(args[1]);\n break;\n default:\n Utils.message(\"No command with that name exists.\"); }\n }", "title": "" }, { "docid": "06bf7e855211707276214ee3ea12d381", "score": "0.5454714", "text": "public void process() {\n\t\tint command;\n\t\thelp();\n\t\twhile ((command = getCommand()) != EXIT) {\n\t\t\tswitch (command) {\n\t\t\tcase ADD_MEMBER:\n\t\t\t\taddMember();\n\t\t\t\tbreak;\n\t\t\tcase ADD_ITEMS:\n\t\t\t\taddLoanableItems();\n\t\t\t\tbreak;\n\t\t\tcase ISSUE_ITEMS:\n\t\t\t\tissueLoanableItems();\n\t\t\t\tbreak;\n\t\t\tcase RETURN_ITEMS:\n\t\t\t\treturnLoanableItems();\n\t\t\t\tbreak;\n\t\t\tcase REMOVE_ITEMS:\n\t\t\t\tremoveLoanableItems();\n\t\t\t\tbreak;\n\t\t\tcase RENEW_ITEMS:\n\t\t\t\trenewLoanableItems();\n\t\t\t\tbreak;\n\t\t\tcase PLACE_HOLD:\n\t\t\t\tplaceHold();\n\t\t\t\tbreak;\n\t\t\tcase REMOVE_HOLD:\n\t\t\t\tremoveHold();\n\t\t\t\tbreak;\n\t\t\tcase PROCESS_HOLD:\n\t\t\t\tprocessHolds();\n\t\t\t\tbreak;\n\t\t\tcase GET_TRANSACTIONS:\n\t\t\t\tgetTransactions();\n\t\t\t\tbreak;\n\t\t\tcase SAVE:\n\t\t\t\tsave();\n\t\t\t\tbreak;\n case PAY_FINES:\n payFines();\n break;\n\t\t\t//case RETRIEVE:\n\t\t\t\t//retrieve();\n\t\t\t\t//break;\n\t\t\tcase PRINT_FORMATTED:\n\t\t\t\tprintFormatted();\n\t\t\t\tbreak;\n\t\t\tcase DISPLAY_OVERDUE_ITEMS:\n\t\t\t\tdisplayOverdueItems();\n\t\t\t\tbreak;\n\t\t\tcase REMOVE_MEMBER:\n\t\t\t\tremoveMember();\n\t\t\t\tbreak;\n\t\t\tcase CHANGE_DUEDATE:\n\t\t\t\tchangeDueDate();\n\t\t\t\tbreak;\n\t\t\tcase HELP:\n\t\t\t\thelp();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "26c9377d70af3a0eff2978715c6bafbe", "score": "0.54383063", "text": "protected void executing( Command command )\r\n\t{\r\n\t\t// could be implemented in subclass\r\n\t}", "title": "" }, { "docid": "df51eda9a25880843a14325f0e329dc7", "score": "0.5437463", "text": "public abstract boolean doCommand();", "title": "" }, { "docid": "770ec1c7a6553f4c0a7bb2693456023c", "score": "0.5435924", "text": "void execute(SrtCommand srtCommand);", "title": "" }, { "docid": "b4ad358634d5be66b6161132129dadc4", "score": "0.54244316", "text": "@DataBoundConstructor\n public ExecCreateAndStartCommand(String containerIds, String command) {\n this.containerIds = containerIds;\n this.command = command;\n }", "title": "" }, { "docid": "285d3e25eac2784ffec81eb9ea8821c7", "score": "0.54172575", "text": "private void initCommandProcessor() {\r\n\t\tcommandProcessor = new CommandProcessor();\r\n\t}", "title": "" }, { "docid": "db6c9f478606650626c03442a56e595c", "score": "0.5413174", "text": "public interface Command {\n\tpublic boolean validCommand(CommandStack stack) throws EmptyStackException;\n\t\n\tpublic String toString();\n\t\n\tpublic String toShortString();\n}", "title": "" }, { "docid": "e9c16c8626a8acd1671739a95aebd316", "score": "0.5412501", "text": "private void registerCommands() {\n\n CommandEventCaller commandCaller = new CommandEventCaller();\n\n getCommand(\"calendar\").setExecutor(commandCaller);\n getCommand(\"appointment\").setExecutor(commandCaller);\n\n }", "title": "" }, { "docid": "740f42109ec3a95d46eb54a3e4ad91ab", "score": "0.5405131", "text": "public Command parseCommand(String userInput) {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n return new IncorrectCommand(String.format(MESSAGE_INVALID_COMMAND_FORMAT, HelpCommand.MESSAGE_USAGE));\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n switch (commandWord) {\n\n case AddCommand.COMMAND_WORD:\n case AddCommand.SHORT_COMMAND_WORD:\n return new AddCommandParser().parse(arguments);\n\n case CompleteCommand.COMMAND_WORD:\n case CompleteCommand.SHORT_COMMAND_WORD:\n return new CompleteCommandParser().parse(arguments);\n\n case ClearCommand.COMMAND_WORD:\n return new ClearCommand();\n\n case DeleteCommand.COMMAND_WORD:\n case DeleteCommand.SHORT_COMMAND_WORD:\n return new DeleteCommandParser().parse(arguments);\n\n case EditCommand.COMMAND_WORD:\n case EditCommand.SHORT_COMMAND_WORD:\n return new EditCommandParser().parse(arguments);\n\n case ExitCommand.COMMAND_WORD:\n return new ExitCommand();\n\n case FindCommand.COMMAND_WORD:\n case FindCommand.SHORT_COMMAND_WORD:\n return new FindCommandParser().parse(arguments);\n\n case HelpCommand.COMMAND_WORD:\n case HelpCommand.SHORT_COMMAND_WORD:\n return new HelpCommandParser().parse(arguments);\n\n case ListCommand.COMMAND_WORD:\n case ListCommand.SHORT_COMMAND_WORD:\n return new ListCommandParser().parse(arguments);\n\n case LoadCommand.COMMAND_WORD:\n return new LoadCommandParser().parse(arguments);\n\n case SaveCommand.COMMAND_WORD:\n return new SaveCommandParser().parse(arguments);\n\n case SelectCommand.COMMAND_WORD:\n case SelectCommand.SHORT_COMMAND_WORD:\n return new SelectCommandParser().parse(arguments);\n\n case UndoCommand.COMMAND_WORD:\n case UndoCommand.SHORT_COMMAND_WORD:\n return new UndoCommand();\n\n case PrevCommand.COMMAND_WORD:\n case PrevCommand.SHORT_COMMAND_WORD:\n return new PrevCommand();\n\n case NextCommand.COMMAND_WORD:\n case NextCommand.SHORT_COMMAND_WORD:\n return new NextCommand();\n\n case ViewCommand.COMMAND_WORD:\n case ViewCommand.SHORT_COMMAND_WORD:\n return new ViewCommandParser().parse(arguments);\n\n default:\n return new IncorrectCommand(MESSAGE_UNKNOWN_COMMAND);\n }\n }", "title": "" }, { "docid": "ec364f313e16b56ac9662c19469eb45c", "score": "0.54045826", "text": "@Override\n\tpublic void execute() {\n\t\tfor (int i = 0; i < commands.size(); i++){\n\t\t\tCommand c = (Command) commands.get(i);\n\t\t\tc.execute();\n\t\t}\n\t}", "title": "" }, { "docid": "c60b83c2d25c260b2edb78daad18c443", "score": "0.5396146", "text": "public void registerCmds() {\n this.getCommand(\"hobble\").setExecutor(new hobbler(this));\n }", "title": "" }, { "docid": "e5b628243b26b64ee309c4284fdc0f9f", "score": "0.5389229", "text": "public interface CmdSupplier\n{\n\n\n\tCmdCommand[] supplyCmd();\n}", "title": "" }, { "docid": "b46b8af93c1688ec412a90d87d35b28c", "score": "0.5388807", "text": "@Override\n\tpublic void addChild(Command node) {}", "title": "" }, { "docid": "943cb67445d523648988ccd01f5a0b42", "score": "0.5381864", "text": "@Override\n public Mono<?> process(CommandContext ctx) {\n final String cmd = ctx.getArg(COMMAND_NAME);\n return Mono.justOrEmpty(ctx.getK9().getCommands().findCommand(ctx, cmd))\n .switchIfEmpty(ctx.error(\"Invalid command: \" + cmd))\n // Check if it's a command that has data\n .ofType(CommandPersisted.class)\n .map(c -> (CommandPersisted<?>) c)\n .switchIfEmpty(ctx.error(\"Command '\" + cmd + \"' has no data\"))\n // Create a Gson for this command and serialize the data, if present\n .flatMap(c -> Mono.justOrEmpty(c.getData(ctx))\n .flatMap(d -> Mono.just(new GsonBuilder().setPrettyPrinting())\n .doOnNext(c::gatherParsers)\n .map(GsonBuilder::create)\n .map(g -> g.toJson(d))))\n .switchIfEmpty(ctx.error(\"No data found for command '\" + cmd + \"' in this guild\"))\n // Create a message with the input attached as a file\n .map(s -> new BakedMessage()\n .withFile(new ByteArrayInputStream(s.getBytes(StandardCharsets.UTF_8)))\n .withFileName(ctx.getArg(COMMAND_NAME) + \"-\"\n + ctx.getGuildId().map(Snowflake::asString).orElse(\"DM\") + \"-\"\n + LocalDateTime.now().format(TIME_FORMAT) + \".json\"))\n // DM to the command author\n .flatMap(m -> ctx.getMember()\n .flatMap(u -> u.getPrivateChannel())\n .flatMap(m::send)\n // Delete the command if all succeeded\n .flatMap(msg -> ctx.getMessage().delete().thenReturn(msg)))\n .switchIfEmpty(ctx.error(\"Could not create private channel\"));\n }", "title": "" }, { "docid": "996a6af36a31ae1e2ae64d9420d0ff36", "score": "0.5380979", "text": "private Dice processCommand(String command) {\n return new Dice();\n }", "title": "" }, { "docid": "0729237e73df3e6538af2ce9e8ac76b6", "score": "0.53809357", "text": "private void constructCommand(String s){\n\t\tCommand cmd = CommandFactory.getAdvanced(s);\n\t\tthis.issueCommand(cmd);\n\t}", "title": "" }, { "docid": "e20c11a3505ace279a62d08affed4dac", "score": "0.5380739", "text": "public abstract double executeCommand();", "title": "" }, { "docid": "69fc16248a1cfe1da38453eae9b33fe8", "score": "0.5379891", "text": "protected Command() { }", "title": "" }, { "docid": "cfed4033e93440e16f0ed14b8d28ab0f", "score": "0.53756386", "text": "@Override\n protected void initializeCommands() {\n /* For this CLI there is not any command. */\n }", "title": "" }, { "docid": "c92ebeabb6d45d3a9d3e2ed4b0fa0003", "score": "0.5374135", "text": "public interface CommandClass\n{\n}", "title": "" }, { "docid": "9b5b0b2456cf2c739fb94aeb3f152892", "score": "0.5372439", "text": "void execute(Runnable command);", "title": "" }, { "docid": "263a71dde81964478d8ef0e692a89124", "score": "0.53694177", "text": "public interface Cmd {\n\n public void exec();\n\n}", "title": "" } ]
03a5ec72a07613f73b9f6fb406ac8bae
When mouse released replace/update the image ..
[ { "docid": "647d0c699b4079fe40f6e52d973e773b", "score": "0.77180266", "text": "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tif(tempImage != null) {\r\n\t\t\t\t_image = tempImage.clone();\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}", "title": "" } ]
[ { "docid": "4c9883b16ba3e83ca5c6cab4f24f6c01", "score": "0.7050376", "text": "public void imageDown()\n {\n\n changeImage(textureRegionMainClicked);\n }", "title": "" }, { "docid": "875d1bc368d52528ce90ee9eacb215a5", "score": "0.70457137", "text": "public void mouseReleased();", "title": "" }, { "docid": "6458e8f6983ebb316828c8015740672b", "score": "0.7021137", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n ((Shap) e.getComponent()).setXx(e.getComponent().getX() + e.getX() - mx);\n ((Shap) e.getComponent()).setYy(e.getComponent().getY() + e.getY() - my);\n //oo = \"released\";\n e.getComponent().repaint();\n }", "title": "" }, { "docid": "ea9eaebecdd02c9f6d84978134476eff", "score": "0.68907636", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t \n\t compteur++; //Il y a une image de plus dans le vecteur!\n\t lesImages.setSize(compteur); //Le size de vecteur d'image est toujours égal à la dernière image.\n\t lesImages.add(recupererImage(sd));//Ajouter la dernière image dans le vecteur.\n\t pFin = new Point(e.getX(), e.getY());\n\n\t if (mode ==\"Pipette\") //Si c'est on est sur le mode pipette, retourner en mode crayon à la fin.\n\t {\n\t\t\t\t toggleCrayon.setSelected(true);\n\t\t\t\t mode = \"TraceLibre\";\n\t\t\t\t\t\tleCurseur = toolkit.createCustomCursor(toolkit.getImage(\"icones/crayon.gif\") , new Point(5, 25), \"img\");\n\t\t\t\t\t\tCanevasDessin.setCursor(leCurseur);\n\t }\n\t\t\t}", "title": "" }, { "docid": "69626dcf8ea56b1f18986558469d1237", "score": "0.68790436", "text": "public void mouseReleaseAction(MouseEvent mevt, main_canvas theCanvas) {\n\n // ming 4.12\n //theCanvas.setBufferedImage(backupImage);\n // ming 4.12 end\n int endX = (int) (mevt.getX());\n int endY = (int) (mevt.getY());\n if (endX != x && endY != y) {\n dragged = true;\n }\n if (!dragged) {\n double currentZoom = theCanvas.getZoom();\n if (SwingUtilities.isLeftMouseButton(mevt)) {\n if (currentZoom < 8.0) {\n theCanvas.setZoom(currentZoom * 2.0);\n theCanvas.setOldZoom(currentZoom);\n }\n } else {\n if (currentZoom > 1.0) {\n theCanvas.setZoom(currentZoom * 0.5);\n theCanvas.setOldZoom(currentZoom);\n }\n }\n theZoom = theCanvas.getZoom();\n //Istvan phase 5\n //Point focus=new Point((int)(x),(int)(y));\n Point focus = new Point((int) (x * theZoom), (int) (y * theZoom));\n theCanvas.pictureScrollPane.getViewport().setExtentSize(new Dimension(theCanvas.getBufferedImage().getWidth(), theCanvas.getBufferedImage().getHeight()));\n theCanvas.pictureScrollPane.getViewport().setViewSize(new Dimension((int) theZoom, (int) theZoom));\n //theCanvas.repaint();\n //theCanvas.pictureScrollPane.getViewport().setViewPosition(theCanvas.pictureScrollPane.getViewport().toViewCoordinates(new Point(0,0)));\n theCanvas.pictureScrollPane.getViewport().setViewPosition(theCanvas.pictureScrollPane.getViewport().toViewCoordinates(focus));\n\n System.out.println(x + \" \" + y + \" is \" + theCanvas.pictureScrollPane.getViewport().toViewCoordinates(focus));\n\n //End Istvan phase 5\n // ming 4.12\n //if ((SwingUtilities.isLeftMouseButton(mevt) || theCanvas.zoomFactor>=1) && theCanvas.main_image.getWidth()*theCanvas.zoomFactor*theCanvas.main_image.getHeight()*theCanvas.zoomFactor<12000000)\n // ming 4.12 end\n theCanvas.repaint();\n } else {//dragged\n\n theZoom = theCanvas.getZoom();\n int centerX = (x + endX) / 2;\n int centerY = (y + endY) / 2;\n double zoomFactorX = (endX - x);\n if (zoomFactorX < 0) {\n zoomFactorX = (x - endX);\n }\n double zoomFactorY = (endY - y);\n if (zoomFactorY < 0) {\n zoomFactorY = (y - endY);\n }\n double width = theCanvas.pictureScrollPane.getViewport().getExtentSize().getWidth();\n double height = theCanvas.pictureScrollPane.getViewport().getExtentSize().getHeight();\n //System.out.println(width+\" \"+height);\n double zoomFactor = width / zoomFactorX;\n double check = height / zoomFactorY;\n if (check < zoomFactor)//zoomFactor should acoomodate the largest dimension of the box selected\n {\n zoomFactor = check;\n }\n double currentZoom = theCanvas.getZoom();\n zoomFactor = (int) zoomFactor;\n theCanvas.setZoom(zoomFactor);\n System.out.println(\"zoomFactor to: \" + zoomFactor);\n theCanvas.setOldZoom(currentZoom);\n theZoom = theCanvas.getZoom();\n int myX = x;\n if (endX < x) {\n myX = endX;\n }\n int myY = y;\n if (endY < y) {\n myY = endY;\n //double xFact=(double)myX/(double)theCanvas.getBufferedImage().getWidth();\n //double yFact=(double)myY/(double)theCanvas.getBufferedImage().getHeight();\n //myX=(int)(xFact*theCanvas.pictureScrollPane.getViewport().getExtentSize().getWidth());\n //myY=(int)(yFact*theCanvas.pictureScrollPane.getViewport().getExtentSize().getHeight());\n\n //System.out.println(x+\" \"+y+\" \"+endX+\" \"+endY+\" \"+myX+\" \"+myY+\" \"+(int)(myX*theZoom)+\" \"+(int)(myY*theZoom));\n }\n Point focus = new Point((int) (myX * theZoom), (int) (myY * theZoom));\n theCanvas.pictureScrollPane.getViewport().setExtentSize(new Dimension(theCanvas.getBufferedImage().getWidth(), theCanvas.getBufferedImage().getHeight()));\n theCanvas.pictureScrollPane.getViewport().setViewSize(new Dimension((int) zoomFactorX, (int) zoomFactorY));\n //theCanvas.repaint();\n //theCanvas.pictureScrollPane.getViewport().setViewPosition(theCanvas.pictureScrollPane.getViewport().toViewCoordinates(new Point(0,0)));\n theCanvas.pictureScrollPane.getViewport().setViewPosition(theCanvas.pictureScrollPane.getViewport().toViewCoordinates(focus));\n\n //theCanvas.pictureScrollPane.getViewport().setViewPosition(focus);\n System.out.println(theCanvas.pictureScrollPane.getViewport().getViewPosition().getX() + \" \" + theCanvas.pictureScrollPane.getViewport().getViewPosition().getY());\n // ming 4.12\n if (SwingUtilities.isLeftMouseButton(mevt) || theCanvas.zoomFactor >= 1) {//Istvan phase 5 I bumped down the number for cutting off zoom\n\n if (theCanvas.main_image.getWidth() * theCanvas.zoomFactor * theCanvas.main_image.getHeight() * theCanvas.zoomFactor < 10000000) // ming 4.12 end\n {\n theCanvas.repaint();\n } else {\n theCanvas.zoomFactor = theCanvas.oldZoomFactor;\n }\n }\n }\n\n }", "title": "" }, { "docid": "61d06faf7a80be6bf6b21f4654e6dfdf", "score": "0.6836731", "text": "public void ChangeMouseImage(GreenfootImage image, int xClick, int yClick)//used to change mouse image\n {\n JPanel Panel = WorldHandler.getInstance().getWorldCanvas();\n Cursor Cursor;\n Toolkit Tk = Toolkit.getDefaultToolkit();\n Point CursorPoint= new Point(xClick,yClick);\n Cursor = Tk.createCustomCursor(image.getAwtImage(),CursorPoint,\"Crosshair\");\n NewCursor = Cursor;\n Panel.setCursor(Cursor);\n }", "title": "" }, { "docid": "099e6d562e27285eb7042a63bb02580a", "score": "0.68079305", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent event) {\t\t\r\n\t}", "title": "" }, { "docid": "b0825ab7ab9f5a7b06910d60e3ad5a11", "score": "0.67563283", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n \n\n \n if(_activeBand != null) {\n \n //reset the active band - no selection\n _activeBand = null; \n \n //set the current display color to the dynamic color\n _currentColor = _dynamicColor;\n this.repaint();\n }\n \n if(_activeSlider != null) {\n \n _activeSlider = null;\n _currentColor = _dynamicColor;\n this.repaint();\n \n }\n \n\n }", "title": "" }, { "docid": "1cd8b2eca2d699d3f388ceae2566f0e4", "score": "0.67530936", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\r\n\t\tPoint br = new Point(bottom,right);\r\n\t\tPoint tl = new Point(top, left);\r\n\t\t_model.getFractalClass().setZoomBR(br);\r\n\t\t_model.getFractalClass().setZoomTL(tl);\r\n\t\t_model.getFractalClass().coordinateToZoom();\r\n\t\ttop = 0;\r\n\t\tbottom = 0;\r\n\t\tleft = 0;\r\n\t\tright = 0;\r\n\t\t_draw.repaint();\r\n\t\tSystem.out.println(\"updating\");\r\n\t\tupdate();\r\n\t}", "title": "" }, { "docid": "05720014fc3223a95de73583b7c8282e", "score": "0.6743614", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "2a0410c25915f05a6a2f80f036c9642f", "score": "0.6720267", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tAnimation.FadeOut(pressedBG, 100);\r\n\t}", "title": "" }, { "docid": "0d1891126e242b21e9bfde17fb06026b", "score": "0.6714487", "text": "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tmainFrame.renewPanel();\r\n\t\t\t}", "title": "" }, { "docid": "0d1891126e242b21e9bfde17fb06026b", "score": "0.6714487", "text": "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tmainFrame.renewPanel();\r\n\t\t\t}", "title": "" }, { "docid": "77fb94022f7b47dbe7e12353cfe451d9", "score": "0.67119503", "text": "public void mouseDragged(MouseEvent e)\n {\n try { Thread.sleep(20); } catch (Exception ex) {}\n \t\n currentPosition = e.getPoint();\n\n\t\t\tif ( (e.getModifiersEx() & InputEvent.SHIFT_DOWN_MASK) == InputEvent.SHIFT_DOWN_MASK ) \n\t\t\t{\n\t int x0 = Math.max(0, Math.min(startPosition.x, currentPosition.x));\n\t int y0 = Math.max(0, Math.min(startPosition.y, currentPosition.y));\n\t int x1 = Math.min(imageSize.width, Math.max(startPosition.x, currentPosition.x));\n\t int y1 = Math.min(imageSize.height, Math.max(startPosition.y, currentPosition.y));\n\t\t\t\t\n\t int w = x1 - x0;\n\t int h = y1 - y0;\n\t \n\t selectedArea.setBounds(x0, y0, w, h);\n\t double ratio = 1.0/zoomFactor;\n\n\t originalSelectedArea.setBounds(\n\t (int)(x0*ratio),\n\t (int)(y0*ratio),\n\t (int)(w*ratio),\n\t (int)(h*ratio));\n\n\t repaint();\n\t\t\t} else \n\t\t\t{\n\t \t\tif (hbar.isVisible()) {\n\t\t\t\t\tint dx = startPosition.x-currentPosition.x;\n\t \t\t\thbar.setValue(hbar.getValue()+dx);\n\t \t\t}\n\n\t \t\tif (vbar.isVisible()) {\n\t \t\t\tint dy = startPosition.y-currentPosition.y;\n\t \t\t\tvbar.setValue(vbar.getValue()+dy);\n\t \t\t}\n\t\t\t}\n }", "title": "" }, { "docid": "c6f54037cd57b30ff97b10884713d59d", "score": "0.6704598", "text": "@Override\n\t\t\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "c6f54037cd57b30ff97b10884713d59d", "score": "0.6704598", "text": "@Override\n\t\t\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "baf9d7be9c1b3eb15ba561724534efde", "score": "0.6696509", "text": "@Override\n \tpublic void mouseReleased(MouseEvent arg0) {\n \n \t}", "title": "" }, { "docid": "d746bf338753c73fd0822976e995586a", "score": "0.669339", "text": "@Override\r\n public void mouseReleased(MouseEvent e) {\n \r\n }", "title": "" }, { "docid": "3f773f4690817fcf99b8f3be5c19ae83", "score": "0.6687033", "text": "@Override\r\n public void mouseReleased(MouseEvent e)\r\n {\n\r\n }", "title": "" }, { "docid": "e4179e80ded4db5acba8e1649b7d43a7", "score": "0.6675948", "text": "@Override\n\tpublic void mouseReleased(MouseEvent event) {\n\n\t}", "title": "" }, { "docid": "958d08b7ad31da52b00c2f31f39e4697", "score": "0.6657315", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "958d08b7ad31da52b00c2f31f39e4697", "score": "0.6657315", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "958d08b7ad31da52b00c2f31f39e4697", "score": "0.6657315", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "958d08b7ad31da52b00c2f31f39e4697", "score": "0.6657315", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "958d08b7ad31da52b00c2f31f39e4697", "score": "0.6657315", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "958d08b7ad31da52b00c2f31f39e4697", "score": "0.6657315", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "958d08b7ad31da52b00c2f31f39e4697", "score": "0.6657315", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "958d08b7ad31da52b00c2f31f39e4697", "score": "0.6657315", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "958d08b7ad31da52b00c2f31f39e4697", "score": "0.6657315", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "958d08b7ad31da52b00c2f31f39e4697", "score": "0.6657315", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "958d08b7ad31da52b00c2f31f39e4697", "score": "0.6657315", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "958d08b7ad31da52b00c2f31f39e4697", "score": "0.6657315", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "4e13d7b33343948562a85b542fdbd329", "score": "0.6656774", "text": "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t}", "title": "" }, { "docid": "2e38d32c6b7b5e4b666ddeee2ca40030", "score": "0.665179", "text": "public void mouseReleased(int x_canvas, int y_canvas);", "title": "" }, { "docid": "c9e1d41c9b0e68963ba54a79931a35e3", "score": "0.66365933", "text": "public void mouseMoved(MouseEvent e) {\n int x = (int) (e.getX() * (float) baseImage.getWidth() / (float) e.getComponent().getWidth());\n int y = (int) (e.getY() * (float) baseImage.getHeight() / (float) e.getComponent().getHeight());\n // Paint cursor on texture around this point\n int minx = Math.max(0, x - CURSOR_SIZE);\n int maxx = Math.min(baseImage.getWidth(), x + CURSOR_SIZE);\n int miny = Math.max(0, y - CURSOR_SIZE);\n int maxy = Math.min(baseImage.getHeight(), y + CURSOR_SIZE);\n curRect = new Rectangle(minx, miny, maxx - minx, maxy - miny);\n mainCanvas.repaint();\n }", "title": "" }, { "docid": "31f89bb3fdcf0a379ab5ca317487a6b1", "score": "0.6635784", "text": "@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "31f89bb3fdcf0a379ab5ca317487a6b1", "score": "0.6635784", "text": "@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "31f89bb3fdcf0a379ab5ca317487a6b1", "score": "0.6635784", "text": "@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "9a766fdb14dcb09dba31c4e2cf9a96fc", "score": "0.6634854", "text": "@Override\r\n public void mouseReleased(MouseEvent event) {\n\r\n }", "title": "" }, { "docid": "f82a143cf21b8437a5d5eeb851429dbb", "score": "0.6631455", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "title": "" }, { "docid": "85a3833b9820855fe41fe00cd38ec1d4", "score": "0.66293126", "text": "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "title": "" }, { "docid": "85a3833b9820855fe41fe00cd38ec1d4", "score": "0.66293126", "text": "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "title": "" }, { "docid": "020055cd5c39be73269f86856f2d3903", "score": "0.6627497", "text": "@Override\n\tpublic void mouseReleased(MouseEvent event) {\n\t}", "title": "" }, { "docid": "7fe7a8057a092464443f89577f3c481d", "score": "0.6625683", "text": "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "7fe7a8057a092464443f89577f3c481d", "score": "0.6625683", "text": "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "7fe7a8057a092464443f89577f3c481d", "score": "0.6625683", "text": "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "7fe7a8057a092464443f89577f3c481d", "score": "0.6625683", "text": "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a573dcea7436f5cbcbcf4dc59b3ad2a7", "score": "0.66227925", "text": "@Override\r\n public void mouseReleased(MouseEvent e) {\n \r\n }", "title": "" }, { "docid": "bae34c4ad5605847127d9279e6b59647", "score": "0.6620035", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tx2 = e.getX();\r\n\t\ty2 = e.getY();\r\n\t\tif(Curve.curvePullTime == 0)//in order to control curve\r\n\t\t\tCurve.step=1;\r\n\t\telse if(Curve.curvePullTime == 1)\r\n\t\t\tCurve.step=2;\r\n\t\t\r\n\t\tif(ToolMgr.toolSelecting != \"Curve\"|| (Curve.curvePullTime == 2 && Curve.step == 2)){\r\n\t\t\tif(x1<0 || y1<0) return;\r\n\t\t\tif(ctrlPressing == true){\r\n\t\t\t\tctrlPressingDrawing();\r\n\t\t\t}\r\n\t\t\telse if(ctrlPressing == false){\r\n\t\t\t\tMain.toolMgr.render(x1,y1,x2,y2);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tGraphics2D latestImg2D = (Graphics2D) latestImg.getGraphics();\r\n\t\t\t//if(cut!=2){\r\n\t\t\tif(ToolMgr.toolSelecting != \"Eraser\"){\r\n\t\t\t\tif(ToolMgr.toolSelecting == \"FilledSquare\"|| ToolMgr.toolSelecting == \"FilledCircle\"){\r\n\t\t\t\t\tlatestImg2D.setPaint(Main.colorMgr.getNotDrawingColor());\r\n\t\t\t\t\tlatestImg2D.fill(Main.toolMgr.getShape());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlatestImg2D.setPaint(Main.colorMgr.getDrawingColor());\r\n\t\t\t\tlatestImg2D.setStroke(Main.brushMgr.getStroke());\r\n\t\t\t\tlatestImg2D.draw(Main.toolMgr.getShape());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trepaint();\r\n\t\t\tclear();\r\n\r\n\t\t\tredoLimit=count++;\r\n\t\t\tToolMgr.toolregister.redo.setEnabled(false);\r\n\r\n\t\t\timgRecord[count] = new BufferedImage(boardInitSX, boardInitSX, BufferedImage.TYPE_3BYTE_BGR);\r\n\t\t\tGraphics2D imgRecord2D = (Graphics2D) imgRecord[count].getGraphics();\r\n\t\t\timgRecord2D.drawImage(latestImg,0,0,this);\r\n\r\n\t\t\tmousePressing=false;\r\n\t\t\tif(count>0)\r\n\t\t\t\tToolMgr.toolregister.undo.setEnabled(true);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a5151477dac9c24ff5a4bfd729735258", "score": "0.6620001", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a5151477dac9c24ff5a4bfd729735258", "score": "0.6620001", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a5151477dac9c24ff5a4bfd729735258", "score": "0.6620001", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a5151477dac9c24ff5a4bfd729735258", "score": "0.6620001", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a5151477dac9c24ff5a4bfd729735258", "score": "0.6620001", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "53419c0720196f52b234656c7df33d8d", "score": "0.6618743", "text": "@Override\n\tprotected void mouseReleased(int button) {\n\t\t\n\t}", "title": "" }, { "docid": "db723b82d16a95e2e2ece290bb6b87f1", "score": "0.6606577", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "title": "" }, { "docid": "db723b82d16a95e2e2ece290bb6b87f1", "score": "0.6606577", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "title": "" }, { "docid": "db723b82d16a95e2e2ece290bb6b87f1", "score": "0.6606577", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "title": "" }, { "docid": "ba962277ee9b01fc625744b50af97f4e", "score": "0.66061133", "text": "public void mouseReleased(MouseEvent event);", "title": "" }, { "docid": "71ad02d95720d1e1483a5fb3fe600ea7", "score": "0.6594227", "text": "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5288daccd0a0d0fee94b52a88522a22e", "score": "0.6579444", "text": "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "d7dcd7dc0c4ed5ff3a6b445b5b20fa02", "score": "0.6579319", "text": "@Override\r\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "d7dcd7dc0c4ed5ff3a6b445b5b20fa02", "score": "0.6579319", "text": "@Override\r\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "d7dcd7dc0c4ed5ff3a6b445b5b20fa02", "score": "0.6579319", "text": "@Override\r\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "c0056656a3b7d12ce566aad2599e120e", "score": "0.65752614", "text": "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c0056656a3b7d12ce566aad2599e120e", "score": "0.65752614", "text": "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c0056656a3b7d12ce566aad2599e120e", "score": "0.65752614", "text": "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c0056656a3b7d12ce566aad2599e120e", "score": "0.65752614", "text": "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c0056656a3b7d12ce566aad2599e120e", "score": "0.65752614", "text": "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c0056656a3b7d12ce566aad2599e120e", "score": "0.65752614", "text": "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c0056656a3b7d12ce566aad2599e120e", "score": "0.65752614", "text": "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c0056656a3b7d12ce566aad2599e120e", "score": "0.65752614", "text": "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c0056656a3b7d12ce566aad2599e120e", "score": "0.65752614", "text": "@Override\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c6f51a86333fe869dc9cbc3e063b1268", "score": "0.6572813", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "title": "" }, { "docid": "c6f51a86333fe869dc9cbc3e063b1268", "score": "0.6572813", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "title": "" }, { "docid": "c6f51a86333fe869dc9cbc3e063b1268", "score": "0.6572813", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "title": "" }, { "docid": "c6f51a86333fe869dc9cbc3e063b1268", "score": "0.6572813", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "title": "" }, { "docid": "c6f51a86333fe869dc9cbc3e063b1268", "score": "0.6572813", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "title": "" }, { "docid": "11ea3208f364bce5584a0eb898fd3073", "score": "0.657108", "text": "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t}", "title": "" }, { "docid": "11ea3208f364bce5584a0eb898fd3073", "score": "0.657108", "text": "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t}", "title": "" }, { "docid": "11ea3208f364bce5584a0eb898fd3073", "score": "0.657108", "text": "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t}", "title": "" }, { "docid": "11ea3208f364bce5584a0eb898fd3073", "score": "0.657108", "text": "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t}", "title": "" }, { "docid": "f8b71ba7658a2dafdee58ce6649fab10", "score": "0.65694547", "text": "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tsuper.mouseReleased(e);\n\n\t\t\t\tjf.dispose();\n\n\t\t\t}", "title": "" }, { "docid": "fc376108bc33c892f874353e661fbc4e", "score": "0.65691334", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n }", "title": "" }, { "docid": "fc376108bc33c892f874353e661fbc4e", "score": "0.65691334", "text": "@Override\n public void mouseReleased(MouseEvent e) {\n }", "title": "" } ]
4caa1471c08cca5d1d387f833dd75244
OnSessionExpired handler, a handler that is called when ZooKeeper connection is lost
[ { "docid": "9ed69efcb7c402c218457d590bd09ba1", "score": "0.59946525", "text": "public interface OnSessionExpired extends Runnable {\n }", "title": "" } ]
[ { "docid": "3cbe7a41d4c98bc58d0093ee1e8f1042", "score": "0.6375864", "text": "public void onSessionDestroyed() {\n }", "title": "" }, { "docid": "8f9423c61af3584d8613a56ae9f87156", "score": "0.63117707", "text": "@Override\n public void sessionDestroyed(HttpSessionEvent se)\n {\n }", "title": "" }, { "docid": "5a7607185fbd159602dd50cbeefb9c7b", "score": "0.6223734", "text": "@Override\n\tpublic void sessionDestroyed(HttpSessionEvent arg0) {\n\t}", "title": "" }, { "docid": "d21fcbea80e058bdcb3dbaace66e68e7", "score": "0.62046677", "text": "@Override\n\tpublic void sessionDestroyed(HttpSessionEvent se) {\n\t\t\n\t}", "title": "" }, { "docid": "480b7f0d888a1158ea65e02d8b30c3fe", "score": "0.6118429", "text": "public void sessionDestroyed(HttpSessionEvent se) {\n }", "title": "" }, { "docid": "480b7f0d888a1158ea65e02d8b30c3fe", "score": "0.6118429", "text": "public void sessionDestroyed(HttpSessionEvent se) {\n }", "title": "" }, { "docid": "05a603883a3d2ae6a345da63f0822637", "score": "0.6076269", "text": "@Override\n\tpublic void sessionDestroyed(HttpSessionEvent arg0) {\n\t\tsessionCount--;\n\t\tSystem.out.println(\"Seession is destroyed sessionCount :\" + sessionCount);\n\t}", "title": "" }, { "docid": "cb3d085b649d07909f80adfb44ee67cf", "score": "0.59927493", "text": "@Override\n\tpublic void sessionDestroyed(HttpSessionEvent arg0) {\n\t\tcount--;\n\t}", "title": "" }, { "docid": "8d3aa362527bb53d4c23c0da90b85c98", "score": "0.5969045", "text": "@Override\n public void sessionCreated(HttpSessionEvent e) {\n log.info(\"Session created: \" + e.getSession().getId() + \", timeout \"\n + e.getSession().getMaxInactiveInterval());\n }", "title": "" }, { "docid": "9e171e84b520481c32e4eb0550bb23f0", "score": "0.5881441", "text": "@java.lang.SuppressWarnings(\"squid:S1186\")\n @Override\n public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {\n }", "title": "" }, { "docid": "cd2f733f7b2d7b0eb8791b6f402a1ec8", "score": "0.58509684", "text": "public void viewExpiredListener() {\n\t\tSystem.out.println(\"session expired \" + this.beanSettingsContainer.getRootSessionFolder());\n\t\tFacesContext fc = FacesContext.getCurrentInstance();\n java.util.Map<String, Object> requestMap = fc.getExternalContext().getRequestMap();\n javax.faces.application.NavigationHandler nav =\n fc.getApplication().getNavigationHandler();\n // Push some useful stuff to the request scope for\n // use in the page\n requestMap.put(\"currentViewId\", FacesContext.getCurrentInstance().getViewRoot().getViewId());\n\n nav.handleNavigation(fc, null, \"viewExpired\");\n fc.renderResponse();\n \n PrimeFaces.current().executeScript(\"PF('expiredSessionDialog').show();\");\n\n java.io.File sessionFolder = new java.io.File(this.beanSettingsContainer.getRootSessionFolder());\n if(sessionFolder.exists())\n\t\t\ttry {\n\t\t\t\tFileUtils.deleteDirectory(sessionFolder);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Could not delete session folder.\");\n\t\t\t}\n \n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n HttpSession session = request.getSession(false);\n session.invalidate();\n\t}", "title": "" }, { "docid": "04be94a0cad3d72eb7a572544b960732", "score": "0.5808312", "text": "void sessionResumed();", "title": "" }, { "docid": "39b7142379d64b8bbd6150060c1dc1f2", "score": "0.5759255", "text": "@Override\r\n\tpublic void sessionDestroyed(HttpSessionEvent arg0) {\n\t\t\r\n\t\t\r\n\t\tHttpSession session=arg0.getSession();\r\n\t\tString id=session.getId();\r\n\t\tHashMap<String, HttpSession> map= (HashMap<String, HttpSession>) session.getServletContext().getAttribute(\"usuarioMap\");\r\n\t\tmap.remove(id);\r\n\t\t\r\n\t\t//Cuando llaman a invalidate desde listener\r\n\t\t//System.out.println(\"Session Destruido\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5c20d26fe234e691f1b96e235a7b5abb", "score": "0.5731839", "text": "@Override\n\tpublic void sessionDestroyed(HttpSessionEvent arg0) {\n\t\tSystem.out.println(\"退了!\");\n\t\targ0.getSession().getServletContext().setAttribute(\"logCount\", --logCount);\n\t}", "title": "" }, { "docid": "72b375babfa4d5419e79a332eb7cd800", "score": "0.57204336", "text": "@Override\r\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "d62eee19d15e4faeab7d897d8f6a8ed4", "score": "0.57049084", "text": "public void anonymousSessionDestroyed(Session session)\n {\n }", "title": "" }, { "docid": "d79ad9952a3d3fe4a51b568237b0a562", "score": "0.5700436", "text": "@Override\n public void onNativeExpired() {\n }", "title": "" }, { "docid": "218595b3bc77acd27298d40e400029f9", "score": "0.5671791", "text": "public static void expireSession(ZooKeeperClient zkc, String zkServers, int timeout)\n throws Exception {\n final CountDownLatch expireLatch = new CountDownLatch(1);\n final CountDownLatch latch = new CountDownLatch(1);\n ZooKeeper oldZk = zkc.get();\n oldZk.exists(\"/\", new Watcher() {\n @Override\n public void process(WatchedEvent event) {\n logger.debug(\"Receive event : {}\", event);\n if (event.getType() == Event.EventType.None\n && event.getState() == Event.KeeperState.Expired) {\n expireLatch.countDown();\n }\n }\n });\n ZooKeeper newZk = new ZooKeeper(zkServers, timeout, new Watcher() {\n @Override\n public void process(WatchedEvent event) {\n if (Event.EventType.None == event.getType()\n && Event.KeeperState.SyncConnected == event.getState()) {\n latch.countDown();\n }\n }\n }, oldZk.getSessionId(), oldZk.getSessionPasswd());\n if (!latch.await(timeout, TimeUnit.MILLISECONDS)) {\n throw KeeperException.create(KeeperException.Code.CONNECTIONLOSS);\n }\n newZk.close();\n\n boolean done = false;\n Stopwatch expireWait = Stopwatch.createStarted();\n while (!done && expireWait.elapsed(TimeUnit.MILLISECONDS) < timeout * 2) {\n try {\n zkc.get().exists(\"/\", false);\n done = true;\n } catch (KeeperException ke) {\n done = (ke.code() == KeeperException.Code.SESSIONEXPIRED);\n }\n }\n\n assertTrue(\"Client should receive session expired event.\",\n expireLatch.await(timeout, TimeUnit.MILLISECONDS));\n }", "title": "" }, { "docid": "b917a9ba57388b304c88a3cbd6586fdf", "score": "0.5636971", "text": "public void handleLostClient(Session session)\n {\n aggregator.triggerEvent(new NetworkClientDisconnectedEvent(session));\n }", "title": "" }, { "docid": "aa7a3d8b4cc6237287b8c19f174aba85", "score": "0.5631168", "text": "public void sessionDestroyed(HttpSessionEvent se) {\n count--;\n if (count<0) count=0;\n System.out.println(\"-1---->总:\"+count);\n }", "title": "" }, { "docid": "324701955ee2aad3241482f47e76291c", "score": "0.56213194", "text": "@Override\n protected Response restartAuthenticationSessionFromCookie(RootAuthenticationSessionModel existingRootSession) {\n getEvent().error(Errors.SESSION_EXPIRED);\n return ErrorPage.error(getSession(), null, Response.Status.BAD_REQUEST, Messages.FAILED_LOGOUT);\n }", "title": "" }, { "docid": "102081fda7034ee78654f345e556d4bf", "score": "0.5619564", "text": "@Override\n public void handleInactivity() {\n }", "title": "" }, { "docid": "0f52312da5ac95aad8359a187cde551b", "score": "0.5583793", "text": "@Override\n\t\t\tpublic void process(WatchedEvent event) {\n\t\t\t\tKeeperState state = event.getState();\n\t\t\t\tif(state == KeeperState.Expired || state == KeeperState.Disconnected){\n\t\t\t\t\treConTime++;\n\t\t\t\t\tif(reConTime<=TOLLERENT_RECONNECT_TIME){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconnect();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "1d62e178ac060d227c23a475259b6909", "score": "0.55625135", "text": "@Override\n public void entryExpired(EntryEvent event) {\n }", "title": "" }, { "docid": "7bc30638e3007a44dccf07d6a5991979", "score": "0.55622923", "text": "@Test\n\tpublic void expiredSessionIsRecreated() throws Exception {\n\t\tRequestEntity<Void> request = RequestEntity.get(createUri()).build();\n\t\tResponseEntity<Void> response = this.restTemplate.exchange(request, Void.class);\n\n\t\tassertEquals(HttpStatus.OK, response.getStatusCode());\n\t\tString id = extractSessionId(response.getHeaders());\n\t\tassertNotNull(id);\n\t\tassertEquals(1, this.handler.getSessionRequestCount());\n\n\t\t// Second request: same session\n\t\trequest = RequestEntity.get(createUri()).header(\"Cookie\", \"SESSION=\" + id).build();\n\t\tresponse = this.restTemplate.exchange(request, Void.class);\n\n\t\tassertEquals(HttpStatus.OK, response.getStatusCode());\n\t\tassertNull(response.getHeaders().get(\"Set-Cookie\"));\n\t\tassertEquals(2, this.handler.getSessionRequestCount());\n\n\t\t// Now fast-forward by 31 minutes\n\t\tInMemoryWebSessionStore store = (InMemoryWebSessionStore) this.sessionManager.getSessionStore();\n\t\tWebSession session = store.retrieveSession(id).block();\n\t\tassertNotNull(session);\n\t\tstore.setClock(Clock.offset(store.getClock(), Duration.ofMinutes(31)));\n\n\t\t// Third request: expired session, new session created\n\t\trequest = RequestEntity.get(createUri()).header(\"Cookie\", \"SESSION=\" + id).build();\n\t\tresponse = this.restTemplate.exchange(request, Void.class);\n\n\t\tassertEquals(HttpStatus.OK, response.getStatusCode());\n\t\tid = extractSessionId(response.getHeaders());\n\t\tassertNotNull(\"Expected new session id\", id);\n\t\tassertEquals(1, this.handler.getSessionRequestCount());\n\t}", "title": "" }, { "docid": "367a1b5d48524019dfd42e46d434bdd5", "score": "0.5530534", "text": "@Override\r\n\tpublic void sessionDestroyed(IoSession arg0) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "9ab5d7c04a12f2645bd12d80055d4b25", "score": "0.5530435", "text": "@Override\r\n\tprotected String getSessionExpiredUrl() {\n\t\treturn \"/WEB-INF/jsp/sessionExpired.jsp\";\r\n\t}", "title": "" }, { "docid": "43e226587b7e068f03980a106536d9ff", "score": "0.5519798", "text": "void addClientDisconnectedHandler(Consumer<String> handler);", "title": "" }, { "docid": "d5aea78c722dca4eb9cfe1dbc21ed370", "score": "0.5495039", "text": "private void connectionLost() {\n deliverEvent(new ConnectionLostTocResponse());\n logOut();\n connected=false;\n }", "title": "" }, { "docid": "1e3d2a791ce10a6c28eb5fdb4462576c", "score": "0.54933023", "text": "@Override\r\n\tpublic void sessionClosed(IoSession arg0) throws Exception {\n System.out.println(\"----------session closed---------\");\r\n\t}", "title": "" }, { "docid": "3d8977de1684ad9057459ec9876df644", "score": "0.54803425", "text": "@Override\n public void sessionClosed(IoSession session) throws Exception {\n }", "title": "" }, { "docid": "eadb2a4adcf95058980f7132a82eeda2", "score": "0.54693556", "text": "@Override\r\n\t\t\tpublic void handleNewSession() throws Exception {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "2b45748fc756f272853fc723ba908f42", "score": "0.54398113", "text": "public void sessionCreated(ChannelHandlerContext ctx, ChannelStateEvent e) {\n }", "title": "" }, { "docid": "ff5d3f94836015b97ba8291c5bc5b4a3", "score": "0.54294825", "text": "@Override\r\n\tpublic void sessionClosed(IoSession arg0) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "3c5aa25d07cbf065475a076bf3143c29", "score": "0.5413839", "text": "@Override\n public void sessionClosed(IoSession session) throws Exception {\n }", "title": "" }, { "docid": "121ff0b59c91b24ec0fa7f35108556fb", "score": "0.54036766", "text": "public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {\n sessionContext.DelSession(httpSessionEvent.getSession());\r\n }", "title": "" }, { "docid": "ab77e87fc75059e26beed3c4e285dcb6", "score": "0.5389589", "text": "public void removeExpiredSessions() {\r\n LOGGER.info(\"Cleaning up expired sessions...\");\r\n\r\n if (sessions != null) {\r\n long now = System.currentTimeMillis();\r\n sessions.keySet().forEach(key -> removeSession(key, now));\r\n }\r\n }", "title": "" }, { "docid": "cc7e1b7e4192e52795e3bc97dabf6666", "score": "0.5381209", "text": "@Override\n\tpublic void sessionClosed(IoSession session) throws Exception {\n\t\tlog.debug(\"-------------sessionClosed----------------\");\n\t}", "title": "" }, { "docid": "7a157a437a5669b50a804869fb80e89b", "score": "0.53234106", "text": "@Override\n\t\t\t\tpublic void onTokenExpired(VKAccessToken arg0) {\n\n\t\t\t\t\tVKSdk.authorize(myScope, false, false);\n\t\t\t\t\t// VKSdk.wakeUpSession();\n\t\t\t\t}", "title": "" }, { "docid": "577e5668b52547c7f75f48c85bc5bbf5", "score": "0.5315235", "text": "@Override\r\n\tpublic void sessionEnded() {\n\r\n\t}", "title": "" }, { "docid": "577e5668b52547c7f75f48c85bc5bbf5", "score": "0.5315235", "text": "@Override\r\n\tpublic void sessionEnded() {\n\r\n\t}", "title": "" }, { "docid": "d16b898d4db96ba979f6e850bac90522", "score": "0.5300611", "text": "@Override\n public void onSessionEnd(Context context, Date sessionEndDate, long sessionDurationInMinutes) {\n }", "title": "" }, { "docid": "099311c865502b6ed7fc04b75b0dab79", "score": "0.5296448", "text": "@Override\n\tpublic void sessionCreated(HttpSessionEvent se) {\n\t\t\n\t\tcurrentLoginUserIds.put(se.getSession().getId(), 0);\n\n\t}", "title": "" }, { "docid": "d7eb31399fff8db1fbab1803c689346e", "score": "0.5292791", "text": "@Override\n\tpublic Object handlerAfter(SessionManager sessionManager) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d7eb31399fff8db1fbab1803c689346e", "score": "0.5292791", "text": "@Override\n\tpublic Object handlerAfter(SessionManager sessionManager) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d7eb31399fff8db1fbab1803c689346e", "score": "0.5292791", "text": "@Override\n\tpublic Object handlerAfter(SessionManager sessionManager) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "81be89cebf65e21125923eb0e1bf76bc", "score": "0.52718514", "text": "@OnClose\n public void onClose(Session session){\n for (String userId : sessions.keySet()) {\n if (sessions.get(userId) == session) {\n sessions.remove(userId);\n break;\n }\n }\n System.out.println(\"Session \" +session.getId()+\" has ended\");\n }", "title": "" }, { "docid": "881427181dd407fd226d844aa7dd7f2e", "score": "0.5269956", "text": "public void sessionCreated(HttpSessionEvent httpSessionEvent) {\n }", "title": "" }, { "docid": "debf25155f97b80a82fa34f7c13ad044", "score": "0.5216618", "text": "@Override\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t\tsessionCount++;\n\t\tSystem.out.println(\"New Seession is created : sessionCount :\" + sessionCount);\n\n\t}", "title": "" }, { "docid": "dbfdc81c9d3a712792021216bdd02e66", "score": "0.52107817", "text": "@Override\n public void handleStateChanged(Watcher.Event.KeeperState keeperState) throws Exception {\n if (keeperState == Watcher.Event.KeeperState.Disconnected || keeperState == Watcher.Event.KeeperState.Expired) {\n log.warn(\"===>\" + keeperState);\n kafkaConsumerStateManager.clear();\n }\n\n // when reconnect to zookeeper, preemption again\n if (keeperState == Watcher.Event.KeeperState.SyncConnected) {\n log.warn(\"===>\" + keeperState);\n preemption.start();\n }\n }", "title": "" }, { "docid": "a9e6a7249695eb629d7ca0a18eaaed10", "score": "0.51978666", "text": "public ServerKeepAliveEvent(Channel session) {\n\t\tsuper(session);\n\t}", "title": "" }, { "docid": "6574ec9c253f8143ebe381d8f199b801", "score": "0.51970583", "text": "@Override\n public void handleEvent(SessionEventArgs event) {\n logger.info(\"Session Event Handler caught something: \"+event.toString());\n }", "title": "" }, { "docid": "775c432152e2108b8ebf5489ee06e66f", "score": "0.5190316", "text": "@Override\n public void sessionClosed(final IoSession session) {\n }", "title": "" }, { "docid": "ba8830d836396b3dc194f9fe7d95fa76", "score": "0.51890904", "text": "@Override\npublic void afterConnectionClosed(WebSocketSession session, CloseStatus status) throws Exception {\n \n \n\tsuper.afterConnectionClosed(session, status);\n}", "title": "" }, { "docid": "b7b5e1a80ba2786326ee89c4b0dbb0ac", "score": "0.5154735", "text": "@Override\r\n\tprotected String doIntercept(ActionInvocation invoke,\r\n\t\t\tHttpServletRequest req, HttpServletResponse resp) throws Exception {\n\t\tString token = (String) ActionContext.getContext().getSession()\r\n\t\t\t\t.get(\"TOKEN\");\r\n\t\tif (token == null) {// session expired\r\n\t\t\tActionSupport action = (ActionSupport) invoke.getAction();\r\n\t\t\taction.addActionError(action.getText(\"error.sessionexpired\"));\r\n\t\t\treturn \"GENERICERROR\";\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "192c70a459a162f72cda5b25f5ead625", "score": "0.51392376", "text": "@Override\n\tpublic void onLogout(SessionID sessionID) {\n \tSystem.out.println(\"OrderApplication.onLogout() \"+sessionID);\n \thashFixSessionSender.get(sessionID.toString()).stop();\n \thashFixSessionSender.remove(sessionID.toString());\n \t\n \t//TODO Destruir el thread\n }", "title": "" }, { "docid": "199ee7b5a424d0e665b02a993061a142", "score": "0.5128204", "text": "@Test (expected = SessionExpiredException.class)\r\n public void expiredSessionRead() {\r\n DateTime now = new DateTime();\r\n\r\n l.sessionChangeWorkingDirectory(u1Token, makeHomePath(u1));\r\n\r\n l.getSession(u1Token).setExpiryDate(now.minusHours(3));\r\n\r\n ReadFileService service = new ReadFileService(u1Token, f1Name);\r\n service.execute();\r\n }", "title": "" }, { "docid": "6a0b1ee9b79636dd1d04483fafca7be3", "score": "0.5119433", "text": "public void postReleaseClientSession(SessionEvent event);", "title": "" }, { "docid": "3833b1760d898f8a7083baa20bb3a184", "score": "0.51159817", "text": "@Override\r\n\tpublic void sessionIdle(IoSession arg0, IdleStatus arg1) throws Exception {\n\r\n\t}", "title": "" }, { "docid": "c3cf7719bb3a5f60204f90b5be78ff43", "score": "0.5112001", "text": "private boolean sessionExpired(String did) throws Exception {\n if (getUnlockMode(did) == PasswordUnlockMode.UNLOCK_EVERY_TIME)\n return true;\n\n PasswordDatabaseInfo dbInfo = databasesInfo.get(did);\n if (dbInfo == null)\n return true;\n\n // Last opened more than 1 hour ago? -> Expired\n long oneHourMs = (60*60*1000L);\n return dbInfo.openingTime.getTime() < (new Date().getTime() - oneHourMs);\n }", "title": "" }, { "docid": "7bced796760db6cc7ce12c71e4c2a32b", "score": "0.5108713", "text": "public void sessionIdle(ProtocolSession session, IdleStatus status) {\n }", "title": "" }, { "docid": "b8c55a6bc564997c1c1975c01d465277", "score": "0.50989", "text": "@Override\n public void onFailed(Bundle params) {\n mActivityListener.logoutBecauseExpired();\n }", "title": "" }, { "docid": "dd148bf27abbb435f8e3be6707fd1ec5", "score": "0.5081323", "text": "@Override\n public void onFailed(Bundle params) {\n mActivityListener.logoutBecauseExpired();\n }", "title": "" }, { "docid": "7903bd249703c03261d8414747cc54ab", "score": "0.50678307", "text": "@Override\n\tpublic void heartbeat (Session proxy, long heartbeat_period_sec) {\n String currentDateTime=PDU.date2ISOstring(heartbeat_period_sec);\n\t\tDUMP(\"MySessionObserver: session heartbeat, server_date = \" + currentDateTime );\n Calendar now = Calendar.getInstance();\n System.out.println(\"Singapore:\"+ now.get(Calendar.HOUR_OF_DAY) + \":\" + now.get(Calendar.MINUTE));\n if(now.get(Calendar.HOUR_OF_DAY)>=18 && now.get(Calendar.MINUTE) >=0 &&MyUser.isSqlRecordingOn&&MyUser.isNewDay){\n MyUser.isNewDay=false;\n Thread thread = new Thread(){\n @Override\n public void run() {\n MyUser.isStoring=true;//\n System.out.println(\"Start recording intraday information\");\n MyUser.stockGeneralInfoHashMap.entrySet().stream().forEach((Map.Entry<Integer, StockGeneralInformation> entry) -> {\n StockGeneralInformation currentStock = entry.getValue();\n try {\n RecordIntoJava.storeIntoSql(currentStock.getInternalCode());\n } catch (ClassNotFoundException | FeedOSException | SQLException ex) {\n Logger.getLogger(MyObserverSession.class.getName()).log(Level.SEVERE, null, ex);\n }\n });\n MyUser.isStoring=false;\n }\n };\n thread.start();\n \n }\n if(now.get(Calendar.HOUR_OF_DAY)==8 && now.get(Calendar.MINUTE) >=10&&!MyUser.isNewDay){\n System.out.println(\"New DAY!!!\");\n try {\n FeedosInitVariables.restart();\n } catch (ClassNotFoundException | SQLException | FeedOSException ex) {\n Logger.getLogger(MyObserverSession.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n\t}", "title": "" }, { "docid": "43eee4b94cb095db9cfd57b570b8d40c", "score": "0.5040852", "text": "@Override\n\tpublic void sessionDestroyed(HttpSessionEvent se) {\n\t\tcurrentLoginUserIds.remove(se.getSession().getId());\n\t}", "title": "" }, { "docid": "48d2a57b6e5bd874991e5b57abc7cf66", "score": "0.5036625", "text": "@Override\r\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t\t//agrego la session \r\n\t\tServletContext sc=null;\r\n\t\t//HttpSession session=arg0.getSession();\r\n\t\t\r\n\t\tHttpSession session= arg0.getSession();\r\n\t\tsc=session.getServletContext();\r\n\t\t\r\n\t\t//hacer un casting a map\r\n\t\tHashMap<String, HttpSession> map= (HashMap<String, HttpSession>) sc.getAttribute(\"usuarioMap\");\r\n\t\tmap.put(session.getId(), session);\r\n\t\t\r\n\t\tSystem.out.println(\"session creado\");\r\n\t}", "title": "" }, { "docid": "70ed44b926609fc540d7f400cb13c74a", "score": "0.49955866", "text": "public void anonymousSessionCreated(Session session)\n {\n }", "title": "" }, { "docid": "36ac12acf2158bb4e80d2b24d945e781", "score": "0.4985505", "text": "private void issueSessionError(ChannelHandlerContext ctx, SpdySessionStatus status)\r\n/* 466: */ {\r\n/* 467:671 */ sendGoAwayFrame(ctx, status).addListener(new ClosingChannelFutureListener(ctx, ctx.newPromise()));\r\n/* 468: */ }", "title": "" }, { "docid": "d01b7692f12716c51e007c33656d5ac1", "score": "0.49708903", "text": "@Override\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t\targ0.getSession().getServletContext().setAttribute(\"logCount\", logCount);\n\t}", "title": "" }, { "docid": "e0bc45bd5f4d90e5af40c7a9d81426a7", "score": "0.49640912", "text": "@Override\n protected HttpHandlerResponse handleGet(HttpExchange httpExchange) {\n webSessionService.invalidateSession(httpExchange);\n return getDefaultRedirectResponse();\n }", "title": "" }, { "docid": "8624969826ef461e94376f3801981cee", "score": "0.49631557", "text": "@Override\r\n\tpublic void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) throws Exception {\n\t\tSystem.out.println(\"关闭连接\");\r\n\t\t\r\n\t\tString userName = (String)session.getAttributes().get(USER_ID);\r\n\t\t\r\n\t\tuserSessions.remove(userName);\r\n\t\t\r\n\t\tSystem.out.println(\"剩余在线人数:\"+userSessions.size());\r\n\t\t\r\n\t}", "title": "" }, { "docid": "38a8384fd69d9b6ec400770f101cab22", "score": "0.49538055", "text": "public interface OnConnected extends Consumer<ZooKeeperSession> {\n }", "title": "" }, { "docid": "1d4fd0db453ab3bcac52c81a0b21ebad", "score": "0.49513668", "text": "@Override\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t\targ0.getSession().getServletContext().setAttribute(\"count\",count);\n\t\tcount++;\n\t\tSystem.out.println(\"create session :\"+count);\n\t}", "title": "" }, { "docid": "3bf54dfcc84b5c7f74025276f748c5e6", "score": "0.49069706", "text": "public void sessionCreated(HttpSessionEvent event)\n {\n session = event.getSession();\n logger.info(\"Session created for id \" + session.getId());\n }", "title": "" }, { "docid": "a55f6f66ff0c3d4277edc8491360b5db", "score": "0.48967275", "text": "@Override\n\tpublic void handlerRemoved(ChannelHandlerContext ctx) throws Exception {\n\t\t// NOOP\n\t}", "title": "" }, { "docid": "0ed88e852cfab5b9491830d4909932e5", "score": "0.48951972", "text": "@Override\r\n\tprotected boolean isLoginExpired(Exception t) {\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "b74798c6f9e048249b93c1d2990bebd2", "score": "0.48921204", "text": "void scheduleSessionInvalidation(Session session);", "title": "" }, { "docid": "a7c8f226499df34af96cf52c0b705794", "score": "0.4892097", "text": "@Override\n public void channelInactive(ChannelHandlerContext ctx) throws Exception {\n userOnlineService.userOffline(ctx);\n ctx.close();\n }", "title": "" }, { "docid": "3012e6ed5321708d103afb2a3a59d3d1", "score": "0.48845902", "text": "@Override\n public void connectionLost(Throwable e) {\n log.error(\"MQTT Connection was lost to the broker.\");\n }", "title": "" }, { "docid": "d2b678967bcaee284db93968438db7e5", "score": "0.48797438", "text": "public void sessionEnded(Session s);", "title": "" }, { "docid": "8da7b9fde161f1d91935bcf81a075fcd", "score": "0.48676696", "text": "@Override\n\tpublic void onLogout(){\n\t\tContext.getUserService().logout(new OpenXDataAsyncCallback<Void>(){\n\n\t\t\t@Override\n\t\t\tpublic void onOtherFailure(Throwable throwable) {\n\t\t\t\tUtilities.displayMessage(throwable.getMessage());\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(Void result) {\n\t\t\t\tonSuccessfullLogout();\n\t\t\t}});\n\t}", "title": "" }, { "docid": "07a025e88d3e7f650d59812045f29677", "score": "0.48595908", "text": "@Override\r\n\t\t\tpublic void handleSessionEstablishmentError(Throwable arg0) throws Exception {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "8ae135188b92d9d0c7c0c7312a5349ee", "score": "0.4851831", "text": "@Override\r\n public void afterHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler handler, Exception ex) {\n log.info(\"afterHandshake\");\r\n if (ex != null) {\r\n ex.printStackTrace();\r\n log.error(ex.getMessage(), ex);\r\n }\r\n }", "title": "" }, { "docid": "1d48e804f3cf61fe5844d42ac3aef533", "score": "0.48516577", "text": "@Override\n public void afterConnectionEstablished(final WebSocketSession session) throws Exception {\n LOG.info(\"The connection has been established successfully.\");\n Object token = session.getAttributes().get(\"token\");\n if (Objects.nonNull(token)) {\n // The user is successfully connected and put into the online user cache.\n WsSessionManager.add(token.toString(), session);\n } else {\n throw new RuntimeException(\"User login has expired!\");\n }\n }", "title": "" }, { "docid": "cda42616e1137261ae710678dde1816b", "score": "0.48440054", "text": "@RequestMapping(\"/\")\n\tpublic ModelAndView omsSessionExpires(ModelAndView model, HttpSession session) {\n\t\tsession.invalidate();\n\t\t \n\t\t//logger.info(\"SuccessFully LogOut:::\"+userObj.getPfId());\n\t\tmodel.setViewName(\"redirect:https://adfs.sbi.co.in/adfs/ls/?wa=wsignout1.0\");\n\t\t\n\t\treturn model;\n\t}", "title": "" }, { "docid": "6d7d3a4c3f6b934c9aa3c432746d88de", "score": "0.48430133", "text": "@Override\r\n\tpublic void sessionCreated(IoSession arg0) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "728aba8d60144276f44183ab82ada2f8", "score": "0.48378608", "text": "public static boolean checkAndHandleInvalidSession(ParseException e){\n if(e != null && e.getCode() == ParseException.INVALID_SESSION_TOKEN){\n if(Config.SHOWLOG) Log.d(\"__A\", \"checkAndHandleInvalidSession : calling static logout() : my caller=\" + TestingUtililty.getCaller());\n logout();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "080cf3c3f1c8647a3be3be91f8094907", "score": "0.48353344", "text": "private LogoutSuccessHandler logoutSuccessHandler() {\n return new HttpStatusReturningLogoutSuccessHandler();\n }", "title": "" }, { "docid": "1a9db8c8b2a96d23d7331571a6dc8496", "score": "0.48240036", "text": "public void sessionTimeout(Session s);", "title": "" }, { "docid": "bc8c2d4edafaaaf1ca3b949642c7955b", "score": "0.48123544", "text": "public final boolean isSessionExpired() {\n if (this.isExpired) return true;\n if (this.expireTime == 0) return false;\n if (this.lastAccessTime == -1) return false; // Forcefully allow the access time to exist\n boolean expired = System.currentTimeMillis() - this.lastAccessTime > this.expireTime;\n if (expired) this.isExpired = true;\n return expired;\n }", "title": "" }, { "docid": "4e57c467b5cbd076c58992e152b62239", "score": "0.48116484", "text": "private void lostConnectionHandler(Player player) {\n if (gameStarted) {\n send(new ErrorEvent(player.getName() + ABANDONED_GAME));\n if (player.getWindowPattern() == null) {\n setRandomWindowPattern(player);\n }\n if (socketClients.size() + rmiClients.size() < 2) {\n virtualView.endGame();\n }\n else if (!choosingWindowPatterns && player.getName().equals(model.getCurrentPlayer().getName())) {\n notify(new SkipTurnEvent());\n }\n }\n }", "title": "" }, { "docid": "671d3aced05136839c78320a6175f36e", "score": "0.48098433", "text": "@Override\n\t\t\tpublic Long callback(ShardedJedis e) {\n\t\t\t\treturn e.expire(key, seconds);\n\t\t\t}", "title": "" }, { "docid": "1f8589a51c4ff8ca197c250917078ec9", "score": "0.48090252", "text": "public static void logout() {\n if(Config.SHOWLOG) Log.d(\"__A\", \"static logout called : my caller=\" + TestingUtililty.getCaller());\n Runnable r = new Runnable() {\n @Override\n public void run() {\n if(Config.SHOWLOG) Log.d(\"__A\", \"logout() : inside job\");\n Utility.toast(\"Session expired. Please login again !\", true);\n performLogoutAction();\n }\n };\n\n if(!getIgnoreInvalidSessionCheck() && Application.applicationHandler != null){\n setIgnoreInvalidSessionCheck();\n if(Config.SHOWLOG) Log.d(\"__A\", \"logout() : posting the job\");\n Application.applicationHandler.post(r);\n }\n else{\n if(Config.SHOWLOG) Log.d(\"__A\", \"logout() : SKIPPING posting the job\");\n }\n }", "title": "" }, { "docid": "9f68da379173b3b3b4aac067c311a8a2", "score": "0.48049918", "text": "@Description(\"The configured time in milliseconds before an idle session is destroyed\")\n @Units(\"milliseconds\")\n public long getSessionTimeout();", "title": "" }, { "docid": "817d852a5ba43d423c8b3ee438113dc7", "score": "0.47966078", "text": "public void preReleaseClientSession(SessionEvent event);", "title": "" }, { "docid": "460beecd70af2f156c166e668b9493ff", "score": "0.47822192", "text": "protected void onExpiredTimeoutTimer() {\r\n\t\t// TODO NOTE: This perhaps should check \"<=\" and consider\r\n\t\t// the timer expired when equal to zero.\r\n\t\t// Please check the IETF RFC for details and implement\r\n\t\t// this correctly.\r\n\t\tif (timer < 0) {\r\n\r\n\t\t\t// reduce the slow start threshold\r\n\t\t\tSSThresh = congWindow / 2;\r\n\t\t\tSSThresh = Math.max(SSThresh, 2*TCPSimulator.MSS); \t\t\t\r\n\r\n\t\t\t// congestion window = 1 x MSS\r\n\t\t\tcongWindow = TCPSimulator.MSS;\r\n\r\n\t\t\t// Reset the sending mode to \"slow start\".\r\n\t\t\tsendMode = SLOW_START;\r\n\r\n\t\t\t// Re-start the timer, for the outstanding segments.\r\n\t\t\tresetMonitoringVariables();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2334cff17d2ed390c646ca4cc4f10fac", "score": "0.47819364", "text": "@OnClose\n\tpublic void onClose(Session session) {\n\t\tclients.remove(session);\n\t}", "title": "" }, { "docid": "d37f44e784f81a080a439280e1eeb55d", "score": "0.4776802", "text": "@Override\n public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {\n if (evt instanceof IdleStateEvent) {\n log.info(\"接收到闲置状态事件={}\", evt);\n ctx.close();\n ctx.writeAndFlush(HEARTBEAT_SEQUENCE.duplicate())\n //当这个操作执行结果是失败或者取消,就关闭通道\n .addListener(ChannelFutureListener.CLOSE_ON_FAILURE);\n\n } else {\n super.userEventTriggered(ctx, evt);\n }\n }", "title": "" }, { "docid": "f39e3259dd9e9a81312c59ff3e39781b", "score": "0.47741908", "text": "private void handleStateChangeSession(CuratorFramework client, ConnectionState newState) {\n // Handle state change.\n switch (newState) {\n case CONNECTED:\n case LOST:\n setState(NodeState.STANDBY);\n break;\n case SUSPENDED:\n break;\n case RECONNECTED:\n // Try to retain existing PRIMARY role under session policy.\n if (getState() == NodeState.PRIMARY) {\n /**\n * Do a sanity check when reconnected for a selector with \"PRIMARY\" mode. This is to\n * ensure that curator reconnected with the same Id. Hence, guaranteeing Zookeeper state\n * for this instance was preserved.\n */\n try {\n long reconnectSessionId = client.getZookeeperClient().getZooKeeper().getSessionId();\n if (mLeaderZkSessionId != reconnectSessionId) {\n LOG.warn(String.format(\n \"Curator reconnected under a different session. \"\n + \"Old sessionId: %x, New sessionId: %x\",\n mLeaderZkSessionId, reconnectSessionId));\n setState(NodeState.STANDBY);\n } else {\n LOG.info(String.format(\n \"Retaining leader state after zookeeper reconnected with sessionId: %x.\",\n reconnectSessionId));\n }\n } catch (Exception e) {\n LOG.warn(\"Cannot query session Id after session is reconnected.\", e);\n setState(NodeState.STANDBY);\n }\n }\n break;\n default:\n throw new IllegalStateException(String.format(\"Unexpected state: %s\", newState));\n }\n }", "title": "" }, { "docid": "ea236358d3082ed82bab575ceea281a8", "score": "0.4761321", "text": "public void invalidateSession(){\r\n\t\t// This will cause invalidation of the session by the ApplicationServlet\r\n\t\t// but not until all server messages are handled.\r\n\t\thttpSessionId = null;\r\n\t}", "title": "" } ]
cd5735c281b7b7bc89011a63f3d828d3
check if a key exists
[ { "docid": "c7f81cf07135da8712467708e560d107", "score": "0.7383564", "text": "public Boolean hasKey(String key) {\n try {\n return redisTemplate.hasKey(key);\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }", "title": "" } ]
[ { "docid": "0b5dbf9be33d07449bbf58875e3554ab", "score": "0.87333477", "text": "boolean keyIsExists(String key);", "title": "" }, { "docid": "effe7ce5782e7be827b89c4f9aa56a41", "score": "0.8500001", "text": "boolean exists(String key);", "title": "" }, { "docid": "242faf53fc52dc28432189966e350b7c", "score": "0.8354007", "text": "public boolean hasKey(final String key);", "title": "" }, { "docid": "f9a976fda0ccab93c82919e7293deb14", "score": "0.8265142", "text": "boolean hasKey();", "title": "" }, { "docid": "f9a976fda0ccab93c82919e7293deb14", "score": "0.8265142", "text": "boolean hasKey();", "title": "" }, { "docid": "f9a976fda0ccab93c82919e7293deb14", "score": "0.8265142", "text": "boolean hasKey();", "title": "" }, { "docid": "f9a976fda0ccab93c82919e7293deb14", "score": "0.8265142", "text": "boolean hasKey();", "title": "" }, { "docid": "f9a976fda0ccab93c82919e7293deb14", "score": "0.8265142", "text": "boolean hasKey();", "title": "" }, { "docid": "f9a976fda0ccab93c82919e7293deb14", "score": "0.8265142", "text": "boolean hasKey();", "title": "" }, { "docid": "f9a976fda0ccab93c82919e7293deb14", "score": "0.8265142", "text": "boolean hasKey();", "title": "" }, { "docid": "7f4436fd153c38e795c3e267b4e88fa2", "score": "0.7995125", "text": "@Override\n\tpublic Boolean exists(String key) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7a71999b8bf01a7cc08a99359f1ac900", "score": "0.79891664", "text": "boolean has(String key);", "title": "" }, { "docid": "ab033726ac8f4dad41b6451ca1c8fda2", "score": "0.7886032", "text": "boolean containsKey(String key);", "title": "" }, { "docid": "26eba11af91a42e844dbaae1652339bb", "score": "0.78538644", "text": "boolean has(K key);", "title": "" }, { "docid": "1a86b3fbaf5a112169281ffe73366269", "score": "0.78444743", "text": "public boolean hasKey(final OID key);", "title": "" }, { "docid": "783903ebba1222b9a5c0f226d30959ed", "score": "0.78391755", "text": "public boolean containsKey(Object key);", "title": "" }, { "docid": "f24024420732859f38a418d4ce9759b1", "score": "0.78316164", "text": "boolean hasMyKey();", "title": "" }, { "docid": "588f8a9ba1cbfa06f8d7313b393c823a", "score": "0.77892345", "text": "boolean containsKey(K key);", "title": "" }, { "docid": "588f8a9ba1cbfa06f8d7313b393c823a", "score": "0.77892345", "text": "boolean containsKey(K key);", "title": "" }, { "docid": "588f8a9ba1cbfa06f8d7313b393c823a", "score": "0.77892345", "text": "boolean containsKey(K key);", "title": "" }, { "docid": "588f8a9ba1cbfa06f8d7313b393c823a", "score": "0.77892345", "text": "boolean containsKey(K key);", "title": "" }, { "docid": "51f47a5d38c3058958ee0a32ad77f506", "score": "0.7768747", "text": "public boolean exist(String key, Mode2 mode);", "title": "" }, { "docid": "6b0b303bc875dabcb27083156db6ba95", "score": "0.77454245", "text": "boolean isFound(String key);", "title": "" }, { "docid": "6111689f8d33f37c3fee10c6d43dec2b", "score": "0.7676454", "text": "public boolean containsKey(K key) {\n //try block to make sure data is there\n try {\n get(key);\n return true;\n\n } catch (NoSuchElementException nse) {\n\n return false;\n }\n\n\n }", "title": "" }, { "docid": "14e8d0cddf78c5f9a75b9e6c5e9ffc0d", "score": "0.76651543", "text": "public boolean containsKey(java.lang.Object key) { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "302cab8bf0931f1afbb9772389c08c7e", "score": "0.76521736", "text": "public abstract boolean containsKey(K key);", "title": "" }, { "docid": "1021acacc8d8a23db245d1d578d67179", "score": "0.76167864", "text": "public boolean containsKey(K key){\n try{\n getIndexOfKey(key);\n return true;\n }\n catch (NoSuchElementException e){\n return false;\n }\n }", "title": "" }, { "docid": "5878b9e085303af42fa54581307fe8ec", "score": "0.7605235", "text": "@Override\r\n\tpublic boolean containsKey(Object key) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "e84c322218bc62ab2b3a2bdfa78febc9", "score": "0.7591622", "text": "boolean contains(Key key);", "title": "" }, { "docid": "e84c322218bc62ab2b3a2bdfa78febc9", "score": "0.7591622", "text": "boolean contains(Key key);", "title": "" }, { "docid": "678a004457763216db4d9bac8a931e3b", "score": "0.75763226", "text": "public boolean existI(String key, Mode2 mode);", "title": "" }, { "docid": "6d163e0e52520f8a15d255b997f747eb", "score": "0.75552976", "text": "boolean contains(K key) throws IllegalNullKeyException;", "title": "" }, { "docid": "c1eb3cb724b2bd6195ea9337e416e0e9", "score": "0.7537101", "text": "public boolean containsKey(Object key) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5d2483c1e8d5fdd17582d81c230e4bdf", "score": "0.75268453", "text": "boolean containsKey(K k);", "title": "" }, { "docid": "ae34e64c88587eff567f9d5d09d74b51", "score": "0.7520632", "text": "<T> boolean exists(VKey<T> key);", "title": "" }, { "docid": "f73cfe71cab3698751e11cfb495ad327", "score": "0.75194263", "text": "@Override\n public boolean containsKey(Object key) {\n return config.lookup(\"\"+key) != null;\n }", "title": "" }, { "docid": "bed4c52cfe6e74d270534ba40f90b1e9", "score": "0.75011253", "text": "boolean hasKeyData();", "title": "" }, { "docid": "0476c8dda9793c569d102a534bd28e54", "score": "0.749338", "text": "@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9b30102d7d23cac75523b213d694b850", "score": "0.7458664", "text": "@Override\n public boolean containsKey(K key) {\n if (get(key) != null) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "c33a3c799e13aa455345e2d7db7907d7", "score": "0.7450832", "text": "public boolean exists(String key) {\n\t\tfor(int i = 0; i < keys.length; i++) {\n\t\t\tString s = keys[i];\n\t\t\tif(s != null) {\n\t\t\t\tif(s.equals(key))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2d2473cd5231f36a79ba83ed06ef2eab", "score": "0.7425293", "text": "private boolean existKey(K key)\n {\n \tif(totalEntries>threshold)//use hash table\n \t{ \t \n \t // Find head of chain for given key \n int bucketIndex = getBucketIndex(key);\n Node<K, V> head = bucketArray.get(bucketIndex); \n while (head != null)\n { \n if (head.key.compareTo(key)==0)// If Key found\n return true; \n head = head.next;\n } \n if (head == null)// If key was not there\n return false;\n \t}\n \telse\n \t{\n \t for(int i=0;i<sequenceArray.size();i++)\n \t {\n \t\t if(sequenceArray.get(i).key==key)\n \t\t return true; \t\t\t\n \t } \t\n \t}\n \treturn false;\n }", "title": "" }, { "docid": "3aea2f213c35243090e870abe42db13f", "score": "0.7423707", "text": "@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn getEntry(key) != null;\n\t}", "title": "" }, { "docid": "50ec1d40034ed9fc9c7436c6cb75b11c", "score": "0.7421636", "text": "@Override\n public boolean containsKey(K key){\n return true;\n }", "title": "" }, { "docid": "e120806a667bea0130e090e4437b4c51", "score": "0.7409412", "text": "public boolean containsKey(K key) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "46d9fc20815fe3d9ab2d7baa7d7edb04", "score": "0.74081856", "text": "public boolean haskey(K key) {\n switchPosition(key, null);\n return hasTheKey(key);\n }", "title": "" }, { "docid": "dfc24b193eb05d82a0f5fffd9eaae956", "score": "0.73926157", "text": "@HasNoSideEffects\n public native boolean has( @Nonnull K key );", "title": "" }, { "docid": "9999bc0152d30ba3b829ee918220c424", "score": "0.738509", "text": "@Override\r\n\tpublic boolean containsKey(E key) {\n\t\tif(get(key)!=null){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "15622139450673a93f65994f62b4f719", "score": "0.73307407", "text": "public boolean hasEasy(String key);", "title": "" }, { "docid": "482737075731e52b36f4a419b40a8f8f", "score": "0.72603977", "text": "public boolean hasKey() {\n\treturn key;\n }", "title": "" }, { "docid": "91f95d22da2d2bf01c2ce960c4b45d36", "score": "0.72516507", "text": "public boolean hasValue(String key);", "title": "" }, { "docid": "b9c4e3eb65363a1c7f63093437f1be31", "score": "0.7212802", "text": "public boolean containsKey(Key<?> key) {\n return store.containsKey(key.name());\n }", "title": "" }, { "docid": "cb6e409d71098eb8f22f384b74f99789", "score": "0.7207154", "text": "public boolean containsKey(Object key) {\n return getEntry(key) != null;\n }", "title": "" }, { "docid": "cb6e409d71098eb8f22f384b74f99789", "score": "0.7207154", "text": "public boolean containsKey(Object key) {\n return getEntry(key) != null;\n }", "title": "" }, { "docid": "b04bca93389954900f2bd87b6b264bcb", "score": "0.72061855", "text": "public boolean contains(String key)\n\t{\n\t\treturn fetch(key) != 0;\n\t}", "title": "" }, { "docid": "d336a1c41971e17348f578fc636cfeed", "score": "0.7193059", "text": "@Override\n public boolean containsKey(Object key)\n {\n DistCacheEntry entry = getDistCacheEntry(key);\n \n return entry != null && entry.getMnodeEntry().isValid();\n }", "title": "" }, { "docid": "016a4c001dab0bac6bbc3993d26ef138", "score": "0.7179439", "text": "public boolean containsKey(Object paramObject)\n/* */ {\n/* 417 */ return getEntry(paramObject) != null;\n/* */ }", "title": "" }, { "docid": "f05ce6bf7095c8b2fa7313ec373394f6", "score": "0.71790487", "text": "public boolean has(String key) {\r\n \treturn !(opt(key) == null);\r\n }", "title": "" }, { "docid": "bd4fa04cff7113e079cc8e6b6ecd33c1", "score": "0.7176084", "text": "boolean contains(K key);", "title": "" }, { "docid": "bd4fa04cff7113e079cc8e6b6ecd33c1", "score": "0.7176084", "text": "boolean contains(K key);", "title": "" }, { "docid": "930565f205872cd4dad78b9c09c4180b", "score": "0.7172081", "text": "@Override\n\t\tpublic boolean containsKey(Object key) {\n\t\t\treturn map.containsKey(key);\n\t\t}", "title": "" }, { "docid": "c3b2723fb17c5da3555051b693b20c72", "score": "0.7158147", "text": "public abstract boolean contains(String key);", "title": "" }, { "docid": "ef0ecc8f0e456cc7ec60353ab14012b3", "score": "0.7141618", "text": "@Override\r\n\tpublic boolean keyExists(QuestionDTO objQuestionDTO) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "9f7cdbee2855c76cb8805ace2514f237", "score": "0.71355397", "text": "@Override\n\tpublic boolean contains(K key) throws IllegalNullKeyException {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "22bc3ba9db54f36eb2c91c0faf333fb1", "score": "0.71184695", "text": "public boolean contains(K key);", "title": "" }, { "docid": "9cfd3d5ea946a8eab693ff43ae0894a1", "score": "0.71089214", "text": "public boolean contains(Key key){\n\t\treturn this.get(key) != null;\n\t}", "title": "" }, { "docid": "17d851c700449dfff0918d7115cd26ec", "score": "0.70890266", "text": "@Override\r\n\tpublic boolean contains(K key) {\n\t\treturn entryFor(key) != null;\r\n\t}", "title": "" }, { "docid": "de7791fbf2d248ae43047ed2df3f711d", "score": "0.70724225", "text": "boolean containsData(java.lang.String key);", "title": "" }, { "docid": "e455d09297a361e95d294c882da52852", "score": "0.70676374", "text": "@Override\n\tpublic boolean contains(K key) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bee95fdc06ee9b714a4a6ddcb5849903", "score": "0.7064953", "text": "public boolean containsKey(K key) {\n\t\treturn get(key) != null;\n\t}", "title": "" }, { "docid": "adf9044d1982acb0fcf157d25c32e386", "score": "0.70428896", "text": "public boolean containsKey(Object key) {\n/* 81 */ return this.actuals.containsKey(key);\n/* */ }", "title": "" }, { "docid": "344a29dc57aa1fbbba4f6317867990b7", "score": "0.7041341", "text": "public boolean containsKey(Object key) {\n return map.containsKey(key);\n }", "title": "" }, { "docid": "dc0ac2552f1ca7c1d2d3b726ec9c44de", "score": "0.7037269", "text": "public boolean contains(Key key) {\n return get(key) != null;\n }", "title": "" }, { "docid": "c1cce3235c916c6bae08430039fc0304", "score": "0.70298076", "text": "public boolean containsKey(K key)\n\t{\n\t\tint hashValue = hashFunction(key);\n\t\tif(buckets.get(hashValue).getListNode(key).getKey() == null){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "01a7baab49dc9d167eab42fa9fcc6d4a", "score": "0.70125335", "text": "public boolean containsKey(String key) {\n return (cache.getIfPresent(key) != null);\n }", "title": "" }, { "docid": "6efd2f8ada827ec999a57c62e96deea9", "score": "0.70042825", "text": "public boolean hasKey() {\n return result.hasKey();\n }", "title": "" }, { "docid": "1bcade65cc58219983a36fa0b51ce733", "score": "0.6997993", "text": "boolean has(String k);", "title": "" }, { "docid": "29b1aaf4883be375996619dddb8d4b66", "score": "0.6991979", "text": "public boolean containsKey(Object id);", "title": "" }, { "docid": "1ccb6be9c7a3f167a2128a13fef57a42", "score": "0.69755673", "text": "boolean containsGlobalObjectKey(Object key);", "title": "" }, { "docid": "a3d6f3a9143c1952f71a0532d8408eef", "score": "0.6969453", "text": "public boolean exists(String key) {\r\n\t\treturn defaultProperties.containsKey(key);\r\n\t}", "title": "" }, { "docid": "3706c192238279cad8569de0b2b7ab2b", "score": "0.69671476", "text": "public boolean containskey(String keyName){\r\n\t\treturn associativeArray.containsKey(keyName);\r\n\t}", "title": "" }, { "docid": "570582143da1ef55bb9e90c1df6a6241", "score": "0.6963199", "text": "public boolean containsKey(String key) {\n\t\treturn(buckets[getHash(key)] != null);\t\r\n\t}", "title": "" }, { "docid": "a38b6af5499808cd46b6a76016456521", "score": "0.6961954", "text": "@Override\n public boolean containsKey(Object key) {\n IDataCursor cursor = this.getCursor();\n boolean contains = cursor.next((String)key);\n cursor.destroy();\n\n return contains;\n }", "title": "" }, { "docid": "463e88cae0a7f9182319588a5490025b", "score": "0.6948163", "text": "@Override\n\tpublic boolean contains(String key) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e27d64639ab8ab9b26b930755d2ab582", "score": "0.6946028", "text": "boolean hasResourceKey();", "title": "" }, { "docid": "e27d64639ab8ab9b26b930755d2ab582", "score": "0.6945269", "text": "boolean hasResourceKey();", "title": "" }, { "docid": "5bb75601c9f18bb8b99770059e18d821", "score": "0.69397897", "text": "public boolean exists(String key)\r\n {\r\n return m_idents.containsKey(key);\r\n }", "title": "" }, { "docid": "5e31f91479cad65429d74c96cb8713e6", "score": "0.6936177", "text": "public boolean has(final String key) {\n if (this.readOnlyMode) {\n assert index != null;\n assert index.row().primaryKeyLength == key.length();\n \n // check if the index contains the key\n try {\n return index.getl(key.getBytes()) >= 0;\n } catch (final IOException e) {\n e.printStackTrace();\n return false;\n }\n }\n return this.cache.containsKey(key);\n }", "title": "" }, { "docid": "5da6c743000aa981008c70e76581dd6c", "score": "0.6930978", "text": "public boolean containsKey(K key) {\n\t\treturn tree.contains(new KVPair(key,null));\n\t}", "title": "" }, { "docid": "35f8794b10cf25ad6122e65450441933", "score": "0.69277525", "text": "public boolean containsKey(K key) {\n return keySet.contains(key);\n }", "title": "" }, { "docid": "ab66b96a87f490e2f2b312d440576db5", "score": "0.69268006", "text": "public boolean containsKey( String key ) {\n\t\treturn getThreadLocal().containsKey( key );\n\t}", "title": "" }, { "docid": "9a5d4112c69123e931191e3ddc0690b4", "score": "0.69224775", "text": "public boolean hasNormal(String key);", "title": "" }, { "docid": "90558ad6d238597854dcd87c7d4a21ab", "score": "0.6919434", "text": "Boolean ssexists(String key, String field, String name, String value);", "title": "" }, { "docid": "665f7dea9213a0a076d9ec3211b32cb1", "score": "0.6917857", "text": "@Override\n public boolean containsKey( Object key ) {\n int hash = hash( key.hashCode() );\n return segmentFor( hash ).containsKey( key, hash );\n }", "title": "" }, { "docid": "405c17539e566be47007c6bef13db417", "score": "0.6911504", "text": "public boolean KeyExists(String Name) {\n\t\tboolean retval = false;\n\t\t/* '************************************************************** */\n\t\t/* 'Author: Juan Martín Sotuyo Dodero */\n\t\t/* 'Last Modify Date: 04/01/2008 */\n\t\t/* 'Returns true of the key exists, false otherwise. */\n\t\t/* '************************************************************** */\n\t\tretval = FindMain(vb6.UCase(Name)) >= 0;\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "18d11a146ff46731eaea607cef64aa73", "score": "0.6892817", "text": "public boolean containsUserDatumKey(Object key);", "title": "" }, { "docid": "8c3c800e0a4dd8f873e319754cfc2b15", "score": "0.6889234", "text": "protected boolean checkItem(String key){\n for(int i = 0; i<itemKeys.length-1;i++){\n if(itemKeys[i].equals(key.toLowerCase().trim())){\n return true; // exists\n }\n }\n return false; // doesn't exist\n }", "title": "" }, { "docid": "bd5adabee9ba34bac3ec7e8c7d97dc1c", "score": "0.6883763", "text": "public final boolean contains(K key)\r\n/* 60: */ {\r\n/* 61:86 */ return this.map.containsKey(ObjectUtil.checkNotNull(key, \"key\"));\r\n/* 62: */ }", "title": "" }, { "docid": "7f9a1f3add5d8db45629a861ff58f1d7", "score": "0.68780077", "text": "public boolean containsKey(K key) {\n int hash = hashCode(key);\n if (names[hash] == null) {\n return false;\n }\n for (int i = 0; i < names[hash].size(); i ++) {\n if (names[hash].get(i).getKey().equals(key)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "0aee5a5eb50d80abcf4d96281cb79176", "score": "0.68617505", "text": "public boolean hasNormalI(String key);", "title": "" }, { "docid": "fcab6a4658f1a51ebb86a2284ee2a05e", "score": "0.68607706", "text": "public boolean containsKey(Object key)\n\t{\n\t\tclearOldEntries();\n\t\tData<K, V> val = map.get(key);\n//\t\tcheckInvariant(\"containsKey\");\n\t\treturn val != null;\n\t}", "title": "" } ]
4c1e58ce6742b3a5673b14c506a40240
string schema = 5;
[ { "docid": "b93065bff4e4d1fff6bc4fdde4dd7666", "score": "0.5372336", "text": "public java.lang.String getSchema() {\r\n java.lang.Object ref = schema_;\r\n if (ref instanceof java.lang.String) {\r\n return (java.lang.String) ref;\r\n } else {\r\n com.google.protobuf.ByteString bs = \r\n (com.google.protobuf.ByteString) ref;\r\n java.lang.String s = bs.toStringUtf8();\r\n schema_ = s;\r\n return s;\r\n }\r\n }", "title": "" } ]
[ { "docid": "1ecbb8d3baf400be31b659adee455b02", "score": "0.67606777", "text": "public void setSchema(String string) {\n schema = string;\n }", "title": "" }, { "docid": "b97e8f95fb5cae9cda646c284cdeed8e", "score": "0.6413136", "text": "java.lang.String getSchema();", "title": "" }, { "docid": "653fde9cabb377e41dd65b3d2d3dc002", "score": "0.61200696", "text": "public void setSchema(String v) {\n this.schema = v;\n }", "title": "" }, { "docid": "e4add89cd120a247a292e545bfb6f05b", "score": "0.6049312", "text": "public abstract Schema getSchema(String paramString);", "title": "" }, { "docid": "64bb28e86063167f5ecf8c71aedd3253", "score": "0.5998526", "text": "public String getSchemaString() {\n return schemaString;\n }", "title": "" }, { "docid": "e00fc9f0703fb8e0d91400b8b829550b", "score": "0.5967389", "text": "@Test\n public void testSchemaParse() {\n Schema schema = new Schema.Parser().parse(SCHEMA);\n assertEquals(schema.toString(), SCHEMA);\n }", "title": "" }, { "docid": "8e6241fe806ef092138207ffaac60269", "score": "0.5952719", "text": "public abstract String getSchema();", "title": "" }, { "docid": "de32444bede249b8512b5fa067c88969", "score": "0.5828108", "text": "public String getSchema() { return(this.schema); }", "title": "" }, { "docid": "54e060b915fc64b11ef3f6a26e60dac3", "score": "0.5612852", "text": "public String getSchema() {\n return schema;\n }", "title": "" }, { "docid": "4abc441911249c8da56998e459109eca", "score": "0.5490477", "text": "public Builder setSchema(\r\n java.lang.String value) {\r\n if (value == null) {\r\n throw new NullPointerException();\r\n }\r\n \r\n schema_ = value;\r\n onChanged();\r\n return this;\r\n }", "title": "" }, { "docid": "4875a77cb8f4906914142d614ac67313", "score": "0.5435817", "text": "public String getSchemacode() {\n return schemacode;\n }", "title": "" }, { "docid": "f845e61238ccd750029788f2831d466f", "score": "0.539064", "text": "Schema createSchema();", "title": "" }, { "docid": "22283905956cf69c82d68635e154577b", "score": "0.53885335", "text": "public java.lang.String getSchema() {\r\n java.lang.Object ref = schema_;\r\n if (!(ref instanceof java.lang.String)) {\r\n com.google.protobuf.ByteString bs =\r\n (com.google.protobuf.ByteString) ref;\r\n java.lang.String s = bs.toStringUtf8();\r\n schema_ = s;\r\n return s;\r\n } else {\r\n return (java.lang.String) ref;\r\n }\r\n }", "title": "" }, { "docid": "302359968915b9a3c3abeacad4db50e1", "score": "0.53489745", "text": "String getSchemaLocation();", "title": "" }, { "docid": "0493673591e6d74adbf6820b246382ee", "score": "0.53322804", "text": "public void setSchemaId(int val) {\n schemaId = val;\n }", "title": "" }, { "docid": "9c3892faa234841b84171fbe147575cc", "score": "0.5256227", "text": "private String getPrimitiveType(Schema schema) {\n String primitiveType = \"string\";\n\n // For AVRO, the primitive type is encoded in the content\n if (schema.getSchemaType().toUpperCase(Locale.ROOT).equals(\"AVRO\")) {\n primitiveType = schema.getContent().replaceAll(\"\\\"\", \"\");\n }\n return primitiveType;\n }", "title": "" }, { "docid": "83fab2b1fe33089633cf4a61d0f58fc2", "score": "0.51676506", "text": "public com.google.protobuf.ByteString\r\n getSchemaBytes() {\r\n java.lang.Object ref = schema_;\r\n if (ref instanceof String) {\r\n com.google.protobuf.ByteString b = \r\n com.google.protobuf.ByteString.copyFromUtf8(\r\n (java.lang.String) ref);\r\n schema_ = b;\r\n return b;\r\n } else {\r\n return (com.google.protobuf.ByteString) ref;\r\n }\r\n }", "title": "" }, { "docid": "041eaef5b468bedd7a8b829eb2096c7c", "score": "0.5164079", "text": "Schema getSchema();", "title": "" }, { "docid": "041eaef5b468bedd7a8b829eb2096c7c", "score": "0.5164079", "text": "Schema getSchema();", "title": "" }, { "docid": "a87b982bdadd3fca1e625821046f1aa9", "score": "0.5146719", "text": "public void setSchema(Schema schema) {\n this.schema = schema;\n }", "title": "" }, { "docid": "7b6d37c262b287abe654702c36e4a5c1", "score": "0.514535", "text": "public static String calcSchemaSummary(String schemaContent) {\n return Hashing.sha256().newHasher().putString(schemaContent, Charsets.UTF_8).hash().toString();\n }", "title": "" }, { "docid": "c961c8e5e9276a5db27b3084a8c37b9c", "score": "0.5144207", "text": "public String getSchema() {\n\n return (this.schemaLocation);\n\n }", "title": "" }, { "docid": "469e2bf9addca733ced1e13653e3230d", "score": "0.5105028", "text": "public com.google.protobuf.ByteString\r\n getSchemaBytes() {\r\n java.lang.Object ref = schema_;\r\n if (ref instanceof java.lang.String) {\r\n com.google.protobuf.ByteString b = \r\n com.google.protobuf.ByteString.copyFromUtf8(\r\n (java.lang.String) ref);\r\n schema_ = b;\r\n return b;\r\n } else {\r\n return (com.google.protobuf.ByteString) ref;\r\n }\r\n }", "title": "" }, { "docid": "bcc616e4d5c702c3595d93d05b72b5d7", "score": "0.5087554", "text": "String schemeExpression();", "title": "" }, { "docid": "22dc7370d882c649f62de4e08e6942be", "score": "0.50330204", "text": "sjtu.opennet.textilepb.Model.Node getSchemaNode();", "title": "" }, { "docid": "b36da9f2d468d14d83d68b04b393e135", "score": "0.50277936", "text": "String getRemoteSchema();", "title": "" }, { "docid": "8101388b5709e3bf9e9bae8ebfa363f9", "score": "0.5024154", "text": "@Test\n public void schemaIdTest() {\n // TODO: test schemaId\n }", "title": "" }, { "docid": "68dad0ef462a8b095b1b3a842ff88e3a", "score": "0.49811357", "text": "public IDSSchema getSchema(String dataSetURN);", "title": "" }, { "docid": "5bdf6d8f178de668b259ad939d36ebf6", "score": "0.49773198", "text": "@Override\n public int getSchemaId() {\n return schemaId;\n }", "title": "" }, { "docid": "b96f19c9a754eb189979370c2d651ddc", "score": "0.4970699", "text": "com.google.protobuf.ByteString\r\n getSchemaBytes();", "title": "" }, { "docid": "c131349ea25d341c347e2b4ed02c8344", "score": "0.49645445", "text": "StringType getString();", "title": "" }, { "docid": "df8776a8d636a11b267f1e32c17e8f7b", "score": "0.4960681", "text": "public UUID getSchemaUUID()\n\t{\n\t\treturn schemaID;\n\t}", "title": "" }, { "docid": "07d5e5d8107bd01975bec94bc7a9d93d", "score": "0.4959433", "text": "@Override\n\tpublic String getSchema() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ac2da32d0e1f0f18cf6dd49ce929597f", "score": "0.4957415", "text": "String mo14160a(String str);", "title": "" }, { "docid": "29c1926614bafb60cbff8b2878a0d1b3", "score": "0.49065554", "text": "public final void mT__18() throws RecognitionException {\n try {\n int _type = T__18;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalHdbSequence.g:17:7: ( 'schema' )\n // InternalHdbSequence.g:17:9: 'schema'\n {\n match(\"schema\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "41cc61f1a773e52edcbc9a4a71fc4f35", "score": "0.48972002", "text": "public Schema schema() { return schema; }", "title": "" }, { "docid": "b80ad1e6ec1cf4e1465effd2aa2f06b6", "score": "0.4891542", "text": "public void setSchema(final String schema) {\n _schema = project.resolveFile(schema);\n }", "title": "" }, { "docid": "5c990a4ae3535ea785b5d9deee874053", "score": "0.48772085", "text": "public void setCreateSchemaKey(String key) {\r\n _createSchemaKey = Val.chkStr(key);\r\n}", "title": "" }, { "docid": "ff0333f1277596a2717077d4de1cdad2", "score": "0.48679203", "text": "List<String> schemaParts();", "title": "" }, { "docid": "6273df538d369f9b5698e1405920870a", "score": "0.4867134", "text": "private String getSchemaName(Schema schema) {\n if (!schema.getPrimitive() && StringUtils.isNotEmpty(schema.getContent())) {\n try {\n SchemaWithName schemaWithName = objectMapper.readValue(schema.getContent(), SchemaWithName.class);\n if (StringUtils.isNotEmpty(schemaWithName.getType())) {\n if (schemaWithName.getType().toUpperCase(Locale.ROOT).equals(\"RECORD\")) {\n\n if (StringUtils.isNotEmpty(schemaWithName.getNamespace())) {\n return schemaWithName.getNamespace() + \".\" + schemaWithName.getName()\n + \"-\" + schema.getId();\n } else {\n // Add the ID as well to guarantee uniqueness\n return schemaWithName.getName() + \"-\" + schema.getId();\n }\n } else if (schemaWithName.getType().toUpperCase(Locale.ROOT).equals(\"OBJECT\")) {\n if (StringUtils.isNotEmpty(schemaWithName.getTitle())) {\n // Add the ID as well to guarantee uniqueness plus\n // replace '/' with '_' so async can parse references properly\n return (schemaWithName.getTitle() + \"-\" + schema.getId()).replace(\"/\", \"_\");\n }\n }\n }\n } catch (JsonProcessingException e) {\n log.warn(\"Could not serialize\");\n }\n }\n return schema.getId();\n }", "title": "" }, { "docid": "acc003629dbcb42b347b5d968f44b868", "score": "0.4860661", "text": "public void setSchema(java.lang.String schema)\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(SCHEMA$6);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SCHEMA$6);\n }\n target.setStringValue(schema);\n }\n }", "title": "" }, { "docid": "113ab342bcf41c7f563b95df19694281", "score": "0.4856831", "text": "String getS_id();", "title": "" }, { "docid": "43942e0c32fb5ab8e6fb447ef1a34848", "score": "0.48399004", "text": "public void setSchema(String schemaLocation){\n\n this.schemaLocation = schemaLocation;\n\n }", "title": "" }, { "docid": "3c816c623226dcff95b4a6bd17c07c98", "score": "0.48239094", "text": "String getSQLOrderBy( );", "title": "" }, { "docid": "0b465e3fee4b5415488345360224b298", "score": "0.48008466", "text": "public static String getSchema(String qualifiedName) {\n\t\tString schemaName = \"\";\n\t\tif (qualifiedName.contains(\".\"))\n\t\t\tschemaName = qualifiedName.split(\"\\\\.\")[0];\n\t\treturn schemaName;\n\t}", "title": "" }, { "docid": "ff3a3acfa36a9265692e19036ae8f554", "score": "0.4786765", "text": "public static final AutomatonRestPathSchema parseSchema(String path) {\n\n\t\tfinal String[] arr = StringUtils.split(path, '/');\n\t\tfinal int len = arr.length;\n\t\tfinal RestPathVar[] vars = new RestPathVar[len];\n\n\t\tfinal StringBuilder pattern = new StringBuilder(100);\n\t\tint varsIndex = 0;\n\t\tint index = 0;\n\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tfinal String val = arr[i].trim();\n\n\t\t\tif (val.length() < 1)\n\t\t\t\tcontinue;\n\n\t\t\tif (val.startsWith(\"${\")) {\n\t\t\t\tvars[varsIndex++] = new RestPathVar(index, val.substring(2,\n\t\t\t\t\t\tval.length() - 1));\n\t\t\t\tpattern.append(\"/[\\\\-\\\\$\\\\.\\\\^\\\\_\\\\[\\\\]\\\\(\\\\)0-9A-Za-z]+\");\n\t\t\t} else {\n\t\t\t\t// is a place holder\n\t\t\t\tpattern.append(\"/\").append(val);\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\n\t\tpattern.append(\"/*.*\");\n\n\t\treturn new AutomatonRestPathSchema(Arrays.copyOf(vars, varsIndex),\n\t\t\t\tnew RunAutomaton(new RegExp(pattern.toString()).toAutomaton()));\n\t}", "title": "" }, { "docid": "53c4ad1bff9d0a83cfe6c8c869552e49", "score": "0.477227", "text": "public Integer addSchema(Schema schema) throws RemoteException\n\t{\n\t\tInteger schemaID = (Integer)callMethod(\"addSchema\",new Object[] {schema});\n\t\treturn schemaID==0 ? null : schemaID;\n\t}", "title": "" }, { "docid": "d114c0eb91952afcc21bccb5ebabb21b", "score": "0.4758603", "text": "StringLiteral createStringLiteral();", "title": "" }, { "docid": "e3eea06dd940031c6292ca713af657b6", "score": "0.4743925", "text": "@Test(timeout = 4000)\n public void test010() throws Throwable {\n TableColumnInfo tableColumnInfo0 = new TableColumnInfo((String) null, (String) null, \"8\", \"vNW3W:JlyN3_\", 1452, (String) null, 1400, 1452, 2, 26, \"m .<+1m(]aA6v><=?/g\", \"*\", 26, 1400, \"DELETE FROM \");\n String string0 = DBUtil.getSchemaNameFromDbObject(tableColumnInfo0);\n assertNull(string0);\n }", "title": "" }, { "docid": "3a65fa66f3a4e90672a57756e92fe74d", "score": "0.4741654", "text": "public static SchemaLocation getSchemaLocationForSML101() {\n return SensorMLConstants.SML_101_SCHEMA_LOCATION;\n }", "title": "" }, { "docid": "245bda12f6d848119e4dfefbfc41277f", "score": "0.47366083", "text": "public Schema getSchema() {\n return _schema;\n }", "title": "" }, { "docid": "61501f333ff1507a948a2a5d14f1bb12", "score": "0.47342005", "text": "public Integer schemaId() {\n return this.schemaId;\n }", "title": "" }, { "docid": "f5f968baeb59d73a87e432a93c0e365a", "score": "0.47224623", "text": "Map<String, Map> getSchema();", "title": "" }, { "docid": "8dd2a8e142b8d258258cf1b8dcd2ade8", "score": "0.47221813", "text": "com.databricks.api.proto.mlflow.Service.StringClause getString();", "title": "" }, { "docid": "425e52939ca7fc672560b103679a3176", "score": "0.47096026", "text": "public static SchemaLocation getSchemaLocationForSWE101() {\n return SweConstants.SWE_101_SCHEMA_LOCATION;\n }", "title": "" }, { "docid": "c047e275b2052494a07a22777dfadbe2", "score": "0.47055027", "text": "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TableColumnInfo tableColumnInfo0 = new TableColumnInfo(\",.vAspmVbm$;W\", \"\", \"\", \"\", 1452, \"f*vM{Uz\", 16, 905, 1007, 93, \",.vAspmVbm$;W\", (String) null, (-1234), 2000, \"\");\n String string0 = DBUtil.getSchemaNameFromDbObject(tableColumnInfo0);\n assertEquals(\"\", string0);\n }", "title": "" }, { "docid": "4b7fc7d00ba68bb7d89c53238cf1aa67", "score": "0.46999902", "text": "public String schemaVersion() {\n return this.schemaVersion;\n }", "title": "" }, { "docid": "85de35427e99dd2522ef2388d598a304", "score": "0.46956116", "text": "public static SchemaLocation getSchemaLocationForGML321() {\n return GmlConstants.GML_32_SCHEMAL_LOCATION;\n }", "title": "" }, { "docid": "b7bb675bf21b4d813797744b37517867", "score": "0.46912467", "text": "static public org.apache.spark.sql.types.StructType schema () { throw new RuntimeException(); }", "title": "" }, { "docid": "bdc1a1ac39186e32fe9095cfbf63b960", "score": "0.4686203", "text": "public void setSchemaInstance(String schemaInstance) {\n\t\t\r\n\t}", "title": "" }, { "docid": "79e7b3384af3a6f1399c9ad0571afe77", "score": "0.46857178", "text": "static int get4bitConst(String s) {\n int val = getConst(s);\n if (val >= -1 && val < 14) {\n return 0;\n }\n if (val >= -126 && val < 128) {\n return 1;\n }\n if (val >= -32786 && val < 32786) {\n return 3;\n }\n return 5;\n }", "title": "" }, { "docid": "9f14c50071cdde3d119cb07e756d22dd", "score": "0.4673946", "text": "com.google.protobuf.ByteString getSerializedSchema();", "title": "" }, { "docid": "3bd60891d01e0312b2627fa319e4e870", "score": "0.46728396", "text": "public void setOpenSchemaKey(String key) {\r\n _openSchemaKey = Val.chkStr(key);\r\n}", "title": "" }, { "docid": "f5e87181fe86da815faea63172ec32d0", "score": "0.4659716", "text": "public String getConfigurationSchema()\n {\n return m_schema;\n }", "title": "" }, { "docid": "66042ad3b44b7ec59df148888f94f6ac", "score": "0.4659383", "text": "public void setSchemaName(String value) {\n setValue(SCHEMA_NAME, value);\n }", "title": "" }, { "docid": "7b4d8f13e52a0bbaf4255b351d4e9be3", "score": "0.46568108", "text": "public String getSchemaVersion() {\n return this.schemaVersion;\n }", "title": "" }, { "docid": "8abe5cea8caaabd379d71b9865d7fc1f", "score": "0.4634656", "text": "String getAutoIncrementValue();", "title": "" }, { "docid": "6c0bcf0343d18d6941507b86418e4ee3", "score": "0.46293017", "text": "public String getSchemaVersion() {\n return schemaVersion;\n }", "title": "" }, { "docid": "91417d377df575a56678bdfe0bcf17ee", "score": "0.46176255", "text": "@Test\n public void testOf() {\n BSNR nr = BSNR.of(\"000002091\");\n assertEquals(\"000002091\", nr.toString());\n }", "title": "" }, { "docid": "88951546e1947870c873801ca33900d4", "score": "0.4607828", "text": "@Override\n public Schema getSchema() {\n return schema$;\n }", "title": "" }, { "docid": "88951546e1947870c873801ca33900d4", "score": "0.4607828", "text": "@Override\n public Schema getSchema() {\n return schema$;\n }", "title": "" }, { "docid": "88951546e1947870c873801ca33900d4", "score": "0.4607828", "text": "@Override\n public Schema getSchema() {\n return schema$;\n }", "title": "" }, { "docid": "88951546e1947870c873801ca33900d4", "score": "0.4607828", "text": "@Override\n public Schema getSchema() {\n return schema$;\n }", "title": "" }, { "docid": "777d2027670545356485fafe365c3185", "score": "0.4590668", "text": "public Schema getSchema() {\n return this.schema;\n }", "title": "" }, { "docid": "1cf9b602ba8c52580cfa7f3f941fd103", "score": "0.45888945", "text": "public abstract SchemaParser getSchemaParser();", "title": "" }, { "docid": "d79fb744c23b3e56d605541e74920224", "score": "0.458481", "text": "com.google.protobuf.StringValue getDefaultDatabase();", "title": "" }, { "docid": "d1bc680821704203cb4734281d5dfd98", "score": "0.45800382", "text": "private void parseSchema(String schema) throws ArgsException\n {\n for (String element : schema.split(\",\"))\n if (element.length() > 0)\n parseSchemaElement(element.trim());\n }", "title": "" }, { "docid": "4777a0580f9f9bc779b7bc06380a05c6", "score": "0.45781752", "text": "public static String getSchema() {\n return \"CREATE TABLE \"\n + ResourceContract.TABLE_NAME + \" (\"\n + ResourceContract.COL_ID + \" INTEGER PRIMARY KEY AUTOINCREMENT,\"\n + ResourceContract.COL_PATH + \" VARCHAR NOT NULL,\"\n + ResourceContract.COL_DISCRIMINATORCOLUMN + \" VARCHAR\"\n + \");\";\n }", "title": "" }, { "docid": "e0e8689764476b9e065d6e3569b1801b", "score": "0.4577634", "text": "@Override\n SchemaDescriptor schema();", "title": "" }, { "docid": "d472c07b3e22cb93399a68f936300977", "score": "0.45765483", "text": "FooSchema(Prefixed access) {\n this.view = access;\n }", "title": "" }, { "docid": "eacc93e7263c82a1b680fc7daee0cd13", "score": "0.45764044", "text": "protected abstract String doGetCurrentSchemaName() throws SQLException;", "title": "" }, { "docid": "3f93509e2a74d6cc896281aa49b5f1c1", "score": "0.45703578", "text": "StringTypeSpecifier createStringTypeSpecifier();", "title": "" }, { "docid": "148c201cd125b06a0717658e4d87fcb7", "score": "0.4565489", "text": "public Object getKey()\n {\n return xsdSchema;\n }", "title": "" }, { "docid": "11a2ae8f390dfc5ea0f58e2ee2b2f8ac", "score": "0.45642304", "text": "public void setSchemaLocation(String schemaLocation) {\n\t\t\r\n\t}", "title": "" }, { "docid": "45d13fe596a5a083211ca90de79d2f7b", "score": "0.45608371", "text": "public ScText newSchemaNameText()\n {\n return newSchemaNameText(\"Schema Name\");\n }", "title": "" }, { "docid": "3b4cbf2b0d05e7c6d322321c15778e02", "score": "0.45584732", "text": "private static Map<Integer, Col> parseSchema(String schema) throws Exception {\n\t\tMap<Integer, Col> map = Maps.newHashMap();\n\t\tint index = 0;\n\t\tfor (String field : schema.split(\"\\\\s*,\\\\s*\")) {\n\t\t\tString[] fs = field.split(\"\\\\s*:\\\\s*\");\n\t\t\tif (fs.length != 2)\n\t\t\t\tthrow new Exception(\"invalid schema: \" + field);\n\t\t\tCol col = new Col(fs[0].trim(), fs[1].trim());\n\t\t\tmap.put(index++, col);\n\t\t}\n\t\treturn map;\n\t}", "title": "" }, { "docid": "eec5deaa876b9f60842845017f74f65a", "score": "0.45512286", "text": "static TString scalarOf(String value) {\n return tensorOf(NdArrays.scalarOfObject(value));\n }", "title": "" }, { "docid": "dc9465b4e84d80add16fba183f0ce092", "score": "0.45411497", "text": "String getScheme();", "title": "" }, { "docid": "dc9465b4e84d80add16fba183f0ce092", "score": "0.45411497", "text": "String getScheme();", "title": "" }, { "docid": "0be36fcdb5c520fd5bb08e3951869e0e", "score": "0.4538704", "text": "@Override\n public String createSchemaStatement(String schemaName) {\n return \"CREATE SCHEMA IF NOT EXISTS \" + maybeWrapInQoutes(schemaName);\n }", "title": "" }, { "docid": "6287f3b6f68a47c6eed3a4d2a436b6c4", "score": "0.4537728", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = \"\";\n SQLUtil.isDDL(\"\");\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"\");\n String[] stringArray0 = null;\n String[] stringArray1 = new String[7];\n stringArray1[0] = \"\";\n stringArray1[1] = \"\";\n stringArray1[2] = \"\";\n stringArray1[3] = \"\";\n String string1 = \"^c'`_(N:+gcl#\";\n SQLUtil.mutatesDataOrStructure(\"^c'`_(N:+gcl#\");\n SQLUtil sQLUtil0 = new SQLUtil();\n DBColumn[] dBColumnArray0 = new DBColumn[3];\n int int0 = (-2735);\n DefaultDBColumn defaultDBColumn0 = null;\n try {\n defaultDBColumn0 = new DefaultDBColumn(\"ly0q,QjOPsy=U9iM\", defaultDBTable0, (-2735), \"^c'`_(N:+gcl#\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Illegal column type format: ^c'`_(N:+gcl#\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "title": "" }, { "docid": "4ced657c7986e2833bbecf5d4d372458", "score": "0.45360163", "text": "public FeatureType getSchema(){\n \treturn DefaultFeatureType.EMPTY;\n }", "title": "" }, { "docid": "3930025a561aa2735eca3a08c42eb59c", "score": "0.4535575", "text": "void mo11407a(int i, String str);", "title": "" }, { "docid": "b01865035fabe23f9c09caa38e2d8a8a", "score": "0.45318258", "text": "public abstract Map<String, Mule> getSchema();", "title": "" }, { "docid": "4db659baaa1d209adc0721c76108acfd", "score": "0.45304143", "text": "String mo55065mI(String str);", "title": "" }, { "docid": "e3267ed7466400c9bb75eea4b0231bf5", "score": "0.45289004", "text": "private CycloneDxSchema.Version schemaVersion() {\n if (schemaVersion != null && schemaVersion.equals(\"1.0\")) {\n return CycloneDxSchema.Version.VERSION_10;\n } else {\n return CycloneDxSchema.Version.VERSION_11;\n }\n }", "title": "" }, { "docid": "c1329ba55f81f94aa54c63438f15bacf", "score": "0.45261306", "text": "void mo28400b(String str);", "title": "" }, { "docid": "8ccb45c675f4a74ad37a5afccb15340c", "score": "0.45261016", "text": "public int getSchemaVersion() {\r\n return iSchemaVersion;\r\n }", "title": "" }, { "docid": "bedfb9e20e35e20eb4b33525aab2678e", "score": "0.45226318", "text": "String getRealID(String t){\n\tint i = t.indexOf(\"_\");\r\n\treturn t.substring(0,i);\r\n}", "title": "" }, { "docid": "cb6b7cc8c013197053406dcd67514e9f", "score": "0.45097646", "text": "int getSymptomTypeValue();", "title": "" } ]
e75c39b88dec7601414f25f52abf54a7
this function scans the tree and prints the tree nodes horizontally, by inserting the nodes into a queue and working on one node each time, after printing the node the queue will dequeue the node from the queue.
[ { "docid": "a3bce8242c108dc8888bea86ea9699f2", "score": "0.0", "text": "public String BFS(Queue q, String ans){\n\t\twhile(!q.isEmpty()){//while the queue is not empty\n\t\t\tQNode d=q.dequeue();\n\t\t\tBTreeNode node=d.getNode();\n\t\t\tans=ans+d.getData();\n\t\t\tif(!node.isLeaf()){\n\t\t\t\tfor(int i=0; i<node.getChildren().length ; i++){\n\t\t\t\t\tif(node.getChildren()[i]!=null){\n\t\t\t\t\t\tq.enqueue(node.getChildren()[i]);\n\t\t\t\t\t\tif(node.numOfChildern()-1!=i)\n\t\t\t\t\t\t\tq.getLast().setData(\"|\");// '|' separation between two nodes that have a common parent.\n\t\t\t\t\t\tq.getLast().setHeight(d.getHeight()+1);//add height to the node\n\t\t\t\t\t\tq.getLast().setFather(node);//add the father of the node\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(q.getFirst()!=null && q.getFirst().getHeight()!=d.getHeight())//if the height of the nodes changed \n\t\t\t\t\tans=ans+\"#\"; // '#' separation between levels of the tree\n\t\t\t}\n\t\t\tif(q.getFirst()!=null && d.getFather()!=null && !q.getFirst().getFather().equals(d.getFather()) && d.getHeight()==q.getFirst().getHeight())//if the father of the node is different \n\t\t\t\tans=ans+\"^\";// '^' separation between nodes at the same level that do not have a common father\n\t\t}\n\t\treturn ans;\n\t}", "title": "" } ]
[ { "docid": "c74e6910d9e96e0bcfd69e9491f7a389", "score": "0.7706067", "text": "public void printTree(Node root) {\n\t if (root == null) //if the tree is empty then return\r\n\t return;\r\n\r\n\t Queue<Node> queue = new ArrayDeque<>(); //I make an arrayDeque so I can go through the tree more easily\r\n\r\n\t queue.add(root); //put the tree in the queue\r\n\t do { \r\n\t int size = queue.size(); //create a size int\r\n\t for (int i=0; i<size; i++) { //loop through said int\r\n\t Node node = queue.poll(); //poll will take the latest value in the queue and delete it\r\n\t System.out.print(\"-\" + node.key + \"-\"); //the printing looks weird but I'm really tired\r\n\t System.out.print(\" \");//adding a space\r\n\t if (node.left != null) //if there's anything to the left of our element\r\n\t queue.add(node.left);//it goes down here\r\n\t if (node.right != null)//same dealio\r\n\t queue.add(node.right);\r\n\t }\r\n\t System.out.println();\r\n\t } while (queue.size() > 0);//stop going when our size reaches 0\r\n\t}", "title": "" }, { "docid": "70e2ac0df623e17da28b6120b0de0a06", "score": "0.72022223", "text": "public void display()\n\t{\n\t\tQueue<Node> q = new LinkedList<Node>();\n\t\tq.add(node);\n\t\twhile(!q.isEmpty())\n\t\t{\n\t\t\tNode temp = q.remove();\n\t\t\tSystem.out.print(temp.getData()+\" --> \");\n\t\t\tif(temp.left != null)\n\t\t\t\tq.add(temp.left);\n\t\t\tif(temp.right != null)\n\t\t\t\tq.add(temp.right);\n\t\t}\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "2799f59d3a706c12c349a8fac25b066c", "score": "0.7074808", "text": "private void breadthPrint(){\n Queue<Node> q = new LinkedList<>();\n if (root==null) return;\n \n //Root could have a red child, which we treat as on the same level\n //Probably should have designed tree with this in mind\n /*\n *\n * We declared it was left leaning, so it would have made sense \n * to call PARENT nodes red to avoid extra fn calls\n *\n */\n if (root.getLeft() != null && root.getLeft().isRed()){\n q.add(root.getLeft());\n }\n q.add(this.getRoot());\n \n \n int levelLength = 1;\n int remaining = 1;\n int redCount = 0;\n \n while (!q.isEmpty()){\n if (remaining == 0){\n levelLength = 2*levelLength + redCount;\n remaining = levelLength;\n System.out.println();\n }\n \n Node n = q.remove();\n //Print red pairs as #-#\n if (n.isRed()){\n redCount++;\n System.out.print(\"[\" + n.getKey() + \",\");\n //Red ones don't drop the count\n addBlackLeft(q, n);\n n = q.remove(); //This is the partner key\n System.out.print(n.getKey()+ \"] \");\n remaining--;\n //Should extend Queue or add a good way to check grandchildren\n if(n.getRight()!=null){\n if(n.getRight().getLeft()!=null && n.getRight().getLeft().isRed()){\n q.add(n.getRight().getLeft());\n }\n q.add(n.getRight());\n }\n }else{\n //The red ones show up immediately before their partners\n //and both get dealt with in the previous case. So this case\n //is for a black node whose left child is black or null\n System.out.print(n.getKey()+ \" \");\n remaining--;\n addBlackLeft(q,n);\n }\n }\n }", "title": "" }, { "docid": "2671ae32d8fcac599136398cc2a419c8", "score": "0.7034172", "text": "public void printQueue(){\n\t\tNode<E> current = head;\n\t\twhile (current != null){\n\t\t\tSystem.out.println(current.getData());\n\t\t\tcurrent = current.getNext();\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "9f223b17a812cb3814772ff2e41c33c8", "score": "0.6939569", "text": "public void printAll() {\r\n Node<E> r = this.root();\r\n LinkedList<Node<E>> nodes = new LinkedList<>();\r\n nodes.addLast(r);\r\n \r\n int i = 1;\r\n \r\n while (!nodes.isEmpty()) {\r\n MyTree.Node<E> current = nodes.removeFirst();\r\n System.out.println(i + \"---------\" + current);\r\n i++;\r\n if (current.numChildren() == 0) continue;\r\n for (Node<E> n: current.children()) {\r\n nodes.addLast(n);\r\n //System.out.println(\"-----------------\" + n); \r\n }\r\n }\r\n }", "title": "" }, { "docid": "f21844169e7b88382d7d1a824792e897", "score": "0.6856917", "text": "public void printBFT() {\n Queue q = new Queue(50); //create empty queue\n System.out.print(\"BFT node sequence [ \");\n //BFT\n if(this == null){//Empty tree\n return;\n }else{//Non-empty tree\n q.enqueue(this); //pushBack root to queue q\n while(!q.isEmpty()){///while queue q isn't empty\n Node curNode = q.dequeue(); //current node = q.popFront\n System.out.print(curNode.data + \" \");\n //if current node.left exist, pushBack that node\n if(curNode.left != null) q.enqueue(curNode.left);\n //if current node.right exist, pushBack that node\n if(curNode.right != null) q.enqueue(curNode.right);\n }\n }\n \n System.out.println(\"]\");\n }", "title": "" }, { "docid": "7f1dfb4d79bd9d65092b0b895e125bfc", "score": "0.6817241", "text": "public void printTree() {\n TreeNode current = this;\n while (current != null) {\n System.out.print(current.val + \" -> \");\n current = current.next;\n }\n }", "title": "" }, { "docid": "7eb6b2f309d8571624bdccb85e75c6a2", "score": "0.6811773", "text": "void PrintLevelOrder() {\n\t\tQueue<Node> queue = new LinkedList<>();\n\t\t// in graph, visited had to be marked\n\t\tqueue.add(root);\n\t\twhile(!queue.isEmpty()) {\n\t\t\tNode tempNode = queue.poll();\n\t\t\tSystem.out.print(tempNode.data+\" \");\n\t\t\t\n\t\t\tif(tempNode.left != null) {\n\t\t\t\tqueue.add(tempNode.left);\n\t\t\t}\n\n\t\t\tif(tempNode.right != null) {\n\t\t\t\tqueue.add(tempNode.right);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "09cca0a0dd744e1837913cf9b01e210c", "score": "0.67993903", "text": "@Override\r\n\tpublic void print() {\n\t\tIterator<TreeNode> it = nodeList.iterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tTreeNode node = it.next();\r\n\t\t\tnode.print();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fb1e97140ba229386ea06dd71b956991", "score": "0.66931343", "text": "public void levelOrderNewLine() {\n Queue q = new LinkedList();\n int levelNodes =0;\n if(root==null) return;\n q.add(root);\n while(!q.isEmpty()){\n levelNodes = q.size();\n while(levelNodes>0){\n Node n = (Node)q.remove();\n System.out.print(\" \" + n.data);\n if(n.left!=null) q.add(n.left);\n if(n.right!=null) q.add(n.right);\n levelNodes--;\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "4a078982e93be6403c79a58f68a8dcda", "score": "0.6688538", "text": "public void printTree() {\n Tree<String> thisTree = new Tree<String>(getData(), getLeft(), getRight());\n printTreeHelper(Collections.singletonList(thisTree), 1, findMaxLevel(thisTree));\n }", "title": "" }, { "docid": "db0dc6cfb9fdaa85a8d3cdd1570ca978", "score": "0.6590384", "text": "private void breadthWiseTraversal(NodeTree root) {\n if(root==null){\n return;\n }\n NodeTree temp = root;\n queue.clear();\n ((LinkedList<NodeTree>) queue).add(temp);\n while(!queue.isEmpty()){\n NodeTree ref= queue.remove();\n System.out.print(ref.data+\" \");\n if(ref.left!=null) {\n ((LinkedList<NodeTree>) queue).add(ref.left);\n }\n if(ref.right!=null) {\n ((LinkedList<NodeTree>) queue).add(ref.right);\n }\n }\n }", "title": "" }, { "docid": "95d54321230931387fae9fd095eff47b", "score": "0.6583097", "text": "private void printTree(Node<T> current) {\n if (current == null) return;\n\n printTree(current.left);\n System.out.print(current.value + \",\");\n printTree(current.right);\n\n }", "title": "" }, { "docid": "8a43a1cb8331de9a16d7453aac46b087", "score": "0.6558812", "text": "public void printTree() {\n\t\ttextArea.append(\"---------------\\nTree is:\" + \"\\n\");\n\t\troot.printTree(textArea);\n\n\t\ttextArea.append(\"Number of animals: \" + root.countAnimals() + \"\\n\");\n\t\ttextArea.append(\"Longest path: \" + root.longestPath() + \"\\n\");\n\t\troot.printDuplicates(textArea);\n\t\ttextArea.append(\"---------------\\n\");\n\t\troot.displayTree(canvas);\n\n\t\troot.printQuestions(textArea);\n\t}", "title": "" }, { "docid": "e1c60f11708d02d72aaaeb1fab93ec87", "score": "0.6558308", "text": "private void displayTree(Graphics g, Node node, int x, int y, int horizatalSeperation)\r\n {\n g.setColor(Color.red);\r\n //g.fillOval(x-coOrd, y-coOrd, width, heigth)\r\n g.fillOval(x - circleRadius, y - circleRadius, 2 * circleRadius, 2 * circleRadius);\r\n \r\n //Store the coordinates of the node, to be used for searching\r\n NodeCoOrdinates[Counter][0] = x - circleRadius;\r\n NodeCoOrdinates[Counter][1] = y - circleRadius;\r\n NodeCoOrdinates[Counter][2] = node.data;\r\n \r\n Counter++; //count number of nodes\r\n \r\n //Write the data value on the node\r\n g.setColor(Color.green);\r\n g.drawString(node.data + \"\", x - 6, y + 4);\r\n \r\n if (node.left != null) \r\n {\r\n //using drawLine to draw line to the left node\r\n if(!TreePainted) \r\n {\r\n try\r\n { \r\n Thread.sleep(500);\r\n }\r\n catch(InterruptedException ex) \r\n {\r\n Logger.getLogger(SplayTreeGUI.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n\r\n //draw the line between two nodes at left subtree\r\n drawLineBetween2Circles(g, x - horizatalSeperation, y + verticalSeperation, x-14, y); \r\n\r\n //recursively draw the left subtree\r\n //decrease the horizontal and vertical gaps\r\n displayTree(g, node.left, x - horizatalSeperation, y + verticalSeperation, horizatalSeperation/2); \r\n }\r\n if (node.right != null) \r\n {\r\n //using drawLine to draw line to the right node\r\n if(!TreePainted) \r\n {\r\n try\r\n {\r\n Thread.sleep(500);\r\n }\r\n catch (InterruptedException ex)\r\n {\r\n Logger.getLogger(SplayTreeGUI.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n\r\n //draw the line between two nodes at right subtree\r\n drawLineBetween2Circles(g, x + horizatalSeperation, y + verticalSeperation, x+14, y); \r\n \r\n //recursively draw the right subtree\r\n //decrease the horizontal and vertical gaps\r\n displayTree(g, node.right, x + horizatalSeperation, y + verticalSeperation, horizatalSeperation/2); \r\n }\r\n }", "title": "" }, { "docid": "de3b83e899beded464007ee7b1bc97e8", "score": "0.6530477", "text": "private static void printTree(BinaryTree<HuffmanUnit> tree){\n if (tree == null) return;\n // Recurse through children\n printTree(tree.getLeft());\n printTree(tree.getRight());\n System.out.print(tree.getData().getF() + \" \");\n\n }", "title": "" }, { "docid": "cb289e372197500b90f654ece1704654", "score": "0.65272677", "text": "public void printTree(){\n List<List<String>> listOfLists = new ArrayList<>();\n addInfo(0, listOfLists);\n\n for(List<String> list : listOfLists) {\n StringBuilder sb = new StringBuilder();\n for(String s : list)\n sb.append(s).append(\", \");\n\n System.out.print(sb + \"\\r\\n\");\n }\n }", "title": "" }, { "docid": "74b4e8dc8f81f6742bf43da08f288831", "score": "0.6516293", "text": "public void displayTree()\n\t{\n\t\tSystem.out.println(\" \" + dataArray[1]);\n\t\tSystem.out.println(\" |\");\n\t\tSystem.out.println(\" \" + dataArray[2] + \"---------------------^-----------------------\" + dataArray[3]);\n\t\tSystem.out.println(\" | |\");\n\t\tSystem.out.println(\" \" + dataArray[4] + \"-----------^----------\" + dataArray[5] + \" \" + dataArray[6] + \"-----------^----------\" + dataArray[7]);\n\t\tSystem.out.println(\" | | | |\");\n\t\tSystem.out.println(\" \" + dataArray[8] + \"----^----\" + dataArray[9] + \" \" + dataArray[10] + \"----^----\" + dataArray[11] + \" \" + dataArray[12] + \"----^----\" + dataArray[13] + \" \" + dataArray[14] + \"----^----\" + dataArray[15]);\n\t\tSystem.out.println(\" | | | | | | | |\");\n\t\tSystem.out.println(dataArray[16] + \"--^--\" + dataArray[17] +\" \" + dataArray[18] + \"--^--\" + dataArray[19] + \" \" + dataArray[20] + \"--^--\" + dataArray[21] + \" \" + dataArray[22] + \"--^--\" + dataArray[23] + \" \" + dataArray[24] + \"--^--\" + dataArray[25] + \" \" + dataArray[26] + \"--^--\" + dataArray[27] + \" \" + dataArray[28] + \"--^--\" + dataArray[29] + \" \" + dataArray[30] + \"--^--\" + dataArray[31]);\n\t\t\n\t}", "title": "" }, { "docid": "a3dca2111339d10e982d35b02f9dd07a", "score": "0.6496769", "text": "public String printSTree(TreeNode root){\n TreeNode parent;\n int level = 0;\n if(root == null)\n return \"\";\n Queue<TreeNode> bfsTree = new Queue();\n\n bfsTree.enqueue(root);\n s.append(root.toString()+\"\\n\");\n\n while(bfsTree.front != null){\n parent = bfsTree.dequeue();\n if(parent.left != null)\n {\n bfsTree.enqueue(parent.left);\n s.append(\"\" + parent.left.toString());\n }\n if(parent.right != null)\n {\n bfsTree.enqueue(parent.right);\n s.append(\" \" + parent.right.toString());\n }\n level++;\n /*\n * bitwise operator to check if the number\n * of elements in the tree is of the power 2.\n * */\n\n if( (bfsTree.length() & (bfsTree.length() - 1)) == 0)\n s.append(\"\\n\");\n else\n s.append(\"\\t\");\n }\n return s.toString();\n }", "title": "" }, { "docid": "f443a5cc383c7e36cf9d660d7f8f042e", "score": "0.64939505", "text": "public void printTree(){\n System.out.println(\"Root is: \"+ vertices.get(root));\n System.out.print(\"Edges: \");\n for(int i = 0; i < parent.length; i++){\n if(parent[i]!= -1){\n //display an edge\n System.out.println(\"(\"+ vertices.get(parent[i])+\", \"+vertices.get(i)+\") \");\n }\n \n }\n System.out.println();\n }", "title": "" }, { "docid": "4c8b7283332aaafd677ee43555384e81", "score": "0.6473108", "text": "public String printTreeDiagram() {\r\n\t\tString display = \" \";\r\n\t\tQueue<BTSNode<E>> queuedList = new LinkedList<BTSNode<E>>();\r\n\t\tqueuedList.add(root);\r\n\t\tqueuedList.add(null);\r\n\t\twhile (!queuedList.isEmpty()) {\r\n\t\t\tBTSNode<E> temporaryNode = queuedList.poll();\r\n\t\t\tif(temporaryNode == null) {\r\n\t\t\t\tif(!queuedList.isEmpty()) {\r\n\t\t\t\t\tqueuedList.add(null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(temporaryNode.getLeft() != null) {\r\n\t\t\t\t\tqueuedList.add(temporaryNode.getLeft());\r\n\t\t\t\t}\r\n\t\t\t\tif(temporaryNode.getRight() != null) {\r\n\t\t\t\t\tqueuedList.add(temporaryNode.getRight());\r\n\t\t\t\t}\r\n\t\t\t\tdisplay += temporaryNode.getKey().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn display;\r\n\t}", "title": "" }, { "docid": "486ab7df88d5cffb407b56d117e91b53", "score": "0.64097214", "text": "public void print() {\n \n currentLeftEdge = topLeft;\n currentNode = currentLeftEdge;\n \n for(int i= 0; i < d; i++) {\n for(int j= 0; j < d; j++) {\n // currentNode.temperature = (double)Math.round(currentNode.temperature * 100) / 100;\n System.out.print( String.format(\"%.2f\", currentNode.temperature)+\" \");\n currentNode = currentNode.rightNode;\n }\n //Print new line and update our current pointers for traversing lattice.\n System.out.print(\"\\n\");\n currentNode = currentLeftEdge.bottomNode;\n currentLeftEdge = currentNode;\n }\n }", "title": "" }, { "docid": "6c457cd7b3340a87ade8eee8a929dde3", "score": "0.64043766", "text": "public void print() {\n\t\tprintTreeNode(\"\", this.root);\n\t}", "title": "" }, { "docid": "023b87c6caaddafe61703c8bf22bc2c9", "score": "0.6384054", "text": "public void printTree() \n\t{\n\t\trecursivePrint(root, 0); //calls the recursive print method\n\t}", "title": "" }, { "docid": "ec7f52c0bc926ec4a6897eb6301e7cf9", "score": "0.63776195", "text": "public void printNode(){\n\n Node current = root;\n\n while (current != null){\n\n System.out.print(current.value+\" \");\n\n current = current.next;\n }\n\n System.out.println();\n }", "title": "" }, { "docid": "c8ba721655f5cd26a3a88b4c54056bcd", "score": "0.637361", "text": "public static void print() {\r\n printInorder(treeRoot);\r\n System.out.println();\r\n }", "title": "" }, { "docid": "2b2172e39e44194b750e140555f56871", "score": "0.6368316", "text": "public void print() { root.printNode(); }", "title": "" }, { "docid": "cdcc19f54ee380f3e218834705c1d207", "score": "0.63634294", "text": "public void printTree(){\n\t\tprintChildren(root);\n\t}", "title": "" }, { "docid": "37db8feedc58a9c1c7ea20d6f685c690", "score": "0.6340847", "text": "public void printTree()\n {\n printTree(root);\n System.out.println();\n }", "title": "" }, { "docid": "081d90d1901d325fe4744173d30e0521", "score": "0.6332151", "text": "public void printBalancedTree() {\r\n root.printTree();\r\n }", "title": "" }, { "docid": "64138f645af2b3d2be14b6d26c18b621", "score": "0.6332066", "text": "public void printTree(Node node){\t\t\n\t\tif(node == null){\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(node.getData());\t\t\n\t\t// check if leaf\n\t\tif(node.isLeaf()){\n\t\t\treturn;\n\t\t}\t\t\t\t\n\t\tprintTree(node.getLeft());\n\t\tprintTree(node.getRight());\n\t\t\n\t}", "title": "" }, { "docid": "be73d0920310e0b9e7cbc51402aa8d59", "score": "0.63270074", "text": "private static void printNodes(BinaryTree<String> btPointer, String builder, PrintWriter outstream){\n\t\t// if the tree isn’t null\n\t\tif (btPointer != null) { \n\t\t\t// prints the data to file\n\t\t\toutstream.print(builder+\" \" + btPointer.getData() + \"\\n\"); \n\t\t\n\t\t\t// gets left and adds \"Y\"\t\n\t\t\tprintNodes(btPointer.getLeft(), builder.concat(\"Y\"), outstream); \n\t\t\t// gets right and adds \"N\"\n\t\t\tprintNodes(btPointer.getRight(), builder.concat(\"N\"), outstream); \n\t\t}\n\t}", "title": "" }, { "docid": "5d6da00aa3e23a5ed7836242d666ae5e", "score": "0.63146406", "text": "public void display(){\n System.out.print(\"\\nQueue = \");\n if (size == 0){\n System.out.print(\"Empty\\n\");\n return ;\n }\n Node ptr = front;\n while (ptr != rear.getLink()){\n System.out.print(ptr.getData()+\" \");\n ptr = ptr.getLink();\n }\n System.out.println(); \n }", "title": "" }, { "docid": "3ae655a60147fddcaac69732f162a2ed", "score": "0.63076645", "text": "private static <T> void printTree(List<Node<T>> nodes, int level, int maxLevel)\n {\n if(nodes.isEmpty() || nodes.stream().allMatch(Objects::isNull)){\n return;\n }\n\n int floor = maxLevel - level;\n int heightOfLinesBetweenLevel = (int)Math.pow(2, floor - 1);\n int headSpacesCountBeforeChar = (int)Math.pow(2, floor) - 1;\n int betweenSpacesCountBetweenChilds = (int)Math.pow(2, floor + 1) - 1;\n\n // print space of the line before print any char\n printSpace(headSpacesCountBeforeChar);\n\n // print the char and prepare it's child nodes\n List<Node<T>> childNodes = new ArrayList<>();\n for(Node<T> node : nodes){\n if(node != null){\n System.out.print(node.getValue());\n childNodes.add(node.getLeft());\n childNodes.add(node.getRight());\n }\n // add null to the list making it like a full tree\n else{\n childNodes.add(null);\n childNodes.add(null);\n System.out.print(space);\n }\n printSpace(betweenSpacesCountBetweenChilds);\n }\n System.out.println(\"\");\n\n // print forward/backward slashes\n for(int i = 1; i <= heightOfLinesBetweenLevel; i++){\n for(int j = 0; j < nodes.size(); j++){\n printSpace(headSpacesCountBeforeChar - i);\n\n if(nodes.get(j) == null){\n printSpace(2 * heightOfLinesBetweenLevel + i + 1);\n continue;\n }\n\n if(nodes.get(j).getLeft() != null){\n System.out.print(forwardSlash);\n }\n else{\n printSpace(1);\n }\n\n printSpace(2 * i - 1);\n\n if(nodes.get(j).getRight() != null){\n System.out.print(backwardSlash);\n }\n else{\n printSpace(1);\n }\n\n printSpace(2 * heightOfLinesBetweenLevel - i);\n }\n System.out.println(\"\");\n }\n\n printTree(childNodes, level + 1, maxLevel);\n }", "title": "" }, { "docid": "85812694ecee87eeba40e813c7f64c66", "score": "0.6296148", "text": "@Override\n\tpublic void print() {\n\t\tSystem.out.print(\" | \");\n\t\tfor (Node rear = front; rear != null; rear = rear.next) {\n\t\t\tSystem.out.print(rear.data);\n\t\t\tSystem.out.print(\"<--\");\n\t\t}\n\t\tSystem.out.print(\"null\");\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "56dd1a4a60777e3d52759f093bc375f4", "score": "0.62954974", "text": "static void levelOrder(Node root){\n Queue<Node> queue = new LinkedList<Node>();\r\nqueue.add(root);\r\nwhile(queue.peek()!=null)\r\n{\r\nNode node =queue.remove();\r\nSystem.out.print(\"\"+node.data+\" \" );\r\nif(node.left!=null)\r\nqueue.add(node.left);\r\nif(node.right!=null)\r\nqueue.add(node.right);\r\n}\r\n\r\n }", "title": "" }, { "docid": "9d822b7c04294d9649333da28f7b3366", "score": "0.6294743", "text": "public void draw(){\n Visitor visitor = new Visitor() {\n public void visit(Stack path) {\n int n = path.size();\n while (n-- > 0)\n System.out.print(\" \");\n System.out.println((path.peek()).toString());\n }\n };\n root.inOrder(visitor, new Stack());\n }", "title": "" }, { "docid": "9d9ec7fbe76e3bb8aa8202c9f1a38f30", "score": "0.6294085", "text": "public void printTree() {\n\t\tprintTree(root);\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "eead64f58459bcfb8429bdfb25d97bea", "score": "0.6279118", "text": "private void printPreorderRecursive(TreeNode<String> current){\n\t\tif (current == null)\n\t\t\treturn;\n\t\t\t\n\t\tSystem.out.print(current.getValue() + \" \"); // print val\n\t\tprintPreorderRecursive(current.getLeft());\n\t\tprintPreorderRecursive(current.getRight());\n\t}", "title": "" }, { "docid": "516041e4e6967086ab4a234e13132cab", "score": "0.62597483", "text": "public void printTree() {\r\n\t\t\tthis.printTree(this.root);\r\n\t}", "title": "" }, { "docid": "848acb4bd39d4b11414d822720946c39", "score": "0.6250034", "text": "public void display(){\n\t\tNode tmp=front;\n\t\twhile(tmp!=null){\n\t\t\tSystem.out.print(tmp.data+\" \");\n\t\t\ttmp=tmp.next;\n\t\t}\n\t}", "title": "" }, { "docid": "05e321fc56e5e437d0ece416bac43635", "score": "0.6225457", "text": "void bfs() {\n\n LinkedList<TreeNode> queue = new LinkedList<>();\n queue.add(root);\n while (!queue.isEmpty()) {\n //visit node\n TreeNode node = queue.pollFirst();\n System.out.println(node.value);\n\n if (node.left != null)\n queue.addLast(node.left);\n if (node.right != null)\n queue.addLast(node.right);\n\n }\n }", "title": "" }, { "docid": "9924985ded4640b1f4d6cb5d3f271a5e", "score": "0.6224376", "text": "@Override\n\tpublic void printNodes() {\n\n\t}", "title": "" }, { "docid": "9b68bf90312de584dd5791f286581f63", "score": "0.6224243", "text": "public void printTree( ) {\n if(isEmpty())\n System.out.println( \"Empty tree\" );\n else\n printTree( root );\n }", "title": "" }, { "docid": "f77b6516bd82ebd7fdcb8c03d00b0cac", "score": "0.62163067", "text": "private void printTree(Node node)\n {\n if (node == null)\n return;\n \n printTree(node.leftChild);\n System.out.print(node.value + \" \");\n printTree(node.rightChild);\n }", "title": "" }, { "docid": "93639343d23db7f14817548feb865f63", "score": "0.6214698", "text": "public void printNode() {\n\t\t\tif (left!=null) { left.printNode(); }\n\t\t\tSystem.out.println(this);\n\t\t\tif (right!=null) { right.printNode(); }\n\t\t}", "title": "" }, { "docid": "7d2016987bde8bb21bf9d5c727e4c4f7", "score": "0.6206745", "text": "private static void printTree(Node root) \n\t{ \n\t\tprintHelper(root, 0); \n\t}", "title": "" }, { "docid": "aa20e20c09d36f5574f995207ca637a3", "score": "0.6196145", "text": "public void printTree() {\n super.printTree(this); //argument is root node\n }", "title": "" }, { "docid": "c8a4c6ba1a720f140f444d815180fe26", "score": "0.6183798", "text": "public void display() {\n\t\tNode ptr=front;\r\n\t\twhile(ptr!=null)\r\n\t\t{\r\n\t\t\tSystem.out.print(ptr.data+\" \");\r\n\t\t\tptr=ptr.link;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cf6b71ddcea6dda90779152ce1458e17", "score": "0.61772746", "text": "@Override\n public String print( ) { \n String result = nodeTop.getInfo().toString() + \"->\"; \n Node<T> tmp = nodeTop.nextLink; \n int count = 1; \n while (tmp != null){\n \n result = tmp.getInfo().toString() + \"->\" +result ;\n count++;\n if(count % 20 == 0){\n result = \"\\n\" +result;\n }\n tmp = tmp.getNext(); \n \n }\n return result;\n }", "title": "" }, { "docid": "92e8be8b4959faa5ed1bd131453fd770", "score": "0.6171336", "text": "private void print(Node x, int level) {\n\tfor (int i = 0; i < level; i++) \n\t System.out.print(\" | \");\n\t \n\tif (x != null) {\n\t // print the node\n\t System.out.println(x.item);\n\t \n\t // print all the left subtree\n\t print(x.left, level+1);\n\n\t for (int i = 0; i < level; i++) \n\t\tSystem.out.print(\" | \");\n\t System.out.println(\"(\" + level + \")\");\n\t \n\t // print all the right subtree\t \n\t print(x.right, level+1);\n\t}\n\telse \n\t System.out.println(\"*\");\n }", "title": "" }, { "docid": "7d4664714dc4b340f715fd8224b27c99", "score": "0.6152565", "text": "private void drawTree(Graphics g) {\r\n\t\tfor (int i = 0; i < size; i++)\r\n\t\t\tdrawNode(tree[i], g);\r\n\t}", "title": "" }, { "docid": "816b7d2fdd62aa8c2ab0927f839afe34", "score": "0.6140737", "text": "public void print(){\n\t\tif (root!=null){\n\t\t\troot.print();\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "f7b7014ea0efeb5ae1c38e98921699ee", "score": "0.6136489", "text": "private void printFamily(Node n){\n Queue<Node> nodes = new ArrayDeque<Node>();\n if(n!=null) nodes.add(n);\n while(!nodes.isEmpty()){\n Node toPrint = nodes.poll();\n System.out.print(toPrint);\n System.out.print(\"h(\"+this.height(toPrint)+\") \");\n if(toPrint.left != null) nodes.add(toPrint.left);\n if(toPrint.right != null) nodes.add(toPrint.right);\n }\n System.out.println();\n }", "title": "" }, { "docid": "c4cacbd3a9d8308066931d5ed31a682c", "score": "0.613116", "text": "public void printNodes(StringBuilder buf) {\n List<OpDepGraphNode> ns = new ArrayList<OpDepGraphNode>();\n for (OpDepGraphNode node : getAllNodes()) {\n ns.add(node);\n }\n sortNodes(ns);\n \n buf.append(\"Nodes(\" + ns.size() + \"):\\n\");\n for (OpDepGraphNode node : ns) {\n buf.append(node.toString());\n buf.append(\"\\n\");\n }\n }", "title": "" }, { "docid": "431e6f8c9ae49282137488e05fa85217", "score": "0.61262655", "text": "public void printTree() {\n if (root == null)\n System.out.println(\"Empty tree\");\n else\n printTree(root);\n }", "title": "" }, { "docid": "5aa8403951a0f7db990c79f715745c5b", "score": "0.6124061", "text": "private void print() {\n print(root, 0);\n }", "title": "" }, { "docid": "e06dc6d9f4b1230a81bc4e19962ec796", "score": "0.6123467", "text": "public void printInOrder() throws IOException {\r\n printInOrder(new Node(root));\r\n }", "title": "" }, { "docid": "0218d39bddb2b109b7d75d59607ea673", "score": "0.612342", "text": "static void printTree(int q, int node, int n) \n{ \n\twhile (q-- > 0) \n\t{ \n\t\t\n\t\t// Calculating range of node in segment tree \n\t\tint lf = tin[node]; \n\t\tint rg = tout[node]; \n\t\tint res = query(1, 1, n, lf, rg); \n\t\tSystem.out.print(\"sum at node \" + node \n\t\t\t\t\t\t\t+ \": \" + res +\"\\n\"); \n\t\tnode++; \n\t} \n}", "title": "" }, { "docid": "9da4779681676e3f2c858cca351f40fe", "score": "0.6121744", "text": "public void printTree( )\n {\n if( isEmpty( ) )\n System.out.println( \"Empty tree\" );\n else\n printTree( root );\n }", "title": "" }, { "docid": "9da4779681676e3f2c858cca351f40fe", "score": "0.6121744", "text": "public void printTree( )\n {\n if( isEmpty( ) )\n System.out.println( \"Empty tree\" );\n else\n printTree( root );\n }", "title": "" }, { "docid": "39f12455253d68c1580345a491fc0932", "score": "0.61178124", "text": "public void traverse()\n\t{\n\t\tfor(Node n = bottom; n !=null; n = n.next)\n\t\t{\n\t\t\tSystem.out.print(\" \" +n.data);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\t\n\t}", "title": "" }, { "docid": "cdd83ee87b9c988029e59114ea06002f", "score": "0.6117234", "text": "public void Display() {\n traverse(root);\n \n // Reset the counter.\n counter = 0;\n \n while (counter < 67) {\n // Add the lines again.\n buffer = buffer + \"-\";\n counter++;\n }\n \n // Reset the counter\n counter = 0;\n \n // Add one more line to the buffer, to make things even.\n buffer = buffer + \"|\";\n \n // Output the buffer to the console.\n System.out.println(buffer);\n \n // Output the word count to the console.\n System.out.println(\"There are \" + wordCount(root) + \" words in\"\n + \" the tree\");\n }", "title": "" }, { "docid": "8dbacb7ebb099ebc011b2a965b6e6c93", "score": "0.61121076", "text": "static void printInOrderUsingStack(Node root) {\r\n\t\tif(root == null)\r\n\t\t\treturn;\r\n\t\tStack<Node> stack = new Stack<Node>();\r\n\t\tstack.push(root);\r\n\t\tNode tmp = root.left;\r\n\t\twhile(tmp!=null) {\r\n\t\t\tif(tmp.left!=null) {\r\n\t\t\t\tstack.push(tmp);\r\n\t\t\t\ttmp = tmp.left;\r\n\t\t\t\tcontinue;\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.print(tmp.val+\" \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!stack.isEmpty()) {\r\n\t\t\t\tNode cur = stack.pop();\r\n\t\t\t\tSystem.out.print(cur.val+\" \");\r\n\t\t\t\ttmp = cur.right;\r\n\t\t\t}else // only reaches here after hitting all the elements\r\n\t\t\t\ttmp = null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c1740b3aeb877b2f4fe2628d788606a5", "score": "0.61112344", "text": "public void listPrint(){\n for(Node x = left; x != null; x = x.next){\n StdOut.println(\"Item: \" + x.item + \" \" + x);\n }\n }", "title": "" }, { "docid": "ae42b4f56e4ab6a81f5570abc30d3f0d", "score": "0.6108644", "text": "public static void main(String[] args) {\n\n Util.print(\"main\", \"start with three nodes\");\n Node root = new Node(42);\n Util.insert_recurse(root, new Node(10));\n Util.insert_recurse(root, new Node(80));\n Util.print(\"main\", \"show tree\");\n Util.printPreorder(root);\n\n Util.print(\"main\", \"make it unbalanced, do not correct as we go.\");\n Util.insert_recurse(root, new Node(85));\n Util.insert_recurse(root, new Node(90));\n Util.insert_recurse(root, new Node(89));\n Util.insert_recurse(root, new Node(99));\n Util.print(\"main\", \"show unalanced tree\");\n Util.printPreorder(root);\n\n Util.print(\"main\", \"Now do the same with red black corrections. First three\");\n root = new Node(42);\n Util.insert(root, new Node(10));\n Util.insert(root, new Node(80));\n Util.print(\"main\", \"show tree\");\n Util.printPreorder(root);\n Util.print(\"main\", \"make it unbalanced, but fix tree as we go.\");\n Util.insert(root, new Node(85));\n Util.printPreorder(root);\n Util.insert(root, new Node(90));\n //Util.insert(root, new Node(89));\n //Util.insert(root, new Node(99));\n Util.print(\"main\", \"show balanced tree\");\n Util.printPreorder(root);\n\n Util.insert(root, new Node(86 ));\n Util.print(\"main\", \"show balanced tree\");\n Util.printPreorder(root);\n \n \n\n }", "title": "" }, { "docid": "87b00ae2e5d39e8ebb6ea0a248a2203d", "score": "0.6099258", "text": "@Override\r\n\tpublic String toString() {\r\n\t\tQueue<List<Node>> queue = new LinkedList<List<Node>>();\r\n\t\tqueue.add(Arrays.asList(root));\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tQueue<List<Node>> nextQueue = new LinkedList<List<Node>>();\r\n\t\t\twhile (!queue.isEmpty()) {\r\n\t\t\t\tList<Node> nodes = queue.remove();\r\n\t\t\t\tsb.append('{');\r\n\t\t\t\tIterator<Node> it = nodes.iterator();\r\n\t\t\t\twhile (it.hasNext()) {\r\n\t\t\t\t\tNode node = it.next();\r\n\t\t\t\t\tsb.append(node.toString());\r\n\t\t\t\t\tif (it.hasNext())\r\n\t\t\t\t\t\tsb.append(\", \");\r\n\t\t\t\t\tif (node instanceof BPTree.InternalNode)\r\n\t\t\t\t\t\tnextQueue.add(((InternalNode) node).children);\r\n\t\t\t\t}\r\n\t\t\t\tsb.append('}');\r\n\t\t\t\tif (!queue.isEmpty())\r\n\t\t\t\t\tsb.append(\", \");\r\n\t\t\t\telse {\r\n\t\t\t\t\tsb.append('\\n');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tqueue = nextQueue;\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "8ae5a8e681e171fa1aa17789a959df1f", "score": "0.6091603", "text": "public void display_nodes() {\r\n\t\tint levels = (int)Math.round( ( Math.log10(nodes.length) / Math.log10(2) ) );\r\n\t\tfor (int i = 0; i < levels; i++) {\r\n\t\t\tfor (int j = (int)Math.pow(2, i)-1; j < (int)Math.pow(2, i+1)-1; j++) {\r\n\t\t\t\tSystem.out.print(nodes[j] + \" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bd3b6201d53efaf2182195c40757669f", "score": "0.6088023", "text": "public void printTree() {\r\n printNode();\r\n if (getlChild() != null) {\r\n getlChild().printTree();\r\n }\r\n if (getrChild() != null) {\r\n getrChild().printTree();\r\n }\r\n }", "title": "" }, { "docid": "78aa25c1b99ce825a789711507d848ab", "score": "0.6086186", "text": "public void printQueue() \n {\n for(int i = 0; i < this.numElts; i++)\n {\n System.out.print(this.data[i] + \" \");\n }\n }", "title": "" }, { "docid": "35d7b9eae77af36aeae937831ba5ab90", "score": "0.6081396", "text": "private static <T> void printTree(Node<T> root) {\n\t\t\n\t\t if(root == null)\n\t\t\t return;\n\n\t\t System.out.println(root.val);\n\t\t \n\t\t printTree(root.left);\n\t\t if(root.right != null)\n\t\t\t System.out.println(\"right\");\n\t\t printTree(root.right);\n\t\t\n\t}", "title": "" }, { "docid": "14af19d32f54d558cff5635751e4120f", "score": "0.6074814", "text": "public void print(){\n Node<E> current = first;\n\n while (current != null){\n System.out.print(current.getInfo() + \" \");\n current = current.getNext();\n }\n System.out.println();\n }", "title": "" }, { "docid": "abfd62dadc29210949af9c966e8f074a", "score": "0.6070621", "text": "public void traverseTheTree()\r\n {\r\n Iterator it = levelOrderIterator();\r\n while (it.hasNext())\r\n {\r\n System.out.print(it.next()+ \" \");\r\n }\r\n }", "title": "" }, { "docid": "83453cb94f8bbf81085df71b7b5d416e", "score": "0.60694426", "text": "public void displayTree(Widget w) {\n PrintWriter pw = new PrintWriter(System.out, true);\n displayTree(pw, w);\n pw.close();\n }", "title": "" }, { "docid": "46a2dd61b93613050fc04abf37f4a37c", "score": "0.60647315", "text": "public static void printTree(Node head) {\n\t\tSystem.out.println(\"Binary Tree:\");\n\t\tprintInOrder(head, 0, \"H\", 17);\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "be8c5a790f6dc235023e03dd5d84439d", "score": "0.6059151", "text": "public void print() {\n\tprint(root,0);\n }", "title": "" }, { "docid": "9166cd73fbe86485d59bc60baddcad2a", "score": "0.6057254", "text": "public void printPreOrder() {\n\t\tSystem.out.print(this);\n\t\t\n\t\tif(this.left != null)\n\t\t\tthis.left.printPreOrder();\n\t\t\n\t\tif(this.right != null)\n\t\t\tthis.right.printPreOrder();\n\t}", "title": "" }, { "docid": "639d6d4e5131dbee2cee4501e6b6b399", "score": "0.605307", "text": "void printPreorder(Node node)\r\n {\r\n if (node == null)\r\n return;\r\n \r\n /* first print data of node */\r\n System.out.print(node.value + \" \");\r\n \r\n /* then recur on left sutree */\r\n printPreorder(node.left);\r\n \r\n /* now recur on right subtree */\r\n printPreorder(node.right);\r\n }", "title": "" }, { "docid": "bac65b9c62c881fe56cf2ca1e4271c43", "score": "0.6049179", "text": "@Override\n public void printTree() {\n rootNode.printNode(\"\");\n }", "title": "" }, { "docid": "90773ed3a67b3baa30112010c2087a70", "score": "0.60471743", "text": "public void printLevelOrder() {\r\n Queue<AVLNode<Key, Value>> queue = new ArrayDeque<AVLNode<Key, Value>>();\r\n queue.add(root);\r\n while (!queue.isEmpty()) {\r\n AVLNode<Key, Value> n = queue.remove();\r\n System.out.println(n);\r\n if (n.left != null) queue.add(n.left);\r\n if (n.right != null) queue.add(n.right);\r\n }\r\n System.out.println();\r\n }", "title": "" }, { "docid": "34660bf2084b366dbef13a5d35ba3db2", "score": "0.6045065", "text": "public void traverse() {\n\t\tSystem.out.printf(\"The linked list has %d nodes\\n\", size);\n\t\tfor(StringNode ptr = front; ptr != null; ptr = ptr.getNext()) {\n\t\t\tSystem.out.printf(\" %s -> \", ptr.getData());\n\t\t}\n\t\tSystem.out.printf(\"\\\\ \\n\");\n\t}", "title": "" }, { "docid": "c961ca18b2edd6a4c46621c783f68184", "score": "0.6042079", "text": "public void printTreeInOrder(Node node){\n\t\tif(node == null){\n\t\t\treturn;\n\t\t}\t\t\n\t\tprintTreeInOrder(node.getLeft());\n\t\tSystem.out.println(node.getData());\n\t\tprintTreeInOrder(node.getRight());\n\t\t\n\t}", "title": "" }, { "docid": "d1752631521582dc4d77262e1d7c587e", "score": "0.6031193", "text": "void levelOrderTraversel(Node root){\n Queue<Node> q = new LinkedList<>();\n q.add(root);\n Node temp;\n while(!q.isEmpty()){\n temp=q.poll();\n System.out.print(temp.data+\" \");\n if(temp.left!=null)\n q.add(temp.left);\n if(temp.right!=null)\n q.add(temp.right);\n }\n }", "title": "" }, { "docid": "285b88f551f771ebdb273ad1fc790847", "score": "0.60267603", "text": "private static void printTree(Node root) {\n System.out.println(\"\\nTotal nodes: \" + root.sizeRecursively());\r\n System.out.println(\"Pages created: \" + pagesCreated + \"\\n\");\r\n }", "title": "" }, { "docid": "78123fa9c616b5123ef9ec6aeb49275e", "score": "0.6016332", "text": "public static void printTree(Node head) {\n System.out.println(\"Binary Tree:\");\n printInOrder(head, 0, \"H\", 17);\n System.out.println();\n }", "title": "" }, { "docid": "154e75b9fcb5efde69de5ab3ed831084", "score": "0.6010133", "text": "public void print() {\n print(root); \n }", "title": "" }, { "docid": "66f9b757e591c5f152d0d8a081d7f2ba", "score": "0.5999011", "text": "public void fullPrint(){\n this.print(root);\n }", "title": "" }, { "docid": "03067bcc6f306a0e402248e432abb7be", "score": "0.5987109", "text": "void print() {\r\n\r\n System.out.println(\"\\nHeap Array Data: \\n\");\r\n printArr();\r\n int o = 0;\r\n\r\n System.out.println(\"\\nHeap Data: \\n\");\r\n\r\n do {\r\n if (Leaf(o)) break;\r\n\r\n System.out.print(\"[ Parent:\" + ((this.Heap[o] > 9) ? \" \" : \" \") + this.Heap[o] + \" ]\");\r\n System.out.print(\" [ Left Child:\" + ((Left_Child(o) > 9) ? \" \" : \" \") + (Left_Child(o) == -9 ? \"Null\" : Left_Child(o)) + \" ]\");\r\n System.out.print(\" [ Right Child:\" + ((Right_Child(o) > 9 ? \" \" : \" \")) + (Right_Child(o) == -9 ? \"Null\" : Right_Child(o)) + \" ]\\n\");\r\n\r\n o++;\r\n } while (o < this.Capacity && o <= this.Size);\r\n }", "title": "" }, { "docid": "543a1a6eebdede4b0978a65c3051bb3b", "score": "0.59820664", "text": "void print() {\n\t\tNode temp=head;\n\t\twhile(temp!=null) {\n\t\t\tSystem.out.print(temp.data+\" \");\n\t\t\ttemp=temp.next;\n\t\t}\n\t}", "title": "" }, { "docid": "4741ad82cdf2fe4a94207b5c1361d23b", "score": "0.5976961", "text": "public void printInOrder() {\n if (left != null) { // there IS a left node\n left.printInOrder(); // PRINT LEFT NODES\n }\n\n System.out.println(data); // THEN PRINT THIS NODE\n\n if (right != null) { // there IS a right node\n right.printInOrder(); // PRINT RIGHT NODES\n }\n }", "title": "" }, { "docid": "c0b03db9b440e7039025782478f3636b", "score": "0.5975627", "text": "public void printQueue() {\n if(!isQueueEmpty()) {\n\n for(int i=beginning; i<=top; i++) {\n System.out.println(arr[i] + \" \");\n }\n System.out.println();\n }else {\n System.out.println(\"Queue is empty !\");\n }\n }", "title": "" }, { "docid": "f35e4cb1e2306c552f3ba8572d5c902d", "score": "0.5973369", "text": "public void printInOrder() {\n\t\tif(this.left != null)\n\t\t\tthis.left.printInOrder();\n\t\t\n\t\tSystem.out.print(this);\n\t\t\n\t\tif(this.right != null)\n\t\t\tthis.right.printInOrder();\n\t}", "title": "" }, { "docid": "f8752ba3d6258f08b5a0f28a204f935c", "score": "0.59716976", "text": "public static void main(String[] args) {\n TreeNode root = new TreeNode(8);\n root.left = new TreeNode(6);\n root.right = new TreeNode(10);\n root.left.left = new TreeNode(5);\n root.left.right = new TreeNode(7);\n root.right.left = new TreeNode(9);\n root.right.right = new TreeNode(11);\n\n Solution solution = new 把二叉树打印成多行().new Solution();\n\n ArrayList<ArrayList<Integer>> result = solution.print(root);\n for (ArrayList<Integer> list : result) {\n for (Integer i: list) {\n System.out.printf(i + \" \");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "9cc16b6ebf10993446ae88da5f03b5b5", "score": "0.5969021", "text": "static void printInOrder(Node root){\r\n\t\tif(root == null)\r\n\t\t\treturn;\r\n\t\tprintInOrder(root.left);\r\n\t\tSystem.out.print(root.val+\" \");\r\n\t\tprintInOrder(root.right);\r\n\t}", "title": "" }, { "docid": "1eb6042ab20e80b27abf577748f75389", "score": "0.5964011", "text": "public void printInOrder() { // not to be changed\n printInOrder(root);\n }", "title": "" }, { "docid": "71f7f6d6aa6ca92ff069a2f93d969aa5", "score": "0.59594274", "text": "static void printLevelOrder(Node root)\n {\n // Base Case\n if(root == null)\n return;\n\n // Create an empty queue for level order tarversal\n Queue<Node> q =new LinkedList<Node>();\n\n // Enqueue Root and initialize height\n q.add(root);\n\n\n while(true)\n {\n\n // nodeCount (queue size) indicates number of nodes\n // at current level.\n int nodeCount = q.size();\n if(nodeCount == 0)\n break;\n\n // Dequeue all nodes of current level and Enqueue all\n // nodes of next level\n while(nodeCount > 0)\n {\n Node node = q.peek();\n System.out.print(node.data + \" \");\n q.remove();\n if(node.left != null)\n q.add(node.left);\n if(node.right != null)\n q.add(node.right);\n nodeCount--;\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "69b8a4256df437fb8ee5a3fb3df34726", "score": "0.5957902", "text": "public void printBinaryTree(Node root){\n\tStack<Node> stack = new Stack<Node>();\n\tNode cur = root;\n\tstack.push(cur);\n\twhile(cur!=null){\n\t\tcur = cur.left;\n\t\tstack.push(cur);\n\t\t\n\t}//while\n\twhile (!stack.isEmpty()){\n\t\t\tNode cur = stack.pop();\n\t\t\tSystem.out.println(cur.val);\n\t\t\twhile(cur.right!=null){\n\t\t\t\tcur=cur.right;\n\t\t\t\tstack.push(cur);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}//if\n\t\n}", "title": "" }, { "docid": "cc668e49dbdbaca9a06ea5040e6cbc78", "score": "0.5946451", "text": "private void printTree( BinaryNode<AnyType> t )\n {\n if( t != null )\n {\n printTree( t.left );\n System.out.println( t.element );\n printTree( t.right );\n }\n }", "title": "" }, { "docid": "36c639dcd9fd46bac6746977ecb90e47", "score": "0.5942441", "text": "static void printInOrderUsingStackLoopy(Node root) {\r\n\t\tif(root == null)\r\n\t\t\treturn;\r\n\t\tStack<Node> stack = new Stack<Node>();\r\n\t\tNode cur = root;\r\n\t\twhile(cur!=null || !stack.isEmpty()) {\r\n\t\t\t// keep pushing until left most node reached\r\n\t\t\twhile(cur!=null) {\r\n\t\t\t\tstack.push(cur);\r\n\t\t\t\tcur = cur.left;\r\n\t\t\t}\r\n\t\t\tcur = stack.pop();\r\n\t\t\tSystem.out.print(cur+\" \");\r\n\t\t\tcur = cur.right;\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "baf908ac40e9a541bba0cb26e9ed8891", "score": "0.5942416", "text": "static void levelOrder(Node1 root){\n Queue<Node1> q = new LinkedList<>();\n q.add(root);\n\n // Breadth First Search (BFS) / Level-Order Traversal\n // using a while loop and queue\n while (!q.isEmpty()) {\n\n // set current pointer to enqueued node\n // then print that node's data\n Node1 current = q.poll(); // return null if queue is empty (remove function will throw an exception if queue is empty)\n System.out.print(current.data + \" \");\n\n // check current node's left child\n // if not equal to null add it to the queue\n if (current.left != null) {\n q.add(current.left);\n }\n // check current node's left child\n // if not equal to null add it to the queue\n if (current.right != null) {\n q.add(current.right);\n }\n }\n }", "title": "" }, { "docid": "79ae03772ee3cb1bbc757dcc4bf7d831", "score": "0.5941976", "text": "public void print() {\n System.out.println(\"\\nIn set is stored the following data:\");\n myTree.print();\n System.out.println();\n }", "title": "" } ]
2c2670f8b27c3c9993a99fdd67d8caea
Quantidade de pessoas na lista.
[ { "docid": "e5a06c00c945b77403553cf75060387f", "score": "0.6046061", "text": "public int getQuantidade() {\n return this.quantidade;\n }", "title": "" } ]
[ { "docid": "ea3cc847b4162904af207bf9e31d1177", "score": "0.7090545", "text": "public void setQuantidade(List<Integer> quantidade) {\n this.quantidade = quantidade;\n }", "title": "" }, { "docid": "548655938445f8ae5d6d7705bc41c86f", "score": "0.65288275", "text": "Number quantidadePessoasSemBensVinculados() throws BancoobException;", "title": "" }, { "docid": "9ff8965454cc03681022044aacee3e24", "score": "0.64568186", "text": "@Override\n\tpublic int quantidade( ) {\n\t\treturn this.posicaoLivre;\n\t}", "title": "" }, { "docid": "3e463e49b4d14f22024a6052b7a7b224", "score": "0.633109", "text": "public int getTotalProducts(){\n return inventoryList.size()+shoppingList.size()+ requirementsList.size();\n }", "title": "" }, { "docid": "5a4041d5daabdd5535d16ba5023a0f6a", "score": "0.6254608", "text": "public int getQtdPessoas()\n\t{\n\t\treturn this.pessoas.size();\n\t}", "title": "" }, { "docid": "c0ecf9255b1094ed537b7fd26c46baa6", "score": "0.6222984", "text": "public int tamanho() {\n\t\treturn this.quantidade;\n\t}", "title": "" }, { "docid": "ab11daf3d1a72a2eb961c92c585e764f", "score": "0.61605966", "text": "public int getQuantidade() {\n\t\treturn this.quantidade;\n\t}", "title": "" }, { "docid": "5e089f1972da93c891e00399663c8180", "score": "0.61595964", "text": "@Então(\"exibo o resultado da quantidade de resultados\")\n\tpublic void exiboOResultadoDaQuantidadeDeResultados() {\n\t for (String resultado : listBusca) {\n\t\t\tSystem.out.println(resultado);\n\t\t}\n\t}", "title": "" }, { "docid": "f9ce48302f2adeea440c03ba3e2357b5", "score": "0.6122758", "text": "public int getQuantidade() {\n return quantidade;\n }", "title": "" }, { "docid": "d46228ec05623bb51000e09481867a07", "score": "0.6118814", "text": "private int obtenerTotalQuantity(List<ProductDTO> listProductDTOFinal) {\n\t\tint quatity = 0;\n\t\tfor (ProductDTO productDTO : listProductDTOFinal) {\n\t\t\tquatity += productDTO.getQuantity();\n\t\t}\n\t\treturn quatity;\n\t}", "title": "" }, { "docid": "34494b079cdafd1ccffd9f637ab99e15", "score": "0.6099113", "text": "static double countPrices(){\n double totalCost = 0;\n for (Request request : requestList) {\n totalCost += request.getPrice()*request.getQuantity();\n }\n return totalCost;\n }", "title": "" }, { "docid": "6a6aaf1e2a62ff7ac534cc2f110f7fe2", "score": "0.60780555", "text": "public int getQuant ( ) {\r\n \r\n return quant;\r\n \r\n }", "title": "" }, { "docid": "174e441e02fc8cff458c17c431d63a62", "score": "0.6064539", "text": "public Integer getStockActual(){\n for (Producto x:productoArrayList) {\n return productoArrayList.size();\n }\n return productoArrayList.size();\n }", "title": "" }, { "docid": "d70f0d62004547cf17f5d641bfedf843", "score": "0.6022081", "text": "public int getCount()\n\t{\n\t\tint count = 0;\n\t\tfor (int y = 0; y < mySize; y++)\n\t\t\tcount += myItems[y].getQuant();\n\t\treturn count;\n\t}", "title": "" }, { "docid": "f61b5e195e9bc13e54e0d07ce6eb48b7", "score": "0.5996522", "text": "float getQuantity();", "title": "" }, { "docid": "8062deff459d2f0e3c7fe1ef922eea12", "score": "0.5967586", "text": "public List<QuadroQuantitativo> getQuadroQuantitativo() {\n String query = \"select new entity.relatorio.QuadroQuantitativo(cast(c.tipopessoa as string) as tipopessoa, \"\n + \" cast(c.statuscid as string) as statuscid, \"\n + \"cast(c.benstatus as string) as benstatus, cast(count(c) as int) as total) \"\n + \" from Cidadao c \"\n + \"group by c.tipopessoa, c.statuscid, c.benstatus \"\n + \"order by c.tipopessoa desc\";\n return getPureList(QuadroQuantitativo.class, query);\n }", "title": "" }, { "docid": "e03f73c63ba983944bfc91b0172b70ac", "score": "0.5966976", "text": "private int puntajeTotal() {\r\n\t\tint puntajeTotal=0;\r\n\t\tfor (Huevo h : listaHuevo) {\r\n\t\t\tpuntajeTotal+= h.getPuntaje();\r\n\t\t}\r\n\t\treturn puntajeTotal;\r\n\t}", "title": "" }, { "docid": "fe2c499debd1289f803c6a30175b134f", "score": "0.59301555", "text": "public int getQuantidadeSalas() {\n \tthis.queryInterna = entityManager.createNativeQuery(\"SELECT COUNT(*) FROM Salas\");\n long qtdeSalas = 0;\n\n try {\n qtdeSalas = (long) this.queryInterna.getSingleResult();\n } catch (Exception ex) {\n return 0;\n }\n return (int) qtdeSalas;\n }", "title": "" }, { "docid": "90fb369199a541bd24d6134a17034c65", "score": "0.5926716", "text": "BigDecimal getQuantity();", "title": "" }, { "docid": "9a3d183a63b1b28a82c9cdd62db30b1d", "score": "0.5908545", "text": "public int getQuantiaLinhas(){\r\n int qtd = 0;\r\n String sql = \"SELECT COUNT(*) AS qtd FROM plataforma\";\r\n \r\n try{\r\n conn = Database.getInstance().getConnection();\r\n Statement stm = this.conn.createStatement();\r\n ResultSet rs = stm.executeQuery(sql);\r\n \r\n while(rs.next()){\r\n qtd = rs.getInt(\"qtd\");\r\n }\r\n \r\n stm.close();\r\n }catch(Exception e){\r\n JOptionPane.showMessageDialog(null, \"Erro ao tentar consultar \\n\\n(\" + this.getClass().getName().toString() + \") - \" + e.getMessage()); \r\n System.out.println(\"Erro ao tentar consultar (\" + this.getClass().getName().toString() + \") - \" + e.getMessage());\r\n } \r\n return qtd;\r\n }", "title": "" }, { "docid": "23e55ec6308a4ecd1d5a3d68ea6c92af", "score": "0.5904918", "text": "public void setQuantidade(int value) {\n this.quantidade = value;\n }", "title": "" }, { "docid": "74a5806bc4de2dfb95a1763c2f84ca0c", "score": "0.58829397", "text": "public static int[] getQuantidadeCategoria(Empresa empresa) {\r\n\t\tint quantidade[] = new int[4];\r\n\t\t\r\n\t\t/* quantidade[0] = QTD DE GERENTES\r\n\t\t * quantidade[1] = QTD DE PRESTADORES\r\n\t\t * quantidade[2] = QTD DE REGULARES \r\n\t\t * quantidade[3] = QTD TOTAL\r\n\t\t */\r\n\t\tfor (Funcionario funcionario : empresa.getEmpresa()) {\r\n\t\t\tif (funcionario instanceof Gerente)\r\n\t\t\t\tquantidade[0]++;\r\n\t\t\telse if (funcionario instanceof Prestador)\r\n\t\t\t\t\tquantidade[1]++;\r\n\t\t\telse \r\n\t\t\t\tquantidade[2]++; // QTD DE REGULAR\r\n\t\t\t}\r\n\t\tquantidade[3] = quantidade[0] + quantidade[1] + quantidade[2];\r\n\t\treturn quantidade;\r\n\t}", "title": "" }, { "docid": "f26e2c2f43a88c804c2098ba218f9932", "score": "0.5838425", "text": "int getOrderedQuantity();", "title": "" }, { "docid": "ec99a0a874afa51677bd2c27255e15f0", "score": "0.58159155", "text": "@Override\r\n\tpublic String exibirEmLista(int quant) {\r\n\t\treturn quant + \" \" + this.getNome() + \", \" + this.getCategoria() + \", \" + this.quantidade + \" \" + this.medida;\r\n\t}", "title": "" }, { "docid": "7d69476f4f76e2293eedc0de03da724c", "score": "0.5808006", "text": "public int getQuantidadeMinima() {\n\t\treturn quantidadeMinima;\n\t}", "title": "" }, { "docid": "b6b707d5d3072ebeaeb489147289c335", "score": "0.5806454", "text": "public int[] getQtdItens() {\r\n\t\tint[] qtdItens = new int[this.valores.length];\r\n\t\tfor (int i = 0; i < valores.length; i++) {\r\n\t\t\tqtdItens[valores[i]]++;\r\n\t\t}\r\n\t\treturn qtdItens;\r\n\t}", "title": "" }, { "docid": "4ffc4dcafba97c39dfe5d2b896090745", "score": "0.57571405", "text": "public int getQuantiaLinhas(){\r\n int qtd = 0;\r\n String sql = \"SELECT COUNT(*) AS qtd FROM usuario\";\r\n \r\n try{\r\n conn = Database.getInstance().getConnection();\r\n Statement stm = this.conn.createStatement();\r\n ResultSet rs = stm.executeQuery(sql);\r\n \r\n while(rs.next()){\r\n qtd = rs.getInt(\"qtd\");\r\n }\r\n \r\n stm.close();\r\n }catch(Exception e){\r\n JOptionPane.showMessageDialog(null, \"Erro ao tentar consultar \\n\\n(\" + this.getClass().getName().toString() + \") - \" + e.getMessage()); \r\n System.out.println(\"Erro ao tentar consultar (\" + this.getClass().getName().toString() + \") - \" + e.getMessage());\r\n } \r\n return qtd;\r\n }", "title": "" }, { "docid": "d9dfb278158ebe6ba902116db33a66d1", "score": "0.57508725", "text": "int getTotalQuantity();", "title": "" }, { "docid": "0234ceb9058690bdc92b91e265ce883f", "score": "0.56946385", "text": "@Test\n\tpublic void deveRetornarQtdeProdutos() {\n\t\tPedido pedido4 = new Pedido(\"4\", cliente1, listaEsfirra);\n\t\tint qtde = 0;\n\t\tfor (int i = 0; i < pedido4.getItens().size(); i++) {\n\t\t\tqtde = qtde + pedido4.getItens().get(i).getQtde();\n\t\t}\n\t\tAssert.assertEquals(22, qtde);\n\t}", "title": "" }, { "docid": "82289a4598762e994f4ad3528f195fe8", "score": "0.56893283", "text": "public ArrayList<ProductoPojo> leerTotalProductos();", "title": "" }, { "docid": "a2cf7875a964d5bcbfd1aed573aa0cc8", "score": "0.5669093", "text": "public int getCantidad(){\n return lista.size();\r\n }", "title": "" }, { "docid": "a569b5a5425765221228ab7bf84eb660", "score": "0.56602573", "text": "public int count() { \n\t\treturn money.size();\n\t}", "title": "" }, { "docid": "c73611765202ca77843cae05627c0e20", "score": "0.5640211", "text": "public int getTotalPrice() {\n return pricePerItem * quantity;\n }", "title": "" }, { "docid": "74061cf2e6fcdbd981ebeb4c199d82d7", "score": "0.5625626", "text": "public int computeTotalStockValue1(){\n int sum = 0;\n for(Product p: products){\n sum+=(p.getPrice()*p.getQuantity());\n }\n \n return sum;\n }", "title": "" }, { "docid": "6e65885871ae49cbae42a81e0228116a", "score": "0.5620848", "text": "long getQuantity();", "title": "" }, { "docid": "6e65885871ae49cbae42a81e0228116a", "score": "0.5620848", "text": "long getQuantity();", "title": "" }, { "docid": "01948647d8d2ee5617c3ab7befb65ddb", "score": "0.5592429", "text": "@Override\n public void adicionaQuantidade(int position) {\n String valorQuantidade = listas.get(position).getTextQtd();\n int atual = Integer.parseInt(valorQuantidade);\n int soma = atual + 1;\n listas.get(position).setTextQtd(soma+\"\");\n //Altera no banco\n int posicao = position;\n String txtNome = listas.get(posicao).getNome();\n String quantidade = listas.get(posicao).getTextQtd();\n String preco = listas.get(posicao).getTextPreco();\n String id = listas.get(posicao).getId();\n String total = listas.get(posicao).getTotalItem();\n Boolean selecao = listas.get(posicao).getSelecionado();\n int opcao = 0;\n\n if(selecao == true)\n {\n opcao = 1;\n }\n\n String sql = \"UPDATE Listas SET nome ='\"+txtNome+\"',quantidade ='\"+quantidade+\"',preco ='\"+preco+\"',total ='\"+total+\"',selecao = '\"+opcao+\"' where id = \"+id;\n\n banco.ExecutarComando(sql);\n adapter.notifyDataSetChanged();\n\n }", "title": "" }, { "docid": "2eb461fd3f18cc9c9cd3dd3082b6e1f3", "score": "0.55869716", "text": "public int getBeQuantity(){\r\n return (int)Math.round(cost/this.book.getPrice());\r\n }", "title": "" }, { "docid": "9659f4ba14878b8918666795866d1ee0", "score": "0.5582625", "text": "@Override\n public int itemsQuantity(String name)\n {\n int count = 0;\n for(int i = 0; i < size; i++)\n for(int j = 0; j < size; j++)\n if(orders[i].get(j).getName() == name)\n count++;\n return count;\n }", "title": "" }, { "docid": "23e38ee5bec4b1af807a5537011d080f", "score": "0.5573733", "text": "public int harvest(){\n\t\tint total=0;\n\t\t\n\t\tfor(int i=0;i<MAXIMUM_QUANTITY;i++){\n\t\t\ttotal+=field.get(i).getValue();\n\t\t\t\n\t\t}\n\t\tfield.clear();\n\t\t\n\t\treturn total;\n\t}", "title": "" }, { "docid": "41e18682c2c3871ec94b174798331e47", "score": "0.5552943", "text": "public int getPistasTotal() {\r\n return nroPistas;\r\n }", "title": "" }, { "docid": "c322938e4f339ea685c105abed1e6f23", "score": "0.5541071", "text": "int getQuantity();", "title": "" }, { "docid": "33df0d13e40fb3e746f5cf78e72e9885", "score": "0.55271435", "text": "Quantity getAnswerQuantity();", "title": "" }, { "docid": "1fb696a2385f4b6255bb442d6457e088", "score": "0.5524132", "text": "public int getQuantity()\n {\n if (this.factory.isMine()) return this.yields.size();\n return this.quantity;\n }", "title": "" }, { "docid": "f35b86f4fbc9ed0dcec3d2995f8f3638", "score": "0.551938", "text": "List<Car> getLimitAmount();", "title": "" }, { "docid": "019248f77922645d2431b22f77bf916b", "score": "0.55179185", "text": "public double SommaPeso() {\n\t\tdouble peso = 0;\n\t\tfor (int i = 0; i < prodotti.size(); i++) {\n\t\t\tpeso = peso + prodotti.get(i).getPeso() * prodotti.get(i).getQuantita();\n\t\t}\n\t\treturn peso;\n\t}", "title": "" }, { "docid": "04a7e28db86820ea9f02a4f2fd2c2751", "score": "0.55075806", "text": "public BigDecimal getTotalCargoQty();", "title": "" }, { "docid": "2c201c8490e0254dbcf10b512f9af307", "score": "0.54860264", "text": "public ArrayList<ProductoTiendaPojo> leerTotalProductosMedia();", "title": "" }, { "docid": "5d7f9b62852e378d8e97dd6ad31b941e", "score": "0.54858017", "text": "public Array<String> getRoboticonQuantities() {\n int ore = 0;\n int energy = 0;\n int food = 0;\n int uncustomised = 0;\n Array<String> roboticonAmountList = new Array<String>();\n\n for (Roboticon r : roboticonList) {\n if (!r.isInstalled()) {\n switch (r.getCustomisation()) {\n case ORE:\n ore += 1;\n break;\n case ENERGY:\n energy += 1;\n break;\n case FOOD:\n food += 1;\n break;\n default:\n uncustomised += 1;\n break;\n }\n }\n }\n\n roboticonAmountList.add(\"Ore Specific x \" + ore);\n roboticonAmountList.add(\"Energy Specific x \" + energy);\n roboticonAmountList.add(\"Food Specific x \" + food);\n roboticonAmountList.add(\"Uncustomised x \" + uncustomised);\n return roboticonAmountList;\n }", "title": "" }, { "docid": "4f192f7bc7b21ad3404f436391ffed1d", "score": "0.54839396", "text": "public List<InsumoElaborado> getTodosStockMinimo();", "title": "" }, { "docid": "d48377e7ee474c69179c2ebb1e3354d9", "score": "0.546928", "text": "private int totalExpendableUnits(List<Planet> myPlanets) {\n int sum = 0;\n for (Planet p : myPlanets) {\n sum += expendableUnits(p);\n }\n return sum;\n }", "title": "" }, { "docid": "99ee640c8f9dd918e1c299e83a9908b1", "score": "0.5465756", "text": "public int calculateOrderTotal(){\n int orderTotal=0;\n for (Items item : items){\n\n orderTotal+=item.getmQuantity()*Integer.parseInt(item.getPrice());\n }\n\n\n return orderTotal;\n }", "title": "" }, { "docid": "cb4330921c4b4492e3d1b6f508a0e1d4", "score": "0.54498726", "text": "public int getQuantity();", "title": "" }, { "docid": "cb4330921c4b4492e3d1b6f508a0e1d4", "score": "0.54498726", "text": "public int getQuantity();", "title": "" }, { "docid": "ab8a71330a3498bbb796b21899e86e44", "score": "0.54401785", "text": "public int[] getOrderQuantities()\r\n\t{\r\n\t\treturn orderQuantity;\r\n\t}", "title": "" }, { "docid": "a893849077714b7b4f65a7fcab16fdaf", "score": "0.54197615", "text": "public double getTotalProfit(){\n double totalProfit = 0;\n for (Sellable item:stock\n ) {\n totalProfit += item.calculateMarkUp();\n }\n return totalProfit;\n }", "title": "" }, { "docid": "242bba82d5888c4b3e3b37563bbaafc8", "score": "0.5419032", "text": "public ArrayList<Producto> productosOrdenadosPrecio();", "title": "" }, { "docid": "917268fc83a0d27e16d98b7b1183e7f0", "score": "0.54138595", "text": "public void setProdutos(List<Integer> produtos) {\n this.produtos = produtos;\n }", "title": "" }, { "docid": "24a5bbf1da0c5133437695722f94683b", "score": "0.5412197", "text": "public double getPrecioAlquilerLista() {\n\t\tif (alquiler != null)\n\t\t\treturn alquiler.getPrecioLista();\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "c9aa9fa3038db051d1f3bbe8cbd6e42e", "score": "0.5410268", "text": "public void setQuantidade(double value) {\n this.quantidade = value;\n }", "title": "" }, { "docid": "56519d48a866fe3137556955f6c22e9b", "score": "0.5409715", "text": "public BigDecimal getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "6c810f91aac4ab3c5d004728582fe38a", "score": "0.5404963", "text": "public int getTotal() {\r\n\t\tint total = 0;\r\n\t\tfor(Item it: list){\r\n\t\t\ttotal = total + it.getCost();\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "title": "" }, { "docid": "f8777e5131a347dcccd95f419db1a29e", "score": "0.5398915", "text": "public int getQuantity() {\r\n return minQty;\r\n }", "title": "" }, { "docid": "6c9ce87ce30a00233daba7a246503a7d", "score": "0.5398291", "text": "public int getTotalItemsInStock() {\r\n\t\t\treturn this.ourItems.size();\r\n\t\t}", "title": "" }, { "docid": "76fe790a3c2bc77ca9fad1402a9138b9", "score": "0.5394928", "text": "public static int possibleSeries() {\r\n\t\treturn (int)Math.pow(possibleElements, lengthOfSeries);\r\n\t}", "title": "" }, { "docid": "554ca3df6ba1cae67e1c2abd41d0e25d", "score": "0.5381719", "text": "public int getCantidadPaquetes(){\r\n return cantPaquetes;\r\n }", "title": "" }, { "docid": "01de255386f38fbf845ee5a7beea2944", "score": "0.53813356", "text": "public int size()\n {\n return parade.size();\n }", "title": "" }, { "docid": "3f22c3214cb737762fd5615f59c8f8c0", "score": "0.5375184", "text": "public int largoListaPaquetes(){\r\n int cont =0;\r\n while (listaPaquetes[cont]!= null)\r\n cont++;\r\n return cont;\r\n }", "title": "" }, { "docid": "671a25ef5eee0cb1071b9a35f19c585b", "score": "0.53750056", "text": "public Integer getquantiteDispo()\n {\n calculQte();\n return (Integer) getAttributeInternal(QUANTITEDISPO);\n }", "title": "" }, { "docid": "1f4100b4e6d3ac6c53ea261466908b5b", "score": "0.5372618", "text": "public int ordem() {\n return quantidadeVertices;\n }", "title": "" }, { "docid": "5295fa98585c4c0e6e4bbb8400c9956c", "score": "0.5371332", "text": "@Override\n public double size() {\n return 1000;\n }", "title": "" }, { "docid": "f5a7e61a8dd400b40ddefcb91eb3b563", "score": "0.5363131", "text": "public BigDecimal getQtyInvoiced();", "title": "" }, { "docid": "b5fd468972a2e5aab349c758d3d13fb5", "score": "0.53464144", "text": "public int numberOfItem(){\t\t\r\n\t\treturn this.inventory.size();\t\t\r\n\t}", "title": "" }, { "docid": "e0ab1e90d84f0264605dca6674511f5e", "score": "0.5335837", "text": "public String[] comboBailePrecio(){\n\t\tString query;\n\t\tint cont=1;\n\t\tString[] precio=null;\n\t\ttry {\n\t\tquery=\"SELECT COUNT(DISTINCT(precio)) FROM baile\";\n\t\tResultSet rs;\n\t\trs=stm.executeQuery(query);\n\t\tif(rs.next())\n\t\t\tcont=rs.getInt(1);\n\t\trs.close();\n\t\tprecio = new String[cont];\n\t\tquery=\"SELECT DISTINCT(precio) FROM baile\";\n\t\tint i=0;\n\t\t\trs = stm.executeQuery(query);\n\t\t\twhile(rs.next()){\n\t\t\t\tprecio[i]=rs.getString(\"precio\");\n\t\t\t\ti++;\n\t\t\t}\n\t\t\trs.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn precio;\n\t}", "title": "" }, { "docid": "2292022d94ce575f5dffaa5a25a8d4cb", "score": "0.53329575", "text": "public int size(){\n\n return q.length;\n }", "title": "" }, { "docid": "5a31d98af277f652167570beba70bd0a", "score": "0.53320426", "text": "private void calculaQuantidadePessoasLocal(int tag, String s) throws IOException {\n String[] dados = s.split(\",\");\n int coordX = Integer.parseInt(dados[0]);\n int coordY = Integer.parseInt(dados[1]);\n String qtdPessoas = app.calculaQuantidadePessoasLocal(coordX, coordY);\n this.tg.send(tag, qtdPessoas.getBytes());\n }", "title": "" }, { "docid": "693bac475dbce6a054170e3244ded894", "score": "0.5329822", "text": "@Override\n public int getProductQuantity(Product p) {\n for (ProductStockPair pair : products) {\n if (pair.product.id == p.id) {\n return pair.stock;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "0fc3d6384aeb2452258af63985984f65", "score": "0.5328183", "text": "@Override\n\tpublic Float total() {\n\t\tFloat valor = (float) 0.0;\n\t\tfor (Item itemVenda : itens) {\n\t\t\tvalor += itemVenda.total();\n\t\t}\n\t\treturn valor;\n\t}", "title": "" }, { "docid": "320d5ea88ac42918e6329434bb3e3356", "score": "0.53277284", "text": "public Integer getTotalQuantity() {\n return totalQuantity;\n }", "title": "" }, { "docid": "9f496e3dcc9ec814f798fea8cec7cd81", "score": "0.5325884", "text": "public int SizeOfProduct(){\n return miRNAList.size();\n }", "title": "" }, { "docid": "7ae1cbc2c5ec1b4554fc24c7d68129a2", "score": "0.5325189", "text": "public int getAmountOfItems() {\n\t\tint amount = 0;\n\t\tfor (Item item : cart) {\n\t\t\tamount += item.getAmount();\n\t\t}\n\t\treturn amount;\n\t}", "title": "" }, { "docid": "3e7b7774bbc5a30317dfd8948ff177aa", "score": "0.53155226", "text": "public int getSizeInventory()\n {\n return 120;\n }", "title": "" }, { "docid": "0b9235cbe75f6a210eda33374bc09b34", "score": "0.5306459", "text": "public void addItem() {\n Double estoque = itensVenda.getProduto().getEstoque();\n ItensVenda itemTemp = null;\n for (ItensVenda it : venda.getItensVendas()) {\n if (it.getProduto().equals(itensVenda.getProduto())) {\n itemTemp = it;\n estoque = estoque - it.getQuantidade();\n }\n }\n if ((estoque - itensVenda.getQuantidade()) < 0) {\n FacesContext.getCurrentInstance().addMessage(\n null, new FacesMessage(\n FacesMessage.SEVERITY_ERROR,\n \"Estoque insuficiente!\",\n \"Restam apenas \" + estoque + \" unidades.\"));\n } else {\n if (itemTemp == null) {\n itensVenda.setVenda(venda);\n venda.getItensVendas().add(itensVenda);\n } else {\n itemTemp.setQuantidade(itemTemp.getQuantidade() + itensVenda.getQuantidade());\n itemTemp.setPreco(itensVenda.getPreco());\n }\n itensVenda = new ItensVenda();\n }\n }", "title": "" }, { "docid": "6a73f8a458349eab0af36dbdaec109f4", "score": "0.53039175", "text": "public void buscarFacturasporTotal() {\n\t\tQuery query= manager.createQuery(\"SELECT e FROM Factura e \" + \" WHERE e.total > :total \");\r\n\t\tquery.setParameter(\"total\", (double)1000);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Factura> facturasenc= (List<Factura>)query.getResultList();\r\n\t\tif (facturasenc.isEmpty()) {\r\n\t\t\tSystem.out.println(\"FACTURAS NO ENCONTRADAS\");\r\n\t\t}\r\n\t\telse {\r\n\t\tfacturasenc.stream().forEach(System.out::println);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "046943ad8a6193caf68826995ba78b88", "score": "0.5300425", "text": "BigInteger getTotalResultsAvailable();", "title": "" }, { "docid": "2896b2350fe92c5faff6f4ceba3eb561", "score": "0.5291042", "text": "public Float getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "83aaf2e5c5248219a8bb09169f34a3c2", "score": "0.52869064", "text": "public ArrayList<ProductoTiendaPojo> leerTotalTienda();", "title": "" }, { "docid": "3ce77deca80c73f85e777c4e682e788f", "score": "0.52779686", "text": "public void listCriticQuantities() {\n Iterator<Pair<Bottle, Integer>> iterList = this.beerList.iterator();\n while (iterList.hasNext()) {\n Pair<Bottle, Integer> pair = iterList.next();\n Bottle bottle = pair.getKey();\n Integer quantity = pair.getValue();\n \n if (quantity <= 10) {\n System.out.println(String.format(\"qte:%d, %s\", quantity, bottle));\n }\n }\n }", "title": "" }, { "docid": "f125d2155e26b67d7dbcea0a496dff04", "score": "0.5276971", "text": "public double SommaPrezzo() {\n\t\tdouble somma = 0;\n\t\tfor (int i = 0; i < prodotti.size(); i++) {\n\t\t\tsomma = somma + (prodotti.get(i).getPrezzo()) * prodotti.get(i).getQuantita();\n\t\t}\n\t\treturn somma;\n\t}", "title": "" }, { "docid": "c0d74b8d3877e1b8fdfcc8101f91ce40", "score": "0.5275733", "text": "public int totalValue ()\n\t{\n\t\treturn (25*quarters+10*dimes+5*nickels+pennies);\n\t}", "title": "" }, { "docid": "b8ad75ad757128d8b0b9c41715352b0f", "score": "0.52740777", "text": "public double getTotaalprijs() {\r\n\t double prijs = 0.0;\r\n\t\tfor(BestelItem bi : bestelItems){\r\n\t\t prijs += bi.getPrijs();\r\n\t\t}\r\n\t\treturn prijs;\r\n\t}", "title": "" }, { "docid": "6846034a040b1a8137bf6abd56bc1748", "score": "0.52740693", "text": "@Override\n public int size() {\n return total;\n }", "title": "" }, { "docid": "cd38cfae950fb718f779d98eedc7b7fe", "score": "0.52685595", "text": "public int CountItems(){\n if (startOfList == null)\n {\n return 0;\n }\n\n\t\tint i = 1;\n\t\tMyData j = startOfList;\n\t\twhile (j.Next() != null)\n {\n i += 1;\n j = j.Next();\n }\n\n\t\treturn i;\n }", "title": "" }, { "docid": "5c2e99f8cab5c573b75b19f45e785eca", "score": "0.52508146", "text": "@Override\n public void addProductQuantity(Product p, int q) {\n // no negative ids please\n if (p.id < 0) return;\n\n total += p.price * q;\n\n for (int i = 0; i < products.size(); i++) {\n ProductStockPair pair = products.get(i);\n if (pair.product.id == p.id) {\n products.set(i, new ProductStockPair(p, pair.stock + q));\n return;\n }\n }\n products.add(new ProductStockPair(p, q));\n numOfProducts++;\n }", "title": "" }, { "docid": "88bdb57b7598db81e72bc9cb67630c46", "score": "0.5250749", "text": "public double soma(ArrayList<? extends Number> lista){\r\n\t\tdouble total = 0;\r\n\t\tfor(Number number : lista){\r\n\t\t\ttotal += number.doubleValue();\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "title": "" }, { "docid": "afb93fd19574a72bd013167253021c00", "score": "0.5249467", "text": "private void countInCart(List<ModelKeranjang> shopCart, int inCart, double total){\n int i = 0;\n \n while(i < shopCart.size()){\n total += shopCart.get(i).getTotal();\n inCart += shopCart.get(i).getQty();\n \n i++;\n }\n }", "title": "" }, { "docid": "3772f23cc09ae63ed585196152daccc0", "score": "0.5245003", "text": "public BigDecimal getDiscount() {\r\n\t\tArrayList<Item> smallPizza = new ArrayList<Item>();\r\n\t\tArrayList<Item> mediumPizza = new ArrayList<Item>();\r\n\t\tArrayList<Item> largePizza = new ArrayList<Item>();\r\n\t\tArrayList<Item> sides = new ArrayList<Item>();\r\n\t\tArrayList<Item> drinks = new ArrayList<Item>();\r\n\r\n\t\tint pizzaS = 0;\r\n\t\tint pizzaM = 0;\r\n\t\tint pizzaL = 0;\r\n\t\tint sideCount = 0;\r\n\t\tint drinkCount = 0;\r\n\r\n\t\tfor (int i = 0; i < items.size(); i++) {\r\n\t\t\tif (items.get(i).getItemType() == ItemType.PIZZA\r\n\t\t\t\t\t&& items.get(i).getItem().getSize().equals(\"Small\")) {\r\n\t\t\t\tfor (int a = 0; a < items.get(i).getQuantity(); a++) {\r\n\t\t\t\t\tsmallPizza.add(items.get(i).getItem());\r\n\t\t\t\t\tpizzaS++;\r\n\t\t\t\t}\r\n\t\t\t} else if (items.get(i).getItemType() == ItemType.PIZZA\r\n\t\t\t\t\t&& items.get(i).getItem().getSize().equals(\"Medium\")) {\r\n\t\t\t\tfor (int a = 0; a < items.get(i).getQuantity(); a++) {\r\n\t\t\t\t\tmediumPizza.add(items.get(i).getItem());\r\n\t\t\t\t\tpizzaM++;\r\n\t\t\t\t}\r\n\t\t\t} else if (items.get(i).getItemType() == ItemType.PIZZA\r\n\t\t\t\t\t&& items.get(i).getItem().getSize().equals(\"Large\")) {\r\n\t\t\t\tfor (int a = 0; a < items.get(i).getQuantity(); a++) {\r\n\t\t\t\t\tlargePizza.add(items.get(i).getItem());\r\n\t\t\t\t\tpizzaL++;\r\n\t\t\t\t}\r\n\t\t\t} else if (items.get(i).getItemType() == ItemType.SIDE) {\r\n\t\t\t\tfor (int a = 0; a < items.get(i).getQuantity(); a++) {\r\n\t\t\t\t\tsides.add(items.get(i).getItem());\r\n\t\t\t\t\tsideCount++;\r\n\t\t\t\t}\r\n\t\t\t} else if (items.get(i).getItemType() == ItemType.DRINK) {\r\n\t\t\t\tfor (int a = 0; a < items.get(i).getQuantity(); a++) {\r\n\t\t\t\t\tdrinks.add(items.get(i).getItem());\r\n\t\t\t\t\tdrinkCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (pizzaS > 0) {\r\n\t\t\tsmallPizza = sort(smallPizza);\r\n\t\t}\r\n\t\tif (pizzaM > 0) {\r\n\t\t\tmediumPizza = sort(mediumPizza);\r\n\t\t}\r\n\t\tif (pizzaL > 0) {\r\n\t\t\tlargePizza = sort(largePizza);\r\n\t\t}\r\n\t\tif (sideCount > 0) {\r\n\t\t\tsides = sort(sides);\r\n\t\t}\r\n\t\tif (drinkCount > 0) {\r\n\t\t\tdrinks = sort(drinks);\r\n\t\t}\r\n\r\n\t\tboolean discountApplied = false;\r\n\t\tBigDecimal discountItems = new BigDecimal(\"0\");\r\n\t\tBigDecimal discount = new BigDecimal(\"0\");\r\n\r\n\t\tif (pizzaL >= 3) {\r\n\t\t\tdiscountItems = largePizza.get(0).getPrice();\r\n\t\t\tdiscountItems = discountItems.add(largePizza.get(1).getPrice());\r\n\t\t\tdiscountItems = discountItems.add(largePizza.get(2).getPrice());\r\n\t\t\tdiscount = discountItems.multiply(new BigDecimal(\"0.33334\"));\r\n\t\t\tdiscountApplied = true;\r\n\t\t\tdiscountType = \"Buy 2 get 1 Free Large Pizzas\";\r\n\t\t} else if (pizzaM >= 3 && discountApplied == false) {\r\n\t\t\tdiscountItems = mediumPizza.get(0).getPrice();\r\n\t\t\tdiscountItems = discountItems.add(mediumPizza.get(1).getPrice());\r\n\t\t\tdiscountItems = discountItems.add(mediumPizza.get(2).getPrice());\r\n\t\t\tdiscount = discountItems.multiply(new BigDecimal(\"0.33334\"));\r\n\t\t\tdiscountApplied = true;\r\n\t\t\tdiscountType = \"Buy 2 get 1 Free Medium Pizzas\";\r\n\t\t} else if (pizzaS >= 3 && discountApplied == false) {\r\n\t\t\tdiscountItems = smallPizza.get(0).getPrice();\r\n\t\t\tdiscountItems = discountItems.add(smallPizza.get(1).getPrice());\r\n\t\t\tdiscountItems = discountItems.add(smallPizza.get(2).getPrice());\r\n\t\t\tdiscount = discountItems.multiply(new BigDecimal(\"0.33334\"));\r\n\t\t\tdiscountApplied = true;\r\n\t\t\tdiscountType = \"Buy 2 get 1 Free Small Pizzas\";\r\n\t\t} else if (pizzaL >= 1 && sideCount >= 1 && drinkCount >= 1\r\n\t\t\t\t&& discountApplied == false) {\r\n\t\t\tdiscountItems = largePizza.get(0).getPrice();\r\n\t\t\tdiscountItems = discountItems.add(sides.get(0).getPrice());\r\n\t\t\tdiscountItems = discountItems.add(drinks.get(0).getPrice());\r\n\t\t\tdiscount = discountItems.multiply(new BigDecimal(\"0.15\"));\r\n\t\t\tdiscountType = \"Meal Deal\";\r\n\t\t}\r\n\r\n\t\tdiscount = discount.setScale(2, BigDecimal.ROUND_HALF_UP);\r\n\r\n\t\torderTotal = subTotal.subtract(discount);\r\n\t\treturn discount;\r\n\t}", "title": "" }, { "docid": "a812ef5130665b157d2e4b5c37ff1d11", "score": "0.52401435", "text": "public int getTotalQuantityInStock() {\r\n\t\t\tint total = 0;\r\n\t\t\t\r\n\t\t\tfor (Item item: this.ourItems) {\r\n\t\t\t\ttotal += item.getQuantityInStock();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn total;\r\n\t\t}", "title": "" }, { "docid": "51d45b19511a8039802384392ac4c67b", "score": "0.52319753", "text": "public int getSubtotal(){\n\t\treturn quantity * unitPrice;\n\t}", "title": "" }, { "docid": "0d7369ea89984abd9dfab9a41df83d3d", "score": "0.5231815", "text": "public int numero(){\r\n return masacres.size();\r\n }", "title": "" } ]
065c1e6cab12603fa6a6436d46dc1b7e
A native method that is implemented by the 'nativelib' native library, which is packaged with this application.
[ { "docid": "2d223b750c7e97350bb930caa2d2fa37", "score": "0.0", "text": "public native String editTextFromJNI(String str);", "title": "" } ]
[ { "docid": "15110f781cbdceb327606d83f02047c8", "score": "0.75470567", "text": "private native String native_init();", "title": "" }, { "docid": "174c06280942821a79d43cc05728e314", "score": "0.72719586", "text": "public native String sayHello();", "title": "" }, { "docid": "412a85ecb3aff2071dcbbed2228ae49d", "score": "0.724139", "text": "private static native void init();", "title": "" }, { "docid": "52ccae0de7610077b720c13bf6be6ed1", "score": "0.70859224", "text": "private static native void classInitNative();", "title": "" }, { "docid": "357097a21019a539e4fa2b194170a42e", "score": "0.70676607", "text": "private native long nativeCreateDelegate();", "title": "" }, { "docid": "0202945b90c2b92c3e74b37c7d56871a", "score": "0.7017287", "text": "public static native void run();", "title": "" }, { "docid": "e5771478fe76de8f776776f9dc526eeb", "score": "0.6976039", "text": "public /*static*/ native void init();", "title": "" }, { "docid": "32373a38b87d23e88d0eb057a4b0a275", "score": "0.69717836", "text": "static native void classInitNative();", "title": "" }, { "docid": "64d60089e7b43ab4ad804059cf243810", "score": "0.69465345", "text": "private static native boolean nativeClassInit();", "title": "" }, { "docid": "9760d24be6b1eba3b9e6cac1ef84ecf2", "score": "0.69333565", "text": "private static native long init();", "title": "" }, { "docid": "a02c07f7f5858b9d57854a4c09de3807", "score": "0.6895069", "text": "protected native void init();", "title": "" }, { "docid": "1ad167f3697ae4c0e0f3916b87a21089", "score": "0.68459946", "text": "public interface Native {\n\n}", "title": "" }, { "docid": "01298e37635ae36c2434aec24e41e9c0", "score": "0.6813398", "text": "private native int nativeAdd(int x, int y);", "title": "" }, { "docid": "91279e1500a01078737e6210e938e139", "score": "0.6785585", "text": "public native void initNativeCallback();", "title": "" }, { "docid": "5c8a888e2e705d8c9cb79e34de4f0d07", "score": "0.67811364", "text": "private static native long nativeInitialize(int arch, int mode) throws UnicornException;", "title": "" }, { "docid": "2a1a7b4b73e2ff04588fe894883e6aef", "score": "0.6761645", "text": "public native void answer();", "title": "" }, { "docid": "31eec0eb81d8b07ac05a626082d1645b", "score": "0.6676566", "text": "public static native void printHello();", "title": "" }, { "docid": "f4643f555d2b33a52a40a3747c920c09", "score": "0.66485685", "text": "Object getNative();", "title": "" }, { "docid": "6a48712104591ca2fe92d8fee080ce95", "score": "0.66197485", "text": "public native int __intMethod( long __swiftObject, int arg );", "title": "" }, { "docid": "c463654aaec0bd01a495c1836f2e9823", "score": "0.6597122", "text": "private native int simpleOnCreate(String packageName);", "title": "" }, { "docid": "a0403529f100aa424a9eb05ab4e0c0c7", "score": "0.65146345", "text": "private NativeSupport() {\n\t}", "title": "" }, { "docid": "642e6649ec5faf15e286ffae3087b55d", "score": "0.65104836", "text": "private native void nativePlay();", "title": "" }, { "docid": "bda380e072235de06b4627ac9bb41174", "score": "0.6481495", "text": "public native static void jnikillMira();", "title": "" }, { "docid": "1aa09a0c3c5138d544ac0eb2d0f22517", "score": "0.6437382", "text": "private native String native_finalize();", "title": "" }, { "docid": "b34d12fa55717c630458e09ac704abba", "score": "0.64056164", "text": "private static native boolean open_1(long nativeObj, int device);", "title": "" }, { "docid": "e2563bd7fe8dc8dbf36b3dd6458060d4", "score": "0.63371783", "text": "public native int iniciarTracker();", "title": "" }, { "docid": "1229ea1f60269db27f0ffd7f45809153", "score": "0.6321572", "text": "private static native int ptInitLibrary0(String lang);", "title": "" }, { "docid": "a9ac28107677e6fdee874c14c21dba19", "score": "0.6316186", "text": "public native void constructor();", "title": "" }, { "docid": "5ae3ae12ec97f8bda64a9dadcc4f83bd", "score": "0.6311505", "text": "public synchronized native static int open();", "title": "" }, { "docid": "cfa264db96272f9f9c2a6a178a648ad4", "score": "0.628858", "text": "private static native long create_0();", "title": "" }, { "docid": "31a3d031587e0d540d936e06486e25e1", "score": "0.6259415", "text": "private native void nativeFinalize();", "title": "" }, { "docid": "1f90eac28a9f212530e7688387be0f8b", "score": "0.62485206", "text": "private static native boolean open_0(long nativeObj, String filename);", "title": "" }, { "docid": "c5fdb77fd85b2458bba750ca0911a42f", "score": "0.62360895", "text": "private synchronized static native int nativeLoadImage( String fileName ) \n throws UnsatisfiedLinkError;", "title": "" }, { "docid": "da8adabbbf7dc733a604a207c13e4e53", "score": "0.6189316", "text": "private native void nRegister();", "title": "" }, { "docid": "32c11101922dbb0a1f722b2e268af5ac", "score": "0.6180314", "text": "public static native void release();", "title": "" }, { "docid": "567c2f35cb700d6bca2f2cd1431c6815", "score": "0.6160776", "text": "native String nativeGetSignature(long nativeHandler) throws RuntimeException;", "title": "" }, { "docid": "2f00a8adbaadbd5184ab1f3ebe99b304", "score": "0.6142778", "text": "public native int add(int a,int b);", "title": "" }, { "docid": "5a59449cfd92fe621b70c6e4e02e0743", "score": "0.6132101", "text": "private synchronized native void nativeHide() \n throws UnsatisfiedLinkError;", "title": "" }, { "docid": "7567b50ee30e7763ab9d7fcc624237a3", "score": "0.6129936", "text": "public native void instanceVoid();", "title": "" }, { "docid": "71fd15b773cde90c6f0a4c5e41b410b3", "score": "0.61086494", "text": "public native long __longMethod( long __swiftObject, long arg );", "title": "" }, { "docid": "76ade3cd9f03b389e3826ff9de38eaf4", "score": "0.60966086", "text": "private static native boolean retrieve_0(long nativeObj, long image_nativeObj, int flag);", "title": "" }, { "docid": "d13a9830cf1903f906d3860b4eb2051e", "score": "0.609061", "text": "public interface NativeCallInterface {\n SValue call(Atom atom, ExecEnvironment env, ListEx<SValue> arguments) throws EgException;\n}", "title": "" }, { "docid": "80e7689b988052bbd93a26e356b1dd4c", "score": "0.609004", "text": "private native String native_clinit();", "title": "" }, { "docid": "ff6e413a565226a3af1aec187fcf5e6f", "score": "0.6066913", "text": "@C_FUNCTION\n public static native void syscall_membarrier();", "title": "" }, { "docid": "948112e4a7c52b81d0905c4e9fdbde46", "score": "0.6062784", "text": "private native static long init(long avi);", "title": "" }, { "docid": "ab9bc82c8025bf0b07f42a1fbae070c4", "score": "0.6054786", "text": "protected static native String getVersion();", "title": "" }, { "docid": "844aa21d242512410468f82cf5b03ff2", "score": "0.6035876", "text": "public native com.johnholdsworth.swiftbindings.SwiftHelloTest.TestListener __TestListenerMethod( long __swiftObject, com.johnholdsworth.swiftbindings.SwiftHelloTest.TestListener arg );", "title": "" }, { "docid": "6e07cebf8cb68741906a40f3e22289d7", "score": "0.60244316", "text": "public static native void staticVoid();", "title": "" }, { "docid": "cfe70131f8ebd836d418d750666ff700", "score": "0.60213894", "text": "public native int startService(long nativeHandle);", "title": "" }, { "docid": "0de0ee7e30624463c3f9ac9bbf3e7266", "score": "0.60022616", "text": "public abstract long getNativePtr();", "title": "" }, { "docid": "2f439bd05d39d5a893ac9cd2dafa8486", "score": "0.59935355", "text": "private native void nativeSurfaceInit(Object surface);", "title": "" }, { "docid": "7aa38c4129fe279b3f0a1a1d581bf287", "score": "0.5993198", "text": "@Override // com.oculus.vrshell.panels.AndroidPanelApp\n public long createNativeInstance() {\n return nativeCreateInstance(0, 0);\n }", "title": "" }, { "docid": "dfc24aeafca9adc9f1a9d7026048e7cf", "score": "0.5985517", "text": "private native boolean initFromJNI(int port);", "title": "" }, { "docid": "a96f6f102e1703d47a291dfae79b9b39", "score": "0.59836096", "text": "private static native long create_0(int mode);", "title": "" }, { "docid": "14b8fe1b0f2dceb621e21e911ca5052e", "score": "0.59763443", "text": "public static native void nativeClose();", "title": "" }, { "docid": "6d90c4788a33526b123b494a1e4f4398", "score": "0.59569925", "text": "boolean hasNative();", "title": "" }, { "docid": "1543a2ef93034dabe8ce8b70079803a0", "score": "0.5946514", "text": "private NativeLibraryLoader() {\n }", "title": "" }, { "docid": "7d71ea771c500ee6032a6e6e7c2cfafc", "score": "0.58832645", "text": "private native static int load_object(String componentFileName);", "title": "" }, { "docid": "a88c17a3c5eaa830668478ecbc8450e2", "score": "0.58824724", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "e31776b75bf92b272acf6f6ca58d7cf6", "score": "0.58642375", "text": "private static native void runFrame(long pointer);", "title": "" }, { "docid": "d50811002944f4c5b44df0c75a9314f5", "score": "0.5857684", "text": "public native void activate();", "title": "" }, { "docid": "15fa796e3bc258bb7cb72bf6ab4c6ce1", "score": "0.58518195", "text": "public native java.lang.String __StringMethod( long __swiftObject, java.lang.String arg );", "title": "" }, { "docid": "7e55b945d32d6b78770ad200057b890c", "score": "0.58497727", "text": "public static native String SayHelo();", "title": "" }, { "docid": "113a4f9ce62c76655c83a5e36957364d", "score": "0.5837251", "text": "public /* bridge */ /* synthetic */ java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Object\");\n }", "title": "" }, { "docid": "37bfc11adedb5d2a4b2d88ced4dcbeed", "score": "0.58332837", "text": "private native void pararCamara();", "title": "" }, { "docid": "1732c939019c16602f1e38760b08822f", "score": "0.5819051", "text": "private static native void delete(long nativeObj);", "title": "" }, { "docid": "1732c939019c16602f1e38760b08822f", "score": "0.5819051", "text": "private static native void delete(long nativeObj);", "title": "" }, { "docid": "1732c939019c16602f1e38760b08822f", "score": "0.5819051", "text": "private static native void delete(long nativeObj);", "title": "" }, { "docid": "1732c939019c16602f1e38760b08822f", "score": "0.5819051", "text": "private static native void delete(long nativeObj);", "title": "" }, { "docid": "1732c939019c16602f1e38760b08822f", "score": "0.5819051", "text": "private static native void delete(long nativeObj);", "title": "" }, { "docid": "1732c939019c16602f1e38760b08822f", "score": "0.5819051", "text": "private static native void delete(long nativeObj);", "title": "" }, { "docid": "1732c939019c16602f1e38760b08822f", "score": "0.5819051", "text": "private static native void delete(long nativeObj);", "title": "" }, { "docid": "1732c939019c16602f1e38760b08822f", "score": "0.5819051", "text": "private static native void delete(long nativeObj);", "title": "" }, { "docid": "d34010ddeb9ea8d1b03302899faad2fd", "score": "0.5815573", "text": "private synchronized native void nativeEnable( int image, String tooltip ) \n throws UnsatisfiedLinkError;", "title": "" }, { "docid": "869222383ac2b60dd3f01dba4f18c176", "score": "0.58095527", "text": "@VisibleForTesting\n public void initialize() {\n initializeNative();\n }", "title": "" }, { "docid": "ebf88a101a1de82d7e81fd7be94a6cef", "score": "0.58022493", "text": "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "title": "" }, { "docid": "c412e87282067a3492449c23c50800f8", "score": "0.57993215", "text": "private native void CreateJNIObj(String device);", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5782684", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "e608e02f07f64b61dd3a1a69ba792357", "score": "0.5762939", "text": "private static native boolean read_0(long nativeObj, long image_nativeObj);", "title": "" }, { "docid": "3b4e63f3f249454b428e570bedd379ce", "score": "0.5749306", "text": "private synchronized static native int nativeLoadImageFromResource( int intResource ) \n throws UnsatisfiedLinkError;", "title": "" }, { "docid": "a9a6f29afacedd0502b420e5181bea70", "score": "0.5738685", "text": "native void nativeClose(long nativeHandler);", "title": "" }, { "docid": "25bc729e782a70f9270df6a5acf5f7fa", "score": "0.57380176", "text": "public native byte __byteMethod( long __swiftObject, byte arg );", "title": "" }, { "docid": "eea10084b76a01bc0c9f5c3f13ec1ff8", "score": "0.5733004", "text": "@Override\n\tpublic long javaMethodBaseWithULongLongRet() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "bd71fa8f63a9f394e8c7d7ea9df51d98", "score": "0.57189745", "text": "private synchronized static native void nativeFreeImage( int image ) \n throws UnsatisfiedLinkError;", "title": "" } ]
fe83b80e949c139a945a24de09ca65b4
Updates the confidentiality and also checks/sets the data pool selector to match the data pool of the specified confidentiality
[ { "docid": "3acf46c8769cb837817fe5a6ae6ee065", "score": "0.6860416", "text": "public void setConfidentiality(mlsConfidentiality conf) {\n if (conf != null) {\n mlcClient dp = (mlcClient) DataPoolCombo.getSelectedItem();\n if (dp == null || dp.getId() != conf.getClient().getId()) {\n DataPoolCombo.setSelectedItem(CacheEngineStatic.getClient(conf.getClient().getId()));\n }\n }\n ConfidentialityCombo.setSelectedItem(conf);\n }", "title": "" } ]
[ { "docid": "a6146184ef5d5e17566bee06f17f1ec8", "score": "0.6263907", "text": "public void setDataPool(mlcClient dataPool) {\n if (dataPool != null) {\n DataPoolCombo.setSelectedItem(dataPool);\n adjustConfidentialityCombo2DataPool();\n }\n }", "title": "" }, { "docid": "e61a7fa4e1fd6b9fa067c1a4c8c3d477", "score": "0.572257", "text": "public void setConfidentiality(org.hl7.fhir.Coding confidentiality)\n {\n generatedSetterHelperImpl(confidentiality, CONFIDENTIALITY$12, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "title": "" }, { "docid": "854ad376acdafd937278a1e1eb7c0835", "score": "0.5146361", "text": "private void updateVisibility() {\n if (showAlways || CacheEngineStatic.getCurrentUser().getClientIds().size() > 1) {\n DataPoolCombo.setVisible(true);\n DataPoolLabel.setVisible(true);\n } else {\n DataPoolCombo.setVisible(false);\n DataPoolLabel.setVisible(false);\n }\n\n // The Confidentiality Combo\n mlcClient currentDataPool = (mlcClient) DataPoolCombo.getSelectedItem();\n if (showAlways || (currentDataPool != null && CacheEngineStatic.getConfidentialities(currentDataPool.getId()).size() > 1)) {\n ConfidentialityCombo.setVisible(true);\n ConfidentialityLabel.setVisible(true);\n } else {\n ConfidentialityCombo.setVisible(false);\n ConfidentialityLabel.setVisible(false);\n }\n }", "title": "" }, { "docid": "49ef3eeefd7e239552a3c49c8eebbe1f", "score": "0.51099026", "text": "public void setConfidentialityActive(final boolean flag) {\n confidentialityActive = flag;\n }", "title": "" }, { "docid": "cb1526e827865de46d878ca37911e7e5", "score": "0.51065975", "text": "public void UpdateDeductions() {\n \n try {\n\n //show confirm msg box\n int x = JOptionPane.showConfirmDialog(rootPane, \"Do you want to Update this Record ? \");\n\n if (x == 0) {\n \n String value1 = txt_NopayAmount.getText();\n String value2 = txt_totEPF.getText();\n String value3 = txt_empEPF.getText();\n String value4 = txt_salaryAdvance.getText();\n String value5 = txt_festivalAdvance.getText();\n String value6 = txt_stampDuty.getText();\n String value7 = txt_totDeductions.getText();\n String value8 = txt_netSalary.getText();\n String salary_value = (String)combobox_empnosalary.getSelectedItem();\n \n String sql= \"update salary set salary.NoPayAmount='\"+value1+\"',salary.TotEPF='\"+value2+\"', salary.EmpEPF='\"+value3+\"', \"\n + \"salary.SalaryAdvance='\"+value4+\"',salary.FestivalAdvance='\"+value5+\"', salary.StampDuty='\"+value6+\"', \"\n + \"salary.TotDeduction='\"+value7+\"',salary.NetSalary='\"+value8+\"' \"\n + \" where salary.empNo='\"+salary_value+\"' \";\n \n \n pst=c.prepareStatement(sql);\n pst.execute();\n \n JOptionPane.showMessageDialog(null, \"Record has been Updated successfully\");\n \n Clearall();\n\n }else if (x == 1) {\n Clearall();\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "38144b3e1a1ab0cbf20210cb9f1725f3", "score": "0.5089028", "text": "int updateByPrimaryKeySelective(InstitutionEnrollDefinition record);", "title": "" }, { "docid": "0a52cb57be3983ff6e1c79a4dc2c97e5", "score": "0.50757253", "text": "public void configureComponents() {\n configureDataPoolCombo();\n adjustConfidentialityCombo2DataPool();\n }", "title": "" }, { "docid": "3742a7b1d9a916898cd1ba771bade22f", "score": "0.5074379", "text": "public void initializeFromObject(mlcObject o) {\n if (o.getConfidentiality() == null) {\n System.err.println(\"Confidentiality of object \" + o.getId() + \" is null\");\n return;\n }\n if (o.getClient().getId() != o.getConfidentiality().getClient().getId()) {\n System.err.println(\"ObjectAccessControls: Fixing broken object with id=\"\n .concat(Integer.toString(o.getId()))\n .concat(\", conf=\")\n .concat(o.getConfidentiality().getName())\n .concat(\"[of \").concat(o.getConfidentiality().getClient().getName()).concat(\"]\")\n .concat(\", client=\" + o.getClient().getName())\n .concat(\" so that confidentiality matches data pool\"));\n CommandRecorder.getInstance().scheduleCommand(new ConfidentialityUpdateCommand(o, DefaultObjectAttributes.getConfidentiality(o.getClient().getId())));\n }\n this.object = o;\n DataPoolCombo.setSelectedItem(object.getClient());\n adjustConfidentialityCombo2DataPool();\n ConfidentialityCombo.setSelectedItem(object.getConfidentiality());\n\n }", "title": "" }, { "docid": "334e45698f995996989fa0a6448ea489", "score": "0.49899578", "text": "public void UpdateAllowances() {\n\n try {\n\n //show confirm msg box\n int x = JOptionPane.showConfirmDialog(rootPane, \"Do you want to Update this Record ? \");\n\n if (x == 0) {\n \n String value1 = txt_OTAmount.getText();\n String value2 = txt_incentive.getText();\n String value3 = txt_NightShifts.getText();\n String value4 = txt_NightAllowance.getText();\n String value5 = txt_grossSalary.getText();\n String salary_value = (String)combobox_empnosalary.getSelectedItem();\n \n String sql= \"update salary set salary.OTAmount='\"+value1+\"',salary.AttnIncentive='\"+value2+\"', salary.NightShifts='\"+value3+\"', \"\n + \"salary.NightIncentive='\"+value4+\"',salary.GrossSalary='\"+value5+\"' \"\n + \" where salary.empNo='\"+salary_value+\"' \";\n \n \n pst=c.prepareStatement(sql);\n pst.execute();\n \n JOptionPane.showMessageDialog(null, \"Record has been Updated successfully\");\n \n Clearall();\n\n }else if (x == 1) {\n Clearall();\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "84583f11938a322b64b162e33400d940", "score": "0.49024203", "text": "int updateAuthority(AuthCheck data) throws Exception;", "title": "" }, { "docid": "d7aa8656c6a06e95add702d629bf91b9", "score": "0.4871773", "text": "int updateByPrimaryKeySelective(SecurityProblem record);", "title": "" }, { "docid": "69acacdad83bcb6949a54e0cdf54ec08", "score": "0.48567408", "text": "public org.hl7.fhir.Coding addNewConfidentiality()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Coding target = null;\n target = (org.hl7.fhir.Coding)get_store().add_element_user(CONFIDENTIALITY$12);\n return target;\n }\n }", "title": "" }, { "docid": "8a8561d97c90501acb340cf1c72e3b9d", "score": "0.4851789", "text": "public boolean updateAccessOfAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding, SalarySettingFieldsHolder salarySettingFieldsHolder, boolean budgetByObjectMode, boolean hasDocumentEditAccess, Person person);", "title": "" }, { "docid": "f77988c5495b3b7ce0868dc2b1fbc150", "score": "0.48124135", "text": "int updateByPrimaryKeySelective(PaasContractorAuthorization record);", "title": "" }, { "docid": "e49909e95b9e4c6e939ad003efd7f4b7", "score": "0.47805378", "text": "@Override\n\tpublic int updateCompany(String comapanyCode, String companyName) throws DataAccessException {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "49d5939a51848fcf4630c5434469d176", "score": "0.4745241", "text": "void setCriticality(org.hl7.fhir.Criticality criticality);", "title": "" }, { "docid": "ac7d5ec486357dac96f94bc0473b5b90", "score": "0.47438896", "text": "boolean updateAuthorisationStatus(@NotNull PsuIdData psuIdData, @NotNull String paymentId, @NotNull String authorisationId, @NotNull ScaStatus status, @NotNull String instanceId, AuthenticationDataHolder authenticationDataHolder) throws AuthorisationIsExpiredException;", "title": "" }, { "docid": "787a3f2206318dafbb79f0e069ef88b0", "score": "0.4740948", "text": "int updateByPrimaryKeySelective(CreditAuth record);", "title": "" }, { "docid": "0985640f722915428b37881260177498", "score": "0.47385454", "text": "@Test(priority = 15)\n public void updateCatering() {\n System.out.println(\"delete Catering id=\" + tid);\n\n Optional<Catering> optCatering = resourcesService.getCateringById(tid);\n Assert.assertTrue(optCatering.isPresent());\n\n Catering catering = optCatering.get();\n String remark = catering.getRemark();\n catering.setTenantId(1L);\n catering.setLon(new BigDecimal(120.253));\n catering.setLat(new BigDecimal(76.809));\n catering.setRemark(\"营业时间:9:00~23:00\");\n\n try {\n Optional<Catering> savedCatering = resourcesService.updateCatering(catering);\n Assert.assertTrue(savedCatering.isPresent());\n Assert.assertNotEquals(remark, savedCatering.get().getRemark());\n System.out.println(\"update Catering successfully!\");\n } catch (BaseSystemException e) {\n String errorMsg = e.getError().getErrorMessage();\n if (DefaultError.NOT_SAME_TENANT_ID.getErrorMessage().equals(errorMsg)) {\n System.out.println(\"the Catering id=\" + tid + \" tenant id is not same one!\");\n } else if (ResourcesBizError.SAME_NAME_RESOURCE_IS_EXISTING.getErrorMessage().equals(errorMsg)) {\n System.out.println(\"the Catering id=\" + tid + \" with same name is existing!\");\n } else {\n e.printStackTrace();\n Assert.fail(\"update Catering failed!\");\n }\n }\n }", "title": "" }, { "docid": "31d63e816878ebc9a34cf559aa8f3b89", "score": "0.47081673", "text": "int updateByPrimaryKeySelective(AuthoryManage record);", "title": "" }, { "docid": "8f02aeba5175c3c21816d33697aecb94", "score": "0.46839935", "text": "int updateByPrimaryKeySelective(Institution record);", "title": "" }, { "docid": "c3aad38cbcf15bcea04af157258adf36", "score": "0.4676964", "text": "public void setSourceSystemCompanyCode(OrganisationalCentreID param) {\n localSourceSystemCompanyCodeTracker = param != null;\n\n this.localSourceSystemCompanyCode = param;\n }", "title": "" }, { "docid": "aa88938bca6d1324268fa42e0b4dd419", "score": "0.46689597", "text": "public void updateLicense(String lic) throws GridProductLicenseException;", "title": "" }, { "docid": "8b6099b2d9e7bb98f1abecf1d795bd2f", "score": "0.46622857", "text": "int updateByPrimaryKeySelective(TycCompanyAdmPenaltyCrawler record);", "title": "" }, { "docid": "1b34cabcc67e3ff1a47454b732105d5f", "score": "0.46585444", "text": "int updateByPrimaryKeySelective(SecurityConfigWithBLOBs record);", "title": "" }, { "docid": "6db53c0afc7cda7c05ab6dc803b4021b", "score": "0.46567637", "text": "@Override\n\tpublic void updateConcert(int id) {\n\t\t\n\t}", "title": "" }, { "docid": "b90a78e0a9e4c01eb705d9f7b6b137a9", "score": "0.46543077", "text": "@Test\n\tpublic void testEditEducationDataGood() {\n\t\tsuper.authenticate(\"rookie1\");\n\n\t\tfinal int IdEducationData = super.getEntityId(\"educationData1\");\n\t\tfinal EducationData edData = this.educationDataService.findOne(IdEducationData);\n\n\t\tfinal Curriculum curriculum = this.curriculumService.findByEducationData(edData);\n\n\t\tedData.setMark(\"10\");\n\t\tthis.educationDataService.save(edData, curriculum);\n\t\tsuper.unauthenticate();\n\t}", "title": "" }, { "docid": "7eb539947d7cee9e52cca20bd2ab2968", "score": "0.4654229", "text": "@Override\r\n\tpublic CompanySecurity updateCompanySecurity(CompanySecurity cs, int companyId) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8df54433b06b4fe53eca4ab2fa0ae217", "score": "0.46520936", "text": "private void addDataSetAndSecurities() {\n\t\tdataManager.addDatasetSecuritiesIntoDatabase();\n\t}", "title": "" }, { "docid": "581332cb4fe2e82bae4d101dc06dd39b", "score": "0.46332806", "text": "public void setSecureCustID(int param){\r\n \r\n this.localSecureCustID=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "c0abf7e0d1ddf5b09535ecd4c9b36370", "score": "0.46198353", "text": "public void setConfidential(java.lang.Boolean value);", "title": "" }, { "docid": "c436a4b026a10f4fcfc67ca2338025fa", "score": "0.4613708", "text": "void updateAvailability(Context ctx) throws SQLException, PersonNotFoundException {\n int avail = ctx.formParam(\"availability\", Integer.class).get();\n personRepository.updateAvailability(avail, currentPerson(ctx).getIdentifier());\n }", "title": "" }, { "docid": "71606f72cbca63ecc3cee798277089ff", "score": "0.4595166", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n DataPoolLabel = new javax.swing.JLabel();\n DataPoolCombo = new javax.swing.JComboBox();\n ConfidentialityLabel = new javax.swing.JLabel();\n ConfidentialityCombo = new javax.swing.JComboBox();\n\n DataPoolLabel.setFont(DataPoolLabel.getFont().deriveFont(DataPoolLabel.getFont().getSize()-2f));\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"com/mindliner/resources/GeneralEditor\"); // NOI18N\n DataPoolLabel.setText(bundle.getString(\"AEDDataPool\")); // NOI18N\n\n DataPoolCombo.setFont(DataPoolCombo.getFont());\n DataPoolCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n DataPoolCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n DataPoolComboActionPerformed(evt);\n }\n });\n\n ConfidentialityLabel.setFont(ConfidentialityLabel.getFont().deriveFont(ConfidentialityLabel.getFont().getSize()-2f));\n ConfidentialityLabel.setText(bundle.getString(\"AEDConfidentiality\")); // NOI18N\n\n ConfidentialityCombo.setFont(ConfidentialityCombo.getFont());\n ConfidentialityCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\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 .addComponent(ConfidentialityCombo, 0, 186, Short.MAX_VALUE)\n .addComponent(ConfidentialityLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(DataPoolCombo, 0, 186, Short.MAX_VALUE)\n .addComponent(DataPoolLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(DataPoolLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(DataPoolCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ConfidentialityLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ConfidentialityCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n }", "title": "" }, { "docid": "9448bc706a9a0fecbab149d64118448e", "score": "0.45755646", "text": "public void update() {\n\t\tgetPoolClientTM().update();\n\t\tinit();\n\t}", "title": "" }, { "docid": "46fcbeadfdbb50d5fa4e5b2933bd50da", "score": "0.4572278", "text": "public GeneralDicData updateGeneralDic(GeneralDicData data) {\n\t\treturn generalDicBusiness.updateGeneralDic(data);\r\n\t}", "title": "" }, { "docid": "93b59384585d6b11df83c20a7bc94cc0", "score": "0.45663851", "text": "public void updateAccountingSystem()\n {\n externalAccountingSystem.updateAccountingSystem(sale);\n }", "title": "" }, { "docid": "e0ca4d84b775f7af047c988d726edca2", "score": "0.4550275", "text": "java.lang.String UpdateOrganisationCredit(String token, java.lang.String organisationName, int creditAmount) throws AuthenticationException, ServerException;", "title": "" }, { "docid": "fcbd016c83d9da8e308c6934222a3e9a", "score": "0.45355216", "text": "public void editReportingRequirements() {\r\n int selectedRowIndices[] = reportingRequirementsForm.tblDetails.getSelectedRows();\r\n CoeusVector cvEditData= new CoeusVector();\r\n for (int index=0;index<selectedRowIndices.length;index++) {\r\n AwardReportReqBean bean = (AwardReportReqBean) cvCurrentDetailsData.get(selectedRowIndices[index]);\r\n if (bean!=null) {\r\n cvEditData.add(bean);\r\n }\r\n }\r\n EditReportingRequirementController editReportingRequirementController;\r\n if (cvEditData != null && cvEditData.size()>0) {\r\n editReportingRequirementController = new EditReportingRequirementController(awardBaseBean,getFunctionType());\r\n editReportingRequirementController.setFormData(cvEditData);\r\n int retEdit = editReportingRequirementController.displayEditDialog();\r\n if (retEdit == editReportingRequirementController.OK_SELECTED) {\r\n if(editReportingRequirementController.isModified()) {\r\n tableModified = true;\r\n }\r\n CoeusVector cvEditedData = (CoeusVector)editReportingRequirementController.getFormData();\r\n cvEditData = cvEditedData;\r\n } //OK selected ends\r\n }\r\n }", "title": "" }, { "docid": "e946c1911e70605b6cc7a1caa8697127", "score": "0.45261824", "text": "int updateByPrimaryKeySelective(ShopCommoditySku record);", "title": "" }, { "docid": "c97fcd9670d534d53bbf72bf125fce8c", "score": "0.45211992", "text": "int updateByPrimaryKey(SecurityConfigDO record);", "title": "" }, { "docid": "8abbc8933aef636e20345887634cc9c7", "score": "0.45210055", "text": "Update withReliabilityLevel(ReliabilityLevel reliabilityLevel);", "title": "" }, { "docid": "39a2a28629be887772f539837ed46a81", "score": "0.45208314", "text": "public abstract void updateDomainSpec(ClusterConfig clusterConfig);", "title": "" }, { "docid": "2808c191221774747be7159a138262ee", "score": "0.45079684", "text": "public abstract Lawyer update(Lawyer paramCmsTest);", "title": "" }, { "docid": "fb141d97b6ce4d18156e001797afe23f", "score": "0.44989714", "text": "protected void setDiseaseForDataSource(final String disease) {\r\n DiseaseContextHolder.setDisease(disease);\r\n }", "title": "" }, { "docid": "b6a1c421f5061dcdcc39d7ea5ab81598", "score": "0.44893315", "text": "public void update(OrganisationDetails organisationDetails) {\n\t\t\n\t}", "title": "" }, { "docid": "5ede4a1b714bbaf72cf07ed592ab6bd7", "score": "0.44772324", "text": "@DescriptorKey(\"Force refresh on the pool\")\n void refreshPool();", "title": "" }, { "docid": "c8d78ef1e79c5ec9c14486fc0635ed42", "score": "0.4473684", "text": "private void StoragePool_SelectedItemChanged(EventArgs e)\n\t{\n\t\tstorage_pool selectedDataCenter = (storage_pool)getDataCenter().getSelectedItem();\n\t\tif (selectedDataCenter.getstorage_pool_type() == StorageType.LOCALFS)\n\t\t{\n\t\t\tsetIsResiliencePolicyTabAvailable(false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetIsResiliencePolicyTabAvailable(true);\n\t\t}\n\t\tjava.util.ArrayList<Version> versions = DataProvider.GetDataCenterClusterVersions(selectedDataCenter == null ? null : (NGuid)(selectedDataCenter.getId()));\n\t\tgetVersion().setItems(versions);\n\t\tif (!versions.contains((Version)getVersion().getSelectedItem()))\n\t\t{\n\t\t\tif (versions.contains(selectedDataCenter.getcompatibility_version()))\n\t\t\t{\n\t\t\t\tgetVersion().setSelectedItem((Version)selectedDataCenter.getcompatibility_version());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tgetVersion().setSelectedItem(Linq.SelectHighestVersion(versions));\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "1ce709f8617a6bc5aa087a1dd7327310", "score": "0.4471685", "text": "int updateByPrimaryKeySelective(CouponDO record);", "title": "" }, { "docid": "23be30b8441cefa08de378f8bc8ee9d9", "score": "0.4466647", "text": "public void updateHas() {\n if (ServiceManager.getInstance().isConnected()) {\n new DataFlycGetParams().setInfos(PARAMS_REDUNDANCY_SYSHAS).start(new DJIDataCallBack() {\n /* class dji.pilot.fpv.control.DJIRedundancySysController.AnonymousClass3 */\n\n public void onSuccess(Object model) {\n int unused = DJIRedundancySysController.this.mHasRedundancySys = DJIFlycParamInfoManager.read(ParamCfgName.GCONFIG_TOPOLOGY_SINGLE_MULT).value.intValue();\n DJIRedundancySysController.this.mHandler.sendEmptyMessageDelayed(4096, 1000);\n }\n\n public void onFailure(Ccode ccode) {\n DJIRedundancySysController.this.mHandler.sendEmptyMessageDelayed(4096, 200);\n }\n });\n }\n }", "title": "" }, { "docid": "ccdbf013dcea473f9de727545213107f", "score": "0.44594836", "text": "public void setCertID(java.lang.String param){\r\n localCertIDTracker = param != null;\r\n \r\n this.localCertID=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "ccdbf013dcea473f9de727545213107f", "score": "0.44594836", "text": "public void setCertID(java.lang.String param){\r\n localCertIDTracker = param != null;\r\n \r\n this.localCertID=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "7903e30d38ac5973891e168662ccdb03", "score": "0.44588602", "text": "int updateByPrimaryKeySelective(InformationMarketcap record);", "title": "" }, { "docid": "20d924c25c93f1ea01f0c680f9160314", "score": "0.44539857", "text": "@Override\n\tpublic int updateByPrimaryKeySelective(CusArea record) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "c45a7878c1eeda5da9a7240a81a5495c", "score": "0.4449852", "text": "int updateByPrimaryKeySelective(Landownership record);", "title": "" }, { "docid": "fe47a9a5d5534e88162abf8a9b86566b", "score": "0.44426644", "text": "public void UpdateEPFETF() {\n\n try {\n\n //show confirm msg box\n int x = JOptionPane.showConfirmDialog(rootPane, \"Do you want to Update this Record ? \");\n\n if (x == 0) {\n \n String value1 = txt_EPFCon.getText();\n String value2 = txt_ETFCon.getText();\n \n String salary_value = (String)combobox_empnosalary.getSelectedItem();\n \n String sql= \"update salary set salary.EPFCon='\"+value1+\"',salary.ETFCon='\"+value2+\"' \"\n + \" where salary.empNo='\"+salary_value+\"' \";\n \n \n pst=c.prepareStatement(sql);\n pst.execute();\n \n JOptionPane.showMessageDialog(null, \"Record has been Updated successfully\");\n \n Clearall();\n\n }else if (x == 1) {\n Clearall();\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "24513865933b9ed0ab3f1e784bcc065c", "score": "0.44316995", "text": "protected void updateSelectionConfiguration(OgemaHttpRequest req, String configId) {\n\t\tfinal SessionConfiguration sessionConfig = configProvider(req).getSessionConfiguration(configId);\n\t\tif (sessionConfig != null) {\n\t\t\tscheduleSelector(req).overwriteScheduleSelectorWithProvider(req, sessionConfig);\n\t\t\tupdateConditionalTimeSeriesFilterCategoryPreselected(req, sessionConfig);\n\t\t\tupdateFiltersPreSelected(req, sessionConfig);\n\t\t}\n\n\t}", "title": "" }, { "docid": "2cd2b14fca2e7475c12dae330f09bf05", "score": "0.44288453", "text": "public void run() {\n boolUserApproved = false;\n\n // First fetch the database connection!\n if (!ConnectionManager.getInstance().hasConnection()) {\n MatLogger.logExceptionalEvent(\"Unable to find a database connection.\");\n } else if (iData instanceof SelectedPeptideIdentifications) {\n\n // First persist all the selected ids.\n int lNumberOfSpectra = ((SelectedPeptideIdentifications) iData).getNumberOfSpectra();\n for (int i = 0; i < lNumberOfSpectra; i++) {\n PeptideIdentification lPeptideIdentification =\n ((SelectedPeptideIdentifications) iData).getPeptideIdentification(i);\n\n String lAutoComment = CommentGenerator.getCommentForSelectiveAgents(lPeptideIdentification, 1, false);\n\n ValidationReport lValidationReport = lPeptideIdentification.getValidationReport();\n lValidationReport.setAutoComment(lAutoComment);\n\n if (lValidationReport.isValidated()) {\n this.persistValidation(lPeptideIdentification);\n } else {\n while (boolUserApproved == false) {\n\n iUserApproveOption = JOptionPane.showOptionDialog(\n iParentComponent,\n \"Do you want to store the selected identifications that you did not validate?\",\n \"Unvalidated peptide identifications\",\n JOptionPane.OK_CANCEL_OPTION,\n JOptionPane.QUESTION_MESSAGE,\n UIManager.getIcon(\"OptionPane.questionIcon\"),\n iUserOptions,\n iUserOptions[0]);\n boolUserApproved = true;\n }\n\n if (iUserApproveOption == 0) {\n // do nothing with tis non-validated identification.\n iNumberNotValidated++;\n\n } else if (iUserApproveOption == 1) {\n lValidationReport.setAutoComment(lAutoComment);\n lValidationReport.setResult(true);\n this.persistValidation(lPeptideIdentification);\n\n } else if (iUserApproveOption == 2) {\n lValidationReport.setAutoComment(lAutoComment);\n lValidationReport.setResult(false);\n this.persistValidation(lPeptideIdentification);\n }\n }\n\n }\n\n // Second, persist all the confident but not selected ids if needed.\n\n if (saveConfidentNotSelected) {\n File[] lFiles = TempManager.getInstance().getFiles((SelectedPeptideIdentifications) iData, TempFileEnum.CONFIDENT_NOT_SELECTED);\n if (lFiles != null) {\n for (int i = 0; i < lFiles.length; i++) {\n try {\n File lFile = lFiles[i];\n ObjectInputStream ois1 = new ObjectInputStream(new FileInputStream(lFile));\n Object o = null;\n // Loop through object input stream.\n // I know this is messy, though I do not see any method to check EOF on the ObjectInputStream.o\n while ((o = ois1.readObject()) != null) {\n if (o instanceof PeptideIdentification && o != null) {\n PeptideIdentification lPeptideIdentification = (PeptideIdentification) o;\n String lAutoComment = CommentGenerator.getCommentForSelectiveAgents(lPeptideIdentification, 1, false);\n\n lPeptideIdentification.getValidationReport().setAutoComment(lAutoComment);\n lPeptideIdentification.getValidationReport().setResult(true);\n this.persistValidation(lPeptideIdentification);\n }\n }\n } catch (EOFException eof) {\n // The end of the file is reached, go to the next file ..\n } catch (IOException e) {\n logger.error(e.getMessage(), e); //To change body of catch statement use File | Settings | File Templates.\n } catch (ClassNotFoundException e) {\n logger.error(e.getMessage(), e); //To change body of catch statement use File | Settings | File Templates.\n }\n }\n }\n }\n\n\n } else {\n MatLogger.logExceptionalEvent(\"ValidationSaveToCSV does not yet implements \\'\" + iData.getClass() + \"\\' instances!!\");\n }\n\n if (iObserver != null) {\n iObserver.update(null, WorkerResult.SUCCES);\n }\n }", "title": "" }, { "docid": "2dc4a451cb3fb952e896b79aa0ede78f", "score": "0.4427762", "text": "private void updateDeductionItem() {\n getValues();\n // create a resolver to connect to the content provider\n ContentResolver resolver = getActivity().getContentResolver();\n String[] selectionArgs = new String[] {\n database_id + \"\"\n };\n\n // clear values\n values.clear();\n\n values.put(Deduction.COLUMN_AMOUNT, deduction_amount);\n values.put(Deduction.COLUMN_DESCRIPTION, deduction_description);\n values.put(Deduction.COLUMN_NAME, deduction_name);\n values.put(Deduction.COLUMN_NUMBER, deduction_number);\n values.put(Deduction.COLUMN_PAYDAY1, first_payday);\n values.put(Deduction.COLUMN_PAYDAY2, second_payday);\n values.put(Deduction.COLUMN_PAYDAY3, third_payday);\n\n resolver.update(DeductionContentProvider.CONTENT_URI, values, Deduction.COLUMN_ID + \"=?\",\n selectionArgs);\n }", "title": "" }, { "docid": "6840037283fe724270500dbbf70e6bd5", "score": "0.44192147", "text": "@Override\n protected void updateStatusInCms(String businessObjectId, SpiAspspConsentDataProvider aspspConsentDataProvider) {\n }", "title": "" }, { "docid": "f079c52fa48d6ec68b5b03334d4b0f45", "score": "0.44182682", "text": "void updateCompanyDetail(CompanyDetail companyDetail);", "title": "" }, { "docid": "18cf921d05ee16245a828c75e1c76fbf", "score": "0.44170666", "text": "@Override\r\n \tpublic void onOSCESecurityChange(final OsceProxy osceProxy,\r\n \t\t\tOSCESecurityStatus osceSecurityStatus,\r\n \t\t\tPatientAveragePerPost patientAveragePerPost,\r\n \t\t\tfinal boolean isSecurityChange) {\r\n \r\n \t\tshowApplicationLoading(true);\r\n \t\t// module 3 bug {\r\n \t\t\r\n \t\tosceDayTimer.cancel();\r\n \t\t\r\n \t\t\r\n \t\t// module 3 bug }\r\n \t\tOsceRequest osceRequest = requests.osceRequest();\r\n \r\n \t\tOsceProxy tempOsceProxy = osceRequest.edit(osceProxy);\r\n \t\tif (isSecurityChange) {\r\n \t\t\ttempOsceProxy.setSecurity(osceSecurityStatus);\r\n \t\t\tif(osceSecurityStatus==OSCESecurityStatus.FEDERAL_EXAM){\r\n \t\t\t\ttempOsceProxy.setOsceSecurityTypes(OsceSecurityType.federal);\r\n \t\t\t}\r\n \t\t\telse{\r\n \t\t\t\ttempOsceProxy.setOsceSecurityTypes(OsceSecurityType.simple);\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\ttempOsceProxy.setPatientAveragePerPost(patientAveragePerPost);\r\n \t\t}\r\n \t\t\r\n \t\tLog.debug(\"isSecurityChange is : \"\r\n \t\t\t\t+ isSecurityChange);\r\n \r\n \t\tosceRequest.persist().using(tempOsceProxy)\r\n \t\t\t\t.fire(new OSCEReceiver<Void>() {\r\n \r\n \t\t\t\t\t@Override\r\n \t\t\t\t\tpublic void onSuccess(Void arg0) {\r\n \r\n \t\t\t\t\t\tif (isSecurityChange) {\r\n \t\t\t\t\t\t\trequests.patientInRoleRequestNonRoo()\r\n \t\t\t\t\t\t\t\t\t.removePatientInRoleByOSCE(\r\n \t\t\t\t\t\t\t\t\t\t\tosceProxy.getId())\r\n \t\t\t\t\t\t\t\t\t.fire(new OSCEReceiver<Integer>() {\r\n \t\t\t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\t\t\tpublic void onSuccess(Integer response) {\r\n \t\t\t\t\t\t\t\t\t\t\tLog.debug(\"No. of Patient removed from day is : \"\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t+ response.intValue());\r\n \t\t\t\t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\t\t\t\tinitOsceDaySubView();\r\n \t\t\t\t\t\t\t\t\t\t\tinitPatientInSemester(true,false,false);\t\r\n \r\n \t\t\t\t\t\t\t\t\t\t\tview.getDataTable()\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t.setNavigationButtonEnable(\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfalse);\r\n \t\t\t\t\t\t\t\t\t\t\tshowApplicationLoading(false);\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\t\t\tpublic void onViolation(java.util.Set<com.google.gwt.requestfactory.shared.Violation> errors) {\r\n \t\t\t\t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\t\t\t\t// module 3 bug {\r\n \t\t\t\t\t\t\t\t\t\t\tosceDayTimer.scheduleRepeating(osMaConstant.OSCEDAYTIMESCHEDULE);\r\n \t\t\t\t\t\t\t\t\t\t\t// module 3 bug }\r\n \t\t\t\t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\t\t\tpublic void onFailure(ServerFailure error) {\r\n \t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"In onFailure \");\r\n \t\t\t\t\t\t\t\t\t\t\terror.getStackTraceString();\r\n \t\t\t\t\t\t\t\t\t\t\tSystem.out.println(error.getMessage() +\"\\n\"+error.getStackTraceString());\r\n \t\t\t\t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\t\t\t\t// module 3 bug {\r\n \t\t\t\t\t\t\t\t\t\t\tosceDayTimer.scheduleRepeating(osMaConstant.OSCEDAYTIMESCHEDULE);\r\n \t\t\t\t\t\t\t\t\t\t\t// module 3 bug }\r\n \t\t\t\t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t\t\t\t});\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\telse{\r\n \t\t\t\t\t\t\tinitOsceDaySubView();\r\n \t\t\t\t\t\t\tshowApplicationLoading(false);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\r\n \t\t\t\t});\r\n \t\t// module 3 bug {\r\n \t\t\r\n \t\tosceDayTimer.scheduleRepeating(osMaConstant.OSCEDAYTIMESCHEDULE);\r\n \t\t\r\n \t\t// module 3 bug }\r\n \t}", "title": "" }, { "docid": "eb8269804bfdc2c217b9460c35532615", "score": "0.44163242", "text": "@Override\n public void onHandleConfig(String dataId, long newOpVersion) {\n ServerInstIdManager.getInstance().reload();\n\n // Reload all nodes including master and read-only.\n this.gmsClusterLoader.loadNodeInfos();\n\n // Init group configs for all read-only storage inst\n DbTopologyManager.initGroupConfigsForReadOnlyInstIfNeed();\n }", "title": "" }, { "docid": "cf316b64bb1316487d8a4df3d8f20862", "score": "0.44100133", "text": "int updateByPrimaryKeySelective(BaseUniversityCampus record);", "title": "" }, { "docid": "9bd62f6c4e5b2274da1f9e7062fa0550", "score": "0.44081938", "text": "int updateByPrimaryKeySelective(SysConfig record);", "title": "" }, { "docid": "2afc716e0e1e7833ef2588327e1290b8", "score": "0.44060096", "text": "@Transactional(readOnly=false,noRollbackFor={DoesNotExistException.class},rollbackFor={Throwable.class})\r\n\tpublic void updateSisCourseInfoCluSetUpdate(ProceedingJoinPoint pjp, ContextInfo contextInfo) throws Throwable{\r\n\t if(true){\r\n\t \treturn;\r\n\t }\r\n\t\t// If the enablePushToSis environment variable is false, do not write course to SIS\r\n // (allows us to turn off push for public environment)\r\n if (!enablePushToSis){\r\n return;\r\n }\r\n \t \r\n\t Object[] args = pjp.getArgs();\r\n\t\tString newCluSetId = (String)args[0]; // Modified cluSetId\r\n\t\tCluSetInfo newCluSetInfo = (CluSetInfo)args[1]; // Modified cluSetInfo\r\n\t\t\r\n\t\t// Make sure it's a CluSet we care about (Hardcoded)\r\n\t\tString cluSetName = newCluSetInfo.getName();\r\n\t\t\r\n\t\t// \"cluSetName\" will now be a long description name (was just the code before)\r\n\t\t// So, get and check the new map which contains hardcoded set description names.\r\n\t\t\r\n\t\tMap<String, String> CoreGenCluSetCodeToDescriptionMap = coreGenedClusetMapper.getCodeToDescriptionMap(contextInfo);\r\n\t \r\n\t\tBoolean weCare = CoreGenCluSetCodeToDescriptionMap.containsValue(cluSetName);\r\n\t\tif (weCare){\r\n\t\r\n\t\t\t// Obtain new Ids\r\n\t\t\tSet<String> newCluIds = new HashSet<String>(newCluSetInfo.getCluIds());\r\n\t\t\tList<String> listNewCluIds = newCluSetInfo.getCluIds();\r\n \r\n\t\t\t// Obtain old (\"current\") Ids via luService call\t\t\t\r\n\t\t\tList<String> listOldCluIds = luService.getAllCluIdsInCluSet(newCluSetId,contextInfo);\t\t\r\n\t\t\tSet<String> oldCluIds = new HashSet<String>(listOldCluIds);\r\n\t\t\t\r\n\t\t\t// Removed Courses (old - new)\r\n Set<String> removedCluIds = new HashSet<String>(oldCluIds);\r\n removedCluIds.removeAll(newCluIds);\r\n System.out.println(\"Removed these clu IDs: \" + removedCluIds );\r\n for(String cluId :removedCluIds){\r\n \t// Translate from VerIndId to current Ver Id to get current courseInfo obj\r\n \tVersionDisplayInfo vdi = courseService.getCurrentVersion(CourseServiceConstants.COURSE_NAMESPACE_URI, cluId,contextInfo); \t\r\n \tCourseInfo courseInfo = courseService.getCourse(vdi.getId(),contextInfo); \r\n \t//sisCmDao.updateSisCourseInfo(courseInfo, \"P\");//FIXME we should test to see if there is a pushed record before we update vs create\r\n }\r\n \r\n // Added Courses (new - old)\r\n Set<String> addedCluIds = new HashSet<String>(newCluIds);\r\n addedCluIds.removeAll(oldCluIds); \r\n System.out.println(\"Added these clu IDs: \" + addedCluIds );\r\n for(String cluId :addedCluIds){\r\n \t// Translate from VerIndId to current Ver Id to get current courseInfo obj\r\n \tVersionDisplayInfo vdi = courseService.getCurrentVersion(CourseServiceConstants.COURSE_NAMESPACE_URI, cluId,contextInfo); \t\r\n \tCourseInfo courseInfo = courseService.getCourse(vdi.getId(),contextInfo);\r\n \t//sisCmDao.updateSisCourseInfo(courseInfo, \"P\");//FIXME we should test to see if there is a pushed record before we update vs create \t \r\n } \r\n\t\t} // end if weCare\r\n\t}", "title": "" }, { "docid": "913733dd2a413afb2d1441df5aa2e248", "score": "0.44037357", "text": "org.hl7.fhir.Criticality addNewCriticality();", "title": "" }, { "docid": "02cf9e59d22f93c9a5258ddff7639164", "score": "0.43947983", "text": "public boolean isConfidentialityActive() {\n return confidentialityActive;\n }", "title": "" }, { "docid": "7c6da540871068560b64acd0a16b9b97", "score": "0.43792102", "text": "@Secured({IManagementService.JFW_SEC_MANAGEMENT_ROLENAME})\n void updateMultiTenancyRealm(MultiTenancyRealm multiTenancyRealm) \n throws \n ObjectNotFoundException, \n ValidationException, \n StaleObjectException,\n NonModifiableObjectException;", "title": "" }, { "docid": "e7342b38976e4bf836efdb91ddb9e66b", "score": "0.4376889", "text": "@Transactional\n\t@Rollback(true)\n\t@Test\n\tpublic void test_updateCertifiedProductSearchDetails_privacyAndSecurityFramework_badValueShowsError() throws EntityRetrievalException, EntityCreationException, IOException, ValidationException {\n\t\tSecurityContextHolder.getContext().setAuthentication(adminUser);\n\t\tCertifiedProductSearchDetails updateRequest = new CertifiedProductSearchDetails();\n\t\tupdateRequest.setCertificationDate(1440090840000L);\n\t\tupdateRequest.setId(1L);\n\t\tMap<String, Object> certStatus = new HashMap<String, Object>();\n\t\tcertStatus.put(\"name\", \"Active\");\n\t\tupdateRequest.setCertificationStatus(certStatus);\n\t\tupdateRequest.getCertifyingBody().put(\"id\", \"-1\");\n\t\tList<CertificationResult> certificationResults = new ArrayList<CertificationResult>();\n\t\tCertificationResult cr = new CertificationResult();\n\t\tcr.setAdditionalSoftware(null);\n\t\tcr.setApiDocumentation(null);\n\t\tcr.setG1Success(false);\n\t\tcr.setG2Success(false);\n\t\tcr.setGap(null);\n\t\tcr.setNumber(\"170.314 (g)(4)\");\n\t\tcr.setPrivacySecurityFramework(\"Approach 1 Approach 2\"); // bad value\n\t\tcr.setSed(null);\n\t\tcr.setSuccess(true);\n\t\tcr.setTestDataUsed(null);\n\t\tcr.setTestFunctionality(null);\n\t\tcr.setTestProcedures(null);\n\t\tcr.setTestStandards(null);\n\t\tcr.setTestTasks(null);\n\t\tList<CertificationResultTestTool> crttList = new ArrayList<CertificationResultTestTool>();\n\t\tCertificationResultTestTool crtt = new CertificationResultTestTool();\n\t\tcrtt.setId(2L);\n\t\tcrtt.setRetired(true);\n\t\tcrtt.setTestToolId(2L);\n\t\tcrtt.setTestToolName(\"Transport Test Tool\");\n\t\tcrttList.add(crtt);\n\t\tcr.setTestToolsUsed(crttList);\n\t\tcr.setTitle(\"Inpatient setting only - transmission of electronic laboratory tests and values/results to ambulatory providers\");\n\t\tcr.setUcdProcesses(null);\n\t\tcertificationResults.add(cr);\n\t\tupdateRequest.setCertificationResults(certificationResults);\n\t\tList<CQMResultDetails> cqms = new ArrayList<CQMResultDetails>();\n\t\tCQMResultDetails cqm = new CQMResultDetails();\n\t\tSet<String> versions = new HashSet<String>();\n\t\tversions.add(\"v0\");\n\t\tversions.add(\"v1\");\n\t\tversions.add(\"v2\");\n\t\tversions.add(\"v3\");\n\t\tversions.add(\"v4\");\n\t\tversions.add(\"v5\");\n\t\tcqm.setAllVersions(versions);\n\t\tcqm.setCmsId(\"CMS60\");\n\t\tList<CQMResultCertification> cqmResultCertifications = new ArrayList<CQMResultCertification>();\n\t\tcqm.setCriteria(cqmResultCertifications);\n\t\tcqm.setDescription(\"Acute myocardial infarction (AMI) patients with ST-segment elevation on the ECG closest to arrival time receiving \"\n\t\t\t\t+ \"fibrinolytic therapy during the hospital visit\"); \n\t\tcqm.setDomain(null);\n\t\tcqm.setId(0L);\n\t\tcqm.setNqfNumber(\"0164\");\n\t\tcqm.setNumber(null);\n\t\tcqm.setSuccess(true);\n\t\tSet<String> successVersions = new HashSet<String>();\n\t\tsuccessVersions.add(\"v2\");\n\t\tsuccessVersions.add(\"v3\");\n\t\tcqm.setSuccessVersions(successVersions);\n\t\tcqm.setTitle(\"Fibrinolytic Therapy Received Within 30 Minutes of Hospital Arrival\");\n\t\tcqm.setTypeId(2L);\n\t\tcqms.add(cqm);\n\t\tupdateRequest.setCqmResults(cqms);\n\t\tMap<String, Object> certificationEdition = new HashMap<String, Object>();\n\t\tString certEdition = \"2015\";\n\t\tcertificationEdition.put(\"name\", certEdition);\n\t\tupdateRequest.setCertificationEdition(certificationEdition);\n\t\tInheritedCertificationStatus ics = new InheritedCertificationStatus();\n\t\tics.setInherits(true);\n\t\tupdateRequest.setIcs(ics); // Inherited Status = product.getIcs();\n\t\tupdateRequest.setChplProductNumber(\"15.07.07.2642.EIC04.36.0.1.160402\");\n\t\ttry {\n\t\t\tListingUpdateRequest listingUpdateRequest = new ListingUpdateRequest();\n\t\t\tlistingUpdateRequest.setListing(updateRequest);\n\t\t\tcertifiedProductController.updateCertifiedProduct(listingUpdateRequest);\n\t\t} catch (InvalidArgumentsException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (ValidationException e) {\n\t\t\tassertNotNull(e);\n\t\t\tBoolean hasError = false;\n\t\t\tfor(String error : e.getErrorMessages()){\n\t\t\t\tif(error.startsWith(\"Certification 170.314 (g)(4) contains Privacy and Security Framework\")){\n\t\t\t\t\thasError = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tassertTrue(hasError);\n\t\t}\n\t}", "title": "" }, { "docid": "fd058e2e230827bf2dbd072e59603a53", "score": "0.436536", "text": "public int update(FCapitalAppropriationApplyReceiptDO FCapitalAppropriationApplyReceipt) throws DataAccessException;", "title": "" }, { "docid": "5c22a7952105aa81810a0231656e2ff3", "score": "0.43620396", "text": "int updateByPrimaryKeySelective(SubstanceInfoPO record);", "title": "" }, { "docid": "c8e0120db853f58fea07c7f006d26a57", "score": "0.43606454", "text": "public void updatePhysicianLists() {\r\n\t\t// list of physicians which are the counselors\r\n\t\tsetPhysicianCouncilList(physicianDao.list(ContactRole.CASE_CONFERENCE, false));\r\n\t\tsetPhysicianCouncilTransformer(new DefaultTransformer<Physician>(getPhysicianCouncilList()));\r\n\r\n\t\t// list of physicians to sign the request\r\n\t\tsetPhysicianSigantureList(physicianDao.list(ContactRole.SIGNATURE, false));\r\n\t\tsetPhysicianSigantureListTransformer(new DefaultTransformer<Physician>(getPhysicianSigantureList()));\r\n\t}", "title": "" }, { "docid": "8ee08653943c2357e39c4687daec2620", "score": "0.43573543", "text": "@Override\r\n\tpublic void changepassword(String id, String yeardata, String monthlddata, String quarterdata) throws Exception {\n\r\n\t}", "title": "" }, { "docid": "0a2398e61dd2fbeb341c425f1008a611", "score": "0.43546358", "text": "int updateByPrimaryKeySelective(TdxCompanyTag record);", "title": "" }, { "docid": "7c46303a919a43d0352dec004c3c6a8b", "score": "0.43523183", "text": "public void editData() {\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_COUNTRY_TYPE, mAdvancedBinder.spnCountry.getSelectedItem().toString());\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_PAYMENT_GATEWAY_TYPE, mAdvancedBinder.spnPaymentGatewayType.getSelectedItem().toString());\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_INSPIRENETZ_DIGEST_AUTH, mAdvancedBinder.etInspirenetzDigestAuth.getText().toString().trim());\n sessionManager.storeDataByKey(AppConstants.KEY_DEFAULT_INSPIRENETZ_HTTP_URL, mAdvancedBinder.etInspireNetzHttpURL.getText().toString().trim());\n sessionManager.storeDataByKey(AppConstants.KEY_DEFAULT_INSPIRENETZ_USERNAME, mAdvancedBinder.etInspirenetzUsername.getText().toString().trim());\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_INSPIRENETZ_PASSWORD, mAdvancedBinder.etInspireNetzPassword.getText().toString().trim());\n if (sessionManager.getDataByKey(AppConstants.PREF_KEY_COUNTRY_TYPE).equalsIgnoreCase(\"india\")) {\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_CURRENCY, AppConstants.RUPPEE);\n } else {\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_CURRENCY, AppConstants.DOLLOR);\n }\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_MERCHANT_ID, mAdvancedBinder.etMerchantID.getText().toString().trim());\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_TERMINAL_ID, mAdvancedBinder.etTerminalID.getText().toString().trim());\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_BLUETOOTH_NAME, mAdvancedBinder.etBluetoothName.getText().toString().trim());\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_BLUETOOTH_ADDRESS, mAdvancedBinder.etBluetoothAddress.getText().toString().trim());\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_MSWIPE_USERNAME, mAdvancedBinder.etMSwipeUsername.getText().toString().trim());\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_MSWIPE_PASSWORD, mAdvancedBinder.etMSwipePassword.getText().toString().trim());\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_IP_ADDRESS, mAdvancedBinder.etIPAddress.getText().toString().trim());\n sessionManager.storeDataByKey(AppConstants.PREF_KEY_PORT_NUMBER, mAdvancedBinder.etPortNumber.getText().toString().trim());\n }", "title": "" }, { "docid": "a9f0032e2fc8016d57d720295f8cbb18", "score": "0.43520766", "text": "public void setProfitCenter(ProfitCentreID param) {\n localProfitCenterTracker = param != null;\n\n this.localProfitCenter = param;\n }", "title": "" }, { "docid": "1e516cb7826c25bc9dff5857da62c523", "score": "0.43485144", "text": "int updateByPrimaryKeySelective(bhApplyCredit record);", "title": "" }, { "docid": "c7fcc088d2fde0c03f6e2573b066aed3", "score": "0.43467492", "text": "int updateByPrimaryKey(InstitutionEnrollDefinition record);", "title": "" }, { "docid": "b42ccf34af528eaa2f73ade1f3d3865e", "score": "0.4341339", "text": "int updateByPrimaryKeySelective(Consumption record);", "title": "" }, { "docid": "980a0cafc65c743d002de9126d903e94", "score": "0.43401316", "text": "public void setCustomerIndustry(IndustrialSectorCode param) {\n localCustomerIndustryTracker = param != null;\n\n this.localCustomerIndustry = param;\n }", "title": "" }, { "docid": "c053f41445ea1f5b52b4e89a7aef3ef5", "score": "0.433473", "text": "public void updateContract()\n {\n ASPManager mgr = getASPManager();\n if (!headlay.isEditLayout())\n \t headlay.setLayoutMode(headlay.EDIT_LAYOUT);\n r = headset.getRow();\n r.setValue(\"CONTRACT_ID\",mgr.readValue(\"TEMPCONTRACTID\"));\n r.setValue(\"LINE_NO\",mgr.readValue(\"TEMPLINENO\"));\n headset.setRow(r);\n bValContrId = true;\n }", "title": "" }, { "docid": "d00323f5d60222ee63244d8e6566b2b3", "score": "0.43346426", "text": "public void setSafetyCourse(String safetyCourse) {\r\n this.safetyCourse = safetyCourse;\r\n }", "title": "" }, { "docid": "8137a5326b53ee27fb8f0aa8a828642f", "score": "0.43274397", "text": "private void updateLicenses(Collection<ModuleLicenseModel> viewableModels, Multimap<RepoPath,\n ModuleLicenseModel> repoPathLicenseMultimap, RestResponse response) {\n\n AddonsManager addonsManager = ContextHelper.get().beanForType(AddonsManager.class);\n LicensesAddon licensesAddon = addonsManager.addonByType(LicensesAddon.class);\n List<ModuleLicenseModel> moduleLicenseModels = new ArrayList<>();\n // fetch license to override\n fetchLicenseToOverride(viewableModels, repoPathLicenseMultimap, moduleLicenseModels);\n\n Multimap<RepoPath, LicenseInfo> licensesToWrite = HashMultimap.create();\n //Holds all licenses that will be overridden per path - to help filter what licenses to persist on that path\n Multimap<RepoPath, LicenseInfo> overriddenLicenses = HashMultimap.create();\n for (ModuleLicenseModel checkedLicenseModel : moduleLicenseModels) {\n RepoPath repoPath = InternalRepoPathFactory.create(checkedLicenseModel.getRepoKey(),checkedLicenseModel.getPath());\n checkedLicenseModel.setRepoPath(repoPath);\n RepoPath path = checkedLicenseModel.getRepoPath();\n licensesToWrite.put(path, checkedLicenseModel.getExtractedLicense());\n overriddenLicenses.put(path, checkedLicenseModel.getLicense());\n }\n\n //For each of the licenses that on this path check if it's already in the overridden map - if not, preserve it\n for (RepoPath path : licensesToWrite.keySet()) {\n //License already set on path differs from the license being overridden - preserve it.\n for (ModuleLicenseModel licenseExistingOnPath : repoPathLicenseMultimap.get(path)) {\n //License already set on path differs from the license being overridden - preserve it.\n if (!overriddenLicenses.get(path).contains(licenseExistingOnPath.getLicense())) {\n licensesToWrite.put(path, licenseExistingOnPath.getLicense());\n }\n }\n }\n\n //Write all chosen licenses on each path\n boolean hadErrors = false;\n for (RepoPath path : licensesToWrite.keySet()) {\n if (!licensesAddon.setLicensePropsOnPath(path, Sets.newHashSet(licensesToWrite.get(path)))) {\n hadErrors = true;\n }\n }\n if (hadErrors) {\n response.error(\"Failed to set properties on some artifacts, check the log for more info\");\n }\n }", "title": "" }, { "docid": "cbab9ef40082a6d6e2a6ea3e69513014", "score": "0.43231535", "text": "int updateByPrimaryKeySelective(ReconciliationDetail record);", "title": "" }, { "docid": "3509e184f8f44a51e3c2849792ec3c73", "score": "0.43230933", "text": "protected void setPool(final Pool<PoolType, Long> pool) {\n this.pool = pool;\n }", "title": "" }, { "docid": "2324f0ef60faad408aef2d878606d6a9", "score": "0.4320915", "text": "int updateByPrimaryKeySelective(BizRmConfigDetail record);", "title": "" }, { "docid": "9dd71fcb4f4789a25172e3d26d988226", "score": "0.43199983", "text": "int updateByPrimaryKeySelective(TestCompany record);", "title": "" }, { "docid": "0d042421100565958ec78c979e6d8057", "score": "0.43197298", "text": "int updateByPrimaryKeySelective(Questionbank record);", "title": "" }, { "docid": "2bd71ef0a8e24862492f15bebabddd9a", "score": "0.43178645", "text": "LegalBusinessProfile update(LegalBusinessProfile legalBusinessProfile);", "title": "" }, { "docid": "81f51a5136958ab3ea29eceb8ec50000", "score": "0.43144643", "text": "@Override\r\n\tpublic boolean updateCompany(Company company) throws SQLException {\n\r\n\t\t return true;\r\n\t}", "title": "" }, { "docid": "3a90e25a7c894b56783266a4d8f29d3b", "score": "0.43121907", "text": "int updateByPrimaryKeySelective(InterestProduct record);", "title": "" }, { "docid": "e0cffe4d66e561863e0abe2b5988a40f", "score": "0.43101376", "text": "private NonComplianceSI createNonComplianceSIFromRequestForSave(GrndsExchangeContext context) {\r\n PerformanceTrace performanceTrace = new PerformanceTrace(TRACE_TAG, \"createNonComplianceSIFromRequestForSave\");\r\n performanceTrace.enterScope();\r\n String txtDtAchievementField = \"txtDtAchievement\";\r\n String cbxDocumentCompletedField = \"cbxDocumentCompleted\";\r\n String txtResultsDescriptionField = \"txtResultsDescription\";\r\n String countyOfViolationField = \"countyOfViolation\";\r\n String txtDtViolationField = \"txtDtViolation\";\r\n String cbxHomeViolationField = \"cbxHomeViolation_\";\r\n String cbxAdoptiveProcessField = \"cbxAdoptiveProcess_\";\r\n String cbxPolViolationField = \"cbxPolViolation_\";\r\n String txtDtEffectFromField = \"txtDtEffectFrom\";\r\n String txtDtEffectToField = \"txtDtEffectTo\";\r\n String cbxIndStOffCon = \"cbxIndStOffCon\";\r\n String cbxIndCpaCon = \"cbxIndCpaCon\";\r\n\r\n NonComplianceSI nonComplianceSI = new NonComplianceSI();\r\n try {\r\n HttpServletRequest request = context.getRequest();\r\n BaseSessionStateManager state = getSessionStateManager(context);\r\n NonComplianceSO nonComplianceSOfromState = (NonComplianceSO) state.getAttribute(\"nonComplianceSO\", request);\r\n nonComplianceSI.setIdCase(GlobalData.getUlIdCase(request));\r\n nonComplianceSI.setIdEvent(GlobalData.getUlIdEvent(request));\r\n // Set the Date of Achievement to tracking date since the Non_Compliance table is shared\r\n // between Corrective Action and Policy Violation\r\n // Get all the following date fields only if they are not empty.\r\n if (request.getParameter(txtDtAchievementField) != null\r\n && !\"\".equals(request.getParameter(txtDtAchievementField))) {\r\n nonComplianceSI.setDtTracking(ContextHelper.getJavaDateSafe(request, txtDtAchievementField));\r\n }\r\n if (request.getParameter(txtDtViolationField) != null && !\"\".equals(request.getParameter(txtDtViolationField))) {\r\n nonComplianceSI.setDtOfViolation(ContextHelper.getJavaDateSafe(request, txtDtViolationField));\r\n }\r\n if (request.getParameter(txtDtEffectFromField) != null && !\"\".equals(request.getParameter(txtDtEffectFromField))) {\r\n nonComplianceSI.setDtEffectFrom(ContextHelper.getJavaDateSafe(request, txtDtEffectFromField));\r\n }\r\n if (request.getParameter(txtDtEffectToField) != null && !\"\".equals(request.getParameter(txtDtEffectToField))) {\r\n nonComplianceSI.setDtEffectTo(ContextHelper.getJavaDateSafe(request, txtDtEffectToField));\r\n }\r\n // Set Non Compliance code as Corrective Action. In Policy Violation screen,\r\n // this has to be set as Policy Violation since both the page shares the same\r\n // table Non_Compliance\r\n nonComplianceSI.setCdNonCompliance(CodesTables.CEVNTTYP_VLT);\r\n String checkboxValue = ContextHelper.getStringSafe(context, cbxDocumentCompletedField);\r\n // String checkboxValue = CheckboxHelper.getCheckboxValue(request,cbxDocumentCompletedField);\r\n if (StringHelper.isTrue(checkboxValue)\r\n && !(nonComplianceSOfromState.getNcEvent() != null && CodesTables.CEVTSTAT_APRV\r\n .equals(nonComplianceSOfromState\r\n .getNcEvent()\r\n .getEventStatusCode()))) {\r\n // if (ArchitectureConstants.Y.equals(checkboxValue)) {\r\n nonComplianceSI.setIndDocCompleted(ArchitectureConstants.Y);\r\n } else {\r\n nonComplianceSI.setIndDocCompleted(ArchitectureConstants.N);\r\n }\r\n // Set Date State Office Concurrence and Date Cap Concurrence to current date to system date\r\n // if the check box for Date State Office Concurrence and Date Cap Concurrence is checked.\r\n checkboxValue = CheckboxHelper.getCheckboxValue(request, cbxIndStOffCon);\r\n if (ArchitectureConstants.Y.equals(checkboxValue)) {\r\n nonComplianceSI.setIndStOffCon(ArchitectureConstants.Y);\r\n nonComplianceSI.setDtStOffCon(new Date(System.currentTimeMillis()));\r\n } else {\r\n nonComplianceSI.setIndStOffCon(ArchitectureConstants.N);\r\n nonComplianceSI.setDtStOffCon(null);\r\n }\r\n\r\n checkboxValue = CheckboxHelper.getCheckboxValue(request, cbxIndCpaCon);\r\n if (ArchitectureConstants.Y.equals(checkboxValue)) {\r\n nonComplianceSI.setIndCpaCon(ArchitectureConstants.Y);\r\n nonComplianceSI.setDtCpaCon(new Date(System.currentTimeMillis()));\r\n } else {\r\n nonComplianceSI.setIndCpaCon(ArchitectureConstants.N);\r\n nonComplianceSI.setDtCpaCon(null);\r\n }\r\n // Set Results Description value in to txt_comments of non_compliance table\r\n // since non_compliance table is being used by both policy violation and corrective action plan\r\n nonComplianceSI.setTxtComments(ContextHelper.getStringSafe(request, txtResultsDescriptionField));\r\n nonComplianceSI.setCdCounty(ContextHelper.getStringSafe(request, countyOfViolationField));\r\n\r\n // Create a NcPerson for each child that is selected in the\r\n // 'Children in Home' listbox, and add the bean to the 'childrenInHome'\r\n // collection.\r\n String[] checkedChildrenHV = CheckboxHelper.getCheckedValues(request, cbxHomeViolationField);\r\n String[] checkedChildrenAP = CheckboxHelper.getCheckedValues(request, cbxAdoptiveProcessField);\r\n List<NcPerson> childrenInHomeVector = new ArrayList<NcPerson>();\r\n for (int i = 0; i < checkedChildrenHV.length; i++) {\r\n NcPerson ncPerson = new NcPerson();\r\n ncPerson.setIdPerson(new Integer(checkedChildrenHV[i]));\r\n ncPerson.setIndHomeViolation(ArchitectureConstants.Y);\r\n ncPerson.setIndAdoptiveProcess(ArchitectureConstants.N);\r\n childrenInHomeVector.add(ncPerson);\r\n }\r\n\r\n for (int i = 0; i < checkedChildrenAP.length; i++) {\r\n boolean existFlag = false;\r\n for (int j = 0; j < childrenInHomeVector.size(); j++) {\r\n if (childrenInHomeVector.get(j).getIdPerson() == new Integer(checkedChildrenAP[i])) {\r\n childrenInHomeVector.get(j).setIndAdoptiveProcess(ArchitectureConstants.Y);\r\n existFlag = true;\r\n }\r\n }\r\n if (!existFlag) {\r\n NcPerson ncPerson = new NcPerson();\r\n ncPerson.setIdPerson(new Integer(checkedChildrenAP[i]));\r\n ncPerson.setIndHomeViolation(ArchitectureConstants.N);\r\n ncPerson.setIndAdoptiveProcess(ArchitectureConstants.Y);\r\n childrenInHomeVector.add(ncPerson);\r\n }\r\n }\r\n //Get all the children that are not checked either for HV or AP and set N for both\r\n List<NcPerson> allChildrenList = nonComplianceSOfromState.getChildrenInHome();\r\n for(int i = 0; i < allChildrenList.size(); i++) {\r\n boolean existFlag = false;\r\n for (int j = 0; j < childrenInHomeVector.size(); j++) {\r\n if (childrenInHomeVector.get(j).getIdPerson() == allChildrenList.get(i).getIdPerson()) {\r\n existFlag = true;\r\n break;\r\n }\r\n }\r\n if (!existFlag) {\r\n NcPerson ncPerson = new NcPerson();\r\n ncPerson.setIdPerson(new Integer(allChildrenList.get(i).getIdPerson()));\r\n ncPerson.setIndHomeViolation(ArchitectureConstants.N);\r\n ncPerson.setIndAdoptiveProcess(ArchitectureConstants.N);\r\n childrenInHomeVector.add(ncPerson);\r\n } \r\n }\r\n nonComplianceSI.setChildrenInHome(childrenInHomeVector);\r\n // Get the Page Mode\r\n String pageMode = PageMode.getPageMode(request);\r\n\r\n NcEvent ncEvent = new NcEvent();\r\n // Set the Policy Violation\r\n List<NcCbx> policyViolationVector = new ArrayList<NcCbx>();\r\n String[] checkedPolViolation = CheckboxHelper.getCheckedValues(request, cbxPolViolationField);\r\n for (int i = 0; i < checkedPolViolation.length; i++) {\r\n NcCbx ncCbx = new NcCbx();\r\n ncCbx.setCdNonComplianceCbx(checkedPolViolation[i]);\r\n ncCbx.setCdNonComplianceCbxType(CodesTables.CPOLVIOL);\r\n if (pageMode.equalsIgnoreCase(PageModeConstants.NEW)) {\r\n ncCbx.setIdNonComplianceCbx(0);\r\n }\r\n policyViolationVector.add(ncCbx);\r\n }\r\n nonComplianceSI.setNcCbx(policyViolationVector);\r\n\r\n // Construct an event to save\r\n // Do the logic for New, new using, edit and Modify.\r\n if (pageMode.equalsIgnoreCase(PageModeConstants.NEW) || pageMode.equalsIgnoreCase(PageModeConstants.NEW_USING)) {\r\n nonComplianceSI.setIdNonCompliance(0);\r\n ncEvent.setEventId(0);\r\n ncEvent.setDateEventOccurred(new Date(System.currentTimeMillis()));\r\n //Setting Flag to do the alerts. Alerts will be send only when the Update Flag is false\r\n // (meaning: alerts will be send at the time of insert only)\r\n nonComplianceSI.setUpdateFlag(false);\r\n } else if (pageMode.equalsIgnoreCase(PageModeConstants.EDIT)\r\n || pageMode.equalsIgnoreCase(PageModeConstants.MODIFY)) {\r\n // Setting Non Compliance Primary keys for update\r\n nonComplianceSI.setIdNonCompliance(nonComplianceSOfromState.getIdNonCompliance());\r\n nonComplianceSI.setDtLastUpdate(nonComplianceSOfromState.getDtLastUpdate());\r\n // Setting Event primary keys for update\r\n ncEvent.setEventId(nonComplianceSOfromState.getIdEvent());\r\n ncEvent.setDateLastUpdate(nonComplianceSOfromState.getNcEvent().getDateLastUpdate());\r\n ncEvent.setDateEventOccurred(nonComplianceSOfromState.getNcEvent().getDateEventOccurred());\r\n // Basically both Non Compliance CBX and Non Compliance Child will be deleted and inserted\r\n // at the time of update\r\n // Setting Flag as Update so that Non Compliance CBX and Non Compliance Child are marked for deletion.\r\n nonComplianceSI.setUpdateFlag(true);\r\n }\r\n // For previously approved (APRV) event, since two field needs to be saved (Dt of Achievement and\r\n // Result Desc). The event status should still remains in APRV. mode for those events.\r\n if (nonComplianceSOfromState.getNcEvent() != null\r\n && CodesTables.CEVTSTAT_APRV.equals(nonComplianceSOfromState.getNcEvent().getEventStatusCode())) {\r\n ncEvent.setEventStatusCode(CodesTables.CEVTSTAT_APRV);\r\n } else {\r\n if (ArchitectureConstants.Y.equals(GlobalData.getApprovalFlag(request))) {\r\n ncEvent.setEventStatusCode(CodesTables.CEVTSTAT_PEND);\r\n } else {\r\n if (nonComplianceSI.getIndDocCompleted().equalsIgnoreCase(ArchitectureConstants.Y)) {\r\n ncEvent.setEventStatusCode(CodesTables.CEVTSTAT_COMP);\r\n } else {\r\n ncEvent.setEventStatusCode(CodesTables.CEVTSTAT_PROC);\r\n }\r\n }\r\n }\r\n // && !(CodesTables.CEVTSTAT_APRV.equals(nonComplianceSOfromState.getNcEvent().getEventStatusCode()))\r\n ncEvent.setStageId(GlobalData.getUlIdStage(request));\r\n // Set Event Type as Corrective Action. In Policy Violation screen,\r\n // this has to be set as Policy Violation.\r\n ncEvent.setEventTypeCode(CodesTables.CEVNTTYP_VLT);\r\n ncEvent.setCaseId(GlobalData.getUlIdCase(request));\r\n UserProfile user = UserProfileHelper.getUserProfile(request);\r\n ncEvent.setPersonId(user.getUserID());\r\n ncEvent.setEventDescription(POLICY_VIOLATION_PLAN);\r\n ncEvent.setEventTaskCode(POLICY_VIOLATION_TASKCD);\r\n\r\n nonComplianceSI.setEventBean(ncEvent);\r\n //set Logged in User ID\r\n nonComplianceSI.setIdLoggedInPerson(GlobalData.getUlIdStaff(request));\r\n } catch (Exception e) {\r\n GrndsTrace.msg(TRACE_TAG, 7, \"General Failure: \" + e.getMessage());\r\n // processSevereException(context, e);\r\n }\r\n performanceTrace.exitScope();\r\n return nonComplianceSI;\r\n }", "title": "" }, { "docid": "305ccc27f7d7ba65116f574e9d14e49e", "score": "0.43049517", "text": "private void createReadOnlyData() throws ConsistencyCheckException\r\n\t{\r\n\t\tfinal Language lang1 = C2LManager.getInstance().createLanguage(\"someLang\");\r\n\t\tfinal Catalog catalog1 = CatalogManager.getInstance().createCatalog(\"RoooCatalog\");\r\n\t\tfinal CatalogVersion version1 = CatalogManager.getInstance().createCatalogVersion(catalog1, RO_CAT_VERSION, lang1);\r\n\r\n\t\tversion1.setActive(true);\r\n\r\n\t\tfinal Category category1 = CategoryManager.getInstance().createCategory(\"rooCategory\");\r\n\r\n\t\tCatalogManager.getInstance().setCatalogVersion(category1, version1);\r\n\t\tversion1.setRootCategories(Collections.singletonList(category1));\r\n\t\tversion1.setReadPrincipals(Arrays.asList(new Principal[]\r\n\t\t{ getUserGroup(false) }));\r\n\t\tversion1.setWritePrincipals(Arrays.asList(new Principal[]\r\n\t\t{ getUserGroup(false) }));\r\n\r\n\t\tfinal Product product = ProductManager.getInstance().createProduct(RO_PRODUCT);\r\n\t\tcategory1.addProduct(product);\r\n\r\n\t\tCatalogManager.getInstance().setCatalogVersion(product, version1);\r\n\t}", "title": "" }, { "docid": "78776f06ca6c04cf302964867c02957d", "score": "0.42985258", "text": "int updateByPrimaryKey(EcsSupplierCategory record);", "title": "" }, { "docid": "7dc84d3ac66d48ebb04a3105717d5912", "score": "0.42921892", "text": "public static void updateAccommodation (int AccommodationID, int LocationID, String AccommodationName, String Description, String Cost, String Address, String Website)\n {\n try\n {\n PreparedStatement ps = db.prepareStatement(\"UPDATE Accommodation SET AccommodationID = ?, LocationID = ?, AccommodationName = ?, Description = ?, Cost = ?, Address = ?, Website = ?\");\n\n //contain the values to be changed through the SQL statement in place of the ?s\n ps.setInt(1, AccommodationID);\n ps.setInt(2, LocationID);\n ps.setString(3, AccommodationName);\n ps.setString(4, Description);\n ps.setString(5, Cost);\n ps.setString(6, Address);\n ps.setString(7, Website);\n\n ps.executeUpdate(); //executes the SQL statement in the PreparedStatement\n\n }\n catch (Exception exception)//if an error occurs returns an error message\n {\n System.out.println(\"Database error: \" + exception.getMessage());\n }\n }", "title": "" }, { "docid": "f6a13d5458728319409b2be9d057fdc4", "score": "0.42873853", "text": "int updateByExampleSelective(IrpComplain record, IrpComplainExample example) throws SQLException;", "title": "" }, { "docid": "86d30b4268fb6f3822b218f5a3baf4a5", "score": "0.4286745", "text": "int updateByPrimaryKeySelective(CibrBussIdentify record);", "title": "" }, { "docid": "7be871e52a9656cb9b0495f235718d91", "score": "0.4283904", "text": "int updateByPrimaryKey(PaasContractorAuthorization record);", "title": "" }, { "docid": "3dcb5913cd9ac4629372d3cfb1313bbd", "score": "0.42761368", "text": "public void setLic(boolean param){\r\n \r\n this.localLic=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "6fc88ddc7f65722d68acb2b31b6c600a", "score": "0.42750284", "text": "int updateByPrimaryKeySelective(SchoolInfo record);", "title": "" } ]
17f22854cb3d1aa41af0712458727cb2
Adds the specified slice definition to the schema if it doesn't already exist.
[ { "docid": "714d0d68408889aa1c0b50a2f65adf8b", "score": "0.0", "text": "void addExtendedReferenceType(ExtendedReferenceTypeDefinition ertd) throws ResultException, DmcValueException {\n if (checkAndAdd(ertd.getObjectName(),ertd,extendedReferenceTypeDefs) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsg(ertd.getObjectName(),ertd,extendedReferenceTypeDefs,\"extended reference type names\"));\n \tthrow(ex);\n }\n \n if (checkAndAddDOT(ertd.getDotName(),ertd,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(ertd.getObjectName(),ertd,globallyUniqueMAP,\"definition names\"));\n currentSchema = null;\n \tthrow(ex);\n } \n \n TypeDefinition td = new TypeDefinition();\n td.setInternallyGenerated(true);\n td.setIsExtendedRefType(true);\n td.setName(ertd.getName());\n \n // NOTE: At this stage, the extendedReferenceClass attribute hasn't been resolved,\n // so we're setting the original class based on the name of the extendedReferenceClass\n td.getDMO().setOriginalClass(ertd.getDMO().getExtendedReferenceClass().cloneMe());\n \n // The name of an extended reference definition is schema.extreftype.ExtendedReferenceTypeDefinition\n // For the associated class, it will be schema.extreftype.TypeDefinition\n DotName typeName = new DotName((DotName) ertd.getDotName().getParentName(),\"TypeDefinition\");\n// DotName nameAndTypeName = new DotName(td.getName() + \".TypeDefinition\");\n td.setDotName(typeName);\n// td.setNameAndTypeName(nameAndTypeName);\n\n td.addDescription(\"This is an internally generated type to represent extendedreference type \" + ertd.getName() + \" values.\");\n td.setIsEnumType(false);\n td.setIsRefType(true);\n \n td.setTypeClassName(ertd.getDefinedIn().getSchemaPackage() + \".generated.types.DmcType\" + ertd.getName());\n td.setPrimitiveType(ertd.getDefinedIn().getSchemaPackage() + \".generated.types.\" + ertd.getName());\n td.setDefinedIn(ertd.getDefinedIn());\n \n // We add the new type to the schema's list of internally generated types\n ertd.getDefinedIn().addInternalTypeDefList(td);\n ertd.getDefinedIn().addTypeDefList(td);\n \n internalTypeDefs.put(td.getName(), td);\n \n // And then we add the type if it's not already there - this can happen when\n // we're managing a generated schema and the type definition has already been added\n // from the typedefList attribute\n if (typeDefs.get(td.getName()) == null)\n \taddType(td);\n \n // We hang on to this so that we can set some further info after the extendedReferenceClass has been resolved\n ertd.setInternalType(td);\n }", "title": "" } ]
[ { "docid": "925d4ae67baf66239964f99c012ac63f", "score": "0.6160617", "text": "void addSlice(SliceDefinition sd) throws ResultException, DmcValueException {\n if (checkAndAdd(sd.getObjectName(),sd,sliceDefs) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsg(sd.getObjectName(),sd,sliceDefs,\"slice names\"));\n \tthrow(ex);\n }\n \n if (checkAndAddDOT(sd.getDotName(),sd,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(sd.getObjectName(),sd,globallyUniqueMAP,\"definition names\"));\n throw(ex);\n }\n }", "title": "" }, { "docid": "53f859a58275587aeacccd4c3ad46b5c", "score": "0.49769762", "text": "public boolean addSubsetDefinition(final SubsetDefinition subsetDefinition) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"addSubsetDefinition: {}\", subsetDefinition);\n }\n\n if (addSubsetDefinitionRef(subsetDefinition)) {\n // update subset reference and fire events (SubsetDefinitionChanged, PlotChanged):\n updateSubsetDefinitionRef(this, subsetDefinition);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "2aadf3cf0e6d5ddb766ab8a907e2bfc4", "score": "0.49142122", "text": "public void addDefinition(CustomDataSourceDefinition def) {\r\n\t\tcustomDataSourceDefs.add(def);\r\n\t}", "title": "" }, { "docid": "b52a3bd444a4754828888a36a60be939", "score": "0.4799763", "text": "public MicrosoftGraphStsPolicy withDefinition(List<String> definition) {\n this.definition = definition;\n return this;\n }", "title": "" }, { "docid": "293a02e09097bd5f779af1c00b996937", "score": "0.47703138", "text": "private boolean addSubsetDefinitionRef(final SubsetDefinition subsetDefinition) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"addSubsetDefinitionRef: {}\", subsetDefinition);\n }\n if (Identifiable.addIdentifiable(subsetDefinition, getSubsetDefinitionList())) {\n fireSubsetDefinitionListChanged();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "c91aae56058a92d8ced1d2863b3b313b", "score": "0.4695439", "text": "void addDef(Definition def) {\n defs.addElement(def);\n }", "title": "" }, { "docid": "b3e5e162fb72bea69b42e8ca2bbed6ea", "score": "0.46907002", "text": "public void addSchema (final String uri, final IslandSchema s)\n {\n if (m_aSchemata.containsKey (uri))\n throw new IllegalArgumentException ();\n m_aSchemata.put (uri, s);\n }", "title": "" }, { "docid": "aaabfee9876238784681713a0e29270d", "score": "0.46877554", "text": "org.hl7.fhir.ObservationReferenceRange addNewReferenceRange();", "title": "" }, { "docid": "3b13e462a1a545892301cf8652218ce4", "score": "0.46857086", "text": "public org.landxml.schema.landXML11.DefinitionDocument.Definition addNewDefinition()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.DefinitionDocument.Definition target = null;\r\n target = (org.landxml.schema.landXML11.DefinitionDocument.Definition)get_store().add_element_user(DEFINITION$2);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "377c5ea427814ca0531f8b020e79ec35", "score": "0.45838386", "text": "public Boolean createSlice(String sliceName, String passwd,\n\t\t\tString controller_url, String drop_policy, String slice_email)\n\t\t\tthrows MalformedControllerURL, InvalidSliceName, InvalidDropPolicy,\n\t\t\tPermissionDeniedException, DuplicateControllerException;", "title": "" }, { "docid": "d68b634595426108d87fbd8fba3ad97a", "score": "0.45668852", "text": "@PostMapping(\"/price-definitions\")\n void addPriceDefinition(@NonNull @RequestBody NewPriceDefinitionDto dto) {\n facade.addPriceDefinition(dto);\n }", "title": "" }, { "docid": "c4b84ff5d93f4388b71b36d765a16dfe", "score": "0.45412692", "text": "SchemaDefinition createSchemaDefinition();", "title": "" }, { "docid": "b5d10dc1633486ec17bb107d1a6a957d", "score": "0.44958794", "text": "private static Restriction newMultiSlice(CFMetaData cfMetaData, int firstIndex, Bound bound, boolean inclusive, ByteBuffer... values)\n {\n List<ColumnDefinition> columnDefinitions = new ArrayList<>();\n for (int i = 0; i < values.length; i++)\n {\n columnDefinitions.add(getClusteringColumnDefinition(cfMetaData, i + firstIndex));\n }\n return new MultiColumnRestriction.Slice(columnDefinitions, bound, inclusive, toMultiItemTerminal(values));\n }", "title": "" }, { "docid": "ffe981bd6fa298558d643c5c8941e86c", "score": "0.4484441", "text": "public void addConstraint(final int startOfSpan, final int spanLength) {\n constraints.add(new int[] {startOfSpan, spanLength});\n }", "title": "" }, { "docid": "b24ee153a43c702d4aeea17b88dffee5", "score": "0.44519782", "text": "public void insertDEFINITION(RDR_RDR_DEFINITION structure, int rep) throws HL7Exception { \r\n super.insertRepetition( \"DEFINITION\", structure, rep);\r\n }", "title": "" }, { "docid": "e96b8808d3ad945684ca97b5abd35063", "score": "0.4437494", "text": "org.hl7.fhir.Period addNewAppliesPeriod();", "title": "" }, { "docid": "7a2288ffa1df6b57a9721d52681240bf", "score": "0.43723655", "text": "Definition createDefinition();", "title": "" }, { "docid": "59d523b32fd0bb37e6e4ad60f6f5aff8", "score": "0.43539667", "text": "public RDR_RDR_DEFINITION insertDEFINITION(int rep) throws HL7Exception { \r\n return (RDR_RDR_DEFINITION)super.insertRepetition(\"DEFINITION\", rep);\r\n }", "title": "" }, { "docid": "d9a4dffb4bf63095f3a16bd8c4b77a9f", "score": "0.43538907", "text": "org.hl7.fhir.Period addNewValuePeriod();", "title": "" }, { "docid": "640b8791e27748314193514214be8e29", "score": "0.4349788", "text": "private static Restriction newSingleSlice(CFMetaData cfMetaData, int index, Bound bound, boolean inclusive, ByteBuffer value)\n {\n ColumnDefinition columnDef = getClusteringColumnDefinition(cfMetaData, index);\n return new SingleColumnRestriction.Slice(columnDef, bound, inclusive, toTerm(value));\n }", "title": "" }, { "docid": "d9ba11d3629a7176911fafe3bec166e6", "score": "0.43427882", "text": "Builder addHasPart(CreativeWork value);", "title": "" }, { "docid": "5d03790873348d1b3dd1e6b9069ec7bc", "score": "0.4323595", "text": "void addSchema(SchemaDefinition sd) throws ResultException, DmcValueException {\n currentSchema = sd;\n\n if (checkAndAdd(sd.getObjectName(),sd,schemaDefs) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsg(sd.getObjectName(),sd,schemaDefs,\"schema names\"));\n currentSchema = null;\n \tthrow(ex);\n }\n\n if (checkAndAddDOT(sd.getDotName(),sd,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(sd.getObjectName(),sd,globallyUniqueMAP,\"definition names\"));\n currentSchema = null;\n \tthrow(ex);\n }\n \n if (sd.getObjectName().getNameString().length() > longestSchemaName)\n longestSchemaName = sd.getObjectName().getNameString().length();\n\n currentSchema = null;\n \n if (extensions.size() > 0){\n \tfor(SchemaExtensionIF ext : extensions.values()){\n \t\text.addSchema(sd);\n \t}\n }\n\n }", "title": "" }, { "docid": "f8be8f35b2efb9e4a79992afc6d98da4", "score": "0.42823523", "text": "private <P extends Definition, D extends P> void addDefinitions(String prefix, Class<D> preloadType,\n List<String> namespaces, String separator,\n Set<P> defs) throws QuickFixException {\n DefinitionService definitionService = Aura.getDefinitionService();\n \n for (String ns : namespaces) {\n DefDescriptor<D> matcher = definitionService.getDefDescriptor(String.format(\"%s://%s%s*\", prefix, ns,\n separator), preloadType);\n Set<DefDescriptor<D>> descriptors = definitionService.find(matcher);\n \n for(DefDescriptor<D> descriptor : descriptors){\n P def = descriptor.getDef();\n if(def != null){\n defs.add(def);\n }\n }\n }\n }", "title": "" }, { "docid": "8f17d6d1fe8e954b9e54a40cb2bad627", "score": "0.42664814", "text": "ServiceEndpointPolicy.DefinitionStages.Blank define(String name);", "title": "" }, { "docid": "0a15ecd5d9899be66376de2d13cda4c5", "score": "0.42418495", "text": "interface Definition extends\n DefinitionStages.Blank,\n DefinitionStages.WithGroup,\n DefinitionStages.WithSku,\n DefinitionStages.WithPartitionsAndCreate,\n DefinitionStages.WithReplicasAndCreate,\n DefinitionStages.WithCreate {\n }", "title": "" }, { "docid": "f43e1ad8030f6509c52b3552b643b05d", "score": "0.42304298", "text": "Builder addHasPart(String value);", "title": "" }, { "docid": "0463e126582d429fb2a096ddc75f774d", "score": "0.42220867", "text": "public void addDataStructureDefinition(Resource dataStructure, String label, String comment, Set<Resource> components){\n\t\tdataCubeModel.add(dataStructure, RDF.type, QB.DataStructureDefinition);\n\t\tdataCubeModel.add(dataStructure, RDFS.label, label);\n\t\tdataCubeModel.add(dataStructure, RDFS.comment, comment);\n\t\tfor(Resource component : components){\n\t\t\tdataCubeModel.add(dataStructure, QB.component, component);\n\t\t}\n\t}", "title": "" }, { "docid": "ca7cb4e19b7dd67ea7cb8a4a841fc7cf", "score": "0.41954142", "text": "public final void entryRuleSliceType() throws RecognitionException {\r\n try {\r\n // InternalGo.g:555:1: ( ruleSliceType EOF )\r\n // InternalGo.g:556:1: ruleSliceType EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getSliceTypeRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleSliceType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getSliceTypeRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "12c7e71a2a91ab291128513baf8b6b0c", "score": "0.4182527", "text": "public void addLandSlide(LandSlideTile landSlideTile) throws GateClosedException{\r\n LandSlidesArray.add(landSlideTile);\r\n if(LandSlidesArray.size()==16){\r\n GateFull=true;\r\n throw new GateClosedException();\r\n }\r\n }", "title": "" }, { "docid": "37e27f57e4ccb44ff6e7b9e24d8504c5", "score": "0.4171481", "text": "void register(PolicyDefinition policyDefinition);", "title": "" }, { "docid": "c84609afff9cda60d4daaf1e7a2146b7", "score": "0.41643122", "text": "Dimension createDimension();", "title": "" }, { "docid": "114db1b9ceda26faed73b31ca1b3b430", "score": "0.41606098", "text": "public Map<String, List<Map<String, String>>> getSliceRewriteDB(\n\t\t\tString sliceName, String dpidstr) throws DPIDNotFound,\n\t\t\tSliceNotFound, PermissionDeniedException;", "title": "" }, { "docid": "fe1b896a3dbeebf8d972ffa5f1a02f4e", "score": "0.41551012", "text": "TrackRailsSectionsAtPosition tryAdd(TrackRailsSingleNodeElement sectionToAdd);", "title": "" }, { "docid": "8a8fa6a334255dcaa70fa4bf103790dd", "score": "0.41407067", "text": "void addRegion(Region region);", "title": "" }, { "docid": "6d2b481a9613c999e11e1cfabd3040bb", "score": "0.41319", "text": "org.landxml.schema.landXML11.RoadsideDocument.Roadside addNewRoadside();", "title": "" }, { "docid": "60df7ca7813d40c1d0eafa8171e13e7e", "score": "0.411687", "text": "public final void entryRuleSlice() throws RecognitionException {\r\n try {\r\n // InternalGo.g:2605:1: ( ruleSlice EOF )\r\n // InternalGo.g:2606:1: ruleSlice EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getSliceRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleSlice();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getSliceRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "07c11578d8800441df806cece601f603", "score": "0.40866283", "text": "com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation addNewConstraints();", "title": "" }, { "docid": "7127e0b88934bc8c16b668bb5fa05694", "score": "0.40824988", "text": "public void addPart(Part part) {\n allParts.add(part);\n }", "title": "" }, { "docid": "84450330d51f8dba4b7384abb6ef942f", "score": "0.40810716", "text": "public abstract T addService(ServerServiceDefinition service);", "title": "" }, { "docid": "7667ac3ed4acab23d3a9c7c03a28bd6b", "score": "0.40809333", "text": "com.exacttarget.wsdl.partnerapi.ObjectDefinition insertNewObjectDefinition(int i);", "title": "" }, { "docid": "fddf9cd66174b9e8f72c74ccc3a537a1", "score": "0.40737748", "text": "com.exacttarget.wsdl.partnerapi.ObjectDefinition addNewObjectDefinition();", "title": "" }, { "docid": "82e543a0617ad80f52244c070b9dec4d", "score": "0.40676007", "text": "public int create (Section section) throws DataAccessException;", "title": "" }, { "docid": "cb5f271511ffb889082a0c62f9b7f5f9", "score": "0.40675238", "text": "private boolean addPlotDefinitionRef(final PlotDefinition plotDefinition) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"addPlotDefinitionRef: {}\", plotDefinition);\n }\n if (Identifiable.addIdentifiable(plotDefinition, getPlotDefinitionList())) {\n firePlotDefinitionListChanged();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "1ede3b1a218ef2bdeb53dd53ba3b7b39", "score": "0.4066779", "text": "public boolean addPlotDefinition(final PlotDefinition plotDefinition) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"addPlotDefinition: {}\", plotDefinition);\n }\n\n if (addPlotDefinitionRef(plotDefinition)) {\n // update plot definition version and fire events (PlotDefinitionChanged, PlotChanged):\n updatePlotDefinitionRef(this, plotDefinition);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "40cbdd1c1eba52f449505110e3e67d74", "score": "0.4053284", "text": "void addHasRestraintType(Integer newHasRestraintType);", "title": "" }, { "docid": "d97a3bc95dfa00309671af34a6918485", "score": "0.40507436", "text": "public DruidServer addDataSegment(DataSegment segment)\n {\n dataSources.compute(\n segment.getDataSource(),\n (dataSourceName, dataSource) -> {\n if (dataSource == null) {\n dataSource = new DruidDataSource(dataSourceName, ImmutableMap.of(\"client\", \"side\"));\n }\n if (dataSource.addSegmentIfAbsent(segment)) {\n currSize.addAndGet(segment.getSize());\n totalSegments.incrementAndGet();\n } else {\n log.warn(\n \"Asked to add data segment that already exists!? server[%s], segment[%s]\",\n getName(),\n segment.getId()\n );\n }\n return dataSource;\n }\n );\n return this;\n }", "title": "" }, { "docid": "032496c659efa2a8d0b006eff8836f39", "score": "0.4050341", "text": "Replica.DefinitionStages.Blank define(String name);", "title": "" }, { "docid": "73173e0dc15f0372ed2c36bfc6bc44d2", "score": "0.40345237", "text": "interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }", "title": "" }, { "docid": "72279c5c3ec1a183740d8a6767d8036f", "score": "0.40338415", "text": "ISlot add(ISlot newEntry);", "title": "" }, { "docid": "441e9f025e03d68475cbea25da7435c0", "score": "0.40285382", "text": "public void addEndpoint(Endpoint endpoint)\r\n {\r\n getEndpoints().add(endpoint);\r\n }", "title": "" }, { "docid": "6fd5d758d18133eaaf401b66be128d80", "score": "0.40214932", "text": "Dimension_Dimension createDimension_Dimension();", "title": "" }, { "docid": "0f0edbe791a76678c14394e8d7443bfa", "score": "0.40198484", "text": "com.icare.eai.schema.om.evSORequest.ListOfServiceElementsComplexType addNewListOfServiceElements();", "title": "" }, { "docid": "83c984ce055916229166ce6eb3ed9ee7", "score": "0.40190864", "text": "interface WithIncremental {\n /**\n * Specifies the incremental property: Whether a snapshot is incremental. Incremental snapshots on the same\n * disk occupy less space than full snapshots and can be diffed..\n *\n * @param incremental Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less\n * space than full snapshots and can be diffed.\n * @return the next definition stage.\n */\n WithCreate withIncremental(Boolean incremental);\n }", "title": "" }, { "docid": "302584af96af93ea872ce8cb7830c722", "score": "0.40182087", "text": "private void addDefinitionAsType(DefinitionDec dec, Type type) {\n Type typeOfSet = getTypeOfSetType(type);\n if (typeOfSet != null) {\n MathVarDec vd = null;\n Exp w = null;\n Exp o = null;\n if (dec.getDefinition() instanceof SetExp) {\n SetExp se = (SetExp) (dec.getDefinition());\n vd = se.getVar();\n w = se.getWhere();\n o = se.getBody();\n }\n TypeEntry te =\n new TypeEntry(table.getCurrentScope(), dec.getName(),\n typeOfSet, vd, w, o);\n table.addDefinitionTypeToScope(te);\n }\n }", "title": "" }, { "docid": "5660389fa26f9c20d30123680b5a1103", "score": "0.40104458", "text": "public boolean hasSubsetDefinition(final String id) {\n return getSubsetDefinitionRef(id) != null;\n }", "title": "" }, { "docid": "5b0013e415f48ea6cf4e289690058c7e", "score": "0.40068477", "text": "Builder addSchemaVersion(String value);", "title": "" }, { "docid": "fddab3b32cb0a9f019fe724b44a22824", "score": "0.40067974", "text": "public void setDefinition(String definition){\n\t\tthis.definition = definition;\n\t}", "title": "" }, { "docid": "92402b3d06d66acad1fa84cb34a85217", "score": "0.3999627", "text": "private void addSegment(Point p0, Point p1) {\n resize(nOfSegs + 1);\n segments[nOfSegs++] = new LineSegment(p0, p1);\n }", "title": "" }, { "docid": "85d1ec3e43f50e3e8ecfdb78561f1fe5", "score": "0.39987156", "text": "org.landxml.schema.landXML11.TrafficVolumeDocument.TrafficVolume addNewTrafficVolume();", "title": "" }, { "docid": "b3007b6a4059dad209512fc4065f12e8", "score": "0.3982309", "text": "synchronized public void ensureField(String typeName, String fieldName, String... existingFieldNames) {\n if (hasField(typeName, fieldName)) {\n return;\n }\n\n // add type and field to schema\n StringJoiner schema = new StringJoiner(\"\\n\");\n\n if (!fields.contains(fieldName)) {\n schema.add(String.format(\"<%s>: [uid] @reverse .\", fieldName));\n }\n\n // update the schema on the Dgraph cluster\n Set<String> allTypesFields = new HashSet<>(Arrays.asList(existingFieldNames));\n allTypesFields.addAll(types.getOrDefault(typeName, Collections.emptySet()));\n allTypesFields.add(fieldName);\n\n if (dgraph != null) {\n log.info(\"Adding predicate {} for type {} to schema\", fieldName, typeName);\n\n StringJoiner type = new StringJoiner(\"\\n \");\n allTypesFields.stream().map(t -> \"<\" + t + \">\").forEach(type::add);\n schema.add(String.format(\"type <%s> {\\n %s\\n}\", typeName, type));\n log.debug(\"Adding to schema: \" + schema);\n DgraphProto.Operation setSchema = DgraphProto.Operation.newBuilder().setSchema(schema.toString()).setRunInBackground(true).build();\n dgraph.executeConsumer(dgraphClient -> dgraphClient.alter(setSchema));\n }\n\n // now that the schema has been updated on dgraph we can cache this new type / field\n // ensure type and fields of type exist\n if (!types.containsKey(typeName)) {\n types.put(typeName, new HashSet<>());\n }\n types.get(typeName).add(fieldName);\n fields.add(fieldName);\n }", "title": "" }, { "docid": "8d98966ab6e72b9e9825aa3e884a66f5", "score": "0.39810014", "text": "public abstract EventSeries addEventSeries(User user, Date start,\n\t\t\tDate end, String eventName, Visibility visibility, Repetition repetition, String description);", "title": "" }, { "docid": "da89a45aa223a43c94dac939231f0bd5", "score": "0.39795816", "text": "interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithLocation,\n DefinitionStages.WithResourceGroup,\n DefinitionStages.WithCreate {\n }", "title": "" }, { "docid": "da89a45aa223a43c94dac939231f0bd5", "score": "0.39795816", "text": "interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithLocation,\n DefinitionStages.WithResourceGroup,\n DefinitionStages.WithCreate {\n }", "title": "" }, { "docid": "a05b6315d51476153472afc293def3ae", "score": "0.39762837", "text": "private void updateSubsetDefinitionRef(final Object source, final SubsetDefinition subsetDefinition) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"updateSubsetDefinitionRef: subsetDefinition: {}\", subsetDefinition);\n }\n\n final SelectorResult result = findOIData(subsetDefinition);\n\n // Create the OIFitsFile structure:\n final OIFitsFile oiFitsSubset;\n\n if (result == null) {\n oiFitsSubset = null;\n } else {\n // TODO: use Merger directly LATER ?\n // Or keep SelectorResult (selection results are more rich than the OIFits data structure)\n\n // create a new fake OIFitsFile:\n oiFitsSubset = new OIFitsFile(OIFitsStandard.VERSION_1);\n\n // Copy used StaNames (all files):\n oiFitsSubset.getUsedStaNamesMap().putAll(oiFitsCollection.getUsedStaNamesMap());\n\n // add all tables:\n for (OIData oiData : result.getSortedOIDatas()) {\n oiFitsSubset.addOiTable(oiData);\n }\n }\n\n if (logger.isDebugEnabled()) {\n logger.debug(\"updateSubsetDefinitionRef: oiFitsSubset: {}\", oiFitsSubset);\n }\n\n subsetDefinition.setOIFitsSubset(oiFitsSubset);\n subsetDefinition.incVersion();\n\n fireSubsetDefinitionChanged(source, subsetDefinition.getId());\n\n // find dependencies:\n for (Plot plot : getPlotList()) {\n if (plot.getSubsetDefinition() != null && plot.getSubsetDefinition().getId().equals(subsetDefinition.getId())) {\n // match\n plot.setSubsetDefinition(subsetDefinition);\n\n // update plot version and fire events (PlotChanged):\n updatePlotRef(source, plot);\n }\n }\n }", "title": "" }, { "docid": "7fbd96b9cd8b7d7fcdc38d7d14b4c454", "score": "0.3975839", "text": "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "title": "" }, { "docid": "0ecd86a4214c6d2c728d9b6b77b34d02", "score": "0.39742878", "text": "public void addDataRange(long beginning, long ending, Line line){\n }", "title": "" }, { "docid": "21b634ae444dc5abee210a6f85a5e7f2", "score": "0.39685285", "text": "public void addSection(String sectionId) {\n\t\t\r\n\t}", "title": "" }, { "docid": "f845e61238ccd750029788f2831d466f", "score": "0.39643177", "text": "Schema createSchema();", "title": "" }, { "docid": "49a85b117459aa70d718ed742ce69d8e", "score": "0.39519024", "text": "LinkedService.DefinitionStages.Blank define(String name);", "title": "" }, { "docid": "b7a7b2e8cd72917fba143c29e18440a3", "score": "0.3949804", "text": "interface SqlElasticPoolOperationsDefinition extends\n SqlElasticPoolOperations.DefinitionStages.WithSqlServer,\n SqlElasticPoolOperations.DefinitionStages.WithEdition,\n SqlElasticPoolOperations.DefinitionStages.WithBasicEdition,\n SqlElasticPoolOperations.DefinitionStages.WithStandardEdition,\n SqlElasticPoolOperations.DefinitionStages.WithPremiumEdition {\n }", "title": "" }, { "docid": "00e93bcf6b44802c375b19e0809e0b85", "score": "0.39489615", "text": "public void addPartition(Connection c, final String prefix, final String schema, final String table, final Date lowValue, final Date highValue) throws SQLException {\n String partitionName = prefix + DateMath.format2(lowValue);\n String highValueStr = DateMath.format(highValue);\n String lowValueStr = DateMath.format(lowValue);\n \n // RTC_33190 Begin: add partition failed due to missing '' around highValueStr, and partitionName can not be used as parameter.\n // Because both partitionName and highValueStr are not gotten from user input, so there will be no sql injection risk without using ps.setString.\n final String ddl = \"ALTER TABLE \" + schema + \".\" + table \n + \" ADD PARTITION \" + partitionName + \" STARTING FROM '\" + lowValueStr + \"' INCLUSIVE ENDING AT '\" + highValueStr + \"' EXCLUSIVE\";\n \n try (Statement s = c.createStatement()) {\n s.executeUpdate(ddl);\n }\n // RTC_33190 End\n }", "title": "" }, { "docid": "2eb2108ca92d7f236a640c10f67c2d07", "score": "0.39431942", "text": "private SubsetDefinition removeSubsetDefinition(final String id) {\n return Identifiable.removeIdentifiable(id, getSubsetDefinitionList());\n }", "title": "" }, { "docid": "a8e8cae5157147663acf58d5f1ee37ac", "score": "0.3939182", "text": "Builder addHasPart(CreativeWork.Builder value);", "title": "" }, { "docid": "c671c6959a81fee62736742d3d9bc8b1", "score": "0.3921501", "text": "boolean addSegment(S segment);", "title": "" }, { "docid": "e98258981c31f7bba9ea4e1666e598ff", "score": "0.39124578", "text": "Section createSection();", "title": "" }, { "docid": "10b57a20bb7c7ab676f9cb97c9cc9a71", "score": "0.3912299", "text": "public void addKeyedCollection(KeyedCollection kColl) throws InvalidArgumentException, DuplicatedDataNameException\r\n\t{\n\t\taddDataElement(kColl);\r\n\r\n\t}", "title": "" }, { "docid": "3d7dcfaa949edd6ed79cde9fbb86dcf9", "score": "0.39065164", "text": "public void add_Range(Range range_to_add){\n this.range_vector.add(range_to_add);\n }", "title": "" }, { "docid": "95b927c9542f24faad7b57c09c244fa8", "score": "0.39019755", "text": "void provideBounds(DiagramDescription diagram);", "title": "" }, { "docid": "b934582215d9d13e2a0beaa1036921d1", "score": "0.38989046", "text": "public void addFreeDimension( DataAxis axis){\n\t\tint min = 0;\n\t\tint max = (int)axis.sampleNumber;\n\t\tFreeDimensionControl freeDimControl = new FreeDimensionControl(axis.name, min, max);\n\t\tfreeDimensionsPanel.add(freeDimControl);\n\t\tfreeDimControls.put(axis.name, freeDimControl);\n\t}", "title": "" }, { "docid": "6f672a4ffaa715bd9475a2a208141839", "score": "0.3894635", "text": "PortDefinition createPortDefinition();", "title": "" }, { "docid": "eec2da5c58e919e4d2d237873fcf492b", "score": "0.38869146", "text": "private void internalAddNamespace(NamespaceDefinition def) {\n String uri = def.getUri();\n String prefix = def.getPrefix();\n def.setIndex(m_container.getBindingRoot().\n getNamespaceUriIndex(uri, prefix));\n m_namespaces.add(def);\n m_uriMap.put(uri, def);\n }", "title": "" }, { "docid": "62daec1998490d039643d412386bb9de", "score": "0.3885592", "text": "ISheet addSheet();", "title": "" }, { "docid": "723ec570d5b4e9bb097246a2f2680edd", "score": "0.38819107", "text": "void addDefinition(DmsDefinition def) throws ResultException, DmcValueException, DmcNameClashException {\n \t\n \tif (def.getDotName() == null)\n \t\tDebugInfo.debug(\"NO DOT NAME\");\n \t\n \tif (def instanceof AttributeDefinition)\n \t\tthis.addAttribute((AttributeDefinition) def);\n \telse if (def instanceof ClassDefinition)\n \t\tthis.addClass((ClassDefinition) def);\n \telse if (def instanceof ActionDefinition)\n \t\tthis.addAction((ActionDefinition) def);\n \telse if (def instanceof TypeDefinition)\n \t\tthis.addType((TypeDefinition) def);\n \telse if (def instanceof EnumDefinition)\n \t\tthis.addEnum((EnumDefinition) def);\n \telse if (def instanceof SliceDefinition)\n \t\tthis.addSlice((SliceDefinition) def);\n \telse if (def instanceof RuleCategory)\n \t\tthis.addRuleCategory((RuleCategory) def);\n \telse if (def instanceof RuleDefinition)\n \t\tthis.addRuleDefinition((RuleDefinition) def);\n \t// Note: test for extended ref before complex type because it is derived from complex type\n \telse if (def instanceof ExtendedReferenceTypeDefinition)\n \t\tthis.addExtendedReferenceType((ExtendedReferenceTypeDefinition) def);\n \telse if (def instanceof ComplexTypeDefinition)\n \t\tthis.addComplexType((ComplexTypeDefinition) def);\n \telse if (def instanceof SchemaDefinition)\n \t\tthis.addSchema((SchemaDefinition) def);\n \telse if (def instanceof DSDefinitionModule)\n \t\tthis.addDefinitionModule((DSDefinitionModule) def, false);\n else{\n \tResultException ex = new ResultException();\n \tex.addError(\"The specified object is not a DmsDefinition object: \\n\" + def.toOIF());\n \tthrow(ex);\n }\n\n \tif (listeners != null){\n \t\tfor(SchemaDefinitionListenerIF listener: listeners)\n \t\t\tlistener.definitionAdded(def.getDMO());\n \t}\n }", "title": "" }, { "docid": "10c381e919279ef9d9b393526ccc52e0", "score": "0.38818032", "text": "public void addImpliedNamespace(NamespaceDefinition def) {\n if (!checkDuplicateNamespace(def)) {\n internalAddNamespace(def);\n }\n }", "title": "" }, { "docid": "fcc47cf09a9857f76cd1290a38127474", "score": "0.38769668", "text": "public static boolean addSlice (\r\n\t\tImagePlus source,\r\n\t\tImagePlus target,\r\n\t\tint dim,\t// 1-based dimension XYCZT\r\n\t\tint sourceIdx,\r\n\t\tint targetIdx,\t// insert at (before current) targetIdx, if targetIdx=0, add slice in the end\r\n\t\tboolean keepSliceInSource\r\n\t\t) {\r\n\t\tif (source==null || target==null || source.getNSlices()==0) return false;\r\n\t\t// check source and target size, and replace index\r\n\t\tint[] dim1 = source.getDimensions();\r\n\t\tint[] dim2 = target.getDimensions();\r\n\t\tif (dim<3 || dim>5 || sourceIdx<1 || sourceIdx>dim1[dim-1] || targetIdx<0 || targetIdx>dim2[dim-1])\treturn false;\t// dimension out of range\r\n\t\tboolean resize = (dim1[0]!=dim2[0] || dim2[1]!=dim2[1]);\r\n\t\tfor (int i=3; i<=5; i++) {\r\n\t\t\tif (i == dim) continue;\r\n\t\t\tif (dim1[i-1] != dim2[i-1]) return false;\t// dimension mismatch between source and target\r\n\t\t}\r\n\t\t\r\n\t\t//\tPrepare the substack (slice) image to be copied over\r\n\t\tint numC = dim1[2]; int numZ = dim1[3]; int numT = dim1[4];\r\n\t\tint[] range = {1, numC, 1, numZ, 1, numT};\r\n\t\trange[2*dim-6] = sourceIdx;\trange[2*dim-5] = sourceIdx;\t\t\t\t\t\r\n\t\tImagePlus sliceImp = new Duplicator().run(source, range[0], range[1], range[2], range[3], range[4], range[5]);\r\n\t\tint nSlices = sliceImp.getStackSize();\r\n\t\tif (resize)\r\n\t\t\tIJ.run(sliceImp, \"Size...\", \"width=[\"+target.getWidth()+\"] height=[\"+target.getHeight()+\"] average interpolation=Bicubic\");\r\n\t\t// check if the slice has already exist in the target\r\n\t\tint dupSlice = checkDuplicate(sliceImp, target, dim, 0);\r\n\t\tif (dupSlice!=0) {\r\n\t\t\tif (dim==3) target.setC(dupSlice);\r\n\t\t\telse if (dim==4) target.setZ(dupSlice);\r\n\t\t\telse if (dim==5) target.setT(dupSlice);\r\n\t\t\tSystem.out.println(\"Sample already exist in \" + target.getTitle() + \" at \" + String.valueOf(dupSlice));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// add slice to target stack, update target overlay, repaint window\r\n\t\tImageStack sourceStack = source.getStack();\r\n\t\tImageStack targetStack = target.getStack();\r\n\t\t\r\n\t\tint[] targetHyperStackIndex = {1, 1, 1};\r\n\t\ttargetHyperStackIndex[dim-3] = targetIdx==0 ? dim2[dim-1]+1 : targetIdx;\r\n\t\tint nStart = target.getStackIndex(\r\n\t\t\ttargetHyperStackIndex[0],\r\n\t\t\ttargetHyperStackIndex[1],\r\n\t\t\ttargetHyperStackIndex[2]) - 1;\r\n\t\t\t\r\n\t\tfor (int i=nSlices; i>=1; i--) {\r\n\t\t\tif (targetIdx==0)\r\n\t\t\t\ttargetStack.addSlice(sliceImp.getStack().getSliceLabel(nSlices-i+1), sliceImp.getStack().getProcessor(nSlices-i+1));\r\n\t\t\telse\r\n\t\t\t\ttargetStack.addSlice(sliceImp.getStack().getSliceLabel(i), sliceImp.getStack().getProcessor(i), nStart);\r\n\t\t}\r\n\t\tdim2[dim-1] += 1;\r\n \t//after added slice to imagestack, shift overlay and copy overlay from source\r\n \tOverlay tOverlay = target.getOverlay();\r\n \t//Point targetWindowLocation = target.getWindow().getLocation();\r\n \t//target.hide();\r\n \ttarget.setStack(targetStack, dim2[2], dim2[3], dim2[4]);\r\n \ttarget.setOverlay(tOverlay);\r\n \tif (targetIdx>0) shiftOverlay(target, dim, targetIdx, 1);\r\n \tcopyOverlay(source, target, dim, sourceIdx, targetIdx==0 ? dim2[dim-1] : targetIdx);\r\n \ttarget.setPosition(targetHyperStackIndex[0], targetHyperStackIndex[1], targetHyperStackIndex[2]);\r\n \t//target.show();\r\n \t//target.getWindow().setLocation(targetWindowLocation);\r\n \ttarget.changes = true;\r\n \ttarget.getWindow().updateImage(target);\r\n \ttarget.getWindow().pack();\r\n \tWindowManager.setWindow(target.getWindow());\r\n\t\tnew Zoom().run(\"100%\");\r\n\t\ttarget.setDisplayMode(IJ.COLOR);\r\n\t\ttarget.setDisplayMode(IJ.COMPOSITE);\r\n \t/* if keep slice, finised \r\n \t * otherwise delete the slice from source, \r\n \t * update the source overlay, repaint window\r\n \t */ \r\n \tif (!keepSliceInSource) {\r\n \t\tif (dim1[dim-1]==1) {\r\n \t\t\tsource.changes = false;\r\n \t\t\tsource.close();\r\n \t\t\tSystem.gc();\r\n \t\t} else {\r\n \t\t\tif (!deleteSlice(source, dim, sourceIdx))\r\n \t\t\t\tSystem.out.println(\" Could not delete slice \" + sourceIdx + \" in source image \" + source.getTitle());\r\n \t\t\tWindowManager.setWindow(source.getWindow());\r\n\t\t\t\tnew Zoom().run(\"100%\");\r\n\t\t\t\tsource.setDisplayMode(IJ.COLOR);\r\n\t\t\t\tsource.setDisplayMode(IJ.COMPOSITE);\r\n \t\t}\r\n \t}\r\n\t\treturn true;\t\r\n\t}", "title": "" }, { "docid": "4681c16ff70239d415c49f8296956302", "score": "0.38760597", "text": "void add(String startDelimiter, String endDelimiter) {\r\n\t\tDelimiter delimiter = (new Delimiter()).start(startDelimiter).end(endDelimiter);\r\n\t\tadd(delimiter);\r\n\t}", "title": "" }, { "docid": "c2a4641bbb747ae2d536c409c8a24f84", "score": "0.38745478", "text": "public void addWord(int id, int start, int length, int[] type);", "title": "" }, { "docid": "f3a76e8c79245e64f277843ba4a1860b", "score": "0.38723037", "text": "public void addOptionalDomainRestriction(String namespaceId, String universalId, String universalIdType) throws PixConsumerException {\n\t\t\n\t\t//QPD \"custom\" field\n\t\tField field;\n\t\t\n\t\ttry {\n\t\t\t//forceField(3) uses 0 based index to create QPD-{1..4}\n\t\t\t//forceComponent(3) uses 0 based index to create QPD-4-{1..4}\n\t\t\t//forceComponent(2) uses 0 based index to create QPD-4-4-{1..3}\n\t\t\t//repeat field with \"~\" delimiter sample: (|^^^HIMS2005&1.3.6.1.4.1.21367.2005.1.1&ISO~^^^XREF200&1.3.6.1.4.1.21367.2005.1.2&ISO|)\n\t\t\tgetSegments().getByCodeAndIndex(QPD, 1).forceField(3);\n\t\t\tfield = getSegments().getByCodeAndIndex(QPD, 1).getFields().item(3).addRepeat(true);\n\t\t\tfield.forceComponent(3);\n\t\t\tfield.getComponent(3).forceComponent(2);\n\t\t\tfield.forceElement(\"4-1\").setAsString(namespaceId);\n\t\t\tfield.forceElement(\"4-2\").setAsString(universalId);\n\t\t\tfield.forceElement(\"4-3\").setAsString(universalIdType);\n\t\t} catch (HL7V2Exception e) {\n\t\t\tlogger.error(\"PixConsumerQuery: addOptionalDomainRestriction - \" + namespaceId + \",\" + universalId + \",\" + universalIdType + \" failed.\");\n\t\t\tthrow new PixConsumerException(\"Add request for domain restriction \" + namespaceId + \",\" + universalId + \",\" + universalIdType + \" failed.\");\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"PixConsumerQuery: addOptionalDomainRestriction \");\n\t\t}\n\t}", "title": "" }, { "docid": "2de29178b8be8d9b6dbf53e640ed6c60", "score": "0.386383", "text": "org.hl7.fhir.ObservationReferenceRange insertNewReferenceRange(int i);", "title": "" }, { "docid": "45d967816506f161976620ad28709aed", "score": "0.3856667", "text": "public com.microsoft.schemas.xrm._2014.contracts.EndpointCollection addNewEndpoints()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.xrm._2014.contracts.EndpointCollection target = null;\r\n target = (com.microsoft.schemas.xrm._2014.contracts.EndpointCollection)get_store().add_element_user(ENDPOINTS$0);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "5402f2762b1d37f82e7dfe450805bbc2", "score": "0.38522682", "text": "void addShape(IShape shape);", "title": "" }, { "docid": "de1f880ac9b6a95989a78a0d8a99a590", "score": "0.38514408", "text": "public void updateTapSchema(SchemaConfig newSchema, boolean createOnly) throws ConfigurationException;", "title": "" }, { "docid": "f6e8feb1d2aef28118f78c0fbebb9bc5", "score": "0.38487807", "text": "interface WithStorageCapacity {\n /**\n * Sets the storage limit for the SQL Azure Database Elastic Pool in MB.\n *\n * @param storageMB storage limit for the SQL Azure Database Elastic Pool in MB\n * @return The next stage of the definition.\n */\n @Deprecated\n SqlElasticPoolOperations.DefinitionStages.WithCreate withStorageCapacity(int storageMB);\n }", "title": "" }, { "docid": "a9929c533772da57bbd8a3f4c0267a06", "score": "0.38436916", "text": "public void add(String[] row) {\r\n\t\tthis.df.add(row);\r\n\t}", "title": "" }, { "docid": "857b135fc3915594890ba5bd586589fc", "score": "0.38389808", "text": "SqlElasticPoolOperations.DefinitionStages.WithEdition define(String elasticPoolName);", "title": "" }, { "docid": "336c42eb97249bc72c75870884658984", "score": "0.38367245", "text": "public void addServiceEntriesToDD(String serviceName, String serviceEndpointInterface, String serviceEndpoint);", "title": "" }, { "docid": "d35f1cceb3aa47c6f3700717b5e5977e", "score": "0.3833582", "text": "IRuleset add(IRuleset rule);", "title": "" }, { "docid": "88a193deea9aae5efe48fc33f616f7c6", "score": "0.3830939", "text": "public SubsetDefinition getSubsetDefinitionRef(final String id) {\n return Identifiable.getIdentifiable(id, getSubsetDefinitionList());\n }", "title": "" }, { "docid": "3c61194f841c1942f0df75fd27b23324", "score": "0.38287982", "text": "public void addSchemaViewer() {\n if (schemaViewerPanel instanceof SchemaViewerPanel) consoleTP.remove(schemaViewerPanel);\n schemaViewerPanel = new SchemaViewerPanel();\n consoleTP.add(schemaViewerPanel, \"Schema Viewer\",7);\n }", "title": "" }, { "docid": "de8e7a541e9b04531e6d5a3ce82a0e3e", "score": "0.3825521", "text": "protected abstract void defineConstraints();", "title": "" }, { "docid": "a2a48aabf283a49fe988625ca2335a1d", "score": "0.38188413", "text": "public android.renderscript.Element.Builder add(android.renderscript.Element element, java.lang.String name, int arraySize) { throw new RuntimeException(\"Stub!\"); }", "title": "" } ]
1d6755f8da18eb2bfbd8bebbf104593f
Created by Alex on 15.05.2017.
[ { "docid": "76a3ec00214d89a740767c5388794931", "score": "0.0", "text": "public interface RepositoryProductsI {\n RealmResults<Product> getListProductsAll();\n Product save(Product product);\n Product getProductById(long id);\n}", "title": "" } ]
[ { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.56584555", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.56391656", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.56391656", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.56391656", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.55960244", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5569195", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "9208773f8d675a45ef2786d0cb668514", "score": "0.55558354", "text": "@Override\n\tpublic void addiion() {\n\t\t\n\t}", "title": "" }, { "docid": "9144a32a2cd5a72f1d1380aa1f1d5f09", "score": "0.55527383", "text": "public void mo5774g() {\n }", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.55249923", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.55249923", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.5509567", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.5509567", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "a4dcc093d4ff3452de6ac444aececdf1", "score": "0.5431708", "text": "public void ausgabeZugFiguren() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "870d28e8c0326c2e585508a88499e108", "score": "0.541504", "text": "private void init() {\n\t\t\t\t\n\t\n\t}", "title": "" }, { "docid": "8c3354ae13a827b8d836df56c4c510d8", "score": "0.54122263", "text": "@Override\n protected void init() {\n\n\n }", "title": "" }, { "docid": "d0738cb6f0934e8c2706f8cceaa57916", "score": "0.5381701", "text": "@Override\r\n\tpublic void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0db52aaf6ab115d13bfdb157c49f358b", "score": "0.5368103", "text": "private void loaddatatable() {\n\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53599507", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53599507", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53599507", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53599507", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53599507", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53599507", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53599507", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53599507", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53599507", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53599507", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.5352301", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.5352301", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "260bb3e9c481a3e03724071c87239711", "score": "0.5346342", "text": "private void m11272q() {\n }", "title": "" }, { "docid": "d0b7e3f5544447dc12bf9d1bad50a34b", "score": "0.53443336", "text": "public void mo40391a() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5341648", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5341648", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5341648", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5341648", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5341648", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5341648", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5341648", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5341648", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5341648", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5341648", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "df0a0c3119b5839183fb53a5de944e4a", "score": "0.53110874", "text": "private static void Recolectar() {\n\t\t\n\t}", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5271387", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "a287e36778d432d6f582d9ae0d7b50a2", "score": "0.5268638", "text": "private static void xuLyLuu() {\n\t\t\n\t}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.5267742", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.52651256", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.52651256", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.52651256", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.526408", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.5252796", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5251499", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5251499", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "6b89a3ab4c01886ca0676a6f3a8a8808", "score": "0.5247251", "text": "private void m11342g() {\n }", "title": "" }, { "docid": "db1df23a1dd6753a6267bb04b332bf85", "score": "0.5240589", "text": "public void mo12026a() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.52230316", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.52230316", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.52230316", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.52230316", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.52230316", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5218931", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5218931", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5218931", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "7009bfc64d248b68640ef0fbfeb1ff16", "score": "0.5209238", "text": "@Override\n public int getVersion() { return 2; }", "title": "" }, { "docid": "839ccc0ea8e2e1b53c93baf01f3c6daa", "score": "0.5205512", "text": "@Override\r\n public boolean init() {\n return true;\r\n }", "title": "" }, { "docid": "84c0f055b676c3c4118b1db0f9b51c6b", "score": "0.5203987", "text": "private void inizia() {\n }", "title": "" }, { "docid": "14a5e1055ba99c73d6c2b2db011f9927", "score": "0.5201966", "text": "private static void create() {}", "title": "" }, { "docid": "99bd004e44dd7019c8ef01a44a9b3eab", "score": "0.51986235", "text": "@Override\r\n\tpublic void breah() {\n\t\t\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5197453", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "04771723ee2c07e5fa5fe8c322190beb", "score": "0.5191773", "text": "@Override\n\tpublic void affichage() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5183026", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5183026", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5183026", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "08617c86310a97d3522e42ae0a3aaa0e", "score": "0.5182213", "text": "private void comandos() {\n\t\t\n\t}", "title": "" }, { "docid": "5c3c2acd34655753ed5c66be62776bb2", "score": "0.5181265", "text": "@Override\n public void initialize() {\n\n }", "title": "" }, { "docid": "49f82de84791f2d90dd9ea5cce118bf5", "score": "0.5177361", "text": "@Override\r\n\tpublic void ader() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d69d82cd185340d978c1a70fb66c01db", "score": "0.5168104", "text": "public void mo5773f() {\n }", "title": "" }, { "docid": "41cd6357ea3d02530682a17c41ed4af4", "score": "0.5167613", "text": "protected void doTest2002082102() {\n }", "title": "" }, { "docid": "18593091750e42f268fe6eeac3c48f57", "score": "0.51639456", "text": "private static final void function()\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5158995", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "b9e40f8e651069ba40a35ef1db458ce9", "score": "0.5152743", "text": "@Override\r\n\tpublic void tyres() {\n\t\t\r\n\t}", "title": "" }, { "docid": "afa1c7bb9fba4037c720ffb0e08eb031", "score": "0.51495737", "text": "protected void doTest2002082101() {\n }", "title": "" }, { "docid": "541fcb561e3121aeb22cb3b6257d9e22", "score": "0.51493514", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.5146936", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.5146936", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "cc07b6e925fefd34942bfb2fd21e818a", "score": "0.5136886", "text": "public void ausgabeFiguren() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "cdc23d1d77410a207bf61cb9016ce9f5", "score": "0.5131931", "text": "@Override\n public void initialize() {\n }", "title": "" }, { "docid": "0c4a8c36d9661a52198b385cb7a1f3b3", "score": "0.51240504", "text": "private ECafeteriaBackoffice() {\n\t}", "title": "" }, { "docid": "1d69f38b94702675a7a6d7b4ca002e6d", "score": "0.51225656", "text": "@Override\n\tpublic void init()\n\t{\n\n\t}", "title": "" }, { "docid": "67710ce0a549969bc6de74866dc11fbb", "score": "0.5122558", "text": "private Sattolo() { }", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.51220024", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.51220024", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.51220024", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "be30a755a49491d0c1db538cbb3c601d", "score": "0.51202095", "text": "@Override\r\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "be30a755a49491d0c1db538cbb3c601d", "score": "0.51202095", "text": "@Override\r\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "a672d2d2a4b7bb037f7f20d62ff1f55e", "score": "0.51168764", "text": "@Override\n\tpublic void ss() {\n\t\t\n\t}", "title": "" }, { "docid": "b8a933b513450a6a7874821e414066eb", "score": "0.5083274", "text": "private void init() {\n\t}", "title": "" }, { "docid": "328fe0537d087535012db1ee9593f9a2", "score": "0.50735086", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "e04f934fbe00df663fa9d5d545a1a729", "score": "0.5072585", "text": "@Override\n public void sporcuPuaniGoster() {\n\n }", "title": "" }, { "docid": "c64411f2d7b4359b656294e598122466", "score": "0.5071589", "text": "public void mo1294d() {\n }", "title": "" }, { "docid": "2d09a3d60a135a4514929b0c9dc8f4de", "score": "0.5063582", "text": "@Override\n public int describeContents() {\n return 1;\n }", "title": "" }, { "docid": "f63d9d6776fc1e035bf0bd3f0d7c962a", "score": "0.50407803", "text": "private void initialize() {\n\n\t}", "title": "" } ]
f20ab23f9592d2b3475fb6dc2a6a1304
Tries to insert all unvisited sets in routes
[ { "docid": "4f8f8678c1cc6039aeeef207f4a3dffa", "score": "0.6158834", "text": "public static void fixSolution(boolean [] visitedSets, Solution solution) {\r\n\t\t/* Remaining sets, ordered from with most demand to least demand */\r\n\t\tTreeSet<CustomerSet> remainingSets = new TreeSet<CustomerSet>((c1,c2)->c1.getDemand()>c2.getDemand()?-1:1);\r\n\t\tHashSet<CustomerSet> movedSets = new HashSet<>();\r\n\t\tHashSet<CustomerSet> swappedSets = new HashSet<>();\r\n\t\tDistanceMatrix dmatrix = solution.getInstance().getDistancematrix();\r\n\t\tfor (int i = 1; i < visitedSets.length; i++) {\r\n\t\t\tif (!visitedSets[i])\r\n\t\t\t\tremainingSets.add(solution.getInstance().getSets().get(i-1));\r\n\t\t}\r\n\t\t\r\n\t\tif (remainingSets.isEmpty()) return; /* Don't even bother... */\r\n\t\t\r\n\t\t/* Get capacity gaps for each route*/\r\n\t\tint numOfRoutes = solution.size();\r\n\t\tHashMap<Route, Integer> routeGaps = new HashMap<>(numOfRoutes);\r\n\t\tint maxCap = solution.getInstance().getCapacity();\r\n\t\tfor (int i = 0; i < numOfRoutes; i++) {\r\n\t\t\tRoute route = solution.get(i);\r\n\t\t\trouteGaps.put(route, maxCap - route.getCapacity());\r\n\t\t}\r\n\t\t\r\n\t\tint impossibleSetCount = 0;\r\n\t\twhile (!remainingSets.isEmpty()) {\r\n\t\t\t/* Until all sets have been associated to a route */\r\n\t\t\t\t\t\t\r\n\t\t\tCustomerSet set = null;\r\n\t\t\tint nextSetCounter = impossibleSetCount;\r\n\t\t\tfor (CustomerSet s : remainingSets) {\r\n\t\t\t\t/* Obtains the set of highest demand that\r\n\t\t\t\t * hasn't been tested yet\r\n\t\t\t\t */\r\n\t\t\t\tif (nextSetCounter == 0) {\r\n\t\t\t\t\tset = s;\r\n\t\t\t\t}\r\n\t\t\t\t--nextSetCounter;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tCustomer customer = null;\r\n\t\t\tfor (Customer c : set) {\r\n\t\t\t\t/* Get any customer from set\r\n\t\t\t\t * The choice of customer could be optimized\r\n\t\t\t\t * But this part is left to the Local Search\r\n\t\t\t\t */\r\n\t\t\t\tcustomer = c;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tHashSet<Route> availableRoutes = new HashSet<>();\r\n\t\t\tfor (Route route : solution) {\r\n\t\t\t\tif (routeGaps.get(route) >= set.getDemand())\r\n\t\t\t\t\tavailableRoutes.add(route);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tRoute randomRoute = null;\r\n\t\t\tfor (Route r : availableRoutes) {\r\n\t\t\t\t/* Get any route available\r\n\t\t\t\t * The choice of route could be optimized\r\n\t\t\t\t * But this part is left to the Local Search\r\n\t\t\t\t */\r\n\t\t\t\trandomRoute = r;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (randomRoute == null) {\r\n\t\t\t\tRoute targetRoute = null; /* Route from which target customer will be extracted */\r\n\t\t\t\tCustomer targetCustomer = null; /* Customer that will be taken from its route */\r\n\t\t\t\tRoute acceptingRoute = null; /* Target customer destiny */\r\n\t\t\t\tCustomer acceptingCustomer = null; /* Customer to be swapped with target customer */\r\n\t\t\t\tint minimalResultingGap = Integer.MAX_VALUE; /* If no move is found, moves customer to another route resulting in a\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t minimal resulting gap in the target route the customer came from */\r\n\t\t\t\tint maximalResultingGap = -1; /* If no move is found, swaps customer with another customer in another route resulting\r\n\t\t\t \t\t\t\t\t\t\t\t\tin a maximal resulting gap in one of the routes */\r\n\t\t\t\tboolean foundMove = false;\r\n\t\t\t\t\r\n\t\t\t\tfor (Route route : solution) {\r\n\t\t\t\t\t/* Routes with one (or zero) customers\r\n\t\t\t\t\t * can't have customers taken, since they\r\n\t\t\t\t\t * would be emptied.\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (route.size() < 2) continue;\r\n\t\t\t\t\tfor (Customer c : route) {\r\n\t\t\t\t\t\tint gapWithoutC = routeGaps.get(route) + c.getDemand();\r\n\t\t\t\t\t\tif (gapWithoutC >= set.getDemand()) {\r\n\t\t\t\t\t\t\t/* If c is removed from route, remaining set fits\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tboolean foundAcceptingRoute = false;\r\n\t\t\t\t\t\t\tfor (Route anotherRoute : solution) {\r\n\t\t\t\t\t\t\t\t/* Does not take the route itself into account\r\n\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\tif (anotherRoute == route) continue;\r\n\t\t\t\t\t\t\t\tif (routeGaps.get(anotherRoute) >= c.getDemand()) {\r\n\t\t\t\t\t\t\t\t\t/* There is another route that can take c\r\n\t\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\t\tacceptingRoute = anotherRoute;\r\n\t\t\t\t\t\t\t\t\tfoundAcceptingRoute = true;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (foundAcceptingRoute) {\r\n\t\t\t\t\t\t\t\t/* There is an accepting route\r\n\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\ttargetRoute = route;\r\n\t\t\t\t\t\t\t\ttargetCustomer = c;\r\n\t\t\t\t\t\t\t\tfoundMove = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t/* If c is removed from the route, remaining set does not fit\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tif (!foundMove) {\r\n\t\t\t\t\t\t\t/* Does not take into account sets that have been moved\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tif (!movedSets.contains(c.getSet())) {\r\n\t\t\t\t\t\t\t\tfor (Route anotherRoute : solution) {\r\n\t\t\t\t\t\t\t\t\t/* Does not take the route itself into account\r\n\t\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\t\tif (anotherRoute == route) continue;\r\n\t\t\t\t\t\t\t\t\t/* Tries to find another route such that if c is\r\n\t\t\t\t\t\t\t\t\t * added to it, it leaves a minimal gap, leaving\r\n\t\t\t\t\t\t\t\t\t * more space for the other remaining sets, with\r\n\t\t\t\t\t\t\t\t\t * higher priority\r\n\t\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\t\tint anotherRouteCurrentGap = routeGaps.get(anotherRoute);\r\n\t\t\t\t\t\t\t\t\tint customerDemand = c.getDemand();\r\n\t\t\t\t\t\t\t\t\tint resultingGap = anotherRouteCurrentGap - customerDemand;\r\n\t\t\t\t\t\t\t\t\tif (resultingGap < 0) continue;\r\n\t\t\t\t\t\t\t\t\tif (resultingGap < minimalResultingGap) {\r\n\t\t\t\t\t\t\t\t\t\t/* There is another route that can take c and\r\n\t\t\t\t\t\t\t\t\t\t * leave a smaller gap in the accepting route\r\n\t\t\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\t\t\tminimalResultingGap = resultingGap;\r\n\t\t\t\t\t\t\t\t\t\ttargetRoute = route;\r\n\t\t\t\t\t\t\t\t\t\ttargetCustomer = c;\r\n\t\t\t\t\t\t\t\t\t\tacceptingRoute = anotherRoute;\r\n\t\t\t\t\t\t\t\t\t\tacceptingCustomer = null;\r\n\t\t\t\t\t\t\t\t\t\t/* foundMove flag isn't set to true because\r\n\t\t\t\t\t\t\t\t\t\t * there could be better moves that fits much nicely */\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t/* Does not take into account sets that have been swapped\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tif (!swappedSets.contains(c.getSet())) {\r\n\t\t\t\t\t\t\t\tfor (Route anotherRoute : solution) {\r\n\t\t\t\t\t\t\t\t\t/* Does not take the route itself into account\r\n\t\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\t\tif (anotherRoute == route) continue;\r\n\t\t\t\t\t\t\t\t\t/* Tries to find another route such that if c is swapped\r\n\t\t\t\t\t\t\t\t\t * with one customer from it, it leaves a maximal gap,\r\n\t\t\t\t\t\t\t\t\t * leaving more space for the other remaining sets, with\r\n\t\t\t\t\t\t\t\t\t * higher priority\r\n\t\t\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t\t\tint anotherRouteCurrentGap = routeGaps.get(anotherRoute);\r\n\t\t\t\t\t\t\t\t\tint thisRouteCurrentGap = routeGaps.get(route);\r\n\t\t\t\t\t\t\t\t\tint customerDemand = c.getDemand();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tfor (Customer anotherRouteCustomer : anotherRoute) {\r\n\t\t\t\t\t\t\t\t\t\tint anotherRouteCustomerDemand = anotherRouteCustomer.getDemand();\r\n\t\t\t\t\t\t\t\t\t\tint delta = customerDemand - anotherRouteCustomerDemand;\r\n\t\t\t\t\t\t\t\t\t\tint anotherRouteResultingGap = anotherRouteCurrentGap - delta;\r\n\t\t\t\t\t\t\t\t\t\tint thisRouteResultingGap = thisRouteCurrentGap + delta;\r\n\t\t\t\t\t\t\t\t\t\tif (anotherRouteResultingGap < 0 || thisRouteResultingGap < 0) continue; /* invalid moves */\r\n\t\t\t\t\t\t\t\t\t\tint largestDelta = Math.max(anotherRouteResultingGap, thisRouteResultingGap);\r\n\t\t\t\t\t\t\t\t\t\tif (largestDelta > maximalResultingGap) {\r\n\t\t\t\t\t\t\t\t\t\t\tmaximalResultingGap = largestDelta;\r\n\t\t\t\t\t\t\t\t\t\t\ttargetRoute = route;\r\n\t\t\t\t\t\t\t\t\t\t\ttargetCustomer = c;\r\n\t\t\t\t\t\t\t\t\t\t\tacceptingRoute = anotherRoute;\r\n\t\t\t\t\t\t\t\t\t\t\tacceptingCustomer = anotherRouteCustomer;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (foundMove) {\r\n\t\t\t\t\t\t/* If one move is found, exits loop and\r\n\t\t\t\t\t\t * applies it directly\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (foundMove) {\r\n\t\t\t\t\ttargetRoute.removeCustomer(targetCustomer, dmatrix);\r\n\t\t\t\t\ttargetRoute.addCustomer(customer, dmatrix);\r\n\t\t\t\t\tacceptingRoute.addCustomer(targetCustomer, dmatrix);\r\n\t\t\t\t\trouteGaps.put(targetRoute, maxCap - targetRoute.getCapacity());\r\n\t\t\t\t\trouteGaps.put(acceptingRoute, maxCap - acceptingRoute.getCapacity());\r\n\t\t\t\t\tfinal CustomerSet finalSet = set;\r\n\t\t\t\t\tremainingSets.removeIf((s)->s.equals(finalSet));\r\n\t\t\t\t\timpossibleSetCount = 0;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (targetRoute == null || targetCustomer == null || acceptingRoute == null) {\r\n\t\t\t\t\t\t++impossibleSetCount;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (acceptingCustomer == null) {\r\n\t\t\t\t\t\t\t/* Relocate customer to another route */\r\n\t\t\t\t\t\t\tmovedSets.add(targetCustomer.getSet());\r\n\t\t\t\t\t\t\ttargetRoute.removeCustomer(targetCustomer, dmatrix);\r\n\t\t\t\t\t\t\tacceptingRoute.addCustomer(targetCustomer, dmatrix);\r\n\t\t\t\t\t\t\trouteGaps.put(targetRoute, maxCap - targetRoute.getCapacity());\r\n\t\t\t\t\t\t\trouteGaps.put(acceptingRoute, maxCap - acceptingRoute.getCapacity());\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/* Swap customers */\r\n\t\t\t\t\t\t\tswappedSets.add(targetCustomer.getSet());\r\n\t\t\t\t\t\t\tswappedSets.add(acceptingCustomer.getSet());\r\n\t\t\t\t\t\t\ttargetRoute.removeCustomer(targetCustomer, dmatrix);\r\n\t\t\t\t\t\t\tacceptingRoute.removeCustomer(acceptingCustomer, dmatrix);\r\n\t\t\t\t\t\t\tacceptingRoute.addCustomer(targetCustomer, dmatrix);\r\n\t\t\t\t\t\t\ttargetRoute.addCustomer(acceptingCustomer, dmatrix);\r\n\t\t\t\t\t\t\trouteGaps.put(targetRoute, maxCap - targetRoute.getCapacity());\r\n\t\t\t\t\t\t\trouteGaps.put(acceptingRoute, maxCap - acceptingRoute.getCapacity());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\timpossibleSetCount = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t/* Adds the customer from the current set to the route\r\n\t\t\t\t * Must never fail since it has been checked before if it could be added\r\n\t\t\t\t */\r\n\t\t\t\trandomRoute.addCustomer(customer, dmatrix);\r\n\t\t\t\trouteGaps.put(randomRoute, maxCap - randomRoute.getCapacity());\r\n\t\t\t\tfinal CustomerSet finalSet = set;\r\n\t\t\t\tremainingSets.removeIf((s)->s.equals(finalSet));\r\n\t\t\t\timpossibleSetCount = 0;\r\n\t\t\t}\r\n\t\t\tif (impossibleSetCount == remainingSets.size()) {\r\n\t\t\t\timpossibleSetCount = 0; /* reset counter */\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "39c41a81fcd840cfc0d1cf42f31014e1", "score": "0.5884176", "text": "protected void initUnvisitedurls()\r\n {\r\n if (collUnvisitedurls == null)\r\n {\r\n collUnvisitedurls = new ArrayList();\r\n }\r\n }", "title": "" }, { "docid": "e69bda3e41e3b761cad5f483542c8caa", "score": "0.5783357", "text": "protected void initVisitedurls()\r\n {\r\n if (collVisitedurls == null)\r\n {\r\n collVisitedurls = new ArrayList();\r\n }\r\n }", "title": "" }, { "docid": "68530e4bc7a6001035e3d957ac579f9b", "score": "0.5645507", "text": "protected void clearVisited() {\n visited.clear();\n }", "title": "" }, { "docid": "ecabb031430faabaee1f76841d0d8a3f", "score": "0.56125784", "text": "void insertRoutes(Map<String, MapPoint> mapPoints, List<Route> routes);", "title": "" }, { "docid": "55961964dca0b33b1eb8149a91677555", "score": "0.56007904", "text": "private void preRouteCalculation() {\r\n\t\tif (this.preRoute) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// remove failed link\r\n\t\tfor (List<Link> list : this.interLinks.values()) {\r\n\t\t\tList<Link> removeList = new LinkedList<Link>();\r\n\t\t\tfor (Link l : list) {\r\n\t\t\t\tif (l.isFailed()) {\r\n\t\t\t\t\tremoveList.add(l);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (Link l : removeList) {\r\n\t\t\t\tlist.remove(l);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.preRoute = true;\r\n\t}", "title": "" }, { "docid": "c8dc6144242ef7d1979fd72293107754", "score": "0.5564106", "text": "ArrayList<Website> spanningTree(Website a) {\r\n //search trhough all connected websites and add to a list\r\n ArrayDeque<Website> pool = new ArrayDeque<>();\r\n ArrayList<Website> list = new ArrayList<>();//list of wesbites to return \r\n pool.addLast(a);\r\n list.add(a);\r\n while (!pool.isEmpty()) {\r\n Website p = pool.removeLast();\r\n if (p.visited == false) {\r\n p.visited = true;\r\n for (Website w : p.neighbors) {\r\n //add all neighbors\r\n pool.addLast(w);\r\n if (!list.contains(w)) {\r\n list.add(w);\r\n }\r\n }\r\n }\r\n }\r\n return list;\r\n }", "title": "" }, { "docid": "25dbceea967c53aa66e6ebd5372b50fe", "score": "0.55512077", "text": "public void reset() {\r\n\t\tvisitedCities = new HashSet<>();\r\n\t\ttour = new ArrayList<>();\r\n\t}", "title": "" }, { "docid": "5d92523f49a112a98b68389c1c93c9bc", "score": "0.5531418", "text": "private void setVisited() {\n for (int i = 0; i < visited.length; i++) {\n for (int j = 0; j < visited[i].length; j++) {\n visited[i][j] = false;\n }\n }\n }", "title": "" }, { "docid": "bda12b840dce2346e5cfe65d2b79d7f3", "score": "0.54948956", "text": "private static Collection<Node> getDestinations() {\n return new HashSet<>(distanceVector.keySet());\n }", "title": "" }, { "docid": "26dd382b0e7334e1738e99cdf172930b", "score": "0.54563016", "text": "private void bfs_allPaths(String startPoint, String endPoint){\n\t\t\t\t\t\n\t\t//Queue for BFS seen paths\n\t\tQueue_BFSALL <Vector> allpaths = new Queue_BFSALL <Vector>();\n\t\t\n\t\t// path vector to store the current path\n\t Vector<String> current_path = new Vector<String>();\n\t \n\t current_path.add(startPoint);\n\t allpaths.enqueue(current_path);\n\t\tmarked.add(startPoint); // Mark the source\n\t\t\n\n\t\twhile (!allpaths.isEmpty()){\n\t\t\t\n\t\t\tcurrent_path = allpaths.dequeue(); //returns an arraylist of path at the start of the Queue\n\t\t\tString last = current_path.get(current_path.size() - 1);//Remove next vertex/street from the current_path.\n\t \n\t\t\t{ //limit total number of paths to that of given size\n\t if(allpaths_FINAL.size() == path_size) \n\t \treturn;\n\t }\n\t \n\t \n\t\t\tif(hashtable.get(last)!=null) {\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tSet<String> streetNames = ((Map<String, Object>) hashtable.get(last)).keySet(); //Get all streets attached to last added street\n\t\t\t\t\n\t\t\t\tfor (String street : streetNames) {\n\t\t\t\t\t\n\t\t\t\t\t/* *******VERY IMPORTANT PART OF THIS CODE: \n\t\t\t\t\t * Used to create all possible paths without ending on just one path.\n\t\t\t\t\t * Adds onto the Queue each time a new path is found. \n\t\t\t\t\t * This ensures that when we dequeue and take the path saved, \n\t\t\t\t\t * that it has all possible streets appended to a newpath.\n\t\t\t\t\t * */\n\t\t\t\t\tVector newpath = new Vector(current_path); //create a new vector that takes all elements of current_path vector\n\t newpath.add(street); //adds the new street to it\n\t\t\t\t\tallpaths.enqueue(newpath);\t//add new path onto the queue of all_paths\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Add the Path to the Vector of all possible paths\n\t\t\t\t\t\tif(street.equals(endPoint)) {\n\t\t\t\t\t\t\tallpaths_FINAL.add(newpath);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "95113011af31c38dc694f2db5ee0e0cb", "score": "0.54297096", "text": "private static void findPrioritySets(final State state,\n final ArrayList<StatePlusTransition> sptList,\n final ArrayList<State> notPut) {\n // System.out.println(state.getId());\n notPut.remove(state);\n for (int i = 0; i < state.getOutgoingTransitions().size(); i++) {\n Transition transition = state.getOutgoingTransitions().get(i);\n State targetState = transition.getTargetState();\n if (notPut.contains(targetState)) {\n if (!hasDependentStateForAll(transition)\n && !isHieracrchical(targetState)) {\n // end for path\n addSptsToList(targetState, sptList);\n findPrioritySets(targetState, sptList, notPut);\n }\n }\n }\n }", "title": "" }, { "docid": "848739cc2126696f7e72c22e92eb7f52", "score": "0.5422914", "text": "private void prepare() {\n\t\tSystem.out.println(\"prepare:\" + this.g);\n\t\tNuptPath firstPath = getShortestPathByDijkstra(source, target);\n\t\tSystem.out.println(\"firstPath:\" + firstPath);\n\t\tthis.results.add(firstPath);\n\t}", "title": "" }, { "docid": "8e12cc3a3f107d4176c58641a20aef81", "score": "0.5388166", "text": "public void resetVisited() {\n\t\tfor (FlowVertex vertex : this.vertices.values()) {\n\t\t\tvertex.resetVisited();\n\t\t}\n\t}", "title": "" }, { "docid": "d73e855b2dd0fc9966c1e2574429f7d9", "score": "0.5384153", "text": "protected void clearVisited() {\n\t\tvisited = false;\n\t}", "title": "" }, { "docid": "81b53420984dedbcb21ee5643ae105e4", "score": "0.53739816", "text": "public void expandAllLand() {\r\n ArrayList<Block> totalDiscovered = new ArrayList<Block>();\r\n ArrayDeque<Block> possibleBridges = new ArrayDeque<Block>();\r\n ArrayDeque<ArrayList<Block>> freeLandSets = new ArrayDeque<>();\r\n for (int i = 0; i < board.sliderValue; i++) {\r\n for (int j = 0; j < board.sliderValue; j++) {\r\n Block temp = board.getGrid()[i][j];\r\n if (!totalDiscovered.contains(temp) && (temp.isLandSource() || temp.isLandStem())\r\n && !temp.isComplete()) {\r\n ArrayDeque<Block> surroundingBlanks = getSurroundingBlanks(temp, totalDiscovered);\r\n System.out.println(\"SurroundingBlanks size = \" + surroundingBlanks.size() + \" around \" + temp.gridX + \", \" + temp.gridY);\r\n if (surroundingBlanks.size() == 1) {\r\n surroundingBlanks.getFirst().setLandStem();\r\n totalDiscovered.add(surroundingBlanks.getFirst());\r\n }\r\n }\r\n }\r\n }\r\n surroundAllComplete();\r\n }", "title": "" }, { "docid": "1c416440dcc9601a5514da1a964bb858", "score": "0.53652114", "text": "private void breaker(PriorityQueue<Integer> locs) {\r\n while (!locs.isEmpty()) {\r\n\r\n Integer node = locs.poll();\r\n ArrayList<Integer> neighbors = new ArrayList<>(); //dynamically sized list in case neighbor is a wall or out of bounds\r\n\r\n if ((node + 1) % width != 0 && contents[node + 1] != 1) { //these check if direct neighbors are off the grid\r\n neighbors.add(node + 1);\r\n }\r\n if (node % width != 0 && contents[node - 1] != 1) {\r\n neighbors.add(node - 1);\r\n }\r\n if ((node - width) >= 0 && contents[node - width] != 1) {\r\n neighbors.add(node - width);\r\n }\r\n if ((node + width) < size && contents[node + width] != 1) {\r\n neighbors.add(node + width);\r\n }\r\n\r\n for (Integer succ : neighbors) {\r\n if (endloc == succ) {\r\n retracePath(node);\r\n return;\r\n }\r\n\r\n long gscore = path[node][1] + 1;\r\n long hscore = heuristic(succ);\r\n\r\n if (path[succ][1] == 0 || gscore < path[succ][1]) {\r\n pathfrom[succ] = node;\r\n path[succ][1] = gscore;\r\n path[succ][2] = hscore;\r\n path[succ][0] = path[succ][1] + path[succ][2];\r\n path[succ][3] = order;\r\n order += 1;\r\n locs.add(succ);\r\n }\r\n }\r\n\r\n if (node != startloc) {\r\n contents[node] = 5; //mark this square as searched\r\n }\r\n\r\n }\r\n repaint();\r\n JOptionPane.showMessageDialog(null, \"No path found!\", \"Error\", JOptionPane.INFORMATION_MESSAGE);\r\n }", "title": "" }, { "docid": "dca81747f3aba8baac7fe0134408bc55", "score": "0.5358973", "text": "public void populateRoutes(){\n\t\t\n\t\t// Initialise population\n\t\tSystem.out.println(\"\\nTRAVELLING SALESMAN:\");\n Population pop = new Population(100, true);\n System.out.println(\"Initial distance: \" + pop.getFittest().getDistance() + \" Metres\");\n\n // Evolve population for 100 generations\n pop = GA.evolvePopulation(pop);\n for (int i = 0; i < 1000; i++) {\n pop = GA.evolvePopulation(pop);\n }\n\n // Print final results\n System.out.println(\"Final distance: \" + pop.getFittest().getDistance() + \" Metres\");\n System.out.println(\"Quickest Route:\");\n System.out.println(pop.getFittest());\n\t}", "title": "" }, { "docid": "b4e0fc6909a3d9afe266341624ae5985", "score": "0.53246677", "text": "public MapAdjacentListDirectedGraph() {\n // Inizializza la mappa con la mappa vuota\n this.adjacentLists = new HashMap<GraphNode<L>, Set<GraphEdge<L>>>();\n }", "title": "" }, { "docid": "5f8ced42ac0b5de4656b33d8d6a4abc8", "score": "0.5301732", "text": "public void markAllNodesAsUnvisited() {\r\n visitedToken++;\r\n }", "title": "" }, { "docid": "c6c3b75002f02412792f03078849ec58", "score": "0.5299236", "text": "private void addEdges()\n\t{\n\t\tfor(int i=initialGraphSize;i<graph.getSize();i++)\n\t\t{\n\t\t\tint numberOfEdges=(int) (2+Math.random()*6);\n\t\t\tint [] adjacent = new int[numberOfEdges];\n\t\t\t\n\t\t\tfor(int j=0; j<numberOfEdges; j++)\n\t\t\t{\n\t\t\t\tint id= (int) ((Math.random()*(graph.getSize()))+1);\n\t\t\t\tfor(int k=0;k<j;k++)// ensures all edges are distinct\n\t\t\t\t{\n\t\t\t\t\twhile(id== adjacent[k])\n\t\t\t\t\t{\n\t\t\t\t\t\tid= (int) ((Math.random()*(graph.getSize()))+1);\n\t\t\t\t\t\tk=0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tadjacent[j]=id;\n\t\t\t}\n\t\t\t\n\t\t\tint [] weights = new int[numberOfEdges];\n\t\t\tfor(int l=0; l<numberOfEdges; l++)\n\t\t\t{\n\t\t\t\tweights[l]= (int) (100+Math.random()*1900);\n\t\t\t}\n\t\t\t\t\n\t\t\tNode city=graph.getCity(i);\n\t\t\tfor(int m=0; m<numberOfEdges; m++)\n\t\t\t{\n\t\t\t\tcity.addOutgoingCity(graph.getCity(adjacent[m]-1), weights[m]);\n\t\t\t\tgraph.getCity(adjacent[m]-1).addIncomingCount();\n\t\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "86d41c72792e2c24bbc1850f2cef6a8f", "score": "0.5297339", "text": "private void setVerticesUnvisited() {\n for (Vertex v : vertices) {\n v.setUnvisited();\n }\n }", "title": "" }, { "docid": "c001a322617a6e6dfaa3f631df6e433d", "score": "0.52769494", "text": "private void populate() {\n // Get a list of local files that we already have\n List<FloorplanMeta> localNodes = CacheLoader.getLocalNodes(context);\n // Get a map of local hashes we already have\n for (FloorplanMeta node : CacheLoader.loadHashes(context)) {\n // Ignore hashes for files that don't exist locally\n // e.g. If image was deleted somehow but hash wasn't removed\n if (localNodes.contains(node)) {\n insert(node);\n }\n }\n }", "title": "" }, { "docid": "048ba00c20880c3df2848e519751961f", "score": "0.52693987", "text": "public void resetVisitedNodes() {\n\t\tvisitedNodes = 0;\n\t}", "title": "" }, { "docid": "c694904d896cc5a3d404ef0d3d3f23fd", "score": "0.52288973", "text": "public void expand() {\n\t\tchildren.removeAll(children);\n\t\tfor (Road r : loc.roads) {\n\t\t\tNode child = new Node(r.toLocation, this);\n\t\t\tchild.depth = this.depth + 1;\n\t\t\tchild.partialPathCost = this.partialPathCost + r.cost;\n\t\t\tchild.heuristicValue = 0.0;\n\t\t\tchildren.add(child);\n\t\t}\n\t}", "title": "" }, { "docid": "d742ec4a7a22cd465644eb0cd24961b8", "score": "0.522825", "text": "public void compute_all_MultiPaths_from_here(){\r\n\t\tif (!this.OSPF_paths_already_computed)\r\n\t\t\tthrow new Error(\"Router.compute_all_MultiPaths_from_here() called before Router.compute_all_OSPF_paths_from_here()\");\r\n\t\t\r\n\t\t// initialize MultiPath map with OSPF paths\r\n\t\tthis.multiPaths = new HashMap<Router_OSPF, Multi_IP_Path>();\r\n\t\tfor (Router_OSPF destination : this.paths.keySet())\r\n\t\t\tthis.multiPaths.put(destination, new Multi_IP_Path(this.paths.get(destination)));\r\n\t\t\r\n\t\t// add path alternatives for all destinations\r\n\t\tfor (Router destination : this.paths.keySet())\r\n\t\t\tthis.add_path_alternatives(this.paths.get(destination));\r\n\t\t\r\n\t\t// reduce number of paths\r\n\t\tfor (Multi_IP_Path multi : this.multiPaths.values())\r\n\t\t\tmulti.setK(7);\r\n\t}", "title": "" }, { "docid": "30bdb1352cf3aa9f6e919b1ff27c5fd9", "score": "0.52231973", "text": "void setVisited();", "title": "" }, { "docid": "30bdb1352cf3aa9f6e919b1ff27c5fd9", "score": "0.52231973", "text": "void setVisited();", "title": "" }, { "docid": "f3314cb41fbee0562a7d63e9a3528944", "score": "0.5222849", "text": "private void checkAlternativeRoutes() {\n\t\tAlternativeRouteList obJ = new AlternativeRouteList();\n\t\tfor (int r = 0; r < values.length; r += 2) {\n\t\t\troute.add(obJ.new Route(values[r].trim(), values[r + 1].trim()));\n\t\t}\n\n\t\tif (shared.through2String.length() > 0) {\n\t\t\tshared.through2String = \"\";\n\t\t}\n\t\tif (shared.through3String.length() > 0) {\n\t\t\tshared.through3String = \"\";\n\t\t}\n\t\tshared.through1String = \"\";\n\t\tshared.fromPrice = \"\";\n\t\tshared.toPrice = \"\";\n\t\tshared.departureDate = \"\";\n\t\tshared.day = \"\";\n\t\tshared.vehicle = \"all\";\n\n\t\tint size = 0;\n\t\tList<List<String>> all_full_routes = new ArrayList<>();\n\t\tList<String> one_full_route = null;\n\t\twhile (size < route.size()) {\n\t\t\tone_full_route = new ArrayList<>();\n\t\t\tshared.fromString = route.get(size).source;\n\t\t\tshared.toString = route.get(size).destination;\n\t\t\tString myquery = selectQuery(\"cost\", true);\n\t\t\tCursor cur = dbHelper.getData(myquery);\n\t\t\tcur.moveToFirst();\n\t\t\tList<String> rt_id = new ArrayList<>();\n\t\t\twhile (!cur.isAfterLast()) {\n\n\t\t\t\trt_id.add(cur.getString(cur.getColumnIndex(\"route_id\")));\n\t\t\t\tcur.moveToNext();\n\t\t\t}\n\t\t\tIterator<String> it = rt_id.iterator();\n\t\t\tStringBuilder find_route = new StringBuilder();\n\n\t\t\tfind_route\n\t\t\t\t\t.append(\"select node.name from route_node join node on node.id = route_node.node_id join route on route.id = route_node.route_id where route_id in (\");\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tfind_route.append(it.next() + \", \");\n\t\t\t}\n\t\t\tfind_route.append(\"0)\");\n\t\t\tCursor route_cursor = dbHelper.getData(find_route.toString());\n\t\t\troute_cursor.moveToFirst();\n\t\t\twhile (!route_cursor.isAfterLast()) {\n\t\t\t\tone_full_route.add(route_cursor.getString(route_cursor\n\t\t\t\t\t\t.getColumnIndex(\"name\")));\n\t\t\t\troute_cursor.moveToNext();\n\t\t\t}\n\t\t\tall_full_routes.add(one_full_route);\n\t\t\tsize++;\n\t\t}\n\t\tLog.d(\"crossover\", \"here all full routes are:\" + all_full_routes);\n\n\t\tfor (int i = 0; i < alternative_routes.size(); i++) {\n\n\t\t\tsecond_for: for (int f = (all_full_routes.get(i).indexOf(route\n\t\t\t\t\t.get(i).source)) + 1; f < all_full_routes.get(i).size(); f++) {\n\t\t\t\tString str = all_full_routes.get(i).get(f);\n\t\t\t\tint num_route = route.size() - 1;\n\t\t\t\twhile (num_route > (i + 1)) {\n\t\t\t\t\tif (str.equals(route.get(num_route).source)) {\n\n\t\t\t\t\t\tList<String> new_route = new ArrayList<>();\n\t\t\t\t\t\tnew_route.add(route.get(i).source + \" - \" + str);\n\t\t\t\t\t\talternative_routes.remove(i);\n\t\t\t\t\t\talternative_routes.add(i, new_route);\n\n\t\t\t\t\t\troute.get(i).destination = str;\n\n\t\t\t\t\t\tint i1 = i + 1;\n\t\t\t\t\t\twhile (!route.get(i1).source.equals(str)) {\n\t\t\t\t\t\t\talternative_routes.remove(i1);\n\t\t\t\t\t\t\troute.remove(i1);\n\t\t\t\t\t\t\tall_full_routes.remove(i1);\n\t\t\t\t\t\t\t// i1++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tLog.d(\"crossover\", \"alternative route:\"\n\t\t\t\t\t\t\t\t+ alternative_routes);\n\t\t\t\t\t\tbreak second_for;\n\t\t\t\t\t}\n\t\t\t\t\tnum_route--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tLog.d(\"crossover\", \"alternative route:\" + alternative_routes);\n\t\t// here is now new optimized alternative_routes, route, all_full_routes\n\t\tvalues = getRouteValues(alternative_routes);\n\t\tLog.d(\"crossover\", \"value of values:\" + values);\n\t}", "title": "" }, { "docid": "fa19b8be078b98b985ba41da3fc9c345", "score": "0.5215136", "text": "public void setRoutes();", "title": "" }, { "docid": "2f588633448717288d49d035159b5c97", "score": "0.52147937", "text": "public static Set<String> getAllNeighbours(Set<String> inStrings){\n String string = inStrings.iterator().next();\n inStrings.remove(string);\n Set<String> stringSet = new LinkedHashSet<String>();\n stringSet.add(string);\n Queue<String> queue = new ArrayDeque<String>();\n queue.add(string);\n while(!queue.isEmpty() && !inStrings.isEmpty()){ //don't bother running the loop when the main collection is empty\n Set<String> set = getNeighbours(inStrings,queue.poll()); //get the neighbours&remove the current element from queue\n queue.addAll(set);//add the neighbours to the queue\n inStrings.removeAll(set);//remove it from the main collection\n }\n return inStrings;\n }", "title": "" }, { "docid": "046450c28aa3bf7b94beb61b695adbda", "score": "0.5210425", "text": "protected void setVisited() {\n\t\tvisited = true;\t\t\n\t}", "title": "" }, { "docid": "496b8514f21384a5d664bcb4c2e5e848", "score": "0.51801443", "text": "private static void clearRoutes(final Population population) {\n\t\tfor (Person person : population.getPersons().values()) {\n\t\t\tfor (Plan plan : person.getPlans()) {\n\t\t\t\tfor (PlanElement pe : plan.getPlanElements()) {\n\t\t\t\t\tif (pe instanceof Leg) {\n\t\t\t\t\t\t((Leg) pe).setRoute(null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "45c09f527f654786f753740cce639063", "score": "0.51777804", "text": "@Override\n public Collection<Route<WindyVertex, WindyEdge>> improveSolution() {\n Route longestRoute = Utils.findLongestRoute(getInitialSol());\n\n //try to offload each of the links to a cheaper route.\n return swapOneEdge(longestRoute);\n }", "title": "" }, { "docid": "db9f47c0bdacfcced447c50afd7b2c86", "score": "0.5168309", "text": "private Set<Binding<T>> discoverCycles() {\n final Set<Binding<T>> result = new HashSet<>();\n final Set<Binding<T>> visited = new HashSet<>();\n final List<Binding<T>> path = new ArrayList<>();\n final Map<Binding<T>, Integer> depth = new HashMap<>();\n // This might be a bit nicer with a class that holds all the data passed down...\n incoming.keySet().forEach(template -> discoverCycles(result::add, visited, template, path, depth));\n return result;\n }", "title": "" }, { "docid": "da8b5ffd9416d18d19eb43cb30fe17ff", "score": "0.5159773", "text": "public Graph(Destination[] destinations) {\r\n\t\tthis.destinations = new LinkedList[26];\r\n\t\tfor (Destination d : destinations) {\r\n\t\t\tthis.insert(d);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "05d5912f255d28017a19135f68013d10", "score": "0.5153647", "text": "public void clearVisited() {\r\n\t\tfor (int x = 0;x < map.getWidth();x++) {\r\n\t\t\tfor (int y = 0; y < map.getHeight();y++) {\r\n\t\t\t\tvisited[x][y] = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "50dc06080614989b0f58440424537b3a", "score": "0.51431936", "text": "private void prepareConsolidatedHyperLinkDocuments(List<Document> consolidatedHyperLinkDocuments, Document rootPageDocument, Set<String> visitedLinks) {\n currentLevel++;\n if (currentLevel > MAX_LEVEL_TO_EXPAND) {\n LOGGER.info(\"Reached to maximum level, No further processing..\");\n return;\n }\n\n Set<String> urlLinks = rootPageDocument.getElementsByTag(\"a\")\n .stream().filter(element -> element.attributes().get(\"href\").startsWith(websiteUrlToScan))\n .map(element -> element.attributes().get(\"href\"))\n .filter(url -> !visitedLinks.contains(url))\n .collect(Collectors.toSet());\n\n\n visitedLinks.addAll(urlLinks);\n for (String url : urlLinks) {\n LOGGER.info(\"connecting to {}\", url);\n Document doc;\n try {\n doc = Jsoup.connect(url).get();\n } catch (Exception e) {\n LOGGER.error(\"Error connecting url: {}, errorMessage: {}\", url, e.getMessage());\n return;\n }\n\n consolidatedHyperLinkDocuments.add(doc);\n\n prepareConsolidatedHyperLinkDocuments(consolidatedHyperLinkDocuments, doc, visitedLinks);\n }\n currentLevel--;\n }", "title": "" }, { "docid": "e0ae89ad06100293049ca443ba38a150", "score": "0.514", "text": "public void findRoute(boolean depthSearch) {\n if (!depthSearch) {\n System.out.println(\"BREADTH FIRST SEARCH\");\n } else {\n System.out.println(\"DEPTH FIRST SEARCH\");\n }\n\n int start = map.getStart();\n int goal = map.getGoal();\n System.out.println(\"Start: \" + points[start]);\n\n connected = map.getConnected(start);\n\n if (connected.size() == 0) {\n System.out.println(\"Start is isolated. No available route.\");\n return;\n }\n\n printConnected();\n\n frontier = new ArrayList();\n\n for (int i = 0; i < connected.size(); i++) {\n frontier.add(connected.get(i));\n }\n\n printFrontier();\n\n explored = new ArrayList();\n explored.add(start);\n\n printExplored();\n\n System.out.println();\n\n boolean goalFound = false;\n\n while (!goalFound) {\n int current;\n\n if (!depthSearch) {\n current = (Integer) frontier.get(0);\n frontier.remove(0);\n } else {\n current = (Integer) frontier.get(frontier.size() - 1);\n frontier.remove(frontier.size() - 1);\n }\n\n System.out.println(\"Current: \" + points[current]);\n\n if (current == goal) {\n goalFound = true;\n System.out.println(\"Is Goal: YES\");\n } else {\n System.out.println(\"Is Goal: NO\");\n }\n\n\n connected = map.getConnected(current);\n printConnected();\n\n for (int i = 0; i < connected.size(); i++) {\n int toBeExplored = (Integer) connected.get(i);\n if (!explored.contains(toBeExplored) && !frontier.contains(toBeExplored)) {\n frontier.add(toBeExplored);\n }\n }\n\n printFrontier();\n explored.add(current);\n printExplored();\n System.out.println();\n\n if (frontier.size() == 0 && !goalFound) {\n System.out.println(\"No available route found. Goal not reachable.\");\n System.out.println(\"===============================\");\n return;\n }\n }\n\n System.out.println(\"GOAL FOUND.\");\n System.out.println(\"===============================\");\n }", "title": "" }, { "docid": "e6681d4acc37e582dacd6fb46cc4874b", "score": "0.5139067", "text": "private void addEdges(){\n\tDefaultWeightedEdge edge = null;\n\tfor(Route route : routesRepository.findAll()) {\n String source = route.getSource().getId();\n String destination = route.getDestination().getId();\n if(!source.equals(destination)){\n\t\tedge = this.graph.addEdge(source, destination);\n }\n \n addWeight(edge, route.getDistance());\n\t}\n }", "title": "" }, { "docid": "1d94e8a68be63f1d36d28b2707382669", "score": "0.51290804", "text": "public void LoadRoutes (){\n //TODO\n }", "title": "" }, { "docid": "2a3ef86284daa36857d14f80a231447d", "score": "0.5123177", "text": "private void getRoutes() {\n\n }", "title": "" }, { "docid": "668eff0edc50e2d05628e2e69d402e67", "score": "0.5110407", "text": "private void initialize() {\n \t\n \tfor(Integer node : graph.getVertices()) {\n \t\tdistances.put(node, -1); \n \t\tparents.put(node, null); \n \t\t\n \t}\n \t\n Queue<Integer> q = new LinkedList<Integer>();\n distances.put(source, 0); \n q.add(source) ; \n \n \n while (!q.isEmpty()) {\n \t\n \tint u = q.remove(); \n \tfor(int v : graph.getAdjacencyList(u)) {\n \t\tif(distances.get(v) == -1) {\n \t\t\tdistances.put(v , distances.get(u) +1) ; \n \t\t\tparents.put(v, u); \n \t\t\tq.add(v); \n \t\t}\n \t\t\n \t\t\n \t}\n \t\n }\n \n }", "title": "" }, { "docid": "e26153fd0fc7b1d477c6811dd7f712b2", "score": "0.5096335", "text": "private void categories(RouteMeta routeMeta) {\n if (routeVerify(routeMeta)) {\n logger.info(\">>> Start categories ,group = \" + routeMeta.getGroup() + \",path = \" + routeMeta.getPath());\n Set<RouteMeta> routeMetas = groupMap.get(routeMeta.getGroup());\n if (CollectionUtils.isEmpty(routeMetas)) {\n Set<RouteMeta> routeMetasSet = new TreeSet<>(new Comparator<RouteMeta>() {\n @Override\n public int compare(RouteMeta r1, RouteMeta r2) {\n try {\n return r1.getPath().compareTo(r2.getPath());\n } catch (NullPointerException e) {\n logger.error(e.getMessage());\n return 0;\n }\n }\n });\n routeMetasSet.add(routeMeta);\n groupMap.put(routeMeta.getGroup(), routeMetasSet);\n } else {\n routeMetas.add(routeMeta);\n }\n\n } else {\n logger.warning(\">>> Route meta verity error ,group is \" + routeMeta.getGroup() + \" <<<\");\n }\n }", "title": "" }, { "docid": "5937ba2debaed3bd25ce51e3ea7338ce", "score": "0.5095728", "text": "@Override\n protected Void doInBackground(Void... params) {\n Realm realm = Realm.getInstance(context);\n activatedRoutes = realm.where(Route.class).equalTo(\"activated\", true).findAll();\n\n try {\n // pull segments and stops for routes that don't have them yet (recently added)\n realm.beginTransaction();\n for (int i = 0; i < activatedRoutes.size(); i++) {\n Route route = activatedRoutes.get(i);\n\n // if route has no segments\n if (route.getSegments().size() == 0) {\n // fetch them all\n String url = TransLocAPI2.segments(route.getAgencyId(), route.getRouteId());\n JsonObject response = Ion.with(context).load(url).setHeader(TransLocAPI2.API_KEY_HEADER, TransLocAPI2.API_KEY).asJsonObject().get();\n JSONObject re = new JSONObject(response.toString());\n Segment[] segments = TransLocAPI2.buildSegments(re);\n\n // and add them to the route\n for (Segment sm : segments)\n route.getSegments().add(sm);\n }\n\n // if route has no stops, fetch them all and add as relation to route\n if (route.getStops().size() == 0) {\n String url = TransLocAPI2.stops(route.getAgencyId());\n JsonObject response = Ion.with(context).load(url).setHeader(TransLocAPI2.API_KEY_HEADER, TransLocAPI2.API_KEY).asJsonObject().get();\n JSONObject re = new JSONObject(response.toString());\n Stop[] stops = TransLocAPI2.buildStops(re, route.getRouteId());\n\n for (Stop stop : stops)\n route.getStops().add(stop);\n }\n }\n realm.commitTransaction();\n\n // build segments and stop overlays\n buildSegments();\n buildStops();\n\n } catch (InterruptedException e) {\n // TODO: display an error\n this.cancel(true);\n return null;\n } catch (ExecutionException e) {\n // TODO: display an error\n this.cancel(true);\n return null;\n } catch (JSONException e) {\n // TODO: display an error\n this.cancel(true);\n return null;\n } finally {\n if (realm != null) {\n if (realm.isInTransaction())\n realm.cancelTransaction();\n realm.close();\n }\n }\n return null;\n }", "title": "" }, { "docid": "6dd0b9b42f21e4db3a6d4c1c6c8b4de5", "score": "0.5089343", "text": "ArrayList<Edge> initializeMaze() {\r\n HashMap<String, String> representatives = new HashMap<String, String>();\r\n ArrayList<Edge> edgesInTree = new ArrayList<Edge>();\r\n ArrayList<Edge> worklist = this.allEdges;\r\n // sort edges by weight\r\n MazeUtils.sort(worklist);\r\n // initialize the HashMap\r\n initRepresentatives(representatives, this.nodes);\r\n\r\n int nextIdx = 0;\r\n while (MazeUtils.moreThanOneTree(representatives)) {\r\n Edge next = worklist.get(nextIdx);\r\n if (MazeUtils.find(representatives, next.a.toString())\r\n .equals(MazeUtils.find(representatives, next.b.toString()))) {\r\n // dont do anything\r\n }\r\n else {\r\n edgesInTree.add(next);\r\n MazeUtils.union(representatives, MazeUtils.find(representatives, next.a.toString()),\r\n MazeUtils.find(representatives, next.b.toString()));\r\n }\r\n nextIdx++;\r\n }\r\n // connect the nodes in the selected edges\r\n for (Edge e : edgesInTree) {\r\n MazeUtils.connect(e);\r\n }\r\n return edgesInTree;\r\n }", "title": "" }, { "docid": "8ca1e46d4584a2f67350402aed903b89", "score": "0.5085982", "text": "private void greedy() {\n\n\t\twhile (!AlgorithmUtil.isAllDominated(dominatedMap)) {\n\t\t\tInteger v = GreedyDSUtil.chooseVertex(this.g, this.weightMap);\n\n\t\t\tAlgorithmUtil.addElementToList(dominatingSet, v);\n\t\t\tadjustWeight(v);\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "25660825439329fee49b4db1b5971616", "score": "0.5080765", "text": "protected void compute_all_MetaPaths_from_here(){\r\n\t\tfor (IP_Path path : this.paths.values())\r\n\t\t\tfor (MetaPath mp : new MetaPath(path).extend())\r\n\t\t\t\tif (this.multiMetaPaths.containsKey(mp.getDestination()))\r\n\t\t\t\t\tthis.multiMetaPaths.get(mp.getDestination()).add(mp);\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.multiMetaPaths.put((Router_OSPF) mp.getDestination(), new MultiMetaPath(mp));\r\n\t}", "title": "" }, { "docid": "c681ac233a2f8ae97ccaab0975074fe7", "score": "0.5067228", "text": "public void clearVisited() {\n\t\tfor(int areas=0;areas<getAreas();areas++) {\n\t\t\tfor (int x=0;x<getWidthInTiles();x++) {\n\t\t\t\tfor (int y=0;y<getHeightInTiles();y++) {\n\t\t\t\t\tvisited[areas][x][y] = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "924febe774e54698005a820fa15d685e", "score": "0.50660866", "text": "private void prepareFailTransitions() {\n\t\tQueue<State<O>> q = Lists.newLinkedList();\n\t\tfor (String rootOut : root.keys()) {\n\t\t\tState<O> state = root.get(rootOut);\n\t\t\tstate.setFail(root);\n\t\t\tq.add(state);\n\t\t}\n\t\tthis.prepareRoot();\n\t\twhile (!q.isEmpty()) {\n\t\t\tState<O> state = q.remove();\n\t\t\tString[] keys = state.keys();\n\t\t\tfor (String a : keys) {\n\t\t\t\tState<O> r = state;\n\t\t\t\tState<O> s = r.get(a);\n\t\t\t\tq.add(s);\n\t\t\t\tr = r.getFail();\n\t\t\t\twhile (r.get(a) == null)\n\t\t\t\t\tr = r.getFail();\n\t\t\t\ts.setFail(r.get(a));\n\t\t\t\ts.getOutputs().addAll(r.get(a).getOutputs());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6cf1d80dba1ae6e9368ff06071cc8f5b", "score": "0.5063914", "text": "private void ltorgSet()\n {\n int flag = 1;\n String[] temp = null;\n for(int i=0; i<littab.size(); i++)\n {\n if(littab.get(i).address == -1)\n {\n if(flag == 1)\n {\n pooltab.add(i+1);\n flag = 0;\n }\n littab.get(i).address = address;\n locationCounter.add(address);\n temp = littab.get(i).literal.split(\"'\");\n intermidiateCode.add(new IntermidiateCode(new OpCode(\"DL\", \"01\"), 0, new OpCode(\"C\", temp[1])));\n address++;\n }\n }\n assignValuesToLiterals = false;\n }", "title": "" }, { "docid": "bef033cc193fba078cfe45da1e52c7ff", "score": "0.5055574", "text": "public void addAllPaths(){\n int tries=0;\n int fails=0;\n int paths=0;\n int lim=grid.length*grid[0].length*10;\n ArrayList<Room>roomsToConnect=new ArrayList<Room>();\n for(int i=0;i<rooms.size();i++){\n roomsToConnect.add(rooms.get(i));\n }\n int x;\n int y;\n while(fails<lim&&roomsToConnect.size()>0){\n Room r=roomsToConnect.get(\n rng.nextInt(roomsToConnect.size()));\n int rint=rng.nextInt(4);\n int w=rng.nextInt(6)+2;\n int h=rng.nextInt(5)+2;\n int xi=rng.nextInt(3)-1;\n int yi=rng.nextInt(3)-1;\n while(tries<r.getWidth()*r.getHeight()*10){\n if(rint==0){\n x=r.getTLCX()+rng.nextInt(r.getWidth()-2)+1;\n y=r.getTLCY();\n yi=Floor.randFlip(rng);\n }\n else if(rint==1){\n x=r.getTLCX()+rng.nextInt(r.getWidth()-2)+1;\n y=r.getTLCY()+r.getHeight()-1;\n yi=Floor.randFlip(rng);\n }\n else if(rint==2){\n x=r.getTLCX();\n y=r.getTLCY()+rng.nextInt(r.getHeight()-2)+1;\n xi=Floor.randFlip(rng);\n }\n else{\n x=r.getTLCX()+r.getWidth()-1;\n y=r.getTLCY()+rng.nextInt(r.getHeight()-2)+1;\n xi=Floor.randFlip(rng);\n }\n if(!addPath(x,y,w,h,xi,yi)){\n tries++;\n }\n else{\n roomsToConnect.remove(r);\n tries=lim;\n paths++;\n fails=0;\n }\n }\n tries=0;\n fails++;\n }\n while(fails<lim&&paths<rooms.size()*3/2){\n Room r=rooms.get(\n rng.nextInt(rooms.size()));\n int rint=rng.nextInt(4);\n int w=rng.nextInt(6)+3;\n int h=rng.nextInt(5)+2;\n int xi=rng.nextInt(3)-1;\n int yi=rng.nextInt(3)-1;\n while(tries<r.getWidth()*r.getHeight()){\n if(rint==0){\n x=r.getTLCX()+rng.nextInt(r.getWidth()-2)+1;\n y=r.getTLCY();\n yi=Floor.randFlip(rng);\n }\n else if(rint==1){\n x=r.getTLCX()+rng.nextInt(r.getWidth()-2)+1;\n y=r.getTLCY()+r.getHeight()-1;\n yi=Floor.randFlip(rng);\n }\n else if(rint==2){\n x=r.getTLCX();\n y=r.getTLCY()+rng.nextInt(r.getHeight()-2)+1;\n xi=Floor.randFlip(rng);\n }\n else{\n x=r.getTLCX()+r.getWidth()-1;\n y=r.getTLCY()+rng.nextInt(r.getHeight()-2)+1;\n xi=Floor.randFlip(rng);\n }\n if(!addPath(x,y,w,h,xi,yi)){\n tries++;\n }\n else{\n tries=lim;\n paths++;\n fails=0;\n }\n }\n tries=0;\n fails++;\n }\n }", "title": "" }, { "docid": "c048ab7416f5769f83ce5a871ea05c26", "score": "0.50315756", "text": "private void traceRouteAndFillMapCache() {\n\t\t\t// we scan the routeItem list and center the map to each route point\n\t\t\tif (snapToLocation) {\n\t\t \t showToastOnUiThread(\"can not trace Route while snap to own ship is on\"); \n\t\t }else {\n\t\t\t\tint count = mRouteItemList.size();\n\t\t\t\tif (count > 2) {\n\t\t\t\t\t routePointIndex = 0;\n\t\t\t\t\t\tRoutePointItem aRouteItem = mRouteItemList.get(0);\n\t\t\t\t\t\tGeoPoint aPoint = aRouteItem.getPoint();\n\t\t\t\t\t\t//mArrayRoutePointsOverlay.setMustShowCenter(true); 13_03_12\n\t\t\t\t\t\t//mArrayRoutePointsOverlay.requestRedraw();\n\t\t\t\t\t\t\n\t\t\t\t\t\tmItemizedOverlay.setMustShowCenter(true);\n\t\t\t\t\t\tmItemizedOverlay.requestRedraw();\n\t\t\t\t\t\tmCenterMapToSelectedRoutePointHandler.postDelayed(centerMapToSelectedRoutePointRunnable,100); \n\t\t\t\t}\n\t\t }\n\t\t}", "title": "" }, { "docid": "d82d12c8a7b8b9bf7c6bcdd2878d347d", "score": "0.5025332", "text": "public void collect() {\n\t\tIterator<ObjectNode> iter = _sets.iterator();\n\t\twhile(iter.hasNext()){\n\t\t\tObjectNode node = iter.next();\n\t\t\titer.remove();\n\t\t\tnode.collectWhite();\n\t\t}\n\t}", "title": "" }, { "docid": "b639782d97200903fc3e639e87f2294c", "score": "0.5013835", "text": "public void setVisited(){\r\n\t\t_visited = true;\r\n\t}", "title": "" }, { "docid": "c93f05bee2f42b13a737396721e879b9", "score": "0.5013486", "text": "static void calculatePath(Hashtable<Integer, Node> nodes, int start, int end, ArrayList<Attribute> att){\n ArrayList<Integer> settled = new ArrayList<>();\n ArrayList<Integer> unsettled = new ArrayList<>();\n path = new ArrayList<>();\n Enumeration<Integer> keys = nodes.keys();\n int k;\n while(keys.hasMoreElements()) {\n k=keys.nextElement();\n Node node = nodes.get(k);\n node.d = Integer.MAX_VALUE; //Distance de chaque point à partir du point de départ est \"infinie\"\n }\n\n nodes.get(start).d=0;\n unsettled.add(start); //seul point à considérer au début est le point de départ\n while(!unsettled.isEmpty()){\n int eval = unsettled.get(minimum(nodes, unsettled)); //point à considérer est le point le plus près du départ (avec le plus petit d)\n unsettled.remove(minimum(nodes, unsettled)); //lorsqu'un point a été considéré, on ne veut plus le revisiter donc on l'enlève de la liste unsettled\n settled.add(eval); //puis on le met dans settled\n Node evaluation = nodes.get(eval);\n for (int i=0; i<evaluation.neighbour.size(); i++) { //on passe au travers de tous les voisins du point considéré\n Node neighbour = nodes.get(evaluation.neighbour.get(i));\n if((!att.contains(evaluation.att[0])&&!att.contains(evaluation.att[1]))||(!att.contains(neighbour.att[0])&&!att.contains(neighbour.att[1])))\n if (neighbour.att[0] != Attribute.BUILDING && neighbour.att[1] != Attribute.BUILDING || neighbour.n==end) {\n if(MapsActivity.warmest){\n if (!settled.contains(neighbour.n)) {\n if (evaluation.building == Build.OUT || neighbour.building == Build.OUT && (evaluation.d + evaluation.distance.get(i) < neighbour.d) &&(evaluation.d + evaluation.distance.get(i) < nodes.get(end).d)){\n if ((att.contains(neighbour.att[0]) || att.contains(neighbour.att[1])) && (att.contains(evaluation.att[0]) || att.contains(evaluation.att[1]))) {\n neighbour.d = Integer.MAX_VALUE;\n } else {\n neighbour.d = evaluation.d + evaluation.distance.get(i);//changer la distance du voisin pour la nouvelle dist\n neighbour.last = eval; //le point précédent au voisin dans le trajet le plus court est le point considéré\n if (!unsettled.contains(neighbour.n)) //si le voisin n'est pas déjà dans unsettled, ajoute le\n unsettled.add(neighbour.n);\n }\n } else if (evaluation.building != Build.OUT && neighbour.building != Build.OUT && (evaluation.d < neighbour.d) && (evaluation.d < nodes.get(end).d)){\n if ((att.contains(neighbour.att[0]) || att.contains(neighbour.att[1])) && (att.contains(evaluation.att[0]) || att.contains(evaluation.att[1]))) {\n neighbour.d = Integer.MAX_VALUE;\n } else {\n neighbour.d = evaluation.d;//changer la distance du voisin pour la nouvelle dist\n neighbour.last = eval; //le point précédent au voisin dans le trajet le plus court est le point considéré\n if (!unsettled.contains(neighbour.n)) //si le voisin n'est pas déjà dans unsettled, ajoute le\n unsettled.add(neighbour.n);\n }\n }\n }\n } else {\n if ((!settled.contains(neighbour.n)) && //si point n'a pas été déjà visité\n (evaluation.d + evaluation.distance.get(i) < neighbour.d) && //si distance (d) du voisin est plus grande\n (evaluation.d + evaluation.distance.get(i) < nodes.get(end).d)) { //et si cette dernière distance est plus petite que la plus petite\n //distance calculée à date au point d'arrivé\n if ((att.contains(neighbour.att[0]) || att.contains(neighbour.att[1])) && (att.contains(evaluation.att[0]) || att.contains(evaluation.att[1]))) {\n neighbour.d = Integer.MAX_VALUE;\n } else {\n neighbour.d = evaluation.d + evaluation.distance.get(i);//changer la distance du voisin pour la nouvelle dist\n neighbour.last = eval; //le point précédent au voisin dans le trajet le plus court est le point considéré\n if (!unsettled.contains(neighbour.n)) //si le voisin n'est pas déjà dans unsettled, ajoute le\n unsettled.add(neighbour.n);\n }\n }\n }\n }\n }\n }\n path.add(end);\n int i=0;\n while (nodes.get(path.get(i)).last!=start){ //pour déterminer le trajet, en commenceant avec le point d'arrivé, prendre le dernier point qui donne le trajet le plus court\n //au point\n path.add(nodes.get(path.get(i)).last);\n i++;\n }\n path.add(start);\n path = reverse(path);\n\n pathBuildings = new ArrayList<>();\n pathFloors = new ArrayList<>();\n Node yeet;\n for (int j=0; j<path.size(); j++) {\n yeet = nodes.get(path.get(j));\n if(pathBuildings.isEmpty()||pathBuildings.get(pathBuildings.size()-1)!=yeet.building||pathFloors.get(pathFloors.size()-1)!=yeet.floor) {\n pathBuildings.add(yeet.building);\n pathFloors.add(yeet.floor);\n }\n }\n }", "title": "" }, { "docid": "43c97540e29f9583a2eb8b9d104011b1", "score": "0.50132835", "text": "public void dfsOptimized(State startState, Set<State> visitedStates) {\n visitedStates.add(startState);\n nrOfStatesChecked++;\n\n // we found a solution state\n // add this path to the forbidden paths\n // add this state to oneGoStates\n // from these one go states we can get the previous states that led to the end state\n if (isGoalState(startState) && !oneGoPaths.contains(startState.getPath())) {\n oneGoPaths.add(startState.getPath());\n oneGoStates.add(startState);\n } else {\n List<State> neighbourStatesNodeOne = this.getNeighbourStates(startState, true);\n\n for (State neighbourState : neighbourStatesNodeOne) {\n neighbourState.appendPath(startState);\n if (!visitedStates.contains(neighbourState)) {\n this.dfsOptimized(neighbourState, visitedStates);\n }\n }\n\n List<State> neighbourStatesNodeTwo = this.getNeighbourStates(startState, false);\n\n for (State neighbourState : neighbourStatesNodeTwo) {\n neighbourState.appendPath(startState);\n if (!visitedStates.contains(neighbourState)) {\n this.dfsOptimized(neighbourState, visitedStates);\n }\n }\n }\n\n // we need to add this because a branch of a path might lead to a valid solution\n // else we would never go back to try this branch\n visitedStates.remove(startState);\n }", "title": "" }, { "docid": "f5ea4c70615c78ee66103636c54c06dd", "score": "0.5008461", "text": "public static void DFS(HashMap<Integer, ArrayList<Integer>> gra, LinkedList res, int[] visited, ArrayList path, int node, HashSet<Integer> set){\n// System.out.println(\"现在起点是\"+start);\n\n if(!gra.containsKey(node)){\n return;\n }\n //其他轮开启的已经遍历过node,跳过该点\n// if(visited[node] == -1){\n// return;\n// }\n\n if (visited[node]==1){\n if(set.contains(node)){\n// 截取path中上一次node点位置到最后,得到新的环加入res\n res.add(new ArrayList<>(path.subList(path.indexOf(node),path.size())));\n// System.out.println(\"现在环数 :\" + outCycle++);\n }\n return;\n }\n\n //本轮开启遍历过设置为1\n visited[node] = 1;\n set.add(node);\n\n path.add(node);\n\n //it是node的邻点开头\n ArrayList<Integer> temp = gra.get(node);\n\n for(int i =0 ;i<temp.size();i++){\n\n DFS(gra, res, visited, path, (int)temp.get(i), set);\n\n //删掉已遍历过的有向边\n gra.get(node).remove((int)i);\n }\n path.remove(path.size() - 1);\n set.remove(node);\n //其他轮开启的已经遍历过设置为-1\n visited[node] = 0;\n\n }", "title": "" }, { "docid": "4193fcca418c44a23607189055d65b1e", "score": "0.50038767", "text": "private void cachePathways() {\n if (geneticElements == null) {\r\n cacheGeneticElements();\r\n }\r\n int totalGenes = 0;\r\n pathways = new HashMap<Integer, ResultElement>();\r\n String query = \"SELECT p.pathway_id, p.svg_identifier, p.display_name, ge.genetic_element_id, biocarta_symbol \" +\r\n \"from pathway p, biocarta_gene_pathway bgp, biocarta_gene bg, gene g, L4_genetic_element ge \" +\r\n \"where g.gene_id=bg.gene_id and bg.biocarta_gene_id=bgp.biocarta_gene_id and \" +\r\n \"bgp.pathway_id=p.pathway_id and g.entrez_symbol=ge.genetic_element_name order by p.pathway_id\";\r\n getJdbcTemplate().query(query, new RowCallbackHandler() {\r\n public void processRow(final ResultSet resultSet) throws SQLException {\r\n int pathwayId = resultSet.getInt(\"pathway_id\");\r\n ResultElement pathway = pathways.get(pathwayId);\r\n if (pathway == null) {\r\n pathway = new ResultElement();\r\n pathway.id = pathwayId;\r\n pathway.name = resultSet.getString(\"display_name\");\r\n pathway.annotations.put(\"svg_identifier\", resultSet.getString(\"svg_identifier\"));\r\n pathways.put(pathwayId, pathway);\r\n }\r\n // add gene to pathway\r\n int geId = resultSet.getInt(\"genetic_element_id\");\r\n ResultElement gene = getGeneticElement(geId);\r\n if (gene != null) {\r\n gene.annotations.put(AnomalySearchConstants.ROWANNOTATIONKEY_BCGENE, resultSet.getString(\"biocarta_symbol\"));\r\n pathway.children.put(geId, gene);\r\n } else {\r\n // why does this happen???\r\n System.out.println(\"!!! Gene for pathway not found in genetic element cache! Id = \" + resultSet.getInt(\"genetic_element_id\"));\r\n }\r\n }\r\n });\r\n\r\n // now count the total genes in all pathways, and save this number for use in pathway search\r\n for (ResultElement pathway : pathways.values()) {\r\n totalGenes += pathway.children.size();\r\n }\r\n totalPathwayGenes = totalGenes;\r\n }", "title": "" }, { "docid": "77ad43fa00c43d1bfb43f9770adab484", "score": "0.500355", "text": "private void updateInternalNodes(WildcardPattern wp) throws WildcardPattern.InvalidWildCardValue {\n wp = wp.clone();\n while (canGoUp(wp)) {\n wp.goUp();\n internalNodes.get(wp).computeInternalCommonSet();\n }\n }", "title": "" }, { "docid": "66c6580ce6fb661be84c63613388ca34", "score": "0.49967566", "text": "private void initializePopulation()\n {\n population.clear();\n Random rand = new Random();\n for (int i = 0; i < populationSize; i++)\n {\n Graph newGraph = deepGraphCopy();\n \n for (Vertex neighbor : newGraph.theGraph.values())\n {\n int randColor = rand.nextInt(maxColors);\n neighbor.color = randColor; \n }\n \n population.add(newGraph); \n }\n }", "title": "" }, { "docid": "d628bd38578220457d31e7ecfb8a927d", "score": "0.4995055", "text": "private void initTraversalGraph() {\n for(int i = -1 ; i >= (-1*rectangles.size()); i--) {\n HashSet<Integer> neighbours = rectangleNeighbours(i);\n traversalGraph.put(i, neighbours);\n }\n for (Object o : traversalGraph.entrySet()) {\n Map.Entry pair = (Map.Entry) o;\n System.out.println(pair.getKey() + \" = \" + pair.getValue());\n }\n }", "title": "" }, { "docid": "fcce43903bf0a9303095652fd0a2991a", "score": "0.49876404", "text": "public void resetVisit(){\n this.visited = false;\n }", "title": "" }, { "docid": "59f92cf548c37cc8ddfda94606b64536", "score": "0.498189", "text": "void BFS() {\n\t\t// Mark all the vertices as not visited(set as\n\t\t// false by default in java)\n\t\tboolean visited[] = new boolean[V];\n\t\t// just for covering disconnected components\n\t\tfor (int i = 0; i < V; ++i)\n\t\t\tif (visited[i] == false)\n\t\t\t\tBFSUtil(i, visited);\n\t}", "title": "" }, { "docid": "4675183acdcab567ba9cb3925610f745", "score": "0.49804446", "text": "public void fillMazeWithRandomPaths() {\r\n\t\twhile(stillEmptySpaceInMaze()) {\r\n\t\t\tmakeRandomPaths();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ff588e654494ae9d7526d4c93eee265c", "score": "0.4980238", "text": "private void initializeBranches(){\n\t\tfor(POI p : POI.getPoi_population()){\n\t\t\tbest_in_branch.put(p.node_id, new ArrayList<ArrayList<POI>>());\n\t\t}for(POI p : POI.getPoi_population()){\n\t\t\tif(best_in_branch.get(p.node_id)==null){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7b6ed62988ab8691b77894df5f9a660b", "score": "0.49692634", "text": "synchronized private void updateRoutingInfo(String domain,\n Set<String> cells)\n {\n Set<String> oldCells = _domains.get(domain);\n if (oldCells == null) {\n oldCells = Collections.emptySet();\n }\n \n for (String cell: cells) {\n if (!_localExports.contains(cell) && !oldCells.remove(cell)) {\n // entry not found, so make it\n if (!cell.startsWith(\"@\")) {\n _log.info(\"Adding: \" + cell);\n try {\n _nucleus.routeAdd(createWellKnownRoute(cell, domain));\n } catch (IllegalArgumentException e) {\n _log.error(\"Could not add wellknown route: \" + e);\n }\n }\n }\n }\n \n // all new routes added now, need to remove the rest\n for (String cell: oldCells) {\n if (!cell.startsWith(\"@\")) {\n _log.info(\"Removing: \" + cell);\n try {\n _nucleus.routeDelete(createWellKnownRoute(cell, domain));\n } catch (IllegalArgumentException e) {\n _log.warn(\"Could not delete wellknown route: \" + e);\n }\n }\n }\n _domains.put(domain, cells);\n }", "title": "" }, { "docid": "08e1d04effb9721b5d2f83b402f759cb", "score": "0.49628958", "text": "public void setShipsLocations() {\n\n int attempts = 0;\n boolean notSetuped = true;\n\n while (notSetuped) {\n for (Ship shipToSet : shipList) {\n ArrayList<Cell> coords = new ArrayList<>();\n\n boolean success = false;\n\n int cardinalDirection = 1 + (int) (Math.random() * 4);\n\n while (!success) {\n attempts++;\n if (attempts > 9000) break;\n int row = (int) (Math.random() * Values.squareGridSize);\n int column = (int) (Math.random() * Values.squareGridSize);//получаем случайную стартовую точку\n\n\n success = true;\n while (success && coords.size() < shipToSet.getSize()) {\n\n if (!areShipsNear(row, column)) {\n\n switch (cardinalDirection) {\n case 1 -> coords.add(getGrid()[row--][column]);\n case 2 -> coords.add(getGrid()[row++][column]);\n case 3 -> coords.add(getGrid()[row][column++]);\n case 4 -> coords.add(getGrid()[row][column--]);\n }\n\n if (row >= getGrid().length || column >= getGrid().length || row < 0 || column < 0) {\n coords.clear();\n success = false;\n }\n\n } else {\n coords.clear();\n success = false;\n }\n }\n\n }\n\n shipToSet.setLocationCells(coords);\n\n for (Cell cell : shipToSet.getLocationCells()) {\n getGrid()[cell.row()][cell.col()] = cell;\n }\n\n\n }\n\n if (attempts > 9000) {\n attempts = 0;\n\n for (Ship ship : shipList) {\n ship.setLocationCells(new ArrayList<>());\n }\n\n for (int i = 0; i < getGrid().length; i++) {\n for (int j = 0; j < getGrid()[i].length; j++) {\n getGrid()[i][j] = new Cell(getGrid()[i][j].row(), getGrid()[i][j].col());\n }\n }\n\n } else notSetuped = false;\n }\n }", "title": "" }, { "docid": "d7e7ff588b7fa4f405365b4fc1384dae", "score": "0.49583477", "text": "@Test\n public void insertWithLanes1Item() {\n MockOrderedContentMirrorStoreStrategy store = new MockOrderedContentMirrorStoreStrategy();\n NodeBuilder index = EmptyNodeState.EMPTY_NODE.builder();\n String n0 = KEYS[0];\n \n \n /*\n * with lane==0\n * \n * :index : {\n * :start : { :next = [n0, , , ] },\n * n0 : { :next = [ , , , ] }\n * }\n */\n store.setLane(0);\n store.update(index, \"/a/b\", EMPTY_KEY_SET, newHashSet(n0));\n \n NodeBuilder n = index.getChildNode(START);\n assertNotNull(\"There should always be a :start\", n);\n assertEquals(\":start's :next should always point to the first element\", \n ImmutableList.of(n0),\n n.getProperty(NEXT).getValue(Type.STRINGS)\n );\n n = index.getChildNode(n0);\n assertNotNull(n);\n assertEquals(ImmutableList.of(),\n n.getProperty(NEXT).getValue(Type.STRINGS)\n );\n \n /*\n * with lane==1\n * \n * :index : {\n * :start : { :next = [n0, n0, , ] },\n * n0 : { :next = [ , , , ] }\n * }\n */\n index = EmptyNodeState.EMPTY_NODE.builder();\n store.setLane(1);\n store.update(index, \"/a/b\", EMPTY_KEY_SET, newHashSet(n0));\n \n n = index.getChildNode(START);\n assertNotNull(\"There should always be a :start\", n);\n assertEquals(\":start's :next should always point to the first element\", \n ImmutableList.of(n0, n0),\n n.getProperty(NEXT).getValue(Type.STRINGS)\n );\n n = index.getChildNode(n0);\n assertNotNull(n);\n assertEquals(ImmutableList.of(),\n n.getProperty(NEXT).getValue(Type.STRINGS)\n );\n\n /*\n * with lane==2\n * \n * :index : {\n * :start : { :next = [n0, n0, n0, ] },\n * n0 : { :next = [ , , , ] }\n * }\n */\n index = EmptyNodeState.EMPTY_NODE.builder();\n store.setLane(2);\n store.update(index, \"/a/b\", EMPTY_KEY_SET, newHashSet(n0));\n \n n = index.getChildNode(START);\n assertNotNull(\"There should always be a :start\", n);\n assertEquals(\":start's :next should always point to the first element\", \n ImmutableList.of(n0, n0, n0),\n n.getProperty(NEXT).getValue(Type.STRINGS)\n );\n n = index.getChildNode(n0);\n assertNotNull(n);\n assertEquals(ImmutableList.of(),\n n.getProperty(NEXT).getValue(Type.STRINGS)\n );\n \n /*\n * with lane==3\n * \n * :index : {\n * :start : { :next = [n0, n0, n0, n0 ] },\n * n0 : { :next = [ , , , ] }\n * }\n */\n index = EmptyNodeState.EMPTY_NODE.builder();\n store.setLane(3);\n store.update(index, \"/a/b\", EMPTY_KEY_SET, newHashSet(n0));\n \n n = index.getChildNode(START);\n assertNotNull(\"There should always be a :start\", n);\n assertEquals(\":start's :next should always point to the first element\", \n ImmutableList.of(n0, n0, n0, n0),\n n.getProperty(NEXT).getValue(Type.STRINGS)\n );\n n = index.getChildNode(n0);\n assertNotNull(n);\n assertEquals(ImmutableList.of(),\n n.getProperty(NEXT).getValue(Type.STRINGS)\n );\n }", "title": "" }, { "docid": "894c7bc64976ae8d5102a13fc8e8c025", "score": "0.49542397", "text": "private static ArrayList<ArrayList<StatePlusTransition>> getStateSetsOfARegion(\n final State state) {\n ArrayList<ArrayList<StatePlusTransition>> out = new ArrayList<ArrayList<StatePlusTransition>>();\n // initialize states sorted by depth-first search\n ArrayList<State> statesSortedByDepth = new ArrayList<State>();\n ArrayList<State> notPut = new ArrayList<State>();\n for (int i = 0; i < state.getParentRegion().getStates().size(); i++) {\n notPut.add(state.getParentRegion().getStates().get(i));\n }\n getStatesSortedByDepth(state, statesSortedByDepth, notPut);\n\n while (!statesSortedByDepth.isEmpty()) {\n State startState = statesSortedByDepth.get(0);\n ArrayList<StatePlusTransition> innerSptList = new ArrayList<StatePlusTransition>();\n addSptsToList(startState, innerSptList);\n out.add(innerSptList);\n findPrioritySets(startState, innerSptList, statesSortedByDepth);\n }\n return out;\n }", "title": "" }, { "docid": "47127eb46c4fb7dd6ccfdd9b9f4ab446", "score": "0.49501163", "text": "private void preformSuccessiveLinking() {\n HeapNode[] buckets = this.toBuckets();\n this.fromBuckets(buckets);\n }", "title": "" }, { "docid": "a6ed88b6e616dabe7f8832eea6e18b81", "score": "0.49500975", "text": "private static void conccurentCollections() {\n\t}", "title": "" }, { "docid": "91672eeb015fd6a449125f3d72a49e9b", "score": "0.49470207", "text": "private void initDijkstra() {\n\n\t\tQ = new ArrayList<Node>();\n\t\tS = new Stack<Node>();\n\t\t\n\t\tfor (Node n: nodes) {\n\t\t\tif (n.getId().equals(source)) {\n\t\t\t\tu = n;\n\t\t\t\tu.setDistance(0);\n\t\t\t\tu.setFrom(null);\n\t\t\t\tQ.add(n);\n\t\t\t} else {\n\t\t\t\tif (n.isVisible()) {\n\t\t\t\t\tQ.add(n);\n\t\t\t\t\tn.setDistance(INF);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c9792ee9dd86a92121711dc7fa48ff2b", "score": "0.49371946", "text": "private void reset() {\n this.remainingCities = new ArrayList<>();\n this.heap = new MinHeap();\n this.distances = new int[cityList.size()];\n this.precedingCities = new int[cityList.size()];\n\n // Each Vertex has\n // Set Distance to Infinity\n // Set Preceding City to Undefined\n for (int i = 1; i < cityList.size() + 1; i++) {\n remainingCities.add(i);\n distances[i - 1] = Integer.MAX_VALUE;\n precedingCities[i - 1] = Integer.MIN_VALUE;\n }\n }", "title": "" }, { "docid": "73bb6f045493d9447806f0ef066fa300", "score": "0.49332148", "text": "public void findPath(ArrayList<Integer> playercountries, int curcou, int descou) {\n \tSystem.out.println();\n System.out.println(\"The current country \" + curcou);\n System.out.println(\"The destination country \" + descou);\n ArrayList<Integer> tempadjacent = new ArrayList<Integer>();\n tempadjacent.addAll(adj_map_num.get(curcou));\n // System.out.println(\"this is temp ADJ \" + tempadjacent);\n\n\n for (int i = 0; i < tempadjacent.size(); i++) {\n if (visited[tempadjacent.get(i)] == false && playercountries.contains(tempadjacent.get(i))) {\n //System.out.println(\"this is temp.get \" + tempadjacent.get(i));\n visited[tempadjacent.get(i)] = true;\n path.add(tempadjacent.get(i));\n System.out.println(\"The path till now: \" + path);\n if (tempadjacent.get(i) == descou) {\n System.out.println(\"BREAKED\");\n flagFindPath = true;\n break;\n } else {\n findPath(playercountries, tempadjacent.get(i), descou);\n //System.out.println(\"***** Before pop \" + path);\n if (path.size() != 0)\n path.remove(path.size() - 1);\n // System.out.println(\"***** After pop \" + path);\n }\n }\n }\n }", "title": "" }, { "docid": "b7b1fcf626e203447a138dc80fd01403", "score": "0.49330705", "text": "@Test \n public void laneInsert2ItemsAlreadyOrdere() {\n MockOrderedContentMirrorStoreStrategy store = new MockOrderedContentMirrorStoreStrategy();\n NodeBuilder index = null;\n NodeBuilder n = null;\n String n0 = KEYS[0];\n String n1 = KEYS[1];\n \n // this one should be covered by insertWithLanes1Item(). Not testing\n \n /* \n * if lane is 0 we're expecting the following\n * \n * :index : {\n * :start : { :next : [n0, , , ] },\n * n0 : { :next : [n1, , , ] }\n * n1 : { :next : [ , , , ] }\n * }\n */\n index = EmptyNodeState.EMPTY_NODE.builder();\n store.setLane(0);\n store.update(index, \"/a/b\", EMPTY_KEY_SET, newHashSet(n0));\n store.update(index, \"/a/b\", EMPTY_KEY_SET, newHashSet(n1));\n printSkipList(index.getNodeState());\n n = index.getChildNode(START); \n assertNotNull(n);\n assertNotNull(n.getProperty(NEXT));\n assertEquals(ImmutableList.of(n0), n.getProperty(NEXT).getValue(Type.STRINGS));\n \n n = index.getChildNode(n0); \n assertNotNull(n);\n assertNotNull(n.getProperty(NEXT));\n assertEquals(ImmutableList.of(n1), n.getProperty(NEXT).getValue(Type.STRINGS));\n \n n = index.getChildNode(n1); \n assertNotNull(n);\n assertNotNull(n.getProperty(NEXT));\n assertEquals(ImmutableList.of(),\n n.getProperty(NEXT).getValue(Type.STRINGS));\n\n /* \n * if lane == 1 on n1 insert\n * \n * :index : {\n * :start : { :next : [n0, n1, , ] },\n * n0 : { :next : [n1, , , ] }\n * n1 : { :next : [ , , , ] }\n * }\n */\n index = EmptyNodeState.EMPTY_NODE.builder();\n store.setLane(0);\n store.update(index, \"/a/b\", EMPTY_KEY_SET, newHashSet(n0));\n store.setLane(1);\n store.update(index, \"/a/b\", EMPTY_KEY_SET, newHashSet(n1));\n printSkipList(index.getNodeState());\n n = index.getChildNode(START); \n assertNotNull(n);\n assertNotNull(n.getProperty(NEXT));\n assertEquals(ImmutableList.of(n0, n1), n.getProperty(NEXT).getValue(Type.STRINGS));\n \n n = index.getChildNode(n0); \n assertNotNull(n);\n assertNotNull(n.getProperty(NEXT));\n assertEquals(ImmutableList.of(n1), n.getProperty(NEXT).getValue(Type.STRINGS));\n \n n = index.getChildNode(n1); \n assertNotNull(n);\n assertNotNull(n.getProperty(NEXT));\n assertEquals(ImmutableList.of(),\n n.getProperty(NEXT).getValue(Type.STRINGS));\n }", "title": "" }, { "docid": "624ec6615a0fe4442d318b1586596891", "score": "0.4930796", "text": "private void loadIndirectMatches(){\n for(int currentPos = 0; currentPos < unMatchedPositions.length; currentPos++){\n if(!unMatchedPositions[currentPos]){\n Helper.exceptionList.add(Arrays.toString(this.src));\n char[] nextWord = Helper.loopAlphabets(src,currentPos);\n if (nextWord != null && !Helper.exceptionList.contains(Arrays.toString(nextWord))){\n nextPossibleNode.add(new Node(nextWord,this));\n }\n }\n }\n\n }", "title": "" }, { "docid": "df34a4602cdc619816839ef1f084c00a", "score": "0.493055", "text": "private void constructTrees() {\n\t\tfinal HashMap<Integer, Integer> minDis = new HashMap<Integer, Integer>();\r\n\t\tint maxId = 0;\r\n\t\tfor (final Variable v : this.view.varMap.values()) {\r\n\t\t\tif (v.id > maxId) {\r\n\t\t\t\tmaxId = v.id;\r\n\t\t\t}\r\n\t\t}\r\n\t\tmaxId++;\r\n\t\tfor (final Variable v : this.view.varMap.values()) {\r\n\t\t\tif (v.fixed) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tfinal ArrayList<Variable> queue = new ArrayList<Variable>();\r\n\t\t\tqueue.add(v);\r\n\t\t\tminDis.put(v.id * maxId + v.id, 0);\r\n\t\t\tfinal HashSet<Integer> visited = new HashSet<Integer>();\r\n\t\t\tvisited.add(v.id);\r\n\t\t\twhile (!queue.isEmpty()) {\r\n\t\t\t\tfinal Variable var = queue.remove(0);\r\n\t\t\t\tfor (final Constraint c : var.neighbors) {\r\n\t\t\t\t\tfinal Variable n = c.getNeighbor(var);\r\n\t\t\t\t\tif (n.fixed) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!visited.contains(n.id)) {\r\n\t\t\t\t\t\tqueue.add(n);\r\n\t\t\t\t\t\tfinal int depth = minDis.get(v.id * maxId + var.id);\r\n\t\t\t\t\t\tvisited.add(n.id);\r\n\t\t\t\t\t\tminDis.put(v.id * maxId + n.id, depth + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfinal HashSet<Integer> pSet = new HashSet<Integer>();\r\n\t\tfinal HashSet<Integer> cSet = new HashSet<Integer>();\r\n\t\tfor (final Constraint c : this.self.neighbors) {\r\n\t\t\tfinal Variable n = c.getNeighbor(this.self);\r\n\t\t\tif (!n.fixed) {\r\n\t\t\t\tcSet.add(n.id);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.enumerate(pSet, cSet, minDis, maxId);\r\n\t}", "title": "" }, { "docid": "4d354031ca9b897c5b91de5decde0044", "score": "0.49288166", "text": "private void prepareWays() {\n\t\tint worldWidth = world[0].length;\n\t\tint worldHeight = world.length;\n\t\tboolean neighbours[] = new boolean[4];\n\t\t\n\t\tfor(int h = 0; h < worldWidth; h++){\n\t\t\tfor(int w = 0; w < worldHeight; w++) {\n\t\t\t\t\n\t\t\t\t//First set the neighbours to false\n\t\t\t\tneighbours[NORTH] = neighbours[EAST] = neighbours[SOUTH] = neighbours[WEST] = false;\n\t\t\t\t\n\t\t\t\t//Check the neighbours\n\t\t\t\tif(world[w][h].getType() == MapTile.TYPE_STREET && !world[w][h].isStart() && !world[w][h].isExit()) {\n\t\t\t\t\tif(w > 0 \t\t\t\t&& world[w-1][h].getType() == MapTile.TYPE_STREET) neighbours[WEST] = true; \n\t\t\t\t\tif(w < (worldWidth-1) \t&& world[w+1][h].getType() == MapTile.TYPE_STREET) neighbours[EAST] = true; \n\t\t\t\t\tif(h > 0 \t\t\t\t&& world[w][h-1].getType() == MapTile.TYPE_STREET) neighbours[NORTH] = true; \n\t\t\t\t\tif(h < (worldHeight-1) \t&& world[w][h+1].getType() == MapTile.TYPE_STREET) neighbours[SOUTH] = true; \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Remove double streets\n\t\t\t\t/* #=Street o=other or street\n\t\t\t\t * o##\n\t\t\t\t * o?#\n\t\t\t\t * ooo\n\t\t\t\t */\n\t\t\t\tif(neighbours[NORTH] && neighbours[EAST] && !neighbours[WEST] && !neighbours[SOUTH] && world[w+1][h-1].getType() == MapTile.TYPE_STREET) {\n\t\t\t\t\tworld[w][h] = new MapTile(getLvl1TextureRegion(), w, h, MapTile.TYPE_LVL1, this.debugRenderer);\n\t\t\t\t/* #=Street o=other or street\n\t\t\t\t * ##o\n\t\t\t\t * #?o\n\t\t\t\t * ooo\n\t\t\t\t */\n\t\t\t\t}else if(neighbours[NORTH] && !neighbours[EAST] && neighbours[WEST] && !neighbours[SOUTH] && world[w-1][h-1].getType() == MapTile.TYPE_STREET) {\n\t\t\t\t\tworld[w][h] = new MapTile(getLvl1TextureRegion(), w, h, MapTile.TYPE_LVL1, this.debugRenderer);\n\t\t\t\t/* #=Street o=other or street\n\t\t\t\t * ooo\n\t\t\t\t * #?o\n\t\t\t\t * ##o\n\t\t\t\t */\n\t\t\t\t}else if(!neighbours[NORTH] && !neighbours[EAST] && neighbours[WEST] && neighbours[SOUTH] && world[w-1][h+1].getType() == MapTile.TYPE_STREET) {\n\t\t\t\t\tworld[w][h] = new MapTile(getLvl1TextureRegion(), w, h, MapTile.TYPE_LVL1, this.debugRenderer);\n\t\t\t\t/* #=Street o=other or street\n\t\t\t\t * ooo\n\t\t\t\t * o?#\n\t\t\t\t * o##\n\t\t\t\t */\n\t\t\t\t}else if(!neighbours[NORTH] && neighbours[EAST] && !neighbours[WEST] && neighbours[SOUTH] && world[w+1][h+1].getType() == MapTile.TYPE_STREET) {\n\t\t\t\t\tworld[w][h] = new MapTile(getLvl1TextureRegion(), w, h, MapTile.TYPE_LVL1, this.debugRenderer);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int h = 0; h < worldWidth; h++){\n\t\t\tfor(int w = 0; w < worldHeight; w++) {\n\t\t\t\t\n\t\t\t\t//First set the neighbours to false\n\t\t\t\tneighbours[NORTH] = neighbours[EAST] = neighbours[SOUTH] = neighbours[WEST] = false;\n\t\t\t\t\n\t\t\t\t//Check the neighbours\n\t\t\t\tif(world[w][h].getType() == MapTile.TYPE_STREET && !world[w][h].isStart() && !world[w][h].isExit()) {\n\t\t\t\t\tif(w > 0 \t\t\t\t&& world[w-1][h].getType() == MapTile.TYPE_STREET) neighbours[WEST] = true; \n\t\t\t\t\tif(w < (worldWidth-1) \t&& world[w+1][h].getType() == MapTile.TYPE_STREET) neighbours[EAST] = true; \n\t\t\t\t\tif(h > 0 \t\t\t\t&& world[w][h-1].getType() == MapTile.TYPE_STREET) neighbours[NORTH] = true; \n\t\t\t\t\tif(h < (worldHeight-1) \t&& world[w][h+1].getType() == MapTile.TYPE_STREET) neighbours[SOUTH] = true; \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(neighbours[NORTH] && neighbours[SOUTH] && neighbours[WEST] && neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][3], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t}else if(neighbours[NORTH] && neighbours[SOUTH] && !neighbours[WEST] && !neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][0], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t\tworld[w][h].rotate(90);\n\t\t\t\t\tworld[w][h].translate(128, -1);\n\t\t\t\t}else if(!neighbours[NORTH] && neighbours[SOUTH] && neighbours[WEST] && neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][2], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t}else if(neighbours[NORTH] && !neighbours[SOUTH] && neighbours[WEST] && neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][2], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t\tworld[w][h].rotate(180);\n\t\t\t\t\tworld[w][h].translate(129, 127);\n\t\t\t\t}else if(neighbours[NORTH] && neighbours[SOUTH] && !neighbours[WEST] && neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][2], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t\tworld[w][h].rotate(90);\n\t\t\t\t\tworld[w][h].translate(128, -1);\n\t\t\t\t}else if(neighbours[NORTH] && neighbours[SOUTH] && neighbours[WEST] && !neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][2], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t\tworld[w][h].rotate(-90);\n\t\t\t\t\tworld[w][h].translate(1, 128);\n\t\t\t\t}else if(!neighbours[NORTH] && !neighbours[SOUTH] && neighbours[WEST] && neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][0], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t}else if(!neighbours[NORTH] && !neighbours[SOUTH] && neighbours[WEST] && !neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][4], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t}else if(!neighbours[NORTH] && !neighbours[SOUTH] && !neighbours[WEST] && neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][4], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t\tworld[w][h].rotate(180);\n\t\t\t\t\tworld[w][h].translate(129, 127);\n\t\t\t\t}else if(!neighbours[NORTH] && neighbours[SOUTH] && !neighbours[WEST] && !neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][4], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t\tworld[w][h].rotate(90);\n\t\t\t\t\tworld[w][h].translate(128, -1);\n\t\t\t\t}else if(neighbours[NORTH] && !neighbours[SOUTH] && !neighbours[WEST] && !neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][4], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t\tworld[w][h].rotate(-90);\n\t\t\t\t\tworld[w][h].translate(1, 128);\n\t\t\t\t}else if(!neighbours[NORTH] && neighbours[SOUTH] && neighbours[WEST] && !neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][1], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t}else if(neighbours[NORTH] && !neighbours[SOUTH] && !neighbours[WEST] && neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][1], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t\tworld[w][h].rotate(180);\n\t\t\t\t\tworld[w][h].translate(129, 127);\n\t\t\t\t}else if(!neighbours[NORTH] && neighbours[SOUTH] && !neighbours[WEST] && neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][1], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t\tworld[w][h].rotate(90);\n\t\t\t\t\tworld[w][h].translate(128, -1);\n\t\t\t\t}else if(neighbours[NORTH] && !neighbours[SOUTH] && neighbours[WEST] && !neighbours[EAST]){ \n\t\t\t\t\tworld[w][h] = new MapTile(tileSet[0][1], w, h, MapTile.TYPE_STREET, this.debugRenderer);\n\t\t\t\t\tworld[w][h].rotate(-90);\n\t\t\t\t\tworld[w][h].translate(1, 128);\n\t\t\t\t}\n//\t\t\t\tif(world[w][h].getType() == MapTile.TYPE_STREET) world[w][h].setType(MapTile.TYPE_STREET);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4ed92d6f41db6840554d3a75062c4f32", "score": "0.49275228", "text": "@Test\n public void insertShuffledItemsWithLanes() {\n MockOrderedContentMirrorStoreStrategy ascStore = new MockOrderedContentMirrorStoreStrategy();\n MockOrderedContentMirrorStoreStrategy descStore = new MockOrderedContentMirrorStoreStrategy(\n OrderDirection.DESC);\n NodeBuilder ascIndex = EmptyNodeState.EMPTY_NODE.builder();\n NodeBuilder descIndex = EmptyNodeState.EMPTY_NODE.builder();\n NodeBuilder node;\n NodeBuilder index;\n String n00 = KEYS[0];\n String n01 = KEYS[1];\n String n02 = KEYS[2];\n String n03 = KEYS[3];\n String n04 = KEYS[4];\n String n05 = KEYS[5];\n String n06 = KEYS[6];\n String n07 = KEYS[7];\n String n08 = KEYS[8];\n String n09 = KEYS[9];\n String n10 = KEYS[10];\n String n11 = KEYS[11];\n String n12 = KEYS[12];\n \n /*\n * Stage 0\n */\n ascStore.setLane(0);\n ascStore.update(ascIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n06));\n descStore.setLane(0);\n descStore.update(descIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n06));\n node = ascIndex.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = ascIndex.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = descIndex.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = descIndex.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n /*\n * Stage 1\n */\n ascStore.setLane(1);\n ascStore.update(ascIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n05));\n descStore.setLane(1);\n descStore.update(descIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n05));\n\n index = ascIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05, n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n index = descIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n /*\n * Stage 2\n */\n ascStore.setLane(0);\n ascStore.update(ascIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n09));\n descStore.setLane(0);\n descStore.update(descIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n09));\n \n index = ascIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05, n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n index = descIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09, n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n /*\n * Stage 3\n */\n ascStore.setLane(2);\n ascStore.update(ascIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n07));\n descStore.setLane(2);\n descStore.update(descIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n07));\n\n node = ascIndex.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05, n05, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = ascIndex.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = ascIndex.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = ascIndex.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = ascIndex.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n index = descIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09, n07, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n /*\n * Stage 4\n */\n ascStore.setLane(2);\n ascStore.update(ascIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n03));\n\n descStore.setLane(2);\n descStore.update(descIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n03));\n\n node = ascIndex.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03, n03, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05, n05, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n index = descIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09, n07, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n05, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n /*\n * Stage 5\n */\n ascStore.setLane(1);\n ascStore.update(ascIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n01));\n descStore.setLane(1);\n descStore.update(descIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n01));\n\n node = ascIndex.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01, n01, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05, n05, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n index = descIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09, n07, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n05, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01, n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n /*\n * Stage 6\n */\n ascStore.setLane(0);\n ascStore.update(ascIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n02));\n descStore.setLane(0);\n descStore.update(descIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n02));\n\n node = ascIndex.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01, n01, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05, n05, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n index = descIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09, n07, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n05, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n /*\n * Stage 7\n */\n ascStore.setLane(0);\n ascStore.update(ascIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n04));\n descStore.setLane(0);\n descStore.update(descIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n04));\n\n node = ascIndex.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01, n01, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n04, n05, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n04);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n index = descIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09, n07, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n05, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n04, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n04);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n /*\n * Stage 8\n */\n ascStore.setLane(0);\n ascStore.update(ascIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n12));\n descStore.setLane(0);\n descStore.update(descIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n12));\n\n node = ascIndex.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01, n01, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n04, n05, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n04);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n12),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n12);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n index = descIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n12, n07, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n12);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n05, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n04, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n04);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n /*\n * Stage 9\n */\n ascStore.setLane(0);\n ascStore.update(ascIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n00));\n descStore.setLane(0);\n descStore.update(descIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n00));\n\n node = ascIndex.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n00, n01, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n00);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n04, n05, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n04);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n12),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n12);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n index = descIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n12, n07, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n12);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n05, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n04, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n04);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n00),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n00);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n /**\n * Stage 10\n */\n ascStore.setLane(0);\n ascStore.update(ascIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n08));\n descStore.setLane(0);\n descStore.update(descIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n08));\n\n node = ascIndex.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n00, n01, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n00);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n04, n05, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n04);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n08),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n08);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n12),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n12);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n index = descIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n12, n07, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n12);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n08),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n08);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n05, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n04, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n04);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n00),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n00);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n /**\n * Stage 11\n */\n ascStore.setLane(0);\n ascStore.update(ascIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n11));\n descStore.setLane(0);\n descStore.update(descIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n11));\n\n node = ascIndex.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n00, n01, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n00);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n04, n05, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n04);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n08),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n08);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n11),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n11);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n12),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n12);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n index = descIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n12, n07, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n12);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n11),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n11);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n08),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n08);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n05, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n04, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n04);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n00),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n00);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n /*\n * Stage 12\n */\n ascStore.setLane(3);\n ascStore.update(ascIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n10));\n descStore.setLane(3);\n descStore.update(descIndex, \"/a\", EMPTY_KEY_SET, newHashSet(n10));\n\n node = ascIndex.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n00, n01, n03, n10),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n00);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n04, n05, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n04);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n08, n10, n10),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n08);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n \n node = ascIndex.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n10),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n10);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n11),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n11);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n12),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n node = ascIndex.getChildNode(n12);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n\n index = descIndex;\n node = index.getChildNode(START);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n12, n10, n10, n10),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n12);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n11),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n11);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n10),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n10);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n09, n07, n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n09);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n08),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n08);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n07),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n07);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n06, n05, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n06);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n05),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n05);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n04, n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n04);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n03),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n03);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n02, n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n02);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n01),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n01);\n assertNotNull(node);\n assertEquals(ImmutableList.of(n00),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n node = index.getChildNode(n00);\n assertNotNull(node);\n assertEquals(ImmutableList.of(),\n node.getProperty(NEXT).getValue(Type.STRINGS));\n }", "title": "" }, { "docid": "999ef1f0d475e343d067ee4491d95272", "score": "0.49139652", "text": "private void importNeededNodesForWays() {\n\t\tGeoIdProccesor geoIdProccesor = createGeoIdProcessorForRelations();\r\n\t\tOsmImporter osmImporter = new OsmImporter();\r\n\t\tosmImporter.addProccessor(geoIdProccesor);\r\n\t\tosmImporter.proccesImport(osmFile);\r\n\t\tdatabase.add(geoIdProccesor.getElementsDatabase());\r\n\t}", "title": "" }, { "docid": "a3de4293201b0bf018fa53a1e885161e", "score": "0.49126956", "text": "Set<StaticRoute> getAllStaticRoutes();", "title": "" }, { "docid": "135254ed13dbd31e0bcf467987ab70a5", "score": "0.49108076", "text": "@Override\n protected void generatePossibleTransitions() {\n currentState = graph.getCurrentState();\n\n if(temporaryPossibleTransitions == null){\n temporaryPossibleTransitions = new LinkedList<>();\n }\n\n possibleTransitions.clear();\n temporaryPossibleTransitions.clear();\n\n boolean canDoTransition;\n for(int i =0 ; i< graph.getTransitionsCount(); i++){\n // Check if transition is alive\n canDoTransition = true;\n for(int j=0;j<graph.getPlacesCount(); j++){\n if(currentState[j] < tNegativeMatrix[i][j]){\n canDoTransition = false;\n break;\n }\n }\n if(canDoTransition){\n // Add to possible list\n temporaryPossibleTransitions.add(i);\n }\n }\n\n // If list is empty - done\n if(temporaryPossibleTransitions.isEmpty()){\n return;\n }\n\n int transitionPriority;\n boolean add;\n for(Integer i : temporaryPossibleTransitions){\n add = true;\n transitionPriority = graph.getTransition(i).getPriority();\n List<PetriTransition> transitionsFromPrecessorPlace = graph.getTransitionsFromPredecessorPlace(i);\n for(PetriTransition pt : transitionsFromPrecessorPlace){\n if(temporaryPossibleTransitions.contains(pt.getId()) && pt.getPriority() < transitionPriority){\n add = false;\n break;\n }\n }\n if(add){\n possibleTransitions.add(i);\n }\n }\n }", "title": "" }, { "docid": "6324f2ca6d8eaf8be0b35310f3ff02c3", "score": "0.4907816", "text": "public void addRouteCount() {\n this.routes++;\n }", "title": "" }, { "docid": "595dd5195a00297c6c1b1f0bc2afe0d3", "score": "0.49047574", "text": "public PathAlgorithm() {\n this.solvedNodes = new PlaceNode[10];\n }", "title": "" }, { "docid": "cb6f854ac88ecacdb877c314e63f6c48", "score": "0.4902767", "text": "private void findPaths() {\n PathSearch<V, E> search;\n search = graphWeighted ? new DijkstrasAlgorithm((Graph<V, WeightedEdge<V>>) g, source, dest) : new UnweightedShortestPathSearch<>(g, source, dest);\n if (!search.hasPathTo(dest))\n return;\n GraphPath<V, E> currShortestPath = search.pathTo(dest);\n findedPaths.add(currShortestPath);\n E edgeToRemove = null;\n List<E> removedEdges = new ArrayList<>();\n for (int i = 0; i < k - 1; i++) {\n int shortestPathLen = g.numEdges();\n GraphPath<V, E> nextShortestPath = null;\n for (E e : currShortestPath.edges()) {\n g.removeEdge(e);\n search.search();\n if (search.hasPathTo(dest)) {\n GraphPath<V, E> candidate = search.pathTo(dest);\n if (candidate.numEdges() < shortestPathLen) {\n edgeToRemove = e;\n nextShortestPath = candidate;\n shortestPathLen = candidate.numEdges();\n }\n }\n g.addEdge(e);\n }\n if (nextShortestPath == null) {\n for (E removedEdge : removedEdges) \n g.addEdge(removedEdge);\n return;\n }\n findedPaths.add(nextShortestPath);\n currShortestPath = nextShortestPath;\n g.removeEdge(edgeToRemove);\n removedEdges.add(edgeToRemove);\n }\n for (E removedEdge : removedEdges) \n g.addEdge(removedEdge);\n }", "title": "" }, { "docid": "742561deb7ae9137371ca5ec68823a09", "score": "0.4892276", "text": "public Graph() {\r\n\t\tthis.destinations = new LinkedList[26];\r\n\t}", "title": "" }, { "docid": "44d62cd6aa05e17ef25bce27b212c2a4", "score": "0.4891114", "text": "public void initVisitHash(){\n try {\n \tSystem.out.println(\"Loading words from words.txt\");\n BufferedReader reader = new BufferedReader(new FileReader(\"words.txt\"));\n String line = reader.readLine();\n while ((line = reader.readLine()) != null) {\n hash.addUnvisited(line.split(\" \")[0]);\n }\n reader.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "1be5a1026951162cd47fd07ca891d0df", "score": "0.488772", "text": "private void resetVisited(BipartiteDiGraph graph) {\n for (Node node : graph.getV()) {\n node.setVisited(false);\n }\n }", "title": "" }, { "docid": "6400bcc41e9e86c21f29658eb1fa6837", "score": "0.48864388", "text": "public void solveLand(boolean valid) {\n boolean complete = false;\r\n while (!complete) {\r\n//\t\t\ttry {\r\n//\t\t\t\tThread.sleep(750);\r\n//\t\t\t} catch (InterruptedException e) {\r\n// System.out.println(\"NOOOOO\");\r\n//\t\t\t}\r\n\r\n boolean restricted = false;\r\n\r\n if (!landStack.isEmpty() && !landStack.peek().isEmpty() && !landStack.peek().peek().isEmpty() && !restrictedPatterns.isEmpty() && !currentPattern.peek().isEmpty()) {\r\n\r\n ArrayList<Block> landPattern = new ArrayList<Block>(landStack.peek().peek().clone());\r\n HashSet<Block> cPattern = new HashSet<Block>(currentPattern.peek().clone());\r\n\r\n ArrayList<ArrayList<Block>> rPattern = new ArrayList<ArrayList<Block>>();\r\n ArrayList<ArrayDeque<Block>> trPattern = new ArrayList<ArrayDeque<Block>>(restrictedPatterns.peek().clone());\r\n\r\n for (ArrayDeque<Block> myList : trPattern) {\r\n ArrayList temp = new ArrayList(myList);\r\n HashSet tempHash = new HashSet(temp);\r\n rPattern.add(new ArrayList<Block>(tempHash));\r\n }\r\n\r\n ArrayDeque<Block> tempPattern = new ArrayDeque<Block>();\r\n\r\n outerLoop:\r\n for (int i = 0; i < rPattern.size(); i++) {\r\n if (cPattern.size() == rPattern.get(i).size() && rPattern.get(i).containsAll(cPattern) && cPattern.containsAll(rPattern.get(i))) {\r\n restricted = true;\r\n break outerLoop;\r\n }\r\n }\r\n\r\n if (!restricted) {\r\n for (Block landPattern1 : landPattern) {\r\n cPattern.add(landPattern1);\r\n for (ArrayList<Block> rPattern1 : rPattern) {\r\n if (cPattern.containsAll(rPattern1) && rPattern1.containsAll(cPattern) && cPattern.size() == rPattern1.size()) {\r\n System.out.print(\"True!!!\");\r\n System.out.println(\"c : \" + cPattern);\r\n System.out.println(\"r : \" + rPattern1);\r\n tempPattern.push(landPattern1);\r\n break;\r\n }\r\n }\r\n\r\n cPattern.clear();\r\n cPattern.addAll(currentPattern.peek().clone());\r\n }\r\n System.out.println(\"tempPattern: \" + tempPattern);\r\n\r\n landStack.peek().peek().removeAll(tempPattern);\r\n\r\n }\r\n\r\n }\r\n if (sourceLoc.isEmpty()) {\r\n complete = true;\r\n System.out.println(\"Empty\");\r\n board.updateBoard(board.getGraphics());\r\n\r\n } else if (!valid) {\r\n System.out.println(\" and Invalid Board\");\r\n System.out.println(\"checkTrapped \" + checkTrappedWater());\r\n System.out.println(\"lone Land Stem \" + loneLandStem());\r\n System.out.println(\"checkInvalid blocks \" + checkInvalidBlocks());\r\n System.out.println(\"checkIllegal 2x2 \" + checkIllegal2x2());\r\n System.out.println(\"board complete\" + completedBoard());\r\n if (!gridStack.isEmpty()) {\r\n if (!gridStack.peek().isEmpty()) {\r\n setGrid(gridStack.peek().peek());\r\n }\r\n }\r\n\r\n if (!currentPattern.isEmpty()) {\r\n if (!currentPattern.peek().isEmpty()) {\r\n currentPattern.peek().pop();\r\n }\r\n }\r\n if (landStack.isEmpty()) {\r\n System.out.println(\"Empty1\");\r\n } else if (landStack.peek().isEmpty()) {\r\n System.out.println(\"Empty2\");\r\n restrictedPatterns.pop();\r\n\r\n if (!currentPattern.isEmpty()) {\r\n currentPattern.pop();\r\n }\r\n\r\n landStack.pop();\r\n gridStack.pop();\r\n sourceLoc.pop();\r\n valid = false;\r\n } else if (landStack.peek().peek().isEmpty()) {\r\n System.out.println(\"Empty3\");\r\n landStack.peek().pop();\r\n gridStack.peek().pop();\r\n\r\n valid = false;\r\n } else {\r\n\r\n setGrid(gridStack.peek().peek());\r\n System.out.println(\"Not Empty\");\r\n\r\n System.out.println(\"grids.peek() size = \" + gridStack.peek().size());\r\n System.out.println(\"land.peek() size = \" + landStack.peek().size());\r\n System.out.println(\"land.peek().peek() size = \" + landStack.peek().peek().size());\r\n\r\n currentPattern.peek().push(landStack.peek().peek().peek());\r\n\r\n landStack.peek().peek().peek().setLandStem();\r\n landStack.peek().peek().pop();\r\n board.updateBoard(board.getGraphics());\r\n valid = checkValidBoard();\r\n if (valid && !board.grid[sourceLoc.peek().x][sourceLoc.peek().y].isComplete()) {\r\n System.out.println(\"Valid Board AND placed\");\r\n gridStack.peek().push(createClone(board.grid));\r\n ArrayDeque<Block> temp = new ArrayDeque<Block>();\r\n findPossibleMoves(sourceLoc.peek().x, sourceLoc.peek().y, new ArrayList<Block>(), temp);\r\n landStack.peek().push(temp);\r\n }\r\n\r\n }\r\n\r\n } else if (board.grid[sourceLoc.peek().x][sourceLoc.peek().y].isComplete() && board.grid[sourceLoc.peek().x][sourceLoc.peek().y].isValid()) {\r\n solveKnown();\r\n System.out.print(\"Complete\");\r\n if (valid) {\r\n valid = checkValidBoard();\r\n }\r\n if (valid) {\r\n System.out.println(\" and valid\");\r\n Point point = findNewSourceLoc();\r\n if (point != null) {\r\n currentPattern.push(new ArrayDeque<Block>());\r\n restrictedPatterns.push(new ArrayDeque<ArrayDeque<Block>>());\r\n sourceLoc.push(point);\r\n landStack.push(new ArrayDeque<ArrayDeque<Block>>());\r\n ArrayDeque<Block> temp = new ArrayDeque<Block>();\r\n findPossibleMoves(sourceLoc.peek().x, sourceLoc.peek().y, new ArrayList<Block>(), temp);\r\n landStack.peek().push(temp);\r\n gridStack.push(new ArrayDeque<Block[][]>());\r\n gridStack.peek().push(createClone(board.grid));\r\n } else {\r\n System.out.println(\"Done\");\r\n complete = true;\r\n }\r\n } else {\r\n System.out.println(\" and Invalid Board\");\r\n System.out.println(\"checkTrapped \" + checkTrappedWater());\r\n System.out.println(\"lone Land Stem \" + loneLandStem());\r\n System.out.println(\"checkInvalid blocks \" + checkInvalidBlocks());\r\n System.out.println(\"checkIllegal 2x2 \" + checkIllegal2x2());\r\n System.out.println(\"board complete\" + completedBoard());\r\n if (landStack.isEmpty()) {\r\n System.out.println(\"Empty1\");\r\n } else if (landStack.peek().isEmpty()) {\r\n System.out.println(\"Empty2\");\r\n restrictedPatterns.pop();\r\n\r\n if (!currentPattern.isEmpty()) {\r\n currentPattern.pop();\r\n }\r\n\r\n landStack.pop();\r\n gridStack.pop();\r\n sourceLoc.pop();\r\n valid = false;\r\n } else if (landStack.peek().peek().isEmpty()) {\r\n System.out.println(\"Empty3\");\r\n landStack.peek().pop();\r\n gridStack.peek().pop();\r\n\r\n valid = false;\r\n } else {\r\n\r\n setGrid(gridStack.peek().peek());\r\n System.out.println(\"Not Empty\");\r\n\r\n System.out.println(\"grids.peek() size = \" + gridStack.peek().size());\r\n System.out.println(\"land.peek() size = \" + landStack.peek().size());\r\n System.out.println(\"land.peek().peek() size = \" + landStack.peek().peek().size());\r\n currentPattern.peek().push(landStack.peek().peek().peek());\r\n landStack.peek().peek().peek().setLandStem();\r\n landStack.peek().peek().pop();\r\n board.updateBoard(board.getGraphics());\r\n valid = checkValidBoard();\r\n if (valid && !board.grid[sourceLoc.peek().x][sourceLoc.peek().y].isComplete()) {\r\n System.out.println(\"Valid Board AND placed\");\r\n gridStack.peek().push(createClone(board.grid));\r\n ArrayDeque<Block> temp = new ArrayDeque<Block>();\r\n findPossibleMoves(sourceLoc.peek().x, sourceLoc.peek().y, new ArrayList<Block>(), temp);\r\n landStack.peek().push(temp);\r\n }\r\n }\r\n\r\n }\r\n\r\n } else {\r\n\r\n System.out.println(\"Invalid Board\");\r\n System.out.println(\"checkTrapped \" + checkTrappedWater());\r\n System.out.println(\"lone Land Stem \" + loneLandStem());\r\n System.out.println(\"checkInvalid blocks \" + checkInvalidBlocks());\r\n System.out.println(\"checkIllegal 2x2 \" + checkIllegal2x2());\r\n System.out.println(\"board complete \" + completedBoard());\r\n\r\n if (landStack.isEmpty()) {\r\n System.out.println(\"Empty1\");\r\n } else if (landStack.peek().isEmpty()) {\r\n System.out.println(\"Empty2\");\r\n //mem edit - start\r\n restrictedPatterns.pop();\r\n\r\n if (!currentPattern.isEmpty()) {\r\n currentPattern.pop();\r\n }\r\n landStack.pop();\r\n gridStack.pop();\r\n sourceLoc.pop();\r\n valid = false;\r\n } else if (landStack.peek().peek().isEmpty()) {\r\n System.out.println(\"Empty3\");\r\n landStack.peek().pop();\r\n gridStack.peek().pop();\r\n\r\n if (!currentPattern.peek().isEmpty()) {\r\n currentPattern.peek().pop();\r\n\r\n }\r\n valid = false;\r\n } else {\r\n\r\n setGrid(gridStack.peek().peek());\r\n System.out.println(\"Not Empty\");\r\n\r\n System.out.println(\"grids.peek() size = \" + gridStack.peek().size());\r\n System.out.println(\"land.peek() size = \" + landStack.peek().size());\r\n System.out.println(\"land.peek().peek() size = \" + landStack.peek().peek().size());\r\n currentPattern.peek().push(landStack.peek().peek().peek());\r\n landStack.peek().peek().peek().setLandStem();\r\n landStack.peek().peek().pop();\r\n board.updateBoard(board.getGraphics());\r\n valid = checkValidBoard();\r\n if (valid && !board.grid[sourceLoc.peek().x][sourceLoc.peek().y].isComplete()) {\r\n System.out.println(\"Valid Board AND placed\");\r\n gridStack.peek().push(createClone(board.grid));\r\n ArrayDeque<Block> temp = new ArrayDeque<Block>();\r\n findPossibleMoves(sourceLoc.peek().x, sourceLoc.peek().y, new ArrayList<Block>(), temp);\r\n landStack.peek().push(temp);\r\n }\r\n\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "ed08932ff46a54809ca857518ab53c3d", "score": "0.48827013", "text": "private void seeds() {\n\t\t// Sort each nodes according to their index number\n\t\t// and then add these nodes as seed in this.candidates\n\t\t// These seeds are node only extension\n\t\t// System.out.println(\"YDY: In Seeds\");\n\t\tcandidates[0].clear();\n\t\tfor (int i = 0; i < vertices.length; i++)\n\t\t\tcandidates[0].offer(new Leg(i));\n\t\tcandidateValidIndex = 0;\n\t\tseedsInitialized = true;\n\t}", "title": "" }, { "docid": "fee34a405af09087f4b53f10ce71f718", "score": "0.48808688", "text": "public void reset()\r\n {\r\n doneCalculation = false;\r\n foundPathsMiddleNodes = null;\r\n predecessors1 = new HashMap<Node, List<Relationship>>();\r\n predecessors2 = new HashMap<Node, List<Relationship>>();\r\n // Limits\r\n numberOfTraversedRelationShips = 0;\r\n numberOfNodesTraversed = 0;\r\n }", "title": "" }, { "docid": "7667dc3feeeb323bfe06444d0986bc4e", "score": "0.48787647", "text": "public void setVisited() {\n\t\tthis.visited = true;\n\t}", "title": "" }, { "docid": "f32a52c9e669f88a51f5f14ccb26ccae", "score": "0.48767126", "text": "private static void fillUnique(Iterator<Node> nodes, Collection<Node> acc) {\n for (; nodes.hasNext();) {\n Node n = nodes.next() ;\n if ( !acc.contains(n) )\n acc.add(n) ;\n }\n }", "title": "" }, { "docid": "6c03ca76e09dccf5d6bd1a9c45131089", "score": "0.48716214", "text": "private void constructTree(Node summit){\n\t\tsummit.setParent(null);\n\t\tsummit.setVisited(true);\n\t\tqueue.add(summit);\n\t\twhile (!queue.isEmpty()) {\n\t\t\tNode current = queue.remove();\n\t\t\ttree.add(current);\n\t\t\tfor (Node n : g.getSuccessorsOf(current)) {\n\t\t\t\tif (!visitedNodes.contains(n)) {\n\t\t\t\t\tn.setParent(current);\n\t\t\t\t\tvisitedNodes.add(n);\n\t\t\t\t\tqueue.add(n);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "f0ff3c72a0e5ebc72cdc9422600f1623", "score": "0.48657566", "text": "private void flushSetAddCandidate () {\n after.addAll(workingSet);\n after.add(candidate);\n workingSet.clear();\n }", "title": "" }, { "docid": "34593e5a79039b2829c1e6d0126c9f57", "score": "0.48645416", "text": "private void findAllTargets(BoardCell startCell,int pathLength) {\r\n\t\tfor(BoardCell adjCell: adjMtx.get(startCell)) {\r\n\t\t\tif(!visited.contains(adjCell)) {\r\n\t\t\t\tvisited.add(adjCell);\r\n\t\t\t\tif(pathLength==1) targets.add(adjCell);\r\n\t\t\t\telse findAllTargets(adjCell,pathLength-1);\r\n\t\t\t\tvisited.remove(adjCell);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "479cac2e0fc20f8281fe7da8aeb36a4d", "score": "0.48641437", "text": "public List<BDPath> scanForNewUniquePaths(){\n\t\tif(segments==null || segments.isEmpty())\n\t\t\treturn null;\n\t\tif(HybridAssembler.VERBOSE)\n\t\t\tLOG.info(\"Scanning on bridge with segments:\\n\" + getAllPossiblePaths());\n\t\tList<BDPath> retval = new ArrayList<>();\n\t\tBDPath curPath=null;\n\t\tSimpleBinner binner=graph.binner;\n\t\tPopBin sbin=null;\n\t\tfor(BridgeSegment seg:segments){\n\t\t\tif(seg.isConnected() && seg.connectedPaths.size()==1){\n\t\t\t\tsbin=binner.getBinIfUniqueNow(seg.startNV.getNode());\n\t\t\t\tif(HybridAssembler.VERBOSE)\n\t\t\t\t\tLOG.info(\"Tony Tony Chopper: \" + (curPath==null?\"null\":curPath.getId()) + \" seg=\" + seg.getId() + \" start node=\" + seg.startNV.getNode().getId() + \" bin=\" + (sbin==null?\"null\":sbin.binID));\n\t\t\t\tif(sbin!=null && sbin.isCloseTo(bin)){\n\t\t\t\t\tif(curPath!=null){ \n//\t\t\t\t\t\tSystem.out.println(\"Tony Tony Chopper: \" + curPath.getId());\n\t\t\t\t\t\tgraph.chopPathAtAnchors(curPath).stream().forEach(p->retval.add(p));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcurPath=seg.connectedPaths.get(0);\n\t\t\t\t\tcurPath.setConsensusUniqueBinOfPath(bin);\n\n\t\t\t\t}else if(curPath!=null)\n\t\t\t\t\tcurPath=curPath.join(seg.connectedPaths.get(0));\n\n\t\t\t}else{\n\t\t\t\tcurPath=null;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(curPath!=null && curPath.getEdgeCount()>0) {\n\t\t\tif(HybridAssembler.VERBOSE)\n\t\t\t\tLOG.info(\"Tony Tony Chopper: \" + curPath.getId());\n\t\t\tgraph.chopPathAtAnchors(curPath).stream().forEach(p->retval.add(p));\n\t\t}\n\t\t\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "66b30d8609671fa7e690bd4199af4b4c", "score": "0.48630294", "text": "public static void main(String args[]){\n HashSet<String> westernStates = new HashSet<String>();\n\n westernStates.add(\"Arizona\");\n westernStates.add(\"California\");\n westernStates.add(\"Oregon\");\n westernStates.add(\"Utah\");\n westernStates.add(\"New Mexico\");\n westernStates.add(\"Nevada\");\n westernStates.add(\"Colorado\");\n westernStates.add(\"Montana\");\n westernStates.add(\"Idaho\");\n westernStates.add(\"Washington\");\n westernStates.add(\"Wyoming\");\n\n System.out.println(\n \"\\nSets store only one copy of an item in that set.\"+\n westernStates);\n\n //Add duplicate item.\n westernStates.add(\"Washington\");\n System.out.println(\n \"\\nWashington is not added again.\" +\n \"\\n\\twesternStates.add(\\\"Washington\\\");\\n\" +\n westernStates);\n\n //Add all items in westernStates to new LinkedHashSet\n LinkedHashSet<String> westernStatesLinkedSet = new LinkedHashSet<String>();\n\n for(String state : westernStates){\n westernStatesLinkedSet.add(state);\n }\n\n System.out.println(\n \"\\nLinkedHashSets will retain postions.\\n\" +\n westernStatesLinkedSet);\n\n //New TreeSet\n TreeSet<String> westernStatesTreeSet = new TreeSet<String>();\n\n //Add all items in westernStates to new TreeSet\n for (String state : westernStates){\n westernStatesTreeSet.add(state);\n }\n System.out.println(\n \"\\nA Tree Set is sorted alphabetically.\\n\" +\n westernStatesTreeSet);\n\n //Create new set of states in the Mountain Time Zone\n HashSet<String> mountainTimeZone = new HashSet<String>();\n\n mountainTimeZone.add(\"Arizona\");\n mountainTimeZone.add(\"Utah\");\n mountainTimeZone.add(\"Colorado\");\n mountainTimeZone.add(\"Montana\");\n mountainTimeZone.add(\"Idaho\");\n mountainTimeZone.add(\"Wyoming\");\n mountainTimeZone.add(\"New Mexico\");\n\n System.out.println(\n \"\\nMountain Time Zone States:\\n\" +\n mountainTimeZone);\n\n HashSet<String> pacificTimeZone = new HashSet<String>();\n\n pacificTimeZone.add(\"California\");\n pacificTimeZone.add(\"Oregon\");\n pacificTimeZone.add(\"Washington\");\n pacificTimeZone.add(\"Idaho\");\n\n System.out.println(\n \"\\nPacfic Time Zone States:\\n\" +\n pacificTimeZone);\n\n\n //Check for states that are in both time zones\n HashSet<String> intersecting = new HashSet<String>(pacificTimeZone);\n\n //Keep states that are in both time zones\n intersecting.retainAll(mountainTimeZone);\n\n System.out.println(\n \"\\nState in both time zones:\\n\" +\n intersecting);\n\n //Check for states that are in both time zones\n HashSet<String> difference = new HashSet<String>(westernStates);\n\n //Keep states that are in both time zones\n difference.removeAll(intersecting);\n\n System.out.println(\n \"\\nStates that are not in both time zones:\\n\" +\n difference);\n }", "title": "" }, { "docid": "1cc87de20fbcf987978337513282671a", "score": "0.4860065", "text": "private void seeNeighbours(MapNode current) {\n int currentLength = distanceSet.get(current);\n if (current.up != null && currentLength + current.upLength < distanceSet.get(current.up)) {\n distanceSet.put(current.up, currentLength + current.upLength);\n prevNode.put(current.up, current);\n distancePriority.offer(new DistNode(currentLength \n + current.upLength \n + Math.abs(current.up.x -end.x)+ Math.abs(current.up.y- end.y), // A* heuristic\n current.up));\n }\n if (current.left != null && currentLength + current.leftLength < distanceSet.get(current.left)) {\n distanceSet.put(current.left, currentLength + current.leftLength);\n prevNode.put(current.left, current);\n distancePriority.offer(new DistNode(currentLength \n + current.leftLength\n + Math.abs(current.left.x - end.x) + Math.abs(current.left.y-end.y), // A* heuristic\n current.left));\n }\n if (current.down != null && currentLength + current.downLength < distanceSet.get(current.down)) {\n distanceSet.put(current.down, currentLength + current.downLength);\n prevNode.put(current.down, current);\n distancePriority.offer(new DistNode(currentLength \n + current.downLength\n + Math.abs(current.down.x -end.x)+ Math.abs(current.down.y - end.y), // A* heuristic\n current.down));\n }\n if (current.right!= null && currentLength + current.rightLength < distanceSet.get(current.right)) {\n distanceSet.put(current.right, currentLength + current.rightLength);\n prevNode.put(current.right, current);\n distancePriority.offer(new DistNode(currentLength \n + current.rightLength\n + Math.abs(current.right.x - end.x) + Math.abs(current.right.y-end.y), // A* heuristic\n current.right));\n }\n }", "title": "" }, { "docid": "6b141d5e8c2e8fcb346fc735b652c0ce", "score": "0.4857164", "text": "private void populateTours() {\n\t\t\tLinkedHashMap<String, HistoricSite> mapOfSites = HistoricSiteManager\r\n\t\t\t\t\t.getInstanceOf().getMapOfSites();\r\n\t\t\tLinkedHashMap<String, Tour> mapOfTours = new LinkedHashMap<String, Tour>();\r\n\r\n\t\t\tResources res = getResources();\r\n\r\n\t\t\tXMLParser parser = new XMLParser();\r\n\t\t\tInputStream is = res.openRawResource(R.raw.tours);\r\n\t\t\tString xml = parser.getXmlFromFile(is); // getting XML\r\n\r\n\t\t\t// sets xml up to be read by tags\r\n\t\t\tDocument doc = parser.getDomElement(xml); // getting DOM element\r\n\r\n\t\t\t// get all tags named \"tour\"\r\n\t\t\tNodeList nl = doc.getElementsByTagName(\"tour\");\r\n\r\n\t\t\t// looping through all sites\r\n\t\t\tfor (int i = 0; i < nl.getLength(); i++) {\r\n\t\t\t\tElement e = (Element) nl.item(i);\r\n\r\n\t\t\t\tString tourName = parser.getValue(e, \"name\");\r\n\t\t\t\tString tourDesc = parser.getValue(e, \"desc\");\r\n\t\t\t\tString tourImg = parser.getValue(e, \"img\");\r\n\r\n\t\t\t\tNodeList sites = e.getElementsByTagName(\"site\");\r\n\t\t\t\tLinkedList<HistoricSite> tourRoute = new LinkedList<HistoricSite>();\r\n\t\t\t\tfor (int j = 0; j < sites.getLength(); j++) {\r\n\t\t\t\t\tif (sites.item(j) != null)\r\n\t\t\t\t\t\ttourRoute.add(mapOfSites.get(parser\r\n\t\t\t\t\t\t\t\t.getElementValue(sites.item(j))));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmapOfTours.put(tourName, new Tour(tourName, tourDesc,\r\n\t\t\t\t\t\ttourRoute, tourImg));\r\n\t\t\t}\r\n\t\t\tnew TourManager(mapOfTours);\r\n\t\t}", "title": "" } ]
0d734591ab4a1ebc3630f8e26fe96a43
/ UNION Merge the two given itemSets to create a new itemSet. Note that given itemSets may not be disjoint.
[ { "docid": "ffdf27583576890aa383ccd604435b9d", "score": "0.7471782", "text": "protected short[] union(short[] itemSet1, short[] itemSet2) {\r\n // check for null sets\r\n if (itemSet1 == null) {\r\n if (itemSet2 == null) return(null);\r\n else return(itemSet2);\r\n }\r\n if (itemSet2 == null) return(itemSet1);\r\n\r\n // determine size of union and dimension return itemSet\r\n short[] newItemSet = new short[sizeOfUnion(itemSet1,itemSet2)];\r\n\r\n // Loop through itemSets\r\n int index1=0, index2=0, index3=0;\r\n while (index1<itemSet1.length) {\r\n // Check for end of itemSet2\r\n if (index2>=itemSet2.length) {\r\n \tfor (int index=index1;index<itemSet1.length;index++,index3++)\r\n \t \t\t\tnewItemSet[index3] = itemSet1[index];\r\n \tbreak;\r\n \t}\r\n // Before\t\r\n if (itemSet1[index1] < itemSet2[index2]) {\r\n \tnewItemSet[index3] = itemSet1[index1];\r\n \tindex1++;\r\n \t}\r\n else {\r\n // Equals\r\n if (itemSet1[index1] == itemSet2[index2]) {\r\n newItemSet[index3] = itemSet1[index1];\r\n \t index1++;\r\n \t index2++;\r\n \t }\r\n \t// After\r\n else {\r\n \t newItemSet[index3] = itemSet2[index2];\r\n \t index2++;\r\n }\t\r\n }\r\n index3++;\r\n }\r\n\r\n // add remainder of itemSet2\r\n for (int index=index2;index<itemSet2.length;index++,index3++)\r\n \t\t\t\tnewItemSet[index3] = itemSet2[index];\r\n\r\n // Return\r\n return(newItemSet);\r\n }", "title": "" } ]
[ { "docid": "dde601116c9957569750c5ef4e3d0e22", "score": "0.7149343", "text": "public Set<T> tryJoinItemSets(List<T> itemSet1, List<T> itemSet2) {\n\n\t\tSet<T> joinItemSets = new TreeSet<T>();\n\t\tint size = itemSet1.size();\n\t\tfor (int i = 0; i < size - 1; ++i) {\n\t\t\tjoinItemSets.add(itemSet1.get(i));\n\t\t}\n\t\tjoinItemSets.add(itemSet1.get(size - 1));\n\t\tjoinItemSets.add(itemSet2.get(size - 1));\n\n\t\treturn joinItemSets;\n\n\t}", "title": "" }, { "docid": "89a61ff8f383f5f52e7b546fefff5cbb", "score": "0.71186924", "text": "Vector setUnion(Vector set1, Vector set2){\n //EFFECTS: union two existing sets\n\t\tint flag = 0;\n\t\tint index = 0;\n\t\tels = set1;\n\t\tfor(int i=0;i<set2.size();i++)\n\t\t{\n\t\t\tfor(int j=0; j<els.size();j++)\n\t\t\t{\n\t\t\t\tif(((Integer)els.elementAt(j)).intValue() != ((Integer)set2.elementAt(i)).intValue())\n\t\t\t\t{ \t\t\t\t \n\t\t\t\t continue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ flag = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(flag == 0)\n\t\t\t\tels.addElement(set2.elementAt(i));\n\t\t\t\t\t\n\t\t}\n\t\t\n\t\treturn els;\n\t}", "title": "" }, { "docid": "8a31dab8991a9d3b0dd33c82e2282af1", "score": "0.68071055", "text": "public static <T> Set<T> union(Set<T> set1, Set<T> set2) {\n\t\trequireNonNull(set1, \"set1 is null\");\n\t\trequireNonNull(set2, \"set2 is null\");\n\t\t// DEV-NOTE: don't check if set1/set2 is empty in order to return a new set in any case\n\t\tfinal Set<T> result = new HashSet<>(set1.size() + set2.size());\n\t\tresult.addAll(set1);\n\t\tresult.addAll(set2);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "4f212f54b4f2e9e977d7fa34b2889892", "score": "0.67505795", "text": "public static <T> Set<T> union (Set<T> setA, Set<T> setB)\n\t{\n\t\tSet<T> setUnion;\n\n\t\t// create a new TreeSet or HashSet object that\n\t\t// contains the same values as setA\n\t\tif (setA instanceof OrderedSet)\n\t\t\tsetUnion = new TreeSet<T>();\n\t\telse\n\t\t\tsetUnion = new HashSet<T>();\n\n\t\t// use iterator to add elements from setA\n\t\tIterator<T> iterA = setA.iterator();\n\t\twhile (iterA.hasNext())\n\t\t\tsetUnion.add(iterA.next());\n\n\t\t// use iterator to add elements from setB\n\t\tIterator<T> iterB = setB.iterator();\n\t\twhile (iterB.hasNext())\n\t\t\tsetUnion.add(iterB.next());\n\n\t\treturn setUnion;\n\t}", "title": "" }, { "docid": "6fefbe4d430b401466f030f37b7ff65d", "score": "0.66887575", "text": "public Set union(Set otherSet)\n { \n Set newSet = new Set();\n for (int i = 0; i < this.size(); i++)\n {\n newSet.add(this.setArray[i]);\n }\n \n for (int j = 0; j < otherSet.size(); j++)\n {\n newSet.add(otherSet.setArray[j]);\n } \n \n return newSet;\n \n }", "title": "" }, { "docid": "2ec358626a92747ee506276c7dfd6762", "score": "0.6666907", "text": "ArrayList<String> getUnion(ArrayList<String> set1, ArrayList<String> set2) {\n ArrayList<String> retset = new ArrayList<String>();\n retset.addAll(set1);\n for (String element : set2) {\n if (!retset.contains(element)) {\n retset.add(element);\n }\n }\n return retset;\n }", "title": "" }, { "docid": "8c2a7c64230869d839ccc42a9efdec35", "score": "0.6555832", "text": "protected short[] append(short[] itemSet1, short[] itemSet2) {\r\n\r\n\t// Test for empty sets, if found return other\r\n\tif (itemSet1 == null) return(copyItemSet(itemSet2));\r\n\telse if (itemSet2 == null) return(copyItemSet(itemSet1));\r\n\r\n\t// Create new array\r\n\tshort[] newItemSet = new short[itemSet1.length+itemSet2.length];\r\n\r\n\t// Loop through itemSet 1\r\n\tint index1;\r\n\tfor(index1=0;index1<itemSet1.length;index1++) {\r\n\t newItemSet[index1]=itemSet1[index1];\r\n\t }\r\n\r\n\t// Loop through itemSet 2\r\n\tfor(int index2=0;index2<itemSet2.length;index2++) {\r\n\t newItemSet[index1+index2]=itemSet2[index2];\r\n\t }\r\n\r\n\t// Return\r\n\treturn(newItemSet);\r\n }", "title": "" }, { "docid": "cec0e29624db775cffa40e13d78afeb5", "score": "0.6271656", "text": "private Set<SearchKeyword> safeMerge(Set<SearchKeyword> oldSet, Set<SearchKeyword> otherSet) {\n HashSet<SearchKeyword> newSet = new HashSet<>();\n if (oldSet != null && !oldSet.isEmpty()) {\n newSet.addAll(oldSet);\n }\n if (otherSet != null && !otherSet.isEmpty()) {\n newSet.addAll(otherSet);\n }\n return newSet;\n }", "title": "" }, { "docid": "c5e6a571b0bd3b01db96f9bc65898810", "score": "0.6239817", "text": "static Set<Integer> getUnion(Set<Integer> a, Set<Integer> b) {\n HashSet<Integer> resultSet = new HashSet<>(a);//быстрее всего(быстрее чем TreeSet)\n resultSet.addAll(b);\n return resultSet;\n }", "title": "" }, { "docid": "4a5d4a4a305b7c432eded01cb7b23309", "score": "0.6048067", "text": "private Set unsafeUnion(Set s1, Set s2) {\n Set result = new HashSet(s1);\r\n result.addAll(s2);\r\n return result;\r\n // Right alternative: <T> unsafeUnion(Set<T> s1, Set<T> s2)\r\n }", "title": "" }, { "docid": "920922990d1f063719afc5807597a137", "score": "0.6040787", "text": "public static Set union(String setName1, String setName2){\n Set<Integer> s1 = getSetByName(setName1);\n Set<Integer> s2 = getSetByName(setName2);\n if (s1 != null && s2 != null){\n return s1.union(s2);\n }\n return null;\n }", "title": "" }, { "docid": "7dbafa745625e615be4a36f684f67d1f", "score": "0.6035617", "text": "void mergeSets(ArrayList<Node> moallefe1, ArrayList<Node> moallefe2){\n System.out.println(\"first index is: \" + this.Sets.indexOf(moallefe1));\n System.out.println(\"second index is: \" + this.Sets.indexOf(moallefe2));\n ArrayList<Node> result = moallefe1;\n for (int i=0; i<moallefe2.size();i++){\n result.add(moallefe2.get(i));\n }\n System.out.print(\"result is: \");\n for (int i = 0; i < result.size(); i++) {\n System.out.print(result.get(i).value + \" \");\n }\n System.out.println();\n this.Sets.remove(this.Sets.indexOf(moallefe1));\n this.Sets.remove(this.Sets.indexOf(moallefe2));\n this.Sets.add(result);\n }", "title": "" }, { "docid": "7be5212fbe16e667f1382126428e14ba", "score": "0.6012259", "text": "MemberSet createUnionSet(MemberSet... sets);", "title": "" }, { "docid": "3d776a6ab2d4f777372e47ff330f8f12", "score": "0.5945669", "text": "@Override\n public IntSet union(IntSet other) {\n \n if (other instanceof TreeSet) { // if other is a TreeSet\n // Returning a new TreeSet made up of the left sides of the two trees unioned and the same for the right. \n return new TreeSet(((TreeSet)other).getTreeSide(LEFT).union(tree[LEFT]), ((TreeSet)other).getTreeSide(RIGHT).union(tree[RIGHT]));\n } else { // if other is Singleton or EmptySet\n // Letting the other handle the union.\n return other.union(this);\n }\n }", "title": "" }, { "docid": "bad08f7cb340c5fab290c225921fe150", "score": "0.5871481", "text": "public static SetADT<Integer> union(SetADT<Integer> left, SetADT<Integer> right) {\n\t\tSetADT<Integer> output = new JavaSet<>();\n\t\tfor (int num : left) {\n\t\t\toutput.insert(num);\n\t\t}\n\t\tfor (int num : right) {\n\t\t\tif (left.contains(num) == false) {\n\t\t\t\toutput.insert(num);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}", "title": "" }, { "docid": "8e831313d8d971986a4e740dc71c8945", "score": "0.5794016", "text": "public <T> Vector<T> union(Vector<T> a, Vector<T> b) {\n HashSet<T> joined = new HashSet<>(a);\n joined.addAll(a);\n\n HashSet<T> other = new HashSet<>();\n other.addAll(b);\n\n joined.retainAll(other);\n\n a.clear();\n a.addAll(joined);\n return a;\n }", "title": "" }, { "docid": "ccbfcd6b073295fdc70e326dfc9058cd", "score": "0.57609844", "text": "public CardSet union(CardSet that) {\n long pkSet = PackedCardSet.union(this.packed(), that.packed());\n return CardSet.ofPacked(pkSet);\n }", "title": "" }, { "docid": "4d3c04ad2c289691e715c87b5ac6204b", "score": "0.57475847", "text": "public static void main(String[] args) {\n\t\tSet<Integer> setOne = new TreeSet<Integer>();\n\t\tSet<Integer> setTwo = new TreeSet<Integer>();\t\n\t\tsetOne.add(5);\n\t\tsetOne.add(4);\n\t\tsetOne.add(3);\n\t\tsetTwo.add(5);\n\t\tsetTwo.add(6);\n\t\tsetTwo.add(7);\n\t\tsetTwo.add(8);\n\t\tSet<Integer> setUnion = new TreeSet<Integer>(setOne);\n\t\tsetUnion.addAll(setTwo);\n\t\tSystem.out.println(\"Set One :\"+setOne);\n\t\tSystem.out.println(\"Set Two :\"+setTwo);\n\t\tSystem.out.println(\"Union of Sets :\"+setUnion);\n\t}", "title": "" }, { "docid": "45cb53215154511d14a501f3bedb5334", "score": "0.5714932", "text": "public ArraySet<T> union(ArraySet<T> set) {\n final ArraySet<T> both = new ArraySet<T>();\n\n for (int index = 0; index < count; index++)\n both.add(contents[index]);\n\n final Iterator<T> scan = set.iterator();\n while (scan.hasNext())\n both.add(scan.next());\n\n return both;\n }", "title": "" }, { "docid": "57e00e2fb4ce0ab5c6a254d7a8f006cb", "score": "0.56745166", "text": "default Map<String, Long> union(String namespace, Collection<String> sets)\n throws IOException {\n return union(namespace, sets, 0, -1);\n }", "title": "" }, { "docid": "ace7a337d0525553f9b69def8aff7cc9", "score": "0.5628065", "text": "public static Set coaleseSets(Set setOfSets, Set newSet) {\n \n //\n // Merge together. In general, the sets in the set are\n // no longer disjoint.\n //\n HashSet result = new HashSet(setOfSets);\n result.add(newSet);\n \n //\n // Get a fixed ordering of all set members.\n //\n \n HashSet allMembers = new HashSet();\n Iterator rit = result.iterator();\n while (rit.hasNext()) {\n Set nextSet = (Set)rit.next();\n allMembers.addAll(nextSet);\n }\n ArrayList fixedOrder = new ArrayList(allMembers);\n \n //\n // For each member, if it appears in two sets,\n // we extract those sets from the result, and\n // return the union. Continue this until the\n // scan is clean for all members!\n //\n \n \n Iterator smit = fixedOrder.iterator();\n while (smit.hasNext()) {\n Object member = (Object)smit.next(); \n boolean done = false;\n while (!done) {\n Set firstSet = null;\n boolean collision = false;\n Iterator rsit = result.iterator();\n while (rsit.hasNext()) {\n Set nextSet = (Set)rsit.next();\n if (nextSet.contains(member)) {\n if (firstSet == null) {\n firstSet = nextSet;\n } else {\n result.remove(nextSet);\n result.remove(firstSet);\n HashSet union = new HashSet();\n DataUtil.union(nextSet, firstSet, union);\n result.add(union);\n collision = true;\n break;\n }\n }\n }\n if (!collision) {\n done = true;\n }\n }\n }\n return (result);\n }", "title": "" }, { "docid": "5893eaf2f5641ec70ebe6b67a22e996d", "score": "0.557216", "text": "private Set<String> getUnion(Set<String> list1, Set<String> list2, Set<String> list3) {\n\t\t// Since the HashSet doesn't allow to add repeated elements, add all to\n\t\t// the set\n\t\tfinal Set<String> ret = new THashSet<String>();\n\t\tif (list1 != null)\n\t\t\tret.addAll(list1);\n\t\tif (list2 != null)\n\t\t\tret.addAll(list2);\n\t\tif (list3 != null)\n\t\t\tret.addAll(list3);\n\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "764a349fce776b72b396081276fd52cb", "score": "0.55479825", "text": "public boolean mergeSets(int setA, int setB) {\n\t\tsetA = findSet(setA);\n\t\tsetB = findSet(setB);\n\t\t\n\t\tif(setA == setB) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tif(size.get(setA) > size.get(setB)) {\n\t\t\t\tparent.put(setB, setA);\n\t\t\t\tsize.put(setA, size.get(setA) + size.get(setB));\n\t\t\t} else {\n\t\t\t\tparent.put(setA, setB);\n\t\t\t\tsize.put(setB, size.get(setA) + size.get(setB));\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "5bcba22dbbfc1e03857695e11ae5fdff", "score": "0.5505147", "text": "Map<String, Long> union(String namespace, Collection<String> sets, long min, long max, int start, int count, boolean ascending)\n throws IOException;", "title": "" }, { "docid": "2fcdcbd68300ae1de1809c7e83f2b719", "score": "0.54648095", "text": "public boolean union(int i, int j) {\r\n\t\tint first = findSet(i);\r\n\t\tint second = findSet(j);\r\n\t\tint tmp;\r\n\t\tif (first == second) return false;\r\n\t\t// make first the larger set\r\n\t\tif (sets[first].setSize < sets[second].setSize) {\r\n\t\t\ttmp = first;\r\n\t\t\tfirst = second;\r\n\t\t\tsecond = tmp;\r\n\t\t}\r\n\t\t// connect the tail element of first set to head element of second\r\n\t\tsets[sets[first].tail].next = second; \r\n\t\t// make first the rep of all elements in second\r\n\t\ttmp = second;\r\n\t\twhile (sets[tmp].next != NIL) {\r\n\t\t\tsets[tmp].head = first;\r\n\t\t\ttmp = sets[tmp].next;\r\n\t\t}\r\n\t\t// while loop does not set head for last element of second set\r\n\t\tsets[tmp].head = first;\r\n\t\tsets[first].setSize += sets[second].setSize;\r\n\t\treturn true;\t\t\r\n\t}", "title": "" }, { "docid": "c1fcafbeb5c279c630c1f9f167fe1293", "score": "0.54021025", "text": "public void addAll(Set<OrderItem> items2) {\n\t\tif(items == null){\n\t\t\titems = new HashSet<OrderItem>();\n\t\t}\n\t\t//items.clear();\n\t\titems.addAll(items2);\n\t}", "title": "" }, { "docid": "5aeb670b23c6d19967d7d1e43adc5238", "score": "0.53700715", "text": "protected int sizeOfUnion(short[] itemSet1, short[] itemSet2) {\r\n\r\n // check for null sets\r\n if (itemSet1 == null) {\r\n if (itemSet2 == null) return(0);\r\n else return(itemSet2.length);\r\n }\r\n if (itemSet2 == null) return(itemSet1.length);\r\n\r\n // Otherwise loop through itemSets incrementing counter\r\n int counter=0;\r\n int index1=0, index2=0;\r\n while (index1<itemSet1.length) {\r\n // Check for end of itemSet2\r\n if (index2>=itemSet2.length) {\r\n \tcounter=counter+itemSet1.length-index1;\r\n \tbreak;\r\n \t}\r\n // Before\r\n if (itemSet1[index1] < itemSet2[index2]) {\r\n \tcounter++;\r\n \tindex1++;\r\n \t}\r\n else {\r\n // Equals\r\n if (itemSet1[index1] == itemSet2[index2]) {\r\n \t counter++;\r\n \t index1++;\r\n \t index2++;\r\n \t }\r\n \t// After\r\n else {\r\n counter++;\r\n index2++;\r\n }\r\n }\r\n }\r\n\r\n // add remainder of itemSet2 (if any)\r\n counter=counter+itemSet2.length-index2;\r\n\r\n // Return\r\n return(counter);\r\n }", "title": "" }, { "docid": "11cfb68bde8e2db4a55ad67fa3d52096", "score": "0.53513855", "text": "public CourseTypeSet union(CourseTypeSet courseTypeSet);", "title": "" }, { "docid": "2f8d884b0c6b716a23128c1c81f7f9b5", "score": "0.53234726", "text": "Vector setIntersection(Vector set1, Vector set2){\n\t\t//EFFECTS: create a third set which is the intersection of two existing sets\n\t\tVector set3 = new Vector();\n\t\tint flag = 0;\n\t\tfor(int i=0;i<set2.size();i++)\n\t\t{\n\t\t\tfor(int j=0; j<set1.size();j++)\n\t\t\t{\n\t\t\t\tif(((Integer)set1.elementAt(j)).intValue() != ((Integer)set2.elementAt(i)).intValue())\n\t\t\t\t{ \t\t\t\t \n\t\t\t\t continue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ flag = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(flag == 1)\n\t\t\t\tset3.add(set2.elementAt(i));\n\t\t\t\t\t\n\t\t}\n\t\t\n\t\treturn set3;\n\t\t\n\t}", "title": "" }, { "docid": "937c7ceb7476ecb38489f951ddc3e9b6", "score": "0.5290898", "text": "static List<Integer> union(List<Integer> a, List<Integer> b){\n int n = a.size(), m = b.size();\n List res = new ArrayList(n+m);\n //sort list a and b firstly(using quick sort here because it sort in place and generally good)\n quickSort(a,n);//O(log n)\n quickSort(b,m);//O(log m)\n //union two lists when merge them in order\n addRes(res,a,b); //O(n+m)\n return res;\n\n }", "title": "" }, { "docid": "c6c20d4cc3af89b18f0904be9a669c3b", "score": "0.5278437", "text": "private static ArrayList<ArrayList<StatePlusTransition>> mergeTwoArrayLists(\n final ArrayList<ArrayList<StatePlusTransition>> one,\n final ArrayList<ArrayList<StatePlusTransition>> two) {\n ArrayList<ArrayList<StatePlusTransition>> out;\n ArrayList<ArrayList<StatePlusTransition>> add;\n if (one.size() > two.size()) {\n out = one;\n add = two;\n } else {\n out = two;\n add = one;\n }\n for (ArrayList<StatePlusTransition> spt : add) {\n out.add(spt);\n }\n return out;\n }", "title": "" }, { "docid": "7e04953f9127b3f6aa63583063d349cf", "score": "0.5123161", "text": "private static <Item extends Comparable> Queue<Item> mergeSortedQueues(\n Queue<Item> q1, Queue<Item> q2) {\n // FF: create temp and temp1 so that the original queue will not be altered and we return a new queue\n// Queue<Item> temp = new Queue<>();\n// Queue<Item> temp1 = new Queue<>();\n// Queue<Item> toReturn = new Queue<>();\n//\n// for (Item i : q1) {\n// temp.enqueue(i);\n// }\n// for (Item i : q2) {\n// temp1.enqueue(i);\n// }\n// while (!temp.isEmpty() || !temp1.isEmpty()) {\n// Item min = getMin(temp, temp1);\n// toReturn.enqueue(min);\n// }\n// return toReturn;\n Queue<Item> toReturn = new Queue<>();\n while (!q1.isEmpty() || !q2.isEmpty()) {\n Item min = getMin(q1, q2); // destructive to q1 and q2\n toReturn.enqueue(min);\n }\n return toReturn;\n }", "title": "" }, { "docid": "fb2cf6197f1ed51638ba3ef53d1148f9", "score": "0.511669", "text": "protected short[][] copyItemSet(short[][] itemSets) {\r\n\r\n\t// Check whether there is a itemSet to copy\r\n\tif (itemSets == null) return(null);\r\n\r\n\t// Do copy and return\r\n\tshort[][] newItemSets = new short[itemSets.length][];\r\n\tfor(int index1=0;index1<itemSets.length;index1++) {\r\n\t if (itemSets[index1]==null) newItemSets[index1]=null;\r\n\t else {\r\n\t newItemSets[index1] = new short[itemSets[index1].length];\r\n\t\tfor(int index2=0;index2<itemSets[index1].length;index2++) {\r\n\t newItemSets[index1][index2] = itemSets[index1][index2];\r\n\t }\r\n\t\t}\r\n\t }\r\n\r\n // Return\r\n\treturn(newItemSets);\r\n\t}", "title": "" }, { "docid": "48272a0ffd636ef0c0597c4f9e443199", "score": "0.5091967", "text": "default Map<String, Long> union(String namespace, Collection<String> sets, int start, int count)\n throws IOException {\n return union(namespace, sets, Long.MIN_VALUE, Long.MAX_VALUE, start, count, true);\n }", "title": "" }, { "docid": "d4c4c8502b8697ba69bc7474664d48f3", "score": "0.5069926", "text": "List<T> merge(List<T> entities);", "title": "" }, { "docid": "007362e9a516b519991e3db66abd7be5", "score": "0.50618577", "text": "Collection mergeAll(Collection pcs);", "title": "" }, { "docid": "3bb35723e04ea30d4aec56b1002d0542", "score": "0.5047773", "text": "public static <T> Set<T> complement(Set<T> set1, Set<T> set2) {\n\t\trequireNonNull(set1, \"set1 is null\");\n\t\trequireNonNull(set2, \"set2 is null\");\n\t\tif (set1.isEmpty()) {\n\t\t\treturn Sets.of();\n\t\t} else {\n\t\t\tfinal Set<T> result = new HashSet<>(set1.size() + set2.size());\n\t\t\tresult.addAll(set1);\n\t\t\tresult.removeAll(set2);\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "7ceca009b9da2f8a7016cf262b444f26", "score": "0.5019864", "text": "ArrayList<String> getDiff(ArrayList<String> set1, ArrayList<String> set2) {\n ArrayList<String> retset = new ArrayList<String>();\n for (String element : set1) {\n if (!set2.contains(element)) {\n retset.add(element);\n }\n }\n return retset;\n }", "title": "" }, { "docid": "da0d0020877d632838df474f366629de", "score": "0.49834105", "text": "private List<Posting> andMergePosting(List<Posting> firstPostings, List<Posting> secondPostings) {\n\n\t\tList<Posting> result = new ArrayList<Posting>();\n\n\t\t//starting indices for both postings lists\n\t\tint i = 0;\n\t\tint j = 0;\n\n\t\t//iterate through both postings lists, end when one list has no more elements\n\t\twhile (i < firstPostings.size() && j < secondPostings.size()) {\n\n\t\t\t//both lists have this document\n\t\t\tif (firstPostings.get(i).getDocumentId() == secondPostings.get(j).getDocumentId()) {\n\t\t\t\tresult.add(firstPostings.get(i));//include it in merged list\n\t\t\t\ti++;//iterate through in both lists\n\t\t\t\tj++;\n\t\t\t//first list docid is less than second lists docid\n\t\t\t} else if (firstPostings.get(i).getDocumentId() < secondPostings.get(j).getDocumentId()) {\n\t\t\t\ti++;//iterate first list\n\t\t\t} else {// second list docid is less than first lists docid\n\t\t\t\tj++;//iterate second list\n\t\t\t}\n\n\t\t}\n\n\t\treturn result;\n\n\t}", "title": "" }, { "docid": "cdb04e98d21bc3002cb779208435cde6", "score": "0.4974468", "text": "public MappingSet merge(final MappingSet with) {\n return this.merge(with, this.createMappingSet());\n }", "title": "" }, { "docid": "c95561150e2675b773f12fc0547eff25", "score": "0.4964097", "text": "public static <T extends Comparable<? super T>> void union(List<T> l1, List<T> l2, List<T> outList) {\n\t\tListIterator<T> lt1 = l1.listIterator();\n\t\tListIterator<T> lt2 = l2.listIterator();\n\t\t\n\t\tT e1 = next(lt1);\n\t\tT e2 = next(lt2);\n\t\t\n\t\twhile (e1 != null || e2 != null) {\n\t\t\t\n\t\t\t// When the elements are the same.\n\t\t\tif (e1.compareTo(e2) == 0) {\n\t\t\t\toutList.add(e1);\n\t\t\t\te1 = next(lt1); \n\t\t\t\te2 = next(lt2); \n\t\t\t} \n\t\t\t// When e1 < e2\n\t\t\telse if (e1.compareTo(e2) < 0) {\n\t\t\t\toutList.add(e1);\n\t\t\t\te1 = next(lt1);\n\t\t\t} \n\t\t\t// When e2 < e1\n\t\t\telse {\n\t\t\t\toutList.add(e2);\n\t\t\t\te2 = next(lt2);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b4dba5e4a75848688a7612dbf37432fb", "score": "0.49622795", "text": "void merge(W mergeResult, Collection<W> toBeMerged);", "title": "" }, { "docid": "f57126ec4de4c854574de06ec736f194", "score": "0.49442968", "text": "public SetClass findUnion(SetClass other)\r\n\t{\r\n\t\tSetClass unionClass = new SetClass( other );\r\n\t\tint index;\r\n\t\tfor(index = 0; index < this.arraySize; index++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tunionClass.addItem(this.setArray[index]);\r\n\t\t}\r\n\t\treturn unionClass;\r\n\t}", "title": "" }, { "docid": "86ce0e8e534d57a707b7e7d4fb260daa", "score": "0.494423", "text": "Stream<T> union(Stream<T> unionedStream);", "title": "" }, { "docid": "39d720926ef4c24b1b34aa9e521f388a", "score": "0.49423143", "text": "public T merge(T source, Iterator<T> mergedIterator) throws Exception;", "title": "" }, { "docid": "6ff87294b4d16dc30be37d30875a9d07", "score": "0.4937513", "text": "protected boolean doesIntersect(short[] itemSet1, short[] itemSet2) {\r\n \r\n\t// Check for null sets\r\n\tif (itemSet1 == null) return(false);\r\n\tif (itemSet2 == null) return(false);\r\n\t\r\n\t// Loopthrough sets\r\n\tint index1=0;\r\n\tint index2=0;\r\n\twhile (index1<itemSet1.length) {\r\n\t if (index2 >= itemSet2.length) break;\r\n\t if (itemSet1[index1] == itemSet2[index2]) return(true);\r\n\t if (itemSet1[index1] < itemSet2[index2]) index1++;\r\n\t else index2++;\r\n\t }\r\n\t\r\n\t// Return\r\n\treturn(false);\r\n\t}", "title": "" }, { "docid": "00cb0cec335d2d567f6429cc2f1fe112", "score": "0.49032333", "text": "public static void main(String[] args) {\r\n\t\tSet<String> hs1 = new HashSet<>();\r\n\t\ths1.add(\"Ansh\");\r\n\t\ths1.add(\"Bob\");\r\n\t\ths1.add(\"Ronny\");\r\n\t\ths1.add(\"Stacey\");\r\n\t\ths1.add(\"Ansh\");\r\n\t\ths1.add(null);\r\n\t\tSystem.out.println(\"----------------------------------------\");\r\n\t\tSystem.out.println(hs1);\r\n\t\tSystem.out.println(\"----------------------------------------\");\r\n\t\tSystem.out.println(hs1.contains(\"Ronny\"));\r\n\t\tSystem.out.println(\"----------------------------------------\");\r\n\t\tfor (String h : hs1) {\r\n\t\t\tSystem.out.println(h);\r\n\t\t}\r\n\t\tSystem.out.println(\"----------------------------------------\");\r\n\t\ths1.remove(\"Ansh\");\r\n\t\tSystem.out.println(hs1);// [null, Bob, Stacey, Ronny]\r\n\t\tSystem.out.println(\"----------------------------------------\");\r\n\r\n\t\tIterator it = hs1.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tSystem.out.println(it.next());\r\n\t\t}\r\n\t\tSystem.out.println(\"----------------------------------------\");\r\n\r\n\t\t// Mathmatical Operations\r\n\t\tSet<Integer> first = new HashSet<>();\r\n\t\tfirst.addAll(Arrays.asList(new Integer[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }));\r\n\r\n\t\tSet<Integer> second = new HashSet<>();\r\n\t\tfirst.addAll(Arrays.asList(new Integer[] { 1, 2, 3, 5, 6, 7, 9 }));\r\n\r\n\t\t// Union (Combine) both the sets\r\n\t\t// [Same values from both the sets will appear once]\r\n\t\tSet<Integer> union = new HashSet<Integer>(first);\r\n\t\tunion.addAll(second);\r\n\t\tSystem.out.println(union);// [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\tSystem.out.println(\"----------------------------------------\");\r\n\t\t// OR\r\n\t\tSet<Integer> union1 = new HashSet<Integer>();\r\n\t\tunion1.addAll(first);\r\n\t\tunion1.addAll(second);\r\n\t\tSystem.out.println(union1);// [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\n\t\tSystem.out.println(\"----------------------------------------\");\r\n\r\n\t\t// Get the intersection\r\n\t\tSet<Integer> one = new HashSet<>();\r\n\t\tone.addAll(Arrays.asList(new Integer[] { 2, 4, 3, 9, 8, 7, 44, 55 }));\r\n\r\n\t\tSet<Integer> two = new HashSet<>();\r\n\t\ttwo.addAll(Arrays.asList(new Integer[] { 1, 2, 3, 5, 9, 4 }));\r\n\r\n\t\tSet<Integer> intersection = new HashSet<Integer>(one);\r\n\t\tintersection.retainAll(two);\r\n\t\tSystem.out.println(intersection);// [2, 3, 4, 9]\r\n\t\tSystem.out.println(\"----------------------------------------\");\r\n\r\n\t\t// Get the difference\r\n\t\tSet<Integer> difference = new HashSet<Integer>(one);\r\n\t\tdifference.removeAll(two);\r\n\t\tSystem.out.println(difference);// [7, 55, 8, 44]\r\n\t\tSystem.out.println(\"----------------------------------------\");\r\n\r\n\t}", "title": "" }, { "docid": "6bc360bc3d962e1bf7d1235116995ca6", "score": "0.48928627", "text": "public static <T> void merge(Iter<T> begin1, Iter<T> end1, Iter<T> begin2, Iter<T> end2, Iter<T> result, \n\t\tIter<T> beginHold, Compare<T> cmp) {\n\t\tIter<T> pos = beginHold.copy();\n\t\tIter<T> iter1 = begin1.copy();\n\t\tIter<T> iter2 = begin2.copy();\n \n\t\t// Debugging information\n\t\tSystem.out.println(\"merging\");\n\t\tprint(\"list 1\", iter1, end1);\n\t\tprint(\"list 2\", iter2, end2);\n\n\t\twhile (!iter1.isEqualTo(end1) && !iter2.isEqualTo(end2)) {\n\t\t\tif (cmp.precedes(iter2.get(), iter1.get())) {\n\t\t\t\t// the iter2's value is used next\n\t\t\t\tpos.set(iter2.get());\n\t\t\t\tpos.next();\n\t\t\t\titer2.next();\n\t\t\t} else {\n\t\t\t\t// the iter1's value is used next\n\t\t\t\tpos.set(iter1.get());\n\t\t\t\tpos.next();\n\t\t\t\titer1.next();\n\t\t\t}\n\t\t}\n \n\t\tpos = append(pos, iter1, end1);\n\t\tpos = append(pos, iter2, end2);\n\t\tIter<T> resultEnd = append(result, beginHold, pos); // used for debugging\n\t\tprint(\"merged list\", result, resultEnd);\n\t}", "title": "" }, { "docid": "7a9194615e13e17faf8af344ed3d6092", "score": "0.48773474", "text": "protected short[] complement(short[] itemSet1, short[] itemSet2) {\r\n int lengthOfComp = itemSet2.length-itemSet1.length;\r\n\t\r\n\t// Return null if no complement\r\n\tif (lengthOfComp<1) return(null);\r\n\t\r\n\t// Otherwsise define combination array and determine complement\r\n\tshort[] complement = new short[lengthOfComp];\r\n\tint complementIndex = 0;\r\n\tfor(int index=0;index<itemSet2.length;index++) {\r\n\t // Add to combination if not in first itemset\r\n\t if (notMemberOf(itemSet2[index],itemSet1)) {\r\n\t \tcomplement[complementIndex] = itemSet2[index];\r\n\t\tcomplementIndex++;\r\n\t\t}\t\r\n\t }\r\n\t\r\n\t// Return\r\n\treturn(complement);\r\n\t}", "title": "" }, { "docid": "9e3ab4b0aa8fdf65a76b66a499c173dc", "score": "0.4866716", "text": "public void merge(AnnotationSet set) {\n\t\tthis.anInst.merge(set.anInst);\n\t\tIntArrayList[] col = this.anIter.merge(set.anIter);\n\t\t// Merge if the iteration was equal, override if it was larger\n\t\tthis.anOper.merge(set.anOper, col[0]);\n\t\tthis.anOper.override(set.anOper, col[1]);\n\t}", "title": "" }, { "docid": "a78d4797e6bafefba6aa9a0f17774b8f", "score": "0.48558202", "text": "Vector relativeComplement(Vector set1, Vector set2) throws EmptyStackException{\n\t\t//REQUIRES: Two sets and set1 cannot be empty \n\t\t//EFFECTS: If set1 is empty throw an exception, otherwise create a set is the set of elements that are in set1 but not set2\n\t\tif(set1.size() == 0) throw new EmptyStackException();\n\t\tVector set3 = new Vector();\n\t\tint flag = 0;\n\t\tfor(int i=0;i<set1.size();i++)\n\t\t{\n\t\t\tfor(int j=0; j<set2.size();j++)\n\t\t\t{\n\t\t\t\tif(((Integer)set1.elementAt(i)).intValue() == ((Integer)set2.elementAt(j)).intValue())\n\t\t\t\t{ flag =1;\t\t\t \n\t\t\t\t break;\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t}\t\t\t\n\t\t\tif(flag == 0)\n\t\t\t\tset3.add(set1.elementAt(i));\n\t\t\t\n\t\t\tflag = 0;\n\t\t\t\t\t\n\t\t}\n\t\treturn set3;\n\t}", "title": "" }, { "docid": "e5d7260e14eeb18458aa96b051cff261", "score": "0.48550016", "text": "@Test\n\tpublic void unionOfListsTest() {\n\t\tInteger a[] = { 8, 9, 1, 2, 6, 7, 3, 5 };\n\t\tInteger b[] = { 8, 9, 7, 2, 4 };\n\t\tLap<SLNode<Integer>, SLNode<Integer>> lap1 = isl.insertArrLast(null, a);\n\t\tLap<SLNode<Integer>, SLNode<Integer>> lap2 = isl.insertArrLast(null, b);\n\t\tSLNode<Integer> h1 = lap1.getHead();\n\t\tSLNode<Integer> h2 = lap2.getHead();\n\t\th1 = isl.unionOfLists(h1, h2);\n\t\tisl.printList(h1);\n\t}", "title": "" }, { "docid": "2c43c7d454fc6a3d3b9bced24a09ec08", "score": "0.484983", "text": "public void merge(ArrayList<Integer> a, ArrayList<Integer> b) {\n\n ArrayList<Integer> tempList = new ArrayList<>(a);\n a.clear();\n\n int i =0, j=0;\n while(i<tempList.size() && j<b.size()){\n if(tempList.get(i)>b.get(j)){\n a.add(b.get(j));\n j++;\n } else {\n a.add(tempList.get(i));\n i++;\n }\n }\n\n while(i < tempList.size()){\n a.add(tempList.get(i));\n i++;\n }\n\n while(j < b.size()){\n a.add(b.get(j));\n j++;\n }\n\n }", "title": "" }, { "docid": "7246defeec0fac13d422a80b6b98ea45", "score": "0.4838313", "text": "protected int checkItemSets(short[] itemSet1, short[] itemSet2) {\r\n \r\n // Check if the same\r\n\r\n\tif (isEqual(itemSet1,itemSet2)) return(1);\r\n\r\n\t// Check whether before or after and subset/superset. \r\n\r\n\tif (isBefore(itemSet1,itemSet2)) {\r\n\t if (isSubset(itemSet1,itemSet2)) return(2);\r\n\t else return(3);\r\n\t }\r\n if (isSubset(itemSet2,itemSet1)) return(4);\r\n return(5); \r\n }", "title": "" }, { "docid": "fe9faaee711e941289cf0a2db56dc4e5", "score": "0.48227003", "text": "public static <T> Set<T> intersection (Set<T> setA, Set<T> setB)\n\t{\n\t\tSet<T> setIntersection;\n\t\tT item;\n\n\t\t// create a new TreeSet or HashSet object that\n\t\t// contains the same values as setA\n\t\tif (setA instanceof OrderedSet)\n\t\t\tsetIntersection = new TreeSet<T>();\n\t\telse\n\t\t\tsetIntersection = new HashSet<T>();\n\n\t\t// scan elements in setA and check whether they are\n\t\t// also elements in setB.\n\t\tIterator<T> iterA = setA.iterator();\n\t\twhile (iterA.hasNext())\n\t\t{\n\t\t\titem = iterA.next();\n\t\t\tif (setB.contains(item))\n\t\t\t\tsetIntersection.add(item);\n\t\t}\n\n\t\treturn setIntersection;\n\t}", "title": "" }, { "docid": "6729a10d65c507049cc53f383f7b43eb", "score": "0.48194012", "text": "public static Set<String> getIntersection(final Set<String> setA,\n final Set<String> setB) {\n final Set<String> resultSet = new TreeSet<String>();\n if (setB == null) {\n return setA;\n }\n if (setA == null) {\n return setB;\n }\n for (final String item : setA) {\n if (setB.contains(item)) {\n resultSet.add(item);\n }\n }\n return resultSet;\n }", "title": "" }, { "docid": "f139a2d5a156d373a1b1600420153485", "score": "0.48189428", "text": "public static TaintSet union(TaintSet set, int offset, TaintSet b) {\n\t\tif (b != null) {\n\t\t\t// TODO: b might be allTainted\n\t\t\tif (set == null) {\n\t\t\t\tset = offset == 0 ? b : new TaintSet(b.offset + offset, b.length, b.taintbits);\n\t\t\t} else {\n\t\t\t\tint new_offset = b.getFirstTaint() + offset;\n\t\t\t\tint old_length = set.length;\n\t\t\t\tint old_offset = set.offset;\n\t\t\t\t\n\t\t\t\tif (new_offset < set.offset) {\n\t\t\t\t\tset.offset = new_offset;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tset.length = Math.max(new_offset + b.length, set.offset + set.length) - Math.min(new_offset, set.offset);\n\t\t\t\t\n\t\t\t\t// both b and set exist\n\t\t\t\tif (set.taintbits == null) {\n\t\t\t\t\t// TODO: Figure out what I meant by \"not fully immersed\"; b.length == 0?\n\t\t\t\t\tif (set.length > old_length) {\n\t\t\t\t\t\tset.taintbits = new int[numCells(set.length)];\n\t\t\t\t\t\tset.setTainted(old_offset, old_offset + old_length);\n\t\t\t\t\t\tset.fill(offset, b);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tset.fill(offset, b);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn set;\n\t}", "title": "" }, { "docid": "570eceb01fe7d0645aadd5da0088998f", "score": "0.47961947", "text": "ArrayList<Integer> arrayUnion(\n int[] array1, int index1, int[] array2, int index2, ArrayList<Integer> union) {\n if (index1 == array1.length && index2 < array2.length) {\n for (int i = 0; i < index2; i++) union.add(array2[i]);\n return union;\n } else if (index2 == array2.length && index1 < array1.length) {\n for (int i = 0; i < index1; i++) union.add(array1[i]);\n return union;\n } else if (index1 == array1.length && index2 == array2.length) return union;\n else {\n if (array1[index1] < array2[index2]) {\n union.add(array1[index1]);\n return arrayUnion(array1, index1 + 1, array2, index2, union);\n } else if (array1[index1] > array2[index2]) {\n union.add(array2[index2]);\n return arrayUnion(array1, index1, array2, index2 + 1, union);\n } else {\n union.add(array1[index1]);\n return arrayUnion(array1, index1 + 1, array2, index2 + 1, union);\n }\n }\n }", "title": "" }, { "docid": "c6dc8bca8c3597cb4f924c21a12a53dc", "score": "0.47955436", "text": "public IStatementSelect union(IStatementSelect select);", "title": "" }, { "docid": "b8f243970c109798996529cbb5f90cc7", "score": "0.478261", "text": "protected short[] copyItemSet(short[] itemSet) {\r\n\r\n\t// Check whether there is a itemSet to copy\r\n\tif (itemSet == null) return(null);\r\n\r\n\t// Do copy and return\r\n\tshort[] newItemSet = new short[itemSet.length];\r\n\tfor(int index=0;index<itemSet.length;index++) {\r\n\t newItemSet[index] = itemSet[index];\r\n\t }\r\n\r\n\t// Return\r\n\treturn(newItemSet);\r\n\t}", "title": "" }, { "docid": "14838cbefd2808397c65ec36b09a0587", "score": "0.4768869", "text": "public static GroupByAggregation mergeSets() {\n return new GroupByAggregation(Aggregation.mergeSets());\n }", "title": "" }, { "docid": "5ececeaf5a21f7bbaf707a61a6c686d9", "score": "0.4740154", "text": "public static <T> Set<T> intersection(Set<T> set1, Set<T> set2) {\n\t\trequireNonNull(set1, \"set1 is null\");\n\t\trequireNonNull(set2, \"set2 is null\");\n\t\tif (set1.isEmpty() || set2.isEmpty()) {\n\t\t\treturn Sets.of();\n\t\t} else {\n\t\t\tfinal Set<T> result = new HashSet<>(set1.size() + set2.size());\n\t\t\tresult.addAll(set1);\n\t\t\tresult.retainAll(set2);\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "dbde92179913e87facae95d82b4c521f", "score": "0.4726839", "text": "public int[] union(IntSet s){\n\t\tList<Integer> newList = new ArrayList<Integer>();\n\t\tfor (int i : this.intSet) {\n\t\t\tnewList.add(i);\n\t\t}\n\t\tfor (int i : s.getIntSet()) {\n\t\t\tif(!this.isMember(i)){\n\t\t\t\tnewList.add(i);\n\t\t\t}\n\t\t}\n\t\tint[] union = newList.stream().mapToInt(i->i).toArray();\n\t\treturn union;\n\t}", "title": "" }, { "docid": "5d313840196422eb1d5c9dc0c86387f1", "score": "0.47246036", "text": "private static SinglyLinkedList getUnion(Node head1, Node head2) {\n\t\t\r\n\t\tSinglyLinkedList union = new SinglyLinkedList();\r\n\t\t\r\n\t\tSet<Integer> set = new HashSet<>();\r\n\t\t\r\n\t\twhile(head2 != null) {\r\n\t\t\tset.add(head2.data);\r\n\t\t\thead2 = head2.next;\r\n\t\t}\r\n\t\t\r\n\t\twhile(head1 != null) {\r\n\t\t\tif(set.contains(head1.data)) {\r\n\t\t\t\tunion.insertAtEnd(head1.data);\r\n\t\t\t\tset.remove(head1.getData());\r\n\t\t\t}else {\r\n\t\t\t\tunion.insertAtEnd(head1.data);\r\n\t\t\t}\r\n\t\t\thead1 = head1.next;\r\n\t\t}\r\n\t\t\r\n\t\tfor(Integer data : set) {\r\n\t\t\tunion.insertAtEnd(data);\r\n\t\t}\r\n\t\t\r\n\t\tset.clear();\r\n\t\t\r\n\t\treturn union;\r\n\t}", "title": "" }, { "docid": "69f2aba0ef08fd9eadf6659a7bf78911", "score": "0.4722051", "text": "public static void main(String[] args) {\n // Focusing on the main operations of a set (mathematical/algebraic operations)\n // https://docs.oracle.com/javase/tutorial/collections/interfaces/set.html\n\n // Set Interface Bulk Operations\n Set<Integer> squares = new HashSet<>();\n Set<Integer> cubes = new HashSet<>();\n\n for (int i=1; i <= 100; i++) {\n squares.add(i * i);\n cubes.add(i * i * i);\n }\n\n System.out.println(\"There are \" + squares.size() + \" squares and \" + cubes.size() + \" cubes\");\n\n // ===== Union =====\n Set<Integer> union = new HashSet<>(squares); // add the elements from the squares set to here\n union.addAll(cubes); // To add all the cubes as well (therefore now a union)\n System.out.println(\"Union contains \" + union.size() + \" elements\");\n\n // N.B. - Bulk Operations are Destructive (i.e. they modify the set they're called upon), we created a new\n // separate Set (i.e. union) to store the union of squares and cubes so we don't modify either of the sets\n // we've previously created.\n\n // Nearly all the Collection classes have Constructors that take another Collection and use the items in that\n // to populate the new Collection (which is what we did on ln24)\n // Another example;\n ArrayList<Integer> duplicates = new ArrayList<Integer>(Arrays.asList(1,1,1,2,2,3,3,3,3,4,5));\n System.out.println(\"Size of duplicates = \" + duplicates.size());\n Set<Integer> uniques = new HashSet<>(duplicates);\n System.out.println(\"Size of uniques = \" + uniques.size());\n\n // Going back to our Bulk Operations;\n // ===== Intersection =====\n Set<Integer> intersection = new HashSet<>(squares);\n intersection.retainAll(cubes);\n System.out.println(\"Intersection contains \" + intersection.size() + \" elements\");\n\n // ===== Difference =====\n // In Set Theory: 2 Differences are defined;\n // 1. Symmetric Difference\n // 2. Asymmetric Difference\n // The Java Set Interface defines a way to obtain the Asymmetric Difference of 2 sets using the .removeAll()\n // bulk operation, which will remove ALL elements in 1 set from another\n\n // We'll switch to smaller sets to see the removal in action\n Set<String> words = new HashSet<>();\n String sentence = \"one day in the year of the fox\";\n String[] arrayWords = sentence.split(\" \");\n words.addAll(Arrays.asList(arrayWords));\n\n// for (String word: words) {\n// System.out.println(word);\n// }\n\n Set<String> nature = new HashSet<>();\n String[] natureWordList = {\"all\", \"nature\", \"is\", \"but\", \"art\", \"unknown\", \"to\", \"thee\"};\n nature.addAll(Arrays.asList(natureWordList));\n\n Set<String> divine = new HashSet<>();\n String[] divineWordList = {\"to\", \"err\", \"is\", \"human\", \"to\", \"forgive\", \"is\", \"divine\"};\n divine.addAll(Arrays.asList(divineWordList));\n\n System.out.println(\"=== nature - divine ===\");\n Set<String> asymmetricDiff1 = new HashSet<>(nature);\n asymmetricDiff1.removeAll(divine);\n printSet(asymmetricDiff1);\n\n System.out.println(\"=== divine - nature ===\");\n Set<String> asymmetricDiff2 = new HashSet<>(divine);\n asymmetricDiff2.removeAll(nature);\n printSet(asymmetricDiff2);\n\n // ===== Symmetric Difference =====\n // Java Set Interface does NOT have a Symmetric Difference method implemented (probably as it's used less\n // often in Set Theory)\n // Symmetric Difference is the elements that appear in 1 set, or the other, BUT NOT both\n // (i.e. union - intersection)\n Set<String> union2 = new HashSet<>(nature);\n union2.addAll(divine);\n Set<String> intersection2 = new HashSet<>(nature);\n intersection2.retainAll(divine);\n\n System.out.println(\"=== Symmetric Difference ===\");\n union2.removeAll(intersection2);\n printSet(union2); // Contains the Symmetric Difference\n\n // === Contains All ===\n // containsAll() used to test if one Set is a Superset of another Set.\n // N.B. - Bulk Operation BUT NOT Destructive (just tests, doesn't modify the Sets)\n\n if (nature.containsAll(divine)) {\n System.out.println(\"divine is a subset of nature\");\n }\n if (nature.containsAll(intersection2)) {\n System.out.println(\"intersection2 is a subset of nature\");\n }\n if (divine.containsAll(intersection2)) {\n System.out.println(\"intersection2 is a subset of divine\");\n }\n\n }", "title": "" }, { "docid": "3d885af8b5f5be6b376e1196b809c7d8", "score": "0.4684542", "text": "public static Set<Set<Object>> cartesianProduct(Set<?>... sets) {\n\t if (sets.length < 2)\n\t throw new IllegalArgumentException(\n\t \"Can't have a product of fewer than two sets (got \" +\n\t sets.length + \")\");\n\n\t return _cartesianProduct(0, sets);\n\t}", "title": "" }, { "docid": "cdb66e4658d5d70efcbbdfc02dfad978", "score": "0.4683976", "text": "public static <T> Set<T> setDifference(Set<T> s1, Set<T> s2)\n {\n Set<T> diff = new HashSet<T>(s1);\n diff.removeAll(s2);\n return diff;\n }", "title": "" }, { "docid": "650f7b471f37d1b213f870c663994e10", "score": "0.46709818", "text": "public T merge(T source, T merged) throws Exception;", "title": "" }, { "docid": "51da54de5e703e50e07b2fc9321f5026", "score": "0.4661032", "text": "public static <T> Set<T> intersection(Set<T> a, Set<T> b) {\n Set<T> iter = a.size() < b.size() ? a : b;\n Set<T> other = iter == a ? b : a;\n\n Set<T> result = new HashSet<T>();\n for (T t : iter) {\n if (other.contains(t)) {\n result.add(t);\n }\n }\n return result;\n }", "title": "" }, { "docid": "9529ddd7359eca812247c58290ebf7fa", "score": "0.46559003", "text": "public static <T> Set<T> asSet(T... items) {\n Set<T> set = new HashSet<T>(items.length);\n Collections.addAll(set, items);\n return set;\n }", "title": "" }, { "docid": "650192c753ec065fc11ecd90bd4f366c", "score": "0.46484667", "text": "void union(LoopBag<E> lb);", "title": "" }, { "docid": "0ccf09ebf2a6a4ac68d12086af7b1303", "score": "0.460771", "text": "abstract public void merge();", "title": "" }, { "docid": "6d0f6f0715163b33c5811a7d987ede8b", "score": "0.46002883", "text": "public T merge(T source, Iterator<T> mergedIterator, XWPFRun location) throws Exception;", "title": "" }, { "docid": "9be9e551a28967d9000f9c2bc5e6599d", "score": "0.45950642", "text": "@Test\n\tpublic void unionOfListsByMergeSortTest() {\n\t\tInteger a[] = { 8, 9, 1, 2, 6, 7, 3, 5 };\n\t\tInteger b[] = { 8, 9, 7, 2, 4 };\n\t\tLap<SLNode<Integer>, SLNode<Integer>> lap1 = isl.insertArrLast(null, a);\n\t\tLap<SLNode<Integer>, SLNode<Integer>> lap2 = isl.insertArrLast(null, b);\n\t\tSLNode<Integer> h1 = lap1.getHead();\n\t\tSLNode<Integer> h2 = lap2.getHead();\n\t\th1 = isl.unionOfListsByMergeSort(h1, h2);\n\t\tisl.printList(h1);\n\t}", "title": "" }, { "docid": "29d520761cd8b7ccb0fb8cb75598f996", "score": "0.4587514", "text": "@Override\n\tpublic void unionList(MyList listA, MyList listB) {\n\t\tint list_A_length = listA.listLength();\n\t\tNode node = null;\n\t\tfor (int i = 0; i < list_A_length; i++) {\n\t\t\tnode = getElement(i);\n\t\t\tif(!locateElement(node)) {\n\t\t\t\tlistB.insert(node);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f34eead95d6c7df041a3cf18e0472390", "score": "0.45812368", "text": "public Set setDifference(Set otherSet)\n {\n Set newSet = new Set();\n int currentNum;\n for (int i = 0; i < this.size(); i++)\n {\n currentNum = this.setArray[i];\n if (!(otherSet.elementOf(currentNum)))\n {\n newSet.add(currentNum);\n } \n }\n \n return newSet;\n }", "title": "" }, { "docid": "8b8cb77e93ecb97d221c3d2d6f687fbd", "score": "0.45792213", "text": "public void intersection(FlowSet otherFlow, FlowSet destFlow) {\n // System.out.println(\"In specialized intersection for CopyPropagation\");\n if (!(otherFlow instanceof CPFlowSet && destFlow instanceof CPFlowSet)) {\n super.intersection(otherFlow, destFlow);\n return;\n }\n\n CPFlowSet other = (CPFlowSet) otherFlow;\n CPFlowSet dest = (CPFlowSet) destFlow;\n CPFlowSet workingSet;\n\n if (dest == other || dest == this) {\n workingSet = new CPFlowSet();\n } else {\n workingSet = dest;\n workingSet.clear();\n }\n\n /*\n * HERE IS THE MERGE TABLE\n *\n *\n * THIS OTHER RESULT\n *\n * 1 BOTTOM BOTTOM WHO CARES 2 BOTTOM C C (Laurie Convinced me) 3 BOTTOM TOP TOP 4 C BOTTOM C (Laurie Convinced me) 5 C1\n * C2 C if C1 == C2 else TOP 6 C TOP TOP 7 TOP BOTTOM TOP 8 TOP C TOP 9 TOP TOP TOP\n */\n\n for (int i = 0; i < this.numElements; i++) {\n CPTuple thisTuple = this.getElementAt(i);\n String className = thisTuple.getSootClassName();\n CPVariable thisVar = thisTuple.getVariable();\n\n CPTuple matchFound = null;\n /*\n * Find a matching tuple if one exists\n */\n CPTuple otherTuple = null;\n for (int j = 0; j < other.numElements; j++) {\n otherTuple = other.getElementAt(j);\n\n /*\n * wont use the CPTuple equal method since that ignores tops we want to implement the intersection rules given in the\n * merge table\n */\n\n // check that the two tuples have the same class\n String tempClass = otherTuple.getSootClassName();\n if (!tempClass.equals(className)) {\n continue;\n }\n\n // Check that the variable contained is the same name and type (local or sootfield)\n if (!otherTuple.getVariable().equals(thisVar)) {\n continue;\n }\n\n // match of sootClass and Variable have to use merge table on matchFound and elements[i]\n matchFound = otherTuple;\n break;\n } // end looking for a match in other set\n\n if (matchFound != null) {\n // cases 5 6 8 and 9 are the ones in which both sets have a value for this variable\n\n if (thisTuple.isTop()) {\n // cases 8 and 9\n workingSet.add(thisTuple.clone());\n } else if (matchFound.isTop()) {\n // case 6\n workingSet.add(matchFound.clone());\n } else if (!matchFound.isTop() && !thisTuple.isTop()) {\n // this has to be case 5 since there is no other case possible\n\n Object matchedValue = matchFound.getValue();\n Object thisValue = thisTuple.getValue();\n\n // using the equals method of Boolean/Float/Integer etc\n if (matchedValue.equals(thisValue)) {\n workingSet.add(thisTuple.clone());\n } else {\n // if we get here either the types dont match or the values didnt match just add top\n workingSet.add(new CPTuple(className, thisVar, true));\n }\n } else {\n throw new DecompilationException(\"Ran out of cases in CPVariable values...report bug to developer\");\n }\n } // if match was found\n else {\n // could not find a match for element[i] in other hence its bottom in other\n // CASE 4 and 7 (cant be case 1 since element[i]s presence means its not bottom\n\n // add CLONE OF element[i] to working set unchanged\n /*\n * TODO: why should a field be turned to TOP... a field is only a constant value field and hence should never be\n * changed!!!!!\n *\n * BUG FOUND DUE TO CHROMOSOME benchmark if(Debug.flag) was not being detected as it was being set to top\n *\n * April 3rd 2006\n */\n /*\n * if(thisTuple.containsField()){ //add top workingSet.add(new\n * CPTuple(thisTuple.getSootClassName(),thisTuple.getVariable(),true)); } else if(thisTuple.containsLocal()){\n */\n\n workingSet.add(thisTuple.clone());\n\n /*\n * } else throw new DecompilationException(\"CPVariable is not local and not field\");\n */\n\n }\n\n } // end going through all elements of this flowset\n\n /*\n * havent covered cases 2 and 3 in which case this has bottom (a.k.a variable is not present) and the other has the\n * elements\n */\n\n for (int i = 0; i < other.numElements; i++) {\n CPTuple otherTuple = other.getElementAt(i);\n String otherClassName = otherTuple.getSootClassName();\n CPVariable otherVar = otherTuple.getVariable();\n // System.out.print(\"\\t Other:\"+otherVar.toString());\n boolean inBoth = false;\n for (int j = 0; j < this.numElements; j++) {\n CPTuple thisTuple = this.getElementAt(j);\n String thisClassName = thisTuple.getSootClassName();\n CPVariable thisVar = thisTuple.getVariable();\n\n if (!otherClassName.equals(thisClassName)) {\n continue;\n }\n\n if (!thisVar.equals(otherVar)) {\n continue;\n }\n\n // if we get here we know both sets have this variable so this is not case 2 or 3\n // System.out.println(\">>>> FOUND\"+thisVar.toString());\n inBoth = true;\n break;\n }\n\n if (!inBoth) {\n // System.out.println(\"....NOT FOUND ....SET IS:\"+this.toString());\n // not in both so this is case 2 or 3\n /*\n * clone and add if its local\n *\n * if field then add top\n */\n\n /*\n * TODO why should a field be converted to TOP when all the fiels are only constant value fields\n *//*\n * if(otherTuple.containsField()){ //add top workingSet.add(new\n * CPTuple(otherTuple.getSootClassName(),otherTuple.getVariable(),true)); } else if(otherTuple.containsLocal()){\n */\n\n workingSet.add(otherTuple.clone());\n /*\n * } else throw new DecompilationException(\"CPVariable is not local and not field\");\n */\n }\n } // end going through other elements\n }", "title": "" }, { "docid": "ba54e3f7e0fc6ba2a18f80585e248c15", "score": "0.4579201", "text": "public static <T> Set<T> difference (Set<T> setA, Set<T> setB)\n\t{\n\t\tSet<T> setDifference;\n\t\tT item;\n\n\t\t// create a new TreeSet or HashSet object that\n\t\t// contains the same values as setA\n\t\tif (setA instanceof OrderedSet)\n\t\t\tsetDifference = new TreeSet<T>();\n\t\telse\n\t\t\tsetDifference = new HashSet<T>();\n\n\t\t// scan elements in setA and check whether they are\n\t\t// not in setB.\n\t\tIterator<T> iterA = setA.iterator();\n\t\twhile (iterA.hasNext())\n\t\t{\n\t\t\titem = iterA.next();\n\t\t\tif (!setB.contains(item))\n\t\t\t\tsetDifference.add(item);\n\t\t}\n\n\t\treturn setDifference;\n\t}", "title": "" }, { "docid": "3d53c036d0ad59c0790a8b7dd691ef4c", "score": "0.45774388", "text": "private Map<UUID, Integer> mergeUsedIds(Map<UUID, Integer> map1, Map<UUID, Integer> map2) {\n\t\tMap<UUID, Integer> result = new HashMap<>(map1);\n\t\tfor (UUID id : map2.keySet()) {\n\t\t\tif (map1.containsKey(id)) {\n\t\t\t\tresult.put(id, (map1.get(id) + map2.get(id)));\n\t\t\t} else {\n\t\t\t\tresult.put(id, map2.get(id));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "5447b39c16283cd6437df6cecde7e951", "score": "0.45532718", "text": "MySet intersectMethod(MySet m) {\n if (MySet.contains(m, this.top)) {\n return MySet.insert(MySet.intersect(this.bot, m), this.top);\n }\n else {\n return MySet.intersect(this.bot, m);\n }\n }", "title": "" }, { "docid": "b6f46b963d1f4f8c6215ccd175b9dbc2", "score": "0.45505637", "text": "@Support\n Select<R> union(Select<? extends R> select);", "title": "" }, { "docid": "bc3235f05b809472b4ca15ff0eaf1e20", "score": "0.45457715", "text": "default Map<String, Long> intersect(String namespace, Collection<String> sets)\n throws IOException {\n return intersect(namespace, sets, 0, -1);\n }", "title": "" }, { "docid": "3948c4b8d54b94169b49d011a3b353e3", "score": "0.45405123", "text": "public Set intersection(Set otherSet)\n {\n Set newSet = new Set();\n int currentNum;\n for (int i = 0; i < this.size(); i++)\n {\n currentNum = this.setArray[i];\n if (otherSet.elementOf(currentNum))\n {\n newSet.add(currentNum);\n }\n }\n \n return newSet;\n }", "title": "" }, { "docid": "48485928a67418faf9f142daaf3e9e9c", "score": "0.45378977", "text": "private static void union(Node head1, Node head2, SinglyLinkedList union) {\n\t\t\r\n\t\t\t\t\r\n\t\twhile(head1 != null && head2 != null) {\r\n\t\t\tif(head1.data == head2.data) {\r\n\t\t\t\tunion.insertAtEnd(head1.data);\r\n\t\t\t\thead1 = head1.next;\r\n\t\t\t\thead2 = head2.next;\r\n\t\t\t}else if(head1.data < head2.data) {\r\n\t\t\t\tunion.insertAtEnd(head1.data);\r\n\t\t\t\thead1 = head1.next;\r\n\t\t\t}else {\r\n\t\t\t\tunion.insertAtEnd(head2.data);\r\n\t\t\t\thead2 = head2.next;\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//curr.next = (head1 != null) ? head1 : head2;\r\n\t\t\r\n\t\twhile(head1 != null) {\r\n\t\t\tunion.insertAtEnd(head1.data);\r\n\t\t\thead1 = head1.next;\r\n\t\t}\r\n\t\twhile(head2 != null) {\r\n\t\t\tunion.insertAtEnd(head2.data);\r\n\t\t\thead2 = head2.next;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "2775c45d63a645f90c4f626e8da14906", "score": "0.4535405", "text": "public static TimeSet intersection(List<TimeSet> timeSets) {\n if (timeSets.size() < 2) {\n return TimeSet.empty();\n }\n timeSets = new ArrayList<>(timeSets);\n TimeSet firstSet = timeSets.remove(0);\n firstSet.intersect(timeSets);\n return firstSet;\n }", "title": "" }, { "docid": "892e836d7c11f175cb66e8c79d9627fa", "score": "0.45256767", "text": "public static ComplexDataObject merge(Iterable<ComplexDataObject> objects) {\r\n\t\treturn merge(objects, false);\r\n\t}", "title": "" }, { "docid": "2252794bcfa8429665dd44dfb096e9d3", "score": "0.45189822", "text": "public Set getSetofEquivalentSets(Set set) {\n\t\tSet resultSet = new HashSet();\n\t\tfor (Iterator iter = set.iterator(); iter.hasNext(); ) {\n\t\t\tObject obj = iter.next();\n\t\t\tSet equObjs = new HashSet();\n\t\t\tequObjs.add(obj);\n\t\t\tif (equivalents.containsKey(obj)) equObjs = (HashSet) equivalents.get(obj);\t\t\t\n\t\t\tresultSet.add(equObjs);\n\t\t}\n\t\treturn resultSet;\n\t}", "title": "" }, { "docid": "3b1a06216988fe079c6e71c5d2c002ca", "score": "0.45123625", "text": "public void union(int root1, int root2) {\n\t\tif(set[root2] < set[root1]){\t\t// root2 is deeper\n\t\t\tset[root1] = root2;\t\t// Make root2 new root\n\t\t}\n\t\telse {\n\t\t\tif(set[root1] == set[root2]){\n\t\t\t\tset[root1]--;\t\t\t// Update height if same\n\t\t\t}\n\t\t\tset[root2] = root1;\t\t// Make root1 new root\n\t\t}\n\t}", "title": "" }, { "docid": "31c22c6b012f7ea0cab64a690d596c77", "score": "0.45041376", "text": "public static ArrayList<Integer> merge(ArrayList<Integer> array1, ArrayList<Integer> array2)\n {\n //creates a final merged array that will be returned\n ArrayList<Integer> mergedArray = new ArrayList<Integer>();\n \n //starting indexes\n int index1 = 0;\n int index2 = 0;\n \n //runs until both arrays are fully cycled throguh\n while(index1 != array1.size() || index2 != array2.size())\n {\n //if array 1 is fully passed through\n if(index1 == array1.size())\n { \n mergedArray.add(array2.get(index2));\n index2++;\n }\n //if array 2 is fully passed through\n else if(index2 == array2.size())\n {\n mergedArray.add(array1.get(index1));\n index1++;\n }\n \n //else see if which array's current index should be placed into the merged array\n else if((int) array1.get(index1) < (int) array2.get(index2))\n {\n mergedArray.add(array1.get(index1));\n index1++;\n }\n else\n {\n mergedArray.add(array2.get(index2));\n index2++;\n }\n }\n return mergedArray;\n }", "title": "" }, { "docid": "0cbff00a4204beb42ac852f16352ae5a", "score": "0.45025918", "text": "static ArrayList<LinkedHashMap<String, String>> mergeDataPools(ArrayList<LinkedHashMap<String, String>> dataPool1, \n\t\t\tArrayList<LinkedHashMap<String, String>> dataPool2, ArrayList<LinkedHashMap<String, String>> dataPool3, \n\t\t\tArrayList<LinkedHashMap<String, String>> dataPool4, ArrayList<LinkedHashMap<String, String>> dataPool5,\n\t\t\tArrayList<LinkedHashMap<String, String>> dataPool6, ArrayList<LinkedHashMap<String, String>> dataPool7)\n\t{\n\t\tArrayList<LinkedHashMap<String, String>> dataPoolMerged = new ArrayList<LinkedHashMap<String, String>>();\n\t\tfor(LinkedHashMap<String, String> map: dataPool1)\n\t\t{\n\t\tdataPoolMerged.add(map);\n\t\t}\n\t\tfor(LinkedHashMap<String, String> map: dataPool2)\n\t\t{\n\t\tdataPoolMerged.add(map);\n\t\t}\n\t\tfor(LinkedHashMap<String, String> map: dataPool3)\n\t\t{\n\t\tdataPoolMerged.add(map);\n\t\t}\n\t\tfor(LinkedHashMap<String, String> map: dataPool4)\n\t\t{\n\t\tdataPoolMerged.add(map);\n\t\t}\n\t\tfor(LinkedHashMap<String, String> map: dataPool5)\n\t\t{\n\t\tdataPoolMerged.add(map);\n\t\t}\n\t\tfor(LinkedHashMap<String, String> map: dataPool6)\n\t\t{\n\t\t\tdataPoolMerged.add(map);\n\t\t}\n\t\tfor(LinkedHashMap<String, String> map: dataPool7)\n\t\t{\n\t\t\tdataPoolMerged.add(map);\n\t\t}\n\t\treturn dataPoolMerged;\n\t}", "title": "" }, { "docid": "5fcab28ff55b2692607afc565bcac553", "score": "0.45023695", "text": "abstract void merge();", "title": "" }, { "docid": "ef8e315322d1f2b47e1cfc26befb8e0b", "score": "0.450081", "text": "private static <Item extends Comparable> Queue<Item> catenate(Queue<Item> q1, Queue<Item> q2) {\n Queue<Item> catenated = new Queue<Item>();\n for (Item item : q1) {\n catenated.enqueue(item);\n }\n for (Item item: q2) {\n catenated.enqueue(item);\n }\n return catenated;\n }", "title": "" }, { "docid": "71ce5552deaaa1ede0b6ce9c86965bc5", "score": "0.44917423", "text": "private List<TransactionByMonth> addBothTransactionLists(RewardResponseEntity tempEntity, RewardResponseEntity item) {\n //Adding all transaction lists from both the entities\n tempEntity.getListOfTransactionByMonth().addAll(item.getListOfTransactionByMonth());\n Map<String,TransactionByMonth> forUniqueTransactions = new HashMap<>();\n for(TransactionByMonth transactionByMonth : tempEntity.getListOfTransactionByMonth()){\n if(forUniqueTransactions.containsKey(transactionByMonth.getTransactionMonth().toString())){\n TransactionByMonth tempTranMonth = forUniqueTransactions.get(transactionByMonth.getTransactionMonth().toString());\n tempTranMonth.setPointsInMonth(tempTranMonth.getPointsInMonth()+transactionByMonth.getPointsInMonth());\n }\n else {\n forUniqueTransactions.put(transactionByMonth.getTransactionMonth().toString(),transactionByMonth);\n }\n }\n return forUniqueTransactions.values().stream().sorted().collect(Collectors.toList());\n }", "title": "" }, { "docid": "949babc85c6c8aba04266e04873b4c52", "score": "0.44842875", "text": "public static void merge3(int[] nums1, int m, int[] nums2, int n){\n int last = m+n-1;\n int first = m - 1;\n int second = n - 1;\n\n while (first >= 0 && second >= 0) {\n if (nums1[first] > nums2[second]) {\n nums1[last] = nums1[first];\n first--;\n } else {\n nums1[last] = nums2[second];\n second--;\n }\n last--;\n }\n\n // This is the case where after the first loop\n // Some remaining smaller items in nums2 not copy to nums1 yet\n // We don't need to check \"first >= 0\" because if there's\n // any remaining items, it's in nums1 already\n while( second >= 0 ){\n nums1[last] = nums2[second];\n last--;\n second--;\n }\n }", "title": "" }, { "docid": "647d54c011db04ce7bb2f4961ee2e2cb", "score": "0.44769913", "text": "public ArrayList<Integer> combin (ArrayList<Integer> first , ArrayList<Integer> second ){\n\n first.addAll(second);\n System.out.println(first);\n return first;\n }", "title": "" }, { "docid": "70022a2422629c484218bd527c4e7541", "score": "0.4465863", "text": "private Node merge(Node a, Node b) {\r\n\t\t// If first list is empty, the second list is result\r\n\t\tif (a == null) {\r\n\t\t\treturn b;\r\n\t\t}\r\n\r\n\t\t// If second list is empty, the second list is result\r\n\t\tif (b == null) {\r\n\t\t\treturn a;\r\n\t\t}\r\n\r\n\t\t// Compare the data members of head nodes of both lists\r\n\t\t// and put the smaller one in result\r\n\t\tNode result = null;\r\n\t\tif (a.item.compareTo(b.item) < 0) {\r\n\t\t\tresult = a;\r\n\t\t\tresult.child = merge(a.child, b);\r\n\t\t} else {\r\n\t\t\tresult = b;\r\n\t\t\tresult.child = merge(a, b.child);\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "ee8826f671a8332d65d73e29bc5cff7a", "score": "0.44624972", "text": "Vector symmetricDifference(Vector set1, Vector set2) throws EmptyStackException{\n\t\t//REQUIRES: Two sets both of them cannot be empty \n\t\t//EFFECTS: If either set is empty then throw an exception, otherwise create a set whose elements belong to set1 or set2 but not both\n\t\tif(set1.size() == 0) throw new EmptyStackException();\n\t\tif(set2.size() == 0) throw new EmptyStackException();\n\t\tVector set3 = new Vector();\n\t\tVector set4 = new Vector();\n\t\tVector set5 = new Vector();\n\t\tset3 = setIntersection(set1,set2);\n\t\tset4 = setIntersection(set1,set2);\n\t\tset3 = relativeComplement(set1,set3);\n\t\tset4 = relativeComplement(set2,set4);\n\t\tset5 = setUnion(set3,set4);\n\t\t\n\t\treturn set5;\n\t}", "title": "" }, { "docid": "0678c1de94216802081c78bcaac42836", "score": "0.4460876", "text": "public void merge() {\n\t\tString command =\n\t\t// BBTools Directory, In1, In2, output directory\n\t\tString.format(MergeStr, BBToolsDir, fastq1, fastq2, OutputDir);\n\t\tCommandExec.exec(command);\n\t}", "title": "" }, { "docid": "25ccf035041550edb2b75f6648eab344", "score": "0.44593096", "text": "private boolean union(Series series) {\n\t\tSeries s = get(series.getKey());\n\t\tif (s==null) {\n\t\t\tsuper.add(series);\n\t\t} else {\n\t\t\ts.getValues().addAll(series.getValues());\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4f87168ad18f1ff52b60d4aa3748097b", "score": "0.4458679", "text": "private void addSets() {\n List<String> sets = MangoController.getInstance()\n .getAllSets();\n\n for (final String set : sets) {\n JMenuItem item = new JMenuItem(set);\n\n // add the action listener to each that performs that\n // adding action\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n JTable table = UIController.getInstance()\n .getViewTable();\n\n int[] selectedRows = table.getSelectedRows();\n int selectedRow2;\n boolean allAdded = true;\n for(int i =0; i < selectedRows.length; i++){\n selectedRow2 = table.getRowSorter().\n convertRowIndexToModel(selectedRows[i]);\n Movie m = ((EditableMovieTableModel) table\n .getModel()).getMovieForRow(selectedRow2);\n try {\n MangoController.getInstance().addMovieToSet(\n set, m);\n } catch (MovieExistsInSetException e1) {\n allAdded = false;\n }\n }\n \n if(!allAdded){\n JOptionPane.showMessageDialog(\n UIController.getInstance().getMango(),\n \"Some movies were not added. Duplicates are \" +\n \"not allowed.\");\n }\n \n// int selectedRow = table.getRowSorter()\n// .convertRowIndexToModel(\n// table.getSelectedRow());\n// Movie m = ((EditableMovieTableModel) table\n// .getModel()).getMovieForRow(selectedRow);\n// try {\n// MangoController.getInstance().addMovieToSet(\n// set, m);\n// } catch (MovieExistsInSetException e1) {\n// JOptionPane\n// .showMessageDialog(\n// UIController.getInstance()\n// .getMango(),\n// \"The movie \\\"\"\n// + m.getTitle()\n// + \"\\\" already exists in that set.\");\n// }\n }\n });\n this.add(item);\n }\n }", "title": "" } ]
1da6865b3d61dc3fa2b1a020419d7b5c
Save an existing Timeentry entity
[ { "docid": "aaf2d211e28d9dadd62852d88ffc520d", "score": "0.5976348", "text": "@RequestMapping(\"/saveTaskTimeentries\")\r\n\tpublic ModelAndView saveTaskTimeentries(@RequestParam Integer task_taskId, @ModelAttribute Timeentry timeentries) {\r\n\t\tTask parent_task = taskService.saveTaskTimeentries(task_taskId, timeentries);\r\n\r\n\t\tModelAndView mav = new ModelAndView();\r\n\t\tmav.addObject(\"task_taskId\", task_taskId);\r\n\t\tmav.addObject(\"task\", parent_task);\r\n\t\tmav.setViewName(\"task/viewTask.jsp\");\r\n\t\tmav.addObject(\"persons\", personService.loadPersons());\t\r\n\t\treturn mav;\r\n\t}", "title": "" } ]
[ { "docid": "d4581ecd44b625ed937f44ea39bfe513", "score": "0.63918674", "text": "<S extends PortfolioActivity> S save(S entity, Date currentTime);", "title": "" }, { "docid": "0fa2512d925c8971a6d3bd84a865cab0", "score": "0.6368039", "text": "DeliveryTimeDto save(DeliveryTimeDto deliveryTimeDto) throws ResourceNotFoundException;", "title": "" }, { "docid": "7c82f0609349fabd2c57a71624baf437", "score": "0.6308753", "text": "@PostMapping(\"/entries\")\n\tpublic ResponseEntity<ActivityEntry> saveActivity(@RequestBody ActivityEntry activityEntry ){\n\t\tactivityEntry.setTimestamp(new Timestamp(System.currentTimeMillis()));\n\t\tActivityEntry newEntry= activityRepozytory.save(activityEntry);\n\t\treturn ResponseEntity.ok().body(newEntry);\n\t\t\n\t}", "title": "" }, { "docid": "88ef1c506989e9f477cdd5609f011e5b", "score": "0.61240464", "text": "@PostMapping(\"/saveNewEntry\")\n public String saveEntry(@ModelAttribute(\"newEntry\") Entry newEntry) {\n entryService.save(newEntry);\n return \"redirect:/home\";\n }", "title": "" }, { "docid": "435070d1ca67d1141e2e923c9113343a", "score": "0.60633785", "text": "@Override\r\n\tpublic void save(T entity) {\n\t\t\r\n\t}", "title": "" }, { "docid": "e95b6739cdf8f8ecc1b9bd68ca9dcaa4", "score": "0.6053757", "text": "public void createRecord(TimeSheet t){\n mongoOperations.save(t);\n }", "title": "" }, { "docid": "306ba19ec998001a7d20a9fa07c19c6d", "score": "0.6047102", "text": "void saveOrUpdate(T instance);", "title": "" }, { "docid": "8302c20de5e6e963e35fb5447d35211b", "score": "0.6038778", "text": "void save(Dentist entity);", "title": "" }, { "docid": "f521688cca5f1449eaadbf52b5464ea8", "score": "0.60319835", "text": "Ticket saveTicket(Ticket ticket);", "title": "" }, { "docid": "269309282860ca79170337fefa85b11c", "score": "0.6003899", "text": "void save(Object entity);", "title": "" }, { "docid": "0b107d976631b648bb7776d793ef4a76", "score": "0.5953457", "text": "Landschaftselement save(Landschaftselement entity);", "title": "" }, { "docid": "e9847ee8b365fd67509f272b402b4109", "score": "0.59299886", "text": "T save(final T entityToSave);", "title": "" }, { "docid": "11108003ebbf36f165acafddf50a075c", "score": "0.5909655", "text": "T save(T entity) throws DaoException;", "title": "" }, { "docid": "5f53b23bbcc42f262efcd0ad131dbde0", "score": "0.5876931", "text": "T_DOMAIN_CLASS saveOrUpdate(final T_DOMAIN_CLASS entity);", "title": "" }, { "docid": "696418a2aae62db0a5fddf722ce3916f", "score": "0.5855007", "text": "@RestResource(exported=true)\r\n\t@Override\r\n\tdefault <S extends LocationCabTimeDetail> S save(S arg0) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "49e81c31d776d244e569893bec05322c", "score": "0.58335865", "text": "void saveOrUpdate(E e);", "title": "" }, { "docid": "2102ac518d91eec51299ecc6b2a8af65", "score": "0.57824546", "text": "TimeSlot saveTimeSlot(TimeSlot timeSlot);", "title": "" }, { "docid": "da1c1fec4353e3ca5e822f96d916de14", "score": "0.57739085", "text": "private void saveEntry(LogEntry ent) {\n\t\teventQueue.add(ent);\n\t}", "title": "" }, { "docid": "6afe1578ef6c3176c130b8489e31e5c4", "score": "0.5752199", "text": "public T save(T t);", "title": "" }, { "docid": "6afe1578ef6c3176c130b8489e31e5c4", "score": "0.5752199", "text": "public T save(T t);", "title": "" }, { "docid": "5d2acb8d55b95a1042da940cad88917d", "score": "0.57379025", "text": "@Override\n public Key<HalApiEntity> save() {\n return ofy().save().entity(this).now();\n }", "title": "" }, { "docid": "f5fa3ac63588d3f0471d63b77042c16c", "score": "0.5720855", "text": "int insert(AttendanceTime record);", "title": "" }, { "docid": "2a95e79935f0362c7eae032f03df9b50", "score": "0.5711495", "text": "Serializable save(T entity);", "title": "" }, { "docid": "7f06de3bb86fe1a9c247d47bda235fd8", "score": "0.5707631", "text": "int insert(ClassTime record);", "title": "" }, { "docid": "63bfddd40dc18e07eb172c9cbe0a98df", "score": "0.5705511", "text": "void save(T entity) throws DataConstraintException, Exception;", "title": "" }, { "docid": "110673c4f9519c7a30f0b00e581d4801", "score": "0.5700599", "text": "@Override\n public void save(Object entity) {\n realm().beginTransaction();\n\n try {\n if (entity instanceof Iterable) {\n realm().copyToRealmOrUpdate((Iterable) entity);\n } else if (entity instanceof RealmObject) {\n realm().copyToRealmOrUpdate((RealmObject) entity);\n } else {\n throw new IllegalArgumentException(\"Entity must extend RealmObject\");\n }\n } catch (ClassCastException e) {\n Log.e(\"Dao\", \"Error casting entity with trace: \");\n e.printStackTrace();\n } finally {\n realm().commitTransaction();\n }\n }", "title": "" }, { "docid": "01b67e841827a777235f7fc3707ead0e", "score": "0.56859106", "text": "public void testUpdate() throws Exception {\r\n Connection conn = null;\r\n\r\n try {\r\n conn = UnitTestHelper.getConnection(NAMESPACE, CONNAME);\r\n TimeStatus myTimeStatus = (TimeStatus) getTimeStatus();\r\n TaskType myTaskType = (TaskType) getTaskType();\r\n UnitTestHelper.insertTaskTypes(myTaskType, conn);\r\n UnitTestHelper.insertTimeStatuses(myTimeStatus, conn);\r\n /*\r\n * insert a record to the database in manual:\r\n * primaryID: default: 0\r\n * taskTypesID: default: 0\r\n * timeStatusesID: default: 0\r\n * decription: DESCRIPTION\r\n * entryDate: CREATION_DATE\r\n * hours: default: 0.0F\r\n * billable: default: false\r\n * creationUser: CREATION_USER\r\n * creationDate: CREATION_DATE\r\n * modificationUser: CREATION_USER\r\n * modificationDate: CREATION_DATE\r\n */\r\n TimeEntry myTimeEntry = (TimeEntry) getTimeEntry();\r\n UnitTestHelper.insertTimeEntries(myTimeEntry, conn);\r\n\r\n // update the record and update the billable field to true\r\n myTimeEntry.setBillable(true);\r\n timeEntryDAO.update(myTimeEntry, MODIFICATION_USER);\r\n\r\n /*\r\n * Fetch the record from the database and this record should be:\r\n * primaryID: default: 0\r\n * taskTypesID: default: 0\r\n * timeStatusesID: default: 0\r\n * decription: DESCRIPTION\r\n * entryDate: CREATION_DATE\r\n * hours: default: 0.0F\r\n * billable: default: true\r\n * creationUser: CREATION_USER\r\n * creationDate: CREATION_DATE\r\n * modificationUser: MODIFICATION_USER\r\n * modificationDate: a new date\r\n */\r\n List returnTimeEntrys = UnitTestHelper.selectTimeEntries(conn);\r\n assertEquals(\"record was not properly updated in the database\", 1, returnTimeEntrys.size());\r\n\r\n TimeEntry returnTimeEntry = (TimeEntry) returnTimeEntrys.get(0);\r\n assertEquals(\"record was not properly updated in the database\", CREATION_USER,\r\n returnTimeEntry.getCreationUser());\r\n assertEquals(\"record was not properly updated in the database\", MODIFICATION_USER,\r\n returnTimeEntry.getModificationUser());\r\n\r\n assertFalse(\"record was not properly updated in the database\",\r\n MODIFICATION_DATE.equals(returnTimeEntry.getModificationDate()));\r\n assertTrue(\"record was not properly updated in the database\", returnTimeEntry.isBillable());\r\n\r\n /*\r\n * The myTimeEntry will also be updated\r\n */\r\n assertEquals(\"myTimeEntry was not properly updated\", CREATION_USER, myTimeEntry.getCreationUser());\r\n assertEquals(\"myTimeEntry was not properly updated\", MODIFICATION_USER, myTimeEntry.getModificationUser());\r\n assertTrue(\"myTimeEntry was not properly updated\", CREATION_DATE.equals(myTimeEntry.getCreationDate()));\r\n assertFalse(\"myTimeEntry was not properly updated\",\r\n MODIFICATION_DATE.equals(myTimeEntry.getModificationDate()));\r\n } finally {\r\n UnitTestHelper.closeResources(null, null, conn);\r\n }\r\n }", "title": "" }, { "docid": "cc3d1af61eeaee2f18bdf52709f87cdd", "score": "0.5677571", "text": "@RestResource(exported=true)\r\n\t@Override\r\n\tdefault <S extends LocationCabTimeDetail> S saveAndFlush(S arg0) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d785cc3295500526a0f9af2ef67f3e39", "score": "0.5673807", "text": "void saveOrUpdate(T obj);", "title": "" }, { "docid": "c3044dbb48f63a54c4d4af62cc91aaf2", "score": "0.5656891", "text": "JobExecution save(JobExecution entity);", "title": "" }, { "docid": "dd39e314fb38289ee2c59b687c4710a2", "score": "0.56530434", "text": "@Override\n public void update(Appointment entity) { }", "title": "" }, { "docid": "da1cd7659acf7af13bab841b4b799e20", "score": "0.56351846", "text": "@Override\n\tpublic Booking save(Booking entity) {\n\t\treturn bookingRepository.save(entity);\n\t}", "title": "" }, { "docid": "4849b6e102770667b40a322af6223e0a", "score": "0.56196165", "text": "protected Key<T> save(T entity) {\n return dao.save(entity);\n }", "title": "" }, { "docid": "12d147821cbc3d329060f972d48fbe4f", "score": "0.56180596", "text": "public void persist(Ticket ticket);", "title": "" }, { "docid": "80a12626dd80dd5534ffe837a1cd0311", "score": "0.5615032", "text": "<S extends T> S save(S entity);", "title": "" }, { "docid": "80a12626dd80dd5534ffe837a1cd0311", "score": "0.5615032", "text": "<S extends T> S save(S entity);", "title": "" }, { "docid": "c4f30946f46d11524fd2bcb1c86abe02", "score": "0.5595774", "text": "void saveOrUpdate(T obj) throws Exception;", "title": "" }, { "docid": "722a0e58c6276a5354766af31e3acd20", "score": "0.5590621", "text": "T save(T t) throws CrudServiceException;", "title": "" }, { "docid": "db65491e5cedbb75c9d9b69c029024e6", "score": "0.5570154", "text": "void create(TimesheetRow timesheetRow) {\r\n\t\ttimeSheetRowRepo.save(timesheetRow);\r\n\t}", "title": "" }, { "docid": "ee412e208b1067277e5acc21aee0432d", "score": "0.5568516", "text": "Optional<T> saveNewEntity(final T entity);", "title": "" }, { "docid": "d1ebd087204833f9f9c5d1cf035aa1f2", "score": "0.5552599", "text": "@RequestMapping(\"/editTaskTimeentries\")\r\n\tpublic ModelAndView editTaskTimeentries(@RequestParam Integer task_taskId, @RequestParam Integer timeentries_timeEntryId) {\r\n\t\tTimeentry timeentry = timeentryDAO.findTimeentryByPrimaryKey(timeentries_timeEntryId, -1, -1);\r\n\t\tModelAndView mav = new ModelAndView();\r\n\t\tmav.addObject(\"task_taskId\", task_taskId);\r\n\t\tmav.addObject(\"timeentry\", timeentry);\r\n\t\tmav.setViewName(\"task/timeentries/editTimeentries.jsp\");\r\n\t\tmav.addObject(\"persons\", personService.loadPersons());\t\r\n\t\treturn mav;\r\n\t}", "title": "" }, { "docid": "0213eacbd42ff19bab7fa522ce6e9c44", "score": "0.5548067", "text": "int updateByPrimaryKey(AttendanceTime record);", "title": "" }, { "docid": "eb66a62d43bfc0e03f327e3aad825884", "score": "0.5542531", "text": "public void save(T entity) {\n\t\tem.persist(entity);\n\t}", "title": "" }, { "docid": "cabe37fc70171a2062cd6a39fc9c01ed", "score": "0.5536855", "text": "public T saveOrUpdate(T dto) throws Exception;", "title": "" }, { "docid": "5c3d7e9ad2c20b53aedda904e434e291", "score": "0.55296177", "text": "@Override\n\tpublic <S extends T> S save(S entity) {\n\t\tif(entity.getInserttime()==null) {\n\t\t\tentity.setInserttime(new Date());\n\t\t}\n\t\tif(StringUtils.isEmpty(entity.getInsertUserId())) {\n\t\t\tif(SecurityContextHolder.getContext()!=null && SecurityContextHolder.getContext().getAuthentication()!=null && SecurityContextHolder.getContext().getAuthentication().getPrincipal()!=null) {\n\t\t\t\tUserDetailsAdapter uda = (UserDetailsAdapter) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\t\t\tentity.setInsertUserId(uda.getUser().getId());\n\t\t\t}\n\t\t}\n\t\treturn getBaseRepository().save(entity);\n\t}", "title": "" }, { "docid": "4afc91dab98a471f610d4cfdfa720a9c", "score": "0.55284476", "text": "void save(IPStatEntity ipStatEntity);", "title": "" }, { "docid": "ff056e8a222a30bab7e100654ca8fd4c", "score": "0.5525606", "text": "public int addDay(LocalDateTime s,LocalDateTime e){\n\n Session session = HibernateUtil.getSessionFactory().openSession();\n int result = 0;\n\n try{\n\n\n session.beginTransaction();\n\n result = (int) session.save(new Day(s,e));\n\n session.getTransaction().commit();\n return result;\n }catch (Exception ex){\n session.getTransaction().rollback();\n ex.printStackTrace();\n }finally {\n session.close();\n }\n\n return result;\n }", "title": "" }, { "docid": "8622396f8c1c08869edcde24e555579d", "score": "0.5524551", "text": "Pengumuman saveOrUpdate(Pengumuman Pengumuman);", "title": "" }, { "docid": "6bb9bb9e424ed2ba877f6758e26294eb", "score": "0.55131906", "text": "void save(Board board, TranspositionTableEntry entry);", "title": "" }, { "docid": "c7021c7e78b201b5973305a5bfd6ec93", "score": "0.5502504", "text": "int updateByPrimaryKey(ClassTime record);", "title": "" }, { "docid": "f35869b6a6cf308ed3ca8583ce4aedc9", "score": "0.5492692", "text": "public void saveOrUpdate(Object po);", "title": "" }, { "docid": "36c7f1287cfe6f4a9ea34736fce9e2ef", "score": "0.5487029", "text": "T save(T object);", "title": "" }, { "docid": "36c7f1287cfe6f4a9ea34736fce9e2ef", "score": "0.5487029", "text": "T save(T object);", "title": "" }, { "docid": "ec47d16880a8a17bc21c86f18b22bdd4", "score": "0.54852766", "text": "@Override\r\n\tpublic void saveOrUpdate(List<TDetectionMain2017> t) {\n\t\t\r\n\t}", "title": "" }, { "docid": "e78f3c398abe883064a5aaae43944d2b", "score": "0.5463855", "text": "public void testUpdate2() throws Exception {\r\n Connection conn = null;\r\n\r\n try {\r\n conn = UnitTestHelper.getConnection(NAMESPACE, CONNAME);\r\n TimeStatus myTimeStatus = (TimeStatus) getTimeStatus();\r\n TaskType myTaskType = (TaskType) getTaskType();\r\n UnitTestHelper.insertTaskTypes(myTaskType, conn);\r\n UnitTestHelper.insertTimeStatuses(myTimeStatus, conn);\r\n /*\r\n * insert a record to the database in manual:\r\n * primaryID: default: 0\r\n * taskTypesID: default: 0\r\n * timeStatusesID: default: 0\r\n * decription: DESCRIPTION\r\n * entryDate: CREATION_DATE\r\n * hours: default: 0.0F\r\n * billable: default: false\r\n * creationUser: CREATION_USER\r\n * creationDate: CREATION_DATE\r\n * modificationUser: CREATION_USER\r\n * modificationDate: CREATION_DATE\r\n */\r\n TimeEntry myTimeEntry = (TimeEntry) getTimeEntry();\r\n UnitTestHelper.insertTimeEntries(myTimeEntry, conn);\r\n\r\n // update the record and update the billable field to true\r\n myTimeEntry.setBillable(true);\r\n myTimeEntry.setPrimaryId(10);\r\n timeEntryDAO.update(myTimeEntry, MODIFICATION_USER);\r\n\r\n /*\r\n * for the myTimeEntry does not exist in the database, the record in the database will not change.\r\n * But the myTimeEntry self will be changed\r\n */\r\n List returnTimeEntrys = UnitTestHelper.selectTimeEntries(conn);\r\n assertEquals(\"record was not properly updated in the database\", 1, returnTimeEntrys.size());\r\n\r\n TimeEntry returnTimeEntry = (TimeEntry) returnTimeEntrys.get(0);\r\n assertEquals(\"record was not properly updated in the database\", CREATION_USER,\r\n returnTimeEntry.getCreationUser());\r\n assertEquals(\"record was not properly updated in the database\", CREATION_USER,\r\n returnTimeEntry.getModificationUser());\r\n\r\n assertFalse(\"record was not properly updated in the database\", returnTimeEntry.isBillable());\r\n\r\n /*\r\n * The myTimeEntry will be updated\r\n */\r\n assertEquals(\"myTimeEntry was not properly updated\", CREATION_USER, myTimeEntry.getCreationUser());\r\n assertEquals(\"myTimeEntry was not properly updated\", MODIFICATION_USER, myTimeEntry.getModificationUser());\r\n assertTrue(\"myTimeEntry was not properly updated\", CREATION_DATE.equals(myTimeEntry.getCreationDate()));\r\n assertFalse(\"myTimeEntry was not properly updated\",\r\n MODIFICATION_DATE.equals(myTimeEntry.getModificationDate()));\r\n assertTrue(\"myTimeEntry was not properly updated\", myTimeEntry.isBillable());\r\n } finally {\r\n UnitTestHelper.closeResources(null, null, conn);\r\n }\r\n }", "title": "" }, { "docid": "e8ff429cf6c1ce07363e3dd3bc58184e", "score": "0.546315", "text": "public void save(Object entity) {\n\t\tentityManager.persist(entity);\n\t}", "title": "" }, { "docid": "34a97a5aa9f3e3688dd4ac2f92aa1794", "score": "0.54631495", "text": "public void savePregunta(Pregunta entity) throws Exception;", "title": "" }, { "docid": "8b1cb6c0836350d3f416b6ff4eda9162", "score": "0.54580456", "text": "Booking saveBooking(Booking booking);", "title": "" }, { "docid": "aa9370a7d47901bdc9214d5e307d4b2c", "score": "0.5437657", "text": "Popups save(Popups entity);", "title": "" }, { "docid": "56fbfc4ea31690fd5942700189b04a4d", "score": "0.54329586", "text": "@Override\r\n\tpublic void saveOrUpdate(List<TDetectionMain2018> t) {\n\t\t\r\n\t}", "title": "" }, { "docid": "cfb009646709d7079760b18024c81c92", "score": "0.54320216", "text": "public void submitTimeEntry(long timeEntryId) {\n mView.showLoadingAndDisableFields();\n Calendar date = mView.date();\n String distance = mView.distance();\n String hours = mView.hours();\n String minutes = mView.minutes();\n\n long duration = validateDuration(hours, minutes);\n double distanceValue = validateDistance(distance);\n long distanceLong = computeMeters(distanceValue, mPreferencesManager.getDistanceUnits());\n\n if (distanceLong > 0 && duration > 0)\n processTimeEntry(timeEntryId, date, distanceLong, duration);\n else mView.hideLoadingAndEnableFields();\n }", "title": "" }, { "docid": "f7619d346eed2b94034219069eea015a", "score": "0.5424077", "text": "@Override\n public <S extends T> S save(S entity) {\n return null;\n }", "title": "" }, { "docid": "678215467a6313d48bdd0a0e471789c3", "score": "0.542049", "text": "Feldblock save(Feldblock entity);", "title": "" }, { "docid": "d1e13baa2502ac967df290bcbe185c2e", "score": "0.5413284", "text": "@Override\n\tpublic void save(Task task) {\n\t\tSession session = entityManager.unwrap(Session.class);\n\t\tsession.saveOrUpdate(task);\n\n\t}", "title": "" }, { "docid": "14de02f7823c447a592d1aaf8e542acb", "score": "0.5408981", "text": "public void addPointInTime(long timestamp) {\n\n\t\t// Guava's multimap does not accept null values so we \n\t\t// create a 'null like record'\n\t\ttimeline.put(timestamp, new UpdateRecord(null, null));\n\t}", "title": "" }, { "docid": "b8cbcfe301516d45e8776f2952ee22cb", "score": "0.54067177", "text": "public T update(Object entityId ,T t);", "title": "" }, { "docid": "cb793e71ec2681bebd50b75ec6bc1ab2", "score": "0.54055446", "text": "public void writeAuditEntry(String entry) throws FlooringPersistenceException;", "title": "" }, { "docid": "c208d9fde05dd385cefdf55373543d80", "score": "0.53963107", "text": "public void save(Blog entity) {\n\n }", "title": "" }, { "docid": "0f696946515bbd944e9e3297c56bdfe1", "score": "0.53870505", "text": "@Transactional\n\t@Override\n\tpublic void save(Triggertype entity) {\n\t\tentityManager.persist(entity);\n\t\t\n\t}", "title": "" }, { "docid": "4209753c176068443351c24812571ab9", "score": "0.5376602", "text": "T save(T object) throws PersistenceServiceException;", "title": "" }, { "docid": "8205225a8d5b8ad92eed0e995727ad09", "score": "0.53721", "text": "public int addShift(int dayId,int empId,LocalDateTime s,LocalDateTime e){\n\n int result= 0;\n\n Session session = HibernateUtil.getSessionFactory().openSession();\n\n try{\n\n session.beginTransaction();\n\n char type = setShiftType(s,e);\n Day day = new Day();\n day.setDayId(dayId);\n\n Shift shift = new Shift(day,s,e,type);\n\n result = (int) session.save(shift);\n\n session.getTransaction().commit();\n\n }catch (Exception ex){\n session.getTransaction().rollback();\n ex.printStackTrace();\n }finally {\n session.close();\n }\n\n return result;\n }", "title": "" }, { "docid": "97282f91800056f3c68abf9340065536", "score": "0.5371713", "text": "public boolean save(T entity) {\n\t\tif (entity == null)\n\t\t\treturn false;\n\t\treturn insert(entity);\n\t}", "title": "" }, { "docid": "fee072c681a27c41634d482c2809a80a", "score": "0.53665864", "text": "boolean updateEntry(ExpenseEntry entry) throws PersistenceException;", "title": "" }, { "docid": "3b0200711655cf52f300abf7a03ac2dc", "score": "0.53633076", "text": "public <T> void putObjectMV(String rowKey, T t, long timestamp);", "title": "" }, { "docid": "25b6bd20e552617cbdc296a8ef895c23", "score": "0.5362374", "text": "public DPassage persist(Object timingsKey, \t\n\t\tjava.lang.Long id, \n\t\tjava.util.Date passageTime, \n\t\tse.bassac.roster.domain.DCheckpoint checkpoint) {\n\n DPassage domain = null;\n // if primaryKey specified, use it\n if (null != id) {\n domain = findByPrimaryKey(timingsKey, id);\n }\n\t\t\n // create new?\n if (null == domain) {\n domain = new DPassage();\n // set parent\n domain.setTimingsKey((java.lang.Object) timingsKey);\n // generate Id?\n if (null != id) {\n domain.setId(id);\n }\n // fields\n domain.setPassageTime(passageTime);\n // one-to-ones\n // many-to-ones\n domain.setCheckpoint(checkpoint);\n\t\t\t\n persist(domain);\n }\n return domain;\n\t}", "title": "" }, { "docid": "a48bedaf9056eea66f945a5385a223aa", "score": "0.53621465", "text": "E update(E entity);", "title": "" }, { "docid": "a48bedaf9056eea66f945a5385a223aa", "score": "0.53621465", "text": "E update(E entity);", "title": "" }, { "docid": "042f97a20a9de77271dcb846a5a86a50", "score": "0.5360076", "text": "void saveOrUpdate(T detachedInstance);", "title": "" }, { "docid": "2418caaaa9fca08cad34196ba6517e84", "score": "0.53597146", "text": "void save(T t);", "title": "" }, { "docid": "352d520ab20e3610fbd85fcfef3cc18d", "score": "0.53486055", "text": "@Override\r\n\tpublic void save(Entite ent) {\n\t\tif(s ==null)\r\n\t\t\ts = HibernateSessionFactory.getSession();\r\n\t\tTransaction tx = s.beginTransaction();\r\n\t\ts.saveOrUpdate(ent);\r\n\t\ttx.commit();\r\n\r\n\t}", "title": "" }, { "docid": "62da8be141f227ff6eb13283fa95fbd7", "score": "0.5346042", "text": "protected void update(T entity) {\n getSession().saveOrUpdate(entity);\n }", "title": "" }, { "docid": "17b0bd6eaa03f83a8b04227e5da5773e", "score": "0.53454316", "text": "Note saveOrUpdate(Note note);", "title": "" }, { "docid": "73f4d55bca5eac5be8fd68fbd8afdf69", "score": "0.53435636", "text": "long save();", "title": "" }, { "docid": "b3d6d75d7aa97542245d631d91255fba", "score": "0.53303224", "text": "private EventEngineTask saveTask() {\n final TaskCU taskIn = buildCreateTask();\n\n final EventEngineTask eventEngineTask = new EventEngineTask()\n .setId(UUID.randomUUID())\n .setName(taskIn.getName())\n .setTenantId(\"t-1\")\n .setTaskParameters(taskIn.getTaskParameters())\n .setMonitoringSystem(taskIn.getMonitoringSystem())\n .setPartition(0);\n return eventEngineTaskRepository.save(eventEngineTask);\n }", "title": "" }, { "docid": "679ba02ed2694077a1978adbbefe8cba", "score": "0.5315626", "text": "@Transactional\r\n\t@Override\r\n\tpublic void save(Logs t) {\n\t\t\r\n\t\tmapper.insertSelective(t);\r\n\t}", "title": "" }, { "docid": "7b7aafa1b326a2030ac9e674b97ddf7c", "score": "0.5314491", "text": "int insert(TimeZoneLeapSecond record);", "title": "" }, { "docid": "c127cbe2021efbf81bc7ee6936932e96", "score": "0.5303798", "text": "@RequiresApi(api = Build.VERSION_CODES.O)\n @Override\n public void onClick(View v)\n {\n String startlocation = start.getText().toString();\n String endlocation = end.getText().toString();\n String miles = submit.getText().toString();\n\n //if user did not change date, puts current date into time[0]\n if(time[0].equals(\"\"))\n {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy/MM/dd\");\n LocalDateTime now = LocalDateTime.now();\n String date = dtf.format(now).toString();\n\n time[0]= date.toString();\n }\n\n //starts database from fragment\n Database db = new Database(getActivity());\n boolean test = db.addOne(miles,startlocation,endlocation,time[0]);\n //clears text field\n submit.getText().clear();\n start.getText().clear();\n end.getText().clear();\n\n //toast message on submit\n Toast.makeText(getActivity().getApplicationContext(), \"Your information has been submitted!\" , Toast.LENGTH_LONG).show();\n\n }", "title": "" }, { "docid": "bb6aab359ec3b652beff155c96a9d256", "score": "0.5293062", "text": "@Override\n\tpublic void save() {\n\t\tsuper.save();\n\t}", "title": "" }, { "docid": "fe6e89384acee730e534216f08690cd4", "score": "0.52859896", "text": "public boolean saveTimeOfDay(Connection establishedConnection, int time_of_day_id){\n String query = \"UPDATE form_semester_info \" +\n \"SET time_of_day_id=\" + time_of_day_id +\n \" WHERE preference_form_id = \" + this.preference_form_id + \" AND semester='\" + this.semester + \"'\";\n\n Statement statement = null;\n try{\n statement = establishedConnection.createStatement();\n statement.executeUpdate(query);\n this.time_of_day_id = time_of_day_id;\n return true;\n }catch (Exception e){\n System.out.println(\"Error: \"+e.getMessage());\n return false;\n } finally {\n clean(null, statement);\n }\n }", "title": "" }, { "docid": "d5a3f11ff9e9782110d2297442b1c558", "score": "0.52801013", "text": "public void saveTeam(TeamDto e){\n\t\t\tteamDao.saveTeam(e);\n\t\t}", "title": "" }, { "docid": "997959c8924679f0bf8a579ab78a72e4", "score": "0.5280062", "text": "@Override\n\tpublic void save(Commend t) {\n\t\t dao.save(t);\n\t}", "title": "" }, { "docid": "af4f26c293d3756d1243d98b0b8c37aa", "score": "0.52792996", "text": "public boolean addEntry2Datastore(Entry entry){\n if(getEntryByIdentifier(entry.getId(), entry.getPhoneId()) != null) {\n mLogger.log(Level.INFO, \"Entry already in datastore \");\n return false;\n } else{\n\n Entity entity = new Entity(Entry.ENTITY_NAME, entry.getId() + \" \" + entry.getPhoneId(), getParentKey());\n entity.setProperty(Entry.PHONE_ID, entry.getPhoneId());\n entity.setProperty(Entry.ID, entry.getId());\n entity.setProperty(Entry.TITLE, entry.getTitle());\n entity.setProperty(Entry.AUTHOR, entry.getAuthor());\n entity.setProperty(Entry.GENRE, entry.getGenre());\n entity.setProperty(Entry.RATING, entry.getRating());\n entity.setProperty(Entry.COMMENT, entry.getComment());\n entity.setProperty(Entry.STATUS, entry.getStatus());\n entity.setProperty(Entry.LOCATION_LIST, entry.getLocationList());\n entity.setProperty(Entry.PAGES_LIST, entry.getPageList());\n entity.setProperty(Entry.TIMES_LIST, entry.getTimeList());\n entity.setProperty(Entry.PAGES, entry.getTotalPages());\n\n mDatastore.put(entity);\n\n mLogger.log(Level.INFO, \"Entry added \");\n return true;\n }\n }", "title": "" }, { "docid": "b627fbb297c22f146fd3de53020879f2", "score": "0.5274835", "text": "public boolean onSave(Object entity,\n\t Serializable id,\n\t Object[] state,\n\t String[] propertyNames,\n\t Type[] types) {\n\t if ( entity instanceof FoodEntry ) {\n\t \t FoodEntry foodEntry = (FoodEntry) entity;\n\t \t System.out.println(this.getClass().getSimpleName() +\">>>>\"+\"Create/Insert Operation : \" + foodEntry.getFoodId());\n\t \t inserts.add(foodEntry);\n\t \t return true; \n\t }\n\t return false;\n\t }", "title": "" }, { "docid": "ad52f25f30196c852b8f7151ccbef9be", "score": "0.5272592", "text": "Landschaftselement update(Landschaftselement entity);", "title": "" }, { "docid": "5945117c54a9c96e81bdc3ca6be768d6", "score": "0.526398", "text": "@Override\n public Event save(Event entity) {\n try (Connection connection = DriverManager.getConnection(url, username, password)) {\n String command = \"INSERT INTO events \" +\n \"(\\\"Name\\\", \\\"DateStart\\\", \\\"DateEnd\\\", \\\"Organization\\\", \\\"Description\\\", \\\"Location\\\", \\\"Category\\\", \\\"PhotoURL\\\", \\\"OrganizerID\\\") VALUES \" +\n \"('\" + entity.getName() + \"', \" +\n \"'\" + entity.getStartDate() + \"', \" +\n \"'\" + entity.getEndDate() + \"', \" +\n \"'\" + entity.getOrganization() + \"', \" +\n \"'\" + entity.getDescription() + \"', \" +\n \"'\" + entity.getLocation() + \"', \" +\n \"'\" + entity.getCategory() + \"', \" +\n \"'\" + entity.getPhotoURL() + \"', \" +\n \"\" + entity.getOrganizer().getId() + \") \" +\n \"RETURNING *\";\n PreparedStatement preparedStatement = connection.prepareStatement(command);\n try {\n ResultSet resultSet = preparedStatement.executeQuery();\n if (resultSet.next()) {\n return getEvent(resultSet);\n }\n } catch (PSQLException e) {\n return null;\n }\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "ef46e998a720d9cb381e609bf7416477", "score": "0.5255662", "text": "<T> T save(T o);", "title": "" }, { "docid": "bed3bb64b02f7fbf927edd84d6d7663f", "score": "0.52546096", "text": "public void saveTask(View v) {\n if (edit_text.getText().toString().trim().length() > 0) {\n\n if (isModify) {\n mydb.updateTask(task_id, edit_text.getText().toString(), new SimpleDateFormat(\"yyyy-MM-dd\").format(calendar.getTime()),timeText.getText().toString());\n Toast.makeText(getApplicationContext(), \"Task Updated.\", Toast.LENGTH_SHORT).show();\n } else {\n mydb.insertTask(edit_text.getText().toString(), new SimpleDateFormat(\"yyyy-MM-dd\").format(calendar.getTime()),timeText.getText().toString());\n Toast.makeText(getApplicationContext(), \"Task Added.\", Toast.LENGTH_SHORT).show();\n }\n finish();\n\n } else {\n Toast.makeText(getApplicationContext(), \"Empty task can't be saved.\", Toast.LENGTH_SHORT).show();\n }\n\n }", "title": "" }, { "docid": "6576cea0e36c0443e399bb694f6a2493", "score": "0.5248472", "text": "void save(T object) throws Exception;", "title": "" }, { "docid": "eb2441b836968c7e90d00fa3d551fd52", "score": "0.52415603", "text": "@Override\n\tpublic Day save(Day day) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "62de2ea684dfc5f507c73b98c5832b67", "score": "0.52405196", "text": "void save( T object );", "title": "" } ]
176e6d7423cfb26135d0b9b3c3709bc6
Sets the confirm o k of this payment request.
[ { "docid": "d1a7b0c983c6f5491f05dd5284ab5f91", "score": "0.61461884", "text": "public void setConfirmOK(int confirmOK);", "title": "" } ]
[ { "docid": "12f1e90501581447cd5e27832f033c66", "score": "0.6131112", "text": "public Builder setConfirmRate(gfp2p.Api.RequestConfirmRate value) {\n if (confirmRateBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n value_ = value;\n onChanged();\n } else {\n confirmRateBuilder_.setMessage(value);\n }\n valueCase_ = 8;\n return this;\n }", "title": "" }, { "docid": "8d694a5391b39acf7c9743ccf3f36563", "score": "0.60000193", "text": "public void setNeedConfirm(int needConfirm) {\n\t\t\tif (needConfirm == NeedConfirmEnum.NOT_NEED.getValue())\n\t\t\t\treturn;\n\t\t\tthis.needConfirm = needConfirm;\n\t\t}", "title": "" }, { "docid": "5428e65bc1949d9f4bcaf90cc1984725", "score": "0.5873203", "text": "public InventoryItem setConfirm(boolean confirm) {\n this.confirm = confirm;\n return this;\n }", "title": "" }, { "docid": "282f34ac8f931f11cb07c2b517fdfbef", "score": "0.58528143", "text": "public Builder setConfirmRate(gfp2p.Api.ResponseConfirmRate value) {\n if (confirmRateBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n value_ = value;\n onChanged();\n } else {\n confirmRateBuilder_.setMessage(value);\n }\n valueCase_ = 8;\n return this;\n }", "title": "" }, { "docid": "b9354671d007ec22f0f1cf1f100546fc", "score": "0.5839412", "text": "public Builder setConfirmRate(gfp2p.Api.EventConfirmRate value) {\n if (confirmRateBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n value_ = value;\n onChanged();\n } else {\n confirmRateBuilder_.setMessage(value);\n }\n valueCase_ = 8;\n return this;\n }", "title": "" }, { "docid": "c7466ccdaf2c9e569e8d529d05eb22bc", "score": "0.57065135", "text": "public void setConfirm(String trader, boolean confirm) {\n if(isConfirmed.containsKey(trader)){\n isConfirmed.replace(trader, confirm);\n }else{\n isConfirmed.put(trader, confirm);\n }\n }", "title": "" }, { "docid": "cee0e5c7e1a374949e3a48ed73d614eb", "score": "0.55960155", "text": "public gfp2p.Api.RequestConfirmRateOrBuilder getConfirmRateOrBuilder() {\n if (valueCase_ == 8) {\n return (gfp2p.Api.RequestConfirmRate) value_;\n }\n return gfp2p.Api.RequestConfirmRate.getDefaultInstance();\n }", "title": "" }, { "docid": "74bec150ad0ea020e64e06b20bc16a9c", "score": "0.54715645", "text": "public void confirmCode(ConfirmRequest request){\n if(!Profile.getUserInstance().needToConfirmSignUp()) {\n //auth.SignUserIn(new SignInRequest(request.getPassword(), request.getHandle()));\n }\n }", "title": "" }, { "docid": "c9d23b48d7b18778d06c1cac5c4d8b1d", "score": "0.54379296", "text": "public void setConfirmed(boolean confirmed) {\n this.confirmed = confirmed;\n }", "title": "" }, { "docid": "d2a5a5e2729981b8069e72a2c84c3358", "score": "0.54371536", "text": "void setCanConfirm(boolean canConfirm);", "title": "" }, { "docid": "d1f23c4af7f5d74e2f46cba7f0985be4", "score": "0.54002976", "text": "public void setFECHAULTCONFIRM(int value) {\n this.fechaultconfirm = value;\n }", "title": "" }, { "docid": "9e87a4e6a602d3d957118ac24964e9c2", "score": "0.5387976", "text": "public gfp2p.Api.RequestConfirmRateOrBuilder getConfirmRateOrBuilder() {\n if ((valueCase_ == 8) && (confirmRateBuilder_ != null)) {\n return confirmRateBuilder_.getMessageOrBuilder();\n } else {\n if (valueCase_ == 8) {\n return (gfp2p.Api.RequestConfirmRate) value_;\n }\n return gfp2p.Api.RequestConfirmRate.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "f710d5755731dd9c71233cbe284a6ada", "score": "0.5382925", "text": "public gfp2p.Api.RequestConfirmRate getConfirmRate() {\n if (valueCase_ == 8) {\n return (gfp2p.Api.RequestConfirmRate) value_;\n }\n return gfp2p.Api.RequestConfirmRate.getDefaultInstance();\n }", "title": "" }, { "docid": "e25a2158e468bcf4bdb7b2d1c71c7e6b", "score": "0.53817093", "text": "public void setBothConfirm(boolean b){\n for(String s:isConfirmed.keySet()){\n isConfirmed.replace(s, b);\n }\n }", "title": "" }, { "docid": "d0b8801b453763cecef80ae70fa460d5", "score": "0.5358507", "text": "public Builder setConfirmRate(\n gfp2p.Api.RequestConfirmRate.Builder builderForValue) {\n if (confirmRateBuilder_ == null) {\n value_ = builderForValue.build();\n onChanged();\n } else {\n confirmRateBuilder_.setMessage(builderForValue.build());\n }\n valueCase_ = 8;\n return this;\n }", "title": "" }, { "docid": "a33f07a9033dec38f5bf6b7f4ff473fd", "score": "0.5313912", "text": "public void setConfirmPassword(String confirmPassword) {\n this.confirmPassword = confirmPassword;\n }", "title": "" }, { "docid": "f9670ab48585f09e9c5bb495b41d84bd", "score": "0.5294995", "text": "public Builder mergeConfirmRate(gfp2p.Api.RequestConfirmRate value) {\n if (confirmRateBuilder_ == null) {\n if (valueCase_ == 8 &&\n value_ != gfp2p.Api.RequestConfirmRate.getDefaultInstance()) {\n value_ = gfp2p.Api.RequestConfirmRate.newBuilder((gfp2p.Api.RequestConfirmRate) value_)\n .mergeFrom(value).buildPartial();\n } else {\n value_ = value;\n }\n onChanged();\n } else {\n if (valueCase_ == 8) {\n confirmRateBuilder_.mergeFrom(value);\n }\n confirmRateBuilder_.setMessage(value);\n }\n valueCase_ = 8;\n return this;\n }", "title": "" }, { "docid": "1f1d5221a85e3708ef0834f8f937e002", "score": "0.52820116", "text": "default void confirm() {\n confirm(true, null);\n }", "title": "" }, { "docid": "aea69de66ad4cc2befda2120e9ac83c1", "score": "0.5279235", "text": "public int getNeedConfirm() {\n\t\t\treturn needConfirm;\n\t\t}", "title": "" }, { "docid": "c6cf808f537937a367228d7c8f83f2c0", "score": "0.52312744", "text": "public void setConfirmedAt(String token) {\n // get token by UUID\n getConfirmationToken(token)\n // confirm with current time\n .setConfirmedAt(LocalDateTime.now());\n }", "title": "" }, { "docid": "7f42565ac52829b0039fd267b3fac3b3", "score": "0.5199286", "text": "public final void mT__61() throws RecognitionException {\n try {\n int _type = T__61;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../com.x.xocl/src-gen/com/x/xocl/parser/antlr/internal/InternalXOCL.g:61:7: ( 'confirm' )\n // ../com.x.xocl/src-gen/com/x/xocl/parser/antlr/internal/InternalXOCL.g:61:9: 'confirm'\n {\n match(\"confirm\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "899187e49a6493032e5a104300eb1e49", "score": "0.5138772", "text": "public void setConfirmTime(Date confirmTime) {\n this.confirmTime = confirmTime;\n }", "title": "" }, { "docid": "d792148fa10f1e6091b4a2747cd98557", "score": "0.5126737", "text": "public gfp2p.Api.ResponseConfirmRateOrBuilder getConfirmRateOrBuilder() {\n if (valueCase_ == 8) {\n return (gfp2p.Api.ResponseConfirmRate) value_;\n }\n return gfp2p.Api.ResponseConfirmRate.getDefaultInstance();\n }", "title": "" }, { "docid": "976c8af17d4db6350370a7102df9ae13", "score": "0.51248145", "text": "public gfp2p.Api.EventConfirmRateOrBuilder getConfirmRateOrBuilder() {\n if (valueCase_ == 8) {\n return (gfp2p.Api.EventConfirmRate) value_;\n }\n return gfp2p.Api.EventConfirmRate.getDefaultInstance();\n }", "title": "" }, { "docid": "5dbe873a70594f67665c1c2228dfe9fd", "score": "0.5089403", "text": "public Builder setConfirmRate(\n gfp2p.Api.ResponseConfirmRate.Builder builderForValue) {\n if (confirmRateBuilder_ == null) {\n value_ = builderForValue.build();\n onChanged();\n } else {\n confirmRateBuilder_.setMessage(builderForValue.build());\n }\n valueCase_ = 8;\n return this;\n }", "title": "" }, { "docid": "3cb00a8ebb78bfb34712e99d8a283932", "score": "0.5058787", "text": "gfp2p.Api.RequestConfirmRateOrBuilder getConfirmRateOrBuilder();", "title": "" }, { "docid": "5a2c8f6b26e94c851d31d0bd28b20047", "score": "0.50523", "text": "@Override\r\n\t\t\tpublic void onConfirm(String result) {\n\t\t\t\tfinal LoadingDialog dialog = new LoadingDialog(mContext, \"正在发送退款请求\");\r\n\t\t\t\tdialog.show();\r\n\t\t\t\tint order_id = order.getOrder_id();\r\n\t\t\t\tHttpUtils httpUtils = BaseApplication.httpUtils;\r\n\t\t\t\tRequestParams params = new RequestParams();\r\n\t\t\t\tparams.addBodyParameter(\"key\", AppConstants.KEY);\r\n\t\t\t\tparams.addBodyParameter(\"action\", \"refues\");\r\n\t\t\t\tparams.addBodyParameter(\"orderid\", String.valueOf(order_id));\r\n\t\t\t\thttpUtils.send(HttpMethod.POST, AppConstants.GETORDER, params, new RequestCallBack<String>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\r\n\t\t\t\t\t\tNetUtils.coonFairException(arg1, mContext);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\r\n\t\t\t\t\t\tString result = arg0.result;\r\n\t\t\t\t\t\tJSONObject jsonObject;\r\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tjsonObject = new JSONObject(result);\r\n\t\t\t\t\t\t\tint state = jsonObject.optInt(\"state\");\r\n\t\t\t\t\t\t\tString results = jsonObject.optString(\"result\");\r\n\t\t\t\t\t\t\tif (state == 200) {\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tToastUtil.show(mContext, results);\r\n\t\t\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t\t\t} else if (state == 201) {\r\n\t\t\t\t\t\t\t\tToastUtil.show(mContext, results);\r\n\t\t\t\t\t\t\t} else if (state == 405) {\r\n\t\t\t\t\t\t\t\tToastUtil.show(mContext, results);\r\n\t\t\t\t\t\t\t\tIntent intent = new Intent(\"com.nightfair.buyer.action.login\");\r\n\t\t\t\t\t\t\t\tstartActivityForResult(intent, 2);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}", "title": "" }, { "docid": "942be69ec2a3ebc2711719f9263df500", "score": "0.50492424", "text": "public gfp2p.Api.RequestConfirmRate getConfirmRate() {\n if (confirmRateBuilder_ == null) {\n if (valueCase_ == 8) {\n return (gfp2p.Api.RequestConfirmRate) value_;\n }\n return gfp2p.Api.RequestConfirmRate.getDefaultInstance();\n } else {\n if (valueCase_ == 8) {\n return confirmRateBuilder_.getMessage();\n }\n return gfp2p.Api.RequestConfirmRate.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "6a6ea6e43b4aa5585f0ac8423d2276b2", "score": "0.50473696", "text": "public void setPasswordConfirm(String passwordConfirm) {\n this.passwordConfirm = passwordConfirm;\n }", "title": "" }, { "docid": "c75038dcbbd81396c454c0eaebd2dac3", "score": "0.5029374", "text": "public Builder setConfirmRate(\n gfp2p.Api.EventConfirmRate.Builder builderForValue) {\n if (confirmRateBuilder_ == null) {\n value_ = builderForValue.build();\n onChanged();\n } else {\n confirmRateBuilder_.setMessage(builderForValue.build());\n }\n valueCase_ = 8;\n return this;\n }", "title": "" }, { "docid": "5ba5456e763297690a995f619e177165", "score": "0.50280666", "text": "public gfp2p.Api.EventConfirmRateOrBuilder getConfirmRateOrBuilder() {\n if ((valueCase_ == 8) && (confirmRateBuilder_ != null)) {\n return confirmRateBuilder_.getMessageOrBuilder();\n } else {\n if (valueCase_ == 8) {\n return (gfp2p.Api.EventConfirmRate) value_;\n }\n return gfp2p.Api.EventConfirmRate.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "e65d9f3918b7c17acb75bf011a8dc1e4", "score": "0.5020978", "text": "public Builder mergeConfirmRate(gfp2p.Api.EventConfirmRate value) {\n if (confirmRateBuilder_ == null) {\n if (valueCase_ == 8 &&\n value_ != gfp2p.Api.EventConfirmRate.getDefaultInstance()) {\n value_ = gfp2p.Api.EventConfirmRate.newBuilder((gfp2p.Api.EventConfirmRate) value_)\n .mergeFrom(value).buildPartial();\n } else {\n value_ = value;\n }\n onChanged();\n } else {\n if (valueCase_ == 8) {\n confirmRateBuilder_.mergeFrom(value);\n }\n confirmRateBuilder_.setMessage(value);\n }\n valueCase_ = 8;\n return this;\n }", "title": "" }, { "docid": "676ef4527f0b194cf1dc987834885a97", "score": "0.5018531", "text": "public Builder mergeConfirmRate(gfp2p.Api.ResponseConfirmRate value) {\n if (confirmRateBuilder_ == null) {\n if (valueCase_ == 8 &&\n value_ != gfp2p.Api.ResponseConfirmRate.getDefaultInstance()) {\n value_ = gfp2p.Api.ResponseConfirmRate.newBuilder((gfp2p.Api.ResponseConfirmRate) value_)\n .mergeFrom(value).buildPartial();\n } else {\n value_ = value;\n }\n onChanged();\n } else {\n if (valueCase_ == 8) {\n confirmRateBuilder_.mergeFrom(value);\n }\n confirmRateBuilder_.setMessage(value);\n }\n valueCase_ = 8;\n return this;\n }", "title": "" }, { "docid": "9b7e9ef02e9d5949ff5a387b5835de53", "score": "0.49925622", "text": "public void onConfirmClicked() {\n String c = m80478c();\n m80479d();\n this.confirm.setImageResource(this.f64647c);\n this.f64651g = ObjectAnimator.ofFloat(this.confirm, \"rotation\", new float[]{0.0f, 360.0f});\n this.f64651g.setDuration(800);\n int i = 1;\n this.f64651g.setRepeatMode(1);\n this.f64651g.setRepeatCount(-1);\n this.f64651g.addListener(new AnimatorListenerAdapter() {\n public final void onAnimationCancel(Animator animator) {\n PoiCouponInputActivity.this.confirm.setRotation(0.0f);\n }\n });\n this.f64651g.start();\n if (this.f64649e != 1) {\n i = 0;\n }\n C18253l a = CouponRedeemApi.m80560a(c, i);\n a.mo6818a(new C24753h(this, a, c), C23364n.f61448a);\n }", "title": "" }, { "docid": "8d99ebd28152a931821d79e4d2402c59", "score": "0.49648228", "text": "public gfp2p.Api.ResponseConfirmRateOrBuilder getConfirmRateOrBuilder() {\n if ((valueCase_ == 8) && (confirmRateBuilder_ != null)) {\n return confirmRateBuilder_.getMessageOrBuilder();\n } else {\n if (valueCase_ == 8) {\n return (gfp2p.Api.ResponseConfirmRate) value_;\n }\n return gfp2p.Api.ResponseConfirmRate.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "21066beb84ebf337c0262886244c4ae6", "score": "0.49612942", "text": "public void setConfirmationKeyFieldName(final String value) {\n setProperty(CONFIRMATION_KEY_FIELD_NAME_KEY, value);\n }", "title": "" }, { "docid": "99bc18e4f4e05cafbffba0e6d4e3aff6", "score": "0.49345258", "text": "@Override\r\n\t\t\t\t\t\t\tpublic void OnConfirm() {\n\t\t\t\t\t\t\t\tList<HashMap<String, String>> itemlist = (List<HashMap<String, String>>) map\r\n\t\t\t\t\t\t\t\t\t\t.get(\"OrderRows\");\r\n\t\t\t\t\t\t\t\tDelorCancelOrder(\"CancelOrder\", itemlist.get(0)\r\n\t\t\t\t\t\t\t\t\t\t.get(\"OrderId\"), position);\r\n\t\t\t\t\t\t\t\tConfirmView = null;\r\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "cd3b9cf6474c9ae4f817c352d4e049ea", "score": "0.4906314", "text": "public gfp2p.Api.EventConfirmRate getConfirmRate() {\n if (valueCase_ == 8) {\n return (gfp2p.Api.EventConfirmRate) value_;\n }\n return gfp2p.Api.EventConfirmRate.getDefaultInstance();\n }", "title": "" }, { "docid": "f6aa4ec0b657ed1b57befcd6d50d9198", "score": "0.49009258", "text": "@Override\n\tpublic void setConfirmTime(int confirmTime) {\n\t\t_noticeShipMessage.setConfirmTime(confirmTime);\n\t}", "title": "" }, { "docid": "76ede433ce2cfc4c32b73901fdba96f4", "score": "0.48691553", "text": "public gfp2p.Api.ResponseConfirmRate getConfirmRate() {\n if (valueCase_ == 8) {\n return (gfp2p.Api.ResponseConfirmRate) value_;\n }\n return gfp2p.Api.ResponseConfirmRate.getDefaultInstance();\n }", "title": "" }, { "docid": "ae93a7c33ded38db6a845c4bb3f3ad31", "score": "0.4843633", "text": "@Override\r\n\t\t\t\t\t\t\tpublic void OnConfirm() {\n\t\t\t\t\t\t\t\tList<HashMap<String, String>> itemlist = (List<HashMap<String, String>>) map\r\n\t\t\t\t\t\t\t\t\t\t.get(\"OrderRows\");\r\n\t\t\t\t\t\t\t\tDelorCancelOrder(\"DeleteOrder\", itemlist.get(0)\r\n\t\t\t\t\t\t\t\t\t\t.get(\"OrderId\"), position);\r\n\t\t\t\t\t\t\t\tConfirmView = null;\r\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "cb5bdc2220c6b8f492bac8772b3a235d", "score": "0.484362", "text": "public void setKonto(Konto konto) throws RemoteException;", "title": "" }, { "docid": "9fd020399c0b0ca018d2231772f18ed2", "score": "0.48417774", "text": "@Override\n public void confirmParticipationOfATeam(ITransferContestHasTeams transferTeamHasContest, boolean confirm, String comment, boolean paid) {\n IContestHasTeam contestHasTeam = ((IHasModel<IContestHasTeam>) this.transferContestHasTeams).getModel();\n contestHasTeam.setComment(comment);\n contestHasTeam.setConfirmed(confirm);\n contestHasTeam.setPaid(paid);\n }", "title": "" }, { "docid": "4c6f977f36712f38afedff7b3e4196d3", "score": "0.48284435", "text": "public void setConfirmMsg(String msg) {\n if (deleteAction != null) {\n deleteAction.setConfirmMsg(msg);\n }\n if (forceAction != null) {\n forceAction.setConfirmMsg(msg);\n }\n }", "title": "" }, { "docid": "09dde0e7b3fcdc6d2685c705c16cbd0c", "score": "0.48207128", "text": "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response confirmPaid(@Auth ConfirmPaymentRequest confirmPaymentRequest) {\n final Timer.Context context = timer.time();\n try {\n LoggingService.log(tag, INFO, \"ConfirmPaymentRequest from Salesforce: \" + confirmPaymentRequest,\n ConfirmPaymentResource.class);\n \n confirmHelper.confirm(confirmPaymentRequest);\n return Response.ok(\"Payment confirmed for package \" + confirmPaymentRequest.getPackageIdentifier()).build();\n\n } finally {\n context.stop();\n }\n }", "title": "" }, { "docid": "8cd913d5c8b400eb401a6edfa6dc32e7", "score": "0.48202723", "text": "protected void onConfirmationOk(int confirmationId, Object anObject) {\r\n\r\n\t}", "title": "" }, { "docid": "bb1a18201215ddbf39c9ad40ac3b8c09", "score": "0.48014647", "text": "public gfp2p.Api.RequestConfirmRate.Builder getConfirmRateBuilder() {\n return getConfirmRateFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "2cb2cad1011892996c66deeab3202568", "score": "0.47890553", "text": "private RequestConfirmRate(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "205b21c44b0ccdbf587c6190bb75d9e6", "score": "0.4761614", "text": "public void doConfirm() {\n\t\t\t\t\t\t\t\t\t\tMap<String, String> map;\n\t\t\t\t\t\t\t\t\t\tmap = JSONCommand.JSON10035(\"6\", \"1\",\n\t\t\t\t\t\t\t\t\t\t\t\tfriend.getPayuserid(),\n\t\t\t\t\t\t\t\t\t\t\t\tfriend.getHxusername());\n\n\t\t\t\t\t\t\t\t\t\tServerAsyncHttpTask.execute(map,\n\t\t\t\t\t\t\t\t\t\t\t\tnew UpdateUIInterface() {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void updateUI(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tObject model) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tBoolean stateBoolean = (Boolean) model;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (stateBoolean) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmContext,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"删除好友成功!\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 删除好友成功后接口回调,重新刷新我的好友列表\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tifreshFriends\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.deleteRefresh(friend\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getHxusername());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmContext,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"服务器繁忙,删除好友失败!\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}, new State_parse_Json());\n\t\t\t\t\t\t\t\t\t\tLogUtil.d(\"Setting\", \"true\");\n\t\t\t\t\t\t\t\t\t\thd.dialog.dismiss();\n\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "81e859123cfa75a23f7a334d88ef1e92", "score": "0.47465566", "text": "@Test\n public void confirmEmailUsingPUTTest() throws ApiException {\n String token = null;\n api.confirmEmailUsingPUT(token);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "7e59ebfb4820e1f87315ecc428b0d7bb", "score": "0.4728926", "text": "public final void setConfirmPassword(String confirmpassword)\n\t{\n\t\tsetConfirmPassword(getContext(), confirmpassword);\n\t}", "title": "" }, { "docid": "3a6c44ff87b69fc57c11ea1e7fd45e07", "score": "0.4724396", "text": "@Override\n public TtaBrandplnHEntity_HI updateconfirm(JSONObject paramsJSON, int userId) throws Exception {\n Integer proposalId = paramsJSON.getInteger(\"proposalId\");\n TtaProposalHeaderEntity_HI instance = ttaProposalHeaderDAO_HI.getById(proposalId);\n if (instance.getStatus().equals(\"B\") || instance.getStatus().equals(\"C\")) {\n throw new IllegalArgumentException(\"Proposal单据状态为审批通过、待审批,不允许编辑单据\");\n }\n instance.setIsPlnConfirm(\"Y\");\n ttaProposalHeaderDAO_HI.saveOrUpdate(instance);\n return null;\n }", "title": "" }, { "docid": "053cc867329e40c5b77e386e3ca3a93e", "score": "0.47088856", "text": "public gfp2p.Api.EventConfirmRate getConfirmRate() {\n if (confirmRateBuilder_ == null) {\n if (valueCase_ == 8) {\n return (gfp2p.Api.EventConfirmRate) value_;\n }\n return gfp2p.Api.EventConfirmRate.getDefaultInstance();\n } else {\n if (valueCase_ == 8) {\n return confirmRateBuilder_.getMessage();\n }\n return gfp2p.Api.EventConfirmRate.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "709a86a0e7aff6cd2b6159809290a602", "score": "0.46867362", "text": "private void backRequestConfirm() {\n\t\tAlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n\t\t\t\tcontext);\n\n\t\tTextView myMsg = new TextView(this);\n\t\tmyMsg.setText(getText(R.string.attention));\n\t\tmyMsg.setGravity(Gravity.CENTER_HORIZONTAL);\n\t\tmyMsg.setTextSize(25);\n\t\tmyMsg.setTextColor(Color.RED);\n\n\t\t// set title\n\t\talertDialogBuilder.setCustomTitle(myMsg);\n\t\t// set dialog message\n\t\talertDialogBuilder\n\t\t\t\t.setMessage(getText(R.string.backrequestconfirm))\n\t\t\t\t.setCancelable(false)\n\t\t\t\t.setPositiveButton(R.string.confirm,\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\n\t\t\t\t\t\t\t\tIntent intent = new Intent(DisassociateByTNT.this,\n\t\t\t\t\t\t\t\t\t\tRxCMain.class);\n\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t.setNegativeButton(R.string.cancel,\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t// create alert dialog\n\t\tAlertDialog alertDialog = alertDialogBuilder.create();\n\n\t\t// show it\n\t\talertDialog.show();\n\t\tTextView msgTxt = (TextView) alertDialog\n\t\t\t\t.findViewById(android.R.id.message);\n\t\tmsgTxt.setTextSize(25);\n\t}", "title": "" }, { "docid": "9641679dfe176b83fd6c1514f791ef7f", "score": "0.46787554", "text": "public MmiViewContext getAlertConfirmContext() {\n return sAlertConfirmContext;\n }", "title": "" }, { "docid": "e77d17899ef1899d20f8477cbbe021f2", "score": "0.46522754", "text": "public gfp2p.Api.ResponseConfirmRate getConfirmRate() {\n if (confirmRateBuilder_ == null) {\n if (valueCase_ == 8) {\n return (gfp2p.Api.ResponseConfirmRate) value_;\n }\n return gfp2p.Api.ResponseConfirmRate.getDefaultInstance();\n } else {\n if (valueCase_ == 8) {\n return confirmRateBuilder_.getMessage();\n }\n return gfp2p.Api.ResponseConfirmRate.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "3d22c516fd47c700efa4a131a24dc020", "score": "0.46485963", "text": "public void setForceSendConfirmation(boolean value) {\n this.forceSendConfirmation = value;\n }", "title": "" }, { "docid": "683070f979d142ff15db3f0fd90feb1e", "score": "0.4646101", "text": "@Override\n\tpublic boolean getConfirmStatus() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "35fb8a1a749838c70cd2f10ecec3404f", "score": "0.4636852", "text": "public gfp2p.Api.EventConfirmRate.Builder getConfirmRateBuilder() {\n return getConfirmRateFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "11592d5fb8e62fd205d54402e87aa8ba", "score": "0.4633042", "text": "gfp2p.Api.EventConfirmRateOrBuilder getConfirmRateOrBuilder();", "title": "" }, { "docid": "f12e313aea48c47f46958b4047116bd4", "score": "0.46296048", "text": "public void setConfirmPasswordFieldName(final String value) {\n setProperty(CONFIRM_PASSWORD_FIELD_NAME_KEY, value);\n }", "title": "" }, { "docid": "b4c97508961c93d685a374842c68ba7e", "score": "0.46218282", "text": "public gfp2p.Api.ResponseConfirmRate.Builder getConfirmRateBuilder() {\n return getConfirmRateFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "499c50f51afcd8d206bb70a351f005a4", "score": "0.46131733", "text": "public void onConfirm(View view) {\n JSONArray summary = productAdapter.getSummary();\n\n if (summary.length() == 0)\n Toast.makeText(this, R.string.empty_order_list, Toast.LENGTH_SHORT).show();\n else\n postCreatePurchaseOrder(PhpAPI.createPurchaseOrder, summary);\n }", "title": "" }, { "docid": "03282c4216de2a65aa59632e43a13f6d", "score": "0.46091583", "text": "public void setConfirmEmailFieldName(final String value) {\n setProperty(RegistrationForm.CONFIRM_EMAIL_FIELD_NAME_KEY, value);\n }", "title": "" }, { "docid": "6cb767e8970a5995f9cfff8ecd6ae2df", "score": "0.4604954", "text": "gfp2p.Api.ResponseConfirmRateOrBuilder getConfirmRateOrBuilder();", "title": "" }, { "docid": "8c66f4f68a71fb3b7b0177dfaf9f7bd9", "score": "0.45857412", "text": "public boolean getConfirmMag(){\n return confirmMagic;\n }", "title": "" }, { "docid": "0f886fc2460c21a49350ba061a99e767", "score": "0.4582931", "text": "public String getConfirmPassword() {\n return confirmPassword;\n }", "title": "" }, { "docid": "8ea7db8b6ed570889b02afbacd3284ea", "score": "0.45777762", "text": "public void showAlertConfirm(MmiViewContext context) {\n Log.i(TAG.SERVICE, \"showNiaNotification\");\n sAlertConfirmContext = context;\n if (mScomoManager != null) {\n Log.i(TAG.SERVICE, \"verbose set to true\");\n mScomoManager.setVerbose(true);\n }\n DmOperation operation = mOperationManager.current();\n InteractionResponse ir = operation.getNextUIResponse();\n if (ir != null) {\n if (ir.type == InteractionType.CONFIRMATION) {\n switch (ir.response) {\n case InteractionResponse.POSITIVE:\n mAlertConfirm.confirm();\n break;\n case InteractionResponse.NEGATIVE:\n mAlertConfirm.cancel();\n break;\n case InteractionResponse.TIMEOUT:\n mAlertConfirm.timeout();\n break;\n default:\n throw new Error(\"Invalid interaction response \" + ir.response);\n }\n } else {\n throw new Error(\"Invalid interaction response type \" + ir.type);\n }\n } else {\n /* Alert message */\n mDmNotification.showNotification(NotificationInteractionType.TYPE_ALERT_1101);\n setNiaAlertTimeout(\n (context.maxDT > 0 ? context.maxDT : DEFAULT_ALERT_1101_TIMEOUT),\n NotificationInteractionType.TYPE_ALERT_1101);\n }\n }", "title": "" }, { "docid": "91d4287dbc672b6131434ed53ecb7336", "score": "0.45703465", "text": "private int confirmSubmit() {\n\t\tString[] options = {\"Cancel\", \"Yes\"};\n\t\tint n = JOptionPane.showOptionDialog(this,\n\t\t\t\t\t\t\t\t\t\t\"Are you sure?\",\n\t\t\t\t\t\t\t\t\t\t\"Confirmation\",\n\t\t\t\t\t\t\t\t\t\tJOptionPane.OK_CANCEL_OPTION,\n\t\t\t\t\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE,\n\t\t\t\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\t\t\toptions,\n\t\t\t\t\t\t\t\t\t\toptions[1]);\n\t\treturn n;\n\t}", "title": "" }, { "docid": "afac7c8fef536b785981d58b732bd050", "score": "0.45692825", "text": "public void chooseOkOnNextConfirmation() throws Exception {\n\n\t\tgetWD().switchTo().alert().accept();\n\t}", "title": "" }, { "docid": "523dfc714bcfefbe7573310608e483ef", "score": "0.45379102", "text": "@Override\n public void doYesConfirmClick(String input) {\n\n }", "title": "" }, { "docid": "58d94c98874baff56e662a048fc4d33b", "score": "0.4535398", "text": "public final void setConfirmPassword(IContext context, String confirmpassword)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.ConfirmPassword.toString(), confirmpassword);\n\t}", "title": "" }, { "docid": "981b1b28c600702314142b57c8a9575e", "score": "0.45029712", "text": "public void clickOnConfirmOrderBtn()\n {\n objCommonUtils.clickOnWebElement(btnConfirmOrder);\n logger.info(\"user clicked on confirm order button\");\n }", "title": "" }, { "docid": "d51281369e5b0d1b9ad155db693525e2", "score": "0.449816", "text": "public BufferedReader getIn_Confirm() {\r\n return in_confirm;\r\n }", "title": "" }, { "docid": "82072ab2af053fb34c0ff3219574fc5d", "score": "0.44939727", "text": "public void setGqmConfirmDeletions(boolean gqmConfirmDeletions) throws G2AccessException;", "title": "" }, { "docid": "9beb10ff6c9586601f2068e63299b9a7", "score": "0.44892052", "text": "public int getFECHAULTCONFIRM() {\n return fechaultconfirm;\n }", "title": "" }, { "docid": "c72685d68d31dc3294ee2272f2226a25", "score": "0.44823998", "text": "@When(\"^conirm the checkout$\")\r\n\t\tpublic void conirm_the_checkout() throws Throwable {\n\t\t Onlocation checkoutconfirm=new Onlocation();\r\n\t\t checkoutconfirm.confirm_checkout();\r\n\t\t}", "title": "" }, { "docid": "d145153bfde9e0740a7413c559fc6f6e", "score": "0.4467733", "text": "@Override\r\n\tpublic void serveTokenAuthorizationConfirmation(HttpServletRequest req,\r\n\t\t\tHttpServletResponse resp) throws IOException, ServletException {\n try{\r\n String[] values = req.getParameterValues(OAuth.OAUTH_TOKEN);\r\n if (values == null || values.length != 1) {\r\n resp.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\r\n return;\r\n }\r\n String requestTokenKey = values[0];\r\n \r\n OAuthRequestToken requestToken = provider.getRequestToken(null, requestTokenKey);\r\n com.tenline.pinecone.platform.model.Consumer consumer = requestToken.getConsumer();\r\n \r\n values = req.getParameterValues(\"xoauth_end_user_decision\");\r\n if (values == null || values.length != 1) {\r\n resp.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\r\n return;\r\n }\r\n \r\n boolean authorized = \"yes\".equals(values[0]) || \"true\".equals(values[0]);\r\n \r\n String callback = requestToken.getCallback();\r\n if (authorized) \r\n {\r\n String verifier = provider.authoriseRequestToken(consumer.getKey(), requestToken.getToken());\r\n \r\n if (callback == null) {\r\n OAuthUtils.sendValues(resp, OAuth.OAUTH_TOKEN, requestTokenKey, OAuth.OAUTH_VERIFIER, verifier);\r\n resp.setStatus(HttpURLConnection.HTTP_OK);\r\n } else {\r\n List<OAuth.Parameter> parameters = new ArrayList<OAuth.Parameter>();\r\n parameters.add(new OAuth.Parameter(OAuth.OAUTH_TOKEN, requestTokenKey));\r\n parameters.add(new OAuth.Parameter(OAuth.OAUTH_VERIFIER, verifier));\r\n String location = OAuth.addParameters(callback, parameters);\r\n resp.addHeader(\"Location\", location);\r\n resp.setStatus(302);\r\n }\r\n } \r\n else\r\n {\r\n // TODO : make sure this response is OAuth compliant \r\n OAuthUtils.makeErrorResponse(resp, \"Token has not been authorized\", 503, provider);\r\n }\r\n } catch (Exception x) {\r\n OAuthUtils.makeErrorResponse(resp, x.getMessage(), HttpURLConnection.HTTP_INTERNAL_ERROR, provider);\r\n }\r\n\t}", "title": "" }, { "docid": "3596c086567f01da70b5632ce34c205e", "score": "0.4467386", "text": "public Builder setPositiveButton(int confirm_btnText, OnClickListener listener) {\n this.confirm_btnText = (String) context.getText(confirm_btnText);\n this.confirm_btnClickListener = listener;\n return this;\n }", "title": "" }, { "docid": "bf330dc2dfaa624885f100dbf2604f05", "score": "0.44654942", "text": "boolean getCanConfirm();", "title": "" }, { "docid": "e994626c29a3125c9911d821c4f7e96c", "score": "0.44623208", "text": "public void asignarOcupante(Ticket ocupante) {\r\n\r\n this.ocupante = ocupante;\r\n this.setEstado(false);\r\n }", "title": "" }, { "docid": "524bf1be4dba3072555307d1492331e3", "score": "0.44602054", "text": "public boolean confrimMarkBought() {\r\n\t\tboolean confirmed = false;\r\n\t\tAlert alert = new Alert(AlertType.CONFIRMATION);\r\n\t\talert.setTitle(myBundle.getBundle().getString(\"checkConfirmationTitle\"));\r\n\t\talert.setHeaderText(myBundle.getBundle().getString(\"checkMarkBoughtHeader\"));\r\n\t\talert.setContentText(myBundle.getBundle().getString(\"checkMarkBoughtContent\"));\r\n\t\t\r\n\t\tButtonType buttonOK = new ButtonType(\"OK\", ButtonData.YES);\r\n\t\tButtonType buttonTypeCancel = new ButtonType(myBundle.getBundle().getString(\"buttonCancel\"), ButtonData.CANCEL_CLOSE);\r\n\t\talert.getButtonTypes().setAll(buttonOK, buttonTypeCancel);\r\n\t\t\r\n\t\tOptional<ButtonType> result = alert.showAndWait();\r\n\t\tif (result.isPresent() && result.get() == buttonOK) {\r\n\t\t\tconfirmed = true;\r\n\t\t }\r\n\t\treturn confirmed;\r\n\t}", "title": "" }, { "docid": "516c402135ace33cea53eb7dfb01b99a", "score": "0.44489446", "text": "public void buttonConfirmOnClick(View v)\r\n {\r\n Intent intent = new Intent();\r\n intent.putExtra(\"from\", locFrom);\r\n intent.putExtra(\"to\", locTo);\r\n intent.putExtra(\"date\", dateS);\r\n intent.putExtra(\"gpd\", groupPositionDest);\r\n intent.putExtra(\"gpi\", groupPositionInc);\r\n setResult(RESULT_OK, intent);\r\n finish();\r\n }", "title": "" }, { "docid": "37e67764ac481080917bb23d7828aee7", "score": "0.44409642", "text": "public void setConfirmDelete(){\n \n driver.findElement(confirmDelete).click(); \n \n }", "title": "" }, { "docid": "343b4698ab45430589bf4fd47db45871", "score": "0.44227922", "text": "public Builder setPositiveButton(String confirm_btnText, OnClickListener listener) {\n this.confirm_btnText = confirm_btnText;\n this.confirm_btnClickListener = listener;\n return this;\n }", "title": "" }, { "docid": "9de165e90014fdbbda1ee8c82b835aca", "score": "0.44133627", "text": "public Confirmar() {\n confirmado = new Solicitante();\n confirmado.tipo = \"confirmado\";\n padre = new Solicitante(\"padre\", \"masculino\");\n madre = new Solicitante(\"madre\", \"femenino\");\n padrino = new Solicitante(\"padrino\", \"masculino\");\n madrina = new Solicitante(\"madrina\", \"femenino\");\n \n ministro = new Usuario();\n parroquia = new Parroquia();\n parroquia.id_parroquia = 1;\n parroco= new Usuario();\n parroco.id_usuario = 1;\n ciudad = new Ciudad();\n provincia = new Provincia ();\n \n estado = true;\n cnx = new ConexionDB();\n scann = new Scanner();\n \n error = \"\";\n }", "title": "" }, { "docid": "3354f5654ece0e71d138c0d272ab7912", "score": "0.4412061", "text": "public void confirm(View view){\n Member member = new Member(this.memberId,\n this.memberNameView.getText().toString(),\n this.memberPhoneView.getText().toString(),\n this.memberAddressView.getText().toString(),\n this.memberEmailView.getText().toString()\n );\n this.memberService.registerMember(member);\n Intent intent = new Intent(MemberFormActivity.this, MemberManagementActivity.class);\n this.startActivity(intent);\n this.finish();\n }", "title": "" }, { "docid": "ade8b6e37d086ecbd33d23255a9c3509", "score": "0.4402492", "text": "public String getPasswordConfirm() {\n return passwordConfirm;\n }", "title": "" }, { "docid": "c3a86512cc015b2b49db7098d9bab6b2", "score": "0.4382998", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint reply = JOptionPane\n\t\t\t\t\t\t.showConfirmDialog(\n\t\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\t\"Once confirmed, you will be not be able to change your choice!\",\n\t\t\t\t\t\t\t\t\"Connect now?\", JOptionPane.YES_NO_OPTION);\n\n\t\t\t\tif (reply == JOptionPane.YES_OPTION) {\n\t\t\t\t\tconnect.setText(CHOICE_CONFIRMED);\n\t\t\t\t\tuserChoice = getConnectionType();\n\t\t\t\t\tconnect.setEnabled(false);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "f706033e53d8591bf05b5ac11170c10a", "score": "0.43797863", "text": "public void setEpmApproveId(Number value) {\n setAttributeInternal(EPMAPPROVEID, value);\n }", "title": "" }, { "docid": "5c587ec5cce4fcabafdb1f107b5dca88", "score": "0.43796647", "text": "public void confirm_co() { \n\n if (!(ra.isLDBExists(\"CollCoChgHistLDB\"))) {\n ra.createLDB(\"CollCoChgHistLDB\");\n }\n\n if((!(new SpecialAuthorityManager(ra)).checkSpecialAuthorityCodeForApplicationUser(\"aix\", \"COLL_OFF\"))) {\n ra.showMessage(\"insufficientVerAuthority\");\n return;\n }\n\n // pitanje da li stvarno zeli potvrditi podatke \n Integer retValue = (Integer) ra.showMessage(\"col_qer004\");\n if (retValue!=null && retValue.intValue() == 0) return; \n\n //postavljanje atribute za insert u CO_CHG_HISTORY\n ra.setAttribute(\"ColWorkListLDB\", \"co_chg_use_id\", null); \n\n ra.setAttribute(\"ColWorkListLDB\", \"co_ind\", ra.getAttribute(CollSecPaperDialogLDB, \"Coll_txtCoConfirm\"));\n // potvrda CO samo ako nije co_ind= D-> ako je vec potvrden -> poruka\n // System.out.println(\"Ispis Coll_txtCoConfirm:\"+ra.getAttribute(CollSecPaperDialogLDB, \"Coll_txtCoConfirm\").toString()); \n if(!ra.getAttribute(CollSecPaperDialogLDB, \"Coll_txtCoConfirm\").toString().equalsIgnoreCase(\"D\")){\n try {\n ra.executeTransaction();\n ra.showMessage(\"infclt3\");\n } catch (VestigoTMException vtme) {\n error(\"CollSecPaperDialog -> confirm_coll(): VestigoTMException\", vtme);\n if (vtme.getMessageID() != null)\n ra.showMessage(vtme.getMessageID());\n } \n }else{\n ra.showMessage(\"wrn_dist_rep21\");\n return;\n }\n\n ra.setAttribute(CollSecPaperDialogLDB, \"Coll_txtCoConfirm\",ra.getAttribute(\"CollCoChgHistLDB\", \"Kol_txtCoConfirm\"));\n ra.setAttribute(CollSecPaperDialogLDB, \"Coll_txtCoConfirmUserId\",ra.getAttribute(\"CollCoChgHistLDB\", \"Kol_txtCoConfirmUserId\"));\n ra.setAttribute(CollSecPaperDialogLDB, \"Coll_txtCoConfirmUserName\",ra.getAttribute(\"CollCoChgHistLDB\", \"Kol_txtCoConfirmUserName\"));\n ra.setAttribute(CollSecPaperDialogLDB, \"Coll_txtCoConfirmTime\",ra.getAttribute(\"CollCoChgHistLDB\", \"Kol_txtCoConfirmTime\"));\n\n }", "title": "" }, { "docid": "9dffbab2385c2cde6aacd16cc17b9af3", "score": "0.43794757", "text": "public String initBirthConfirmationApproval() {\n setConfirmationApprovalFlag(true);\n birthRegisterApproval();\n return SUCCESS;\n }", "title": "" }, { "docid": "59dbad04fe101a74f71e1400f7c55a97", "score": "0.43780854", "text": "public JournalInquiryPage clickConfirmButton() {\n return confirmButton.click()\n ? new JournalInquiryPage(false)\n : null;\n }", "title": "" }, { "docid": "42f270e6e7385449f546fe849ac833e3", "score": "0.43739268", "text": "public static void requestConfirmed(JobRequests request) {\n Notification notification = new Notification();\n notification.setType(Notification.JOB_REQUEST_CONFIRMED);\n String title = request.getBusinessName() + \" confirmed your job request.\";\n String text = \"Your job request has been confirmed for \" + request.getConfirmedTiming() + \".\";\n notification.setText(text);\n notification.setTitle(title);\n notification.setDate(new Date());\n notification.setActionId(request.getId());\n notification.setRecipientId(request.getCustomerId());\n notification.setSenderId(request.getBusinessId());\n sendNotification(notification);\n }", "title": "" }, { "docid": "96625631da9c1d1c757ee670cacc6f4f", "score": "0.43711138", "text": "private void sendConfirmation() throws Exception\n {\n EmailConf conf = null;\n EmailConfFactory f = EmailConfFactory.getInstance();\n\n try {\n //\n // If we can't get a confirmation class, set a warning message and just use the default.\n try {\n conf = f.getEmailConf(m_System, m_Component);\n }\n\n catch ( Exception ex ) {\n ProcessServer.log.warn(\"[CreateAceShipConfProc] unable to load order confirmation class, using default message\");\n }\n\n //\n // If we have a confirmation object use that, otherwise just use the default order confirmation message.\n if ( conf != null ) {\n try {\n conf.setConnection(m_EdbConn); \n conf.setDefaultEmailAddr(m_EmailAddr);\n conf.setParent(this);\n String[] data = {m_OrderId, m_Carrier, m_TrackingId};\n conf.setData(data);\n conf.sendConfirmation();\n }\n\n finally {\n conf.close();\n }\n }\n else\n sendAcknowledgement(getDefaultMsg(), \"Ace Shipment Confirmation From Emery-Waterhouse\");\n }\n\n finally {\n f = null;\n conf = null;\n }\n }", "title": "" }, { "docid": "688f1021e3565ba0380f0b6ed35e28d9", "score": "0.436829", "text": "@Override\r\n\tpublic void confirmMerchant(String mTel) {\n\t\tmerchantDao.updateStatus(mTel, 2);\r\n\t}", "title": "" }, { "docid": "bdffb8fdb91bdf374b33bdd2e4d3c7e6", "score": "0.43635347", "text": "public static Result confirm(String token) {\n\t\tUser user = User.findByConfirmationToken(token);\n\t\tif (user == null) {\n\t\t\tflash(\"error\", Messages.get(\"error.unknown.email\"));\n\t\t\treturn jsonResponse(Messages.get(\"error.unknown.email\"), 400);\n\t\t}\n\n\t\tif (user.validated) {\n\t\t\tflash(\"error\", Messages.get(\"error.account.already.validated\"));\n\t\t\treturn jsonResponse(\n\t\t\t\t\tMessages.get(\"error.account.already.validated\"), 400);\n\t\t}\n\n\t\ttry {\n\t\t\tif (User.confirm(user)) {\n\t\t\t\tsendMailConfirmation(user);\n\t\t\t\tflash(\"success\", Messages.get(\"account.successfully.validated\"));\n\t\t\t\treturn jsonResponse(\n\t\t\t\t\t\tMessages.get(\"account.successfully.validated\"), 400);\n\t\t\t} else {\n\t\t\t\tLogger.debug(\"Signup.confirm cannot confirm user\");\n\t\t\t\tflash(\"error\", Messages.get(\"error.confirm\"));\n\t\t\t\treturn jsonResponse(\n\t\t\t\t\t\tMessages.get(\"Signup.confirm cannot confirm user\"), 400);\n\t\t\t}\n\t\t} catch (AppException e) {\n\t\t\tLogger.error(\"Cannot signup\", e);\n\t\t\tflash(\"error\", Messages.get(\"error.technical\"));\n\t\t} catch (EmailException e) {\n\t\t\tLogger.debug(\"Cannot send email\", e);\n\t\t\tflash(\"error\", Messages.get(\"error.sending.confirm.email\"));\n\t\t}\n\t\treturn jsonResponse(Messages.get(\"error.sending.confirm.email\"), 400);\n\t}", "title": "" }, { "docid": "cda19f5c4061d26629975d5b6405d500", "score": "0.43502882", "text": "boolean confirm( String title, String message );", "title": "" }, { "docid": "4e78e5855ea3c2f74f33c9482ecf6ca9", "score": "0.4344302", "text": "private ResponseConfirmRate(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "9696254cdc1a318c9e598a5abd128dc2", "score": "0.43154937", "text": "@Override\r\n\tpublic void onClick(View v) {\n\t\tvb.confirmReset(v);\r\n\t}", "title": "" } ]
05ecd5c343c0304e36511b367758e7fd
transact a string query to CommandParse and return the executed result.
[ { "docid": "d5f5f56c624daed4d2e1fff7a71dbcde", "score": "0.6868111", "text": "public String transact(String query) {\n return CommandParse.eval(query);\n }", "title": "" } ]
[ { "docid": "b2da11b35bc19a555387fd4728dc0b94", "score": "0.6465098", "text": "CommandResult execute(String commandText) throws CommandException, ParseException;", "title": "" }, { "docid": "b2da11b35bc19a555387fd4728dc0b94", "score": "0.6465098", "text": "CommandResult execute(String commandText) throws CommandException, ParseException;", "title": "" }, { "docid": "b2da11b35bc19a555387fd4728dc0b94", "score": "0.6465098", "text": "CommandResult execute(String commandText) throws CommandException, ParseException;", "title": "" }, { "docid": "b2da11b35bc19a555387fd4728dc0b94", "score": "0.6465098", "text": "CommandResult execute(String commandText) throws CommandException, ParseException;", "title": "" }, { "docid": "ceef45a6c8619d2fdb4e69a269503abd", "score": "0.6433123", "text": "public boolean parse(String command) throws Exception;", "title": "" }, { "docid": "7a1d68d8140f37616689b6668ea2cbda", "score": "0.6364553", "text": "@Override\r\n\tpublic Command parse(String input) {\n\t\treturn this;\r\n\t}", "title": "" }, { "docid": "8973b9ec5ad605e3bde471284db94949", "score": "0.62628067", "text": "CommandResult execute(String commandText) throws IOException, JSONException, ParseException;", "title": "" }, { "docid": "d5ea7aaccf2e2449ff6c39c5accd26b9", "score": "0.6182231", "text": "public interface CommandParser {\n\n\tCommand parse(String cmd);\n}", "title": "" }, { "docid": "ca0ca650709c23a99fb5278b3867670f", "score": "0.6172487", "text": "public CommandExecutor parseMessage(String str){\n CommandExecutor ce = null ;\n \n try {\n parse(str);\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n if(command.equals(\"getSlotsInfo\"))\n ce = new SlotsExecutor();\n else if(command.equals(\"getMemoryInfo\"))\n ce = new MemoryExecutor();\n else if(command.equals(\"migrate\"))\n ce = new MigrateExecutor(params);\n \n return ce;\n }", "title": "" }, { "docid": "d56f6d2629f061b0da2c29b7145b9da4", "score": "0.6148545", "text": "public Query parse(String queryString);", "title": "" }, { "docid": "c98ffdd48c39dab1a26c5f5ba22eb562", "score": "0.61132234", "text": "public static Command parse(String input) {\n String[] splitInput = input.split(\" \");\n if (splitInput.length == 0) {\n splitInput = new String[]{\"error\"};\n }\n splitInput[0] = splitInput[0].toUpperCase();\n CommandType command = checkCommand(splitInput[0]);\n splitInput[0] = command.name();\n assert !splitInput[0].equals(\"\") : \"The command name must be here\";\n switch(command) {\n case LIST:\n case FIND:\n return new ListCommand(splitInput);\n case TODO:\n case DEADLINE:\n case EVENT:\n return new AddCommand(splitInput);\n case DELETE:\n case DONE:\n return new EditCommand(splitInput);\n case BYE:\n return new ExitCommand();\n case HELP:\n return new HelpCommand();\n case ERROR:\n default:\n return new ErrorCommand();\n }\n }", "title": "" }, { "docid": "3d9924e343873e2067675a6d1d9067b4", "score": "0.6075015", "text": "public Object parseCommand(String str, DataType dataType)\r\n\t{\t\t\r\n\t\tString[] strs = new String[2];\r\n\t\tObject result = null;\r\n\t\t\r\n\t\tif(dataType == DataType.STRING)\r\n\t\t{\r\n\t\t\tString[] args = new String[2];\r\n\t\t\t\r\n\t\t\t//add string\r\n\t\t\tif(str.matches(\"\\\\w*\\\\+\\\\*\"))\r\n\t\t\t{\r\n\t\t\t\tstrs = str.split(\"\\\\+\");\r\n\t\t\t\t\r\n\t\t\t\t//first argument is a variable\r\n\t\t\t\tif(dm.variables.get(args[0]) != null){\r\n\t\t\t\t\targs[0] = (String)dm.variables.get(strs[0]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//first argument is a string literal\r\n\t\t\t\telse{\r\n\t\t\t\t\targs[0] = strs[0];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is a variable\r\n\t\t\t\tif(dm.variables.get(args[1]) != null){\r\n\t\t\t\t\targs[1] = (String)dm.variables.get(strs[1]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is a string literal\r\n\t\t\t\telse{\r\n\t\t\t\t\targs[1] = strs[1];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tresult = args[0] + args[1];\r\n\t\t\t\tlogger.info((String)result);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//assign value to int\r\n\t\t\telse if(str.matches(\"\\\\w*\"))\r\n\t\t\t{\r\n\t\t\t\tString arg1 = null;\r\n\t\t\t\t\r\n\t\t\t\tif(dm.variables.get(strs[0]) != null){\r\n\t\t\t\t\targ1 = (String)dm.variables.get(strs[0]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse{\r\n\t\t\t\t\targ1 = str;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tresult = arg1;\r\n\t\t\t\t\r\n\t\t\t\tlogger.info((String)result);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telse if(dataType == DataType.INT)\r\n\t\t{\r\n\t\t\tint arg1 = 0;\r\n\t\t\tint arg2 = 0;\r\n\t\t\t\r\n\t\t\t//add integers\r\n\t\t\tif(str.matches(\"\\\\w*\\\\+\\\\w*\"))\r\n\t\t\t{\r\n\t\t\t\tstrs = str.split(\"\\\\+\");\r\n\t\t\t\t\r\n\t\t\t\t//first argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[0]) != null){\r\n\t\t\t\t\targ1 = (Integer)dm.variables.get(strs[0]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//first argument is an integer literal\r\n\t\t\t\telse if(strs[0].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ1 = Integer.parseInt(strs[0]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[1]) != null){\r\n\t\t\t\t\targ2 = (Integer)dm.variables.get(strs[1]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is an integer literal\r\n\t\t\t\telse if(strs[1].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ2 = Integer.parseInt(strs[1]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tresult = arg1 + arg2;\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//subtract integers\r\n\t\t\telse if(str.matches(\"\\\\w*\\\\-\\\\w*\"))\r\n\t\t\t{\r\n\t\t\t\tstrs = str.split(\"\\\\-\");\r\n\t\t\t\t\r\n\t\t\t\t//first argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[0]) != null){\r\n\t\t\t\t\targ1 = (Integer)dm.variables.get(strs[0]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//first argument is an integer literal\r\n\t\t\t\telse if(strs[0].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ1 = Integer.parseInt(strs[0]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[1]) != null){\r\n\t\t\t\t\targ2 = (Integer)dm.variables.get(strs[1]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is an integer literal\r\n\t\t\t\telse if(strs[1].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ2 = Integer.parseInt(strs[1]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tresult = arg1 - arg2;\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//multiply integers\r\n\t\t\telse if(str.matches(\"\\\\w*\\\\*\\\\w*\"))\r\n\t\t\t{\r\n\t\t\t\tstrs = str.split(\"\\\\*\");\r\n\t\t\t\t\r\n\t\t\t\t//first argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[0]) != null){\r\n\t\t\t\t\targ1 = (Integer)dm.variables.get(strs[0]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//first argument is an integer literal\r\n\t\t\t\telse if(strs[0].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ1 = Integer.parseInt(strs[0]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[1]) != null){\r\n\t\t\t\t\targ2 = (Integer)dm.variables.get(strs[1]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is an integer literal\r\n\t\t\t\telse if(strs[1].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ2 = Integer.parseInt(strs[1]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tresult = arg1 * arg2;\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//divide integers\r\n\t\t\telse if(str.matches(\"\\\\w*/\\\\w*\"))\r\n\t\t\t{\r\n\t\t\t\tstrs = str.split(\"/\");\r\n\t\t\t\t\r\n\t\t\t\t//first argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[0]) != null){\r\n\t\t\t\t\targ1 = (Integer)dm.variables.get(strs[0]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//first argument is an integer literal\r\n\t\t\t\telse if(strs[0].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ1 = Integer.parseInt(strs[0]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[1]) != null){\r\n\t\t\t\t\targ2 = (Integer)dm.variables.get(strs[1]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is an integer literal\r\n\t\t\t\telse if(strs[1].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ2 = Integer.parseInt(strs[1]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(arg2 != 0){\t\t\t\r\n\t\t\t\t\tresult = arg1 / arg2;\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//assign value to int\r\n\t\t\telse if(str.matches(\"\\\\w*\"))\r\n\t\t\t{\r\n\t\t\t\tif(dm.variables.get(str) != null){\r\n\t\t\t\t\targ1 = (Integer)dm.variables.get(str).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse if(str.matches(\"\\\\d*\")){\r\n\t\t\t\t\targ1 = Integer.parseInt(str);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tresult = arg1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telse if(dataType == DataType.DOUBLE)\r\n\t\t{\r\n\t\t\tdouble arg1 = 0;\r\n\t\t\tdouble arg2 = 0;\r\n\t\t\t\r\n\t\t\t//add doubles\r\n\t\t\tif(str.matches(\"\\\\w*\\\\+\\\\w*\"))\r\n\t\t\t{\r\n\t\t\t\tstrs = str.split(\"\\\\+\");\r\n\t\t\t\t\r\n\t\t\t\t//first argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[0]) != null){\r\n\t\t\t\t\targ1 = (Double)dm.variables.get(strs[0]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//first argument is an integer literal\r\n\t\t\t\telse if(strs[0].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ1 = Double.parseDouble(strs[0]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[1]) != null){\r\n\t\t\t\t\targ2 = (Double)dm.variables.get(strs[1]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is an integer literal\r\n\t\t\t\telse if(strs[1].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ2 = Double.parseDouble(strs[1]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tresult = arg1 + arg2;\r\n\t\t\t\t\r\n\t\t\t\tlogger.info(Double.toString((Double)result));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//subtract doubles\r\n\t\t\telse if(str.matches(\"\\\\w*\\\\-\\\\w*\"))\r\n\t\t\t{\r\n\t\t\t\tstrs = str.split(\"\\\\-\");\r\n\t\t\t\t\r\n\t\t\t\t//first argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[0]) != null){\r\n\t\t\t\t\targ1 = (Double)dm.variables.get(strs[0]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//first argument is an integer literal\r\n\t\t\t\telse if(strs[0].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ1 = Double.parseDouble(strs[0]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[1]) != null){\r\n\t\t\t\t\targ2 = (Double)dm.variables.get(strs[1]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is an integer literal\r\n\t\t\t\telse if(strs[1].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ2 = Double.parseDouble(strs[1]);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\tresult = arg1 - arg2;\r\n\t\t\t\t\r\n\t\t\t\tlogger.info(Double.toString((Double)result));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//multiply doubles\r\n\t\t\telse if(str.matches(\"\\\\w*\\\\*\\\\w*\"))\r\n\t\t\t{\r\n\t\t\t\tstrs = str.split(\"\\\\*\");\r\n\t\t\t\t\r\n\t\t\t\t//first argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[0]) != null){\r\n\t\t\t\t\targ1 = (Double)dm.variables.get(strs[0]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//first argument is an integer literal\r\n\t\t\t\telse if(strs[0].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ1 = Double.parseDouble(strs[0]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[1]) != null){\r\n\t\t\t\t\targ2 = (Double)dm.variables.get(strs[1]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is an integer literal\r\n\t\t\t\telse if(strs[1].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ2 = Double.parseDouble(strs[1]);\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tresult = arg1 * arg2;\r\n\t\t\t\t\r\n\t\t\t\tlogger.info(Double.toString((Double)result));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(str.matches(\"\\\\w*/\\\\w*\"))\r\n\t\t\t{\r\n\t\t\t\tstrs = str.split(\"/\");\r\n\t\t\t\t\r\n\t\t\t\t//first argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[0]) != null){\r\n\t\t\t\t\targ1 = (Double)dm.variables.get(strs[0]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//first argument is an integer literal\r\n\t\t\t\telse if(strs[0].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ1 = Double.parseDouble(strs[0]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is a variable\r\n\t\t\t\tif(dm.variables.get(strs[1]) != null){\r\n\t\t\t\t\targ2 = (Double)dm.variables.get(strs[1]).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//second argument is an integer literal\r\n\t\t\t\telse if(strs[1].matches(\"\\\\d*\")){\r\n\t\t\t\t\targ2 = Double.parseDouble(strs[1]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//assign value to double\r\n\t\t\t\telse if(str.matches(\"\\\\w*\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dm.variables.get(strs[0]) != null){\r\n\t\t\t\t\t\targ1 = (Double)dm.variables.get(strs[0]).getValue();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\telse if(strs[0].matches(\"\\\\d*\")){\r\n\t\t\t\t\t\targ1 = Double.parseDouble(strs[0]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tresult = arg1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(arg2 != 0){\r\n\t\t\t\t\tresult = arg1 / arg2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telse if(dataType == DataType.BOOLEAN)\r\n\t\t{\r\n\t\t\tif(str.matches(\"\\\\w*\"))\r\n\t\t\t{\r\n\t\t\t\tif(dm.variables.get(str) != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tresult = dm.variables.get(str).getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse if(str.equalsIgnoreCase(\"true\")){\r\n\t\t\t\t\tresult = \"true\";\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse if(str.equalsIgnoreCase(\"faslse\")){\r\n\t\t\t\t\tresult = \"false\";\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "a0f77404dac3cbb2a4e1667682bfece0", "score": "0.60281056", "text": "public Command parseCommand(String userInput) throws ParseException {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, HelpCommand.MESSAGE_USAGE));\n }\n final String commandWord = matcher.group(\"commandWord\").toLowerCase();\n final String arguments = matcher.group(\"arguments\");\n\n switch(commandWord) {\n\n case GotoCommand.COMMAND_WORD:\n return new GotoCommandParser(trip).parse(arguments);\n\n case BackCommand.COMMAND_WORD:\n return new BackCommand();\n\n case HomeCommand.COMMAND_WORD:\n return new HomeCommand();\n\n case ExitCommand.COMMAND_WORD:\n return new ExitCommand();\n\n case HelpCommand.COMMAND_WORD:\n return new HelpCommand();\n\n case RefreshCommand.COMMAND_WORD:\n return new RefreshCommand();\n\n default:\n throw new ParseException(MESSAGE_UNKNOWN_COMMAND);\n\n }\n }", "title": "" }, { "docid": "18ebc07979c137bfd5e926b8e883639b", "score": "0.6000399", "text": "@Nullable\n public String parseCommand() {\n if (command == null) {\n parse();\n }\n\n return command;\n }", "title": "" }, { "docid": "a7ef8337bf6769d6fef117add415ceb2", "score": "0.5984852", "text": "public duke.command.Command parse(String input) throws DukeException {\n assert input != null : \"input to parse is null\";\n Command caseId = findCase(input);\n duke.command.Command c = new InvalidCommand();\n\n switch (caseId) {\n case Exit:\n c = new ExitCommand();\n break;\n case List:\n c = new ListCommand();\n break;\n case Help:\n c = new HelpCommand();\n break;\n case Done:\n isValidDone(input);\n int donePos = Integer.valueOf(input.substring(5));\n c = new DoneCommand(donePos);\n break;\n case Delete:\n isValidDelete(input);\n int deletePos = Integer.valueOf(input.substring(7));\n c = new DeleteCommand(deletePos);\n break;\n case Clear:\n c = new ClearCommand();\n break;\n case Todo:\n isValidTodo(input);\n Todo todo = new Todo(input.substring(5));\n c = new AddCommand(todo);\n break;\n case Deadline:\n isValidDeadline(input);\n c = getDeadlineCommand(input);\n break;\n case Event:\n isValidEvent(input);\n c = getEventCommand(input);\n break;\n case CheckDate:\n String date = input.substring(6);\n LocalDate parsedDate = LocalDate.parse(date);\n c = new CheckDateCommand(parsedDate);\n break;\n case Find:\n String word = input.substring(5);\n c = new FindCommand(word);\n break;\n case Archive:\n isValidArchive(input);\n c = getArchiveCommand(input);\n break;\n default:\n throw new InvalidUserInputException(\"invalid command\");\n }\n return c;\n }", "title": "" }, { "docid": "196102ba6e8e781509bf2211dc6da492", "score": "0.5978998", "text": "public Command parseCommand(String userInput) throws ParseException {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, HelpCommand.MESSAGE_USAGE));\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n switch (commandWord) {\n /*\n case AddCommand.COMMAND_WORD:\n return new AddCommandParser().parse(arguments);\n\n case EditCommand.COMMAND_WORD:\n return new EditCommandParser().parse(arguments);\n\n case SelectCommand.COMMAND_WORD:\n return new SelectCommandParser().parse(arguments);\n\n case DeleteCommand.COMMAND_WORD:\n return new DeleteCommandParser().parse(arguments);\n\n case FindCommand.COMMAND_WORD:\n return new FindCommandParser().parse(arguments);\n\n case ListCommand.COMMAND_WORD:\n return new ListCommand();\n */\n\n case ClearCommand.COMMAND_WORD:\n return new ClearCommand();\n\n case HistoryCommand.COMMAND_WORD:\n return new HistoryCommand();\n\n case ExitCommand.COMMAND_WORD:\n return new ExitCommand();\n\n case HelpCommand.COMMAND_WORD:\n return new HelpCommand();\n\n case UndoCommand.COMMAND_WORD:\n return new UndoCommand();\n\n case RedoCommand.COMMAND_WORD:\n return new RedoCommand();\n\n case LoginCommand.COMMAND_WORD:\n return new LoginCommandParser().parse(arguments);\n\n case LogoutCommand.COMMAND_WORD:\n return new LogoutCommand();\n\n case AddMachineCommand.COMMAND_WORD:\n return new AddMachineCommandParser().parse(arguments);\n\n case AddAdminCommand.COMMAND_WORD:\n return new AddAdminCommandParser().parse(arguments);\n\n case RemoveAdminCommand.COMMAND_WORD:\n return new RemoveAdminCommandParser().parse(arguments);\n\n case UpdatePasswordCommand.COMMAND_WORD:\n return new UpdatePasswordCommandParser().parse(arguments);\n\n case FindMachineCommand.COMMAND_WORD:\n return new FindMachineCommandParser().parse(arguments);\n\n case ListMachinesCommand.COMMAND_WORD:\n return new ListMachinesCommand();\n\n case EditMachineCommand.COMMAND_WORD:\n return new EditMachineCommandParser().parse(arguments);\n\n case AddJobCommand.COMMAND_WORD:\n return new AddJobCommandParser().parse(arguments);\n\n case FindJobCommand.COMMAND_WORD:\n return new FindJobCommandParser().parse(arguments);\n\n case ListJobsCommand.COMMAND_WORD:\n return new ListJobsCommand();\n\n case ManageJobCommand.COMMAND_WORD:\n return new ManageJobCommandParser().parse(arguments);\n\n case SwapJobsCommand.COMMAND_WORD:\n return new SwapJobsCommandParser().parse(arguments);\n\n case RequestDeletionCommand.COMMAND_WORD:\n return new RequestDeletionCommandParser().parse(arguments);\n\n case ManageMachineCommand.COMMAND_WORD:\n return new ManageMachineCommandParser().parse(arguments);\n\n default:\n throw new ParseException(MESSAGE_UNKNOWN_COMMAND);\n }\n }", "title": "" }, { "docid": "a7aa7d45ce70e3cc298f9cdb87084ea8", "score": "0.59785044", "text": "public Command parseCommand(String userInput) throws ParseException {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, HelpCommand.MESSAGE_USAGE));\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n switch (commandWord) {\n\n case AddCommand.COMMAND_WORD:\n return new AddCommandParser(this.moneySymbol.getString()).parse(arguments);\n\n case ArchiveCommand.COMMAND_WORD:\n return new ArchiveCommandParser().parse(arguments);\n\n case ClearCommand.COMMAND_WORD:\n return new ClearCommand();\n\n case CopyCommand.COMMAND_WORD:\n return new CopyCommandParser().parse(arguments);\n\n case DeleteCommand.COMMAND_WORD:\n return new DeleteCommandParser().parse(arguments);\n\n case EditCommand.COMMAND_WORD:\n return new EditCommandParser(this.moneySymbol.getString()).parse(arguments);\n\n case ExitCommand.COMMAND_WORD:\n return new ExitCommand();\n\n case ExpandCommand.COMMAND_WORD:\n return new ExpandCommandParser().parse(arguments);\n\n case ExpiringCommand.COMMAND_WORD:\n return new ExpiringCommandParser().parse(arguments);\n\n case FindCommand.COMMAND_WORD:\n return new FindCommandParser().parse(arguments);\n\n case GoToCommand.COMMAND_WORD:\n return new GoToCommandParser().parse(arguments);\n\n case HelpCommand.COMMAND_WORD:\n return new HelpCommand();\n\n case ListCommand.COMMAND_WORD:\n return new ListCommandParser().parse(arguments);\n\n case RedoCommand.COMMAND_WORD:\n return new RedoCommand();\n\n case SavedCommand.COMMAND_WORD:\n return new SavedCommandParser().parse(arguments);\n\n case SetCurrencyCommand.COMMAND_WORD:\n return new SetCurrencyCommandParser().parse(arguments);\n\n case ShareCommand.COMMAND_WORD:\n return new ShareCommandParser().parse(arguments);\n\n case SortCommand.COMMAND_WORD:\n return new SortCommandParser().parse(arguments);\n\n case UnarchiveCommand.COMMAND_WORD:\n return new UnarchiveCommandParser().parse(arguments);\n\n case UndoCommand.COMMAND_WORD:\n return new UndoCommand();\n\n case UsedCommand.COMMAND_WORD:\n return new UsedCommandParser(this.moneySymbol.getString()).parse(arguments);\n\n default:\n throw new ParseException(MESSAGE_UNKNOWN_COMMAND);\n }\n }", "title": "" }, { "docid": "50960d3742c03ce0f586046aae89b196", "score": "0.5967667", "text": "public CmdResult command(String command);", "title": "" }, { "docid": "41c95accfe7d44997bff8d4f18027bae", "score": "0.5939135", "text": "Command readCommand(String anInputString);", "title": "" }, { "docid": "449d114be33c9d1612e9f25e68f9e2b5", "score": "0.59289646", "text": "public Response executeCommand(Query query){\r\n String key = query.getDTOCommand().getArgument();\r\n String command = query.getDTOCommand().getCommand();\r\n key = key.trim();\r\n query.setDTOCommand(new CommandTransferObject().setCommand(command).setArgument(key));\r\n history.add(command);\r\n ServerOutput.info(\"Recieved \"+command+\" \"+key);\r\n Response response;\r\n if (commands.containsKey(command)){\r\n response = commands.get(command).execute(query);\r\n if (response.failed()){\r\n ServerOutput.warning(\"Failed to execute command \"+command+\" \"+key);\r\n }\r\n }\r\n else{\r\n ServerOutput.warning(\"No such command \"+command+\" found\");\r\n response = new Response(\"No such command \"+command+\" found\",true,Instruction.ASK_COMMAND);\r\n }\r\n return response;\r\n }", "title": "" }, { "docid": "dfe881115030647611b882269659e746", "score": "0.5916362", "text": "public Command parse(String input) throws DukeException {\n assert input != null : \"Input cannot be null!\";\n\n if (input.startsWith(\"todo\")) {\n return commandGenerator.getAddCommandForToDo(input);\n } else if (input.startsWith(\"deadline\")) {\n return commandGenerator.getAddCommandForDeadline(input);\n } else if (input.startsWith(\"event setDate\")) {\n return commandGenerator.getConfirmEventDateCommand(input);\n } else if (input.startsWith(\"event\")) {\n return commandGenerator.getAddCommandForEvent(input);\n } else if (\"list\".equals(input)) {\n return commandGenerator.getListCommand();\n } else if (input.startsWith(\"find\")) {\n return commandGenerator.getFindCommand(input);\n } else if (input.startsWith(\"done\")) {\n return commandGenerator.getDoneCommand(input);\n } else if (input.startsWith(\"delete\")) {\n return commandGenerator.getDeleteCommand(input);\n } else if (\"bye\".equals(input)) {\n return commandGenerator.getExitCommand();\n } else {\n throw new DukeException(\"I'm sorry, but I don't know what that means :-(\");\n }\n }", "title": "" }, { "docid": "47b63f1d525970265e660767a6c704bf", "score": "0.59108865", "text": "public static Command parse(String message){\n\t\ttry {\n\t\t\tString[] chunks = message.split(SEPARATOR, 2);\n\t\t\tif(chunks.length < 2) return new Command(Integer.parseInt(chunks[0]));\n\t\t\tString[] args = chunks[1].split(SEPARATOR);\n\t\t\treturn new Command(Integer.parseInt(chunks[0]), args);\n\t\t} catch (NumberFormatException e){\n\t\t\tLogger.error(\"Bad message: \" + message);\n\t\t}\n\t\treturn new Command(INVALID);\n\t}", "title": "" }, { "docid": "9e1c7b3652a8bddb569aeccc990d9369", "score": "0.59038275", "text": "public static Command parse(String input) {\n if (input.equals(BYE_COMMAND)) {\n return new ByeCommand(input);\n } else if (input.equals(LIST_COMMAND)) {\n return new ListCommand(input);\n } else if (input.startsWith(DELETE_COMMAND_PREFIX)) {\n return new DeleteCommand(input);\n } else if (input.startsWith(DONE_COMMAND_PREFIX)) {\n return new DoneCommand(input);\n } else if (input.startsWith(HAPPEN_COMMAND_PREFIX)) {\n return new HappenCommand(input);\n } else if (input.startsWith(FIND_COMMAND_PREFIX)) {\n return new FindCommand(input);\n } else if (input.startsWith(FIX_COMMAND_PREFIX)) {\n return new FixCommand(input);\n } else if (input.startsWith(SNOOZE_COMMAND_PREFIX)) {\n return new SnoozeCommand(input);\n } else if (input.startsWith(REPEAT_COMMAND_PREFIX)) {\n return new RepeatCommand(input);\n } else {\n return new AddCommand(input);\n }\n }", "title": "" }, { "docid": "e645f7cce4dae7e90c9c53c91445f56f", "score": "0.58750826", "text": "public Command parseCommand(String userInput) throws ParseException {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, HelpCommand.MESSAGE_USAGE));\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n switch (commandWord) {\n\n case AddCommand.COMMAND_WORD:\n return new AddCommandParser().parse(arguments);\n\n case EditCommand.COMMAND_WORD:\n return new EditCommandParser().parse(arguments);\n\n case DeleteCommand.COMMAND_WORD:\n return new DeleteCommandParser().parse(arguments);\n\n case ClearCommand.COMMAND_WORD:\n return new ClearCommandParser().parse(arguments);\n\n case FindCommand.COMMAND_WORD:\n return new FindCommandParser().parse(arguments);\n\n case ListCommand.COMMAND_WORD:\n return new ListCommandParser().parse(arguments);\n\n case FlipCommand.COMMAND_WORD:\n return new FlipCommandParser().parse(arguments);\n\n case ExitCommand.COMMAND_WORD:\n return new ExitCommandParser().parse(arguments);\n\n case HelpCommand.COMMAND_WORD:\n return new HelpCommandParser().parse(arguments);\n\n case EnterQuizCommand.COMMAND_WORD:\n return new EnterQuizCommandParser().parse(arguments);\n\n case SortCommand.COMMAND_WORD:\n return new SortCommandParser().parse(arguments);\n\n case ShowPerformanceCommand.COMMAND_WORD:\n return new ShowPerformanceCommandParser().parse(arguments);\n\n default:\n throw new ParseException(MESSAGE_UNKNOWN_COMMAND + \"\\nMaybe you have used commands from Quiz or \"\n + \"Performance interfaces, which are not allowed in Flashcard interface.\\n\"\n + \"Type 'help' to see the list of supported command lines from user guide.\");\n }\n }", "title": "" }, { "docid": "e91ca1783180b508e9b40ae6041d6707", "score": "0.5871689", "text": "public static Command parseCommand(String command) throws UnknownCommandException, DateParseException,\n IncompleteTaskException, InvalidTaskException, InvalidSearchException {\n command = command.trim();\n if (command.equals(\"bye\")) {\n return new ExitCommand();\n } else if (command.equals(\"list\")) {\n return new ListCommand();\n } else if (command.equals(\"today\")) {\n return new TodayCommand();\n } else if (command.length() >= 4 && command.substring(0, 4).equals(\"find\")) {\n return parseFindCommand(command);\n } else if (command.length() >= 4 && command.substring(0, 4).equals(\"done\")) {\n return parseDoneCommand(command);\n } else if (command.length() >= 6 && command.substring(0, 6).equals(\"delete\")) {\n return parseDeleteCommand(command);\n } else if (validAddTaskCommand(command)) {\n return parseAddTaskCommand(command);\n } else {\n throw new UnknownCommandException(\"Oh noes! I'm not sure what that means ;A;\");\n }\n }", "title": "" }, { "docid": "4a3b6e2845a0daab8ff16e173840fd2b", "score": "0.5870249", "text": "public Command parseCommand(String userInput, Status status) throws ParseException {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, HelpCommand.MESSAGE_USAGE));\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n switch (commandWord) {\n\n case AddCommand.COMMAND_WORD:\n switch (status) {\n case PERSON_LIST:\n case PERSON:\n throw new InvalidScopeException(Status.PROJECT_LIST, status);\n default:\n return new AddCommandParser().parse(arguments);\n }\n\n case EditCommand.COMMAND_WORD:\n switch (status) {\n case PERSON_LIST:\n case PERSON:\n throw new InvalidScopeException(Status.PROJECT_LIST, status);\n default:\n return new EditCommandParser().parse(arguments);\n }\n\n case DeleteCommand.COMMAND_WORD:\n switch (status) {\n case PROJECT_LIST:\n case TASK:\n case PROJECT:\n case TEAMMATE:\n return new DeleteCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PROJECT_LIST, status);\n }\n\n case ClearCommand.COMMAND_WORD:\n if (!arguments.isEmpty()) {\n throw new ParseException(ClearCommand.MESSAGE_EXTRA_ARGS);\n }\n switch (status) {\n case PROJECT_LIST:\n return new ClearCommand();\n default:\n throw new InvalidScopeException(Status.PROJECT_LIST, status);\n }\n\n case FindCommand.COMMAND_WORD:\n switch (status) {\n case PERSON_LIST:\n case PERSON:\n throw new InvalidScopeException(Status.PROJECT_LIST, status);\n default:\n return new FindCommandParser().parse(arguments);\n }\n\n case ListProjectsCommand.COMMAND_WORD:\n if (!arguments.isEmpty()) {\n throw new ParseException(ClearCommand.MESSAGE_EXTRA_ARGS);\n }\n switch (status) {\n case PERSON:\n throw new InvalidScopeException(Status.PROJECT_LIST, status);\n default:\n return new ListProjectsCommand();\n }\n\n case ListPersonsCommand.COMMAND_WORD:\n if (!arguments.isEmpty()) {\n throw new ParseException(ClearCommand.MESSAGE_EXTRA_ARGS);\n }\n switch (status) {\n case PROJECT:\n case TASK:\n case TEAMMATE:\n throw new InvalidScopeException(Status.PERSON_LIST, status);\n default:\n return new ListPersonsCommand();\n }\n\n case ExitCommand.COMMAND_WORD:\n if (!arguments.isEmpty()) {\n throw new ParseException(ExitCommand.MESSAGE_EXTRA_ARGS);\n } else {\n return new ExitCommand();\n }\n\n case HelpCommand.COMMAND_WORD:\n if (!arguments.isEmpty()) {\n throw new ParseException(HelpCommand.MESSAGE_EXTRA_ARGS);\n } else {\n return new HelpCommand();\n }\n\n case StartProjectCommand.COMMAND_WORD:\n switch (status) {\n case PROJECT_LIST:\n case PROJECT:\n return new StartProjectCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PROJECT_LIST, status);\n }\n\n case StartPersonCommand.COMMAND_WORD:\n switch (status) {\n case PERSON_LIST:\n case PERSON:\n return new StartPersonCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PERSON_LIST, status);\n }\n\n case LeaveCommand.COMMAND_WORD:\n if (!arguments.isEmpty()) {\n throw new ParseException(LeaveCommand.MESSAGE_EXTRA_ARGS);\n } else {\n return new LeaveCommand();\n }\n\n case AssignCommand.COMMAND_WORD:\n switch (status) {\n case PROJECT:\n case TEAMMATE:\n case TASK:\n return new AssignCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PROJECT, status);\n }\n\n case AllTasksCommand.COMMAND_WORD:\n if (!arguments.isEmpty()) {\n throw new ParseException(ClearCommand.MESSAGE_EXTRA_ARGS);\n }\n switch (status) {\n case PROJECT:\n case TASK:\n case TEAMMATE:\n return new AllTasksCommand();\n default:\n throw new InvalidScopeException(Status.PROJECT, status);\n }\n\n case TaskFilterCommand.COMMAND_WORD:\n switch (status) {\n case PROJECT:\n case TASK:\n case TEAMMATE:\n return new TaskFilterCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PROJECT, status);\n }\n\n case TaskSorterCommand.COMMAND_WORD:\n switch (status) {\n case PROJECT:\n case TASK:\n case TEAMMATE:\n return new TaskSorterCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PROJECT, status);\n }\n\n case AddPersonCommand.COMMAND_WORD:\n return new AddPersonCommandParser().parse(arguments);\n\n case AddTeammateParticipationCommand.COMMAND_WORD:\n switch (status) {\n case PROJECT:\n case TASK:\n case TEAMMATE:\n return new AddTeammateParticipationCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PROJECT, status);\n }\n\n case DeleteTeammateParticipationCommand.COMMAND_WORD:\n switch (status) {\n case PROJECT:\n case TEAMMATE:\n case TASK:\n return new DeleteTeammateParticipationCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PROJECT, status);\n }\n\n case AddTaskCommand.COMMAND_WORD:\n switch (status) {\n case PROJECT:\n case TASK:\n case TEAMMATE:\n return new AddTaskCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PROJECT, status);\n }\n\n case DeleteTaskCommand.COMMAND_WORD:\n switch (status) {\n case PROJECT:\n case TEAMMATE:\n case TASK:\n return new DeleteTaskCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PROJECT, status);\n }\n\n case DeletePersonCommand.COMMAND_WORD:\n switch (status) {\n case PERSON_LIST:\n return new DeletePersonCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PERSON_LIST, status);\n }\n\n case EditTaskCommand.COMMAND_WORD:\n switch (status) {\n case PROJECT:\n case TEAMMATE:\n case TASK:\n return new EditTaskCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PROJECT, status);\n }\n\n case EditTeammateCommand.COMMAND_WORD:\n switch (status) {\n case PROJECT:\n case TEAMMATE:\n case TASK:\n return new EditTeammateCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PROJECT, status);\n }\n\n case ViewTaskCommand.COMMAND_WORD:\n switch (status) {\n case PROJECT:\n case TASK:\n case TEAMMATE:\n return new ViewTaskCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PROJECT, status);\n }\n\n case ViewTeammateCommand.COMMAND_WORD:\n switch (status) {\n case PROJECT:\n case TASK:\n case TEAMMATE:\n return new ViewTeammateCommandParser().parse(arguments);\n default:\n throw new InvalidScopeException(Status.PROJECT, status);\n }\n\n default:\n throw new ParseException(MESSAGE_UNKNOWN_COMMAND);\n }\n }", "title": "" }, { "docid": "876d4c7212966e59f722b629dd63e003", "score": "0.5853313", "text": "public Command parseCommand(String userInput) throws ParseException {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, HelpCommand.MESSAGE_USAGE));\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n switch (commandWord) {\n\n case ListCommand.COMMAND_WORD:\n return new ListCommandParser().parse(arguments);\n\n case ListTagsCommand.COMMAND_WORD:\n return new ListTagsCommand();\n\n case StatsCommand.COMMAND_WORD:\n return new StatsCommand();\n\n case SaveCommand.COMMAND_WORD:\n return new SaveCommand();\n\n case ExitCommand.COMMAND_WORD:\n return new ExitCommand();\n\n case HelpCommand.COMMAND_WORD:\n return new HelpCommand();\n case InitialiseMapCommand.COMMAND_WORD:\n case InitialiseMapCommand.COMMAND_ALIAS:\n case InitialiseMapCommand.COMMAND_ALIAS1:\n return new InitialiseMapCommandParser().parse(arguments);\n\n case PutShipCommand.COMMAND_WORD:\n case PutShipCommand.COMMAND_ALIAS:\n return new PutShipCommandParser().parse(arguments);\n\n case AttackCommand.COMMAND_WORD:\n case AttackCommand.COMMAND_ALIAS1:\n case AttackCommand.COMMAND_ALIAS2:\n case AttackCommand.COMMAND_ALIAS3:\n return new AttackCommandParser().parse(arguments);\n\n case BeginCommand.COMMAND_WORD:\n case BeginCommand.COMMAND_ALIAS1:\n return new BeginCommand();\n\n default:\n throw new ParseException(MESSAGE_UNKNOWN_COMMAND);\n }\n }", "title": "" }, { "docid": "d01a1ec33a94505692a12210729579ed", "score": "0.58391416", "text": "public static Query generateQuery(String command) {\n // Checks if command matches query string format\n Matcher matcher = expected.matcher(command);\n if (!matcher.matches()) return null;\n // Parse information out of command string\n String tableName = matcher.group(3);\n String[] projectedColumns = matcher.group(1).split(\", \");\n // Parse Where clause\n WhereTuple[] whereArgs = new WhereTuple[0];\n if (matcher.group(4) != null) {\n whereArgs = WhereArgs.parse(matcher.group(5));\n }\n // Parse OrderBy Clause\n String[] orderBy = new String[0];\n if(matcher.group(10) != null) {\n orderBy = matcher.group(11).split(\", \");\n }\n // Parse Limit Clause\n Integer limit = null;\n if(matcher.group(13) != null) {\n limit = Integer.parseInt(matcher.group(14));\n }\n return new Query(tableName, projectedColumns, whereArgs, orderBy, limit);\n }", "title": "" }, { "docid": "c4b77a2853efec106dff1aa1476fd87e", "score": "0.58389086", "text": "@Override\r\n\tpublic Command parse(String[] s) {\n\t\tif(s.length==1 && s[0].equalsIgnoreCase(\"RUN\"))\r\n\t\t\treturn new Run();\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8f67469d66508822efafd557e49b283e", "score": "0.58350456", "text": "public interface CommandParser {\n\n\tboolean isPlaceCommand(String input);\n\t\n\tboolean isMoveCommand(String input);\n\t\n\tboolean isLeftCommand(String input);\n\t\n\tboolean isRightCommand(String input);\n\t\n\tboolean isReportCommand(String input);\n\t\n\tPosition parsePlaceCommand(String input);\n\n}", "title": "" }, { "docid": "12364b56cafc27a3262bbb27c8badfed", "score": "0.5824945", "text": "public Object exec(String command) throws ReflectException {\n\t\tcommand = command.trim();\n\t\tif (command.startsWith(\"import \")) {\n\t\t\t// command is an import statement\n\t\t\tcommand = command.substring(7).trim();\n\t\t\tfinal int dot = command.lastIndexOf(\".\");\n\t\t\tfinal String varName = dot < 0 ? command : command.substring(dot + 1);\n\t\t\tClass<?> c;\n\t\t\ttry {\n\t\t\t\tc = Class.forName(command, true, loader);\n\t\t\t}\n\t\t\tcatch (final NoClassDefFoundError err) {\n\t\t\t\tthrow new ReflectException(\"No such class: \" + command, err);\n\t\t\t}\n\t\t\tcatch (final ClassNotFoundException exc) {\n\t\t\t\tthrow new ReflectException(\"No such class: \" + command, exc);\n\t\t\t}\n\t\t\tcatch (final RuntimeException exc) {\n\t\t\t\t// HACK: workaround for bug in Apache Axis2\n\t\t\t\tfinal String msg = exc.getMessage();\n\t\t\t\tif (msg != null && msg.indexOf(\"ClassNotFound\") < 0) throw exc;\n\t\t\t\tthrow new ReflectException(\"No such class: \" + command, exc);\n\t\t\t}\n\t\t\tsetVar(varName, c);\n\t\t\treturn null;\n\t\t}\n\n\t\t// get variable where results of command should be stored\n\t\tfinal int eqIndex = command.indexOf(\"=\");\n\t\tString target = null;\n\t\tif (eqIndex >= 0) {\n\t\t\ttarget = command.substring(0, eqIndex).trim();\n\t\t\tcommand = command.substring(eqIndex + 1).trim();\n\t\t}\n\n\t\tObject result = null;\n\n\t\t// parse parentheses\n\t\tfinal int leftParen = command.indexOf(\"(\");\n\t\tif (leftParen < 0) {\n\t\t\t// command is a simple assignment\n\t\t\tresult = getVar(command);\n\t\t\tif (target != null) setVar(target, result);\n\t\t\treturn result;\n\t\t}\n\t\telse if (leftParen != command.lastIndexOf(\"(\") ||\n\t\t\tcommand.indexOf(\")\") != command.length() - 1)\n\t\t{\n\t\t\tthrow new ReflectException(\"Invalid parentheses\");\n\t\t}\n\n\t\t// parse arguments\n\t\tfinal String arglist = command.substring(leftParen + 1);\n\t\tfinal StringTokenizer st = new StringTokenizer(arglist, \"(,)\");\n\t\tfinal int len = st.countTokens();\n\t\tfinal Object[] args = new Object[len];\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tfinal String arg = st.nextToken().trim();\n\t\t\targs[i] = getVar(arg);\n\t\t}\n\t\tcommand = command.substring(0, leftParen);\n\n\t\tif (command.startsWith(\"new \")) {\n\t\t\t// command is a constructor call\n\t\t\tfinal String className = command.substring(4).trim();\n\t\t\tfinal Object var = getVar(className);\n\t\t\tif (var == null) {\n\t\t\t\tthrow new ReflectException(\"Class not found: \" + className);\n\t\t\t}\n\t\t\telse if (!(var instanceof Class<?>)) {\n\t\t\t\tthrow new ReflectException(\"Not a class: \" + className);\n\t\t\t}\n\t\t\tfinal Class<?> cl = (Class<?>) var;\n\n\t\t\t// Search for a constructor that matches the arguments. Unfortunately,\n\t\t\t// calling cl.getConstructor(argClasses) does not work, because\n\t\t\t// getConstructor() is not flexible enough to detect when the arguments\n\t\t\t// are subclasses of the constructor argument classes, making a brute\n\t\t\t// force search through all public constructors necessary.\n\t\t\tConstructor<?> constructor = null;\n\t\t\tfinal Constructor<?>[] c = cl.getConstructors();\n\t\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\t\tif (force) c[i].setAccessible(true);\n\t\t\t\tfinal Class<?>[] params = c[i].getParameterTypes();\n\t\t\t\tif (params.length == args.length) {\n\t\t\t\t\tboolean match = true;\n\t\t\t\t\tfor (int j = 0; j < params.length; j++) {\n\t\t\t\t\t\tif (!isInstance(params[j], args[j])) {\n\t\t\t\t\t\t\tmatch = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (match) {\n\t\t\t\t\t\tconstructor = c[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (constructor == null) {\n\t\t\t\tfinal StringBuffer sb = new StringBuffer(command);\n\t\t\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\t\t\tsb.append(i == 0 ? \"(\" : \", \");\n\t\t\t\t\tsb.append(args[i].getClass().getName());\n\t\t\t\t}\n\t\t\t\tsb.append(\")\");\n\t\t\t\tthrow new ReflectException(\"No such constructor: \" + sb.toString());\n\t\t\t}\n\n\t\t\t// invoke constructor\n\t\t\tException exc = null;\n\t\t\ttry {\n\t\t\t\tresult = constructor.newInstance(args);\n\t\t\t}\n\t\t\tcatch (final InstantiationException e) {\n\t\t\t\texc = e;\n\t\t\t}\n\t\t\tcatch (final IllegalAccessException e) {\n\t\t\t\texc = e;\n\t\t\t}\n\t\t\tcatch (final InvocationTargetException e) {\n\t\t\t\texc = e;\n\t\t\t}\n\t\t\tif (exc != null) {\n\t\t\t\tthrow new ReflectException(\"Cannot instantiate object\", exc);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// command is a method call\n\t\t\tfinal int dot = command.indexOf(\".\");\n\t\t\tif (dot < 0) throw new ReflectException(\"Syntax error\");\n\t\t\tfinal String varName = command.substring(0, dot).trim();\n\t\t\tfinal String methodName = command.substring(dot + 1).trim();\n\t\t\tfinal Object var = getVar(varName);\n\t\t\tif (var == null) {\n\t\t\t\tthrow new ReflectException(\"No such variable: \" + varName);\n\t\t\t}\n\t\t\tfinal Class<?> varClass =\n\t\t\t\tvar instanceof Class<?> ? (Class<?>) var : var.getClass();\n\n\t\t\t// Search for a method that matches the arguments. Unfortunately,\n\t\t\t// calling varClass.getMethod(methodName, argClasses) does not work,\n\t\t\t// because getMethod() is not flexible enough to detect when the\n\t\t\t// arguments are subclasses of the method argument classes, making a\n\t\t\t// brute force search through all public methods necessary.\n\t\t\tMethod method = null;\n\t\t\tfinal Method[] m = varClass.getMethods();\n\t\t\tfor (int i = 0; i < m.length; i++) {\n\t\t\t\tif (force) m[i].setAccessible(true);\n\t\t\t\tif (methodName.equals(m[i].getName())) {\n\t\t\t\t\tfinal Class<?>[] params = m[i].getParameterTypes();\n\t\t\t\t\tif (params.length == args.length) {\n\t\t\t\t\t\tboolean match = true;\n\t\t\t\t\t\tfor (int j = 0; j < params.length; j++) {\n\t\t\t\t\t\t\tif (!isInstance(params[j], args[j])) {\n\t\t\t\t\t\t\t\tmatch = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (match) {\n\t\t\t\t\t\t\tmethod = m[i];\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (method == null) {\n\t\t\t\tthrow new ReflectException(\"No such method: \" + methodName);\n\t\t\t}\n\n\t\t\t// invoke method\n\t\t\tException exc = null;\n\t\t\ttry {\n\t\t\t\tresult = method.invoke(var, args);\n\t\t\t}\n\t\t\tcatch (final IllegalAccessException e) {\n\t\t\t\texc = e;\n\t\t\t}\n\t\t\tcatch (final InvocationTargetException e) {\n\t\t\t\texc = e;\n\t\t\t}\n\t\t\tif (exc != null) {\n\t\t\t\tthrow new ReflectException(\"Cannot execute method: \" + methodName, exc);\n\t\t\t}\n\t\t}\n\n\t\t// assign result to proper variable\n\t\tif (target != null) setVar(target, result);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "ac86f35798cce083142b9755cac1b84e", "score": "0.5783332", "text": "public KVCommand getParsedCommand(String command){\n for (KVCommandPattern pattern: commandPatterns\n ) {\n if(pattern.isMatched(command)){\n return pattern.generateCommand(command);\n }\n }\n return null;\n }", "title": "" }, { "docid": "dd5dfd91c8518b9d246c2e04dd453fa4", "score": "0.5724882", "text": "private String parse(String query) {\n int length = query.length();\n StringBuilder parsedQuery = new StringBuilder(length);\n boolean inSingleQuote = false;\n boolean inDoubleQuote = false;\n int index = 1;\n\n for (int i = 0; i < length; i++) {\n char c = query.charAt(i);\n if (inSingleQuote) {\n if (c == '\\'') {\n inSingleQuote = false;\n }\n } else if (inDoubleQuote) {\n if (c == '\"') {\n inDoubleQuote = false;\n }\n } else {\n if (c == '\\'') {\n inSingleQuote = true;\n } else if (c == '\"') {\n inDoubleQuote = true;\n } else if (c == ':' && i + 1 < length &&\n Character.isJavaIdentifierStart(query.charAt(i + 1))) {\n int j = i + 2;\n while (j < length && Character.isJavaIdentifierPart(query.charAt(j))) {\n j++;\n }\n String name = query.substring(i + 1, j);\n c = '?'; // replace the parameter with a question mark\n i += name.length(); // skip past the end if the parameter\n\n List<Integer> indexList = indexMap.computeIfAbsent(name, k -> new ArrayList<>());\n indexList.add(index);\n\n index++;\n }\n }\n parsedQuery.append(c);\n }\n\n return parsedQuery.toString();\n }", "title": "" }, { "docid": "e18ac178007b82fc0c25b48a1e9643be", "score": "0.5617548", "text": "void parse(String statement);", "title": "" }, { "docid": "76ebfe3c191518197f29b7b0eedf287a", "score": "0.5606244", "text": "public static Command parse(String userInput) throws DukeException {\n String firstWord = userInput.split(\" \", 2)[0];\n switch (firstWord) {\n case INDICATOR_CLOSING:\n return ExitCommand.create();\n case INDICATOR_LIST:\n return ListCommand.create();\n case INDICATOR_DONE:\n return DoneCommand.parse(userInput);\n case INDICATOR_DELETE:\n return DeleteCommand.parse(userInput);\n case INDICATOR_FIND:\n return FindCommand.parse(userInput);\n default:\n return AddCommand.parse(userInput);\n }\n }", "title": "" }, { "docid": "27ee94e12d8770fa992a46fa2b0b0c35", "score": "0.5578299", "text": "public static Command parse(String inputLine) throws DukeException {\n String command = getCommandFrom(inputLine);\n switch (command) {\n case \"bye\":\n return new ExitCommand();\n case \"list\":\n return new ListCommand();\n case \"done\":\n return new DoneCommand(getIndexFrom(inputLine));\n case \"todo\":\n return new AddCommand(createTodoFrom(inputLine));\n case \"deadline\":\n return new AddCommand(createDeadlineFrom(inputLine));\n case \"event\":\n return new AddCommand(createEventFrom(inputLine));\n case \"delete\":\n return new DeleteCommand(getIndexFrom(inputLine));\n case \"find\":\n return new FindCommand(getKeywordFrom(inputLine));\n default:\n throw new DukeException(MessageUtils.MESSAGE_INVALID_COMMAND_FORMAT);\n }\n }", "title": "" }, { "docid": "d6ed69644a008793b9eda78eae3f130d", "score": "0.55681056", "text": "@Override\n\tpublic Command parse(String[] s) {\n\t\tif (s.length==1 && s[0].equalsIgnoreCase(\"Compile\"))\n\t\t\treturn new Compile();\n\t\telse return null;\n\t}", "title": "" }, { "docid": "92e4db03f5befc0841e82b2456125e0b", "score": "0.55510813", "text": "public static String executeCommand(String command, DataBase db) throws Exception {\n //parse command\n command = command.trim();\n System.out.print(command); // debug\n String[] parts = command.split(\" \");\n for (String part: parts) //trim extra-whitespaces\n part = part.trim();\n\n if (parts.length >= 3 && parts[0].toUpperCase().equals(\"REGISTER\"))\n return db.register(new LicensePlate(parts[1], String.join(\" \", Arrays.asList(parts).subList(2, parts.length)))).toString();\n else if (parts.length == 2 && parts[0].toUpperCase().equals(\"LOOKUP\"))\n return db.lookup(parts[1]);\n\n return \"COMMAND NOT FOUND\";\n }", "title": "" }, { "docid": "3fabda9bfba29f8aab00cf7fa2a8480e", "score": "0.55464375", "text": "public static Command parse(String fullCommand) throws DukeException {\n String[] cmdArgs = fullCommand.split(\" \", 2);\n Keyword keyword = Keyword.getKeyword(cmdArgs[0]);\n\n Command cmd;\n switch (keyword) {\n case BYE:\n cmd = new ByeCommand();\n break;\n case LIST:\n cmd = new ListCommand();\n break;\n case DONE:\n cmd = new DoneCommand(cmdArgs);\n break;\n case FIND:\n cmd = new FindCommand(cmdArgs);\n break;\n case DELETE:\n cmd = new DeleteCommand(cmdArgs);\n break;\n case DEADLINE:\n cmd = new DeadlineCommand(cmdArgs);\n break;\n case EVENT:\n cmd = new EventCommand(cmdArgs);\n break;\n case TODO:\n cmd = new TodoCommand(cmdArgs);\n break;\n default:\n throw new InvalidCommandException();\n }\n return cmd;\n }", "title": "" }, { "docid": "733c267ab9e4fb8241860b7fc1695be0", "score": "0.5511127", "text": "public Response getResponse(String input) {\n Response response;\n\n try {\n Command c = Parser.parse(input);\n response = new Response(c.execute(this.tasks, this.storage), c.isExit());\n } catch (DukeException e) {\n response = new Response(e.getMessage(), false);\n }\n\n assert response.message != null : \"Response string should not be null\";\n\n return response;\n }", "title": "" }, { "docid": "15b8ba99b2c05047d7c1535dcff66155", "score": "0.5507048", "text": "public static void evaluate ( String command ) {\n try {\n MRQLLex scanner = new MRQLLex(new StringReader(command));\n MRQLParser parser = new MRQLParser(scanner);\n parser.setScanner(scanner);\n MRQLLex.reset();\n parser.parse();\n } catch (Exception x) {\n x.printStackTrace();\n throw new Error(x);\n }\n }", "title": "" }, { "docid": "d21a922f66142e626b7ef745a23ede4a", "score": "0.5506118", "text": "public Query parseQuery( String gql, Object... params) {\n fo = null;\n\n try {\n GqlDynamicLexer lexer = new GqlDynamicLexer( new ANTLRStringStream( gql ));\n GqlDynamicParser parser = new GqlDynamicParser( new CommonTokenStream( lexer ));\n\n Query ret = parser.gql( params );\n\n fo = FetchOptions.Builder.withOffset( parser.getOffset() != null ? parser.getOffset() : 0);\n\n if (parser.getLimit() != null) {\n fo = fo.limit( parser.getLimit());\n }\n\n multipleQueries = parser.wasMultipleQueries();\n keysOnly = parser.wasKeysOnly();\n\n return ret;\n }\n catch (RecognitionException e) {\n log.error(\"parseQuery(): \" + formatError( gql, e ));\n\n throw new RuntimeException( e );\n }\n catch (RuntimeException e) {\n log.error(\"parseQuery(): \" + formatError( gql, e ));\n\n throw e;\n }\n }", "title": "" }, { "docid": "923bfee96ea27db44399e0714f2e84b4", "score": "0.5485778", "text": "public String parse(String input) {\n assert input != null;\n\n String[] cmdWithArgs = input.split(\" \", 2);\n switch (cmdWithArgs[0]) {\n case \"list\":\n return parseList();\n\n case \"todo\":\n return parseTodo(cmdWithArgs);\n\n case \"deadline\":\n return parseDeadline(cmdWithArgs);\n\n case \"event\":\n return parseEvent(cmdWithArgs);\n\n case \"done\":\n return parseDone(cmdWithArgs);\n\n case \"delete\":\n return parseDelete(cmdWithArgs);\n\n case \"find\":\n return parseFind(cmdWithArgs);\n\n case \"bye\":\n return parseBye();\n\n case \"help\":\n return parseHelp(cmdWithArgs);\n\n default:\n return \"Notice. Unfamiliar command detected. Enter 'help' to view commands.\\n\";\n }\n }", "title": "" }, { "docid": "312f4768855992e0a99e21740998e44b", "score": "0.54600716", "text": "public static String parsing(String[] command){\n String output = null;\n try{ //xrisimopoieitai gia apofigi dublicate code\n Process child = Runtime.getRuntime().exec(command);\n BufferedReader r = new BufferedReader(new InputStreamReader(child.getInputStream()));\n output = r.readLine(); //kai epistrefei to output.\n r.close();\n }catch(IOException e){e.printStackTrace();}\n return output;\n }", "title": "" }, { "docid": "706057da50088aefe510f7639e2220f7", "score": "0.5444007", "text": "public String Command(String command) {\n String[] tokens = command.split(\" \");\n String order = command.split(\" \")[0];\n if(order.equals(\"borrow\")) {\n String studentName = command.split(\" \")[1];\n String bookName = \"\\\"\" + command.split(\"\\\"\")[1] + \"\\\"\";\n return borrow(new String[]{studentName, bookName});\n }\n else if (order.equals(\"return\"))\n return returnBook(Integer.parseInt(tokens[1]));\n else if (order.equals(\"list\"))\n return list(tokens[1]);\n else if (order.equals(\"inventory\"))\n return inventory();\n return \"\";\n }", "title": "" }, { "docid": "f54f7fe8f8ddb68fce213be7f98b31b6", "score": "0.5423458", "text": "public List<Result> executeQuery(String string) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fd8684ecb6684e8eb354cf7d980b23c6", "score": "0.54176104", "text": "public String parse(String query, boolean fdw) throws Exception {\n\t\treturn parse2(query, fdw, \"\", false);\n\t}", "title": "" }, { "docid": "fd5bda73b8c7e561a016f5fbba5ebc9f", "score": "0.5417391", "text": "public String commandParser(String sentence, TaskList tasks) {\n String[] arr = sentence.split(\"\\\\s+\");\n String command = arr[0];\n String comText = textParser(arr);\n\n String returnStr;\n try {\n switch (command) {\n case \"todo\":\n returnStr = Command.todoCommand(arr, comText, tasks);\n break;\n case \"deadline\":\n returnStr = Command.deadlineCommand(arr, comText, tasks);\n break;\n case \"event\":\n returnStr = Command.eventCommand(arr, comText, tasks);\n break;\n case \"find\":\n returnStr = Command.findCommand(comText, tasks);\n break;\n case \"list\":\n returnStr = Ui.getList(tasks.getList());\n break;\n case \"done\":\n returnStr = Command.doneCommand(arr, comText, tasks);\n break;\n case \"delete\":\n returnStr = Command.deleteCommand(arr, comText, tasks);\n break;\n case \"bye\":\n returnStr = \"Bye. Hope to see you again soon!\";\n break;\n default:\n throw new InvalidCommandException();\n }\n } catch (Exception e) {\n returnStr = e.getMessage();\n }\n\n return returnStr;\n }", "title": "" }, { "docid": "31f55c967e95282f123f8daa22926bbb", "score": "0.54122144", "text": "public Command commandHandler(String inputText) {\n try {\n String[] splitArr = inputText.split(\" \");\n String command = splitArr[0];\n\n switch (command) {\n case (\"find\"):\n return this.handleFindCommand(splitArr);\n case (\"done\"):\n return this.handleDoneCommand(splitArr);\n case (\"list\"):\n return this.handleListCommand();\n case (\"bye\"):\n return this.handleExitCommand();\n case (\"delete\"):\n return this.handleDeleteCommand(splitArr);\n case (\"todo\"):\n return this.handleTodoCommand(inputText);\n case (\"deadline\"):\n return this.handleDeadlineCommand(inputText, splitArr);\n case (\"event\"):\n return this.handleEventCommand(inputText, splitArr);\n case (\"update\"):\n return this.handleUpdateCommand(inputText);\n default:\n throw new UnknownCommandException(\"Unknown command entered\");\n }\n\n } catch (EmptyDescriptionException empty) {\n return new ErrorCommand(\"Mate, you've gotta let me know what you're gonna be doing.\");\n } catch (UnknownCommandException com) {\n return new ErrorCommand(\"Um, are you sure that's not gibberish?\");\n } catch (UnknownTimeException by) {\n return new ErrorCommand(\"You've gotta let me know the time.\");\n } catch (EmptyTimeException at) {\n return new ErrorCommand(\"There has to be a time, surely. Don't leave it blank!\");\n } catch (UnknownTaskException ex) {\n return new ErrorCommand(\"C'mon, I don't live in your head, you gotta tell me the task number!\");\n } catch (InvalidArgumentsException ex) {\n return new ErrorCommand(\"You haven't provided the appropriate arguments, dumbo!\");\n } catch (DateTimeParseException ex) {\n return new ErrorCommand(\"You need to provide a valid date! Check your formatting to see if it's valid.\");\n }\n }", "title": "" }, { "docid": "7bd216097a01fdf9ee0c68f2385baa35", "score": "0.54106474", "text": "@Override\n public DevCmdInfo command_query(final String commandName) throws DevFailed {\n MDC.put(MDC_KEY, name);\n xlogger.entry();\n // checkInitialization();\n deviceMonitoring.startRequest(\"command_query \" + commandName);\n final CommandImpl foundCmd = getCommand(commandName);\n final DevCmdInfo tmp = new DevCmdInfo();\n tmp.cmd_name = foundCmd.getName();\n tmp.cmd_tag = foundCmd.getTag();\n tmp.in_type = foundCmd.getInType().getTangoIDLType();\n tmp.out_type = foundCmd.getOutType().getTangoIDLType();\n tmp.in_type_desc = foundCmd.getInTypeDesc();\n tmp.out_type_desc = foundCmd.getOutTypeDesc();\n return tmp;\n }", "title": "" }, { "docid": "234447b711c5803d3426e0a43461ef37", "score": "0.54086775", "text": "private Command convertToCommand(String input){\n try {\n return Command.valueOf(input.toUpperCase());\n } catch (IllegalArgumentException e){\n return null;\n }\n }", "title": "" }, { "docid": "a9ef78aa7b7d9d09dad3f80c7cfccc0f", "score": "0.5407518", "text": "public Command getCommand() \n {\n // Pre-defines variables for the input\n String inputLine;\n String word1 = null;\n String word2 = null;\n // Shows the player that an input is needed.\n // Should be sent to the GUI\n System.out.print(\"> \"); \n // takes an input as a string\n inputLine = reader.nextLine();\n\n // Takes a string to parse\n Scanner tokenizer = new Scanner(inputLine);\n // The Scanner object splits the string for every space ' ' by default, which is what we use\n // Checks if the input has a word, and stores the first word\n if(tokenizer.hasNext()) {\n // The next functions is called the first time, assigning the first word to the string variable\n word1 = tokenizer.next();\n // Checks to see if the input has a second word, and assigns the variable for it if true\n if(tokenizer.hasNext()) {\n word2 = tokenizer.next(); \n }\n }\n // Returns a command object made from the input\n // The getCommandWord function takes the action input string and returns the appropriate Enum\n // If the first word is null, no input was given and the Enum becomes the UNKNOWN, as well as if the word doesn't match an Enum\n // The second word is also null if no input is given\n return new Command(commands.getCommandWord(word1), word2);\n }", "title": "" }, { "docid": "3cf3415b5bba7e81866e2be485a37e29", "score": "0.5403002", "text": "public static Command getCommand(String input) throws DukeException {\n String[] inputArr = input.split(\" \");\n String command = inputArr[0].toLowerCase();\n switch (command) {\n case \"todo\":\n return new TodoCommand(input);\n case \"deadline\":\n return new DeadlineCommand(input);\n case \"event\":\n return new EventCommand(input);\n case \"list\":\n return new ListCommand();\n case \"done\":\n return new DoneCommand(input);\n case \"bye\":\n return new ByeCommand();\n case \"delete\":\n return new DeleteCommand(input);\n case \"find\":\n return new FindCommand(input);\n case \"priority\":\n return new PriorityCommand(input);\n case \"clear\":\n return new ClearCommand();\n case \"help\":\n return new HelpCommand();\n default:\n throw new DukeException();\n }\n }", "title": "" }, { "docid": "0806429e7f195df531ad072adb8cf1e8", "score": "0.53323454", "text": "public Expression<?> Parse(String expression) throws ParseException;", "title": "" }, { "docid": "70aed0ca886c0e3a64ffe6ca338e50bf", "score": "0.5326858", "text": "private CommandResult executeCommand(String commandText) throws CommandException, ParseException,\n UnmappedPanelException {\n\n try {\n Budget primaryBudget = logic.getPrimaryBudget();\n boolean initialIsHalf = primaryBudget.isHalf();\n boolean initialIsNear = primaryBudget.isNear();\n boolean initialIsExceeded = primaryBudget.isExceeded();\n\n String commandGroup = decideCommandGroup();\n CommandResult commandResult = logic.execute(commandText, commandGroup);\n\n singlePanelView.setPanel(AliasPanel.PANEL_NAME, new AliasPanel(logic.getAliasMappings()));\n singlePanelView.setPanel(BudgetPanel.PANEL_NAME, new BudgetPanel(logic.getPrimaryBudget()));\n changePanel(commandResult.viewRequest());\n\n logger.info(\"Result: \" + commandResult.getFeedbackToUser());\n resultDisplay.setFeedbackToUser(commandResult.getFeedbackToUser());\n\n if (commandResult.isShowHelp()) {\n handleHelp();\n }\n\n if (commandResult.isExit()) {\n handleExit();\n }\n\n boolean finalIsHalf = primaryBudget.isHalf();\n boolean finalIsNear = primaryBudget.isNear();\n boolean finalIsExceeded = primaryBudget.isExceeded();\n\n showWarningIfAny(initialIsHalf, initialIsNear, initialIsExceeded,\n finalIsHalf, finalIsNear, finalIsExceeded);\n\n return commandResult;\n } catch (CommandException | ParseException e) {\n logger.info(\"Invalid command: \" + commandText);\n resultDisplay.setFeedbackToUser(e.getMessage());\n throw e;\n } catch (UnmappedPanelException e) {\n logger.info(\"Invalid command: \" + commandText);\n resultDisplay.setFeedbackToUser(e.getMessage() + \"\\n\"\n + String.format(ViewPanelCommand.SHOW_AVAILABLE_PANELS, singlePanelView.toString()));\n throw e;\n }\n }", "title": "" }, { "docid": "759a7bb31ca707b659d2ff09721be7ee", "score": "0.53221506", "text": "public static void parseCommand(String input) throws DukeException {\n int lengthOfCommandType = 0;\n String commandType;\n if (input.equals(\"help\") || input.equals(\"list\") || input.equals(\"bye\")) {\n commandType = input;\n } else if (!input.contains(\" \")) {\n throw new DukeException();\n } else {\n lengthOfCommandType = input.indexOf(' ');\n commandType = input.substring(START_POSITION, lengthOfCommandType);\n }\n String commandContent = input.substring(lengthOfCommandType + ONE_SPACE_LENGTH);\n switch (commandType) {\n case \"help\":\n parseHelpCommand();\n break;\n case \"todo\":\n parseTodoCommand(commandContent);\n break;\n case \"deadline\":\n parseDeadlineCommand(commandContent);\n break;\n case \"event\":\n parseEventCommand(commandContent);\n break;\n case \"list\":\n parseListCommand();\n break;\n case \"done\":\n parseDoneCommand(commandContent);\n break;\n case \"delete\":\n parseDeleteCommand(commandContent);\n break;\n case \"find\":\n parseFindCommand(commandContent);\n break;\n case \"date\":\n parseDateCommand(commandContent);\n break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "7fda557000f2f6b8396d219e15ac9259", "score": "0.53210574", "text": "public static Command parseInput(String userInput) throws DukeException{\r\n\r\n switch(userInput.split(\" \")[0]){\r\n case AddDeadlineCommand.INPUT_WORD:\r\n return new AddDeadlineCommand(false, userInput);\r\n case AddEventCommand.INPUT_WORD:\r\n return new AddEventCommand(false, userInput);\r\n case AddToDoCommand.INPUT_WORD:\r\n return new AddToDoCommand(false, userInput);\r\n case ListCommand.INPUT_WORD:\r\n return new ListCommand(false, \"\");\r\n case DeleteCommand.INPUT_WORD:\r\n return new DeleteCommand(false, userInput);\r\n case DoneCommand.INPUT_WORD:\r\n return new DoneCommand(false, userInput);\r\n case ByeCommand.INPUT_WORD:\r\n return new ByeCommand(true, \"\");\r\n case FindCommand.INPUT_WORD:\r\n return new FindCommand(false, userInput);\r\n case ScheduleCommand.INPUT_WORD:\r\n return new ScheduleCommand(false, userInput);\r\n default:\r\n throw new DukeException(\"I'm sorry, but I don't know what that means :-(\"); \r\n }\r\n }", "title": "" }, { "docid": "b85d6629a36b1ae973d37437b86e3b2a", "score": "0.5313332", "text": "String getResponse(String input) {\n try {\n Command c = Parser.parse(input);\n return c.execute(tasks, storage);\n } catch (TaskChickException e) {\n return e.getMessage();\n }\n }", "title": "" }, { "docid": "ec5f83c8f50861d7de199ccce30dba57", "score": "0.5311854", "text": "public void getCommand(String s);", "title": "" }, { "docid": "6a72d29243316402b7e29a2e8bc599f3", "score": "0.5310817", "text": "public abstract String execute(String param);", "title": "" }, { "docid": "b1a08bf3b7c4aa701c10eb16cae4f5c1", "score": "0.52796006", "text": "public CommandParser(String input) {\n this.input = input;\n }", "title": "" }, { "docid": "5b222ec7732ebc4f20d1914049503319", "score": "0.52764904", "text": "public CommandResult executeCommand(Command command) {\n if(command == null) {\n return new CommandResult(Command.Type.NONE, CommandResult.FAIL, \"Command not recognized\", null);\n }\n // 2. COMMAND WITH ERROR: FAILURE\n else if(!command.getError().equals(\"\")) {\n return new CommandResult(Command.Type.SENT, CommandResult.FAIL, command.mError, null);\n }\n // 3. MOVE COMMAND: RETURN MOVE RECORD (receiver sends to callback after verifying side &c)\n else if(command.getType() == Command.Type.MOVE) {\n if(!mInGame) {\n return new CommandResult(Command.Type.MOVE, CommandResult.FAIL, \"Game over\", null);\n }\n\n CommandParser.Move m = (CommandParser.Move) command;\n if(m.from == null || m.to == null) {\n return new CommandResult(Command.Type.MOVE, CommandResult.FAIL, \"Invalid coords\", null);\n }\n\n String message = \"\";\n\n char piece = mGame.getCurrentState().getPieceAt(m.from.x, m.from.y);\n if (piece == Taflman.EMPTY) {\n message = \"No taflman at \" + m.from;\n return new CommandResult(Command.Type.MOVE, CommandResult.FAIL, message, null);\n }\n\n Coord destination = mGame.getCurrentState().getSpaceAt(m.to.x, m.to.y);\n MoveRecord record = new MoveRecord(Taflman.getCurrentSpace(mGame.getCurrentState(), piece), destination);\n\n return new CommandResult(Command.Type.MOVE, CommandResult.SUCCESS, \"\", record);\n }\n // 4. INFO COMMAND: SUCCESS (command parser does all the required verification)\n else if(command.getType() == Command.Type.INFO) {\n return new CommandResult(Command.Type.INFO, CommandResult.SUCCESS, \"\", null);\n }\n // 5. SHOW COMMAND: SUCCESS\n else if(command.getType() == Command.Type.SHOW) {\n return new CommandResult(Command.Type.SHOW, CommandResult.SUCCESS, \"\", null);\n }\n // 6. HISTORY COMMAND: SUCCESS\n else if(command.getType() == Command.Type.HISTORY) {\n String gameRecord;\n if(mMode == UiCallback.Mode.REPLAY) {\n gameRecord = mReplay.getReplayModeInGameHistoryString();\n }\n else {\n gameRecord = mGame.getHistoryString();\n }\n\n return new CommandResult(Command.Type.HISTORY, CommandResult.SUCCESS, \"\", gameRecord);\n }\n // 7. HELP COMMAND: SUCCESS\n else if(command.getType() == Command.Type.HELP) {\n return new CommandResult(Command.Type.HELP, CommandResult.SUCCESS, \"\", null);\n }\n // 8. RULES COMMAND: SUCCESS\n else if(command.getType() == Command.Type.RULES) {\n return new CommandResult(Command.Type.RULES, CommandResult.SUCCESS, \"\", HumanReadableRulesPrinter.getHumanReadableRules(getGame().getRules()));\n }\n // 9. SAVE COMMAND: SUCCESS\n else if(command.getType() == Command.Type.SAVE) {\n return new CommandResult(Command.Type.SAVE, CommandResult.SUCCESS, \"\", null);\n }\n // 10. QUIT COMMAND: SUCCESS\n else if(command.getType() == Command.Type.QUIT) {\n return new CommandResult(Command.Type.QUIT, CommandResult.SUCCESS, \"\", null);\n }\n // 11. ANALYZE COMMAND\n else if(command.getType() == Command.Type.ANALYZE) {\n CommandParser.Analyze a = (CommandParser.Analyze) command;\n\n if(mAnalysisEngine == null) {\n return new CommandResult(Command.Type.ANALYZE, CommandResult.FAIL, \"No analysis engine loaded\", null);\n }\n else {\n Game g = mGame;\n if(mMode == UiCallback.Mode.REPLAY) {\n g = mReplay.getGame();\n }\n\n mAnalysisEngine.analyzePosition(a.moves, a.seconds, g.getCurrentState());\n return new CommandResult(Command.Type.ANALYZE, CommandResult.SUCCESS, \"\", null);\n }\n }\n // 12. REPLAY START COMMAND\n else if(command.getType() == Command.Type.REPLAY_ENTER) {\n // TODO: if we already have an mReplay, update that off of the current game state.\n ReplayGame rg = ReplayGame.copyGameToReplay(mGame);\n enterReplay(rg);\n return new CommandResult(Command.Type.REPLAY_ENTER, CommandResult.SUCCESS, \"\", null);\n }\n // 13. REPLAY PLAY HERE COMMAND\n else if(command.getType() == Command.Type.REPLAY_PLAY_HERE) {\n if(mInGame) {\n finishGame(true);\n }\n\n Game g = mReplay.getGame();\n mReplay.prepareForGameStart(mReplay.getCurrentState().getMoveAddress());\n\n if(g.getClock() != null) {\n TimeSpec attackerClock = mReplay.getTimeGuess(true);\n TimeSpec defenderClock = mReplay.getTimeGuess(false);\n\n g.getClock().getClockEntry(true).setTime(attackerClock);\n g.getClock().getClockEntry(false).setTime(defenderClock);\n }\n else if(TerminalSettings.timeSpec.mainTime != 0 || TerminalSettings.timeSpec.overtimeTime != 0) {\n GameClock clock = new GameClock(g, TerminalSettings.timeSpec);\n\n g.setClock(clock);\n }\n\n enterGame(g);\n return new CommandResult(Command.Type.REPLAY_PLAY_HERE, CommandResult.SUCCESS, \"\", null);\n }\n // 14. REPLAY RETURN COMMAND\n else if(command.getType() == Command.Type.REPLAY_RETURN) {\n leaveReplay();\n\n return new CommandResult(Command.Type.REPLAY_RETURN, CommandResult.SUCCESS, \"\", null);\n }\n // 15. REPLAY NEXT COMMAND\n else if(command.getType() == Command.Type.REPLAY_NEXT) {\n CommandParser.ReplayNext n = ((CommandParser.ReplayNext) command);\n if(n.nextVariation == -1) {\n return new CommandResult(Command.Type.REPLAY_NEXT, CommandResult.FAIL, \"Argument is not a variation index\", null);\n }\n\n\n ReplayGameState state = null;\n ReplayGame.NavigationResult result = mReplay.nextState(n.nextVariation);\n state = mReplay.getCurrentState();\n\n switch(result) {\n case SUCCESS:\n mAttacker.positionChanged(state);\n mDefender.positionChanged(state);\n return new CommandResult(Command.Type.REPLAY_NEXT, CommandResult.SUCCESS, \"\", state.getLastMoveResult());\n case INVALID_ARGUMENT:\n return new CommandResult(Command.Type.REPLAY_NEXT, CommandResult.FAIL, \"Invalid argument.\", null);\n case END_OF_GAME:\n return new CommandResult(Command.Type.REPLAY_NEXT, CommandResult.FAIL, \"At the end of the game history.\", null);\n case PUZZLE_DISALLOWS_NAVIGATION:\n return new CommandResult(Command.Type.REPLAY_NEXT, CommandResult.FAIL, \"Puzzle mode does not allow navigation to that state.\", null);\n }\n }\n // 16. REPLAY PREV COMMAND\n else if(command.getType() == Command.Type.REPLAY_PREVIOUS) {\n ReplayGameState state = null;\n ReplayGame.NavigationResult result = mReplay.previousState();\n state = mReplay.getCurrentState();\n\n switch(result) {\n case SUCCESS:\n mAttacker.positionChanged(state);\n mDefender.positionChanged(state);\n return new CommandResult(Command.Type.REPLAY_NEXT, CommandResult.SUCCESS, \"\", state.getLastMoveResult());\n case INVALID_ARGUMENT:\n return new CommandResult(Command.Type.REPLAY_NEXT, CommandResult.FAIL, \"Invalid argument.\", null);\n case END_OF_GAME:\n return new CommandResult(Command.Type.REPLAY_NEXT, CommandResult.FAIL, \"At the end of the game history.\", null);\n case PUZZLE_DISALLOWS_NAVIGATION:\n return new CommandResult(Command.Type.REPLAY_NEXT, CommandResult.FAIL, \"Puzzle mode does not allow navigation to that state.\", null);\n }\n }\n // 17. REPLAY JUMP COMMAND\n else if(command.getType() == Command.Type.REPLAY_JUMP) {\n CommandParser.ReplayJump j = (CommandParser.ReplayJump) command;\n if(j.moveAddress != null) {\n ReplayGameState state = null;\n ReplayGame.NavigationResult result = mReplay.setPositionByAddress(j.moveAddress);\n state = mReplay.getCurrentState();\n\n mAttacker.positionChanged(state);\n mDefender.positionChanged(state);\n\n switch(result) {\n case SUCCESS:\n mAttacker.positionChanged(state);\n mDefender.positionChanged(state);\n return new CommandResult(Command.Type.REPLAY_NEXT, CommandResult.SUCCESS, \"\", state.getLastMoveResult());\n case INVALID_ARGUMENT:\n return new CommandResult(Command.Type.REPLAY_NEXT, CommandResult.FAIL, \"Invalid argument.\", null);\n case END_OF_GAME:\n return new CommandResult(Command.Type.REPLAY_NEXT, CommandResult.FAIL, \"At the end of the game history.\", null);\n case PUZZLE_DISALLOWS_NAVIGATION:\n return new CommandResult(Command.Type.REPLAY_NEXT, CommandResult.FAIL, \"Puzzle mode does not allow navigation to that state.\", null);\n }\n }\n\n return new CommandResult(Command.Type.REPLAY_JUMP, CommandResult.FAIL, \"Move address out of bounds.\", null);\n }\n // 18. VARIATION COMMAND\n else if(command.getType() == Command.Type.VARIATION) {\n CommandParser.Variation v = (CommandParser.Variation) command;\n\n if(v.from == null || v.to == null) {\n return new CommandResult(Command.Type.VARIATION, CommandResult.FAIL, \"Invalid coords\", null);\n }\n\n String message = \"\";\n\n char piece = mReplay.getCurrentState().getPieceAt(v.from.x, v.from.y);\n if (piece == Taflman.EMPTY) {\n message = \"No taflman at \" + v.from;\n return new CommandResult(Command.Type.VARIATION, CommandResult.FAIL, message, null);\n }\n\n Coord destination = mReplay.getCurrentState().getSpaceAt(v.to.x, v.to.y);\n MoveRecord record = new MoveRecord(Taflman.getCurrentSpace(mReplay.getCurrentState(), piece), destination);\n\n ReplayGameState result = mReplay.makeVariation(record);\n int moveResult = result.getLastMoveResult();\n\n Log.println(Log.Level.VERBOSE, \"Variation result: \" + moveResult);\n if(moveResult < GameState.LOWEST_NONERROR_RESULT) {\n return new CommandResult(Command.Type.VARIATION, CommandResult.FAIL, GameState.getStringForMoveResult(moveResult), moveResult);\n }\n else {\n return new CommandResult(Command.Type.VARIATION, CommandResult.SUCCESS, \"\", moveResult);\n }\n }\n else if(command.getType() == Command.Type.DELETE) {\n CommandParser.Delete d = (CommandParser.Delete) command;\n\n boolean deleted = mReplay.deleteVariation(d.moveAddress);\n\n if(deleted) return new CommandResult(Command.Type.DELETE, CommandResult.SUCCESS, \"\", null);\n else if(mReplay.getMode().isPuzzleMode()) return new CommandResult(Command.Type.DELETE, CommandResult.FAIL, \"Either variation with address \" + d.moveAddress + \" does not exist, or it is part of the puzzle and cannot be deleted.\", null);\n else return new CommandResult(Command.Type.DELETE, CommandResult.FAIL, \"No variation with address \" + d.moveAddress + \" to delete.\", null);\n }\n // 19. ANNOTATE COMMAND\n else if(command.getType() == Command.Type.ANNOTATE) {\n return new CommandResult(Command.Type.ANNOTATE, CommandResult.SUCCESS, \"\", null);\n }\n // 20. CLIPBOARD-COPY COMMAND\n else if(command.getType() == Command.Type.CLIPBOARD_COPY) {\n String completePositionString = \"\";\n if(mMode == UiCallback.Mode.GAME) {\n completePositionString = mGame.getCurrentState().getPasteableRulesString();\n }\n else if(mMode == UiCallback.Mode.REPLAY) {\n completePositionString = mReplay.getCurrentState().getPasteableRulesString();\n }\n\n Utilities.pushToClipboard(completePositionString);\n return new CommandResult(Command.Type.CLIPBOARD_COPY, CommandResult.SUCCESS, \"Copied position to clipboard\", null);\n }\n // 21. CLIPBOARD-PASTE COMMAND\n else if(command.getType() == Command.Type.CLIPBOARD_PASTE) {\n return new CommandResult(Command.Type.CLIPBOARD_PASTE, CommandResult.SUCCESS, \"\", null);\n }\n // 22. HINT COMMAND\n else if(command.getType() == Command.Type.HINT) {\n if(mReplay != null) {\n ReplayGameState currentState = mReplay.getCurrentState();\n DetailedMoveRecord enteringMove = (DetailedMoveRecord) currentState.getEnteringMove();\n\n if(enteringMove != null) {\n String comment = enteringMove.getComment();\n Matcher m = ReplayGame.hintPattern.matcher(comment);\n if (m.find()) {\n String hint = m.group(0);\n mPrimaryUiCallback.statusText(hint);\n return new CommandResult(Command.Type.HINT, CommandResult.SUCCESS, \"\", null);\n }\n }\n else {\n String comment = mReplay.getGame().getTagMap().getOrDefault(Game.Tag.START_COMMENT, \"\");\n Matcher m = ReplayGame.hintPattern.matcher(comment);\n if (m.find()) {\n String hint = m.group(0);\n mPrimaryUiCallback.statusText(hint);\n return new CommandResult(Command.Type.HINT, CommandResult.SUCCESS, \"\", null);\n }\n }\n }\n\n return new CommandResult(Command.Type.HINT, CommandResult.FAIL, \"No hint available.\", null);\n }\n // 23. CHAT COMMAND\n else if(command.getType() == Command.Type.CHAT) {\n CommandParser.Chat c = (CommandParser.Chat) command;\n return new CommandResult(Command.Type.CHAT, CommandResult.SUCCESS, c.message, null);\n }\n // 24. TAGS COMMAND\n else if(command.getType() == Command.Type.TAGS) {\n return new CommandResult(Command.Type.TAGS, CommandResult.SUCCESS, \"\", null);\n }\n\n return new CommandResult(Command.Type.NONE, CommandResult.FAIL, \"Command not recognized\", null);\n }", "title": "" }, { "docid": "3f7e148cd90a29afc8bdba771fc0a838", "score": "0.52715933", "text": "@Override\n\tpublic Command parse(String cad) throws WrongCommandFormatException{\n\t\t\n\t\tGoCommand goCommand = new GoCommand();\n\t\tString words[] = cad.split(\" \");\n\n\t\t\t\n\t\t\tif (words[0].toUpperCase().equals(\"GO\") || words[0].toUpperCase().equals(\"IR\")){\n\t\t\t\tif (words.length != 2)\n\t\t\t\t\tthrow new WrongCommandFormatException();\n\t\t\t\telse if (words[1].toUpperCase().equals(Directions.NORTH.name()))\n\t\t\t\t\tgoCommand.direction = Directions.NORTH;\n\t\t\t\telse if (words[1].toUpperCase().equals(Directions.SOUTH.name()))\n\t\t\t\t\tgoCommand.direction = Directions.SOUTH;\n\t\t\t\telse if (words[1].toUpperCase().equals(Directions.EAST.name()))\n\t\t\t\t\tgoCommand.direction = Directions.EAST;\n\t\t\t\telse if (words[1].toUpperCase().equals(Directions.WEST.name()))\n\t\t\t\t\tgoCommand.direction = Directions.WEST;\n\t\t\t\telse throw new WrongCommandFormatException();\n\t\t\t}\n\t\t\telse throw new WrongCommandFormatException();\n\t\t\n\t\t\t\n\t\treturn goCommand;\n\t}", "title": "" }, { "docid": "7c438d0493fbe17f2cd78b62637580d3", "score": "0.527142", "text": "static Qryop parseQuery(String qString, RetrievalModel model) throws IOException {\r\n\r\n Qryop currentOp = null;\r\n Stack<Qryop> stack = new Stack<Qryop>();\r\n\r\n // Add a default query operator to an unstructured query. This\r\n // is a tiny bit easier if unnecessary whitespace is removed.\r\n\r\n qString = qString.trim();\r\n\r\n //if (qString.charAt(0) != '#') {\r\n //qString = \"#or(\" + qString + \")\";\r\n\r\n if (model instanceof RetrievalModelUnrankedBoolean || model instanceof RetrievalModelRankedBoolean) {\r\n qString = \"#and(\" + qString + \")\";\r\n } else if (model instanceof RetrievalModelBM25) {\r\n qString = \"#sum(\" + qString + \")\";\r\n } else if (model instanceof RetrievalModelIndri) {\r\n qString = \"#and(\" + qString + \")\";\r\n }\r\n\r\n\r\n // Tokenize the query.\r\n\r\n StringTokenizer tokens = new StringTokenizer(qString, \"\\t\\n\\r ,()\", true);\r\n String token = null;\r\n\r\n double currWeight = -1;\r\n\r\n // Each pass of the loop processes one token. To improve\r\n // efficiency and clarity, the query operator on the top of the\r\n // stack is also stored in currentOp.\r\n\r\n while (tokens.hasMoreTokens()) {\r\n\r\n token = tokens.nextToken();\r\n\r\n //System.out.println(token);\r\n\r\n if (token.matches(\"[ ,(\\t\\n\\r]\")) {\r\n // Ignore most delimiters.\r\n } else if (token.equalsIgnoreCase(\"#and\")) {\r\n\r\n Qryop newOp = new QryopSlAnd();\r\n if (currentOp instanceof QryopSlWand || currentOp instanceof QryopSlWsum) {\r\n newOp.weight = currWeight;\r\n currWeight = -1;\r\n }\r\n stack.push(newOp);\r\n currentOp = newOp;\r\n } else if (token.equalsIgnoreCase(\"#syn\")) {\r\n Qryop newOp = new QryopIlSyn();\r\n if (currentOp instanceof QryopSlWand || currentOp instanceof QryopSlWsum) {\r\n newOp.weight = currWeight;\r\n currWeight = -1;\r\n }\r\n stack.push(newOp);\r\n currentOp = newOp;\r\n } else if (token.equalsIgnoreCase(\"#or\")) {\r\n Qryop newOp = new QryopSlOr();\r\n if (currentOp instanceof QryopSlWand || currentOp instanceof QryopSlWsum) {\r\n newOp.weight = currWeight;\r\n currWeight = -1;\r\n }\r\n stack.push(newOp);\r\n currentOp = newOp;\r\n } else if (token.equalsIgnoreCase(\"#wand\")) {\r\n Qryop newOp = new QryopSlWand();\r\n if (currentOp instanceof QryopSlWand || currentOp instanceof QryopSlWsum) {\r\n newOp.weight = currWeight;\r\n currWeight = -1;\r\n }\r\n stack.push(newOp);\r\n currentOp = newOp;\r\n } else if (token.equalsIgnoreCase(\"#wsum\")) {\r\n Qryop newOp = new QryopSlWsum();\r\n if (currentOp instanceof QryopSlWand || currentOp instanceof QryopSlWsum) {\r\n newOp.weight = currWeight;\r\n currWeight = -1;\r\n }\r\n stack.push(newOp);\r\n currentOp = newOp;\r\n } else if (token.length() > 6 && token.toLowerCase().startsWith(\"#near/\")) {\r\n int nearN = Integer.valueOf(token.substring(6));\r\n Qryop newOp = new QryopIlNear(nearN);\r\n if (currentOp instanceof QryopSlWand || currentOp instanceof QryopSlWsum) {\r\n newOp.weight = currWeight;\r\n currWeight = -1;\r\n }\r\n stack.push(newOp);\r\n currentOp = newOp;\r\n } else if (token.length() > 8 && token.toLowerCase().startsWith(\"#window/\")) {\r\n int window = Integer.valueOf(token.substring(8));\r\n Qryop newOp = new QryopIlWindow(window);\r\n if (currentOp instanceof QryopSlWand || currentOp instanceof QryopSlWsum) {\r\n newOp.weight = currWeight;\r\n currWeight = -1;\r\n }\r\n stack.push(newOp);\r\n currentOp = newOp;\r\n } else if (token.equalsIgnoreCase(\"#sum\")) {\r\n Qryop newOp = new QryopSlSum();\r\n if (currentOp instanceof QryopSlWand || currentOp instanceof QryopSlWsum) {\r\n newOp.weight = currWeight;\r\n currWeight = -1;\r\n }\r\n stack.push(newOp);\r\n currentOp = newOp;\r\n } else if (token.startsWith(\")\")) { // Finish current query operator.\r\n // If the current query operator is not an argument to\r\n // another query operator (i.e., the stack is empty when it\r\n // is removed), we're done (assuming correct syntax - see\r\n // below). Otherwise, add the current operator as an\r\n // argument to the higher-level operator, and shift\r\n // processing back to the higher-level operator.\r\n\r\n stack.pop();\r\n\r\n if (stack.empty())\r\n break;\r\n\r\n Qryop arg = currentOp;\r\n if (arg.args.size() > 0) {\r\n currentOp = stack.peek();\r\n currentOp.add(arg);\r\n }\r\n } else {\r\n\r\n String[] terms = null;\r\n String[] split = null;\r\n if (currentOp instanceof QryopSlWand || currentOp instanceof QryopSlWsum) {\r\n if (currWeight < 0) {\r\n // Weight not set\r\n currWeight = Double.valueOf(token);\r\n } else {\r\n split = token.split(\"\\\\.\");\r\n if (split.length == 2) {\r\n terms = tokenizeQuery(split[0]);\r\n if (terms.length > 0) {\r\n QryopIlTerm toadd = new QryopIlTerm(terms[0], split[1]);\r\n toadd.weight = currWeight;\r\n currentOp.add(toadd);\r\n }\r\n } else {\r\n terms = tokenizeQuery(token);\r\n if (terms.length > 0) {\r\n QryopIlTerm toadd = new QryopIlTerm(terms[0]);\r\n toadd.weight = currWeight;\r\n currentOp.add(toadd);\r\n }\r\n }\r\n // Set weight flag back\r\n currWeight = -1;\r\n }\r\n continue;\r\n }\r\n // NOTE: You should do lexical processing of the token before\r\n // creating the query term, and you should check to see whether\r\n // the token specifies a particular field (e.g., apple.title).\r\n terms = null;\r\n split = token.split(\"\\\\.\");\r\n if (split.length == 2) {\r\n terms = tokenizeQuery(split[0]);\r\n if (terms.length > 0) {\r\n currentOp.add(new QryopIlTerm(terms[0], split[1]));\r\n }\r\n } else {\r\n terms = tokenizeQuery(token);\r\n if (terms.length > 0) {\r\n currentOp.add(new QryopIlTerm(terms[0]));\r\n }\r\n }\r\n }\r\n }\r\n\r\n // A broken structured query can leave unprocessed tokens on the\r\n // stack, so check for that.\r\n\r\n if (tokens.hasMoreTokens()) {\r\n System.err.println(\"Error: Query syntax is incorrect. \" + qString);\r\n return null;\r\n }\r\n\r\n return currentOp;\r\n }", "title": "" }, { "docid": "dc25c7fc99878c293c2582ac2e5d01b1", "score": "0.5262885", "text": "public String ask(String myQuery)\t{\n\t\tString resultString = null;\n\n\t\tString[] parts = myQuery.split(\"\\\\s+\");\n\n\t\tif (Objects.equals(parts[0], \"tag\")) {\n\t\t\tresultString = new String(\"LocMgr\");\n\t\t}\n\t\telse if (Objects.equals(parts[0], \"sendLocation\")) {\n\t\t\t//send a complete location message\n\t\t\tsendLocation();\n\t\t}\n\t\telse if (Objects.equals(parts[0], \"inDirection\")) {\n\t\t\t//return \"true\" or \"false\"\n\t\t\tString from = parts[1];\n\t\t\tString to = parts[2];\n\n\t\t\tresultString = String.valueOf(inDirection(from, to));\n\n\t\t}\n\t\telse if (Objects.equals(parts[0], \"getLocation\")) {\n\t\t\t//return a string that is:\n\t\t\t//latitude longitude\n\n\t\t\tresultString = String.valueOf(getLocation(parts[1]).mLatitude) + \" \" + String.valueOf(getLocation(parts[1]).mLongitude);\n\t\t}\n\t\telse if (Objects.equals(parts[0], \"getPositionSpread\")) {\n\t\t\t//return a string that is:\n\t\t\t//position spread\n\t\t\tresultString = String.valueOf(positionSpread(parts[1]));\n\t\t}\n\t\telse if (Objects.equals(parts[0], \"setLocation\")) {\n\t\t\t// allow setLocation? Bad from a security standpoint, but simplifies\n\t\t\t// handling of locations within the stack\n\t\t\t// expects:\n\t\t\t// latitude longitude\n\n\t\t\tthis.updateLocation(mID, Float.parseFloat(parts[1]), Float.parseFloat(parts[2]));\n\t\t\tsendLocation();\n\t\t}\n\t\telse if (Objects.equals(parts[0], \"getNeighbors\")) {\n\t\t\tfor ( String key : mIDLocationTable.keySet() ) {\n\t\t\t\tif (!Objects.equals(key, mID)) {\n\t\t\t\t\tif (null == resultString) {\n\t\t\t\t\t\tresultString = new String();\n\t\t\t\t\t}\n\t\t\t\t\tresultString += key + \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (Objects.equals(parts[0], \"cleanNeighbors\")) {\n\t\t\tlong timeout = Long.parseLong(parts[1]);\n\t\t\tfor ( Map.Entry<String, LocationEntry> entry : mIDLocationTable.entrySet() ) {\n\t\t\t\tif (timeout < System.currentTimeMillis() - entry.getValue().mTimestamp.getTime()) {\n\t\t\t\t\tmIDLocationTable.remove(entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\n\n\t\treturn resultString;\n\t}", "title": "" }, { "docid": "94a7f77ffa48860ad6b6ada0f9820bf6", "score": "0.52591705", "text": "java.lang.String getParse();", "title": "" }, { "docid": "0133a05e0d55c172789c89a82fb266eb", "score": "0.5257771", "text": "public boolean executeOnMatch(String commandString) {\r\n\t\t// Remember the given command string\r\n\t\tthis.commandString = commandString;\r\n\t\t\r\n\t\t// If no command format (regex) is set, log an error\r\n\t\tif(this.commandFormat==null) {\r\n\t\t\tLog.log(this,FORMAT_NOT_SET,Log.ERROR);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t// Else check if the command string matches the format\r\n\t\telse if(commandString.matches(this.commandFormat)) {\r\n\t\t\t// Save the pieces of the command string\r\n\t\t\tthis.commandPieces = commandString.split(WHITESPACE);\r\n\t\t\t// Execute the command\r\n\t\t\tthis.execute();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "2242c0118a133d1c41fe175400b0c88a", "score": "0.5257362", "text": "@Override\r\n protected TreeSet<String> runQuery(String query) {\r\n Stack<TreeSet<String>> my_stack = new Stack<>();\r\n String[] words = Utils.splitBySpace(query);\r\n for (String word : words) {\r\n switch (word) {\r\n case \"OR\":\r\n operatorOr(my_stack);\r\n break;\r\n case \"AND\":\r\n operatorAnd(my_stack);\r\n break;\r\n case \"NOT\":\r\n operatorNot(my_stack);\r\n break;\r\n default:\r\n my_stack.push(sensitive_map.get(word));\r\n }\r\n }\r\n return my_stack.pop();\r\n }", "title": "" }, { "docid": "0c8a2e4afd122743ea3c106464bc58b3", "score": "0.52489895", "text": "public static Task parseInput(Command command, String input) throws InvalidTaskException, DateTimeParseException {\n assert command != null;\n assert input != null && !input.isBlank();\n switch (command) {\n case TODO:\n String[] todoDetails = input.split(\"todo \");\n if (todoDetails.length < 2) {\n throw new InvalidTaskException(\"😡 I have no idea what you want to do.\");\n }\n String taskName = todoDetails[1];\n return new Todo(taskName);\n case DEADLINE:\n String[] deadlineDetails = input.split(\"deadline | /by \");\n if (deadlineDetails.length < 2) {\n throw new InvalidTaskException(\"What is it you want to do?\");\n }\n if (deadlineDetails.length < 3) {\n throw new InvalidTaskException(\"What's your deadline? You have to tell me, you know.\");\n }\n return TaskParser.parseDeadline(false, deadlineDetails[1], deadlineDetails[2]);\n case EVENT:\n String[] eventDetails = input.split(\"event | /at \");\n if (eventDetails.length < 2) {\n throw new InvalidTaskException(\"What is it you want to do?\");\n }\n if (eventDetails.length < 3) {\n throw new InvalidTaskException(\"When do you need to do this? You have to tell me, you know.\");\n }\n return new Event(eventDetails[1], eventDetails[2]);\n default:\n throw new InvalidTaskException(\"Um, I don't get what you're saying.\");\n }\n }", "title": "" }, { "docid": "a0098b24039da6d1c8577a7485fd4da3", "score": "0.5242913", "text": "public Query( String queryString, AntlrParser.ParseResult result, AntlrParser parser ) {\n\t\tthis.queryString = queryString;\n\t\tthis.parseTree = result.getParseTree();\n\t\tthis.queryTokens = result.getLexedTokens();\n\t\ttry {\n\t\t\tthis.queryMetadata = parser.getQueryMetadata( parseTree );\n\t\t\tsetQueryIdentifiers( parser, parseTree, queryMetadata );\n\t\t} catch( ParseCancellationException e ) {\n\t\t\tlog.error( \"Could not get query metadata for {}, {}\", queryString, e.getMessage() );\n\t\t}\n\t}", "title": "" }, { "docid": "23982164120c5c711ca0cd0047ec9521", "score": "0.5236794", "text": "public abstract InCommand parse( String prefix, String identifier, String params );", "title": "" }, { "docid": "4b046752e54d274a1d1c3d236a1c2c61", "score": "0.5204586", "text": "String answer_query(String q) {\r\n\t\t\r\n\t\tString res = null;\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t// iterate over query classes until one of them matches the query string\r\n\t\t\tfor(DialogQuery query : queries) {\r\n\t\t\t\tres = query.process(q);\r\n\t\t\t\tif(res != null) {\r\n\t\t\t\t\tSystem.out.println(query.getClass().getSimpleName() + \" returned '\" + res + \"'\");\r\n\t\t\t\t\treturn res; \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// default:\r\n\t\t\treturn \"I don't know.\\n\";\r\n\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"I don't know.\\n\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "882dcd0736c47994089164398214823e", "score": "0.51990306", "text": "public Object getExecute() {\n return executeCLIAndHandleResult(command);\n }", "title": "" }, { "docid": "850b5ad2ea1815b2757077db91a320bd", "score": "0.51982", "text": "void processCommand(String command);", "title": "" }, { "docid": "0885774dfe306fe32b1671886540b8fc", "score": "0.5181796", "text": "public QueryParser(String query) {\n this.query = query;\n this.index = 0;\n this.chars = query.toCharArray();\n this.listQuery = new ArrayList<>();\n this.parse();\n }", "title": "" }, { "docid": "c29f93a3710d3fc2f258923ee75bc493", "score": "0.5175005", "text": "public void query(String input){\n\t\t\n\t}", "title": "" }, { "docid": "702acf5c6f7c62fcdd8aad7c8da56d5a", "score": "0.5169952", "text": "public <T> T executeNativeQuerySingleResult(String query) {\n Query nativeQuery = em.createNativeQuery(query);\n return (T) nativeQuery.getSingleResult();\n }", "title": "" }, { "docid": "61706751c733c92799f2e8f0b6492cee", "score": "0.51657486", "text": "void executeCommand( String command );", "title": "" }, { "docid": "186f26d0e5588c8f34b5e1685fc3a25e", "score": "0.51647794", "text": "public static Command parse(String fullCommand) throws DukeException , DukeDeadlineException {\n String[] commandParts = getKeyword(fullCommand);\n checkKeyword(commandParts);\n return createCommand(commandParts);\n }", "title": "" }, { "docid": "af2f0409bfd9e467ed7f6514080898c8", "score": "0.5160115", "text": "public static String parser(String input, TaskList taskList) throws DukeException {\n String[] pieces = input.split(\" \", 2);\n String command = pieces[0];\n\n switch (command) {\n case \"list\":\n return handleList(taskList);\n case \"bye\":\n return handleBye();\n case \"done\":\n return handleDone(pieces, taskList);\n case \"todo\":\n return handleTodo(pieces, taskList);\n case \"event\":\n return handleEvent(pieces, taskList);\n case \"deadline\":\n return handleDeadline(pieces, taskList);\n case \"delete\":\n return handleDelete(pieces, taskList);\n case \"find\":\n return handleFind(pieces, taskList);\n case \"update\":\n return handleUpdate(pieces, taskList);\n default:\n throw new DukeException(\"OOPS!!! I'm sorry, but I don't know what that means :-(\");\n }\n }", "title": "" }, { "docid": "4338c75207f32f725534236d9e5f38f7", "score": "0.5150463", "text": "public void run(){\n while(true){\n System.out.print(\"> \");\n String raw = input.nextLine();\n String[] parsed = raw.toLowerCase().split(\" \");\n String commandName = parsed[0];\n String[] commandArgs = Arrays.copyOfRange(parsed, 1, parsed.length);\n //check if the command is valid\n if(commandMap.containsKey(commandName)){\n //get the command\n ShellCommand cur = commandMap.get(commandName);\n\n //run the command (tertiary expressions FTW!!!)\n int result = commandArgs.length == 0 ? cur.handleArgs() : cur.handleArgs(commandArgs);\n\n //maybe do something with the result here?\n\n } else {\n //let the user know they did something wrong\n System.out.println(\"\\\"\" + commandName + \"\\\" is not recognised as a command\");\n System.out.println(\"Type \\\"help\\\" for help\");\n }\n }\n }", "title": "" }, { "docid": "88b39f93ab08acdd608cac823ffcd960", "score": "0.51503885", "text": "public QueryResponseWrapper query(ParsedQuery query) throws IndexParseException;", "title": "" }, { "docid": "acfecf46d64373e2a905a330492b6830", "score": "0.514948", "text": "public static Command parseCommand (String commandName) throws IllegalNameCommandException{\n\t\t\n\t\tCommandRegister cr = MapCommandRegister.getInstance();\n\t\t\n\t\treturn cr.createCommand(commandName);\n\t\t\n\t}", "title": "" }, { "docid": "0c67bd352896e46669c60c9e53a95e5f", "score": "0.51430154", "text": "public ResultSet execQuery(String query){\n ResultSet result;\n try{\n stmt = conn.createStatement();\n result= stmt.executeQuery(query);\n }catch (SQLException ex){\n ex.printStackTrace();\n return null; \n } finally {\n \n }\n return result;\n \n }", "title": "" }, { "docid": "eade98632ed3967b021ebc8a418acc6f", "score": "0.51429266", "text": "public static MRData query ( String query ) {\n evaluate(\"store tt := \"+query+\";\");\n return variable_lookup(\"tt\",global_env);\n }", "title": "" }, { "docid": "f6cc049f3e6838b62ca3be24cab255f7", "score": "0.5128364", "text": "public UserCommandInstance getCommandInstance(String name) throws ParserException{\n\t\tif(!myCommands.containsKey(name)){\n\t\t\tthrow new ParserException(\"Error: don't know how to \" + name);\n\t\t}\n\t\t//System.out.println(\"Loading command: \" + name);\n\t\treturn myCommands.get(name).clone();\n\t}", "title": "" }, { "docid": "5a192ef5aba24ba89b51c116518cd70d", "score": "0.5115148", "text": "private void processCommand(String command){\n // TODO process command\n // process the json string\n MessagePacket messagePacket = gson.fromJson(command, MessagePacket.class);\n String result = messagePacket.command;\n\n\n switch (result){\n case \"Register\":\n break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "f6ee0c47e814206421d56ec5ae8aff2b", "score": "0.5111327", "text": "public boolean parseCommand(String cmdstring) {\n Matcher matcher = ARGS_PATTERN.matcher(cmdstring);\n\n List<String> args = new LinkedList<>();\n while (matcher.find()) {\n String value = matcher.group(1);\n if (QUOTED_PATTERN.matcher(value).matches()) {\n // Strip off the surrounding quotes\n value = value.substring(1, value.length() - 1);\n }\n args.add(value);\n }\n if (args.isEmpty()) {\n return false;\n }\n command = args.get(0);\n cmdArgs = args;\n return true;\n }", "title": "" }, { "docid": "241190b49041191392846e3bbe946699", "score": "0.51100737", "text": "public ResultSet query( PString query ) throws SQLException\n\t{\n\t\treturn prepare( query ).executeQuery();\n\t}", "title": "" }, { "docid": "74a745c13a49405151cc3f383453fd4d", "score": "0.5099093", "text": "public abstract String execute();", "title": "" }, { "docid": "9d039614aade6d7955038b1075541079", "score": "0.5095656", "text": "private static Command mapCommands(String input) {\t\t\n\t\tCommand command;\n\t\t\n\t\tswitch(input) {\n\t\t\tcase \"quit\": {\n\t\t\t\tcommand = Command.QUIT;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcase \"sql\": {\n\t\t\t\tcommand = Command.SQL;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcase \"help\": {\n\t\t\t\tcommand = Command.HELP;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcase \"\": {\n\t\t\t\tcommand = Command.NO_COMMAND;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdefault: {\n\t\t\t\tcommand = Command.NO_COMMAND;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn command;\n\t}", "title": "" }, { "docid": "d5513b49a6949fe509467abbbe0cf032", "score": "0.50891495", "text": "public QueryParser(String text){\n this();\n parse(text);\n }", "title": "" }, { "docid": "7fd91d1fa91aba9bc17f34678d1567c6", "score": "0.50768673", "text": "private static FindCommand parseFindCommand(String command) throws InvalidSearchException {\n if (command.length() < 5) {\n throw new InvalidSearchException(\"Oh noes! I don't think you specified a search string :<\");\n } else if (command.split(\" \").length <= 1) {\n throw new InvalidSearchException(\"Oh noes! Please add a space before your search string :<\");\n }\n String matchString = command.substring(5);\n return new FindCommand(matchString);\n }", "title": "" }, { "docid": "f79ada697b85cf6746792cfb57db8b5c", "score": "0.5073667", "text": "public String processCommand( String command)\n {\n \n String output = null;\n // get matchers\n Matcher setCurrencyMatcher = Pattern.compile(setCurrencyRegex).matcher(command);\n Matcher convertCurrencyMatcher = Pattern.compile(convertCurrencyRegex).matcher(command);\n \n // see which command matches, and act accordingly\n if ( setCurrencyMatcher.matches() )\n {\n int i = 1;\n String baseCurrency = setCurrencyMatcher.group(i);\n String goalCurrency = setCurrencyMatcher.group(++i);\n double rate = Double.parseDouble( setCurrencyMatcher.group(++i) );\n \n converter.setExchangeRate(baseCurrency, goalCurrency, rate);\n output = COMMAND_OK;\n \n } else if (convertCurrencyMatcher.matches()) {\n \n int i = 1;\n String baseCurrency = convertCurrencyMatcher.group(i);\n String goalCurrency = convertCurrencyMatcher.group(++i);\n double amount = Double.parseDouble( convertCurrencyMatcher.group(++i) );\n \n double result;\n try {\n result = converter.convertCurrency(baseCurrency, goalCurrency, amount);\n output = String.valueOf(result);\n \n } catch (ExchangeRateUndefinedException e) {\n output = ERROR_EXCHANGE_RATE_NOT_DEFINED;\n }\n \n } else {\n output = COMMAND_NOT_FOUND;\n }\n \n return output;\n }", "title": "" }, { "docid": "ff5812788ce045e15bb7f87ba6801b09", "score": "0.507113", "text": "public Query( String queryString, AntlrParser.ParseResult result ) {\n\t\tthis.queryString = queryString;\n\t\tthis.parseTree = result.getParseTree();\n\t\tthis.queryTokens = result.getLexedTokens();\n\t\tAntlrParser parser = new AntlrParser();\n\t\ttry {\n\t\t\tthis.queryMetadata = parser.getQueryMetadata( parseTree );\n\t\t\tsetQueryIdentifiers( parser, parseTree, queryMetadata );\n\t\t} catch( ParseCancellationException e ) {\n\t\t\tlog.error( \"Could not parse query {}, reason {}\", queryString, e.getMessage() );\n\t\t}\n\t}", "title": "" }, { "docid": "bd1a934f4508bd1895a4304dbf54cd37", "score": "0.50698096", "text": "public interface Parser\n{\n\n\t/**\n\t * Parses the given statement and returns a query tree. The query tree\n\t * at this point is a simple syntactic translation of the statement.\n\t * No binding will have taken place, and no decisions will have been\n\t * made regarding processing strategy.\n\t *\n\t * @param statementSQLText\tThe Statement to parse.\n\t * @param paramDefaults\tParameter defaults\n\t * @return\tA new QueryTree representing the syntax of the Statement\n\t *\n\t * @exception StandardException\t\tThrown on failure\n\t */\n\tpublic Visitable parseStatement(String statementSQLText,\n\t\tObject[] paramDefaults) \n\t\tthrows StandardException;\n\n\n\tpublic Visitable parseStatement(String statementSQLText)\n\t\tthrows StandardException;\n\n /**\n * Parse an SQL fragment that represents a {@code <search condition>}.\n *\n * @param sqlFragment the SQL fragment to parse\n * @return a parse tree representing the search condition\n * @throws StandardException if the SQL fragment could not be parsed\n */\n public Visitable parseSearchCondition(String sqlFragment)\n throws StandardException;\n\n\t/**\n\t * Returns the current SQL text string that is being parsed.\n\t *\n\t * @return\tCurrent SQL text string.\n\t *\n\t */\n\tpublic\tString\t\tgetSQLtext();\n\n}", "title": "" }, { "docid": "1b15c6c62bc864e2b2ad9375c6536dd8", "score": "0.5058254", "text": "@Override\n\tpublic String executeQuery() {\n\n\t\tString freebase = convertToFreebase(this.subject.substring(0,1).toUpperCase() + \"\" + this.subject.substring(1));\n\n\t\tString ans = \"\";\n\n\t\tswitch(predicate) {\n\t\tcase \"is\": String query = \"SELECT ?o WHERE { \" + freebase + \" dbp-ont:abstract ?o . }\";\n\t\t\t\t ans = sendQuery(query).next().toString();\n\t\t\t\t ans = formatObject(ans);\n\n\t\t\t\t int pos = ans.indexOf(\".\") +1;\n\t\t\t\t int pos2 = ans.indexOf(\".\", pos) + 1;\n\n\t\t\t\t ans = ans.substring(0, pos2).length() > 180 ? ans.substring(0, pos2) : ans.substring(0, ans.indexOf(\".\", pos2) + 1);\n\t\t\t\t break;\n\t\t}\n\n\t\t// TODO Auto-generated method stub\n\n\n\t\treturn ans;\n\t}", "title": "" }, { "docid": "f8f9fa774288b13152e25c84b37e1338", "score": "0.50536984", "text": "public String parseRequest(String request) {\n\t\tString command = request.split(\" \")[0];\n\t\tString[] parameters = new String[request.split(\" \").length - 1];\n\t\tfor (int i = 1; i < request.split(\" \").length; i++) {\n\t\t\tparameters[i] = request.split(\" \")[i];\n\t\t}\n\t\tif (command.equals(\"addUser\")) {\n\t\t\t//addUser()\n\t\t\treturn \" \";\n\t\t} else if (command.equals(\"userLogin\")) {\n\t\t\t//userLogin()\n\t\t\treturn \" \";\n\t\t} else if (command.equals(\"postMessage\")) {\n\t\t\t//postMessage()\n\t\t\treturn \" \";\n\t\t} else if (command.equals(\"getMessage\")) {\n\t\t\t//getMessage()\n\t\t\treturn \" \";\n\t\t} else {\n\t\t\t//return INVALID_VALUE_ERROR;\n\t\t\treturn \" \";\n\t\t}\n\t}", "title": "" }, { "docid": "6ffcfbecb20b2de59d90e86057d693eb", "score": "0.5049243", "text": "public void interpreterProcess(String input) {\r\n\r\n // define what are valid commands\r\n\r\n // split input string into list of words\r\n List<String> finalInput = splitInput(input);\r\n\r\n /*\r\n * if finalInput has no element (which means the user only typed some number\r\n * of whitespaces), ignore it\r\n */\r\n if (finalInput.size() > 0) {\r\n\r\n // get the first word\r\n String cmdName = finalInput.get(0);\r\n\r\n\r\n\r\n // get a list of arguments, which is finalInput except the first item,\r\n // first item is the cmd name(this list may be empty)\r\n finalInput.remove(0);\r\n\r\n // get both the arrayList of finalInput and the arrayList of redirection\r\n // param (identified by > or >>)\r\n\r\n int appendIndex = finalInput.indexOf(\">\");\r\n int rewriteIndex = finalInput.indexOf(\">>\");\r\n\r\n int splitIndex;\r\n\r\n if (appendIndex == -1) {\r\n splitIndex = rewriteIndex;\r\n } else if (rewriteIndex == -1) {\r\n splitIndex = appendIndex;\r\n } else {\r\n splitIndex = Math.min(appendIndex, rewriteIndex);\r\n }\r\n\r\n List<String> args = new ArrayList<>();\r\n List<String> redirectionParam = new ArrayList<>(); // empty\r\n\r\n if (splitIndex == 0) { // if input contains > or >> but it's immediatly\r\n // after cmd name, the args should be empty\r\n for (String s : finalInput) {\r\n redirectionParam.add(s);\r\n }\r\n\r\n } else if (splitIndex > 0) { // required redirection, so split the\r\n // finalInput to two parts:\r\n // arguments and redirectioenParam\r\n // args should be starting from 0 to splitIndex (exclusive)\r\n\r\n for (int i = 0; i < splitIndex; i++) {\r\n args.add(finalInput.get(i));\r\n }\r\n\r\n for (int j = splitIndex; j < finalInput.size(); j++) {\r\n redirectionParam.add(finalInput.get(j));\r\n }\r\n\r\n } else if (splitIndex == -1) {\r\n\r\n for (String t : finalInput) {\r\n args.add(t);\r\n }\r\n }\r\n\r\n // generate finalCommand object\r\n\r\n // first generate the command object regardless of redirection\r\n // parameters\r\n Command newCommand;\r\n\r\n newCommand = this.generateCommand(cmdName, args, redirectionParam);\r\n\r\n\r\n if (newCommand == null) {\r\n return;\r\n }\r\n\r\n /*\r\n * if the newCommand is of type CommandThatHasOutput, and its redirection\r\n * param is not empty, downcast then command, then create AppendDecorator\r\n * or OverwriteDecorator object (we know that first item in\r\n * redirectionParam must be > or >>)and have it collaborate with the\r\n * command\r\n */\r\n\r\n if (newCommand instanceof CommandThatHasOutput) {\r\n if (redirectionParam.size() > 0) {\r\n\r\n if (redirectionParam.get(0).equals(\">\")) {\r\n\r\n newCommand =\r\n new OverwriteDecorator((CommandThatHasOutput) newCommand);\r\n } else if (redirectionParam.get(0).equals(\">>\")) {\r\n newCommand = new AppendDecorator((CommandThatHasOutput) newCommand);\r\n\r\n } else {\r\n StandardError.displayError(\r\n \"something went wrong with redirection parameters\");\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n // execute new command\r\n newCommand.execute();\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "f3b133a8eb6ef9a83074e6bad82ab611", "score": "0.5048122", "text": "public Query( String queryString, AntlrParser.ParseResult result,\n\t\t\t\t AntlrQueryMetadata queryMetadata ) {\n\t\tthis.queryString = queryString;\n\t\tthis.parseTree = result.getParseTree();\n\t\tthis.queryTokens = result.getLexedTokens();\n\t\tthis.queryMetadata = queryMetadata;\n\t\tAntlrParser parser = new AntlrParser();\n\n\t\tsetQueryIdentifiers( parser, parseTree, queryMetadata );\n\t\tParserPool.getInstance().returnParser( parser );\n\t}", "title": "" } ]
27f78edb38dba4a9ae1e11568def717a
Lista todas las Granjas
[ { "docid": "6bcccee96759eb415874db2c7fbda3c4", "score": "0.67465997", "text": "public List<Farm> listarGranjas() {\r\n\r\n\t\tList<Farm> granjas = new ArrayList<>();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tString sql = \" SELECT * FROM granjas \";\r\n\t\t\tStatement st = con.getConexion().createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(sql);\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tFarm granja = new Farm();\r\n\t\t\t\tgranja.setIdGranja(rs.getLong(\"idGranja\"));\r\n\t\t\t\tgranja.setNombreGranja(rs.getString(\"nombreGranja\"));\r\n\t\t\t\tgranja.setFechaGranja(rs.getDate(\"fechaGranja\"));\r\n\t\t\t\tgranja.setCantidadHuevos(rs.getInt(\"cantidadHuevos\"));\r\n\t\t\t\tgranja.setCantidadGallinas(rs.getInt(\"cantidadGallinas\"));\r\n\t\t\t\tgranja.setImporteTotalHuevos(rs.getBigDecimal(\"importeTotalHuevos\"));\r\n\t\t\t\tgranja.setImporteTotalGallinas(rs.getBigDecimal(\"importeTotalGallinas\"));\r\n\t\t\t\tgranja.setImporteTotalGranja(rs.getBigDecimal(\"importeTotalGranja\"));\r\n\r\n\t\t\t\tgranjas.add(granja);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tLogger.getLogger(FarmServicio.class.getName()).log(Level.SEVERE, null, ex);\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn granjas;\r\n\t}", "title": "" } ]
[ { "docid": "f9a015c6ea800e8e177f9872e9e1bb77", "score": "0.6657498", "text": "String getGrasas();", "title": "" }, { "docid": "cb9e0eef08feef0856e94c69fa394749", "score": "0.6460726", "text": "public void Listar(){\n System.out.println(\"Elementos de las Patentes\");\n for (Integer key : patente.getPatentes().keySet()) {\n System.out.println(\"Patente: \" + key + \" -> Letra: \" + patente.getPatentes().get(key));}\n }", "title": "" }, { "docid": "b797c795af824d4e00380f4e8e4c4500", "score": "0.6280829", "text": "public List getGruposPago(Map map);", "title": "" }, { "docid": "203d1d677b5aabb23863f0c7fdcae1a5", "score": "0.6253443", "text": "public ArrayList<String> getGanadoresPartida() throws\n ExceptionPartidaSinAcabar {\n ArrayList <String> ganadores = new ArrayList<>();\n if (ganador == -1){\n throw new ExceptionPartidaSinAcabar();\n }\n int n_jug = estado.getJugadoresId().size();\n String jug = new String(estado.getJugadoresId().get(ganador));\n ganadores.add(jug);\n if (n_jug == 4){\n jug = new String(estado.getJugadoresId().get((ganador+2)% n_jug));\n ganadores.add(jug);\n }\n return ganadores;\n }", "title": "" }, { "docid": "e76999af21ce61f853ec2a67f2ee7e6b", "score": "0.61398417", "text": "static void listarPersonas() {\n\n\t\tint i = 1;// variable para sacar el indice por linea\n\t\tfor (Persona persona : listaPersonas) {\n\t\t\tSystem.out.println(\"\\n\" + i + \".- \" + persona.toString());\n\t\t\ti++;\n\n\t\t}\n\t}", "title": "" }, { "docid": "779b0dce070bda550d6652787b07af8b", "score": "0.60512495", "text": "public List<Grup> list() throws STException \n\t{\t\t\t\t\t\t\t\n\t\tList<Grup> listGrup = new ArrayList<Grup>();\n\t\t\t\t\n\t\t//Obtenim albara de la BBDD\n\t\tResultSet resultSet= db.selectData(\"SELECT * FROM Grup ORDER BY nom\");\n\n\t\ttry \n\t\t{\t\t\n\t\t\t//Llegim resultat\n\t\t\twhile (resultSet.next()) \n\t\t\t{\n\t\t\t\tGrup grup= getFromResultSet(resultSet);\n\t\t\t\tlistGrup.add(grup);\n\t\t\t}\t\t\t\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\tthrow new STException(e, TokenKeys.ERROR_GETTING_DATA);\n\t\t}\n\t\tfinally \n\t\t{\n\t\t\t//Molt important: Tanquem connexió, statement i resulset.\n\t\t\tdb.closeResultSet(resultSet);\n\t\t}\n\t\treturn listGrup;\n\t}", "title": "" }, { "docid": "aaa7481b179e85870f7c82d107b58c79", "score": "0.60441715", "text": "public List<GrupoVO> getGrupos() {\r\n return grupoDao.getTodosGrupos();\r\n }", "title": "" }, { "docid": "38f84b7aaabbb9945f358c9ebd79c2d2", "score": "0.6011446", "text": "public List<Pand> getAllePanden();", "title": "" }, { "docid": "1af6960f8ee66a9574c8645cbac0641d", "score": "0.59423536", "text": "public void mostrarPersonas() {\n\t\t\n\t\tSystem.out.println(\"\\n[ PERSONAS AGREGADAS A LA LISTA ]\");\n\t\t\n\t\tfor (Persona aux : lista_Personas) {\n\t\t\tSystem.out.println(aux);\n\t\t}\n\t}", "title": "" }, { "docid": "80177a4af16862962f3cc0d7a39bd531", "score": "0.5889139", "text": "public ArrayList<String> convertirGrupos (ArrayList<Grupo> a){\n ArrayList<String> gruposs = new ArrayList<>();\n Grupo aux;\n for (int i = 0; i < a.size(); i++){\n aux = a.get(i);\n gruposs.add(String.valueOf(aux.getCurso()) + \"-\" + aux.getGrupo());\n }\n return gruposs;\n }", "title": "" }, { "docid": "02f578263bbe096082d35eeb5ec87349", "score": "0.58087534", "text": "public ArrayList<Jugador> ordenarGanadores(){\n Collections.sort(this.getListaJugadores(), new CriterioGanadas());\n return this.getListaJugadores();\n }", "title": "" }, { "docid": "9edc2a3d37db3143956b85cd8c4e8fed", "score": "0.5798353", "text": "public List<Giocatore> all() {\n // Dammi tutti \n return em.createQuery(\"select e FROM Giocatore e ORDER BY e.nome \", Giocatore.class)\n .getResultList();\n }", "title": "" }, { "docid": "04b2601a69597fe36954052e16a0132e", "score": "0.57867736", "text": "public ArrayList<String> getPreguntasPac(){\n return DatosApp.getPreguntasCuestionarioPaciente(En, Pac, Cuest);\n }", "title": "" }, { "docid": "4a883d7fd4651c9ea908c635f627fac4", "score": "0.57515866", "text": "public listautenti getGenitori() throws SQLException{\n listautenti genitori = new listautenti();\n // Aggiunta della madre\n genitori.add(this.getGenitore(\"maschio\"));\n // Aggiunta del padre\n genitori.add(this.getGenitore(\"femmina\"));\n return genitori;\n }", "title": "" }, { "docid": "44c9624337d617521fca554a2338a687", "score": "0.5731229", "text": "public String getPatologiaGes() {\n\t\treturn patologiaGes;\n\t}", "title": "" }, { "docid": "00a26ab00e883280fc6862edcffe9984", "score": "0.57122874", "text": "public List<Grade> getAllGrades();", "title": "" }, { "docid": "60c3018f57d9a1e2d4696852a3c8380c", "score": "0.5676884", "text": "public void mostrar() {\r\n for (Iterator<Pregunta> iterator = preguntas.iterator(); iterator.hasNext();) {\r\n Pregunta next = iterator.next();\r\n System.out.println(next.getEnunciado());\r\n }\r\n \r\n /*\r\n \r\n int contador = 0;\r\n Iterator it = listaPreguntas.iterator();\r\n while (it.hasNext()) {\r\n System.out.println(contador + \" Enunciado : \" + preg.enunciado);\r\n contador++;\r\n }\r\n \r\n \r\n for (Pregunta coleccion1 : coleccion) {\r\n System.out.println(coleccion1);}\r\n */\r\n }", "title": "" }, { "docid": "93a0fd6b8b6a58472354e91fc84817c2", "score": "0.5660432", "text": "public ArrayList<String> getPreguntas(){\n return DatosApp.getPreguntasCuestionarioPaciente(En, Pac, Cuest);\n }", "title": "" }, { "docid": "cb0e6a5f21eb888093917f6c6ce0df06", "score": "0.5655535", "text": "private static void printPersonas(List<Persona> personas){\n for(Persona persona : personas){\n System.out.println(persona.getNombre());\n \n }\n }", "title": "" }, { "docid": "9bc0a8bf45bda20df85a1b19fb1e6d0b", "score": "0.5649381", "text": "public List getAmbitoGeograficoList(Map criteria);", "title": "" }, { "docid": "771480e98c7896b3b9fb76187fbd67ef", "score": "0.5648696", "text": "public List<Grupo> obtenerUserGroups() throws Exception{\n\n\t\ttry {\n\t\t\tlog.info(\"Antes de llamar createNamedQuery\");\n\t\t\tList<GrupoEntitie> luge = entityManager.createNamedQuery(GrupoEntitie.SQL_SELECT_ALL, GrupoEntitie.class).getResultList();\n\t\t\t\n\t\t\tList<Grupo> lug = new ArrayList<Grupo>();\n\n\t\t\tfor (GrupoEntitie userGroupEntitie : luge){\n\t\t\t\tlug.add(transforma(userGroupEntitie));\n\t\t\t}\n\t\t\t\n\n\t\t\treturn lug;\n\t\t\t\n\t\t} catch(Exception e) {\n\t\t\tlog.error(\"Error \" + e);\n\t\t\tthrow e;\n\t\t}\n\t}", "title": "" }, { "docid": "a29a0fbbfbba5751154c746f060f3166", "score": "0.5643622", "text": "public List<Auswaehlbar> gibAlleAuswaehlbaren();", "title": "" }, { "docid": "6609236103fade6a3c4fc0889537f090", "score": "0.5629765", "text": "public List getProgramaNivelList(Map criteria);", "title": "" }, { "docid": "7e74cb67d4281491cdb76d890b147ea7", "score": "0.5629661", "text": "public void passengersList() {\n name();\n System.out.println(\"Max capacity of Travel Package :- \" + capacity);\n System.out.println(\"Number of passengers enrolled :- \" + passengers.size());\n System.out.println(\"Passengers list\");\n for (Passenger passenger : passengers) {\n passenger.name();\n passenger.passengerNumber();\n System.out.println();\n }\n }", "title": "" }, { "docid": "ce137393cf684da6753fc13468470466", "score": "0.56296045", "text": "public List<Pacman> getPacmanList() { return Pacman_List; }", "title": "" }, { "docid": "d11d7901f6e04e1ff11084ebc6dbb3be", "score": "0.5619883", "text": "public void listar() {\n if (!nodoVacio()) {\n Nodos aux = inicio;\n int i = 0;\n while (aux != null) {\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" --> \");\n aux = aux.getSiguiente();\n i++;\n }\n }\n }", "title": "" }, { "docid": "16067a40a7023efbb9e92ebab25f8b8e", "score": "0.5618025", "text": "@Override\r\n\tpublic List<Map<String, Object>> listarPersonal() {\n\t\treturn pd.listarPersonal();\r\n\t}", "title": "" }, { "docid": "c1f49e7b9666d7d275a983a7e8fae701", "score": "0.5611615", "text": "public ArrayList<String> getLlistaPlansEstudis() {\n ArrayList<String> info = new ArrayList<>();\n for (PlaEstudis p : plaEstudis.values()) {\n info.add(p.getNomTitulacio());\n }\n info.sort(String::compareToIgnoreCase);\n return info;\n }", "title": "" }, { "docid": "2d6b7acd6ba1dfdb367bc6304957831f", "score": "0.5611499", "text": "public List<Organizacion> getListaOrganizacion()\r\n/* 224: */ {\r\n/* 225:306 */ List<Organizacion> listaOrganizacion = new ArrayList();\r\n/* 226:308 */ if (AppUtil.getUsuarioEnSesion().isIndicadorSuperAdministrador())\r\n/* 227: */ {\r\n/* 228:309 */ listaOrganizacion = this.servicioOrganizacion.obtenerListaCombo(\"razonSocial\", true, null);\r\n/* 229:310 */ return listaOrganizacion;\r\n/* 230: */ }\r\n/* 231:313 */ List<UsuarioOrganizacion> lista = AppUtil.getUsuarioEnSesion().getListaUsuarioOrganizacion();\r\n/* 232:315 */ for (UsuarioOrganizacion usuarioOrganizacion : lista) {\r\n/* 233:316 */ listaOrganizacion.add(usuarioOrganizacion.getOrganizacion());\r\n/* 234: */ }\r\n/* 235:319 */ return listaOrganizacion;\r\n/* 236: */ }", "title": "" }, { "docid": "89c228b9e42f8de75af90f4ebf80bf1b", "score": "0.5598794", "text": "public static void main(String[] args) {\n Grafo g = new Grafo();\r\n List<Aresta> arestas = new ArrayList<Aresta>();\r\n\r\n arestas.add(new Aresta(1, 2));\r\n arestas.add(new Aresta(1, 3));\r\n arestas.add(new Aresta(1, 4));\r\n arestas.add(new Aresta(1, 5));\r\n arestas.add(new Aresta(1, 1));\r\n arestas.add(new Aresta(1, 2));\r\n arestas.add(new Aresta(1, 2));\r\n arestas.add(new Aresta(2, 1));\r\n\r\n g.add(arestas);\r\n ConstruGraf cg = new ConstruGraf(g);\r\n System.out.println(cg.matrizToString());\r\n }", "title": "" }, { "docid": "f6643f7bd14110415e0972853c90a5a9", "score": "0.55961394", "text": "public List<Turma> lista() {\n\n\t\tTypedQuery<Turma> query = em.createNamedQuery(\"Turma.lista\", Turma.class);\n\t\treturn query.getResultList();\n\t}", "title": "" }, { "docid": "4649f94fd0bbe184b091ea375406420c", "score": "0.55912584", "text": "private void listarPersonas() {\r\n\t\ttry {\r\n\t\t\tObject obj = JSONValue.parse(ApiAuthRest.getRequestGet(\"person?q\"));\r\n\r\n\t\t\tJSONObject jsonObject = (JSONObject) obj;\r\n\r\n\t\t\tJSONArray arrayResult = (JSONArray) jsonObject.get(\"results\");\r\n\t\t\tint largoArray = arrayResult.size();\r\n\t\t\tlistaPersonas = new String[largoArray];\r\n\t\t\tlistaPersonasUudi = new String[largoArray];\r\n\t\t\tint contador;\r\n\t\t\tfor (contador = 0; contador < largoArray; contador++) {\r\n\t\t\t\tJSONObject registro = (JSONObject) arrayResult.get(contador);\r\n\t\t\t\tlistaPersonasUudi[contador] = ((String) registro.get(\"uuid\"));\r\n\t\t\t\tlistaPersonas[contador] = ((String) registro.get(\"display\"));\r\n\t\t\t\tLog.d(\"Pacientes encontrados\", \"Rows \" + contador\r\n\t\t\t\t\t\t+ \" => Result Tipo UUID:\" + listaPersonasUudi[contador]\r\n\t\t\t\t\t\t+ \" Display:\" + listaPersonas[contador]);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b3d2ab345df5207627253558731a131b", "score": "0.5586094", "text": "public List getProgramaCanastaPremiList(Map criteria);", "title": "" }, { "docid": "fd196b7a50d93bf49d62ee78f97b266c", "score": "0.55801773", "text": "public static List<Slot> getGrondSloten(){\n List<Slot> tmp = new ArrayList<>();\n for(HashMap<Integer, Slot> t: grondSlots.values())\n tmp.addAll(t.values());\n return tmp;\n }", "title": "" }, { "docid": "54fe982f6f512953c7f7d237a21ba576", "score": "0.5578332", "text": "public List<Boek> maakGeschiedenisBoekenMetAuteurs() {\n String[] voornamen = {\"Yuval\", \"David\", \"Jared\", \"Steve\"};\n String[] achternamen = {\"Harari\", \"Van Reybrouck\", \"Diamond\", \"Brusatte\"};\n char[] geslacht = {'M', 'M', 'M', 'M'};\n List<Auteur> auteurs = maakAuteurs(voornamen, achternamen, geslacht);\n List<Boek> boeken = maakGeschiedenisBoeken();\n int i = 0;\n for (Boek boek : boeken) {\n boek.add(auteurs.get(i));\n i++;\n }\n return boeken;\n }", "title": "" }, { "docid": "c32f81d8bc0c286722a546541a633d81", "score": "0.5574589", "text": "public List getProgramaDesempenioList(Map criteria) ;", "title": "" }, { "docid": "07ffd75af688239da2c9fc6016e43cc0", "score": "0.55667096", "text": "public ArrayList<Integer> kortitListana() {\n ArrayList<Integer> kortit = new ArrayList<>();\n int parienMaara = sivu * sivu / 2;\n int pari = 0;\n while (pari < parienMaara) {\n kortit.add(pari);\n kortit.add(pari);\n pari++;\n }\n Collections.shuffle(kortit);\n return kortit;\n }", "title": "" }, { "docid": "8bc3e7916d77ac0264f2c32127482ba2", "score": "0.55663943", "text": "private void crearNaves() {\r\n\t\tint posNave = TAM_NAVE;\r\n\t\tnaves = new ArrayList<>();\r\n\t\tfor (int numNave=0; numNave<NUM_NAVES; numNave++) {\r\n\t\t\tNave nave = new Nave( posNave, CANAL[2] ); // Nueva nave en canal intermedio\r\n\t\t\tnave.setCanal( 2 );\r\n\t\t\telementos.add( nave );\r\n\t\t\tnaves.add( nave );\r\n\t\t\tposNave += DIST_NAVES;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8efa9983e6aa0f93e434d7f42b3970ca", "score": "0.55597943", "text": "public List<Grupo> buscarTodos() {\n List<Grupo> lista = new ArrayList<Grupo>();\n\n Query query = this.session.createQuery(\"from Grupo where ensenanza = 3 or ensenanza = 5\");\n lista = query.list();\n\n return lista;\n }", "title": "" }, { "docid": "d5ff7365ef72cbcef1584c8a711c1e12", "score": "0.5555361", "text": "public List<EntidadGes> getLista() {\n List<EntidadGes> entidades = null;\n\n try {\n String sql = getSqlConsulta();\n entidades = ejecutorSelect.obtenerListaEntidades(sql, constructor);\n } catch (Exception e) {\n reportarExcepcion(\"Error en obtener la lista de \" + consulta.getNombre(), e);\n }\n return entidades;\n }", "title": "" }, { "docid": "6e9ca314a0dc75f5952d2782e598d1b5", "score": "0.555522", "text": "public void listar() {\n\t\t\n\t}", "title": "" }, { "docid": "2e36016afd0bdad04890cbc8a90ae48e", "score": "0.5554342", "text": "public List<Profil> getList() {\n\n \treturn (new GetListTask()).execute(new HttpGet(GAE.getProfilEndPoint()));\n }", "title": "" }, { "docid": "ebfb622dbb6be70d7b607d77840923dd", "score": "0.5553419", "text": "private void inicializaGrafo(){\n Iterator<String> llaves = diccionario.iteradorLlaves();\n while(llaves.hasNext()) {\n grafica.agrega(llaves.next());\n }\n\n }", "title": "" }, { "docid": "86a51b14782544623cb760b362d62cfb", "score": "0.5541621", "text": "private void listarRaquetas(){\n vista.raquetasDlm.clear();\n for(Raqueta raqueta : modelo.getRaquetas()){\n vista.raquetasDlm.addElement(raqueta);\n }\n }", "title": "" }, { "docid": "765f2dde8913783c0c8aeda9626f8097", "score": "0.55350673", "text": "public void monterGrille() {\n \t\tfor (int a = 0; a < nombredeLigne; a++) {\n\t\t\tfor (int i = 0; i < nombredecase; i++) {\n\t\t\t\ttab[i][a].animBloc.setPosY(tab[i][a].animBloc.getPosY()-1);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "19dff984e8ad49ceb6816087f56c80ef", "score": "0.5526587", "text": "public List<Jogador> listarArtilheiros(Campeonato camp) {\n Connection conn = null;\n List<Jogador> jogadores = new ArrayList();\n try {\n conn = new ConnectionFactory().getConnection();\n PreparedStatement pstmt = conn.prepareStatement(\"SELECT distinct jogador.apelido, jogador.gols, times.id as 'time' ,times.campeonato \\n\"\n + \" from jogador \\n\"\n + \" inner join times \\n\"\n + \" on jogador.time = times.id \\n\"\n + \" inner join campeonato \\n\"\n + \" on times.campeonato = ?\"\n + \" where gols!=0 \\n\"\n + \" order by gols desc\");\n pstmt.setInt(1, camp.getId());\n ResultSet rs = pstmt.executeQuery();\n while (rs.next()) {\n Jogador jogador = new Jogador();\n jogador.setApelido(rs.getString(\"apelido\"));\n jogador.setGols(rs.getInt(\"gols\"));\n TimeDAO timeDAO = new TimeDAO();\n jogador.setTime(timeDAO.buscar(rs.getInt(\"time\")));\n jogadores.add(jogador);\n }\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n return jogadores;\n }", "title": "" }, { "docid": "2f84bcb207cc7db7762b649697cd076a", "score": "0.552072", "text": "public List<Persona> getArtesanos() {\n return buscarUsuarioCategoria(Categoria.ARTESANO);\n }", "title": "" }, { "docid": "7191e52e194880bdaf53b2b0f6ad612e", "score": "0.5520295", "text": "java.util.List<com.sagas.meta.model.MetaPermGroup> \n getPermissionGroupsList();", "title": "" }, { "docid": "f0e7c5cda6bcfb859fc8bf6c5af1d3f4", "score": "0.5519328", "text": "private void printList() {\n for (ProcessingRegistry registry : registries) {\n for (final Identifier id : registry.getIdentification().getCitation().getIdentifiers()) {\n print(BOLD,id.getCode(),\" \",RESET);\n }\n List<String> names = new ArrayList<>(registry.getNames());\n Collections.sort(names);\n print(StringUtilities.toStringTree(\"\",names));\n print(\"\\n\");\n }\n }", "title": "" }, { "docid": "37c1ca8166ced13fdadb04f86ad07edd", "score": "0.5515497", "text": "public static void main(String[] args) {\n Refugio refugio = new Refugio();\n List<Integer>horasDeComidas = new ArrayList<>();\n List<Mamifero> mamiferos = refugio.getMamiferos();\n horasDeComidas.add(10);\n horasDeComidas.add(15);\n horasDeComidas.add(20);\n mamiferos.add(new Mamifero(\"Perro Jhon\",1,horasDeComidas,false));\n\n List<Integer>horasDeComidas5 = new ArrayList<>();\n horasDeComidas5.add(10);\n horasDeComidas5.add(15);\n horasDeComidas5.add(22);\n mamiferos.add(new Mamifero(\"Gato Gardfield\", 2,horasDeComidas5, false));\n\n List<Integer>horasDeComidas1 = new ArrayList<>();\n horasDeComidas1.add(11);\n horasDeComidas1.add(16);\n horasDeComidas1.add(21);\n mamiferos.add(new Mamifero(\"Cabra Dolly\", 3,horasDeComidas1, true));\n\n List<Integer>horasDeComidas2 = new ArrayList<>();\n horasDeComidas2.add(10);\n horasDeComidas2.add(15);\n horasDeComidas2.add(20);\n mamiferos.add(new Mamifero(\"Perro Firulays\",4, horasDeComidas2, false));\n\n List<Integer>horasDeComidas3 = new ArrayList<>();\n horasDeComidas3.add(11);\n horasDeComidas3.add(16);\n horasDeComidas3.add(21);\n mamiferos.add(new Mamifero(\"Hurón Young\",5, horasDeComidas3, true));\n\n List<Integer>horasDeComidas4 = new ArrayList<>();\n horasDeComidas4.add(1130);\n horasDeComidas4.add(1630);\n horasDeComidas4.add(2130);\n mamiferos.add(new Mamifero(\"Gato Felix\", 6, horasDeComidas4, true));\n\n System.out.println(\"El listado de Mamiferos es: \");\n mamiferos.forEach((m) ->{\n System.out.println(m);\n });\n\n System.out.println(\"Procedemos a vacunar Perros y Gatos que no lo esten\");\n for (int i = 0; i < mamiferos.size(); i++){\n mamiferos.get(i).vacunar(mamiferos, i);\n }\n\n System.out.println(\"El listado de Mamiferos luego de la vacunacion es: \");\n mamiferos.forEach((m) ->{\n System.out.println(m);\n });\n\n List<Reptil> reptiles = refugio.getReptiles();\n List<Integer> horas1 = new ArrayList<>();\n horas1.add(1130);\n horas1.add(1630);\n horas1.add(2130);\n reptiles.add(new Reptil(\"Tortuga Manuelita\",1,horas1, 20));\n\n List<Integer> horas2 = new ArrayList<>();\n horas2.add(11);\n horas2.add(16);\n horas2.add(21);\n reptiles.add(new Reptil(\"Lagarto Juancho\",2,horas2, null));\n\n List<Integer> horas3 = new ArrayList<>();\n horas3.add(10);\n horas3.add(15);\n horas3.add(20);\n reptiles.add(new Reptil(\"Tortuga Pepa\",3,horas3,40));\n\n System.out.println(\"El listado de Reptiles es: \");\n reptiles.forEach(reptil -> {\n System.out.println(reptil);\n });\n }", "title": "" }, { "docid": "a7b0570dce87d3c4deff52e2b01878eb", "score": "0.5496252", "text": "long getGroupMemberList(int index);", "title": "" }, { "docid": "9be48d8dcbdb1c9bd8397616e2853be8", "score": "0.54865044", "text": "@Override\n\tpublic List<Ampliacion_plazo> Listar() throws Exception {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4ce1a95078ab5a69e54c7b01ffade3b4", "score": "0.5484345", "text": "public abstract List<Integer> getPosiblesOrdenesLLegada();", "title": "" }, { "docid": "89ea875ab6877aea4d72c64bc533bb1a", "score": "0.5477441", "text": "public ArrayList<String> getLlistaAssignatures() {\n ArrayList<String> info = new ArrayList<>();\n for (Assignatura a : assignatures.values()) {\n info.add(a.getNom());\n }\n info.sort(String::compareToIgnoreCase);\n return info;\n }", "title": "" }, { "docid": "a56e8057f7f290ff5035b34fcf78441c", "score": "0.54635483", "text": "public List getProgCanasta(Map criteria) ;", "title": "" }, { "docid": "55e47f00be899f43fabea41be272e950", "score": "0.5459952", "text": "private void pobierzGrupy() {\n\t\tinterfejsBD.otworzPolaczenie();\n\t\tgrupy = interfejsBD.pobierzGrupyWszystkie();\n\t\tinterfejsBD.zamknijPolaczenie();\n\t}", "title": "" }, { "docid": "76e4f995fd2cd6b8f541f787cb84fb60", "score": "0.54439634", "text": "public List getProgramaEtapaCampanaList(Map criteria) ;", "title": "" }, { "docid": "3eca70addade623515c6a54c0d8d7965", "score": "0.5440948", "text": "public Symbole[][] getGrille() ;", "title": "" }, { "docid": "6880a6a659c17e928328e84f0c2a1783", "score": "0.5439019", "text": "@Override\n public String[] getListadoDeMaterias() {\n listaGrado=getDatosMateria();\n String[] tabla=new String[listaGrado.size()];\n int i=0;\n for (MateriasEntity u: listaGrado) {\n tabla[i]=\"\"+u.getNombreMateria();\n i++;\n }\n \n return tabla;\n }", "title": "" }, { "docid": "3e6b6f0bc8b2d0c78aa9129a91ffaae5", "score": "0.5438849", "text": "public void ganadorPartida() {\r\n\r\n for (Jugador jugador : jugadores) {\r\n if ((jugador.sumarCartas() > dealer.sumarCartas()) && (jugador.sumarCartas() <= 21)) {\r\n System.out.println(\"Gano :\" + jugador.getNombre());\r\n jugador.setFichas(jugador.getFichas() + apuestaMinima);\r\n } else {\r\n System.out.println(\"Gano el Dealer a :\" + jugador.getNombre());\r\n }\r\n }\r\n }", "title": "" }, { "docid": "e84733bb6352eaac7d927e4e426701e3", "score": "0.5432553", "text": "public List <Pregunta> getPreguntas(){\n\t\tList <Pregunta> preguntas= null;\n\t\tCursor c = null;\n\t\ttry{\n\t\t\tdb=dbHelper.getReadableDatabase();\n\t\t\tc = db.rawQuery(SELECT_ALL, null);\n\t\t\tpreguntas = getObjectsFromCursor(c);\n\t\t} finally{\n\t\t\tc.close();\n\t\t\tclose();\n\t\t}\n\t\treturn preguntas;\n\t}", "title": "" }, { "docid": "5c6480900a18b02bf1aaa8b6598b131f", "score": "0.54324675", "text": "public static void getAllGroups() {\r\n\t\ttry {\r\n\t\t\tClass.forName( \"org.hsqldb.jdbcDriver\" );\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tSystem.err.println(\"Keine Treiber-Klasse!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tConnection con = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tcon = DriverManager.getConnection( \"jdbc:hsqldb:\"+Configuration.getProfilePath()+\"MarsDB;shutdown=true\", \"sa\" , \"\");\r\n\t\t\t\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\t\r\n\t\t\tString query = \"SELECT * FROM Groups\";\r\n\t\t\t\r\n\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\t\r\n\t\t\tSystem.out.print(format(\"Nr\", 5));\r\n\t\t\tSystem.out.print(format(\"Name\", 20));\r\n\t\t\tSystem.out.println(format(\"Groupname\", 20));\r\n\t\t\t\r\n\t\t\tSystem.out.print(format(\"==\", 5));\r\n\t\t\tSystem.out.print(format(\"========\", 20));\r\n\t\t\tSystem.out.println(format(\"=============\", 20));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\twhile (rs.next())\r\n {\r\n\t\t\t\tSystem.out.print(format(rs.getString(1), 5));\r\n\t\t\t\tSystem.out.print(format(rs.getString(2), 20));\r\n\t\t\t\tSystem.out.println(format(rs.getString(3), 20));\r\n }\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (con != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b11972c071e2608fc242bc5ec0142f7a", "score": "0.5432282", "text": "List<IGroup> getLstGroups();", "title": "" }, { "docid": "3bbd1635b7059e95176cfeed3ea0b5c7", "score": "0.54286224", "text": "java.util.List<Long> getGroupMemberListList();", "title": "" }, { "docid": "ec936885e61a390e3e6542751f20bf90", "score": "0.5427035", "text": "@Override\r\n\tpublic void listaAluno() {\n\t\tfor (int i = 0; i < index; i++) {\r\n\t\t\tSystem.out.println(\"Nom: \" + listaAluno[i].getNome() + \" Matrícula: \" + listaAluno[i].getMatricula() + \" \" + this.index);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eb8a22c21c90fa6d527c656a61d84496", "score": "0.54263306", "text": "public void listaPeliculas() {\n EntityManager em = emf.createEntityManager();\n em.getTransaction().begin();\n List<Pelicula> result = em.createQuery(\"from Pelicula \", Pelicula.class)\n .getResultList();\n for (Pelicula pelicula : result) {\n System.out.println(pelicula.toString());\n }\n em.getTransaction().commit();\n em.close();\n\n }", "title": "" }, { "docid": "526075acbf4b2c538f23af87e5513bf3", "score": "0.5424647", "text": "public List<Grade> getGrades(){\n List<Grade> Grade_result = null;\n for(int i=0;i<=Grade_result.size();i++) {\n Grade_result.add(i,new Grade(this.results.get(i).getGrade().getValue()));\n }\n return Grade_result;\n }", "title": "" }, { "docid": "6682d650cd04238a411f52b36b1c74e1", "score": "0.54222435", "text": "public List<Node> obtenirPlantes() {\n List<Node> plantes = new ArrayList<>();\n try {\n xqe = con.createExpression();\n String xq = \"for $b in doc ('/m06_uf3/plantes.xml')//PLANT return $b\";\n\n XQResultSequence rs = xqe.executeQuery(xq);\n while (rs.next()) {\n plantes.add(rs.getItem().getNode());\n }\n } catch (XQException ex) {\n System.out.println(ex.getMessage());\n }\n return plantes;\n }", "title": "" }, { "docid": "4c0169fb447e1e5dca41a588fc9d0787", "score": "0.5419594", "text": "public Guardarropas() {\n this.prendas = new ArrayList<Prenda>();\n }", "title": "" }, { "docid": "2b872bcc0e022408cd4b26831c1ba219", "score": "0.5415922", "text": "public static void main(String[] args) {\n Grafo g = new Grafo();\r\n\r\n g.add(new Aresta(1, 1));\r\n g.add(new Aresta(1, 2));\r\n g.add(new Aresta(1, 3));\r\n g.add(new Aresta(2, 4));\r\n g.add(new Aresta(2, 5));\r\n g.add(new Aresta(3, 4));\r\n g.add(new Aresta(3, 5));\r\n g.add(new Aresta(2, 1));\r\n g.add(new Aresta(4, 5));\r\n g.add(new Aresta(5, 5));\r\n g.add(new Aresta(5, 6));\r\n g.add(new Aresta(5, 7));\r\n g.add(new Aresta(6, 7));\r\n\r\n ConstruGraf ConG = new ConstruGraf(g);\r\n System.out.println(ConG.matrizToString());\r\n System.out.println(\"N = \" + g.getVertices().size());\r\n System.out.println(\"M = \" + g.getArestas().size());\r\n }", "title": "" }, { "docid": "6a2674522dc16d5572622dc8af1e8396", "score": "0.5412364", "text": "public String getGruposProcecimentos(String cod_empresa) {\r\n \r\n String sql = \"SELECT * FROM grupoprocedimento \";\r\n sql += \"WHERE cod_empresa=\" + cod_empresa;\r\n sql += \" ORDER BY grupoproced\";\r\n String resp = \"\";\r\n try {\r\n //Cria statement para enviar sql\r\n stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,\r\n ResultSet.CONCUR_READ_ONLY);\r\n \r\n ResultSet rs = null;\r\n //Executa a pesquisa\r\n rs = stmt.executeQuery(sql);\r\n \r\n //Cria looping com a resposta\r\n while(rs.next()) {\r\n resp += \"<option value='\" + rs.getString(\"cod_grupoproced\") + \"'>\" + rs.getString(\"grupoproced\") + \"</option>\\n\";\r\n }\r\n rs.close();\r\n stmt.close();\r\n \r\n return resp;\r\n } catch(SQLException e) {\r\n return e.toString();\r\n }\r\n }", "title": "" }, { "docid": "2e52b4f47d52117312b0cd71e3d4a422", "score": "0.5409205", "text": "public List<Gerente> Gerentes () {\n return entityManager\n .createQuery(\"FROM Gerente grt\", Gerente.class)\n .getResultList();\n }", "title": "" }, { "docid": "293d03c08a7199eae964bc0bd4823e8d", "score": "0.5407788", "text": "public void rellenarPropiedadesNoMapeadas(List<Foro> listaForos);", "title": "" }, { "docid": "19d044f2a131afadea791e341dac60e8", "score": "0.54077303", "text": "public List<Boek> maakLiteratuurBoekenMetAuteurs() {\n String[] voornamen = {\"Margaret\", \"William\", \"Henri\"};\n String[] achternamen = {\"Atwood\", \"Goulding\", \"Charrière\"};\n char[] geslacht = {'V', 'M', 'M'};\n List<Auteur> auteurs = maakAuteurs(voornamen, achternamen, geslacht);\n Auteur orwell = maakGeorgeOrwell();\n auteurs.add(orwell); auteurs.add(orwell);\n List<Boek> boeken = maakLiteratuurBoeken();\n int i = 0;\n for (Boek boek : boeken) {\n boek.add(auteurs.get(i));\n i++;\n }\n return boeken;\n }", "title": "" }, { "docid": "5dbc03aae5d3a08708f5404313a3aed4", "score": "0.5403793", "text": "public static void main(String[] args) {\n Graphe gomath = Graphe.construireGrille(4, 7);\n\t/// Mur à droite\n gomath.ajouteMurD(3);\n gomath.ajouteMurD(7);\n gomath.ajouteMurD(9);\n gomath.ajouteMurD(10);\n gomath.ajouteMurD(19);\n\t/// Mur en bas\n gomath.ajouteMurH(1);\n gomath.ajouteMurH(4);\n gomath.ajouteMurH(7);\n gomath.ajouteMurH(12);\n\t\n \n System.out.println(gomath);\n System.out.println(\"Parcours en largeur\");\n System.out.println(gomath.parcoursLargeur(0));\n\t// Un plus court chemin\n System.out.println(gomath.plusCourtsChemin(27, gomath.parcoursLargeur(0)));\n\t\n\t \n\t \n\t ArrayList<List<Integer>> chemins= new ArrayList<>();\n\n ////////////// Question 6 //////////////////\n\n // Méthode naîve de déduction d'un plus cours chemin\n // Soit un graphe G = (V,E)\n Graphe math = Graphe.construireGrille(4,4);\n\n // Trouver tous les chemins entre s et d\n // Complexité O (|S|.|A|)\n chemins = math.tousLesChemins(0, 15);\n\n // Ajouter les murs\n // Complexité O(m+n)\n // On parcours tous les chemins d'une liste puis tous les sommets d'un chemin\n\n for (int i = 0; i <chemins.size() ; i++) {\n for (int j = 0; j <chemins.get(i).size() ; j++) {\n if(((j+1)<(chemins.get(i).size()))&&chemins.get(i).get(j+1)==6&&chemins.get(i).get(j)==5)\n chemins.remove(i);\n if(((j+1)<(chemins.get(i).size()))&&chemins.get(i).get(j)==3&&chemins.get(i).get(j+1)==3+math.l)\n chemins.remove(i);\n }\n }\n System.out.println(chemins);\n //math.ajouteMurH(3);\n //math.ajouteMurD(5);\n\n\n\n // Complexité 0(|m|)\n // On parcours tous les chemins d'une liste\n //chemins = math.tousLesChemins(0,15);\n int min = chemins.get(0).size();\n for (List<Integer> i : chemins){\n min = min < i.size() ? min : i.size();\n }\n System.out.println(chemins.get(min));\n\n ////////////// Question 6 //////////////\n\n\n }", "title": "" }, { "docid": "531cf7c3fc7536b7f3887ea5f39776ec", "score": "0.53939134", "text": "@Override\n\tpublic void listar(Geladeira geladeira) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "a7be021acdf4d7e5555c645436a46053", "score": "0.53876185", "text": "public Pakka() {\n\t\tpakka = new ArrayList<Kortti>();\n\t\t\n\t\tfor (int i = 2; i < 15; i++) {\n\t\t\tpakka.add(new Kortti(\"\" + i+\"\", \"Hertta\"));\n\t\t\tpakka.add(new Kortti(\"\" + i+\"\", \"Risti\"));\n\t\t\tpakka.add(new Kortti(\"\" + i+\"\", \"Ruutu\"));\n\t\t\tpakka.add(new Kortti(\"\" + i+\"\", \"Pata\"));\n\t\t}\n\t}", "title": "" }, { "docid": "e930a263d48c1996d3f866f0dd984f9f", "score": "0.5382905", "text": "@Override\r\n\tpublic List<Publicacion> Buscar(List<Publicacion> publicaciones, Criterio criterio){\n\r\n\t\tList<Publicacion> PublicacionesAux = new ArrayList<Publicacion>();\r\n\t\tfor (Publicacion e : super.Buscar(publicaciones, criterio)) \r\n { \r\n if (e.cantHuesped >= criterio.cantHuesped) \r\n { \r\n \tPublicacionesAux.add(e);\r\n } \r\n } \r\n\t\treturn PublicacionesAux;\r\n\t}", "title": "" }, { "docid": "8edb52f443f32954cd0792a6764c7c57", "score": "0.5381046", "text": "public List getGroupings()\n {\n return groupings;\n }", "title": "" }, { "docid": "610265e06445d622e430a3172b4edd84", "score": "0.53810394", "text": "public List<Produktgruppe> getAllProduktgrupper() {\n\t\treturn storage.getProduktgrupper();\n\t}", "title": "" }, { "docid": "3044b11bae4be47fad4942ebd0d46e24", "score": "0.53764784", "text": "@JDIAction(\"Get '{name}' groups\")\r\n public List<String> getGroups() {\r\n List<String> groups = new ArrayList<>();\r\n WebList webList = new WebList(By.cssSelector(groupsAndOptionsList));\r\n int groupSize = webList.values().size();\r\n for (int i = 0; i < groupSize; i++) {\r\n String stringGroupsAndOptions = webList.values().get(i);\r\n List<String> listGroupsAndOptions = Stream.of(stringGroupsAndOptions.split(\"\\n\"))\r\n .collect(Collectors.toCollection(ArrayList::new));\r\n groups.add(listGroupsAndOptions.get(0));\r\n }\r\n collapsePanel();\r\n return groups;\r\n }", "title": "" }, { "docid": "827d9659af8ce871b08a6199ac740374", "score": "0.53735685", "text": "private void generaGrafo(){\n Iterator<String> llaves = diccionario.iteradorLlaves();\n\n\n while(llaves.hasNext()){\n String s = llaves.next();\n //Obtenemos el conjunto de palabras de ese archivo\n Conjunto<String> conjuntoArchivo = diccionario.get(s);\n //Hacemos un segundo iterador para recorrer todos los conjuntos\n Iterator<String> llaves2 = diccionario.iteradorLlaves();\n while (llaves2.hasNext()){\n String elemento2 = llaves2.next();\n Conjunto<String> conjuntoAux = diccionario.get(elemento2);\n ///Hacemos la interseccion\n Conjunto<String> interseccion = conjuntoArchivo.interseccion(conjuntoAux);\n\n ///Si la interseccion no es vacia conectamos a los elementos\n if (!interseccion.esVacia()){\n\n\n //Revisamos si los elementos ya han sido conectados\n //o si son el mismo elemento, en caso contrario se agregan\n if(grafica.sonVecinos(s,elemento2) || s.equals(elemento2)){\n continue;\n }\n\n String e = s +\" con \" + elemento2 + \": \" + interseccion.toString();\n e = e.replaceAll(\"\\\\{\",\"\");\n e = e.replaceAll(\"}\",\"\");\n\n palabrasCompartidas.agrega(e);\n grafica.conecta(s,elemento2);\n }\n }\n\n\n }\n\n }", "title": "" }, { "docid": "1cee66d67ada6a482694b32236c89876", "score": "0.53732634", "text": "public List<Museo>listaMuseos();", "title": "" }, { "docid": "64146f6945b3ae24d9d9d1e73b933b5b", "score": "0.53674865", "text": "public String getGruposProcedimentos(String cod_empresa) {\r\n String sql = \"SELECT cod_grupoproced, grupoproced FROM grupoprocedimento \";\r\n sql += \"WHERE cod_empresa=\" + cod_empresa;\r\n sql += \" AND ativo='S' \";\r\n sql += \" ORDER BY grupoproced\";\r\n String resp = \"\";\r\n try {\r\n //Cria statement para enviar sql\r\n stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,\r\n ResultSet.CONCUR_READ_ONLY);\r\n \r\n ResultSet rs = null;\r\n //Executa a pesquisa\r\n rs = stmt.executeQuery(sql);\r\n \r\n //Cria looping com a resposta\r\n while(rs.next()) {\r\n resp += \"<option value='\" + rs.getString(\"cod_grupoproced\") + \"'>\" + rs.getString(\"grupoproced\") + \"</option>\\n\";\r\n }\r\n rs.close();\r\n stmt.close();\r\n \r\n return resp;\r\n } catch(SQLException e) {\r\n return e.toString();\r\n }\r\n }", "title": "" }, { "docid": "b08135a15d1ab91302314cf8cfadd897", "score": "0.5364497", "text": "public ArrayList<ArrayList<Integer>> lista_arcos(){\n\t\tArrayList<ArrayList<Integer>> end = new ArrayList<ArrayList<Integer>>();\n\t\tIterator<ArrayList<Integer>> i = this.grafo.iterator();\n\t\twhile(i.hasNext()){\n\t\t\tend.add(new ArrayList<Integer>(i.next()));\n\t\t}\n\n\t\treturn end;\n\t}", "title": "" }, { "docid": "fa8810a61eda027a2d7a0c5a285a759d", "score": "0.5360997", "text": "@Produces\n public List<String> getLaimingiPatiekalai(){\n List<String> patiekalai = new ArrayList<>();\n\n patiekalai.add(\"Šaltibarščiai\");\n patiekalai.add(\"Tacos\");\n patiekalai.add(\"Pasta pecorino\");\n patiekalai.add(\"Shakshuka\");\n patiekalai.add(\"Charčio\");\n patiekalai.add(\"Plovas\");\n patiekalai.add(\"Žemaitiška + jelapenos\");\n patiekalai.add(\"Apvalios bulvės\");\n patiekalai.add(\"Šonkauliai\");\n return patiekalai;\n }", "title": "" }, { "docid": "588f7f859f7c39ee1930977377cd55a0", "score": "0.5358252", "text": "public List<Registro> listarRegistros() {\r\n\t\treturn dao.ejecutarNamedQuery(ConstantesNamedQueries.LISTAR_REGISTROS);\r\n\t}", "title": "" }, { "docid": "ed4eab411afc8f188caa5b5430e54bcf", "score": "0.5357474", "text": "java.util.List getSrlg();", "title": "" }, { "docid": "f768f78a506631241b46ff0ff23bd442", "score": "0.53557384", "text": "public void mostrarLista(){\n Nodo recorrer=inicio;\n while(recorrer!=null){\n System.out.print(\"[\"+recorrer.Nombre+\", \"+recorrer.Telefono+\"]-->\");\n recorrer=recorrer.siguiente;\n }\n }", "title": "" }, { "docid": "a5cb75922bb9ac02b5ac8319e85fd073", "score": "0.5353515", "text": "public Collection<Propiedad> listar() {\r\n Query query = em.createQuery(\"SELECT p FROM Propiedad p \");\r\n return (Collection<Propiedad>) query.getResultList();\r\n }", "title": "" }, { "docid": "d61fb635f9d1b72245b1dbe46aeec829", "score": "0.53528184", "text": "private static void listarAnimales() {\n if (listaVacia()) {\n return;\n }\n for (Animales animales : stockAnimales) {\n System.out.println(animales.toString());\n }\n\n }", "title": "" }, { "docid": "791027c536466effe80fde3772da622b", "score": "0.53516483", "text": "private List<Pelicula> getLista(){\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\tList<Pelicula> lista = null;\n\t\t\n\t\ttry {\n\t\t\tlista = new LinkedList<>();\n\t\t\t\n\t\t\tPelicula pelicula1 = new Pelicula();\n\t\t\tpelicula1.setId(1);\n\t\t\tpelicula1.setTitulo(\"power rangers\");\n\t\t\tpelicula1.setDuracion(120);\n\t\t\tpelicula1.setClasificacion(\"B\");\n\t\t\tpelicula1.setGenero(\"Aventura\");\n\t\t\tpelicula1.setFechaEstreno(formatter.parse(\"02-05-2017\"));\n\t\t\t//imagen = \"cinema.png\"\n\t\t\t//estatus = Activa\n\t\t\t\n\t\t\tPelicula pelicula2 = new Pelicula();\n\t\t\tpelicula2.setId(2);\n\t\t\tpelicula2.setTitulo(\"la bella y la bestia\");\n\t\t\tpelicula2.setDuracion(132);\n\t\t\tpelicula2.setClasificacion(\"A\");\n\t\t\tpelicula2.setGenero(\"infantil\");\n\t\t\tpelicula2.setFechaEstreno(formatter.parse(\"20-05-2017\"));\n\t\t\t\n\t\t\tPelicula pelicula3 = new Pelicula();\n\t\t\tpelicula3.setId(3);\n\t\t\tpelicula3.setTitulo(\"contratiempo\");\n\t\t\tpelicula3.setDuracion(106);\n\t\t\tpelicula3.setClasificacion(\"B\");\n\t\t\tpelicula3.setGenero(\"thriller\");\n\t\t\tpelicula3.setFechaEstreno(formatter.parse(\"28-05-2017\"));\n\t\t\t\n\t\t\t//agregamos los objetos pelicula a la lista\n\t\t\tlista.add(pelicula1);\n\t\t\tlista.add(pelicula2);\n\t\t\tlista.add(pelicula3);\n\t\t\t\n\t\t\treturn lista;\n\t\t\t\n\t\t}catch(ParseException e) {\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "5675ad9bb7a5489676817b60caac21cb", "score": "0.5347317", "text": "public void getListofPlayground() {\n for (int i = 0; i < listOfPlayground.size(); i++) {\n System.out.println(listOfPlayground.get(i).getName());\n }\n }", "title": "" }, { "docid": "854b3ff976732ef48b69be7af15cb4b5", "score": "0.53408074", "text": "public void mostrarLista(){\n int cont = 0;\n for (String[] mPk1 : mPk) {\n if (mPk1[0] == null) {\n break;\n } else {\n System.out.println(\"[ \" + cont + \" ]\");\n System.out.println(mPk1[3]);\n for (int j = 0; j<3; j++) {\n switch(j){\n case 0:\n System.out.println(\"Nombre: \" + mPk1[j]);\n break;\n case 1:\n System.out.println(\"Puntos de Salud: \" + mPk1[j]);\n break;\n case 2:\n System.out.println(\"Puntos de Ataque: \" + mPk1[j]);\n break;\n }\n }\n }\n cont +=1;\n System.out.println(\"\");\n } \n }", "title": "" }, { "docid": "88484a6a4c977d7b9b56a14fdef8894b", "score": "0.53386766", "text": "public static void listarPartidos() {\n //esta vacio por que lista es publica\n if (Ejer07.listaGeneralPartidos.isEmpty()) {\n System.out.println(\"La lista esta vacia\");\n }else {\n\n for (Partido p : Ejer07.listaGeneralPartidos) {\n System.out.println(p.toString());\n }\n }\n }", "title": "" }, { "docid": "a135706d8dd0f6ba93d01494eb6af100", "score": "0.53329253", "text": "public String getGastosPaciente(String idPaciente) throws Exception {\r\n\t\ttry{\r\n\t\t\treturn control.getGastos(idPaciente);\r\n\t\t}catch(ControllerException e){\r\n\t\t\tthrow new Exception(\"Erro na realizacao de procedimentos. \" + e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "524ccaf1265ff76ec2d73e803017bb3b", "score": "0.5328181", "text": "public Map<Integer, Personne> listePersonnes() {\n\t\tMap<Integer, Personne> listePersonnes = new HashMap<Integer, Personne>();\n\t\tfor (ProfilBDD profilBDD : profilRepository.findAll()) {\n\t\t\tlistePersonnes.put(profilBDD.getId_profil(), dtoGeneral.profilBDDToPersonne(profilBDD));\n\t\t}\n\t\treturn listePersonnes;\n\t}", "title": "" }, { "docid": "b0a2ab7f01ec168f026683295c4f9983", "score": "0.53235006", "text": "public String getPreguntas() {\n\t\treturn preguntas;\n\t}", "title": "" }, { "docid": "7b7a25ae37725f049620ffe82774e645", "score": "0.5315665", "text": "public void grupos(String grupo){\n \t FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(\"grupo\", grupo.split(\" - \")[0]);\n }", "title": "" }, { "docid": "1c60bbc1ec17a3e6fe82643003b81c27", "score": "0.5311238", "text": "public List getCanastaDetalleList(Map criteria);", "title": "" } ]
428b1d06f620d244470d1379f766c9a6
Gets the attribute value for LOOKUP_TYPE using the alias name LookupType.
[ { "docid": "effe870354e825abcc6a21615714ec27", "score": "0.75447875", "text": "public String getLookupType() {\r\n return (String) getAttributeInternal(LOOKUPTYPE);\r\n }", "title": "" } ]
[ { "docid": "ed6790edf5af1748116c2fec92b1f135", "score": "0.6410267", "text": "public final String getLookupName() {\n return _type.getLookupName();\n }", "title": "" }, { "docid": "57e60f4c0d11d6c6a199b12f8d34a5c9", "score": "0.60104305", "text": "public String getLookupCode() {\r\n return (String) getAttributeInternal(LOOKUPCODE);\r\n }", "title": "" }, { "docid": "50ace5797b78d5b6137a25933d789337", "score": "0.6001074", "text": "AttributeType getType(String _typeName, boolean _checkAliasFlag) throws TypeNotFoundException;", "title": "" }, { "docid": "6d25f8cffcf4a20a33fda017ab3311df", "score": "0.578026", "text": "public void setLookupType(String value) {\r\n setAttributeInternal(LOOKUPTYPE, value);\r\n }", "title": "" }, { "docid": "54419c9c389f06941a18a97784b2c123", "score": "0.5739431", "text": "public static String getLookupName(EntityManager em, Class<? extends NamedEntity> lookupType, Integer key) {\n NamedEntity entity = em.find(lookupType, key.longValue());\n if (entity == null) {\n return null;\n }\n return entity.getName();\n }", "title": "" }, { "docid": "e2ef006613a078b7409fc3320737c0b7", "score": "0.5677949", "text": "@Column(name = \"LOOKUP_ENTITY_TYPE\")\n\tpublic String getLookupEntityType()\n\t{\n\t\treturn lookupEntityType;\n\t}", "title": "" }, { "docid": "2cdf8fdf9ab7e559679a39aef3d59141", "score": "0.55372596", "text": "public\n YxxfTblLtype ltypeValue()\n {\n if (!retValScanned)\n {\n scanCB();\n }\n\n lookupltypekey.setName(cb);\n\n return D.secTables.findLtype_add(lookupltypekey);\n }", "title": "" }, { "docid": "3348ab530962738ad2a7429a62521052", "score": "0.54679996", "text": "String getLookupName();", "title": "" }, { "docid": "d6e01ea3d7883a8447fa8cc04b47ed93", "score": "0.5273141", "text": "public static CallSite getStaticBootstrapAttribute(Lookup lookup,String name, MethodType type,Class<?> nameClass,String member) throws NoSuchFieldException, IllegalAccessException {\n\t\t//System.out.println(\"> >static bootstrap attribute : lookup = \" + lookup + \", name = \" + name + \", methodtype = \" + type);\n\t\tmh = Mhlookup.findStaticGetter(nameClass,\tmember,type.returnType());\n\t\treturn new ConstantCallSite(mh);\n\t}", "title": "" }, { "docid": "eebf709c8856ea6b09426673df4af347", "score": "0.5266154", "text": "public final String TypeName() {\r\n\t\treturn new String(\"lookup table\");\r\n\t}", "title": "" }, { "docid": "df0b1abca83fa8b780d72e8dc654d345", "score": "0.52336144", "text": "AttributeType getType(String _typeName) throws TypeNotFoundException;", "title": "" }, { "docid": "fb0e4943d7b14a6a9c1af7c78ea0f5d6", "score": "0.5216741", "text": "TargetType get(String locationName, String targetTypeName);", "title": "" }, { "docid": "1033d8bb579966e19cac6c57642d5f83", "score": "0.521435", "text": "public abstract int getAttribute(int type);", "title": "" }, { "docid": "2ca517b6574b0b71c8f8c62382a33b72", "score": "0.51913756", "text": "@ReflectionExplicit\n\tpublic abstract BaseObject baseGetLookupValue(final BaseObject name);", "title": "" }, { "docid": "1aa3fa05858af92c5ddfbfc8c492abd4", "score": "0.51828426", "text": "com.google.cloud.retail.v2alpha.CatalogAttribute.AttributeType getType();", "title": "" }, { "docid": "bc7a337a64418a537f945a3e6434d5bf", "score": "0.51498055", "text": "public void setLookupEntityType(String lookupEntityType)\n\t{\n\t\tthis.lookupEntityType = lookupEntityType;\n\t}", "title": "" }, { "docid": "d3e5a52859a283c184e6ba0b3370d626", "score": "0.5070305", "text": "<T> T getValue(Class<T> type, String name);", "title": "" }, { "docid": "88cdfa2da510beba4ec8ed88c3219d7e", "score": "0.50430745", "text": "public org.pentaho.pms.cwm.pentaho.meta.datatypes.CwmTypeAliasClass getCwmTypeAlias();", "title": "" }, { "docid": "7a7cf05e7ac4305d649109f2b5d1f99f", "score": "0.5019409", "text": "public String getRateLookupValueName() {\n return _rateLookupValueName;\n }", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.50152767", "text": "int getTypeValue();", "title": "" }, { "docid": "fd67e38f0a9a3898d80af30948016b41", "score": "0.49937248", "text": "public String getFromType() {\r\n StringSTAttribute att = (StringSTAttribute) this.getFromTypeAttribute();\r\n if (att == null) {\r\n return null;\r\n }\r\n return att.getString();\r\n }", "title": "" }, { "docid": "77c2ec5c87053004fa9bb5aa4faebbfb", "score": "0.49521556", "text": "public ObjectType getLocType () {\n if (locType == null) {\n //TODO: Simplify this line (by giving the config provider or something)\n locType = TypeListManager.lookupObject(id);\n }\n return locType;\n }", "title": "" }, { "docid": "2703db58c18d5bb4abc4f4fbb3551855", "score": "0.49416798", "text": "String getAliasProperty();", "title": "" }, { "docid": "686b7b9fba623490b68ee8715abc7fad", "score": "0.48966056", "text": "public abstract String getAttributeType(int index);", "title": "" }, { "docid": "135e9c379c7715710495512665599d9b", "score": "0.48859438", "text": "@Field(6) \n\tpublic Pointer<_dictobject.ma_lookup_callback > ma_lookup() {\n\t\treturn this.io.getPointerField(this, 6);\n\t}", "title": "" }, { "docid": "0f045ef65599ca6eb2b5a440c1e8a7f7", "score": "0.48530072", "text": "public String getType() {\n return (String) entry.get(\"type\");\n}", "title": "" }, { "docid": "31b0573192c83fcbb2ab01c95b76fffa", "score": "0.48509842", "text": "public Object lookup() {\n return factory.lookup(this);\n }", "title": "" }, { "docid": "662d9d78e49ee719fa5a6248398da904", "score": "0.48209262", "text": "public int getAttributeType();", "title": "" }, { "docid": "d9f46d0c2f4ff60d38593d35a172dea9", "score": "0.48094434", "text": "public static CallSite getInstanceBootstrapAttribute(Lookup lookup,\tString name, MethodType type,Class<?> nameClass,String member) throws NoSuchFieldException, IllegalAccessException {\n\t\t//System.out.println(\"> > instance bootstrap attribute : lookup = \" + lookup\t+ \", name = \" + name + \", methodtype = \" + type);\n\t\tmh =Mhlookup.findGetter(nameClass, member, type.returnType());\n\t\treturn new ConstantCallSite(mh);\n\t}", "title": "" }, { "docid": "6908a90c52d2df2bd11c93fa99c6c2b1", "score": "0.47871897", "text": "int getFuLiType();", "title": "" }, { "docid": "6908a90c52d2df2bd11c93fa99c6c2b1", "score": "0.47871897", "text": "int getFuLiType();", "title": "" }, { "docid": "0e235df04e42086d08f031236c53ad3e", "score": "0.4786619", "text": "public Resistance getResistanceType()\n\t{\n\t\treturn Resistance.type(firstVal);\n\t}", "title": "" }, { "docid": "4a7e570ca1f0b1b2d8587ccf26aea57c", "score": "0.477611", "text": "int getDtypeValue();", "title": "" }, { "docid": "a0fe26b97134af5b71821a0d6722de05", "score": "0.4765097", "text": "DBSDataType getDataType(String typeName);", "title": "" }, { "docid": "b02b124753047a2bf8ebbef85eb6818e", "score": "0.47574428", "text": "public static String getNativeTypeAlias(String typeName) {\r\n\t\t// look in alias\r\n\t\treturn s_classToAliasMap.get(typeName);\r\n\t}", "title": "" }, { "docid": "d4586f78543c19bad7a30daa2b6fa8db", "score": "0.47442654", "text": "public String getrightTypeValue() {\n return (String)getNamedWhereClauseParam(\"rightTypeValue\");\n }", "title": "" }, { "docid": "e89d2390e9618f39fdeda545cc024fd7", "score": "0.47393095", "text": "public int getType() {\n return getInt(\"type\");\n }", "title": "" }, { "docid": "3c697d62570a87eeba7e1a948f1564c9", "score": "0.47370604", "text": "public Type getFetchedType();", "title": "" }, { "docid": "282941c6e429219c93d920f03a60b69f", "score": "0.47336966", "text": "public <T> T lookup(String name, Class<T> requiredType)\r\n/* 104: */ throws NamingException\r\n/* 105: */ {\r\n/* 106:178 */ Object jndiObject = lookup(name);\r\n/* 107:179 */ if ((requiredType != null) && (!requiredType.isInstance(jndiObject))) {\r\n/* 108:180 */ throw new TypeMismatchNamingException(\r\n/* 109:181 */ name, requiredType, jndiObject != null ? jndiObject.getClass() : null);\r\n/* 110: */ }\r\n/* 111:183 */ return jndiObject;\r\n/* 112: */ }", "title": "" }, { "docid": "f7fe98b653f6d2c392ab5f402e45d035", "score": "0.47333854", "text": "@NotNull\n\tGenericAttributeValue<String> getJdbcType();", "title": "" }, { "docid": "59797552c414688e15d24068510c4fa1", "score": "0.4730228", "text": "String getExtendedAliasProperty();", "title": "" }, { "docid": "a6de794d2e4d8c2118e8e540409625c3", "score": "0.47036213", "text": "int getTvTypeValue();", "title": "" }, { "docid": "f6e8164bc4cc0a5cc5626c37c7bf028f", "score": "0.4698315", "text": "int getEngagingTypeValue();", "title": "" }, { "docid": "f6e8164bc4cc0a5cc5626c37c7bf028f", "score": "0.4698315", "text": "int getEngagingTypeValue();", "title": "" }, { "docid": "f6e8164bc4cc0a5cc5626c37c7bf028f", "score": "0.4698315", "text": "int getEngagingTypeValue();", "title": "" }, { "docid": "ec7ceca5ba4e98cdb367b87a2aea4283", "score": "0.4689533", "text": "public Class<?> lookupClass() {\n\t\t\treturn accessClass;\n\t\t}", "title": "" }, { "docid": "0db6b51d322ed2bab1834eaa3f745af0", "score": "0.4675455", "text": "public NameAndTypeConstant getNameAndType() {\n return (NameAndTypeConstant) getConstant(_nameAndTypeIndex);\n }", "title": "" }, { "docid": "53445d1535bd2cf059b06edbe650956b", "score": "0.4673838", "text": "Type getType(Uid uid);", "title": "" }, { "docid": "2ab3c3d259e72849ad9a3aae17607bbd", "score": "0.46736243", "text": "public static final BaseObject obtainLookup(final BaseObject attributes) {\n\n\t\tassert attributes != null : \"NULL java value\";\n\t\tfinal BaseObject lookupObject = attributes.baseGet(\"lookup\", BaseObject.UNDEFINED);\n\t\tassert lookupObject != null : \"NULL java value\";\n\t\tif (lookupObject != BaseObject.UNDEFINED) {\n\t\t\tif (lookupObject instanceof BaseHostLookup) {\n\t\t\t\treturn lookupObject;\n\t\t\t}\n\t\t\tif (lookupObject.baseIsPrimitive()) {\n\t\t\t\tfinal String lookupID = lookupObject.baseToJavaString();\n\t\t\t\tfinal BaseHostLookup lookup = Produce.object(BaseHostLookup.class, lookupID, attributes, lookupObject);\n\t\t\t\tif (lookup != null) {\n\t\t\t\t\treturn lookup;\n\t\t\t\t}\n\t\t\t\tthrow new IllegalArgumentException(\"Lookup \" + lookupID + \" is not accessible!\");\n\t\t\t}\n\t\t\t{\n\t\t\t\t// return Context.getServer().getLookups().baseGet( lookupID );\n\t\t\t\tfinal BaseHostLookup lookup = Produce.object(BaseHostLookup.class, \"LOOKUP\", attributes, lookupObject);\n\t\t\t\tif (lookup != null) {\n\t\t\t\t\treturn lookup;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthrow new IllegalArgumentException(\"Lookup is not accessible!\");\n\t\t}\n\t\tfinal String staticDefinition = Base.getString(attributes, \"static\", null);\n\t\tif (staticDefinition != null) {\n\t\t\treturn new ControlLookupStatic(staticDefinition, Base.getString(attributes, \"staticED\", \"|\"), Base.getString(attributes, \"staticFD\", \",\"));\n\t\t}\n\t\tfinal String dynamicDefinition = Base.getString(attributes, \"dynamic\", null);\n\t\tif (dynamicDefinition == null) {\n\t\t\tthrow new IllegalArgumentException(\"Lookup unavailable!\");\n\t\t}\n\t\treturn new ControlLookupDynamic(dynamicDefinition, Base.getString(attributes, \"staticED\", \"|\"), Base.getString(attributes, \"staticFD\", \",\"));\n\t}", "title": "" }, { "docid": "08daef1598a7152292ad3d98a56e27e5", "score": "0.46607253", "text": "public TTypeVariable<?> lookup(String paramString)\n/* */ {\n/* 92 */ TTypeVariable[] arrayOfTypeVariable1 = getRecvr().getTypeParameters();\n/* 93 */ for (TTypeVariable localTypeVariable : arrayOfTypeVariable1) {\n/* 94 */ if (localTypeVariable.getName().equals(paramString)) return localTypeVariable;\n/* */ }\n/* 96 */ return getEnclosingScope().lookup(paramString);\n/* */ }", "title": "" }, { "docid": "445402820fcacb4f27d6874eb0e81856", "score": "0.46528783", "text": "public java.lang.String getType()\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(TYPE$2);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "3572609df3d055d3409af543163df211", "score": "0.46514472", "text": "@Pure\n\tprotected AttributeValue getStoredAttributeValue(String name, AttributeType expectedType) {\n\t\tObject val = this.heap.get(name);\n\t\tif (val != null) {\n\t\t\tfinal AttributeType currentType = AttributeType.fromValue(val);\n\t\t\tval = unprotectNull(val);\n\t\t\tfinal AttributeValue attr = new AttributeValueImpl(name);\n\t\t\tif (expectedType == null) {\n\t\t\t\tattr.castAndSet(currentType, val);\n\t\t\t} else {\n\t\t\t\tattr.castAndSet(expectedType, val);\n\t\t\t}\n\t\t\treturn attr;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0c49101fac9a1a804c568d8a083732b0", "score": "0.4644553", "text": "public String lookupTypeFromName(String aName) {\n\t\ttry {\n\t\t\tmFinished.acquire();\n\t\t} catch (InterruptedException e) {\n\t\t\tlog.error(\"Wait for getSchema interrupted\", e);\n\t\t\tthrow new RuntimeException(\"DarwinCoreSchema acquire interrupted\",\n\t\t\t\t\te);\n\t\t}\n\t\tString type = (String) mFieldNameToType.get(aName);\n\t\tif (type == null) {\n\t\t\treturn \"STRING\";\n\t\t}\n\t\treturn type;\n\t}", "title": "" }, { "docid": "d20008b7f5ad08655e181b1753373b28", "score": "0.46422738", "text": "public static Type fromString(String name){\n return lookup.get(name);\n }", "title": "" }, { "docid": "1c39ca1fdef36285d769e8298c0f711c", "score": "0.46341977", "text": "@Pure\n\tprotected Attribute getStoredAttribute(String name, AttributeType expectedType) {\n\t\tObject val = this.heap.get(name);\n\t\tif (val != null) {\n\t\t\tfinal AttributeType currentType = AttributeType.fromValue(val);\n\t\t\tval = unprotectNull(val);\n\t\t\tfinal Attribute attr = new AttributeImpl(name);\n\t\t\tif (expectedType == null) {\n\t\t\t\tattr.castAndSet(currentType, val);\n\t\t\t} else {\n\t\t\t\tattr.castAndSet(expectedType, val);\n\t\t\t}\n\t\t\treturn attr;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c2feec83f3b27486df695b1d37bc419a", "score": "0.46330866", "text": "@java.lang.Override\n public int getLocationTypeValue() {\n return locationType_;\n }", "title": "" }, { "docid": "abb76dab5dc154ec71e787d5258ffc08", "score": "0.4629941", "text": "public TypedValue themeTypeValue(int resid) {\r\n TypedValue typedValue = new TypedValue();\r\n getContext().getTheme().resolveAttribute(resid, typedValue, true);\r\n return typedValue;\r\n }", "title": "" }, { "docid": "78c02869ccf4c327cd3e095bc50ffcd0", "score": "0.4619427", "text": "int getContextTypeValue();", "title": "" }, { "docid": "41b1dd3aa679425426969fddb481f8b0", "score": "0.46101493", "text": "public static RepudiationType get(String literal){\r\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n\t\t\tRepudiationType result = VALUES_ARRAY[i];\r\n\t\t\tif (result.toString().equals(literal)) {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ec11d8fd8e08865b436b957b0d3c1ad4", "score": "0.46059617", "text": "public JRCalculable getHelperVariable(byte type)\n\t{\n\t\treturn helperVariables[type];\n\t}", "title": "" }, { "docid": "359a4d79830b0a73543c986cd5f4c003", "score": "0.46052694", "text": "public String getType() {\r\n return (String) getAttributeInternal(TYPE);\r\n }", "title": "" }, { "docid": "359a4d79830b0a73543c986cd5f4c003", "score": "0.46052694", "text": "public String getType() {\r\n return (String) getAttributeInternal(TYPE);\r\n }", "title": "" }, { "docid": "315ddeed03210d5e823e10cd4e149c95", "score": "0.4599661", "text": "TypeSpecifier getType();", "title": "" }, { "docid": "3801d778f564c85f06c120ad3bfa8c30", "score": "0.4596862", "text": "public Pair<String,Boolean> getAliasForSummary() {\n\t\tAnnotationNode aliasForAnnotation = getAliasForAnnotation();\n\t\tif (aliasForAnnotation != null) {\n\t\t\tList<Object> values = aliasForAnnotation.values;\n\t\t\tboolean namedAttribute = false;\n\t\t\tString targetAnnotationType = null;\n\t\t\tfor (int i=0;i<values.size();i+=2) {\n\t\t\t\tswitch ((String)values.get(i)) {\n\t\t\t\tcase \"value\":\n\t\t\t\tcase \"attribute\":\n\t\t\t\t\tnamedAttribute = true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"annotation\":\n\t\t\t\t\ttargetAnnotationType = ((org.objectweb.asm.Type)values.get(i+1)).getClassName();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn Pair.of(targetAnnotationType, namedAttribute);\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5d4c674acdafbe75328f98fd61cb265a", "score": "0.45901045", "text": "public AttributeType getType() {\n\t\treturn type;\n\t}", "title": "" }, { "docid": "f1779d0080da4b3b814c7e7c7bc882ea", "score": "0.45871833", "text": "public String getType() {\n\t\treturn displayname;\n\t}", "title": "" }, { "docid": "0600307b8d5228a5610622b851d98d16", "score": "0.45802197", "text": "public static String resolveAuthorityTypeShortcut(String shortcut) {\n if (shortcut == null)\n return null;\n String fullName = shortcuts.get(shortcut);\n return (fullName != null) ? fullName : shortcut;\n }", "title": "" }, { "docid": "1ebbcb93a728436e487d5c21cafc6d06", "score": "0.45787054", "text": "public <T> T getStoredNetworkAttribute(CyNetwork network,\n String attName,\n Class<T> type) {\n CyTable networkTable = network.getDefaultNetworkTable();\n // Make sure networkTable has the attName column\n if (networkTable.getColumn(attName) == null) {\n return null;\n }\n CyRow row = networkTable.getRow(network.getSUID());\n return row.get(attName, type);\n }", "title": "" } ]
31c1f9c2e8995ff4f6f83cdd903a6efc
Generated method Getter of the StoreEmployeeGroup.store attribute.
[ { "docid": "43329e246e773a66ca4fd50b392bc581", "score": "0.5076131", "text": "public PointOfService getStore(final SessionContext ctx)\n\t{\n\t\treturn (PointOfService)getProperty( ctx, STORE);\n\t}", "title": "" } ]
[ { "docid": "48dbf70abf62b9df80df0e030bd6340a", "score": "0.7051653", "text": "public String getStore() {\r\n return store;\r\n }", "title": "" }, { "docid": "815582df800bf9621142caf81e0f20f6", "score": "0.70273304", "text": "public String getStore() {\n return store;\n }", "title": "" }, { "docid": "27ddbf754417d0553dab337014fa6b0b", "score": "0.6943713", "text": "public Store getStore() {\r\n\t\treturn store;\r\n\t}", "title": "" }, { "docid": "c439ad13402747c0bba3e6e2207a1df8", "score": "0.6759198", "text": "public Store getStore()\n {\n return store;\n }", "title": "" }, { "docid": "f79f4bff64af8cf50b48a115e07a6d94", "score": "0.66776717", "text": "public Long getStoreId() {\r\n return storeId;\r\n }", "title": "" }, { "docid": "f77226093ac9625de968b58669bc4968", "score": "0.6666149", "text": "public Long getStoreId() {\n return storeId;\n }", "title": "" }, { "docid": "071467bfd624b28351f8aba8aeaf3376", "score": "0.6634016", "text": "public String getStoreId() {\n return storeId;\n }", "title": "" }, { "docid": "609cf8d1c637d44ef7370d8a539c62c7", "score": "0.66315114", "text": "public int getstoreId() {\r\n return storeId;\r\n }", "title": "" }, { "docid": "933ba3a01748a9089fd01f9a1a50e3e6", "score": "0.65959656", "text": "public String getStoreName() {\n return storeName;\n }", "title": "" }, { "docid": "9dfb6738891371e0efa27333a60a8972", "score": "0.65915513", "text": "public Long getStoreId() {\n return storeId;\n }", "title": "" }, { "docid": "baf49f5781181fb8a8132b9b9989d8d4", "score": "0.65808946", "text": "public ListStore<M> getStore() {\n return store;\n }", "title": "" }, { "docid": "df8e3e42f10489312cb7fca2feb3acd2", "score": "0.64548814", "text": "public static Store getStore() {\n\t\treturn store;\n\t}", "title": "" }, { "docid": "a4a24192b3e9c910283dc7d575a56ec5", "score": "0.64245766", "text": "public int getStoreLevel() {\n\t\treturn storeLevel;\n\t}", "title": "" }, { "docid": "8d583d9ef3f88f6c881294888c97028a", "score": "0.6409566", "text": "public long getStoreID() {\n\t\treturn storeID;\n\t}", "title": "" }, { "docid": "6cb044775c20f539cc015b2e395095f1", "score": "0.63530856", "text": "StoreDTO getStore() {\n return store;\n }", "title": "" }, { "docid": "eb11113613600c783e3e7c2cd6d2a86f", "score": "0.63306296", "text": "public String getStoreName() {\n\t\treturn storeName;\n\t}", "title": "" }, { "docid": "c49c70837e0f84ca4e669a2b92714221", "score": "0.6305508", "text": "public BigDecimal getStoreId() {\n return (BigDecimal) getAttributeInternal(STOREID);\n }", "title": "" }, { "docid": "156930031e09de6efa8815c074fb091a", "score": "0.6296174", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreChunkOrBuilder getStoreChunkOrBuilder() {\n return getStoreChunk();\n }", "title": "" }, { "docid": "332ac95a063fafc15b05bd95edb1fbe8", "score": "0.6293813", "text": "public double getStore()\n {\n return store;\n }", "title": "" }, { "docid": "ce83a7c5e524678319db6bf4cec158b5", "score": "0.628663", "text": "public StorePath store() {\n if (_store == null)\n _store = new StorePath(this, Keys.INVENTORY__INVENTORY_STORE_ID_FKEY, null);\n\n return _store;\n }", "title": "" }, { "docid": "e7ac6abac82cce9c0ccc611a3cbe1c74", "score": "0.6225276", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreChunk getStoreChunk() {\n if (storeChunkBuilder_ == null) {\n if (msgCase_ == 1) {\n return (edu.usfca.cs.dfs.messages.Messages.StoreChunk) msg_;\n }\n return edu.usfca.cs.dfs.messages.Messages.StoreChunk.getDefaultInstance();\n } else {\n if (msgCase_ == 1) {\n return storeChunkBuilder_.getMessage();\n }\n return edu.usfca.cs.dfs.messages.Messages.StoreChunk.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "3a4d2a95152df27f34ac802c6085bcf6", "score": "0.6196757", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreChunkOrBuilder getStoreChunkOrBuilder() {\n if ((msgCase_ == 1) && (storeChunkBuilder_ != null)) {\n return storeChunkBuilder_.getMessageOrBuilder();\n } else {\n if (msgCase_ == 1) {\n return (edu.usfca.cs.dfs.messages.Messages.StoreChunk) msg_;\n }\n return edu.usfca.cs.dfs.messages.Messages.StoreChunk.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "0d3f4a79be8ec697e0f70a93733d01b0", "score": "0.6171553", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreChunk getStoreChunk() {\n return storeChunk_ == null ? edu.usfca.cs.dfs.messages.Messages.StoreChunk.getDefaultInstance() : storeChunk_;\n }", "title": "" }, { "docid": "d1bea101a5762bc4f4a346745ad06bae", "score": "0.6144742", "text": "public String storePath()\n {\n return _storePath;\n }", "title": "" }, { "docid": "5d31fedb73cb8773c474a7a7c604b468", "score": "0.6109978", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreChunk getStoreChunk() {\n if (msgCase_ == 1) {\n return (edu.usfca.cs.dfs.messages.Messages.StoreChunk) msg_;\n }\n return edu.usfca.cs.dfs.messages.Messages.StoreChunk.getDefaultInstance();\n }", "title": "" }, { "docid": "ccd979205c008e15e80d70ec7282997f", "score": "0.60461986", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreChunk getStoreChunk() {\n if (storeChunkBuilder_ == null) {\n return storeChunk_ == null ? edu.usfca.cs.dfs.messages.Messages.StoreChunk.getDefaultInstance() : storeChunk_;\n } else {\n return storeChunkBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "e20eda743b39bdd96a1c6c1c11c4fa27", "score": "0.6032049", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreChunkOrBuilder getStoreChunkOrBuilder() {\n if (storeChunkBuilder_ != null) {\n return storeChunkBuilder_.getMessageOrBuilder();\n } else {\n return storeChunk_ == null ?\n edu.usfca.cs.dfs.messages.Messages.StoreChunk.getDefaultInstance() : storeChunk_;\n }\n }", "title": "" }, { "docid": "3b16303dc880ba163c519f258e197b7e", "score": "0.60079515", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreChunkOrBuilder getStoreChunkOrBuilder() {\n if (msgCase_ == 1) {\n return (edu.usfca.cs.dfs.messages.Messages.StoreChunk) msg_;\n }\n return edu.usfca.cs.dfs.messages.Messages.StoreChunk.getDefaultInstance();\n }", "title": "" }, { "docid": "0f0dc41891d01d673247aa40fea525fa", "score": "0.5961206", "text": "public Set<Store> getStores() {\n return stores;\n }", "title": "" }, { "docid": "66d3e3b7973cb3fc92e5a9e3ef7d4db2", "score": "0.5928885", "text": "public int getStoreDescriptors()\n {\n return store;\n }", "title": "" }, { "docid": "519533a91723251fcf72bbf9016065d0", "score": "0.59215766", "text": "public StoreLocation[] getStoreLocation() {\r\n\t\treturn storeLocation;\r\n\t}", "title": "" }, { "docid": "962b74128b1e50c463a2a2cb7eadd65f", "score": "0.5899434", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreProofOrBuilder getStoreProofOrBuilder() {\n if ((msgCase_ == 4) && (storeProofBuilder_ != null)) {\n return storeProofBuilder_.getMessageOrBuilder();\n } else {\n if (msgCase_ == 4) {\n return (edu.usfca.cs.dfs.messages.Messages.StoreProof) msg_;\n }\n return edu.usfca.cs.dfs.messages.Messages.StoreProof.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "c646ffad26c047f80224e317b7a60d93", "score": "0.58247393", "text": "public CacheStoreType getCacheStoreType()\r\n {\r\n return myStoreType;\r\n }", "title": "" }, { "docid": "d462748e93c6d0618f25e92ec55a2bcf", "score": "0.58167857", "text": "public String getStoreSales() {\n\t\treturn storeSales;\n\t}", "title": "" }, { "docid": "2d78a1677533d775e786f8df80821683", "score": "0.5812262", "text": "public String getStoreCode() { \n return (String)getAttributeInternal(STORECODE);\n }", "title": "" }, { "docid": "38363cee59d16bc29cbef0299d188b29", "score": "0.58091784", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreProof getStoreProof() {\n if (storeProofBuilder_ == null) {\n if (msgCase_ == 4) {\n return (edu.usfca.cs.dfs.messages.Messages.StoreProof) msg_;\n }\n return edu.usfca.cs.dfs.messages.Messages.StoreProof.getDefaultInstance();\n } else {\n if (msgCase_ == 4) {\n return storeProofBuilder_.getMessage();\n }\n return edu.usfca.cs.dfs.messages.Messages.StoreProof.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "42b1ece7faef2c515c68371fdff9123e", "score": "0.58014387", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreProofOrBuilder getStoreProofOrBuilder() {\n if (msgCase_ == 4) {\n return (edu.usfca.cs.dfs.messages.Messages.StoreProof) msg_;\n }\n return edu.usfca.cs.dfs.messages.Messages.StoreProof.getDefaultInstance();\n }", "title": "" }, { "docid": "405b39fa676b0638d26a23a1f68a5487", "score": "0.57798266", "text": "public PointOfService getStore()\n\t{\n\t\treturn getStore( getSession().getSessionContext() );\n\t}", "title": "" }, { "docid": "076069fa1ac021e6bb0b00a86b79e6d0", "score": "0.5772073", "text": "Store getUnderlyingStore();", "title": "" }, { "docid": "041d3955d2f1935308c0d10b0f9619dd", "score": "0.5759227", "text": "@ApiModelProperty(value = \"Store IDs the user has access to (if HasAccessToAllStores is false)\")\n public List<Integer> getStoreIds() {\n return storeIds;\n }", "title": "" }, { "docid": "7efab6274a369ff8fef206d2e4f6c6e6", "score": "0.5749137", "text": "public List<StoreInfo> getStoreinfo() {\n\t\treturn mStoreInfo;\n\t}", "title": "" }, { "docid": "f5b243aa39118effda20606d751f35d2", "score": "0.5737402", "text": "public int group()\n\t{\n\t\treturn Loggable.RAWSTORE;\n\t}", "title": "" }, { "docid": "c3b6c30f545381a5c6b5f6d30ab62780", "score": "0.57012385", "text": "public GroupPersistence getGroupPersistence() {\n\t\treturn groupPersistence;\n\t}", "title": "" }, { "docid": "14e332134233ac339cf32173824a5dbd", "score": "0.5677795", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreProof getStoreProof() {\n if (msgCase_ == 4) {\n return (edu.usfca.cs.dfs.messages.Messages.StoreProof) msg_;\n }\n return edu.usfca.cs.dfs.messages.Messages.StoreProof.getDefaultInstance();\n }", "title": "" }, { "docid": "cb7015c14bb6be169452c5df40f48298", "score": "0.56615525", "text": "public RecordStore getRecordStore() {\r\n\t\treturn this.recordStore;\r\n\t}", "title": "" }, { "docid": "8135c9ed11433c583936ff37a3a667fa", "score": "0.56502205", "text": "public boolean isStore() {\n if (store == null) {\n return false;\n } else {\n return store;\n }\n }", "title": "" }, { "docid": "6168edce7aa669ae055355d532f460a3", "score": "0.56092036", "text": "@Override\r\n\t@SuppressWarnings(\"unchecked\")\r\n\tpublic Collection<Store> getStores() {\n\t\treturn sf.openSession().createQuery(\"select distinct e from StoreDomain e\").list();\r\n\t}", "title": "" }, { "docid": "fa745fdb5f257ab4a4e0d8dd73cd0eb2", "score": "0.55986327", "text": "public String x509StoreName() {\n return this.x509StoreName;\n }", "title": "" }, { "docid": "420c91d39e4a8c726cde922c767e96d5", "score": "0.55974656", "text": "public String getStoreUnits() {\n\t\treturn storeUnits;\n\t}", "title": "" }, { "docid": "5363ad9eba24839bf3bf947a6d55dabc", "score": "0.5590889", "text": "@Override\n public String toString()\n {\n return \"StoreFactory{\" + \"store=\" + store + '}';\n }", "title": "" }, { "docid": "f72624efe035838099f1b1506df2a626", "score": "0.5565315", "text": "public static Store getInstance(){\n return store;\n }", "title": "" }, { "docid": "8b3a3edf6937d1737cb97540e3f8aca9", "score": "0.55629265", "text": "@Override\r\n public Store getStore(String storeId) throws DaoException {\n throw new DaoException(\"Unsupported operation\");\r\n }", "title": "" }, { "docid": "b09a7f473785b24867f30e59582d55df", "score": "0.55423725", "text": "public StoreGroupRecord() {\n super(StoreGroup.STORE_GROUP);\n }", "title": "" }, { "docid": "80c32532dd686a5c3e19ffcc00fd3183", "score": "0.55047154", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreChunk.Builder getStoreChunkBuilder() {\n return getStoreChunkFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "f245a9121cf6144479e8a28cc820ba42", "score": "0.55014455", "text": "public String getStoreAdCode() {\n return storeAdCode;\n }", "title": "" }, { "docid": "21efed46785ba01bf6724522ff1d6396", "score": "0.5501343", "text": "synchronized ResourceStore getStore() {\n\tif ( store == null ) {\n\t store = new ResourceStoreImpl() ;\n\t store.initialize(manager, this, getRepository(), \n\t\t\t manager.serializer) ;\n\t manager.incrLoadedStore();\n\t}\n\treturn store;\n }", "title": "" }, { "docid": "3d83b93afa5fcbc17275dfda51a74914", "score": "0.5476418", "text": "public int getTargetStorey() {\n return targetStorey;\n }", "title": "" }, { "docid": "2b6177c855df2dcec7c67663f6a13549", "score": "0.54305494", "text": "@JsonGetter(\"store_name\")\n public String getStoreName ( ) { \n return this.storeName;\n }", "title": "" }, { "docid": "e41e41aed134d5088349a02762601f15", "score": "0.5426231", "text": "public String getStoreSelType() {\n return (String) getAttributeInternal(STORESELTYPE);\n }", "title": "" }, { "docid": "bb401843008ae8fe189c8986070c84da", "score": "0.5420843", "text": "public interface Store extends Environment<Location, Expression>{\n //\n // Constants\n //\n \n /**\n * Default empty store instance.\n */\n public static final MutableStore EMPTY_STORE = new MutableStore();\n \n \n\n //\n // Store queries\n //\n \n /**\n * Returns <code>true</code> if this store contains the\n * specified <code>location</code>.\n * \n * @param location the {@link Location} to look for.\n * \n * @return <code>true</code> if <code>location</code> is\n * valid within this store.\n * \n * @throws NullPointerException if the given <code>location</code>\n * is <code>null</code>.\n * \n * @see #get(Location) \n */\n public boolean containsLocation(Location location);\n \n /**\n * Returns an enumeration of the {@link Location}s within this\n * store, in the reverse order of the allocation.\n * \n * @return an enumeration of the {@link Locations}s.\n * \n * @see #get(Location)\n */\n public Enumeration<Location> locations();\n}", "title": "" }, { "docid": "0cca6337848f5d68c66505471a6636f6", "score": "0.54124886", "text": "public LiveData<List<ApiStoreModel>> getStores() {\n return mStores;\n }", "title": "" }, { "docid": "8380c5034275c961aaf039247efc4913", "score": "0.54053265", "text": "public AVMStoreDescriptor getSystemStore()\n {\n AVMStoreDescriptor store = getStore(SYSTEM);\n if (store == null)\n {\n createStore(SYSTEM);\n return getStore(SYSTEM);\n }\n return store;\n }", "title": "" }, { "docid": "f79f035c8b799848c82f7e870444bea6", "score": "0.5403196", "text": "public List<AVMStoreDescriptor> getStores()\n {\n return fAVMRepository.getAVMStores();\n }", "title": "" }, { "docid": "c1bbef3659c469ca1e5ddd4aec4e14ae", "score": "0.540312", "text": "@Override\n\tpublic C2IEcStore getStoreDetails() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4efcdc8a7a37a747b4160e1e9a1675fa", "score": "0.5397398", "text": "@SuppressWarnings(\"unused\")\n public KeyStore getKeyStore()\n {\n return this.keyStore;\n }", "title": "" }, { "docid": "47894965004f964d3994eea4f27250e7", "score": "0.5396553", "text": "public void setStoreLevel(int storeLevel) {\n\t\tthis.storeLevel = storeLevel;\n\t}", "title": "" }, { "docid": "6845fe48f6e3eec5f555753989a1bf10", "score": "0.538716", "text": "@Override\r\n\tpublic DBStore getDBStore() throws Exception {\n\t\treturn (DBStore) map.get(\"dbstore\");\r\n\t}", "title": "" }, { "docid": "801665e2378f6255c77bb6a400eea280", "score": "0.5374508", "text": "boolean isStoreSupported();", "title": "" }, { "docid": "8bcf60b5aa72ec6c19046e8ef3b2284e", "score": "0.5366177", "text": "edu.usfca.cs.dfs.messages.Messages.StoreChunkOrBuilder getStoreChunkOrBuilder();", "title": "" }, { "docid": "8bcf60b5aa72ec6c19046e8ef3b2284e", "score": "0.5366177", "text": "edu.usfca.cs.dfs.messages.Messages.StoreChunkOrBuilder getStoreChunkOrBuilder();", "title": "" }, { "docid": "e7a7cc0f2c15445e94867a4c6c50faea", "score": "0.53545016", "text": "private static Store getStore(ExtensionContext context) {\n\t\treturn context.getStore(NAMESPACE);\n\t}", "title": "" }, { "docid": "a6a7022636b901cf961e9f6b7f1f0754", "score": "0.535047", "text": "public List<StoreRef> getStores()\r\n {\r\n if (stores == null)\r\n {\r\n stores = getNodeService().getStores();\r\n }\r\n return stores;\r\n }", "title": "" }, { "docid": "27594cbc51a03b4fbbf2e5476a9b4d32", "score": "0.53470737", "text": "public boolean getStore() {\n\t\treturn isOpen;\n\n\t}", "title": "" }, { "docid": "c5ac9984b5303e6dd2647983abfb8444", "score": "0.5331469", "text": "public DataStore get_DataStore();", "title": "" }, { "docid": "1d00bfe94686faeaf00b237161e7c0d5", "score": "0.5315381", "text": "public PropertyValue getStoreProperty(String store, QName name)\n {\n if (store == null || name == null)\n {\n throw new AVMBadArgumentException(\"Illegal null argument.\");\n }\n return fAVMRepository.getStoreProperty(store, name);\n }", "title": "" }, { "docid": "0536042ed201c5a8cdc2224557d38dba", "score": "0.5310809", "text": "public ServiceStore getServiceStore() {\n return serviceStore;\n }", "title": "" }, { "docid": "71172fbf160dde9f8c5674257870ceff", "score": "0.53107435", "text": "public String getHumanResourcesSystemStoreNumber()\n\t{\n\t\treturn mHumanResourcesSystemStoreNumber;\n\t}", "title": "" }, { "docid": "97c571f81606e5e2cf98482ac63fcbfe", "score": "0.5297399", "text": "public void setStoreDescriptors(int _store)\n {\n store = _store;\n }", "title": "" }, { "docid": "32d834b7996c1c192996e7d635513aa9", "score": "0.52796066", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreProof.Builder getStoreProofBuilder() {\n return getStoreProofFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "285f73ec6deca7ab5daa81062b60b2ad", "score": "0.5279515", "text": "@Override\n\tpublic StoreVO getStoreInfo(String store_code) {\n\t\treturn orderDAOMybatis.getStoreInfo(store_code);\n\t}", "title": "" }, { "docid": "0091809eb66835c513888a2e6040fa56", "score": "0.5274187", "text": "public edu.usfca.cs.dfs.messages.Messages.StorageNodeResponse getStoreNodeResponse() {\n if (storeNodeResponseBuilder_ == null) {\n if (msgCase_ == 2) {\n return (edu.usfca.cs.dfs.messages.Messages.StorageNodeResponse) msg_;\n }\n return edu.usfca.cs.dfs.messages.Messages.StorageNodeResponse.getDefaultInstance();\n } else {\n if (msgCase_ == 2) {\n return storeNodeResponseBuilder_.getMessage();\n }\n return edu.usfca.cs.dfs.messages.Messages.StorageNodeResponse.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "242577e3164c9057033ba76f53f87b70", "score": "0.52707845", "text": "public int getStore_product_no() {\n\t\treturn store_product_no;\n\t}", "title": "" }, { "docid": "39496d74c2109e472a6f27e97dc5a22f", "score": "0.5259743", "text": "public NPOIFSMiniStore getMiniStore() {\r\n return _mini_store;\r\n }", "title": "" }, { "docid": "d28a69bfe32aeddc27c6b7e7f524243a", "score": "0.5255743", "text": "public void setStoreName(String storeName) {\n this.storeName = storeName;\n }", "title": "" }, { "docid": "e9fe2022ed6a98e35b96178a831a562b", "score": "0.5245788", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Store [StoreId=\" + StoreId + \", Store_Address=\" + Store_Address + \", QuantityOfOrders=\"\n\t\t\t\t+ QuantityOfOrders + \"]\";\n\t}", "title": "" }, { "docid": "57a03b548a9aa75e82ad8bf3cc8f49cb", "score": "0.5225993", "text": "public edu.usfca.cs.dfs.messages.Messages.StorageNodeResponseOrBuilder getStoreNodeResponseOrBuilder() {\n if ((msgCase_ == 2) && (storeNodeResponseBuilder_ != null)) {\n return storeNodeResponseBuilder_.getMessageOrBuilder();\n } else {\n if (msgCase_ == 2) {\n return (edu.usfca.cs.dfs.messages.Messages.StorageNodeResponse) msg_;\n }\n return edu.usfca.cs.dfs.messages.Messages.StorageNodeResponse.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "450ca1a0a2928d11726f418d955092bf", "score": "0.52243006", "text": "public edu.usfca.cs.dfs.messages.Messages.StoreChunk.Builder getStoreChunkBuilder() {\n \n onChanged();\n return getStoreChunkFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "0a8a5362b7e3760a794d43721cc1d9db", "score": "0.52096295", "text": "edu.usfca.cs.dfs.messages.Messages.StoreChunk getStoreChunk();", "title": "" }, { "docid": "0a8a5362b7e3760a794d43721cc1d9db", "score": "0.52096295", "text": "edu.usfca.cs.dfs.messages.Messages.StoreChunk getStoreChunk();", "title": "" }, { "docid": "c45d3713eee552a59afb8c0643f97265", "score": "0.5196649", "text": "EntityHolder getStoreView();", "title": "" }, { "docid": "b2e96f1007a27f28327733e6b9fdaaa8", "score": "0.5175216", "text": "public MarketingEmployeeGenericEOImpl getSalesEmployeeExEO() {\r\n return (MarketingEmployeeGenericEOImpl)getEntity(ENTITY_SALESEMPLOYEEEXEO);\r\n }", "title": "" }, { "docid": "0ff22b6f39e54ed1f7d9e3674efcc686", "score": "0.5148023", "text": "@Override\r\n\tpublic void save(TSoStore store) {\n\r\n\t}", "title": "" }, { "docid": "bbcb4bf6c99b8a920f575404d7c9ce32", "score": "0.5138197", "text": "public EmployeePersistence getEmployeePersistence() {\n\t\treturn employeePersistence;\n\t}", "title": "" }, { "docid": "26a8e81561c4fbb8d27156b2e50d55db", "score": "0.5137734", "text": "public void setStoreId(Long storeId) {\r\n this.storeId = storeId;\r\n }", "title": "" }, { "docid": "2b382448c1bc0c8533765dcb89b8edc8", "score": "0.51263106", "text": "public ObjectStore getObjectStore() {\n return objectStore;\n }", "title": "" }, { "docid": "392d2f0a97e05796aa13dccbfbc1012c", "score": "0.5121607", "text": "java.lang.String getStoreUri();", "title": "" }, { "docid": "a5ee7f9cd763651437e8b0f3ca1d578f", "score": "0.5120922", "text": "public static BoxStore get() {\n return boxStore;\n }", "title": "" }, { "docid": "a852fc5fa9a79cefa534f7c55b2d61d8", "score": "0.5117427", "text": "public void setStoreId(String storeId) {\n this.storeId = storeId;\n }", "title": "" }, { "docid": "c15a753b8c8fd3e942b76a76670951c8", "score": "0.5095157", "text": "public String getStoreWhite() {\n return storeWhite;\n }", "title": "" }, { "docid": "6eac9a64a5cf1e5be6714ce989c97ec7", "score": "0.5072437", "text": "public void setStoreId(Long storeId) {\n this.storeId = storeId;\n }", "title": "" } ]
b687d39cbe9159dba12cdca21ee86967
/ / Constructors /
[ { "docid": "f6cfefab48d2ddfb04838e0ebf8cee72", "score": "0.0", "text": "public AnalyzerReport(AnalyzerCalc calc, AnalyzerParms parms)\n {\n // Catch problems early.\n if ((calc == null) || (parms == null))\n {\n String msg = \"Null argument received by AnalyzerReport constructor.\";\n LOG.error(msg);\n throw new IllegalArgumentException(msg);\n }\n \n this.calc = calc;\n this.parms = parms;\n }", "title": "" } ]
[ { "docid": "baa7a60bd2c741406a60939eeef15a48", "score": "0.74631715", "text": "private New() {\n\t}", "title": "" }, { "docid": "a4a8b7469ea9ee5b218cdc6e6d1bfc4b", "score": "0.71875674", "text": "public Es1_1_13(){}", "title": "" }, { "docid": "194c2a850c541caa34cbd2f082089f51", "score": "0.7068274", "text": "public Uitslag() {\n\t}", "title": "" }, { "docid": "f6c4b7ac9a41d321beafca5fb68410d7", "score": "0.6995108", "text": "public Libro(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bba45325b998f26174dcd328edda278c", "score": "0.6979722", "text": "public ColobotObject()\r\n {\r\n this(\"unknown\", 0.0, 0.0, 0.0);\r\n }", "title": "" }, { "docid": "3e5d8101593594d072339c706b9a6913", "score": "0.69700897", "text": "public Pessoa () {\n\t\t\n\t}", "title": "" }, { "docid": "c46514e05a889a4fadc7685de1a4092e", "score": "0.6919467", "text": "public TU() {\r\n }", "title": "" }, { "docid": "4f8bb938093145c0158ed8bebd9cf3eb", "score": "0.68871903", "text": "public Salle() {}", "title": "" }, { "docid": "12b6568f8400b0985d4239f785eabc96", "score": "0.6860518", "text": "public abstract java.lang.Object construct();", "title": "" }, { "docid": "5c63fcbc5ee0092ea31b74692fe2a41a", "score": "0.68595743", "text": "public OI() {\n\t}", "title": "" }, { "docid": "ffe04d8873de51e88480f1ba20b86fbf", "score": "0.68262064", "text": "public Red3A() {}", "title": "" }, { "docid": "d92d5fe4c6efcfe66d53457e76817518", "score": "0.68260133", "text": "@Override\r\n\t\t\tprotected void init() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "19ccd6fc5e0e19e1774b19faa3d877cb", "score": "0.6822804", "text": "public GnatAI() {\r\n\t}", "title": "" }, { "docid": "e0ed70b87942caf1d2055e99c6804a4e", "score": "0.682054", "text": "public CCFC01SO() \r\n {\r\n super();\r\n }", "title": "" }, { "docid": "708f47a81215165f3b135479d35ed0a4", "score": "0.68198985", "text": "public Techicksmember()\r\n\t{\r\n\t\r\n\t}", "title": "" }, { "docid": "d8a49ecf4cf7bfa999cd7a33825d7b1d", "score": "0.6818491", "text": "public Vinyl() {\n }", "title": "" }, { "docid": "fea6665673d62a9349ae35b0f6a410ea", "score": "0.68151087", "text": "public Allergenic() { super(); }", "title": "" }, { "docid": "72b91351996e4c08796eb63c94dce59d", "score": "0.6812142", "text": "public HSLA() {\n }", "title": "" }, { "docid": "c74be24127bd12984f50bd191aaff356", "score": "0.67906344", "text": "public Schwefel(){}", "title": "" }, { "docid": "1c2f2f95a3bf0bdecafd814372aecba7", "score": "0.6789274", "text": "public Pessoa() {\n\t\t\n\t}", "title": "" }, { "docid": "2c405b50adcf87d3676c6efcbf0ee011", "score": "0.6786621", "text": "@Implementation\n protected void __constructor__() {}", "title": "" }, { "docid": "479f364fb386d9f92ef4be9c5641e6b6", "score": "0.67854613", "text": "public Avertissemnt() {\r\n }", "title": "" }, { "docid": "d6d9a7f3c669e31d94db92c9165a2d67", "score": "0.6783731", "text": "public NRP() {\r\n\r\n\t}", "title": "" }, { "docid": "ca2de8226c9ae5cc0d25af97cde1626a", "score": "0.6772059", "text": "public CSG() {\n }", "title": "" }, { "docid": "efe7e5bc0ea24eeb427bd802c68d8684", "score": "0.6768322", "text": "public Parole() {\r\n\t}", "title": "" }, { "docid": "e497371c59aa81fa3ad0ebc63231cd07", "score": "0.6753844", "text": "public Zhuce() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "5073d706bbab70f33d48677a46f13da4", "score": "0.6741822", "text": "public IC() {\r\n\t\r\n\t}", "title": "" }, { "docid": "7604efc9497120b93a0571766eb660a4", "score": "0.67410725", "text": "public Rep() {\n }", "title": "" }, { "docid": "cedd79f5f82a9824db84b78ca061d0e9", "score": "0.6733253", "text": "public Pm4511() {\r\n\t}", "title": "" }, { "docid": "73ccc5fe3eb465d5a000a2b9866a8329", "score": "0.67159164", "text": "public PanArbre()\n\t{\n\t}", "title": "" }, { "docid": "94dc206b2450f46e55c743eb830d5fcd", "score": "0.6709593", "text": "private SwephData() { }", "title": "" }, { "docid": "6f5e60673200c3878211d85be01d8645", "score": "0.669754", "text": "public Ally() {\n }", "title": "" }, { "docid": "1398d1b2d1c85fc1a62d0d36e5acc27b", "score": "0.66833055", "text": "public Abastecer() { \n \n }", "title": "" }, { "docid": "44c057f2a74f56147fd6c86eba55987b", "score": "0.66763264", "text": "public Pasien() {\r\n\r\n }", "title": "" }, { "docid": "936ceab5475163fd79017a48106a06ea", "score": "0.66728866", "text": "public Schule() {}", "title": "" }, { "docid": "d43f47eabe82eef1349136ae7c6019f8", "score": "0.6669839", "text": "public Parcours() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "19bd80e874821202dacb49672a44688f", "score": "0.6668932", "text": "Node()\n {\n\n }", "title": "" }, { "docid": "52f7340a868cc7be4a6d4e1d9f9a2455", "score": "0.6665877", "text": "public AGzk() {\n super();\n }", "title": "" }, { "docid": "9290cd4ed868a30da1b5a574d65ead90", "score": "0.6664225", "text": "public Leer() {\n }", "title": "" }, { "docid": "055998338327a83fe8a3d75e05ceb3ce", "score": "0.66636014", "text": "public Cooling() {\n }", "title": "" }, { "docid": "6597ed801188871069efea0704b6909a", "score": "0.6657826", "text": "public Cita () {\r\n\r\n }", "title": "" }, { "docid": "d1c0caa467a1d8637468f1503b6206db", "score": "0.66505504", "text": "public FIBEXDocument2_0_1()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "c51bf1416df901101812b289b63c7936", "score": "0.6643599", "text": "public MasterMind() {\r\n\r\n }", "title": "" }, { "docid": "cafd31a424463dde8b09c5b8a2e63ef3", "score": "0.6643558", "text": "private General () {}", "title": "" }, { "docid": "15f13ed41d301e15e9fa20bfa4aac014", "score": "0.66420346", "text": "public ot1() {}", "title": "" }, { "docid": "e25a3900f7fb8e661190e55f257f9e7f", "score": "0.66407037", "text": "public Parameters()\r\n\t{\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "8f7046db65dbe9b097c38fdc80e0eab9", "score": "0.66382945", "text": "public Pessoa() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bb931ef1302969527a696a3a3f413fa0", "score": "0.66195476", "text": "public Carrello(){\n \n }", "title": "" }, { "docid": "e49d69a0ca9087712b97fd53aff8681f", "score": "0.66164726", "text": "protected GeometricObject() {\n dateCreated = new java.util.Date();\n }", "title": "" }, { "docid": "d26dd3168dbec875358f8db1e8a5a0ab", "score": "0.66154057", "text": "protected ST() {\n\t}", "title": "" }, { "docid": "ec6a1e84daa778ba3149393b8e167f7f", "score": "0.66135544", "text": "public LCHelp()\r\n\t{\r\n\t}", "title": "" }, { "docid": "53719b45669d4a1f336a1aae746b3066", "score": "0.66108954", "text": "public Tremor()\n {\n }", "title": "" }, { "docid": "69a84a83306c22b814fbefcb970c2e71", "score": "0.66068554", "text": "public NLST()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "833a85f017fd3de82ae9ed87c9aac87b", "score": "0.6606121", "text": "public DCD() {\r\n\t}", "title": "" }, { "docid": "b40bd614e22470315fe9821ea54d6243", "score": "0.6602927", "text": "public Obj() {\n }", "title": "" }, { "docid": "b40bd614e22470315fe9821ea54d6243", "score": "0.6602927", "text": "public Obj() {\n }", "title": "" }, { "docid": "fa75938ffe341dbffc0a6af2ef382183", "score": "0.65993315", "text": "public Ingreso() {\r\n\t}", "title": "" }, { "docid": "b3f41a1dffc4726f80c3f29ee42b95a9", "score": "0.6597863", "text": "public CelestialSystem() {\n\n }", "title": "" }, { "docid": "6949cc2e1b57e647185f75c8225bae59", "score": "0.65922517", "text": "public Polaznik() {\n }", "title": "" }, { "docid": "5ef8685a209d494e2fd02893efc8f684", "score": "0.6583425", "text": "private PC()//default constructor is empty\r\n\t{\r\n\t}", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.6573489", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.6573489", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "f350fb57d7c81ec6d70f2643960940a8", "score": "0.6573415", "text": "@Override \r\n public void init() {\n \r\n }", "title": "" }, { "docid": "3d998c578d3860a6dad1a3cc8e698c2e", "score": "0.65679735", "text": "private Experiment() \r\n/*****************************************************************************************************/\r\n{\tsuper();\r\n}", "title": "" }, { "docid": "c58a6a5226387def2a211f0ca14f3510", "score": "0.6567053", "text": "public CasaQuad() {}", "title": "" }, { "docid": "fe59538fa4b8dce0a50a4114c8b622f3", "score": "0.6565355", "text": "public AllOne() {\r\n \r\n }", "title": "" }, { "docid": "56f6c4b0e4ef02b391d533eb2193ee02", "score": "0.65651125", "text": "private Rosenbrock2DExampleSmp() { }", "title": "" }, { "docid": "a7ada994943f62a4589674e89199475b", "score": "0.656054", "text": "@Override\n public void init() {}", "title": "" }, { "docid": "99942d0aa1b8a44f57f7ae49994ddfe5", "score": "0.6551184", "text": "public Carro() { }", "title": "" }, { "docid": "ce30ab54dc49f190ba289788f3a2d7f0", "score": "0.65395015", "text": "public Roadster() {\n }", "title": "" }, { "docid": "aee296a233e657c14178b20927d6eb7d", "score": "0.6539066", "text": "public FicheroWRL() {\n }", "title": "" }, { "docid": "661e2c8cc82231c4bc42a79bc507fca9", "score": "0.65376306", "text": "public RBM() {\n\t}", "title": "" }, { "docid": "668996c009120e5fb8c42c53aa3e20af", "score": "0.65365714", "text": "public AGAI() {\n \t\tSystem.out.println(\"Default Constructor\");\n \t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6536304", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6536304", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "f9519b9dd7023fb9328c2c954f2afae7", "score": "0.65281516", "text": "public Parrot() {\n\t\t\n\t}", "title": "" }, { "docid": "c7f6aba78232de824153eb7dd555b81e", "score": "0.65268546", "text": "public Mlu() {}", "title": "" }, { "docid": "bfb65b708ab42c64c36f4b1045320060", "score": "0.65267646", "text": "public Self() {\n }", "title": "" }, { "docid": "e772e6532e04ef02ab9bb466eddd967e", "score": "0.6522035", "text": "public Southwest() {\n }", "title": "" }, { "docid": "e0481f41ec173cdaa7d3ece9c760677e", "score": "0.6520436", "text": "public no208() {\n\n }", "title": "" }, { "docid": "01ee6057a0739b801ec4025106b45180", "score": "0.6517938", "text": "private SitcTools()\n {\n\n }", "title": "" }, { "docid": "71e6a97840e12dc9907cb36e6fe0d5a5", "score": "0.65128493", "text": "private CLDR() {\n }", "title": "" }, { "docid": "1135bb5ce37f99b0e08edf40be123fd3", "score": "0.6512686", "text": "public Drivelane() { }", "title": "" }, { "docid": "3b9b05b456343a3ea653aad6240aeb19", "score": "0.6512619", "text": "public AFxgzp() {\n super();\n }", "title": "" }, { "docid": "edf377f03250c28c266b873c577d54a5", "score": "0.6510223", "text": "private VyhozeniVyjimky() {}", "title": "" }, { "docid": "0f4f34ceb1a4ccc78119e9a02967bb40", "score": "0.6507503", "text": "protected PAF() { }", "title": "" }, { "docid": "ebd62f87234aa2cfa78cafe91056e30c", "score": "0.6506916", "text": "public GT_Packet_Ores()\r\n/* 20: */ {\r\n/* 21:17 */ super(true);\r\n/* 22: */ }", "title": "" }, { "docid": "148c8a83fb7d4b45328b401345a2a758", "score": "0.65069133", "text": "public Jed(){\r\n }", "title": "" }, { "docid": "a8dfde2a0e5898effaba841af4db1da6", "score": "0.65067476", "text": "public Algoritmo() {\n\n\t}", "title": "" }, { "docid": "d50fa11937ec6e2955dd42dfbca9b26d", "score": "0.6505552", "text": "public MorganAero8() {\n super();\n }", "title": "" }, { "docid": "ecd4c642a83560c7051fdcad93166e49", "score": "0.6504347", "text": "public Data() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "title": "" }, { "docid": "94fa287191751a4145441b05f3db6617", "score": "0.6504041", "text": "protected Elective(){}", "title": "" }, { "docid": "879c1956b06fcfe916a8730457862166", "score": "0.6500387", "text": "public Happy() {\n }", "title": "" }, { "docid": "e162d53284c0a00c12731920e26a52b0", "score": "0.6497132", "text": "public Linked_List() {}", "title": "" }, { "docid": "2079b5e5bbef0ed81558ffac9457728c", "score": "0.64949465", "text": "public Node()\r\n\t\t{\r\n\t\t\t// TODO \r\n\t\t}", "title": "" }, { "docid": "d40055aae5526a92c76c8d6fbea3d4e9", "score": "0.6490229", "text": "private Definition()\n\t{\n\t}", "title": "" }, { "docid": "4293f2afeda42889f0ef396d1189c5d5", "score": "0.64888895", "text": "protected GeometricObject() {\r\n\t dateCreated = new java.util.Date();\r\n\t }", "title": "" }, { "docid": "674942e6e65b85da8b8daeb64747175c", "score": "0.6487448", "text": "public BlokPrikazu()\n {\n }", "title": "" }, { "docid": "fb6386654c8a60c2acc84a9b46a4e67b", "score": "0.6486608", "text": "private ClipBoardTool()\r\n {\r\n // Not implemnted.\r\n }", "title": "" }, { "docid": "b80c6bd6857aebaa21aeae9e682f243d", "score": "0.6484632", "text": "public Pago() {\n }", "title": "" }, { "docid": "0c6b8c0ed1508038df5e4f45b56ad204", "score": "0.64789397", "text": "public Nommage() {\r\n\t\tthis(null, null, null);\r\n\t}", "title": "" } ]
24e6a97fdd79b41677c1aada46cd4c6a
/................................................................................................../ displaying two dimensional array in double
[ { "docid": "3f62bb55ae7a60397d402ccccf0cddd0", "score": "0.62713635", "text": "public static boolean displayArraysInDouble(double a[][],int rows,int cols)\n {\n \ttry( PrintWriter pw=new PrintWriter(new OutputStreamWriter(System.out),true))\n \t{\n \t for(int i=0;i<rows;i++)\n \t\t \n \t {\n \t\t for(int j=0;j<cols;j++)\n \t\t {\n \t\t\t pw.write(a[i][j]+\" \");\n \t\t }\n \t\t pw.println();\n \t }\n }\n\t\treturn false;\n }", "title": "" } ]
[ { "docid": "958660309569effb87d71d7db9822f53", "score": "0.71382236", "text": "private static void show(double[][] a)\r\n\t{\r\n\t\tfor (int i = 0; i < a.length; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 0; j < a[i].length; j++)\r\n\t\t\t\tSystem.out.printf(\"%.6f \\t\", a[i][j]);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "58eb2d38af993492bcbe31b0e1c0c757", "score": "0.69608253", "text": "static public void printArray(double [] [] mst) {\n\t\tDecimalFormat decimalFormat = new DecimalFormat();\n\t\tfor (int i = 0; i < mst.length; i++) {\n\t\t\tSystem.out.print(\"[ \");\n\t\t\tfor (int j = 0; j < mst.length; j++) {\n\t\t\t\tSystem.out.print( decimalFormat.format(mst[i][j]) + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"]\");\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "6e9c214339b048d0c333d9fcbe2046f8", "score": "0.69178706", "text": "public static void printArray ( double[] dblArray ) {\n for (int i = 0; i < dblArray.length; i++) {\n System.out.print(dblArray[i] + \" \");\n }\n System.out.print(\"\\n\");\n }", "title": "" }, { "docid": "ee25f71210dbe97b8b0614f1751e4154", "score": "0.68028146", "text": "private static void printArray(double [][] arr) {\n System.out.println(\"Printing 2D array\");\n for (int row = 0; row < arr.length; row++) {\n for (int col = 0; col < arr[0].length; col++) {\n\n System.out.print (arr[row][col] + \" \");\n\n }\n System.out.println();\n }\n\n }", "title": "" }, { "docid": "20f9bcfffa82c2d7519050dafca784e7", "score": "0.6774261", "text": "public void displayArray(double[] arr) {\n System.out.print(\"\\nConsidered data:\\n| \");\n for(int i = 0; i < arr.length; i++) {\n System.out.print(arr[i] + \" | \");\n }\n System.out.print(\"\\n\\n\");\n }", "title": "" }, { "docid": "38b411f91027005f4674dc72941c82f9", "score": "0.6601651", "text": "public void showArray() {\n\t\tfor(int row=0; row<this.array.length; row++) {\n\t\t\tfor(int col=0; col<this.array[row].length;col++) {\n\t\t\t\tSystem.out.print(array[row][col] + \" | \");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "title": "" }, { "docid": "7f9d48be72a58039a9fd5ab70cfc8a00", "score": "0.6583997", "text": "public static void print(double[][] a) {\n int m = a.length;\n int n = a[0].length;\n StdOut.println(m + \" \" + n);\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n StdOut.printf(\"%9.5f \", a[i][j]);\n }\n StdOut.println();\n }\n }", "title": "" }, { "docid": "3f0ec4a716062fee4c7764ad5709f5f0", "score": "0.6473176", "text": "public void show() {\n for (int i = 0; i < M; i++) {\n for (int j = 0; j < N; j++) \n System.out.printf(\"%9.4f \", data[i][j]);\n System.out.println();\n }\n }", "title": "" }, { "docid": "9f122d5b80869de4551a03d791002860", "score": "0.63914114", "text": "private static void printSingleArray(double [] arr) {\n System.out.println(\"Printing array\");\n for (double x: arr) {\n System.out.print(x + \" \");\n }\n System.out.println();\n }", "title": "" }, { "docid": "b4a8daf7d4b279d1ffe840065107b5f5", "score": "0.6378036", "text": "public static void printArray(double[][] array) {\n for (int i = 0; i < array.length; i++) {\n System.out.print(\"[\");\n for (int j = 0; j < array[0].length; j++) {\n System.out.print(array[i][j] + \" \");\n }\n System.out.println(\"]\");\n }\n }", "title": "" }, { "docid": "f5375ece0c54a95af355f5f4db78090b", "score": "0.63172513", "text": "private static void print(ArrayList<Double> array) {\n\t\tSystem.out.print('[');\n\t\tif (!array.isEmpty()) {\n\t\t\tprintNonEmpty(array);\n\t\t}\n\t\tSystem.out.println(']');\n\t}", "title": "" }, { "docid": "742c4496e9796bc1ec3e6f56b1ce0bd4", "score": "0.625931", "text": "public void show() {\n\t\tfor (int i = 0; i < M; i++) {\n\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\tSystem.out.printf(\"%9.4f\", data[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "26456875ea9b145ea045c57b586959a7", "score": "0.62509644", "text": "private static String printArr(double[] fs) {\n\t\tStringBuffer st = new StringBuffer();\n\t\tst.append(fs[0]);\n\t\tfor(int i=1;i<fs.length;i++){\n\t\t\tst.append(\",\"+fs[i]);\n\t\t}\n\t\treturn st.toString();\n\t}", "title": "" }, { "docid": "87fbbcc396619426a662affb05fbcada", "score": "0.6234409", "text": "public static void display (int[][] array) {\n //string for which array display will be stored\n String output = \"{ \\n\";\n //for loop to choose main array member for display\n for (int i = 0; i < array.length; i++) {\n //add \"{ \" to output string\n output += \"{ \";\n //for loop for adding subarray members to string\n for (int j = 0; j < array[i].length; j++) {\n //add subarray member to string\n output += array[i][j]; \n //puts \", \" in appropriate places\n if (j < array[i].length - 1) {\n output += \", \";\n }\n }\n //closes off the end of subarray with \" }\" and returns to next line\n output += \" }\\n\";\n }\n //closes the multidimensional array with \"}\"\n output+= \"}\";\n //displays the array\n System.out.println(output);\n }", "title": "" }, { "docid": "6ac330ec6e99c25a5bde5042008ffb60", "score": "0.61382306", "text": "static StringBuffer print(int[][] array)\n {\n StringBuffer data = new StringBuffer(\"\");\n for(int i=0; i<array.length; i++)\n {\n for(int j=0; j<array[0].length; j++)\n {\n data.append(array[i][j]+\" \");\n }\n data.append(\"\\n\");\n }\n return data;\n }", "title": "" }, { "docid": "9708709e77ed29e8b700d662842333a7", "score": "0.6101052", "text": "static void multi_dimension_array() {\n\t\tint arr[][] = { {2,7,9,10},{2,3,6,1},{7,5,4,2} };\r\n\t\t// printing 2D array \r\n for (int i=0; i< 3 ; i++) \r\n { \r\n for (int j=0; j < 4 ; j++) \r\n System.out.print(arr[i][j] + \" \"); \r\n System.out.println(); \r\n } \r\n\r\n\t}", "title": "" }, { "docid": "6b2fcbb37b4cea18e587f0fd10e64ddc", "score": "0.6084717", "text": "public static void display(int[][] arr,String[][] str,double[][] b,int m,int n)\n\t{\n\t\tSystem.out.println();\n\t\tPrintWriter printWriter=new PrintWriter(System.out,true);\n\t\tprintWriter.println(\"two dimensional integer array:\");\n\t\tfor(int i=0;i<m;i++)\n {\n \tfor(int j=0;j<n;j++)\n \t{\n \t\tprintWriter.print(arr[i][j]+ \" \");\n \t}\n \tprintWriter.println();\n }\n\t\tprintWriter.println(\"two dimensional boolean array:\");\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tprintWriter.print(str[i][j]+\" \");\n\t\t\t}\n\t\t\tprintWriter.println();\n\t\t}\n\t printWriter.println(\"two dimensional double array:\");\n\t for(int i=0;i<m;i++)\n {\n \t for(int j=0;j<n;j++)\n \t{\n \t\tprintWriter.print(b[i][j]+\" \");\n \t}\n \tprintWriter.println();\n }\n\t}", "title": "" }, { "docid": "46a6fadf27e0f3ce280d372bbf560332", "score": "0.60639566", "text": "public void _print2dArray(byte[][] arr)\n\t{\n\t\tfor(int i=0; i<arr.length; i++)\n\t\t{\n\t\t\tSystem.out.println(Arrays.toString(arr[i]));\n\t\t}\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "f89b3d41014d3ad8409475c07984cdba", "score": "0.6034789", "text": "public static String doubleToString(double[][] d){\n String ret = \"\";\n for(int r = 0; r < d.length; r++){\n for(int c = 0; c < d[0].length; c++){\n ret+=\" \"+d[r][c];\n }\n ret+=\"\\n\";\n }\n return ret;\n }", "title": "" }, { "docid": "e0bdbb4259021f1a45853503caa2cccf", "score": "0.60177433", "text": "public static String arrayToString(double[][] a){\r\n\t\tString ret = \"\";\r\n\t\tfor(int j=0; j<a[0].length; j++){\r\n\t\t\tfor(int i=0; i<a.length; i++){\r\n\t\t\t\tret = ret.concat(a[i][j]+\",\");\r\n\t\t\t}\r\n\t\t\tret = ret.substring(0, ret.length()-1).concat(\"\\n\");\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "title": "" }, { "docid": "91b5cb58d13f0307bb3ce2e4cbfc7b61", "score": "0.6016077", "text": "public String toString(){\n\tdouble[] retVal = this.as_list();\n\n\treturn java.util.Arrays.toString(retVal);\n }", "title": "" }, { "docid": "fe43e3c3962d9c1e6f5939cbddac7c1a", "score": "0.60116893", "text": "public void show()\n\t {\n\t for(int index=0;index<noOfRows;index++)\n\t {\n\t for(int index2=0;index2<noOfCols;index2++)\n\t {\n\t System.out.print(this.data[index][index2]);\n\t \n\t System.out.print(\"\\t\");\n\t }\n\t System.out.println();\n\t }\n\t }", "title": "" }, { "docid": "6ffebcd9ea51f779237e148829f2cec2", "score": "0.60085636", "text": "public static void main(String[] args) {\n\t\tint arr[][]=new int[10][10];\n\t System.out.println(\"enter size of row[10]:\");\n int m=Utility.getint();\n System.out.println(\"enter size of column[10]:\");\n int n=Utility.getint();\n System.out.println(\"enter \"+m*n+\" elements:\");\n int [][] arr1=arrint(m,n);\n String[][] str=arrayBoolean(m,n);\n double [][] b=arraydouble(m,n);\n //calling display function\n display(arr1,str,b,m,n);\n\t}", "title": "" }, { "docid": "1049c9694cdc491748d5fa94c9e01d9e", "score": "0.5998539", "text": "public static void print(double[] a) {\n int n = a.length;\n StdOut.println(n);\n for (int i = 0; i < n; i++) {\n StdOut.printf(\"%9.5f \", a[i]);\n }\n StdOut.println();\n }", "title": "" }, { "docid": "4d0122dbaccab5ff0f4de9224c741676", "score": "0.59950095", "text": "private static void display(int a[][]) {\n System.out.println(\"ARRAY :-\");\n for (int i = 0; i < a.length; i++) {\n System.out.print(\"[\" + i + \"]: \");\n for (int j = 0; j < a[0].length; j++) {\n System.out.print(a[i][j] + \" \");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "23f5e98f723ec9f693559fc3a033b82d", "score": "0.59911007", "text": "public static void print2DA(int mat[][])\n {\n for (int[] row : mat)\n \n // Loop through all columns of current row\n for (int x : row)\n System.out.print(x + \" \");\n }", "title": "" }, { "docid": "b4c7f417e2d8854546cc88dfc430ebb8", "score": "0.597313", "text": "private static void display(int[][] arr) {\n\t\tfor(int i=0;i<arr.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<arr[0].length;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(arr[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "9ee824b93b86e9a6fecfaeac255691ad", "score": "0.5920592", "text": "public static void print2DArray(int input[][]) {\n for (int i=0;i<input.length;i++)\n {\n int count = input.length-i;\n while (count>0)\n {\n for (int j=0;j<input[0].length;j++)\n {\n System.out.print(input[i][j] + \" \");\n }\n count--;\n System.out.println(\"\");\n }\n }\n\n\t}", "title": "" }, { "docid": "4699e6814a5e76635621dd6d9fcc702b", "score": "0.5901207", "text": "double[] getX2D();", "title": "" }, { "docid": "bc9396e05396cbbe4edb6fbcd8098042", "score": "0.59004974", "text": "public static void main(String[] args) {\n\t\tdouble a1=32.2165;\r\n\t\tdouble b1=123.32165;\r\n\t\tdouble a2=49.6548;\r\n\t\tdouble b2=456.12345;\r\n\t\tSystem.out.println(a1+\"\\t\"+b1);\r\n\t\t// 실수 1차원 배열\r\n\t\tdouble[] c1 = {a1,b1};\r\n\t\tdouble[] c2 = {a1,b2};\r\n\t\tSystem.out.println(c1[0]+\"\\t\"+c1[1]);\r\n\t\t//실수 2차원 배열\r\n\t\tdouble[][] c= {\r\n\t\t\t\t{a1,b1},\r\n\t\t\t\t{a2,b2}\r\n\t\t};\r\n\t\tSystem.out.println(c[0][0] + \"\\t\" + c[0][1]);\r\n\t}", "title": "" }, { "docid": "e4261d0d86b5886c816579bdae121f9f", "score": "0.58964425", "text": "public static void main(String[] args) {\n\t\tObject [][] o = new Object[3][2]; \n\t\tSystem.out.println(Arrays.deepToString(o));\n\t}", "title": "" }, { "docid": "2bb97465b4623ea3e9250ffe9bff4a2c", "score": "0.5892556", "text": "private void doubleSizeArray() {\n\t\tObject[] doubleSizeArray = new Object[this.array.length * 2];\n\n\t\tfor (int i = 0; i < this.array.length; i++) {\n\t\t\tdoubleSizeArray[i] = this.array[i];\n\t\t}\n\n\t\tthis.array = doubleSizeArray;\n\t}", "title": "" }, { "docid": "b334bc78e2f9d4b357389ae3fcaa0618", "score": "0.5891109", "text": "void Display(){\n System.out.println(\"This matrix is \"+this.size+\" * \"+this.size+\" size\");\n for (ArrayList<Integer> temp_list:this.matrix\n ) {\n for (int temp: temp_list\n ) {\n System.out.print(temp+\"\\t\");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "647a40b3c173a133812a301f654505f1", "score": "0.588459", "text": "public void printResult(double[][] matrix){\r\n System.out.println(\"the result is:\");\r\n for(int i = 0; i < matrix.length; i++){\r\n for(int j = 0; j < matrix[0].length; j++){\r\n System.out.print(matrix[i][j]+\" \");\r\n }\r\n System.out.println();\r\n }\r\n\r\n }", "title": "" }, { "docid": "ae46de83ba3ae373179a962d7d40dd2b", "score": "0.5866374", "text": "public double[] getArray() { return array; }", "title": "" }, { "docid": "48ad8f2a7cb223ab22b95795744813ca", "score": "0.58608377", "text": "public static void displayArray(char[][] array){\n for(int i = 1; i < array.length - 1; i++){\n System.out.println(\"\");\n for(int j = 1; j < array.length - 1; j++){\n System.out.print(array[i][j]);\n }\n }\n System.out.println(\"\");\n }", "title": "" }, { "docid": "982960f7de4e7f014758fa08de3d57c3", "score": "0.58570343", "text": "public static void main(String[] args) {\n int m = 10;\n int n = 5;\n\n int[][] twoD_arr = new int[m][n];\n\n// for (int i = 0; i < twoD_arr.length; i++) {\n// for (int j = 0; j < twoD_arr.length; j++)\n// System.out.print(\"arr[\" + i + \"][\" + j + \"] = \"\n// + twoD_arr[i][j]);\n// }\n// System.out.println();\n\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n System.out.print(twoD_arr[i][j]);\n }\n System.out.println();\n\n }\n }", "title": "" }, { "docid": "187d2bd7b2ee6df5a7faf4884e12bc94", "score": "0.58362794", "text": "public static void printAnswer(double[][] m1, double[][] m2, double[][] a)\r\n\t{\r\n\t\tDecimalFormat df = new DecimalFormat(\"0.##\");\t\t\r\n\t\t\r\n\t\t// Print first row\r\n\t\tSystem.out.print(df.format(m1[0][0]) + \"\\t\" + df.format(m1[0][1]) + \"\\t\" + df.format(m1[0][2]));\r\n\t\tSystem.out.print(\"\\t\\t\");\r\n\t\tSystem.out.print(df.format(m2[0][0]) + \"\\t\" + df.format(m2[0][1]) + \"\\t\" + df.format(m2[0][2]));\r\n\t\tSystem.out.print(\"\\t\\t\");\r\n\t\tSystem.out.println(df.format(a[0][0]) + \"\\t\" + df.format(a[0][1]) + \"\\t\" + df.format(a[0][2]));\r\n\t\t\r\n\t\t// Print second row\t\t\r\n\t\tSystem.out.print(df.format(m1[1][0]) + \"\\t\" + df.format(m1[1][1]) + \"\\t\" + df.format(m1[1][2]));\r\n\t\tSystem.out.print(\"\\t*\\t\");\r\n\t\tSystem.out.print(df.format(m2[1][0]) + \"\\t\" + df.format(m2[1][1]) + \"\\t\" + df.format(m2[1][2]));\r\n\t\tSystem.out.print(\"\\t=\\t\");\r\n\t\tSystem.out.println(df.format(a[1][0]) + \"\\t\" + df.format(a[1][1]) + \"\\t\" + df.format(a[1][2]));\r\n\t\t\r\n\t\t// Print third row\r\n\t\tSystem.out.print(df.format(m1[2][0]) + \"\\t\" + df.format(m1[2][1]) + \"\\t\" + df.format(m1[2][2]));\r\n\t\tSystem.out.print(\"\\t\\t\");\r\n\t\tSystem.out.print(df.format(m2[2][0]) + \"\\t\" + df.format(m2[2][1]) + \"\\t\" + df.format(m2[2][2]));\r\n\t\tSystem.out.print(\"\\t\\t\");\r\n\t\tSystem.out.println(df.format(a[2][0]) + \"\\t\" + df.format(a[2][1]) + \"\\t\" + df.format(a[2][2]));\r\n\t}", "title": "" }, { "docid": "2a98810baa729ddf4d7142fbb32e973f", "score": "0.5831558", "text": "public static double[][] readDouble2D() {\n int m = StdIn.readInt();\n int n = StdIn.readInt();\n double[][] a = new double[m][n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n a[i][j] = StdIn.readDouble();\n }\n }\n return a;\n }", "title": "" }, { "docid": "e8c604cec97bfa7db7590351adb4b41c", "score": "0.582731", "text": "public void display() {\n for (int i = 0; i < numElements; i++) {\n System.out.print(array[i] + \" \");\n /*\n * to print all the items of the array in a comma separated manner.\n * */\n }\n System.out.println(); // to print a newline at the end of the array\n }", "title": "" }, { "docid": "be43a273254e62de09eb78f227c1b454", "score": "0.58114934", "text": "public static void main(String[] args) {\nint [][] a=new int[2][2];\r\na[0][0]=2;\r\na[0][1]=3;\r\na[1][0]=4;\r\na[1][1]=5;\r\nSystem.out.println(a[1][1]);\r\n\t}", "title": "" }, { "docid": "cb4dc6b46509d8bc60f27d0ec5026347", "score": "0.5781607", "text": "public void show() {\n \tSystem.out.println();\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < col; j++) \n System.out.print(data[i][j]+\"\\t\");\n System.out.println();\n }\n }", "title": "" }, { "docid": "5254e9c88b857e23fd1c6b4c240747f3", "score": "0.5778032", "text": "public static void main(String[] args) {\n\t\tint [] array = {1,2,3,4,5};\r\n\t\tint [] [] dub = new int[array.length][array.length];\r\n\t\tfor(int i=0;i<dub.length;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<dub[i].length;j++)\r\n\t\t\t{\r\n\t\t\t\tdub[i][j] = array[j]*i;\r\n\t\t\t}\r\n\t\t}\r\n\t\tdub = modDoubleArrayBy(dub,2);\r\n\t\tfor(int i=0;i<dub.length;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<dub[i].length;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(dub[i][j] + \" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3e79fd2a625aa9c4119ff7bd3dcf9a4d", "score": "0.5760746", "text": "public void display() {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}", "title": "" }, { "docid": "98d5eed04cec899f7ca7c01300e370b1", "score": "0.57526845", "text": "public double[] as_list (){\n\tint rCount, cCount, counter = 0;\n\tdouble[] retVal = new double[cols*rows];\n\t\n\tfor (rCount = 0; rCount < rows; rCount++){\n\t for (cCount = 0; cCount < cols; cCount++){\n\t\tretVal[counter] = data[rCount][cCount];\n\t\tcounter++;\n\t }\n\t} \n\n\treturn retVal;\n }", "title": "" }, { "docid": "97102be18f03a2f808c73fde6ad3fc6a", "score": "0.5744617", "text": "public static void main(String[] args) {\n// String[][] array = new String[5][5];\n String[][] array = { {\"a\", \"b\", \"c\", \"d\", \"e\"}\n , {\"g\", \"j\", \"o\", \"e\", \"q\"}\n , {\"f\", \"g\", \"q\", \"e\", \"r\"}\n , {\"h\", \"o\", \"p\", \"q\", \"e\"}\n , {\"g\", \"h\", \"p\", \"r\", \"q\"}\n };\n// String[][] array = new String[3][5];\n System.out.println(\"array lengthh = \" + array.length);\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 5; j++) {\n System.out.printf(\" \"+ array[i][j]);\n }\n System.out.println();\n }\n\n System.out.println();\n System.out.println();\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n System.out.printf(\" \"+ array[j][i]);\n }\n System.out.println();\n }\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "61df1485110025eaf7e4e69835a4f64f", "score": "0.57276374", "text": "public double[] getDblArray1() {\r\n double[] x = new double[_n];\r\n for (int i=0; i<_ilen; i++) x[_indices[i]] = _values[i];\r\n return x;\r\n }", "title": "" }, { "docid": "368f5f32be5cd3f21257e116f7f8ab97", "score": "0.5691966", "text": "public static void printVector(final double[] da) {\n for (int i = 0; i < da.length; i++) {\n System.out.print(da[i] + \" \");\n }\n\n System.out.println(\"\");\n }", "title": "" }, { "docid": "8b0a261f0b7775e6c825cae9d803a671", "score": "0.5689296", "text": "public static void main(String[] args) {\n\t\tint[] [] array2D= {{0,1,2},{3,4,5,6}};\n\t\tSystem.out.print(array2D[0].length +\"\");\n\t\tSystem.out.print(array2D[1].getclass().isArray() +\"\");\n\t\tSystem.out.println(array2D[0][1]);\n\n\t}", "title": "" }, { "docid": "27520161c8b2ea5c492610c7f1819204", "score": "0.568601", "text": "public static void displayData(Object[][] data) {\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tString dataLine = \"\";\n\t\t\tfor (int j = 0; j < data[i].length; j++) {\n\t\t\t\tdataLine += data[i][j];\n\t\t\t\tdataLine += \" \\t\";\n\t\t\t}\n\t\t\tgetLog().info(dataLine.trim());\n\t\t}\n\t}", "title": "" }, { "docid": "e3a5974f1704d3f159143474c97c238e", "score": "0.56842154", "text": "private void printMatrix(double[][] mx) {\n\t\t\n\t\tfor( int i = 0; i < mx.length; ++i) {\n\t\t\tfor( int j = 0; j < mx[0].length; ++j)\n\t\t\t\tSystem.out.print(\"[\" + mx[i][j] + \"]\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "36928af8225e4e22e74403d8a70cef19", "score": "0.5683132", "text": "public void printOctaveLikeMatrix() {\n System.out.print(\"[\");\n for(int rowIndex = 0; rowIndex < this.rowsCount; rowIndex++) {\n for(int colIndex = 0; colIndex < this.colsCount; colIndex++) {\n System.out.print(Byte.toString(getElement(rowIndex, colIndex)) + \" \");\n }\n if(rowIndex < this.rowsCount - 1)\n System.out.print(\";\\n\");\n }\n System.out.print(\"]\");\n }", "title": "" }, { "docid": "8fcfb40c82947ab0143665bb934b0ee7", "score": "0.56816775", "text": "public void populateAndPrint2DArray(int [][] tt) {\n\n int counter =0;\n\n for(int i = 0; i < tt.length -1; i++) {\n\n for(int j = 0; j <= i; j++) {\n\n tt[i][j] += counter;\n }\n\n }\n }", "title": "" }, { "docid": "fb70806648295c12f9e59dc5b2f1c157", "score": "0.5665143", "text": "private static void afficherTableau2D(Object[][] informationsUtilisateur) {\n\t\tfor (int index = 0; index < informationsUtilisateur.length; index++) {\n\t\t\tfor (Object informations : informationsUtilisateur[index]) {\n\t\t\t\tSystem.out.print(informations);\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "56184f27d41beac7039fb6cb12235d4a", "score": "0.5663938", "text": "public void printArray() {\n\t\tSystem.out\n\t\t.println(\"------------------------------------------------------------\");\n\t\tfor (int i = 0; i < arraySize; i++) {\n\t\t\tSystem.out.print(\"| 0\" + i + \" |\");\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 0; i < arraySize; i++) {\n\t\t\tSystem.out.print(\"| \" + theArray[i] + \" |\");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out\n\t\t.println(\"------------------------------------------------------------\");\n\n\t}", "title": "" }, { "docid": "e9de24148a61667995f374f2a1dfb4b9", "score": "0.566311", "text": "public static void main(String[] args) {\nint[][] values=new int[3][];\nvalues[0]=new int[4];\nvalues[0][0]=123;\nvalues[0][1]=124;\nvalues[0][2]=125;\nvalues[0][3]=126;\nvalues[1]=new int[2];\nvalues[1][0]=223;\nvalues[1][1]=224;\nvalues[2]= new int[5];\nvalues[2][0]=323;\nvalues[2][1]=324;\nvalues[2][2]=325;\nvalues[2][3]=326;\nvalues[2][4]=327;\n\tfor (int[] arr : values) \n\t{\n\tfor (int v : arr) \n\t{\n\tSystem.out.print(v+\"\\t\");\t\n\t}\t\n\tSystem.out.println();\n\t}\n\t}", "title": "" }, { "docid": "5ef5e7692eaafa24ede863a910669f10", "score": "0.56612664", "text": "public void printArray() {\n System.out.println(\"----------\");\n for (int i = 0; i < size; i++) {\n System.out.println(\"| \" + i + \" | \" + array[i] + \" |\");\n }\n System.out.println(\"----------\");\n }", "title": "" }, { "docid": "345a7b1e65b036ef1d1347fd4756a8e5", "score": "0.5660446", "text": "private void doubleArray() {\n //double the size of the array\n defaultSize *= 2;\n\n //create a temporary array to store the values of data\n //while data is turned into a new array of a larger size\n E[] tempArray = (E[]) new Comparable[defaultSize];\n for (int i = 0; i < data.length; i++) {\n tempArray[i] = data[i];\n }\n\n //manually copy the values of the temp array\n //into the new version of the main array\n data = (E[]) new Comparable[defaultSize];\n for (int i = 0; i < tempArray.length; i++) {\n data[i] = tempArray[i];\n }\n }", "title": "" }, { "docid": "a6bc0ac8e6fa5eec3cd60729465c5be6", "score": "0.565855", "text": "private static void printNonEmpty(ArrayList<Double> array) {\n\t\t// Could use Collectors.joining from a stream but I don't need to store the entire thing in\n\t\t// memory before printing\n\n\t\t// Loop through all but the last element of the array\n\t\tfor (int i = 0; i < array.size()-1; i++) {\n\t\t\tSystem.out.print(to2DecimalPlaceString(array.get(i)));\n\n\t\t\t// Not at the end of an array so we need a trailing comma\n\t\t\tSystem.out.print(\", \");\n\t\t}\n\n\t\t// Print the last entry. Don't proceed this value with a comma.\n\t\tSystem.out.print(to2DecimalPlaceString(array.get(array.size()-1)));\n\t}", "title": "" }, { "docid": "e883c8bdfe5a5dbba141e59b33cc2432", "score": "0.5654868", "text": "@Override\n\tpublic String toString() {\n\t\tStringBuilder res = new StringBuilder(); // use a StringBuilder to save running time\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++)\n\t\t\t\tres.append(drawingArray[i][j]);\n\t\t\tres.append('\\n'); // add a new line by adding '\\n'\n\t\t}\n\t\treturn res.toString();\n\t}", "title": "" }, { "docid": "f9c3231515fe6b9dfb07e1604f806cb9", "score": "0.5639708", "text": "public void twoDimensionArray()\n {\n char[][] asteriskArray = new char[10][10];\n\n for( int i = 0; i < asteriskArray.length; i++ )\n {\n for( int j = 0; j < asteriskArray[i].length; j++ )\n {\n asteriskArray[i][j] = '*';\n System.out.print(asteriskArray[i][j]);\n }\n\n System.out.println();\n }\n\n System.out.println(\"\\n\");\n\n for( int i = 0; i < asteriskArray.length; i++ )\n {\n for( int j = 0; j < asteriskArray[i].length; j++ )\n {\n if( i == 0 || i == asteriskArray.length - 1\n || ((i > 0 && i < asteriskArray.length)\n && (j == 0 || j == asteriskArray[i].length - 1)) )\n {\n asteriskArray[i][j] = '*';\n }\n else\n {\n asteriskArray[i][j] = ' ';\n }\n\n System.out.print(asteriskArray[i][j]);\n }\n\n System.out.println();\n }\n }", "title": "" }, { "docid": "1d0bbc5d510f06db5adfd258a5bc7fd4", "score": "0.5636391", "text": "protected static String niceDisplay(byte[][] array2D){\n int rowLen = array2D.length;\n int colLen = array2D[0].length;\n\n String nice = \"\";\n for(int r = 0; r < rowLen; r++){\n for(int c = 0; c < colLen; c++){\n String temp = Integer.toHexString(array2D[r][c]);\n temp = temp.toUpperCase();\n if(temp.length() == 8){\n temp = temp.substring(6, 8);\n }\n else if(temp.length() == 1){\n temp = \"0\" + temp;\n }\n nice += temp + \" \";\n }\n nice += \"\\n\";\n }\n return nice;\n }", "title": "" }, { "docid": "327166a0f75b052c00a706fee804f12b", "score": "0.56358624", "text": "public void display()\n {\n long ar[] = new long[nItems];\n \n if(nItems == 0)\n {\n System.out.println(\"No elements to display! Sorry, buckaroo!\");\n }\n else\n {\n for(int y = 0; y < nItems; y++)\n {\n ar[y] = queArray[y];\n }\n \n for(int z = 0; z < nItems; z++)\n {\n System.out.println(ar[z] + \"\");\n } \n }\n \n }", "title": "" }, { "docid": "ceecb1ecc679062b1cd38615b0733566", "score": "0.56263167", "text": "public double asDouble() {\n\t\tif (Xt == XT_ARRAY_DOUBLE) {\n\t\t\tdouble d[] = (double[]) cont;\n\t\t\tif (d != null && d.length > 0)\n\t\t\t\treturn d[0];\n\t\t}\n\t\treturn (Xt == XT_DOUBLE) ? ((Double) cont).doubleValue() : 0.0;\n\t}", "title": "" }, { "docid": "ed4393cada25d7f3009a100c03f6e488", "score": "0.56164795", "text": "public String toString()\n {\n String s = Integer.toString(dim) + \"\\n\";\n for ( int i = 0; i < dim; i++ )\n {\n for ( int j = 0; j < dim; j++ )\n {\n s += Integer.toString(elems[i][j])+\" \";\n }\n s += \"\\n\";\n }\n return s;\n }", "title": "" }, { "docid": "589a57340cbcd372123a2de316e72ace", "score": "0.56087494", "text": "public double[][] getData(){\n\t return data;\n }", "title": "" }, { "docid": "19af2447ef3adeaf279dc06c552740b8", "score": "0.55990654", "text": "public void displayGrid(){\n System.out.println(); \n for (int i = 0; i < grid.length; i++){\n System.out.println(); \n for (int j = 0; j < grid[i].length; j++)\n System.out.print (grid[i][j] + \" \");\n } \n }", "title": "" }, { "docid": "698e3c6a1ddd4374869fab62592042fd", "score": "0.5589897", "text": "public void print() {\nfor (int i = 0; i < _size; i++) {\nif (i > 0 && i % _subsize == 0) System.out.println();\nfor (int j = 0; j < _size; j++) {\nif (j > 0 && j % _subsize == 0) System.out.print(\" \");\nSystem.out.print(_tableau[i][j]);\n}\nSystem.out.println();\n}\n}", "title": "" }, { "docid": "59fda9c2a328891a77915d3f92691b7c", "score": "0.5589312", "text": "public double[] getDoubleValues();", "title": "" }, { "docid": "82676c3456b56a2b41c31da145f2d745", "score": "0.5588705", "text": "public void displayAll() \n\t{\n\t\tfor (int i = 0; i < a.size(); i++) \n\t\t{\n\t\t\tSystem.out.printf(\"%10.2f \\n\", a.get(i));\n\t\t}\n\t\tSystem.out.println(\"--------------\");\n\t}", "title": "" }, { "docid": "326781874f5520049b89270193204da6", "score": "0.5579689", "text": "public static void print2D(int mat[][])\n {\n for (int i = 0; i < mat.length; i++)\n \n // Loop through all elements of current row\n for (int j = 0; j < mat[i].length; j++)\n System.out.print(mat[i][j] + \" \");\n }", "title": "" }, { "docid": "0ffa6565212a125088c7ae77e6f09ea5", "score": "0.55753165", "text": "public static void main(String[] args) {\n\t\tint x[]= new int[4];\r\n\t\tx[0]=10;\r\n\t\tx[1]=20;\r\n\t\tx[2]=30;\r\n\t\tx[3]=40;\r\n\t\tSystem.out.println(x[2]);\r\n\t\tSystem.out.println(x.length);\r\n\t\tfor(int y=0;y < x.length; y++)\r\n\t\t\tSystem.out.println(x[y]);\r\n\t\t\t\r\n\t\t\t\r\n\t\t//2-D Array\r\n\t\t\r\n\t\tint a[][]= new int[3][3];\r\n\t\ta[0][0]=1;\r\n\t\ta[0][1]=2;\r\n\t\ta[0][2]=3;\r\n\t\t\r\n\t\ta[1][0]=4;\r\n\t\ta[1][1]=5;\r\n\t\ta[1][2]=6;\r\n\t\t\r\n\t\ta[2][0]=7;\r\n\t\ta[2][1]=8;\r\n\t\ta[2][2]=9;\r\n\t\t\r\n\t\tint b = a[2][1]*a[1][1];\r\n\t\tSystem.out.println(b);\r\n\t\t\r\n\t\tSystem.out.println(a.length*b);\r\n\t\t\r\n\t\tfor(int c=0;c<a.length;c++)\r\n\t\t\tfor(int d=0;d<a.length;d++)\r\n\t\t\tSystem.out.println(a[c][d]);\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "77b2ac526366f3fcf0d2d0b49b326153", "score": "0.5565637", "text": "private double[][] formatInstance(List<Double> instance) {\n double[][] data = null;\n if (instance == null) {\n LOGGER.info(\"The instance is null!\");\n return data;\n }\n\n if (instance.size() == 0) {\n LOGGER.info(\"The instance is empty!\");\n return data;\n }\n\n data = new double[2][instance.size()];\n\n for (int i = 0; i < instance.size(); i++) {\n data[0][i] = i;\n data[1][i] = instance.get(i);\n }\n\n return data;\n }", "title": "" }, { "docid": "ac5fcff7111039984addf5fe3d4c45c2", "score": "0.5564028", "text": "public static void main(String[] args) {\n\t\tint i[] = new int[4];\n\t\t//lowest bound/index = 0\n\t\t//upper bound/index = n-1\n\t\ti[0] = 10;\n\t\ti[1] = 20;\n\t\ti[2] = 30;\n\t\ti[3] = 40;\n\t\tSystem.out.println(i[2]);\n\t\tSystem.out.println(i.length);\n\t\tfor (int j =0; j< i.length; j++){\n\t\t\tSystem.out.println(i[j]);\n\t\t}\n\t\t\n\t\tdouble d[] = new double[3];\n\t\td[0]= 12.33;\n\t\td[1] = 13.88;\n\t\td[2] = 34.45;\n\t\tSystem.out.println(d[2]);\n\t\t\n\t\tchar c[] = new char[3];\n\t\tc[0] = 'e';\n\t\tc[1] = 2;\n\t\tc[2] = '#';\n\t\tSystem.out.println(c.length);\n\t\t\n\t\tboolean b[] = new boolean[2];\n\t\tb[0] = true;\n\t\t b[1] = false;\n\t\t System.out.println(b[1]);\n\t\t \n\t\t String s[] = new String[2];\n\t\ts[0] = \"Ammu\";\n\t\ts[1] = \"Hello\";\n\t\n\t\tSystem.out.println(s[0]);\n\t\t//these are single dimensional array\n\t\t\n\t\t//disadvantage is ---1.fixed size which is static array-- to overcome this problem we use collections\n\t\t//like hahtables,arraylist --use dynamic array\n\t\t//2.stores similar datatypes---to overcome this problem we use object array\n\t//creating object array ---object is a class\n\t\tObject ob[] = new Object[6];\n\t\tob[0] = \"Tom\";\n\t\tob[1] = 25;\n\t\tob[2] = 12.33;\n\t\tob[3] = \"1/1/1999\";\n\t\tob[4] = 'M';\n\t\tob[5] = \"London\";\n\t\t\n\t\tSystem.out.println(ob[5]);\n\t\tSystem.out.println(ob.length);\n\t\t//2- dimensional array(rows n columns\n\t\tString x[][] = new String[3][5];\n\t\tSystem.out.println(x.length); //total no. of rows--3\n\t\tSystem.out.println(x[0].length); //total no. of columns---5\n\t\t\n\t\tx[0][0] = \"A\";\n\t\tx[0][1] = \"B\";\n\t\tx[0][2] = \"c\";\n\t\tx[0][3] = \"D\";\n\t\tx[0][4] = \"E\";\n\t\t\n\t\tx[1][0] = \"A1\";\n\t\tx[1][1] = \"B1\";\n\t\tx[1][2] = \"c1\";\n\t\tx[1][3] = \"D1\";\n\t\tx[1][4] = \"E1\";\n\t\t\n\t\tx[2][0] = \"A2\";\n\t\tx[2][1] = \"B2\";\n\t\tx[2][2] = \"c2\";\n\t\tx[2][3] = \"D2\";\n\t\tx[2][4] = \"E2\";\n\t\t\n\t\tSystem.out.println(x[1][2]);\n\t\tfor( int row= 0; row<x.length;row++){\n\t\t\tfor(int j = 0 ;j<x[0].length; j++){\n\t\t\tSystem.out.println(x[row][j]);\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "91783e5746b6beca9b75d6950845fc6a", "score": "0.55620056", "text": "double[] readArrayOfDouble();", "title": "" }, { "docid": "1648b4d79e49332bb36d8073b36ad601", "score": "0.5556862", "text": "void printarray(){\n for(int i=0;i<max;i++){\n for(int j=0;j<max;j++){\n System.out.print(Nboard[j][i]);\n\n System.out.print(\" \");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "3c7c971bd58fae6cb02bdf03f6bc73d8", "score": "0.5553885", "text": "public void displayArray()\n {\n System.out.println(\"Presidents Array\");\n System.out.printf(\"\\n%-12s %-13s %-13s\\n\", \"LAST NAME\", \"FIRST NAME\", \"STATE\");\n for (int i = 0; i < nElems; i++)\n System.out.println(myPresidents[i]);\n System.out.printf(\"\\n\\n\");\n }", "title": "" }, { "docid": "cc11e5acddc60848e139af48d258085c", "score": "0.55481076", "text": "public void printMatrix(){\n\tint cCount, rCount;\n\tString currLine;\n\n\tfor (rCount = 0; rCount < rows; ++rCount){\n\t \n\t currLine = \"[\"; \n\t \n\t for (cCount = 0; cCount < cols; ++cCount){\n\t\tcurrLine += data[rCount][cCount] + \" \";\n\t }\n\n\t currLine += \"]\";\n\n\t System.out.println(currLine);\n\t}\n\n }", "title": "" }, { "docid": "d714f0a622135c4ac900ad1d38041f1c", "score": "0.55413234", "text": "public double[] getOutput(){\n return output;\n }", "title": "" }, { "docid": "81b494f32cc3484bf800e07e8461467a", "score": "0.55175525", "text": "private static void display(char[][] a,int x,int y) {\n\tfinal String ANSI_CLS = \"\\u001b[2J\";\nfinal String ANSI_HOME = \"\\u001b[H\";\nSystem.out.print(ANSI_CLS + ANSI_HOME);\nSystem.out.flush();\n\t\tfor(int i=0;i<=(x-1);i++)\n\t\t{\n\t\t\tif(i<9)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"0\"+(i+1)+\" \");\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.print((i+1)+\" \");\n\n\t\t\tfor(int j=0;j<=y-1;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(a[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n}\n\n\t\tfor(int i =0;i<=(y-1);i++)\n\t\t{\n\t\t\tif(i<=9)\n\t\t\t\tSystem.out.print(\"0\"+i+\" \");\n\t\t\telse\n\t\t\t\tSystem.out.print(i+\" \");\n\t\t}\n\t\tSystem.out.print(y);\n\t\tSystem.out.println(\"\");\n\n}", "title": "" }, { "docid": "bbeb8806e1b28dfb68d31e25e9d14b3f", "score": "0.5516377", "text": "public void print() {\n\t\tSystem.out.print(this.alpha.length + \" \");\n\t\tSystem.out.print(this.alpha[0].length + \" \");\n\t\tfor (int i = 0; i < this.alpha.length; i++) {\n\t\t for (int j = 0; j < this.alpha[i].length; j++) {\n\t\t System.out.print(this.alpha[i][j]);\n\t\t System.out.print(\" \");\n\t\t }\n\t\t System.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "b80e1d6daec85093829ac0d4b3a58c7c", "score": "0.55147177", "text": "public static void showArrays(int[][] arrayFull){\r\n\t\tSystem.out.println();\r\n\t\tfor(int i=0;i<3;i++){\r\n\t\t\tSystem.out.print(\"Arreglo \"+(i+1)+\":\");\r\n\t\t\t\tfor(int i2=0;i2<arrayFull[i].length;i2++){\r\n\t\t\t\t\tSystem.out.print(\"|\"+arrayFull[i][i2]+\"|\");\r\n\t\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "734750d585cce884de0482b3bfec8655", "score": "0.54998195", "text": "public void printArray(CreateArray arrNumbers) {\n\t\tfor(int i = 0; i < arrNumbers.getNumRows(); ++i) {\n\t\t\tfor(int j = 0; j < arrNumbers.getNumCols(); ++j) {\n\t\t\t\tSystem.out.printf(\"[\"+arrNumbers.getArray()[i][j]+\"]\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "6f6366793971d58dfa78ffcdbcce37da", "score": "0.54907876", "text": "public static ArrayList<Double>ArraytoArrylist(double[]arr){\nArrayList<Double>list=new ArrayList<>();\t\n//for (int i = 0; i < arr.length; i++) {\n\t\n//}\nfor(Double each:arr) {//each arr deki herseyi liste ekleyecek\n\tlist.add(each);//autoboxing\n}\n\nreturn list;\n}", "title": "" }, { "docid": "de9e939246b912f41adb1583250df9bb", "score": "0.5489319", "text": "void getDoubleArray(long offsetBytes, double[] dstArray, int dstOffsetDoubles, int lengthDoubles);", "title": "" }, { "docid": "2276258287eb6003b5218fd09a4940db", "score": "0.54877186", "text": "public static void main(String[] args) {\n\t\tint a[]={7,5,4,3,1,11,13,0,9,7,6};\r\n\t\tif(a.length % 2 != 0)\r\n\t\t{\r\n\t\t\tint x[]= new int [a.length/2 +1];\r\n\t\t\tint y[]= new int [a.length/2];\r\n\t\t\tfor(int i=0; i<x.length; i++)\r\n\t\t\t{\r\n\t\t\t\tx[i]=a[i];\r\n\t\t\t\tSystem.out.println(x[i]);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(int i=0; i<y.length; i++)\r\n\t\t\t{\r\n\t\t\t\ty[i]=a[x.length+i];\r\n\t\t\t\tSystem.out.println(y[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tint x[]=new int[a.length/2];\r\n\t\t\t\tint y[]=new int[a.length/2];\r\n\t\t\t\tfor(int i=0;i<x.length; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tx[i]=a[i];\r\n\t\t\t\t\ty[i]=a[x.length+i];\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(x[i]+\"_\"+y[i]);\r\n\t\t\t\t//System.out.println(y[i]);\r\n\t\t\t }\r\n\t\t }\r\n\t\t}", "title": "" }, { "docid": "602be1fb67e49958b78eaf3386ad2a03", "score": "0.54817474", "text": "public String toString()\n {\n if ((rows<=0) || (columns<=0))\n return \"[]\";\n int i,j;\n DecimalFormat format = new DecimalFormat(\"00.0000\");\n format.setPositivePrefix(\"+\");\n\n StringBuffer str = new StringBuffer();\n for(i=0; i<(rows-1); i++)\n {\n for(j=0; j<(columns-1); j++)\n if (Math.round(matrix[i][j]*10000)!=0)\n str.append(format.format(matrix[i][j])+\" \");\n else\n str.append(\"-------- \");\n if (Math.round(matrix[i][columns-1]*10000)!=0)\n str.append(format.format(matrix[i][columns-1])+\"\\n\");\n else\n str.append(\"--------\\n\");\n }\n for(j=0; j<(columns-1); j++)\n if (Math.round(matrix[rows-1][j]*10000)!=0)\n str.append(format.format(matrix[rows-1][j])+\" \");\n else\n str.append(\"-------- \");\n if (Math.round(matrix[rows-1][columns-1]*10000)!=0)\n str.append(format.format(matrix[rows-1][columns-1]));\n else\n str.append(\"-------- \");\n return str.toString();\n }", "title": "" }, { "docid": "99de77bb8a4eb362a55a1abee39c92ed", "score": "0.5481394", "text": "@Override\n\tpublic String toString() {\n\t\tString s = \"(\";\n\t\tfor (double e : elements) {\n\t\t\ts+=e+\", \";\n\t\t}\n\t\treturn s.substring(0, s.length() - 2)+\")\";\n\t}", "title": "" }, { "docid": "100fd4260bc74bc34109a84e79afa892", "score": "0.5480519", "text": "public static void printArray (String [][] array)\n\t{\n\t\tfor (int row = 0; row<array.length;row++)\n\t\t{\n\t\t\tfor (int col = 0; col<array[row].length; col++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"|\"+ array[row][col]);\n\t\t\t}\n\t\t\tSystem.out.print(\"|\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "d1c53f175913a04be12d58f83662ddb7", "score": "0.54779726", "text": "public void printArray(){\r\n\t \r\n\t System.out.println(\"----------\");\r\n\t \r\n\t for(int i = 0; i < arraySize; i++){\r\n\t\t \r\n\t System.out.print(\"| \" + i + \" | \");\r\n\t \r\n\t\t System.out.println(theArray[i] + \" |\");\r\n\t \r\n\t System.out.println(\"----------\");\r\n\t \r\n\t\t }\r\n\t \r\n\t\t }", "title": "" }, { "docid": "d876cb46d9fb01ac21f77409791e9d93", "score": "0.547477", "text": "public static void main(String[] args) {\nint[][] tab = new int [10][10];\nfor (int i = 0; i < 10; i++) {\n\tSystem.out.println();\n\tfor (int j = 0; j < 10; j++) {\n\t\ttab [i] [j] = (i +1 ) * (j + 1 );\n\t\tSystem.out.printf(\"%4d\", tab [i][j]);\n\t};\n\n\t}\n}", "title": "" }, { "docid": "41ef83c52bba4e6d0b4307804c5851ba", "score": "0.5474558", "text": "public static void ImageResult (String[] numberArray) throws Exception{\n \r\n \r\n ArrayList<Double> results = predictNumber(numberArray);\r\n String value =\"\";\r\n for(int index=0;index<(results.size()-1);index++)\r\n {\r\n value += ((\"Number \"+index+\" : \"+results.get(index))+\"\\n\");\r\n\r\n }\r\n // jTextPane1.setText(value);\r\n System.out.println(value);\r\n \r\n double LastResult = (results.get(results.size()-1));\r\n String aString = Double.toString(LastResult);\r\n System.out.println(\"LastResult\"+LastResult);\r\n System.out.println(\"aString\"+aString);\r\n \r\n Double d = LastResult ;\r\n Integer i = d.intValue();\r\n// CurrencyExchanger Denovalue = new CurrencyExchanger();\r\n// Denovalue.addToList(i);\r\n// \r\n \r\n getDValue(i);\r\n \r\n\r\n \r\n }", "title": "" }, { "docid": "148ccc3e0c0abaa335445e856d1938a9", "score": "0.5462106", "text": "public static void displayData(Object[][] data, Logger logger) {\n\t}", "title": "" }, { "docid": "cfe196a92bc3d366890c111b8cde27dd", "score": "0.54609954", "text": "public String toString() { return __.print_r(this.m_array, true); }", "title": "" }, { "docid": "d6ebfde3aa42eef77986b67b2082dd18", "score": "0.5460696", "text": "public double[] getAsDoubles() {\r\n\t\treturn (double[]) data;\r\n\t}", "title": "" }, { "docid": "0e5cc863728c52b00b69e199132ab6b6", "score": "0.5453913", "text": "public double[][] getData() {\r\n\t\treturn data;\r\n\t}", "title": "" }, { "docid": "bb00f013997bb3071e3c825481590294", "score": "0.54449797", "text": "public static void main(String... args){\n\n int array[][] = new int[3][4];\n\n\n for(int i = 0; i<array.length; i++){\n for(int j=0;j<array[i].length;j++){\n System.out.println(array[i][j] + \" \");\n }\n System.out.println(\"\\n++\");\n }\n\n }", "title": "" }, { "docid": "c67ce2b6b819fc4407efe2175bd6f766", "score": "0.5441683", "text": "public static void showMatriz(){\n for (int x=0; x < matriz.length; x++) {\r\n System.out.print(\"|\");\r\n for (int y=0; y < matriz[x].length; y++) {\r\n System.out.print (matriz[x][y]);\r\n if (y!=matriz[x].length-1) System.out.print(\"\\t\");\r\n }\r\n System.out.println(\"|\");\r\n }\r\n }", "title": "" }, { "docid": "b33c515198f605d447b3e9c68c4a2a2f", "score": "0.5440576", "text": "public static void main(String[] arus){\n String[][] words = new String[3][2];\n /*\n {\n (null , null),\n (null , null),\n (null , null)\n }\n */\n \n //get first element in 2d array\n words[0][0] = \"cat\";\n \n //get element in 2d array\n System.out.println(words[0][0]);\n System.out.println(words[0][1]);\n \n //iterate through array and assign value using loops\n for(int i = 0; i < words.length; i++){ //goes through each row\n for(int j = 0; j < words[i].length; j++){ // goes through each column\n words[i][j] = i * j + \" cats\"; //assign\n System.out.println(words[i][j]); //print\n } \n }\n \n System.out.println(print2DArray(words));\n }", "title": "" }, { "docid": "348a0e90b4a6a9d3c57db186ca5a0cb8", "score": "0.5436951", "text": "public void putArray(double[] array) {\n\t\tif (array.length == 2)\n\t\t\tdouble2 = array;\n\t\telse if (array.length == 6)\n\t\t\tdouble6 = array;\n\t}", "title": "" } ]
9fb577e9bcd787167dbaebfdebbca37c
Converts PDF document (located on storage) to LaTeX format and uploads resulting file to storage (asynchronously)
[ { "docid": "a4f23c71fe855398368dd53a2579ebe7", "score": "0.5238129", "text": "public com.squareup.okhttp.Call putPdfInStorageToLaTeXAsync(String name, String outPath, Integer pagesCount, String folder, final ApiCallback<File> callback) throws ApiException {\n\n ProgressResponseBody.ProgressListener progressListener = null;\n ProgressRequestBody.ProgressRequestListener progressRequestListener = null;\n\n if (callback != null) {\n progressListener = new ProgressResponseBody.ProgressListener() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n callback.onDownloadProgress(bytesRead, contentLength, done);\n }\n };\n\n progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {\n @Override\n public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {\n callback.onUploadProgress(bytesWritten, contentLength, done);\n }\n };\n }\n\n com.squareup.okhttp.Call call = putPdfInStorageToLaTeXValidateBeforeCall(name, outPath, pagesCount, folder, progressListener, progressRequestListener);\n Type localVarReturnType = new TypeToken<File>(){}.getType();\n apiClient.executeAsync(call, localVarReturnType, callback);\n return call;\n }", "title": "" } ]
[ { "docid": "abfbd0ad514683a36343d6fdd2797b9b", "score": "0.6127498", "text": "public interface PDFConverter {\n\n /**\n * Reads input html file content and returns it as string.\n *\n * @param htmlFile input html file to read content\n * @return content of given html file\n * @throws IOException in case of any error with reading file\n */\n default String getContentFromHtmlFile(File htmlFile) throws IOException {\n StringBuilder stringBuilder = new StringBuilder();\n\n lines(htmlFile.toPath()).forEach(stringBuilder::append);\n\n return stringBuilder.toString();\n }\n\n /**\n * Converts given html file to PDF and outputs in destination file path.\n *\n * @param htmlFile input html file to be converted to PDF\n * @param destFilePath path to locate destination PDF\n * @throws Exception in any errors during converting\n */\n void convert(File htmlFile, String destFilePath) throws Exception;\n}", "title": "" }, { "docid": "a0f97e08a2c1979384d18b29af61fea8", "score": "0.57912654", "text": "public String convert() throws IOException {\n File file = GoogleUploader.getInstance().path(this.path).upload();\n LOGGER.info(\"Docs file is uploaded to drive google {}\", file.getId());\n //export file to pdf\n return GoogleDownloader.getInstance().path(this.path).export(file.getId());\n }", "title": "" }, { "docid": "65a3e524ce860d3e6e00db6221d5688e", "score": "0.5682249", "text": "@Override\r\n\t\tprotected String doInBackground(String... params) {\n\t\t\ttry {\r\n\t\t\t\tURL mURL = new URL(pdfPath.replace(\" \", \"%20\"));\r\n\t\t\t\tString mRoot = Environment.getExternalStorageDirectory()\r\n\t\t\t\t\t\t.toString();\r\n\t\t\t\tString foldername = \"\";\r\n\t\t\t\tfoldername = getResources().getString(R.string.pdf);\r\n\r\n\t\t\t\tFile mDir = new File(mRoot + \"/.mobcast/\" + foldername);\r\n\r\n\t\t\t\tmFileName = Utilities.getFileNameFromURL(pdfPath);\r\n\r\n\t\t\t\tApplicationLoader.getPreferences().setIncenPdfPath(mFileName);\r\n\r\n\t\t\t\tmDir.mkdirs();\r\n\r\n\t\t\t\tFile mFile = new File(mDir, mFileName);\r\n\t\t\t\tif (mFile.exists())\r\n\t\t\t\t\tmFile.delete();\r\n\r\n\t\t\t\tURLConnection mConnection = mURL.openConnection();\r\n\t\t\t\tInputStream inputStream = mConnection.getInputStream();\r\n\t\t\t\tBufferedInputStream bis = new BufferedInputStream(inputStream);\r\n\t\t\t\tByteArrayBuffer baf = new ByteArrayBuffer(50);\r\n\t\t\t\tFileOutputStream mFileOutputStream = new FileOutputStream(mFile);\r\n\t\t\t\tint current = 0;\r\n\t\t\t\twhile ((current = bis.read()) != -1) {\r\n\t\t\t\t\tbaf.append((byte) current);\r\n\t\t\t\t}\r\n\t\t\t\tmFileOutputStream.write(baf.toByteArray());\r\n\t\t\t\tmFileOutputStream.flush();\r\n\t\t\t\tmFileOutputStream.close();\r\n\t\t\t\tinputStream.close();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t}\r\n\t\t\treturn \"false\";\r\n\t\t}", "title": "" }, { "docid": "2c1398fe612843131fb50c49f5956d65", "score": "0.5669227", "text": "public com.squareup.okhttp.Call putPdfInStorageToLaTeXCall(String name, String outPath, Integer pagesCount, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/pdf/{name}/convert/latex\"\n .replaceAll(\"\\\\{\" + \"name\" + \"\\\\}\", apiClient.escapeString(name.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n if (outPath != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"outPath\", outPath));\n if (pagesCount != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"pagesCount\", pagesCount));\n if (folder != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"folder\", folder));\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n if(progressListener != null) {\n apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {\n @Override\n public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {\n com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());\n return originalResponse.newBuilder()\n .body(new ProgressResponseBody(originalResponse.body(), progressListener))\n .build();\n }\n });\n }\n\n String[] localVarAuthNames = new String[] { };\n return apiClient.buildCall(localVarPath, \"PUT\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);\n }", "title": "" }, { "docid": "22d2968924d5a20f272f33ebcdc6907e", "score": "0.5623793", "text": "@Override\n protected void convert(String uuid,\n File inputFile, File outputDir, String contextUrl) {\n\n final Map<String, String> conversionParams;\n try {\n final Map<String, String> settings = DBHandler.getInstance().getSettings(uuid);\n conversionParams = settings != null ? settings : new HashMap<>();\n } catch (final SQLException e) {\n DBHandler.getInstance().setError(uuid, 500, \"Database failure\");\n return;\n }\n\n final String fileName = inputFile.getName();\n final String ext = fileName.substring(fileName.lastIndexOf(\".\") + 1);\n final String fileNameWithoutExt = fileName.substring(0, fileName.lastIndexOf(\".\"));\n // To avoid repeated calls to getParent() and getAbsolutePath()\n final String inputDir = inputFile.getParent();\n final String outputDirStr = outputDir.getAbsolutePath();\n final Properties properties = (Properties) getServletContext().getAttribute(BaseServletContextListener.KEY_PROPERTIES);\n\n final File inputPdf;\n final boolean isPDF = ext.toLowerCase().endsWith(\"pdf\");\n if (!isPDF) {\n final String libreOfficePath = properties.getProperty(BaseServletContextListener.KEY_PROPERTY_LIBRE_OFFICE);\n final long libreOfficeTimeout = Long.parseLong(properties.getProperty(BaseServletContextListener.KEY_PROPERTY_LIBRE_OFFICE_TIMEOUT));\n LibreOfficeHelper.Result libreOfficeConversionResult = LibreOfficeHelper.convertDocToPDF(libreOfficePath, inputFile, uuid, libreOfficeTimeout);\n switch (libreOfficeConversionResult) {\n case TIMEOUT:\n DBHandler.getInstance().setError(uuid, libreOfficeConversionResult.getCode(), \"Maximum conversion duration exceeded.\");\n return;\n case ERROR:\n DBHandler.getInstance().setError(uuid, libreOfficeConversionResult.getCode(), \"Internal error processing file\");\n return;\n case SUCCESS:\n inputPdf = new File(inputDir, fileNameWithoutExt + \".pdf\");\n if (!inputPdf.exists()) {\n LOG.log(Level.SEVERE, \"LibreOffice error found while converting to PDF: \" + inputPdf.getAbsolutePath());\n DBHandler.getInstance().setError(uuid, 1080, \"Error processing PDF\");\n return;\n }\n break;\n default:\n LOG.log(Level.SEVERE, \"Unexpected error has occurred converting office document: \" + libreOfficeConversionResult.getCode() + \" using LibreOffice\");\n DBHandler.getInstance().setError(uuid, libreOfficeConversionResult.getCode(), \"Failed to convert office document to PDF\");\n return;\n }\n } else {\n inputPdf = new File(inputDir, fileName);\n }\n\n //Makes the directory for the output file\n new File(outputDirStr, fileNameWithoutExt).mkdirs();\n final int pageCount;\n try {\n final PdfDecoderServer decoder = new PdfDecoderServer(false);\n decoder.openPdfFile(inputPdf.getAbsolutePath());\n\n decoder.setEncryptionPassword(conversionParams.getOrDefault(\"org.jpedal.pdf2html.password\", \"\"));\n\n if (decoder.isEncrypted() && !decoder.isPasswordSupplied()) {\n LOG.log(Level.SEVERE, \"Invalid Password\");\n DBHandler.getInstance().setError(uuid, 1070, \"Invalid password supplied.\");\n return;\n }\n\n pageCount = decoder.getPageCount();\n DBHandler.getInstance().setCustomValue(uuid, \"pageCount\", String.valueOf(pageCount));\n DBHandler.getInstance().setCustomValue(uuid, \"pagesConverted\", \"0\");\n decoder.closePdfFile();\n decoder.dispose();\n } catch (final PdfException e) {\n LOG.log(Level.SEVERE, \"Invalid PDF\", e);\n DBHandler.getInstance().setError(uuid, 1060, \"Invalid PDF\");\n return;\n }\n\n DBHandler.getInstance().setState(uuid, \"processing\");\n\n try {\n final boolean isContentMode = \"content\".equalsIgnoreCase(conversionParams.remove(\"org.jpedal.pdf2html.viewMode\"));\n\n final OutputModeOptions outputModeOptions = isContentMode ? new ContentOptions(conversionParams) : new IDRViewerOptions(conversionParams);\n\n final BuildVuConverter converter = new BuildVuConverter(inputPdf, outputDir, conversionParams, outputModeOptions);\n\n final long maxDuration = Long.parseLong(properties.getProperty(BaseServletContextListener.KEY_PROPERTY_MAX_CONVERSION_DURATION));\n converter.setCustomErrorTracker(new ConversionTracker(uuid, maxDuration));\n\n converter.convert();\n\n if (\"1230\".equals(DBHandler.getInstance().getStatus(uuid).get(\"errorCode\"))) {\n final String message = String.format(\"Conversion %s exceeded max duration of %dms\", uuid, maxDuration);\n LOG.log(Level.INFO, message);\n return;\n }\n\n ZipHelper.zipFolder(outputDirStr + \"/\" + fileNameWithoutExt,\n outputDirStr + \"/\" + fileNameWithoutExt + \".zip\");\n\n final String outputPathInDocroot = uuid + \"/\" + DefaultFileServlet.encodeURI(fileNameWithoutExt);\n\n if (!isContentMode) {\n DBHandler.getInstance().setCustomValue(uuid, \"previewUrl\", contextUrl + \"/output/\" + outputPathInDocroot + \"/index.html\");\n }\n DBHandler.getInstance().setCustomValue(uuid, \"downloadUrl\", contextUrl + \"/output/\" + outputPathInDocroot + \".zip\");\n\n final Storage storage = (Storage) getServletContext().getAttribute(\"storage\");\n\n if (storage != null) {\n final String remoteUrl = storage.put(new File(outputDirStr + \"/\" + fileNameWithoutExt + \".zip\"), fileNameWithoutExt + \".zip\", uuid);\n DBHandler.getInstance().setCustomValue(uuid, \"remoteUrl\", remoteUrl);\n }\n\n DBHandler.getInstance().setState(uuid, \"processed\");\n } catch (final Throwable ex) {\n LOG.log(Level.SEVERE, \"Exception thrown when converting input\", ex);\n DBHandler.getInstance().setError(uuid, 1220, \"Exception thrown when converting input: \" + ex.getMessage());\n }\n }", "title": "" }, { "docid": "877d9ab74d034d529e1229b0a38ab732", "score": "0.5613444", "text": "private void uploadPdfToStorage() {\n progressDialog.setMessage ( \"Uploading pdf...\" );\n progressDialog.show ( );\n // timestamp\n String timestamp = String.valueOf ( System.currentTimeMillis ( ) );\n\n // path of pdf in firebase storage\n String filePathAndName = \"Books/\" + timestamp;\n storageReferenceBooks = FirebaseStorage.getInstance ( ).getReference ( filePathAndName );\n storageReferenceBooks.putFile ( pdfUri ).addOnSuccessListener ( taskSnapshot -> {\n // upload successful, get the url of uploaded file\n Task<Uri> uriTask = taskSnapshot.getStorage ( ).getDownloadUrl ( );\n while (!uriTask.isSuccessful ( )) ;\n String uploadedPdfUrl = \"\" + uriTask.getResult ( );\n // set the link to firebase realtime database\n uploadPdfIntoDatabase ( uploadedPdfUrl, timestamp );\n } ).addOnFailureListener ( e -> {\n progressDialog.dismiss ( );\n FancyToast.makeText ( getApplicationContext ( ), \"Failed to upload pdf \" + e.getMessage ( ), FancyToast.LENGTH_LONG, FancyToast.ERROR, false ).show ( );\n } );\n }", "title": "" }, { "docid": "f273245db93b048de69a377d8f7fd27d", "score": "0.56133765", "text": "private void writePDFTable() {\n boolean okToUpload = true;\n try {\n makeSecurePdf();\n } catch (IOException e) {\n okToUpload = false;\n e.printStackTrace();\n final String toRelay = \"IO Error: \" + e.getLocalizedMessage();\n progressStatus.setText(toRelay);\n } catch (DocumentException e) {\n okToUpload = false;\n e.printStackTrace();\n final String toRelay = \"Document Error: \" + e.getLocalizedMessage();\n progressStatus.setText(toRelay);\n }finally {\n if(okToUpload){\n email();\n }else{\n Toast.makeText(this, \"Please inform the researcher about the above error\", Toast.LENGTH_LONG).show();\n }\n\n }\n }", "title": "" }, { "docid": "91dd6ecd8efbc41b6712df8c96b7905e", "score": "0.5539574", "text": "public void convertToFile(String filePath) throws IOException {\n if (!(filePath != null && !filePath.isEmpty()))\n throw new Error(createInvalidValueMessage(filePath, \"convertToFile\", \"pdf-to-pdf\", \"The string must not be empty.\", \"convert_to_file\"), 470);\n \n FileOutputStream outputFile = new FileOutputStream(filePath);\n convertToStream(outputFile);\n outputFile.close();\n }", "title": "" }, { "docid": "74bf91e372ecab0a9ac524c232eb3545", "score": "0.55298346", "text": "public static boolean convertToPdf(String fileInput, String fileOutput) {\n try {\n File inputFile = new File(fileInput);\n File outputFile = new File(fileOutput);\n\n // connect to an OpenOffice.org instance running on port 8100\n OpenOfficeConnection connection = new SocketOpenOfficeConnection();\n connection.connect();\n\n // convert\n DocumentConverter converter = new OpenOfficeDocumentConverter(connection);\n converter.convert(inputFile, outputFile);\n\n // close the connection\n connection.disconnect();\n return true;\n } catch (Exception ex) {\n ex.printStackTrace(System.out);\n return false;\n }\n }", "title": "" }, { "docid": "aa747b5c6fda46acc19e2643dc6ddb9d", "score": "0.5482064", "text": "public com.squareup.okhttp.Call putPdfInRequestToLaTeXCall(String outPath, Integer pagesCount, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n Object localVarPostBody = file;\n\n // create path and map variables\n String localVarPath = \"/pdf/convert/latex\";\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n if (outPath != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"outPath\", outPath));\n if (pagesCount != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"pagesCount\", pagesCount));\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n if(progressListener != null) {\n apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {\n @Override\n public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {\n com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());\n return originalResponse.newBuilder()\n .body(new ProgressResponseBody(originalResponse.body(), progressListener))\n .build();\n }\n });\n }\n\n String[] localVarAuthNames = new String[] { };\n return apiClient.buildCall(localVarPath, \"PUT\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);\n }", "title": "" }, { "docid": "79877621ab0955410b3a162ff8d7eebc", "score": "0.54608357", "text": "private ByteArrayOutputStream pdfFopProcessing(String documentContent, String xslFilePath) throws Exception {\n File xslFile = new File(xslFilePath);\n\n StreamSource transformSrc = new StreamSource(xslFile); // creating transformation source\n StreamSource source = new StreamSource(new StringReader(documentContent)); // init transformation subject\n\n FOUserAgent userAgent = fopFactory.newFOUserAgent(); // init user agent required for transformation\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); // output stream used to store results\n Transformer xslFoTransformer = transformerFactory.newTransformer(transformSrc);\n\n // fop instance with desired output format\n Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, userAgent, outputStream);\n Result result = new SAXResult(fop.getDefaultHandler()); // resulting sax events\n\n /* Starting transformation and fop processing */\n xslFoTransformer.transform(source, result);\n\n return outputStream;\n\n }", "title": "" }, { "docid": "18005a7e61991a8c226716587ba0b5d2", "score": "0.5439059", "text": "private void transform( String strArtifactId, String strScmUrl, String strInput, String strOutput )\n {\n try\n {\n String strRepository = getRepositoryName( strScmUrl );\n String strDocument = XDoc2MarkdownService.convert( strArtifactId, strRepository, new FileInputStream( strInput ) );\n BufferedWriter writer = new BufferedWriter( new FileWriter( strOutput ) );\n writer.write( strDocument );\n writer.close();\n getLog().info( strDocument );\n }\n catch( ParserConfigurationException | SAXException | IOException ex )\n {\n getLog().error( ex.getMessage(), ex );\n }\n }", "title": "" }, { "docid": "d587256043185bc433c0066a10f4ea79", "score": "0.54223204", "text": "private static boolean convertPgf2pdf(final File pgfFile,\r\n final File texFile) throws IOException, InterruptedException {\r\n \r\n // Create the LaTeX file\r\n Writer writer = new FileWriter(texFile);\r\n writer.write(\"\\\\documentclass{article}\\n\");\r\n writer.write(\"\\\\usepackage{lmodern}\\n\");\r\n writer.write(\"\\\\usepackage[T1]{fontenc}\\n\");\r\n writer.write(\"\\\\usepackage{amssymb}\\n\");\r\n writer.write(\"\\\\usepackage{pifont}\\n\");\r\n writer.write(\"\\\\usepackage{textcomp}\\n\");\r\n writer.write(\"\\\\usepackage{tikz}\\n\");\r\n writer.write(\"\\\\pagestyle{empty}\\n\");\r\n writer.write(\"\\\\begin{document}\\n\");\r\n writer.write(\"\\\\input{\" + pgfFile.getAbsolutePath().replace('\\\\', '/')\r\n + \"}\\n\");\r\n writer.write(\"\\\\end{document}\\n\");\r\n writer.close();\r\n \r\n String[] commandArray = {\"pdflatex\", \"-interaction=batchmode\",\r\n texFile.getAbsolutePath()};\r\n File compileDir = texFile.getParentFile();\r\n Runtime runtime = Runtime.getRuntime();\r\n Process process = runtime.exec(commandArray, null, compileDir);\r\n process.waitFor();\r\n return (process.exitValue() == 0);\r\n }", "title": "" }, { "docid": "26fb3cb5862f24820a019f9f1575a63c", "score": "0.54093313", "text": "public void test() {\n try {\n PDDocument doc = new PDDocument();\n PDPage page = new PDPage();\n doc.addPage(page);\n PDPageContentStream content = new PDPageContentStream(doc, page);\n content.beginText();\n content.setFont(PDType1Font.HELVETICA, 12);\n content.newLineAtOffset(100, 700);\n content.showText(\"Apache PDFBox Create PDF Document\");\n content.endText();\n content.close();\n // FileSystemResource file = new FileSystemResource(\"src//main//resources//PDFDokumenti//simple.pdf\");\n doc.save(new File(\"src/main/resources/PDFDokumenti/simple.pdf\"));\n //doc.save(new FileSystemResource(\"src//main//resources//PDFDokumenti//simple.pdf\").getFile());\n doc.close();\n\n } catch (IOException e) {\n }\n }", "title": "" }, { "docid": "6d5bc43b15ec906246a4776d8e67c930", "score": "0.5377328", "text": "@Override\r\n\tpublic void writeToPdf() {\r\n\t\tDOCUMENT.open();\r\n\t\twriteSchedule();\r\n\t\tDOCUMENT.close();\r\n\t}", "title": "" }, { "docid": "7e878a51cf69ba78accce0589a11db36", "score": "0.5355673", "text": "@Local\npublic interface PdfConverterLocal {\n void init();\n// void setTimerService();\n String convertWord(String fileFullPath,String pdfFileFullPath) throws Exception;\n String convertExcel(String fileFullPath,String pdfFileFullPath) throws Exception;\n String unionExcel(String dirPath) throws Exception;\n}", "title": "" }, { "docid": "2f3cd88cbd6f41792f5c855d24f0a713", "score": "0.5340317", "text": "public static void main(String[] args) {\n\t\tprocessPdf();\r\n\t}", "title": "" }, { "docid": "5f0313501535576e6a1dc0709ff8684a", "score": "0.53164244", "text": "private void writePdf(HttpServletResponse response) throws IOException{\n\t\tresponse.setContentType(\"application/pdf\");\n\t\t\n\t\ttry(InputStream in = getServletContext().getResourceAsStream(filepath);\n\t\t\t\tOutputStream out = response.getOutputStream();){\n\t\t\t\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tint length = -1;\n\t\t\twhile((length = in.read(buffer)) != -1) {\n\t\t\t\tout.write(buffer, 0, length);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "5ff34f6de6c619f02eec6a93c5f5b8dc", "score": "0.5314598", "text": "void setPdfFile(String path);", "title": "" }, { "docid": "ea624efad940ed6212ef4ba84dcde183", "score": "0.53145015", "text": "public PdfToTextClient(String userName, String apiKey) {\n this.helper = new ConnectionHelper(userName, apiKey);\n fields.put(\"input_format\", \"pdf\");\n fields.put(\"output_format\", \"txt\");\n }", "title": "" }, { "docid": "dca1135bff8f5f2e809b6275a2a13dce", "score": "0.5307202", "text": "public void createPdf(Object adoc,String outputFile) throws IOException {\n\t\tif(adoc instanceof File) { adoc=((File)adoc).getAbsoluteFile(); }\r\n\t\t\r\n\t\t\r\n\t\tFile file=getFile(outputFile);\r\n\t\tFile parent=file.getParentFile();\r\n\t\tif(!parent.exists()) { parent.mkdirs(); }\r\n\t\tString parentDir=parent.getAbsolutePath();\r\n\t\toldWorkDir=DocUtils.changeWorkDir(parentDir);\t\t\r\n\t\toutputFile=file.getName();\r\n\t\tLOG.debug(\"create pdf {} in dir {} (old workDir:{})\",outputFile,parentDir,oldWorkDir);\r\n\t\t\t\r\n//\t\t// copy adoc to new workDir \r\n//\t\tFile newFile=null;\r\n//\t\tif(adoc instanceof File) {\r\n//\t\t\tFile orgFile=(File)adoc;\r\n//\t\t\tnewFile=new File(orgFile.getName());\r\n//\t\t\tFiles.copy(orgFile.toPath(), newFile.toPath());\r\n//\t\t\tadoc=newFile;\r\n//\t\t}\r\n\t\t\r\n\t\tOptions options=new Options();\r\n\t\toptions.setSafe(SafeMode.UNSAFE);\r\n\t\t\r\n\t\tif(asciidoctorAttribtues!=null) { options.setAttributes(asciidoctorAttribtues); }\r\n\t\t\r\n//\t\toptions.setOption(\"imagesDir\", \"../images/\");\r\n//\t\toptions.setOption(\"imagesoutdir\", \"../images/\");\r\n//\t\toptions.setOption(\"outputDirectory\", \"doc\");\r\n\t\toptions.setBackend(\"pdf\");\t\t\r\n\t\t\r\n//System.out.println(\"o:\"+outputFile);\t\t\r\n\t\toptions.setToFile(outputFile);\r\n\t\t\t\r\n\t\tinit();\r\n\t\tif(adoc instanceof String) {\r\n\t\t\tasciidoctor.convert((String)adoc,options);\r\n\t\t}else if(adoc instanceof File) {\r\n\t\t\tasciidoctor.convertFile((File)adoc,options);\r\n\t\t}else { throw new IOException(\"unkown adoc \"+adoc); }\r\n\t\t\r\n//\t\t// remove copy orgfile\r\n//\t\tif(newFile!=null && newFile.exists()) { newFile.delete(); }\r\n\t\t// change back to old workDir\r\n\t\tif(oldWorkDir!=null) { DocUtils.replaceWorkDir(oldWorkDir); }\t\t\r\n\t}", "title": "" }, { "docid": "840bdc5e251a92d433cb2d0696821aaf", "score": "0.5290213", "text": "public CreatorPdf(String path) {\r\n\t\tfilePDF = new File(path + File.separator + \"pdfs\");\r\n\t\tfileTex = new File(path);\r\n\t}", "title": "" }, { "docid": "935b520667f27e2607f00b840477eed5", "score": "0.52645034", "text": "public void handleNoteContent() throws Exception{\n \n String xhtmlFilePath;\n SSUri fileUri;\n String pdfFilePath;\n \n try{\n \n xhtmlFilePath = localWorkPath + SSServCaller.fileIDFromURI (user, SSServCaller.vocURICreate(SSFileExtE.xhtml));\n fileUri = SSServCaller.vocURICreate (SSFileExtE.pdf);\n pdfFilePath = localWorkPath + SSServCaller.fileIDFromURI (user, fileUri);\n \n SSFileU.writeStr(\n note.getContent(),\n xhtmlFilePath);\n \n try{\n \n SSFileU.writeStr(\n downnloadNoteResourcesAndFillXHTMLWithLocalImageLinks(xhtmlFilePath),\n xhtmlFilePath);\n \n SSFileU.writePDFFromXHTML(\n pdfFilePath,\n xhtmlFilePath,\n true);\n \n }catch(Exception error){\n \n SSServErrReg.reset();\n SSLogU.warn(\"PDF from XHTML failed\");\n \n try{\n SSFileU.writeStr(\n reduceXHTMLToTextAndImage(xhtmlFilePath),\n xhtmlFilePath);\n \n SSFileU.writeStr(\n downnloadNoteResourcesAndFillXHTMLWithLocalImageLinks(xhtmlFilePath),\n xhtmlFilePath);\n \n SSFileU.writePDFFromXHTML(\n pdfFilePath,\n xhtmlFilePath,\n true);\n \n }catch(Exception error1){\n \n SSServErrReg.reset();\n SSLogU.warn(\"PDF from reduced XHTML failed\");\n return;\n }\n }finally{\n \n try{\n SSFileU.delFile(xhtmlFilePath);\n }catch(Exception error){}\n }\n \n SSServCaller.entityEntityToPrivCircleAdd(\n user,\n fileUri,\n SSEntityE.file,\n null,\n null,\n null,\n false);\n \n for(SSUri file : SSServCaller.entityFilesGet(user, noteUri)){\n \n SSServCaller.entityRemove(file, false);\n \n try{\n SSFileU.delFile(localWorkPath + SSServCaller.fileIDFromURI (user, file));\n }catch(Exception error){\n SSLogU.warn(\"evernote note file couldnt be removed\");\n }\n }\n \n SSServCaller.entityFileAdd(\n user,\n noteUri,\n fileUri,\n false);\n \n SSDataImportEvernoteThumbHelper.addThumbFromFile(\n user,\n localWorkPath,\n noteUri,\n fileUri,\n false);\n \n }catch(Exception error){\n SSServErrReg.regErrThrow(error);\n }\n }", "title": "" }, { "docid": "370f19d69a71c06ec044e315f9fbfb17", "score": "0.5254719", "text": "private void gestionarTipoPdf(Uri uriEntrada, String extension, Recuerdo recuerdo){\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Uri uriFinal = copiarArchivo(uriEntrada,\"pdf\", extension);\n // añadir a Lista miniRecursos para el RecyclerView.\n // Discriminar si es modo edición (Recurso) o creación (miniRecuerso)\n if (uriFinal!=null) {\n // evaluar si Recuerdo es nulo para crear miniRecuerdo (creación Recuerdo) o si no lo es, Recuerdo (edición)\n if (recuerdo==null) {\n // Crear thumbnail del drawable \"tipo_pdf\"\n //Bitmap bitmap= BitmapFactory.decodeResource(getApplication().getResources(),R.drawable.tipo_pdf);\n Bitmap bitmap= drawableToBitmap(R.drawable.tipo_pdf);\n Bitmap mini = ThumbnailUtils.extractThumbnail(bitmap, 80, 80);\n recursosMinis.add(new RecursoMini(mini, uriFinal));\n //liveRecursosMini.setValue(recursosMinis);\n liveRecursosMini.postValue(recursosMinis);\n }else{\n long fecha=utils.getTimestamp();\n int id=recuerdo.getId();\n long size=getFileSize(uriFinal);\n Recurso recurso=new Recurso(fecha,size,uriFinal.toString(),id);\n //mRepository.crearRecurso(r);\n crearRecursoConIdBd(recurso);\n }\n\n // Comprobar si hay que hacer OCR o no\n if (mPrefs.getBoolean(\"OCR\",false)) {\n String txt = hacerOCR(uriFinal,\"pdf\");\n // Modo Edición: se trocea el texto y se guarda en bd ya que se conoce el id de Recuerdo\n // Modo Creación: se trocea el texto y se guarda en el arraylista. El OCR se creará al guardar el Recuerdo y se conozca su id\n if (recuerdo!=null) { // Mode edición\n trocearTXT(txt, 250,true);\n if (trozosEdicion.size() > 0) {\n // Recorrer el ArrayList y crear el objeto OCR y registro en bd\n for (int i = 0; i < trozosEdicion.size(); i++) {\n OCR mOCR = new OCR(trozosEdicion.get(i), recuerdo.getId(),uriFinal.toString());\n mRepository.crearOCR(mOCR);\n }\n }\n }else{\n trocearTXT(txt, 250,false); // Modo nuevo Recuerdo\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n Toast.makeText(getApplication(),\"No se pudo agregar la imagen\",Toast.LENGTH_LONG).show();\n }\n }\n }).start();\n }", "title": "" }, { "docid": "1a014269faabdb601bef8994a5633173", "score": "0.5245746", "text": "public static void run() {\n String outputDirectory = Utils.getOutputDirectoryPath(\"RenderDocumentAttachments\");\n String pageFilePathFormat = Utils.combinePaths(outputDirectory, \"page_{0}.html\");\n\n Attachment attachment = CacheableFactory.getInstance().newAttachment(\"attachment-word.doc\");\n\n try (ByteArrayOutputStream attachmentStream = new ByteArrayOutputStream();\n Viewer viewer = new Viewer(SampleFiles.SAMPLE_MSG_WITH_ATTACHMENTS)) {\n viewer.saveAttachment(attachment, attachmentStream);\n\n try (InputStream inputStream = new ByteArrayInputStream(attachmentStream.toByteArray());\n Viewer attachmentViewer = new Viewer(inputStream)) {\n HtmlViewOptions options = HtmlViewOptions.forEmbeddedResources(pageFilePathFormat);\n\n attachmentViewer.view(options);\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n System.out.println(\"\\nAttachment rendered successfully.\\nCheck output in \" + outputDirectory);\n }", "title": "" }, { "docid": "5536c1c9bbb7930ccd5c58e5b4f9d32c", "score": "0.52314204", "text": "public void convertStringToFile(String text, String filePath) throws IOException {\n if (!(filePath != null && !filePath.isEmpty()))\n throw new Error(createInvalidValueMessage(filePath, \"convertStringToFile::file_path\", \"html-to-pdf\", \"The string must not be empty.\", \"convert_string_to_file\"), 470);\n \n FileOutputStream outputFile = new FileOutputStream(filePath);\n try {\n convertStringToStream(text, outputFile);\n outputFile.close();\n }\n catch(Error why) {\n outputFile.close();\n new File(filePath).delete();\n throw why;\n }\n }", "title": "" }, { "docid": "01c31fc6c65c8e85a1a089d0883f73f1", "score": "0.52083117", "text": "public static void extracted()\n\t\t\tthrows ClassNotFoundException, SQLException, DocumentException, FileNotFoundException {\n\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/sakila\", \"root\", \"Shriya!123\");\n\t\tSystem.out.println(\"Connected to DB\");\n\t\tjava.sql.Statement stmt = conn.createStatement();\n\t\t/* Define the SQL query */\n\t\tResultSet query_set = stmt.executeQuery(\"SELECT ACTOR_ID,FIRST_NAME,LAST_NAME FROM SAKILA.ACTOR\");\n\t\t/* Step-2: Initialize PDF documents - logical objects */\n\t\t//String file_name = \"Documents\\\\pdf_report_from_sql_using_java.pdf\";\n\t\tDocument my_pdf_report = new Document();\n\t\tPdfWriter.getInstance(my_pdf_report, new FileOutputStream(\"pdf_report_from_sql_using_java.pdf\"));\n\t\tSystem.out.println(\"PDF\");\n\t\tmy_pdf_report.open();\n\t\t// we have four columns in our table\n\t\tPdfPTable my_report_table = new PdfPTable(4);\n\t\t// create a cell object\n\t\tPdfPCell table_cell;\n\t\tSystem.out.println(\"Connected to DB\");\n\t\twhile (query_set.next()) {\n\t\t\tString actor_id = query_set.getString(\"ACTOR_ID\");\n\t\t\ttable_cell = new PdfPCell(new Phrase(actor_id));\n\t\t\tmy_report_table.addCell(table_cell);\n\t\t\tString first_name = query_set.getString(\"FIRST_NAME\");\n\t\t\ttable_cell = new PdfPCell(new Phrase(first_name));\n\t\t\tmy_report_table.addCell(table_cell);\n\t\t\tString last_name = query_set.getString(\"LAST_NAME\");\n\t\t\ttable_cell = new PdfPCell(new Phrase(last_name));\n\t\t\tmy_report_table.addCell(table_cell);\n\t\t}\n\t\t/* Attach report table to PDF */\n\t\tmy_pdf_report.add(my_report_table);\n\t\tmy_pdf_report.close();\n\n\t\t/* Close all DB related objects */\n\t\tquery_set.close();\n\t\tstmt.close();\n\t\tconn.close();\n\t}", "title": "" }, { "docid": "393201eace22092ea6fcf7c9e09b897f", "score": "0.52038854", "text": "@Test\n public void pdf_should_be_rendered_to_object_for_pdf_backend() {\n IRubyObject o = asciidoctor.convert(DOCUMENT, options().backend(\"pdf\").get(), IRubyObject.class);\n assertThat(o.getMetaClass().getRealClass().getName(), is(\"Asciidoctor::PDF::Converter\"));\n }", "title": "" }, { "docid": "7a1228bdda9dd1760fa02c2408d60db2", "score": "0.5179266", "text": "public com.squareup.okhttp.Call getPdfInStorageToLaTeXCall(String name, Integer pagesCount, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/pdf/{name}/convert/latex\"\n .replaceAll(\"\\\\{\" + \"name\" + \"\\\\}\", apiClient.escapeString(name.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n if (pagesCount != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"pagesCount\", pagesCount));\n if (folder != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"folder\", folder));\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"multipart/form-data\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n if(progressListener != null) {\n apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {\n @Override\n public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {\n com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());\n return originalResponse.newBuilder()\n .body(new ProgressResponseBody(originalResponse.body(), progressListener))\n .build();\n }\n });\n }\n\n String[] localVarAuthNames = new String[] { };\n return apiClient.buildCall(localVarPath, \"GET\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);\n }", "title": "" }, { "docid": "153821ac8bb04804d640b2db6b2916b7", "score": "0.5159702", "text": "public com.squareup.okhttp.Call getPdfInStorageToLaTeXAsync(String name, Integer pagesCount, String folder, final ApiCallback<File> callback) throws ApiException {\n\n ProgressResponseBody.ProgressListener progressListener = null;\n ProgressRequestBody.ProgressRequestListener progressRequestListener = null;\n\n if (callback != null) {\n progressListener = new ProgressResponseBody.ProgressListener() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n callback.onDownloadProgress(bytesRead, contentLength, done);\n }\n };\n\n progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {\n @Override\n public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {\n callback.onUploadProgress(bytesWritten, contentLength, done);\n }\n };\n }\n\n com.squareup.okhttp.Call call = getPdfInStorageToLaTeXValidateBeforeCall(name, pagesCount, folder, progressListener, progressRequestListener);\n Type localVarReturnType = new TypeToken<File>(){}.getType();\n apiClient.executeAsync(call, localVarReturnType, callback);\n return call;\n }", "title": "" }, { "docid": "dfc299691d0d58b73a97b86959dfc14b", "score": "0.51554173", "text": "public void createPdf(String srcFilename) throws IOException, DocumentException {\n \tDocument document = new Document(new Rectangle(595, 842));\n String resultFilename = Paths.get(FilenameUtils.removeExtension(srcFilename)).toString() + \".pdf\"; \n \tPdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(resultFilename));\n \tdocument.open();\n \t\n PdfContentByte cb = writer.getDirectContent();\n PdfTemplate template = cb.createTemplate(595, 842);\n drawSvg(template, srcFilename);\n cb.addTemplate(template, 0, 0);\n document.close();\n }", "title": "" }, { "docid": "8837ff812997a7428999d91ca0b63952", "score": "0.51303786", "text": "public static void main(String[] args) throws IOException, PdfException,\n InterruptedException {\n PdfDecoder decode_pdf = new PdfDecoder(true);\n\n /**set mappings for non-embedded fonts to use*/\n FontMappings.setFontReplacements();\n\n /**open the PDF file - can also be a URL or a byte array*/\n try {\n decode_pdf.openPdfFile(\"D:\\\\王紫阳\\\\任务\\\\测试pdf\\\\东华智慧水利.pdf\"); //file\n //decode_pdf.openPdfFile(\"C:/myPDF.pdf\", \"password\"); //encrypted file\n //decode_pdf.openPdfArray(bytes); //bytes is byte[] array with PDF\n //decode_pdf.openPdfFileFromURL(\"http://www.mysite.com/myPDF.pdf\",false);\n\n /**get page 1 as an image*/\n //page range if you want to extract all pages with a loop\n int start = 1, end = decode_pdf.getPageCount();\n for (int i = start; i < end + 1; i++) {\n BufferedImage img = decode_pdf.getPageAsImage(i);\n ImageIO.write(img, \"jpg\", new File(\"D:\\\\王紫阳\\\\任务\\\\测试pdf\\\\东华智慧水利_\" + i + \".jpg\"));\n }\n /**close the pdf file*/\n decode_pdf.closePdfFile();\n\n } catch (PdfException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "4da373fd9b9a0124f08c11562e882f59", "score": "0.51207745", "text": "@Override\n public void run() throws Exception {\n CommandLine cmdLine = new CommandLine(\"gs\");\n cmdLine.addArgument(\"-dPDFA\");\n cmdLine.addArgument(\"-dBATCH\");\n cmdLine.addArgument(\"-dNOPAUSE\");\n cmdLine.addArgument(\"-sProcessColorModel=DeviceCMYK\");\n cmdLine.addArgument(\"-sDEVICE=pdfwrite\");\n cmdLine.addArgument(\"-dPDFACompatibilityPolicy=1\");\n cmdLine.addArgument(\"-sOutputFile=${outFile}\");\n cmdLine.addArgument(\"${file}\");\n HashMap<String, File> map = new HashMap<>();\n map.put(\"file\", new File(\"invoice.pdf\"));\n map.put(\"outFile\", new File(\"invoice.pdfa\"));\n cmdLine.setSubstitutionMap(map);\n\n DefaultExecuteResultHandler resultHandler = new DefaultExecuteResultHandler();\n\n// ExecuteWatchdog watchdog = new ExecuteWatchdog(60 * 1000);\n// Executor executor = new DefaultExecutor();\n// executor.setExitValue(1);\n// executor.setWatchdog(watchdog);\n// executor.execute(cmdLine, resultHandler);\n\n // some time later the result handler callback was invoked so we\n // can safely request the exit value\n resultHandler.waitFor();\n @SuppressWarnings(\"unused\")\n int exitValue = resultHandler.getExitValue();\n }", "title": "" }, { "docid": "e9667457f4afc901466d291295cabb8d", "score": "0.5118466", "text": "public static void fromDocx(File docxFile) throws Docx4JException, IOException {\n\t\tString baseDir = docxFile.getParent();\n\t\tString fileName = FilenameUtils.getBaseName(docxFile.getAbsolutePath());\n\t\tString filePdfPath = baseDir + File.separator + fileName + \".pdf\";\n\t\t\n\t\t/*try {\n\t\t\tWordprocessingMLPackage mlPackage = WordprocessingMLPackage.load(docxFile);\n\t\t\t\n\t\t\tFieldUpdater updater = new FieldUpdater(mlPackage);\n\t\t\tupdater.update(true);\n\t\t\t\n\t\t\tmlPackage.setFontMapper(new IdentityPlusMapper());\n\t\t\t\n\t\t\tFOSettings foSettings = Docx4J.createFOSettings();\n\t\t\tfoSettings.setWmlPackage(mlPackage);\n\t\t\t\n\t\t\tDocx4J.toFO(\n\t\t\t\tfoSettings, \n\t\t\t\tnew FileOutputStream(filePdfPath), \n\t\t\t\tDocx4J.FLAG_EXPORT_PREFER_XSL\n\t\t\t);\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Error in converting {} to pdf. Message : {}\", \n\t\t\t\t\tFilenameUtils.getBaseName(docxFile.getAbsolutePath()), \n\t\t\t\t\te.getMessage());\n\t\t} finally {\n\t\t\tfromPdf(new File(filePdfPath));\n\t\t}*/\n\t\t\n\t\ttry {\n\t\t\tXWPFDocument document = new XWPFDocument(new FileInputStream(docxFile));\n\t\t\tPdfOptions options = PdfOptions.create();\n\t\t\tPdfConverter.getInstance().convert(document, new FileOutputStream(filePdfPath), options);\n\t\t} finally {\n\t\t\tfromPdf(new File(filePdfPath));\n\t\t}\n\t}", "title": "" }, { "docid": "4adb816c45e855ca2d12bd8cdbc478b0", "score": "0.5115145", "text": "@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n private void createPdf(String sometext){\n PdfDocument document = new PdfDocument();\n // crate a page description\n PdfDocument.PageInfo pageInfo = new PdfDocument.PageInfo.Builder(300, 600, 1).create();\n // start a page\n PdfDocument.Page page = document.startPage(pageInfo);\n Canvas canvas = page.getCanvas();\n Paint paint = new Paint();\n paint.setColor(Color.RED);\n canvas.drawCircle(50, 50, 30, paint);\n paint.setColor(Color.BLACK);\n canvas.drawText(sometext, 80, 50, paint);\n //canvas.drawt\n // finish the page\n document.finishPage(page);\n// draw text on the graphics object of the page\n // Create Page 2\n pageInfo = new PdfDocument.PageInfo.Builder(300, 600, 2).create();\n page = document.startPage(pageInfo);\n canvas = page.getCanvas();\n paint = new Paint();\n paint.setColor(Color.BLUE);\n canvas.drawCircle(100, 100, 100, paint);\n document.finishPage(page);\n // write the document content\n String directory_path = Environment.getExternalStorageDirectory().getPath() + \"/mypdf/\";\n File file = new File(directory_path);\n if (!file.exists()) {\n file.mkdirs();\n }\n String targetPdf = directory_path+\"test-2.pdf\";\n File filePath = new File(targetPdf);\n try {\n document.writeTo(new FileOutputStream(filePath));\n Toast.makeText(this, \"Done\", Toast.LENGTH_LONG).show();\n } catch (IOException e) {\n Log.e(\"main\", \"error \"+e.toString());\n Toast.makeText(this, \"Something wrong: \" + e.toString(), Toast.LENGTH_LONG).show();\n }\n // close the document\n document.close();\n }", "title": "" }, { "docid": "0a303c7096a29b6c9cb960b322ac9603", "score": "0.50647616", "text": "void encryptedPdf(Object source);", "title": "" }, { "docid": "db170433dcc2f1315fa5edcc172873c8", "score": "0.5057324", "text": "protected byte[] downloadRenderPdf(final URL url) throws IOException, DocumentException {\n\n\t\tAbstractImageProvider imageProvider = new AbstractImageProvider() {\n\n\t\t\t@Override\n\t\t\tpublic Image retrieve(final String src) {\n\t\t\t\tImage img = super.retrieve(src);\n\t\t\t\tif (img != null)\n\t\t\t\t\treturn img;\n\t\t\t\ttry {\n\t\t\t\t\tsuper.store(src, Image.getInstance(new URL(src)));\n\t\t\t\t} catch (BadElementException | IOException ex) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\treturn super.retrieve(src);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String getImageRootPath() {\n\t\t\t\treturn url.getPath();\n\t\t\t}\n\t\t};\n\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\n\t\tDocument document = new Document();\n\n\t\tPdfWriter writer = PdfWriter.getInstance(document, baos);\n\t\tdocument.open();\n\n\t\tCSSResolver cssResolver = new StyleAttrCSSResolver();\n\t\tCssFile cssFile = XMLWorkerHelper.getCSS(new ByteArrayInputStream(\"body {font-family:open sans}\".getBytes()));\n\t\tcssResolver.addCss(cssFile);\n\n\t\tXMLWorkerFontProvider fontProvider = new XMLWorkerFontProvider(XMLWorkerFontProvider.DONTLOOKFORFONTS);\n\t\tfor (URL fontURL : fontsList.getFontUrls())\n\t\t\tfontProvider.register(fontURL.toString());\n\t\tCssAppliers cssAppliers = new CssAppliersImpl(fontProvider);\n\n\t\tHtmlPipelineContext htmlContext = new HtmlPipelineContext(cssAppliers);\n\t\thtmlContext.setTagFactory(Tags.getHtmlTagProcessorFactory());\n\t\thtmlContext.setImageProvider(imageProvider);\n\n\t\tPdfWriterPipeline pdf = new PdfWriterPipeline(document, writer);\n\t\tHtmlPipeline htmlPipeline = new HtmlPipeline(htmlContext, pdf);\n\t\tCssResolverPipeline css = new CssResolverPipeline(cssResolver, htmlPipeline);\n\n\t\tXMLWorker worker = new XMLWorker(css, true);\n\t\tXMLParser p = new XMLParser(worker);\n\t\tp.parse(new StringReader(htmlDownloaderCleaner.downloadCleanHTML(url)));\n\n\t\tdocument.close();\n\t\treturn baos.toByteArray();\n\t}", "title": "" }, { "docid": "c4ac8e40de0fef701c2fd1a62b331c71", "score": "0.5041261", "text": "public static void run() throws Exception {\r\n PdfLoadOptions loadOptions = new PdfLoadOptions();\r\n // Constants.InDocumentPdf is an absolute or relative path to your document. Ex: \"C:\\\\Docs\\\\document.pdf\"\r\n Watermarker watermarker = new Watermarker(Constants.InDocumentPdf, loadOptions);\r\n\r\n PdfContent pdfContent = watermarker.getContent(PdfContent.class);\r\n\r\n File imageFile = new File(Constants.TestPng);\r\n byte[] imageBytes = new byte[(int) imageFile.length()];\r\n InputStream imageStream = new FileInputStream(imageFile);\r\n imageStream.read(imageBytes);\r\n imageStream.close();\r\n\r\n // Replace image\r\n for (PdfXObject xObject : pdfContent.getPages().get_Item(0).getXObjects())\r\n {\r\n if (xObject.getImage() != null)\r\n {\r\n xObject.setImage(new PdfWatermarkableImage(imageBytes));\r\n }\r\n }\r\n\r\n // Save document\r\n watermarker.save(Constants.OutDocumentPdf);\r\n\r\n watermarker.close();\r\n }", "title": "" }, { "docid": "3dae3c7b0a385c2937e953f3265d8cb2", "score": "0.5040467", "text": "public String execExportAsPDFFunc(){\n\t\t\n\t\ttry{\n\t\t\tPhantomBean phtombean = new PhantomBean();\n\t\t\tphtombean.setRenderType(this.renderType);\n\t\t\tphtombean.setRenderSize(this.renderSize);\n\t\t\tphtombean.setUrl(this.url);\n\t\t\tphtombean.setZoomFactor(this.zoomFactor) ;\n\t\t\n\t\t\t\n\t\t\tif(phtombean != null){\n\t\t\t\t\n\t\t\t\n\t\t\t\tJSONObject input = JSONObject.fromObject(phtombean);\n\t String inputstr = input.toString();\n\t \n\t MultivaluedMap<String, String> param = new MultivaluedMapImpl();\n\t param.add(\"request\", inputstr);\n\t\t\t\t\n\t\t\t\tClient client = BIGWebServiceClientFactory.getClient();\n\t\t WebResource r = client.resource(ParamsUtil.WS_URL + \"/ws/newtask/savepdf\");\n\t\t exportURL= r.queryParams(param).type(MediaType.TEXT_PLAIN_TYPE).get(new GenericType<String>() {});\n\t\t \n\t\t int endIndex = request.getRequestURL().length() - request.getPathInfo().length() + 1;\n\t String url = request.getRequestURL().substring(0, endIndex);\n\t exportURL = url+exportURL;\n\t\t\t} \n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\t\t\n\t\treturn SUCCESS;\n\n\t}", "title": "" }, { "docid": "ef6d5b60d1863ba9b80f1a4bd6902129", "score": "0.50400686", "text": "public void createPdf(String inputFile,String outputFile) throws IOException, DocumentException, CssResolverException {\r\n\r\n\t\tSystem.out.println(\"START...\");\r\n\r\n\t\tSystem.out.println(\"inputFile: \" + inputFile);\r\n\t\tSystem.out.println(\"outputFile: \" + outputFile);\r\n\r\n\t\ttry{\r\n\r\n\t\t\t// Create a TagProcessor\r\n\t\t\tDefaultTagProcessorFactory htmlTagProcessorFactory = (DefaultTagProcessorFactory) new Tags().getHtmlTagProcessorFactory();\r\n\t\t\tSystem.out.println(\"DefaultTagProcessorFactory\");\r\n\r\n\t\t\t// if needed override tag that you don't want to parse to DummyTagProcessor\r\n\t\t\thtmlTagProcessorFactory.addProcessor(\"img\", new DummyTagProcessor());\r\n\t\t\thtmlTagProcessorFactory.addProcessor(\"link\", new DummyTagProcessor());\r\n\t\t\tSystem.out.println(\"htmlTagProcessorFactory\");\r\n\r\n\t\t\t// Create a fresh configuration and set needed configuration objects.\r\n\t\t\tXMLWorkerConfigurationImpl config = new XMLWorkerConfigurationImpl();\r\n\t\t\tSystem.out.println(\"config\");\r\n\r\n\t\t\t// Attach the default CSS to a new CSSResolver\r\n\t\t\tCssFile defaultCSS = new XMLWorkerHelper().getDefaultCSS();\r\n\t\t\tSystem.out.println(\"defaultCSS\");\r\n\r\n\t\t\tStyleAttrCSSResolver cssResolver = new StyleAttrCSSResolver();\r\n\t\t\tSystem.out.println(\"cssResolver\");\r\n\r\n\t\t\tcssResolver.addCssFile(defaultCSS);\r\n\t\t\tSystem.out.println(\"addCssFile\");\r\n\r\n\t\t\t// attach more CSS files if needed\r\n\t\t\tString otherCssFile = \"c:\\\\tomcat\\\\webapps\\\\central\\\\inc\\\\style.css\";\r\n\t\t\tcssResolver.addCssFile(otherCssFile);\r\n\t\t\tSystem.out.println(\"otherCssFile\");\r\n\r\n\t\t\t// set the TagProcessorFactory\r\n\t\t\tconfig.tagProcessorFactory(htmlTagProcessorFactory).cssResolver(cssResolver).acceptUnknown(true);\r\n\t\t\tSystem.out.println(\"tagProcessorFactory\");\r\n\r\n\t\t\t// create a document\r\n\t\t\tfinal Document doc = new Document();\r\n\t\t\tdoc.setPageSize(PageSize.A4);\r\n\t\t\tSystem.out.println(\"setPageSize\");\r\n\r\n\t\t\t// create writer\r\n\t\t\tFileOutputStream outputStream = new FileOutputStream(outputFile);\r\n\t\t\tPdfWriter writer = PdfWriter.getInstance(doc, outputStream);\r\n\t\t\twriter.setPageEvent(new Watermark());\r\n\t\t\tSystem.out.println(\"Watermark\");\r\n\r\n\t\t\t// set margins for first page\r\n\t\t\tfloat margin = CssUtils.getInstance().parsePxInCmMmPcToPt(\"8px\");\r\n\t\t\tdoc.setMargins(margin, margin, margin, margin);\r\n\t\t\tSystem.out.println(\"setMargins\");\r\n\r\n\t\t\tBufferedInputStream bis = new BufferedInputStream(new FileInputStream(inputFile));\r\n\t\t\tSystem.out.println(\"inputFile\");\r\n\r\n\t\t\t// OPEN the document !\r\n\t\t\tdoc.open();\r\n\t\t\tconfig.document(doc).pdfWriter(writer);\r\n\t\t\tSystem.out.println(\"writer\");\r\n\r\n\t\t\t// create the worker\r\n\t\t\tfinal XMLWorker worker = new XMLWorkerImpl(config);\r\n\t\t\tSystem.out.println(\"XMLWorker\");\r\n\r\n\t\t\t// attach an ElementHandler\r\n\t\t\tworker.setDocumentListener(new ElementHandler() {\r\n\r\n\t\t\t\tpublic void addAll(final List<Element> arg0) throws DocumentException {\r\n\t\t\t\t\tfor (Element e : arg0) {\r\n\t\t\t\t\t\tdoc.add(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpublic void add(final Element e) throws DocumentException {\r\n\t\t\t\t\tdoc.add(e);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// Set the worker in the parser and start parsing\r\n\t\t\tSystem.out.println(\"before parsing\");\r\n\t\t\tXMLParser p = new XMLParser(worker);\r\n\t\t\tif (bis != null){\r\n\t\t\t\tp.parse(new StringReader(ReadFile(inputFile)));\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"bis is null\");\r\n\t\t\t}\r\n\t\t\twriter.close();\r\n\r\n\t\t}\r\n\t\tcatch(CssResolverException e){\r\n\t\t\tSystem.out.println(\"CssResolverException: \" + e.toString());\r\n\t\t}\r\n\t\tcatch(DocumentException e){\r\n\t\t\tSystem.out.println(\"DocumentException: \" + e.toString());\r\n\t\t}\r\n\t\tcatch(IOException e){\r\n\t\t\tSystem.out.println(\"IOException: \" + e.toString());\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(\"Exception: \" + e.toString());\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"END...\");\r\n\r\n }", "title": "" }, { "docid": "24cd692bb43eba641b0e3736cee7b030", "score": "0.5034808", "text": "@GetMapping(\"/create-pdf/{doc_id}\")\r\n\tpublic ResponseEntity<Object> createpdf(@PathVariable(\"doc_id\") String doc_id) throws IOException\r\n\t{\r\n\t\t\r\n\t\tString doc_name=dao.getDocName(Long.parseLong(doc_id));\r\n\t\t\r\n\t\tdao.GeneratePdf(doc_id,doc_name);\r\n\t\tfinal String path = \"src/main/resources/static/\"+doc_name+doc_id+\".pdf\";\r\n\t\tfinal String DEST = \"./src/main/resources/static/\"+doc_name+doc_id+\".pdf\";\r\n\t\ttry {\r\n\t\t\tFile file=new File(path);\r\n\t\t\tInputStreamResource resource=new InputStreamResource(new FileInputStream(file)); \r\n\t\t\tHttpHeaders headers=new HttpHeaders();\r\n\t\t\theaders.add(\"Content-Disposition\", String.format(\"attachment; filename=\\\"%s\\\"\", file.getName()));\r\n\t\t\theaders.add(\"Cache-Control\", \"no-cache, no-store, must-revalidate\");\r\n\t\t\theaders.add(\"Pragma\", \"no-cache\");\r\n\t\t\theaders.add(\"Expires\", \"0\");\r\n\t\t\tResponseEntity<Object> responseEntity = ResponseEntity.ok().headers(headers).contentLength(file.length()).contentType(MediaType.parseMediaType(\"application/txt\")).body(resource);\r\n\t\t\tFile del=new File(DEST);\r\n\t\t\tBoolean b=file.delete();\r\n\t\t\tSystem.out.println(b);\r\n\t\t\treturn responseEntity;\r\n\t\t\t} catch (Exception e ) {\r\n\t\t\t\treturn new ResponseEntity<>(\"error occurred\", HttpStatus.INTERNAL_SERVER_ERROR);\t\r\n\t\t\t} \r\n\t\t\r\n\t}", "title": "" }, { "docid": "dd87a5f1ca45f621c2ed49e79a6f79c1", "score": "0.5031917", "text": "public static void displayFile(byte[] pdfInput, String fileName)\n {\n try\n {\n File tmpFile = new File(Configuration.getString(Configuration.TEMP_PATH)+fileName);\n if(tmpFile.exists())\n tmpFile.delete();\n tmpFile.createNewFile();\n\n FileOutputStream of = new FileOutputStream( tmpFile);\n of.write(pdfInput);\n of.close();\n Trace.info(\"start shell to display:\"+tmpFile.getAbsolutePath());\n Runtime.getRuntime().exec(\"rundll32 SHELL32.DLL,ShellExec_RunDLL \"+tmpFile.getAbsolutePath());\n }\n catch (Exception ex)\n {\n Trace.error(ex);\n new MsgBox(I18N.get(\"Es ist ein Fehler bei der Anzeige aufgetretten.\"));\n }\n }", "title": "" }, { "docid": "63b97c003f26ab52371f74b9eb7c39c7", "score": "0.5024585", "text": "@SuppressWarnings(\"rawtypes\")\n private com.squareup.okhttp.Call putPdfInRequestToHtmlValidateBeforeCall(String outPath, Integer additionalMarginWidthInPoints, Boolean compressSvgGraphicsIfAny, Boolean convertMarkedContentToLayers, String defaultFontName, Integer documentType, Boolean fixedLayout, Integer imageResolution, Integer minimalLineWidth, Boolean preventGlyphsGrouping, Boolean splitCssIntoPages, Boolean splitIntoPages, Boolean useZOrder, String antialiasingProcessing, String cssClassNamesPrefix, List<Integer> explicitListOfSavedPages, String fontEncodingStrategy, String fontSavingMode, String htmlMarkupGenerationMode, String lettersPositioningMethod, Boolean pagesFlowTypeDependsOnViewersScreenSize, String partsEmbeddingMode, String rasterImagesSavingMode, Boolean removeEmptyAreasOnTopAndBottom, Boolean saveShadowedTextsAsTransparentTexts, Boolean saveTransparentTexts, String specialFolderForAllImages, String specialFolderForSvgImages, Boolean trySaveTextUnderliningAndStrikeoutingInCss, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (outPath == null) {\n throw new ApiException(\"Missing the required parameter 'outPath' when calling putPdfInRequestToHtml(Async)\");\n }\n \n\n com.squareup.okhttp.Call call = putPdfInRequestToHtmlCall(outPath, additionalMarginWidthInPoints, compressSvgGraphicsIfAny, convertMarkedContentToLayers, defaultFontName, documentType, fixedLayout, imageResolution, minimalLineWidth, preventGlyphsGrouping, splitCssIntoPages, splitIntoPages, useZOrder, antialiasingProcessing, cssClassNamesPrefix, explicitListOfSavedPages, fontEncodingStrategy, fontSavingMode, htmlMarkupGenerationMode, lettersPositioningMethod, pagesFlowTypeDependsOnViewersScreenSize, partsEmbeddingMode, rasterImagesSavingMode, removeEmptyAreasOnTopAndBottom, saveShadowedTextsAsTransparentTexts, saveTransparentTexts, specialFolderForAllImages, specialFolderForSvgImages, trySaveTextUnderliningAndStrikeoutingInCss, file, progressListener, progressRequestListener);\n return call;\n\n }", "title": "" }, { "docid": "584407a24ee6da8e640dea404a7953f6", "score": "0.50235486", "text": "@SuppressWarnings(\"rawtypes\")\n private com.squareup.okhttp.Call putPdfInRequestToLaTeXValidateBeforeCall(String outPath, Integer pagesCount, File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (outPath == null) {\n throw new ApiException(\"Missing the required parameter 'outPath' when calling putPdfInRequestToLaTeX(Async)\");\n }\n \n\n com.squareup.okhttp.Call call = putPdfInRequestToLaTeXCall(outPath, pagesCount, file, progressListener, progressRequestListener);\n return call;\n\n }", "title": "" }, { "docid": "113c2667fef6b4561eaa9d63221e87c2", "score": "0.5021402", "text": "public void downloadPdf() throws IOException {\n FacesContext facesContext = FacesContext.getCurrentInstance();\n HttpServletResponse response =\n (HttpServletResponse) facesContext.getExternalContext().getResponse();\n response.reset();\n response.setHeader(\"Content-Type\", \"application/pdf\");\n OutputStream responseOutputStream = response.getOutputStream();\n File generatedPdfFromDisk =\n getFileService().getOffertePdfFromFileSystem(selectedOfferte.getPdfFileName());\n InputStream pdfInputStream = new FileInputStream(generatedPdfFromDisk);\n byte[] bytesBuffer = new byte[2048];\n int bytesRead;\n while ((bytesRead = pdfInputStream.read(bytesBuffer)) > 0) {\n responseOutputStream.write(bytesBuffer, 0, bytesRead);\n }\n responseOutputStream.flush();\n pdfInputStream.close();\n responseOutputStream.close();\n facesContext.responseComplete();\n }", "title": "" }, { "docid": "f5795643923989056f8e245beba0874d", "score": "0.5021199", "text": "@SuppressWarnings(\"rawtypes\")\n private com.squareup.okhttp.Call putPdfInStorageToHtmlValidateBeforeCall(String name, String outPath, Integer additionalMarginWidthInPoints, Boolean compressSvgGraphicsIfAny, Boolean convertMarkedContentToLayers, String defaultFontName, Integer documentType, Boolean fixedLayout, Integer imageResolution, Integer minimalLineWidth, Boolean preventGlyphsGrouping, Boolean splitCssIntoPages, Boolean splitIntoPages, Boolean useZOrder, String antialiasingProcessing, String cssClassNamesPrefix, List<Integer> explicitListOfSavedPages, String fontEncodingStrategy, String fontSavingMode, String htmlMarkupGenerationMode, String lettersPositioningMethod, Boolean pagesFlowTypeDependsOnViewersScreenSize, String partsEmbeddingMode, String rasterImagesSavingMode, Boolean removeEmptyAreasOnTopAndBottom, Boolean saveShadowedTextsAsTransparentTexts, Boolean saveTransparentTexts, String specialFolderForAllImages, String specialFolderForSvgImages, Boolean trySaveTextUnderliningAndStrikeoutingInCss, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (name == null) {\n throw new ApiException(\"Missing the required parameter 'name' when calling putPdfInStorageToHtml(Async)\");\n }\n \n // verify the required parameter 'outPath' is set\n if (outPath == null) {\n throw new ApiException(\"Missing the required parameter 'outPath' when calling putPdfInStorageToHtml(Async)\");\n }\n \n\n com.squareup.okhttp.Call call = putPdfInStorageToHtmlCall(name, outPath, additionalMarginWidthInPoints, compressSvgGraphicsIfAny, convertMarkedContentToLayers, defaultFontName, documentType, fixedLayout, imageResolution, minimalLineWidth, preventGlyphsGrouping, splitCssIntoPages, splitIntoPages, useZOrder, antialiasingProcessing, cssClassNamesPrefix, explicitListOfSavedPages, fontEncodingStrategy, fontSavingMode, htmlMarkupGenerationMode, lettersPositioningMethod, pagesFlowTypeDependsOnViewersScreenSize, partsEmbeddingMode, rasterImagesSavingMode, removeEmptyAreasOnTopAndBottom, saveShadowedTextsAsTransparentTexts, saveTransparentTexts, specialFolderForAllImages, specialFolderForSvgImages, trySaveTextUnderliningAndStrikeoutingInCss, folder, progressListener, progressRequestListener);\n return call;\n\n }", "title": "" }, { "docid": "40fa9e7ec654c76a4e78b967ffe145b8", "score": "0.50122356", "text": "public Document execute(Document pdf) throws PdfActException {\n log.debug(\"Start of pipe: \" + getClass().getSimpleName() + \".\");\n\n log.debug(\"Process: Processing the service pipeline.\");\n\n Pipeline pipeline = new PlainPipeline();\n\n // Parse the PDF document.\n pipeline.addPipe(new PlainPdfActCorePipe());\n\n // Validate the target path for the serialization if there is any given.\n if (this.serializationPath != null) {\n ValidatePathToWritePipe valPipe = new PlainValidatePathToWritePipe();\n valPipe.setPath(this.serializationPath);\n pipeline.addPipe(valPipe);\n }\n\n // Serialize if there is a target given for the serialization.\n if (this.serializationStream != null || this.serializationPath != null) {\n SerializePdfPipe serializePipe = new PlainSerializePdfPipe();\n serializePipe.setSerializationFormat(this.serializationFormat);\n serializePipe.setExtractionUnits(this.extractionUnits);\n serializePipe.setSemanticRolesToInclude(this.roles);\n serializePipe.setTargetPath(this.serializationPath);\n serializePipe.setTargetStream(this.serializationStream);\n serializePipe.setWithControlCharacters(this.withControlCharacters);\n serializePipe.setIsPdfJsMode(this.isPdfJsMode);\n pipeline.addPipe(serializePipe);\n }\n\n // Validate the target path for the visualization if there is any given.\n if (this.visualizationPath != null) {\n ValidatePathToWritePipe valPipe = new PlainValidatePathToWritePipe();\n valPipe.setPath(this.visualizationPath);\n pipeline.addPipe(valPipe);\n }\n\n // Visualize if there is a target given for the visualization.\n if (this.visualizationStream != null || this.visualizationPath != null) {\n VisualizePdfPipe visualizePipe = new PlainVisualizePdfPipe();\n visualizePipe.setExtractionUnits(this.extractionUnits);\n visualizePipe.setSemanticRolesToInclude(this.roles);\n visualizePipe.setTargetPath(this.visualizationPath);\n visualizePipe.setTargetStream(this.visualizationStream);\n pipeline.addPipe(visualizePipe);\n }\n\n log.debug(\"# pipes in the pipeline: \" + pipeline.size());\n\n long start = System.currentTimeMillis();\n pipeline.process(pdf);\n long length = System.currentTimeMillis() - start;\n\n log.debug(\"Processing the service pipeline done.\");\n log.debug(\"Time needed to process the service pipeline: \" + length + \"ms.\");\n\n log.debug(\"End of pipe: \" + getClass().getSimpleName() + \".\");\n\n return pdf;\n }", "title": "" }, { "docid": "2169142f618c0599096e169d752ad54d", "score": "0.5004577", "text": "public static File storeAndGetDocument(Context context, String base64Pdf, String filename, String extension) {\n\r\n String filepath = Environment.getExternalStorageDirectory().getPath();\r\n File file = null;\r\n\r\n byte[] pdfAsBytes = Base64.decode(base64Pdf, 0);\r\n\r\n FileOutputStream outputStream;\r\n try {\r\n\r\n file = new File(filepath + \"/Android/data/\" + context.getPackageName() + \"/Documents\");\r\n if (!file.exists()) {\r\n file.mkdirs();\r\n }\r\n\r\n file = new File(file.getAbsolutePath(), filename + \".\" + extension);\r\n\r\n outputStream = new FileOutputStream(file);\r\n outputStream.write(pdfAsBytes);\r\n outputStream.close();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return file;\r\n }", "title": "" }, { "docid": "8e8ce146f3f4a7b89ca91dc09bf49b73", "score": "0.4990151", "text": "public com.squareup.okhttp.Call putPdfInRequestToLaTeXAsync(String outPath, Integer pagesCount, File file, final ApiCallback<File> callback) throws ApiException {\n\n ProgressResponseBody.ProgressListener progressListener = null;\n ProgressRequestBody.ProgressRequestListener progressRequestListener = null;\n\n if (callback != null) {\n progressListener = new ProgressResponseBody.ProgressListener() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n callback.onDownloadProgress(bytesRead, contentLength, done);\n }\n };\n\n progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {\n @Override\n public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {\n callback.onUploadProgress(bytesWritten, contentLength, done);\n }\n };\n }\n\n com.squareup.okhttp.Call call = putPdfInRequestToLaTeXValidateBeforeCall(outPath, pagesCount, file, progressListener, progressRequestListener);\n Type localVarReturnType = new TypeToken<File>(){}.getType();\n apiClient.executeAsync(call, localVarReturnType, callback);\n return call;\n }", "title": "" }, { "docid": "ef676e7270565aec95b06979de8431a2", "score": "0.49856663", "text": "public void createPdf(String filename) throws IOException, DocumentException {\n \t// step 1\n Document document = new Document();\n // step 2\n PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(filename));\n // step 3\n document.open();\n // step 4\n TextField date = new TextField(writer, new Rectangle(36, 806, 126, 780), \"date\");\n date.setBorderColor(new GrayColor(0.2f));\n PdfFormField datefield = date.getTextField();\n datefield.setAdditionalActions(PdfName.V, PdfAction.javaScript(\n \"AFDate_FormatEx( 'dd-mm-yyyy' );\", writer));\n writer.addAnnotation(datefield);\n TextField name = new TextField(writer, new Rectangle(130, 806, 256, 780), \"name\");\n name.setBorderColor(new GrayColor(0.2f));\n PdfFormField namefield = name.getTextField();\n namefield.setAdditionalActions(PdfName.FO, PdfAction.javaScript(\n \"app.alert('name field got the focus');\", writer));\n namefield.setAdditionalActions(PdfName.BL, PdfAction.javaScript(\n \"app.alert('name lost the focus');\", writer));\n namefield.setAdditionalActions(PdfName.K, PdfAction.javaScript(\n \"event.change = event.change.toUpperCase();\", writer));\n writer.addAnnotation(namefield);\n // step 5\n document.close();\n }", "title": "" }, { "docid": "a825c62cf43019a578025ceff48eccc3", "score": "0.49805576", "text": "public void downloadPdfFromUrl() {\r\n\t\tif (Utilities.isInternetConnected()) {\r\n\t\t\tnew AsyncDownloadPdfPathFromApi(true).execute();\r\n\t\t} else {\r\n\t\t\tToast.makeText(IncenCalActivity.this,\r\n\t\t\t\t\t\"Please check your internet connection!\",\r\n\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4e9b22d277f38d67fb97bc86968b8670", "score": "0.49492505", "text": "public static void downloadPDF(HttpURLConnection connection, String pathToBeStored){\r\n try {\r\n InputStream inputStream = connection.getInputStream();\r\n FileOutputStream outputStream = new FileOutputStream(pathToBeStored);\r\n int bytesRead = -1;\r\n byte[] buffer = new byte[1024];\r\n while ((bytesRead = inputStream.read(buffer)) != -1) {\r\n outputStream.write(buffer, 0, bytesRead);\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "ab9fa64815e6139c4c64b394f080a498", "score": "0.4936962", "text": "@Test\n public void testSendExtConverterMessage() throws Exception {\n\n byte[] body = Files.readAllBytes(Paths.get(\"d:/002_books\", \"mysql.pdf\"));\n MessageProperties messageProperties = new MessageProperties();\n messageProperties.setContentType(\"application/pdf\");\n Message message = new Message(body, messageProperties);\n rabbitTemplate.send(\"\", \"pdf_queue\", message);\n }", "title": "" }, { "docid": "b8d966ed0052d3a41b1b92a95b64268b", "score": "0.49343774", "text": "@Test\n public void testDemo() throws IOException\n {\n try ( InputStream resource = getClass().getResourceAsStream(\"demo.pdf\") )\n {\n PDDocument document = PDDocument.load(resource);\n PDFTextStripper stripper = new PDFTextStripper();\n //stripper.setSortByPosition(true);\n String text = stripper.getText(document);\n\n System.out.printf(\"\\n*\\n* demo.pdf\\n*\\n%s\\n\", text);\n Files.write(new File(RESULT_FOLDER, \"demo.txt\").toPath(), Collections.singleton(text));\n }\n }", "title": "" }, { "docid": "07436310492f06aa536f4b886393a201", "score": "0.49271557", "text": "@Override\r\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tif (forceUser) {\r\n\t\t\t\tif (mProgress != null)\r\n\t\t\t\t\tmProgress.dismiss();\r\n\t\t\t}\r\n\r\n\t\t\tif (isPdfAvailable) {\r\n\t\t\t\tnew AsyncDownloadPdfDataFromApi(true, pdfPath).execute(pdfPath);\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(IncenCalActivity.this,\r\n\t\t\t\t\t\t\"Incentive Scheme Pdf not available!\",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "902874a0513e2f0c657cb4af8b6fae61", "score": "0.49264717", "text": "PDFCreator() {\n this.document = new PDDocument();\n }", "title": "" }, { "docid": "9bc47bca0bec880b7bcbef41d39f5ccc", "score": "0.49173138", "text": "@FXML\r\n\tvoid onClickSavePDF(ActionEvent event) {\r\n\t\tPDFGenerator.getInstance().createPdf(PDF_PATH, \"Book Stock Result\", booksTable.getItems());\r\n\t\tFile file = new File(PDF_PATH);\r\n\t\ttry {\r\n\t\t\tDesktop.getDesktop().open(file);\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}", "title": "" }, { "docid": "4b9d2295926644a9699d1952aaa99359", "score": "0.49157673", "text": "public String uploadPdfNewsLetter(AddNewsLetterForm addNewsLetterForm,\n\t\t\tHttpServletRequest request, SessionInfo sessionInfo)\n\t\t\tthrows IOException {\n\n\t\tInputStream inputStreamForproperties = this.getClass().getClassLoader()\n\t\t\t\t.getResourceAsStream(\"sbsc.properties\");\n\n\t\tMultipartFile fileData = addNewsLetterForm.getFileData();\n\t\tProperties properties = new Properties();\n\t\tproperties.load(inputStreamForproperties);\n\t\tInputStream inputStream = null;\n\t\tOutputStream outputStream = null;\n\t\tlong storeId = sessionInfo.getStoreId();\n\t\t\n\t\t//Calculate directory path.\n\t\tString directoryPath = request.getServletContext().getRealPath(\n\t\t\t\tproperties.getProperty(\"image.directory\") + \"/\" + storeId\n\t\t\t\t\t\t+ \"/newsletter\");\n\t\t//Create a filename.\n\t\tString fileName = directoryPath + \"\\\\\"\n\t\t\t\t+ addNewsLetterForm.getFileData().getOriginalFilename();\n\n\t\tFile dir = new File(directoryPath);\n\t\tif (dir.exists()) {\n\t\t\tlogger.info(\"A folder with name \"\n\t\t\t\t\t+ properties.getProperty(\"image.directory\")\n\t\t\t\t\t+ \" is already exist in the path \" + directoryPath);\n\t\t\tSystem.out.println(\"A folder with name \"\n\t\t\t\t\t+ properties.getProperty(\"image.directory\")\n\t\t\t\t\t+ \" is already exist in the path \" + directoryPath);\n\t\t} else {\n\t\t\t//Make the directory if it doesn't exist.\n\t\t\tdir.mkdirs();\n\t\t}\n\t\t// Uploading image File.\n\t\tif (fileData.getSize() > 0) {\n\t\t\tinputStream = fileData.getInputStream();\n\t\t\toutputStream = new FileOutputStream(fileName);\n\t\t\tint readBytes = 0;\n\t\t\tbyte[] buffer = new byte[8192];\n\n\t\t\tlogger.info(\"writing file to output Folder : \");\n\t\t\twhile ((readBytes = inputStream.read(buffer, 0, 8192)) != -1) {\n\t\t\t\toutputStream.write(buffer, 0, readBytes);\n\t\t\t}\n\t\t\toutputStream.close();\n\t\t\tinputStream.close();\n\n\t\t}\n\t\t// Getting the final path of uploaded image for db.\n\t\tString db_path;\n\t\tif (StringUtils.isNotBlank(fileData.getOriginalFilename()))\n\n\t\t{\n\t\t\tdb_path = properties.getProperty(\"image.directory\") + \"/\" + storeId\n\t\t\t\t\t+ \"/newsletter\" + \"/\" + fileData.getOriginalFilename();\n\t\t} else {\n\t\t\tdb_path = properties.getProperty(\"image.directory\") + \"/\" + storeId\n\t\t\t\t\t+ \"/newsletter\" + \"/\" + addNewsLetterForm.getFilename();\n\t\t}\n\t\t\n\t\treturn db_path;\n\t}", "title": "" }, { "docid": "0aef6b806edbecd00802754dc6a94a2f", "score": "0.49015647", "text": "public void doMerge(Set<String> listOfFiles, String destination)\n throws DocumentException, IOException {\n\n logger.info(\"Destination dir =\" + destination);\n\n logger.info(\"Merging \" + listOfFiles.size() + \" files\");\n\n try {\n List<InputStream> list = new ArrayList<InputStream>();\n\n for (String s: listOfFiles) {\n list.add(new FileInputStream(new File(s)));\n System.out.println(s);\n logger.info(s);\n }\n\n // Resulting pdf\n OutputStream out = new FileOutputStream(new File(destination + RESULT));\n\n\n Document document = new Document();\n PdfWriter writer = PdfWriter.getInstance(document, out);\n document.open();\n PdfContentByte cb = writer.getDirectContent();\n\n for (InputStream in : list) {\n PdfReader reader = new PdfReader(in);\n for (int i = 1; i <= reader.getNumberOfPages(); i++) {\n document.newPage();\n //import the page from source pdf\n PdfImportedPage page = writer.getImportedPage(reader, i);\n //add the page to the destination pdf\n cb.addTemplate(page, 0, 0);\n }\n }\n\n out.flush();\n document.close();\n out.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (DocumentException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "f2a820bd9840acc8da6efa39ab43ba87", "score": "0.49003455", "text": "@SuppressWarnings(\"rawtypes\")\n private com.squareup.okhttp.Call putPdfInStorageToLaTeXValidateBeforeCall(String name, String outPath, Integer pagesCount, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (name == null) {\n throw new ApiException(\"Missing the required parameter 'name' when calling putPdfInStorageToLaTeX(Async)\");\n }\n \n // verify the required parameter 'outPath' is set\n if (outPath == null) {\n throw new ApiException(\"Missing the required parameter 'outPath' when calling putPdfInStorageToLaTeX(Async)\");\n }\n \n\n com.squareup.okhttp.Call call = putPdfInStorageToLaTeXCall(name, outPath, pagesCount, folder, progressListener, progressRequestListener);\n return call;\n\n }", "title": "" }, { "docid": "ec0ce4432cfe6c1d31bff4f102f9441c", "score": "0.48964334", "text": "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n\tpublic void pdf(HttpServletResponse response, Locale locale, @PathVariable String id) throws IOException {\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\t\t\n\t\tbyte[] contentBytes = new byte[0];\n\t\t\n\t\ttry {\n\t\t\t// get a manager for binary documents\n\t\t\tPdfDocumentManager docMgr = new PdfDocumentManager(databaseClient);\n\t\n\t\t\t// create a handle to receive the document content\n\t\t\tBytesHandle content = new BytesHandle();\n\n\t\t\tString uri = \"/pdf/\" + id + \".pdf\";\n\t\t\t// read the document content\n\t\t\tdocMgr.read(uri, content);\n\t\n\t\t\t// get the document content as a byte array\n\t\t\tcontentBytes = content.get();\n\n\t\t} catch(Exception e){\n\t\t\tSystem.out.println(e.toString());\n\t\t} \n\t\t\n\t\tInputStream input = new ByteArrayInputStream(contentBytes);\n\t\tOutputStream output = response.getOutputStream();\n\t\tbyte[] buffer = new byte[10240];\n\n\t\tresponse.setContentType(\"application/pdf\");\n\t\tresponse.setContentLength(contentBytes.length);\n\n\t\ttry {\n\t\t for (int length = 0; (length = input.read(buffer)) > 0;) {\n\t\t output.write(buffer, 0, length);\n\t\t }\n\t\t}\n\t\tfinally {\n\t\t try { output.close(); } catch (IOException ignore) {}\n\t\t try { input.close(); } catch (IOException ignore) {}\n\t\t}\n\t}", "title": "" }, { "docid": "e7e67c2313258caff7f5e0b6e333cac6", "score": "0.4893511", "text": "public Boolean handlePdf(MultipartFile multipartFile, HttpServletResponse response) {\n InputStream inputStream = null;\n try {\n File file = new File(tempDirectory.concat(\"temp\").concat(PdfUtil.PDF_SUFFIX));\n inputStream = multipartFile.getInputStream();\n FileUtils.copyInputStreamToFile(inputStream, file);\n PdfUtil.splitPdf(file, response, tempDirectory);\n return true;\n } catch (IOException e) {\n log.warn(\"io exception:\" + e);\n } catch (Exception e) {\n log.warn(\"excetion:\" + e);\n } finally {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n } catch (IOException e) {\n log.warn(\"io exception:\" + e);\n }\n }\n return false;\n }", "title": "" }, { "docid": "c4ba34dcbf727e240bdc0c0f8001650b", "score": "0.4885881", "text": "public void convertStreamToFile(InputStream inStream, String filePath) throws IOException {\n if (!(filePath != null && !filePath.isEmpty()))\n throw new Error(createInvalidValueMessage(filePath, \"convertStreamToFile::file_path\", \"html-to-pdf\", \"The string must not be empty.\", \"convert_stream_to_file\"), 470);\n \n FileOutputStream outputFile = new FileOutputStream(filePath);\n try {\n convertStreamToStream(inStream, outputFile);\n outputFile.close();\n }\n catch(Error why) {\n outputFile.close();\n new File(filePath).delete();\n throw why;\n }\n }", "title": "" }, { "docid": "ff1d3ff894227a28cf9f3f0ebe1c7f99", "score": "0.4858508", "text": "@TestApiExecutor\r\n\tpublic void execute() {\n\t\ttestLogger.info(\"Hello from \" + this.getClass().getName());\r\n\r\n\t\ttry {\r\n\t\t\tString projectPath = testExecutionContext.getTestProjectPath();\r\n\t\t\ttestLogger.info(projectPath);\r\n\t\t\tString sourceDir = projectPath + File.separator + PdfLocation;\r\n\t\t\ttestLogger.info(sourceDir);\r\n\t\t\tString destinationDir = projectPath + File.separator + ImageStorageLocation + File.separator;\r\n\t\t\ttestLogger.info(destinationDir);\r\n\t\t\tFile sourceFile = new File(sourceDir);\r\n\t\t\tFile destinationFile = new File(destinationDir);\r\n\t\t\tif (!destinationFile.exists()) {\r\n\t\t\t\tdestinationFile.mkdir();\r\n\t\t\t\tSystem.out.println(\"Folder Created -> \" + destinationFile.getAbsolutePath());\r\n\t\t\t}\r\n\t\t\tif (sourceFile.exists()) {\r\n\t\t\t\tSystem.out.println(\"Images copied to Folder: \" + destinationFile.getName());\r\n\t\t\t\tPDDocument document = PDDocument.load(sourceDir);\r\n\t\t\t\tList<PDPage> list = document.getDocumentCatalog().getAllPages();\r\n\t\t\t\tSystem.out.println(\"Total files to be converted -> \" + list.size());\r\n\r\n\t\t\t\tString fileName = sourceFile.getName().replace(\".pdf\", \"\");\r\n\t\t\t\tint pageNumber = 1;\r\n\t\t\t\tfor (PDPage page : list) {\r\n\t\t\t\t\tBufferedImage image = page.convertToImage();\r\n\t\t\t\t\tFile outputfile = new File(destinationDir + fileName + \"_\" + pageNumber + \".jpg\");\r\n\t\t\t\t\tSystem.out.println(\"Image Created -> \" + outputfile.getName());\r\n\t\t\t\t\tImageIO.write(image, \"png\", outputfile);\r\n\t\t\t\t\tpageNumber++;\r\n\t\t\t\t}\r\n\t\t\t\tdocument.close();\r\n\t\t\t\tSystem.out.println(\"Converted Images are saved at -> \" + destinationFile.getAbsolutePath());\r\n\t\t\t} else {\r\n\t\t\t\tSystem.err.println(sourceFile.getName() + \" File not exists\");\r\n\t\t\t\ttestLogger.info(\"Do Again\");\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\ttestLogger.info(\"catch error\");\r\n\t\t}\r\n\t\t// Store the result (if appropriate).\r\n\t\tString dummyResult = this.getClass().getName() + \" result\";\r\n\t\ttestExecutionContext.setValue(resultName, dummyResult, resultScope);\r\n\r\n\t}", "title": "" }, { "docid": "abf9400c77735919d7f6adea0e6d3149", "score": "0.4852449", "text": "public void convertStreamToFile(InputStream inStream, String filePath) throws IOException {\n if (!(filePath != null && !filePath.isEmpty()))\n throw new Error(createInvalidValueMessage(filePath, \"convertStreamToFile::file_path\", \"pdf-to-html\", \"The string must not be empty.\", \"convert_stream_to_file\"), 470);\n \n if (!(isOutputTypeValid(filePath)))\n throw new Error(createInvalidValueMessage(filePath, \"convertStreamToFile::file_path\", \"pdf-to-html\", \"The converter generates an HTML or ZIP file. If ZIP file is generated, the file path must have a ZIP or zip extension.\", \"convert_stream_to_file\"), 470);\n \n FileOutputStream outputFile = new FileOutputStream(filePath);\n try {\n convertStreamToStream(inStream, outputFile);\n outputFile.close();\n }\n catch(Error why) {\n outputFile.close();\n new File(filePath).delete();\n throw why;\n }\n }", "title": "" }, { "docid": "7d28d60c9341483434d173f54d0c0944", "score": "0.48511323", "text": "@Override\n public void onResponse(byte[] response) {\n\n File root = new File(Environment.getExternalStorageDirectory(), \"Material\");\n if (!root.exists()) {\n root.mkdirs();\n }\n File file = new File(root,data.getFileName());\n try {\n file.createNewFile();\n BufferedOutputStream salida = new BufferedOutputStream(new FileOutputStream(file));\n salida.write(response);\n salida.flush();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n// if (ScheduleActivity.this.findViewById(R.id.layout_loading) != null) {\n// ScheduleActivity.this.findViewById(R.id.layout_loading).setVisibility(8);\n// }\n // Here you declare your pdf path\n Intent pdfViewIntent = new Intent(Intent.ACTION_VIEW);\n pdfViewIntent.setDataAndType(Uri.fromFile(file),data.getDocType());\n pdfViewIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n\n Intent intent = Intent.createChooser(pdfViewIntent, \"Open File\");\n try {\n mContext.startActivity(intent);\n } catch (ActivityNotFoundException e) {\n Toast.makeText(mContext, \"PDf Cannot Open\", Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "88426defb71c712692bbac1dde98bf75", "score": "0.4845875", "text": "public com.squareup.okhttp.Call putPdfInStorageToDocCall(String name, String outPath, Boolean addReturnToLineEnd, String format, Integer imageResolutionX, Integer imageResolutionY, Integer maxDistanceBetweenTextLines, String mode, Boolean recognizeBullets, Double relativeHorizontalProximity, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/pdf/{name}/convert/doc\"\n .replaceAll(\"\\\\{\" + \"name\" + \"\\\\}\", apiClient.escapeString(name.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n if (outPath != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"outPath\", outPath));\n if (addReturnToLineEnd != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"addReturnToLineEnd\", addReturnToLineEnd));\n if (format != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"format\", format));\n if (imageResolutionX != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"imageResolutionX\", imageResolutionX));\n if (imageResolutionY != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"imageResolutionY\", imageResolutionY));\n if (maxDistanceBetweenTextLines != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"maxDistanceBetweenTextLines\", maxDistanceBetweenTextLines));\n if (mode != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"mode\", mode));\n if (recognizeBullets != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"recognizeBullets\", recognizeBullets));\n if (relativeHorizontalProximity != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"relativeHorizontalProximity\", relativeHorizontalProximity));\n if (folder != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"folder\", folder));\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n if(progressListener != null) {\n apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {\n @Override\n public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {\n com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());\n return originalResponse.newBuilder()\n .body(new ProgressResponseBody(originalResponse.body(), progressListener))\n .build();\n }\n });\n }\n\n String[] localVarAuthNames = new String[] { };\n return apiClient.buildCall(localVarPath, \"PUT\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);\n }", "title": "" }, { "docid": "19215c52cc672f2df06ef13bc26db3ef", "score": "0.48207158", "text": "@Override\n protected Void doInBackground() throws Exception {\n setProgress(DocumentConstants.INITIAL_PROGRESS_ZERO);\n\n // read document\n FileUtils.openFile(docName);\n BaseDocument doc = getDocument();\n assert doc != null;\n doc.setFileName(docName);\n\n int lineNum = 1;\n while (!FileUtils.eof()) {\n String line = FileUtils.readString().trim();\n // empty line\n if (DocumentConstants.EMPTY_LINE_LEN == line.length()) {\n continue;\n }\n\n // text:\n if (DocumentConstants.TEXT_START.equals(line)) {\n handleText(doc, lineNum);\n break;\n }\n\n // handle header\n if (lineNum < 8 && line.contains(DocumentConstants.FILE_HEADER_SEPARATOR)) {\n handleHeader(doc, line);\n }\n // set progress\n setProgress(++lineNum);\n }\n // add to list of doc\n documents.add(doc);\n return null;\n }", "title": "" }, { "docid": "0eaeb5f04f087c5c08985f4add90f7ca", "score": "0.48175943", "text": "private static boolean convertPdf2bitmap(final File pdfFile,\r\n final File bitmapFile) throws IOException, InterruptedException {\r\n \r\n if (gs == null) {\r\n gs = findGhostscript();\r\n }\r\n \r\n String[] commandArray = {gs.getPath(),\r\n \"-dSAFER\", \"-dBATCH\", \"-dNOPAUSE\",\r\n \"-r300\", \"-sDEVICE=png16m\",\r\n \"-dTextAlphaBits=1\", \"-dGraphicsAlphaBits=1\",\r\n \"-sOutputFile=\" + bitmapFile.getAbsolutePath(),\r\n pdfFile.getAbsolutePath()};\r\n Runtime runtime = Runtime.getRuntime();\r\n Process process = runtime.exec(commandArray, null,\r\n bitmapFile.getParentFile());\r\n process.waitFor();\r\n return (process.exitValue() == 0);\r\n }", "title": "" }, { "docid": "3f3095828b553d702715c99154d26a81", "score": "0.48104912", "text": "public PdfToPdfClient(String userName, String apiKey) {\n this.helper = new ConnectionHelper(userName, apiKey);\n fields.put(\"input_format\", \"pdf\");\n fields.put(\"output_format\", \"pdf\");\n }", "title": "" }, { "docid": "e63186bcaf78d37b8efa2d3c5df214dd", "score": "0.4810347", "text": "public void onModuleLoad() {\n\n fileExplorer = new latexEditorFileExplorer();\n VerticalPanel leftBar = new VerticalPanel();\n\n Button btCompile = new Button();\n btCompile.setText(\"Generate PDF\");\n btCompile.setStyleName(\"btn\");\n btCompile.addStyleName(\"primary\");\n btCompile.addStyleName(\"small\");\n btCompile.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(ClickEvent event) {\n latexEditorRPC.callForCompile(fileExplorer);\n }\n });\n/*\n Button btSave = new Button();\n btSave.setText(\"Save\");\n btSave.setStyleName(\"btn\");\n btSave.addStyleName(\"primary\");\n btSave.addStyleName(\"small\");\n btSave.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(ClickEvent event) {\n latexEditorRPC.callForSave(fileExplorer);\n }\n });*/\n\n Button btDefault = new Button();\n btDefault.setText(\"Set main file\");\n btDefault.setStyleName(\"btn\");\n btDefault.addStyleName(\"primary\");\n btDefault.addStyleName(\"small\");\n btDefault.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(ClickEvent event) {\n fileExplorer.setSelectAsDefault();\n\n //latexEditorRPC.callForSave(fileExplorer);\n }\n });\n\n/*\n Button tooglePDF = new Button();\n tooglePDF.setText(\"PDF\");\n tooglePDF.setStyleName(\"btn\");\n tooglePDF.addStyleName(\"primary\");\n final Frame pdfframe = new Frame(\"\");\n final RootPanel pdfroot = RootPanel.get(\"pdfview\");\n pdfroot.add(pdfframe);\n pdfroot.setVisible(false);\n\n tooglePDF.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(ClickEvent event) {\n\n if (pdfroot.isVisible()) {\n pdfroot.setVisible(false);\n } else {\n pdfroot.setVisible(true);\n pdfframe.setUrl(\"https://docs.google.com/gview?url=http://www.google.com/google-d-s/docsQuickstartGuide.pdf&chrome=true\");\n pdfframe.setSize(\"400px\",\"100%\");\n }\n }\n });\n*/\n HorizontalPanel bts = new HorizontalPanel();\n bts.setBorderWidth(0);\n bts.add(btCompile);\n bts.add(btDefault);\n // bts.add(btSave);\n\n leftBar.add(bts);\n\n ScrollPanelWrapper scrollP = new ScrollPanelWrapper(fileExplorer);\n\n\n leftBar.add(scrollP);\n\n\n RootPanel.get(\"files\").add(leftBar);\n }", "title": "" }, { "docid": "da0c1ddc17ffb453eb64173e672410a2", "score": "0.480667", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n StringBuilder requestPath = new StringBuilder(DOCSHOME);\n requestPath.append(\"/\").append(request.getParameter(\"f\")).append(\".md\");\n File f = new File(requestPath.toString());\n File cf = new File(requestPath.toString().replaceAll(\"\\\\.md$\", \".html\"));\n File cfTmp = null;\n PrintWriter cacheOut = null;\n if (f.exists()) {\n if (f.lastModified() > cf.lastModified()) {\n PrintWriter out = response.getWriter();\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(f), Charset.forName(\"UTF-8\")));\n cfTmp = File.createTempFile(cf.getName(), null, f.getParentFile());\n cacheOut = new PrintWriter(new OutputStreamWriter (new FileOutputStream(cfTmp), Charset.forName(\"UTF-8\")));\n StringBuilder mdf = new StringBuilder();\n char[] ch = new char[1024];\n int c;\n while ((c = reader.read(ch)) > 0) {\n mdf.append(ch, 0, c);\n }\n reader = new BufferedReader(new FileReader(new File(TEMPLATE)));\n String line;\n while ((line = reader.readLine()) != null) {\n out.println(line);\n cacheOut.println(line);\n if (line.contains(\"<div class=\\\"markdown\\\">\")) {\n String md = peg.markdownToHtml(mdf.toString());\n out.write(md);\n cacheOut.write(md);\n reader.readLine(); // assume template has a throwaway line inside the content div\n }\n }\n } catch (IOException e) {\n response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n } finally {\n out.close();\n if (cacheOut != null) {\n cacheOut.close();\n }\n if (cfTmp != null) {\n cfTmp.renameTo(cf);\n }\n }\n } else {\n ServletUtils.send(response, f);\n }\n } else {\n response.sendError(HttpServletResponse.SC_NOT_FOUND);\n }\n }", "title": "" }, { "docid": "e1fe9940a5cf1ceab76ded68600cc815", "score": "0.480494", "text": "public void convertFileToStream(String file, OutputStream outStream) {\n if (!(new File(file).length() > 0))\n throw new Error(createInvalidValueMessage(file, \"convertFileToStream::file\", \"pdf-to-html\", \"The file must exist and not be empty.\", \"convert_file_to_stream\"), 470);\n \n files.put(\"file\", file);\n helper.post(fields, files, rawData, outStream);\n }", "title": "" }, { "docid": "87ef5c8f53fb32a70a847fa67d79f4b8", "score": "0.4800792", "text": "private void vMandPDFEmp(final String sNomPDF, final String sRutPDF, final String sCo1, final String sCo2, final String sCo3, final String sNoDoc)\n {\n /*Manda el PDF a la empresa en un thread*/ \n (new Thread()\n {\n @Override\n public void run()\n {\n //Declara variables locales\n String sSrvSMTPSal = \"\";\n String sSMTPPort = \"\";\n String sUsr = \"\";\n String sContrasenia = \"\";\n String sActSSL = \"\"; \n \n //Abre la base de datos \n Connection con = Star.conAbrBas(true, false);\n\n //Si hubo error entonces regresa\n if(con==null)\n return;\n\n //Declara variables de la base de datos\n Statement st;\n ResultSet rs; \n String sQ; \n \n //Declara variables locales\n String sAsunOrd = \"\";\n String sCuerOrd = \"\"; \n \n /*Trae todos los datos del corr electrónico de la base de datos en base a El usuario*/ \n try\n {\n sQ = \"SELECT asunord, cuerpord, servsmtpsal, portsmtp, actslenlog, usr, pass FROM corrselec WHERE estac = '\" + Login.sUsrG + \"'\"; \n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n if(rs.next())\n {\n /*Obtiene todos los datos de la consulta*/\n sSrvSMTPSal = rs.getString(\"servsmtpsal\");\n sSMTPPort = rs.getString(\"portsmtp\");\n sUsr = rs.getString(\"usr\");\n sContrasenia = rs.getString(\"pass\");\n sAsunOrd = rs.getString(\"asunord\");\n sCuerOrd = rs.getString(\"cuerpord\");\n \n /*Si activar ssl login esta activado entonces guarda true*/\n if(rs.getString(\"actslenlog\").compareTo(\"1\")==0)\n sActSSL = \"true\";\n else\n sActSSL = \"false\"; \n \n /*Desencripta la contraseña*/\n sContrasenia = Star.sDecryp(sContrasenia); \n }\n }\n catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n return; \n }\n \n /*Crea el usr y la contraseña como final para que el thead valide si son válidos o no*/ \n final String sUser = sUsr;\n final String sContra = sContrasenia;\n \n /*Si el primer correo no es null entonces*/\n if(sCo1!=null)\n {\n /*Manda el correo*/\n try\n {\n //Define las propiedades de conexión\n Properties props = System.getProperties();\n props.setProperty(\"mail.smtp.host\", sSrvSMTPSal);\n props.put(\"mail.smtp.starttls.enable\", sActSSL);\n if(0!=sSrvSMTPSal.compareTo(\"smtp.yandex.com\"))\n {\n System.out.println(\"llego\");\n //props.put(\"mail.smtp.EnableSSL.enable\",\"true\");\n }\n if(0==sSMTPPort.compareTo(\"465\"))\n {\n props.put(\"mail.smtp.socketFactory.port\", sSMTPPort);\n props.put(\"mail.smtp.socketFactory.class\",\n \"javax.net.ssl.SSLSocketFactory\");\n }\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.debug\", \"true\");\n props.put(\"mail.smtp.port\", sSMTPPort);\n props.put(\"mail.store.protocol\", \"pop3\");\n props.put(\"mail.transport.protocol\", \"smtp\");\n final String username = sUser;\n final String password = sContra;\n Session session = Session.getInstance(props,\n new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n MimeMessage msj = new MimeMessage(session);\n msj.setFrom (new InternetAddress(sUser));\n msj.setRecipients (Message.RecipientType.TO,InternetAddress.parse(sCo1));\n msj.setSubject (sAsunOrd + \"\\\"\" + sNoDoc + \"\\\"\");\n String msg = sCuerOrd;\n msj.setContent (msg, \"text/html; charset=utf-8\");\n \n /*Genera el adjunto*/\n BodyPart msjbod = new MimeBodyPart();\n msjbod.setText (sCuerOrd);\n Multipart mult = new MimeMultipart();\n mult.addBodyPart (msjbod);\n msjbod = new MimeBodyPart();\n DataSource sou = new FileDataSource(sRutPDF);\n msjbod.setDataHandler (new DataHandler(sou));\n msjbod.setFileName (sNomPDF);\n mult.addBodyPart (msjbod);\n msj.setContent (mult);\n \n /*Manda el correo*/\n Transport.send (msj);\n \n /*Ingresa en la base de datos el registor de que se mando con éxito*/\n try \n { \n sQ = \"INSERT INTO logcorrs ( corr, nodoc, estad, motiv, estac, falt, corrde, tip_doc, sucu, nocaj) \" + \n \"VALUES('\" + sCo1.replace(\"'\", \"''\") + \"','\" + sNoDoc.replace(\"'\", \"''\") + \"', 'ENVIADO','','\" + Login.sUsrG.replace(\"'\", \"''\") + \"', now(), '\" + sUsr.replace(\"'\", \"''\") + \"', 'ORDEN','\" + Star.sSucu.replace(\"'\", \"''\") + \"','\" + Star.sNoCaj.replace(\"'\", \"''\") + \"')\"; \n st = con.createStatement();\n st.executeUpdate(sQ);\n \n sQ = \"INSERT INTO estadiscor( corr, nodoc, estad, motiv, estac, falt, corrde, tip_doc, sucu, nocaj) \" + \n \"VALUES('\" + sCo1.replace(\"'\", \"''\") + \"','\" + sNoDoc.replace(\"'\", \"''\") + \"', 'ENVIADO','','\" + Login.sUsrG.replace(\"'\", \"''\") + \"', now(), '\" + sUsr.replace(\"'\", \"''\") + \"', 'ORDEN','\" + Star.sSucu.replace(\"'\", \"''\") + \"','\" + Star.sNoCaj.replace(\"'\", \"''\") + \"')\"; \n st = con.createStatement();\n st.executeUpdate(sQ);\n }\n catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n return; \n } \n }\n catch(MessagingException expnMessag)\n {\n /*Ingresa en la base de datos el registor de que se fallo*/\n try \n { \n sQ = \"INSERT INTO logcorrs ( corr, nodoc, estad, motiv, estac, falt, corrde, tip_doc, sucu, nocaj) \" + \n \"VALUES('\" + sCo1.replace(\"'\", \"''\") + \"','\" + sNoDoc.replace(\"'\", \"''\") + \"', 'FALLO','\" + expnMessag.getMessage().replace(\"'\", \"''\") + \"','\" + Login.sUsrG.replace(\"'\", \"''\") + \"', now(), '\" + sUsr.replace(\"'\", \"''\") + \"', 'ORDEN','\" + Star.sSucu.replace(\"'\", \"''\") + \"','\" + Star.sNoCaj.replace(\"'\", \"''\") + \"')\"; \n st = con.createStatement();\n st.executeUpdate(sQ); \n }\n catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n return; \n }\n \n /*Mandalo al correo alternativo*/\n vMandAlter(sNomPDF, sRutPDF, sCo1, sNoDoc);\n } \n \n }/*Fin de if(sCo1!=null)*/\n \n /*Si el segundo corr no es null entonces*/\n if(sCo2!=null)\n {\n /*Manda un correo*/\n try\n {\n Properties props = System.getProperties();\n props.setProperty(\"mail.smtp.host\", sSrvSMTPSal);\n props.put(\"mail.smtp.starttls.enable\", sActSSL);\n if(0!=sSrvSMTPSal.compareTo(\"smtp.yandex.com\"))\n {\n System.out.println(\"llego\");\n //props.put(\"mail.smtp.EnableSSL.enable\",\"true\");\n }\n if(0==sSMTPPort.compareTo(\"465\"))\n {\n props.put(\"mail.smtp.socketFactory.port\", sSMTPPort);\n props.put(\"mail.smtp.socketFactory.class\",\n \"javax.net.ssl.SSLSocketFactory\");\n }\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.debug\", \"true\");\n props.put(\"mail.smtp.port\", sSMTPPort);\n props.put(\"mail.store.protocol\", \"pop3\");\n props.put(\"mail.transport.protocol\", \"smtp\");\n final String username = sUser;\n final String password = sContra;\n Session session = Session.getInstance(props,\n new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n MimeMessage msj = new MimeMessage(session);\n msj.setFrom (new InternetAddress(sUser));\n msj.setRecipients (Message.RecipientType.TO,InternetAddress.parse(sCo2));\n msj.setSubject (sAsunOrd + \"\\\"\" + sNoDoc + \"\\\"\");\n String msg = sCuerOrd;\n msj.setContent (msg, \"text/html; charset=utf-8\");\n \n /*Genera el adjunto*/\n BodyPart msjbod = new MimeBodyPart();\n msjbod.setText (sCuerOrd);\n Multipart mult = new MimeMultipart();\n mult.addBodyPart (msjbod);\n msjbod = new MimeBodyPart();\n DataSource sou = new FileDataSource(sRutPDF);\n msjbod.setDataHandler(new DataHandler(sou));\n msjbod.setFileName (sNomPDF);\n mult.addBodyPart (msjbod);\n msj.setContent (mult);\n \n /*Manda el correo*/\n Transport.send (msj);\n \n /*Ingresa en la base de datos el registor de que se mando con éxito*/\n try \n { \n sQ = \"INSERT INTO logcorrs (corr, nodoc, estad, motiv, estac, falt, corrde, tip_doc, sucu, nocaj) \" + \n \"VALUES('\" + sCo2.replace(\"'\", \"''\") + \"','\" + sNoDoc.replace(\"'\", \"''\") + \"', 'ENVIADO', '','\" + Login.sUsrG.replace(\"'\", \"''\") + \"', now(), '\" + sUsr.replace(\"'\", \"''\") + \"', 'ORDEN', '\" + Star.sSucu.replace(\"'\", \"''\") + \"','\" + Star.sNoCaj.replace(\"'\", \"''\") + \"')\"; \n st = con.createStatement();\n st.executeUpdate(sQ);\n \n sQ = \"INSERT INTO estadiscor(corr, nodoc, estad, motiv, estac, falt, corrde, tip_doc, sucu, nocaj) \" + \n \"VALUES('\" + sCo2.replace(\"'\", \"''\") + \"','\" + sNoDoc.replace(\"'\", \"''\") + \"', 'ENVIADO', '','\" + Login.sUsrG.replace(\"'\", \"''\") + \"', now(), '\" + sUsr.replace(\"'\", \"''\") + \"', 'ORDEN', '\" + Star.sSucu.replace(\"'\", \"''\") + \"','\" + Star.sNoCaj.replace(\"'\", \"''\") + \"')\"; \n st = con.createStatement();\n st.executeUpdate(sQ);\n }\n catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n return; \n } \n }\n catch(MessagingException expnMessag)\n {\n /*Ingresa en la base de datos el registor de que se fallo*/\n try \n { \n sQ = \"INSERT INTO logcorrs (corr, nodoc, estad, motiv, estac, falt, corrde, tip_doc, sucu, nocaj) \" + \n \"VALUES('\" + sCo2.replace(\"'\", \"''\") + \"','\" + sNoDoc.replace(\"'\", \"''\") + \"', 'FALLO','\" + expnMessag.getMessage().replace(\"'\", \"''\") + \"','\" + Login.sUsrG.replace(\"'\", \"''\") + \"', now(), '\" + sUsr.replace(\"'\", \"''\") + \"', 'ORDEN','\" + Star.sSucu.replace(\"'\", \"''\") + \"','\" + Star.sNoCaj.replace(\"'\", \"''\") + \"')\"; \n st = con.createStatement();\n st.executeUpdate(sQ); \n }\n catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n return; \n }\n \n /*Mandalo al correo alternativo*/\n vMandAlter(sNomPDF, sRutPDF, sCo2, sNoDoc);\n } \n \n }/*Fin de if(sCo2!=null)*/\n \n /*Si el primer correo no es null entonces*/\n if(sCo3!=null)\n { \n /*Manda un correo*/\n try\n {\n Properties props = System.getProperties();\n props.setProperty(\"mail.smtp.host\", sSrvSMTPSal);\n props.put(\"mail.smtp.starttls.enable\", sActSSL);\n if(0!=sSrvSMTPSal.compareTo(\"smtp.yandex.com\"))\n {\n //props.put(\"mail.smtp.EnableSSL.enable\",\"true\");\n }\n if(0==sSMTPPort.compareTo(\"465\"))\n {\n props.put(\"mail.smtp.socketFactory.port\", sSMTPPort);\n props.put(\"mail.smtp.socketFactory.class\",\n \"javax.net.ssl.SSLSocketFactory\");\n }\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.debug\", \"true\");\n props.put(\"mail.smtp.port\", sSMTPPort);\n props.put(\"mail.store.protocol\", \"pop3\");\n props.put(\"mail.transport.protocol\", \"smtp\");\n final String username = sUser;\n final String password = sContra;\n Session session = Session.getInstance(props,\n new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n \n MimeMessage msj = new MimeMessage(session);\n msj.setFrom (new InternetAddress(sUser));\n msj.setRecipients (Message.RecipientType.TO,InternetAddress.parse(sCo3));\n msj.setSubject (sAsunOrd + \"\\\"\" + sNoDoc + \"\\\"\");\n String msg = sCuerOrd;\n msj.setContent (msg, \"text/html; charset=utf-8\");\n \n /*Genera el adjunto*/\n BodyPart msjbod = new MimeBodyPart();\n msjbod.setText (sCuerOrd);\n Multipart mult = new MimeMultipart();\n mult.addBodyPart (msjbod);\n msjbod = new MimeBodyPart();\n DataSource sou = new FileDataSource(sRutPDF);\n msjbod.setDataHandler(new DataHandler(sou));\n msjbod.setFileName (sNomPDF);\n mult.addBodyPart (msjbod);\n msj.setContent (mult);\n \n /*Manda el correo*/\n Transport.send(msj);\n \n /*Ingresa en la base de datos el registor de que se mando con éxito*/\n try \n { \n sQ = \"INSERT INTO logcorrs (corr, nodoc, estad, motiv, estac, falt, corrde, tip_doc, sucu, nocaj) \" + \n \"VALUES('\" + sCo3.replace(\"'\", \"''\") + \"','\" + sNoDoc.replace(\"'\", \"''\") + \"', 'ENVIADO', '','\" + Login.sUsrG.replace(\"'\", \"''\") + \"', now(), '\" + sUsr.replace(\"'\", \"''\") + \"', 'ORDEN','\" + Star.sSucu.replace(\"'\", \"''\") + \"','\" + Star.sNoCaj.replace(\"'\", \"''\") + \"')\"; \n st = con.createStatement();\n st.executeUpdate(sQ);\n \n sQ = \"INSERT INTO estadiscor(corr, nodoc, estad, motiv, estac, falt, corrde, tip_doc, sucu, nocaj) \" + \n \"VALUES('\" + sCo3.replace(\"'\", \"''\") + \"','\" + sNoDoc.replace(\"'\", \"''\") + \"', 'ENVIADO', '','\" + Login.sUsrG.replace(\"'\", \"''\") + \"', now(), '\" + sUsr.replace(\"'\", \"''\") + \"', 'ORDEN','\" + Star.sSucu.replace(\"'\", \"''\") + \"','\" + Star.sNoCaj.replace(\"'\", \"''\") + \"')\"; \n st = con.createStatement();\n st.executeUpdate(sQ);\n }\n catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n return; \n } \n }\n catch(MessagingException expnMessag)\n {\n /*Ingresa en la base de datos el registor de que se fallo*/\n try \n { \n sQ = \"INSERT INTO logcorrs (corr, nodoc, estad, motiv, estac, falt, corrde, tip_doc, sucu, nocaj) \" + \n \"VALUES('\" + sCo3.replace(\"'\", \"''\") + \"','\" + sNoDoc.replace(\"'\", \"''\") + \"', 'FALLO','\" + expnMessag.getMessage().replace(\"'\", \"''\") + \"','\" + Login.sUsrG.replace(\"'\", \"''\") + \"' , now(), '\" + sUsr + \"', 'ORDEN', '\" + Star.sSucu.replace(\"'\", \"''\") + \"','\" + Star.sNoCaj.replace(\"'\", \"''\") + \"')\"; \n st = con.createStatement();\n st.executeUpdate(sQ); \n }\n catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n return; \n }\n \n //Cierra la base de datos\n if(Star.iCierrBas(con)==-1)\n return;\n \n /*Mandalo al correo alternativo*/\n vMandAlter(sNomPDF, sRutPDF, sCo3, sNoDoc);\n \n /*Regresa no puede continuar*/\n return;\n } \n \n }/*Fin de if(sCo3!=null)*/\n \n //Cierra la base de datos\n Star.iCierrBas(con);\n \n }/*Fin de public void run()*/\n \n }).start();\n \n }", "title": "" }, { "docid": "902319c27506f31cfc13370db4b68812", "score": "0.4799175", "text": "public String geraPdf(Map<String,File> arqs){\n //Se for pdf so vai ter um arquivo e o mesmo pode ser gravado de forma normal\n String nomePdf = null;\n try{\n //Senao sao varios arquivos de imagem que serao convertidos\n PDDocument doc = null;\n doc = new PDDocument();\n for(String nomeArquivo : arqs.keySet()){\n //Adiciona pagina\n PDPage page = addPagina(doc);\n\n BufferedImage imagem = getBufferedImageTratada(arqs.get(nomeArquivo));\n\n\n //Se for jpg deve instanciar PDJepg caso contrario PDPixelMap\n PDXObjectImage ximage = null;\n if(nomeArquivo.endsWith(\"jpg\"))\n ximage = new PDJpeg(doc, imagem);\n else if(nomeArquivo.endsWith(\"png\")){\n //ImageIO.write(resized, \"png\",new File(\"C:\\\\Otavio\\\\TI\\\\imagens\\\\imagemPng.png\"));\n ximage = new PDPixelMap(doc,imagem);\n }\n addConteudoImagem(doc, page, ximage);\n }\n nomePdf = geraNome()+\".pdf\";\n doc.save(caminhoPdf+nomePdf);\n if( doc != null )\n {\n doc.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n return \"Problema na conversao das imagens para pdf\";\n } catch (COSVisitorException e) {\n e.printStackTrace();\n return \"Problema na gravacao do pdf\";\n }\n return nomePdf;\n\n }", "title": "" }, { "docid": "ac8df98e92ee0acbb66d9c7cb316f473", "score": "0.47990248", "text": "public static void main(String[] args) throws Exception\n {\n String dataDir = Utils.getDataDir(AsposeConvertToFormats.class);\n\n // Load the document from disk.\n Document doc = new Document(dataDir + \"document.doc\");\n\n doc.save(dataDir + \"html/Aspose_DocToHTML.html\",SaveFormat.HTML); //Save the document in HTML format.\n doc.save(dataDir + \"Aspose_DocToPDF.pdf\",SaveFormat.PDF); //Save the document in PDF format.\n doc.save(dataDir + \"Aspose_DocToTxt.txt\",SaveFormat.TEXT); //Save the document in TXT format.\n doc.save(dataDir + \"Aspose_DocToJPG.jpg\",SaveFormat.JPEG); //Save the document in JPEG format.\n\n System.out.println(\"Aspose - Doc file converted in specified formats\");\n }", "title": "" }, { "docid": "a26de95e6bb62804eb00e4b197356ada", "score": "0.47976202", "text": "public void convertFileToStream(String file, OutputStream outStream) {\n if (!(new File(file).length() > 0))\n throw new Error(createInvalidValueMessage(file, \"convertFileToStream::file\", \"html-to-pdf\", \"The file must exist and not be empty.\", \"convert_file_to_stream\"), 470);\n \n files.put(\"file\", file);\n helper.post(fields, files, rawData, outStream);\n }", "title": "" }, { "docid": "7667defe3b659c2f528d4e0d9b5dc2dc", "score": "0.47968155", "text": "@SuppressWarnings(\"rawtypes\")\n private com.squareup.okhttp.Call getPdfInStorageToHtmlValidateBeforeCall(String name, Integer additionalMarginWidthInPoints, Boolean compressSvgGraphicsIfAny, Boolean convertMarkedContentToLayers, String defaultFontName, Integer documentType, Boolean fixedLayout, Integer imageResolution, Integer minimalLineWidth, Boolean preventGlyphsGrouping, Boolean splitCssIntoPages, Boolean splitIntoPages, Boolean useZOrder, String antialiasingProcessing, String cssClassNamesPrefix, List<Integer> explicitListOfSavedPages, String fontEncodingStrategy, String fontSavingMode, String htmlMarkupGenerationMode, String lettersPositioningMethod, Boolean pagesFlowTypeDependsOnViewersScreenSize, String partsEmbeddingMode, String rasterImagesSavingMode, Boolean removeEmptyAreasOnTopAndBottom, Boolean saveShadowedTextsAsTransparentTexts, Boolean saveTransparentTexts, String specialFolderForAllImages, String specialFolderForSvgImages, Boolean trySaveTextUnderliningAndStrikeoutingInCss, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (name == null) {\n throw new ApiException(\"Missing the required parameter 'name' when calling getPdfInStorageToHtml(Async)\");\n }\n \n\n com.squareup.okhttp.Call call = getPdfInStorageToHtmlCall(name, additionalMarginWidthInPoints, compressSvgGraphicsIfAny, convertMarkedContentToLayers, defaultFontName, documentType, fixedLayout, imageResolution, minimalLineWidth, preventGlyphsGrouping, splitCssIntoPages, splitIntoPages, useZOrder, antialiasingProcessing, cssClassNamesPrefix, explicitListOfSavedPages, fontEncodingStrategy, fontSavingMode, htmlMarkupGenerationMode, lettersPositioningMethod, pagesFlowTypeDependsOnViewersScreenSize, partsEmbeddingMode, rasterImagesSavingMode, removeEmptyAreasOnTopAndBottom, saveShadowedTextsAsTransparentTexts, saveTransparentTexts, specialFolderForAllImages, specialFolderForSvgImages, trySaveTextUnderliningAndStrikeoutingInCss, folder, progressListener, progressRequestListener);\n return call;\n\n }", "title": "" }, { "docid": "833a7bcb20197b1d46fb5fccd35fe4b0", "score": "0.47961023", "text": "public void onpdf(View view){\n bitmap = loadBitmapFromView(pdf, 1200, 1600);\n createPdf();\n }", "title": "" }, { "docid": "17c92ec1f6eded81e183f7aba7e94989", "score": "0.47885016", "text": "@Test\n public void testImportAsFormLikeGuyard() throws IOException {\n try ( InputStream resource = getClass().getResourceAsStream(\"Pour Ronald - PDF Autocad reduit.pdf\")) {\n PDDocument pdDocument = PDDocument.load(resource);\n PDFormXObject pageForm = new LayerUtility(pdDocument).importPageAsForm(pdDocument, 0);\n System.out.println(pageForm.getMatrix());\n }\n }", "title": "" }, { "docid": "543d70e256e2aeeb1fd839f3ad7ce78d", "score": "0.47825482", "text": "private List<File> convertToImages(int resolution, String paperSize, boolean portrait) throws IOException {\r\n \t\t// Get temporary file names for images\r\n \t\tFile tmp = File.createTempFile(\"plotter_%d_\", \".png\");\r\n \r\n \t\tArrayList<String> command = new ArrayList<String>();\r\n \r\n \t\t// Build command\r\n \t\tcommand.add(Configuration.getProperty(\"plotter.ghostscript.executable\"));\r\n \t\tcommand.add(\"-dQUIET\");\r\n \t\tcommand.add(\"-dNOPAUSE\");\r\n \t\tcommand.add(\"-dBATCH\");\r\n \t\tcommand.add(\"-dSAFER\");\r\n \t\tcommand.add(\"-sDEVICE=png16m\");\r\n \t\tcommand.add(\"-dTextAlphaBits=4\");\r\n \t\tcommand.add(\"-dGraphicsAlphaBits=4\");\r\n \t\tcommand.add(\"-r\" + resolution);\r\n \t\tcommand.add(\"-dPDFFitPage\");\r\n \t\tcommand.add(\"-sPAPERSIZE=\" + paperSize);\r\n \t\tif (portrait) {\r\n \t\t\tcommand.add(\"-dNORANGEPAGESIZE\");\r\n \t\t}\r\n \t\tcommand.add(\"-sOutputFile=\" + tmp.getAbsolutePath());\r\n \t\tcommand.add(pdfFile.getAbsolutePath());\r\n \r\n \t\tProcessBuilder processBuilder = new ProcessBuilder(command);\r\n \t\tProcess proc = processBuilder.start();\r\n \r\n \t\tint exitCode;\r\n \t\ttry {\r\n \t\t\texitCode = proc.waitFor();\r\n \t\t} catch (InterruptedException e) {\r\n \t\t\tthrow new IOException(\"PDF to image conversion interrupted.\", e);\r\n \t\t}\r\n \r\n \t\tif (exitCode != 0) {\r\n \t\t\tString errorMessage = IOUtils.toString(proc.getErrorStream())\r\n \t\t\t\t\t+ \" - \" + IOUtils.toString(proc.getInputStream());\r\n \r\n \t\t\tthrow new IOException(\r\n \t\t\t\t\t\"PDF could not be converted to images, message: \"\r\n \t\t\t\t\t\t\t+ errorMessage);\r\n \t\t}\r\n \r\n \t\t// Retrieve images\r\n \t\tList<File> images = new ArrayList<File>();\r\n \t\tfor (int i = 1; i <= this.getNumberOfPages(); i++) {\r\n \t\t\tString imageFilename = tmp.getAbsolutePath().replace(\"%d\",\r\n \t\t\t\t\tInteger.toString(i));\r\n \r\n \t\t\timages.add(new File(imageFilename));\r\n \t\t}\r\n \r\n \t\ttmp.delete();\r\n \r\n \t\treturn images;\r\n \t}", "title": "" }, { "docid": "bd190e10272ab47c8ebd1ad325e73142", "score": "0.47822773", "text": "void convert(File htmlFile, String destFilePath) throws Exception;", "title": "" }, { "docid": "9e7b87d8b451c9a989cb0d1a25134cd1", "score": "0.47817287", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tString strXml = xmlText.getText();\n\t\t\t\t\t\tString strXsl = xslText.getText();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tString strOutput = XSLT.transform(strXsl, strXml, null, IOUtil.DEFAULT_CHARSET);\n\t\t\t\t\t\t\tbrowser.loadContent(strOutput);\n\t\t\t\t\t\t\toutputText.setText(strOutput);\n\t\t\t\t\t\t} catch (TransformerException | IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\tString errorMsg = myLang.getString(\"error\")+\"\\n\"+e.getLocalizedMessage();\n\t\t\t\t\t\t\toutputText.setText(errorMsg);\n\t\t\t\t\t\t\tbrowser.loadContent(errorMsg);\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\ttabbedPane.setSelectedIndex(0);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "39b520aa78a22a9cf9de526c3dff95c2", "score": "0.4762369", "text": "public void convertFileToStream(String file, OutputStream outStream) {\n if (!(new File(file).length() > 0))\n throw new Error(createInvalidValueMessage(file, \"convertFileToStream::file\", \"pdf-to-text\", \"The file must exist and not be empty.\", \"convert_file_to_stream\"), 470);\n \n files.put(\"file\", file);\n helper.post(fields, files, rawData, outStream);\n }", "title": "" }, { "docid": "5fecc565523177e77f6a677c3155ba7e", "score": "0.4749015", "text": "@Test //ExSkip\n public void streamFontSourceFileRendering() throws Exception\n {\n FontSettings fontSettings = new FontSettings();\n fontSettings.setFontsSources(new FontSourceBase[] { new StreamFontSourceFile() });\n\n DocumentBuilder builder = new DocumentBuilder();\n builder.getDocument().setFontSettings(fontSettings);\n builder.getFont().setName(\"Kreon-Regular\");\n builder.writeln(\"Test aspose text when saving to PDF.\");\n\n builder.getDocument().save(getArtifactsDir() + \"Font.StreamFontSourceFileRendering.pdf\");\n }", "title": "" }, { "docid": "33ba47d930c735999e9d96c094911aac", "score": "0.4740076", "text": "private static void saveAsDocument( final File file, final ExchangerDocument document) {\r\n\t\teditor.setWait( true);\r\n\t\teditor.setStatus( \"Saving ...\");\r\n\r\n\t\ttry\t{\r\n\t\t\tfinal URL url = com.cladonia.xml.XngrURLUtilities.getURLFromFile(file);\r\n\r\n\t\t\t// Run in Thread!!!\r\n\t\t\tRunnable runner = new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tURL oldURL = document.getURL();\r\n\t\t\t\t\tAutomaticProgressMonitor monitor = new AutomaticProgressMonitor( parent, null, \"Saving \\\"\"+URLUtilities.toString( url)+\"\\\".\", 250);\r\n\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdocument.setURL( url);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tmonitor.start();\r\n\t\t\t\t\t\tdocument.save();\r\n\t\t\t\t\t\tmonitor.stop();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tSwingUtilities.invokeLater( new Runnable() {\r\n\t\t\t\t\t\t public void run() {\r\n\t\t\t\t\t\t\t\teditor.setDocument( document); \r\n\t\t\t\t\t\t\t\teditor.getChangeManager().discardAllEdits();\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t} catch ( IOException ex){\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t\tMessageHandler.showError( \"Could not save Document.\", ex, \"Saving Error\");\r\n\t\t\t\t\t} catch ( Exception ex){\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t} finally {\r\n\t\t\t\t \tif ( !monitor.isCanceled()) {\r\n\t\t\t\t\t\t\tproperties.setLastOpenedDocument( url.getFile());\r\n\t\t\t\t \t} else {\r\n\t\t\t\t \t\tdocument.setURL( oldURL);\r\n\t\t\t\t \t}\r\n\t\r\n\t\t\t\t\t\teditor.setStatus( \"Done\");\r\n\t\t\t\t\t\teditor.setWait( false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\r\n\t\t\t// Create and start the thread ...\r\n\t\t\tThread thread = new Thread( runner);\r\n\t\t\tthread.start();\r\n\t\t} catch ( MalformedURLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t\tMessageHandler.showError( \"Could not save Document.\", ex, \"Saving Error\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8ca46609b4df694fd63a83f39ddc6aae", "score": "0.47400165", "text": "private void doSaveDocument() throws IOException {\n \n final StyledDocument doc = getDocument();\n // dependency on xml/core\n String enc = EncodingUtil.detectEncoding(doc);\n if (enc == null) enc = \"UTF8\"; //!!! // NOI18N\n \n try {\n //test encoding on dummy stream\n new OutputStreamWriter(new ByteArrayOutputStream(1), enc);\n if (!checkCharsetConversion(enc)) {\n return;\n }\n super.saveDocument();\n //moved from Env.save()\n// DataObject.setModified() already called as part of super.saveDocument(). The save action is now asynchronous\n// in the IDE and super.saveDocument() checks for possible extra document modifications performed during save\n// and sets the DO.modified flag accordingly.\n// getDataObject().setModified(false);\n } catch (UnsupportedEncodingException ex) {\n // ask user what next?\n String message = NbBundle.getMessage(XmlMultiViewEditorSupport.class,\"TEXT_SAVE_AS_UTF\", enc);\n NotifyDescriptor descriptor = new NotifyDescriptor.Confirmation(message);\n Object res = DialogDisplayer.getDefault().notify(descriptor);\n \n if (res.equals(NotifyDescriptor.YES_OPTION)) {\n \n // update prolog to new valid encoding\n \n try {\n final int MAX_PROLOG = 1000;\n int maxPrologLen = Math.min(MAX_PROLOG, doc.getLength());\n final char prolog[] = doc.getText(0, maxPrologLen).toCharArray();\n int prologLen = 0; // actual prolog length\n \n //parse prolog and get prolog end\n if (prolog[0] == '<' && prolog[1] == '?' && prolog[2] == 'x') {\n \n // look for delimitting ?>\n for (int i = 3; i<maxPrologLen; i++) {\n if (prolog[i] == '?' && prolog[i+1] == '>') {\n prologLen = i + 1;\n break;\n }\n }\n }\n \n final int passPrologLen = prologLen;\n \n Runnable edit = new Runnable() {\n public void run() {\n try {\n \n doc.remove(0, passPrologLen + 1); // +1 it removes exclusive\n doc.insertString(0, \"<?xml version='1.0' encoding='UTF-8' ?> \\n<!-- was: \" + new String(prolog, 0, passPrologLen + 1) + \" -->\", null); // NOI18N\n \n } catch (BadLocationException e) {\n if (System.getProperty(\"netbeans.debug.exceptions\") != null) // NOI18N\n e.printStackTrace();\n }\n }\n };\n \n NbDocument.runAtomic(doc, edit);\n \n super.saveDocument();\n //moved from Env.save()\n// DataObject.setModified() already called as part of super.saveDocument(). The save action is now asynchronous\n// in the IDE and super.saveDocument() checks for possible extra document modifications performed during save\n// and sets the DO.modified flag accordingly.\n// getDataObject().setModified(false);\n // need to force reloading\n ((XmlMultiViewDataObject) getDataObject()).getDataCache().reloadData();\n \n \n } catch (BadLocationException lex) {\n ErrorManager.getDefault().notify(lex);\n }\n \n } else { // NotifyDescriptor != YES_OPTION\n return;\n }\n }\n }", "title": "" }, { "docid": "dcb4dd90e632a0aaeb15af335d166242", "score": "0.47336182", "text": "public void downloadPdfForTheSubmission(String party) {\n downloadFromUrl(SAVE_AS_PDF_BUTTON_LOCATOR, party, additionalInfoSubmissionTempId());\n }", "title": "" }, { "docid": "e5b2a9a57f47565b4be4166c000d1444", "score": "0.47317344", "text": "private boolean convertToSVGImageType(String extension) {\n extension = extension + \"z\";\n String tempFolderPath = model.getTempFolder();\n HashMap<String, Process> processListMap = new HashMap<String, Process>();\n try {\n\n // TODO code application logic here\n PDDocument document = PDDocument.load(new File(model.getPathOfSourceFolder() + model.getNameOfSourceFile()));\n for (int page = 0; page < document.getNumberOfPages(); ++page) {\n PDPage page1 = document.getPage(page);\n\n // Create a new empty document\n PDDocument newDocument = new PDDocument();\n\n // Create a new blank page and add it to the document\n newDocument.addPage(page1);\n\n // Save the newly created document\n String tempCreatedPDF = tempFolderPath + model.getNameOfSourceFile() + \"_\" + page + \".pdf\";\n\n newDocument.save(tempCreatedPDF);\n\n // finally make sure that the document is properly closed.\n newDocument.close();\n\n String fileNameWithoutExtension = FileUtils.getNameWithoutExtension(new File(model.getNameOfDestinationFile()));\n\n String destFileName = model.getPathOfDestinationFolder() + fileNameWithoutExtension + \"_page_\" + page + \".\" + extension;\n String generatedCMD = \"inkscape --without-gui --file \" + tempCreatedPDF + \" --export-text-to-path --export-plain-svg=\" + destFileName;\n\n processListMap.put(tempCreatedPDF + \"|\" + destFileName, Runtime.getRuntime().exec(generatedCMD));\n\n }\n document.close();\n\n return true;\n\n } catch (IOException ex) {\n Logger.getLogger(PDFToImageConversion.class.getName()).log(Level.SEVERE, null, ex);\n ex.printStackTrace();\n } finally {\n deleteTempFiles(processListMap);\n }\n return false;\n\n }", "title": "" }, { "docid": "a3a650cf611f608914913ea9c57f9e95", "score": "0.47313058", "text": "public void convertStreamToFile(InputStream inStream, String filePath) throws IOException {\n if (!(filePath != null && !filePath.isEmpty()))\n throw new Error(createInvalidValueMessage(filePath, \"convertStreamToFile::file_path\", \"pdf-to-text\", \"The string must not be empty.\", \"convert_stream_to_file\"), 470);\n \n FileOutputStream outputFile = new FileOutputStream(filePath);\n try {\n convertStreamToStream(inStream, outputFile);\n outputFile.close();\n }\n catch(Error why) {\n outputFile.close();\n new File(filePath).delete();\n throw why;\n }\n }", "title": "" }, { "docid": "8dec9aba030acc86e7be28d17354550a", "score": "0.47306034", "text": "private void obtenerFichaPdf() {\n /*Creando una tarea asincrona*/\n AsyncTask<Void, Void, Void> fichaPdf = new AsyncTask<Void, Void, Void>() {\n private ProgressDialog PD;\n private ConnectivityManager CM = (ConnectivityManager) getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n private NetworkInfo NET_INFO = CM.getActiveNetworkInfo();\n private ExpedienteWS ESPEDIENTEWS = new ExpedienteWS(getResources());\n\n @Override\n protected void onPreExecute() {\n PD = new ProgressDialog(getActivity());\n PD.setTitle(getResources().getString(R.string.title_obteniendo));\n PD.setMessage(getResources().getString(R.string.msj_espere_por_favor));\n PD.setCancelable(false);\n PD.setIndeterminate(true);\n PD.show();\n }\n\n @Override\n protected Void doInBackground(Void... params) {\n if (NET_INFO != null && NET_INFO.isConnected()) {\n RESPUESTA = ESPEDIENTEWS.getFichaPdf(mVigilanciaIntegradaActivity.mSecVigilanciaIntegrada);\n }\n\n return null;\n }\n\n @Override\n protected void onPostExecute(Void result) {\n PD.dismiss();\n\n try {\n\n File file = new File(\"/sdcard/VigilanciaInfeccionesRespiratorias.pdf\");\n FileOutputStream fos = new FileOutputStream(file);\n String filepath = \"/sdcard/VigilanciaInfeccionesRespiratorias.pdf\";\n OutputStream pdffos = new FileOutputStream(filepath);\n pdffos.write(RESPUESTA);\n pdffos.flush();\n pdffos.close();\n\n if (file.exists()) {\n Uri path = Uri.fromFile(file);\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setDataAndType(path, \"application/pdf\");\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n };\n fichaPdf.execute((Void[]) null);\n }", "title": "" }, { "docid": "b03a1ad05c79a0ab66b0daed9ea732f2", "score": "0.46933043", "text": "protected boolean createPdf(Invoice invoice, Supplier<? extends Serializable> root, ConformanceLevel zugferdProfile) {\n boolean retval = true;\n String pdfFile = invoice.getPdfPath();\n PDDocument pdfa3 = null;\n\n netPricesPerVat.clear();\n\n if (zugferdProfile == ConformanceLevel.XRECHNUNG) {\n FileOrganizer fo = ContextInjectionFactory.make(FileOrganizer.class, eclipseContext);\n Set<PathOption> pathOptions = Stream.of(PathOption.values()).collect(Collectors.toSet());\n Path path = fo.getDocumentPath(pathOptions, TargetFormat.XML, eclipsePrefs.get(ZFConstants.PREFERENCES_ZUGFERD_PATH, \"\"), invoice);\n \n // only to be on the safe side...\n try {\n Files.deleteIfExists(path);\n } catch (IOException exception) {\n log.error(exception, \"can't delete old XRechnung document: \" + exception.getMessage());\n }\n createXmlFile(root, path);\n } else {\n try (ByteArrayOutputStream buffo = new ByteArrayOutputStream()) {\n // create XML from structure\n DOMResult res = new DOMResult();\n JAXBContext context = org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(new Class[] { root.get().getClass() }, null);\n context.createMarshaller().marshal(root.get(), res);\n org.w3c.dom.Document zugferdXml = (org.w3c.dom.Document) res.getNode();\n printDocument(zugferdXml, buffo);\n\n PDDocument retvalPDFA3 = getPdfHelper().makeA3Acompliant(pdfFile, zugferdProfile/*, zugferdXml, invoice.getName()*/);\n\n // embed XML\n pdfa3 = getPdfHelper().attachZugferdFile(retvalPDFA3, buffo);\n\n if (pdfFile != null) {\n pdfa3.save(Paths.get(pdfFile).toFile());\n } else { // dialog cancelled\n retval = false;\n }\n } catch (JAXBException | IOException | TransformerException | XmpParsingException | XmpSchemaException exception) {\n log.error(exception, \"error creating ZUGFeRD document: \" + exception.getMessage());\n retval = false;\n } finally {\n if (pdfa3 != null) {\n try {\n pdfa3.close();\n } catch (IOException ioex) {\n log.error(ioex, \"error closing ZUGFeRD PDF document: \" + ioex.getMessage());\n }\n }\n }\n }\n return retval;\n }", "title": "" }, { "docid": "91da8f57449774e994fee16ba1233d39", "score": "0.46890798", "text": "public void convertRdf() {\n\t\tint i = 0;\n\t\tfor (File file : files) {\n\t\t\tif (file.getName().endsWith(\".aml\")) {\n\t\t\t\tKrextor krextor = new Krextor();\n\t\t\t\tkrextor.convertRdf(file.getAbsolutePath(), \"aml\", \"turtle\",\n\t\t\t\t\t\tConfigManager.getFilePath() + \"plfile\" + i + \".ttl\");\n\t\t\t} \n\t\t\ti++;\n\t\t}\n\t}", "title": "" }, { "docid": "fee9b06c825db498cdd302325805446c", "score": "0.46872926", "text": "@Test\n public void testLol() throws IOException\n {\n try ( InputStream resource = getClass().getResourceAsStream(\"lol.pdf\") )\n {\n PDDocument document = PDDocument.load(resource);\n// Option 1: Remove Rotate entries\n// for (PDPage page : document.getPages()) {\n// page.setRotation(0);\n// }\n\n PDFTextStripper stripper = new PDFTextStripper();\n// Option 2: Sort by position\n stripper.setSortByPosition(true);\n String text = stripper.getText(document);\n\n System.out.printf(\"\\n*\\n* lol.pdf\\n*\\n%s\\n\", text);\n Files.write(new File(RESULT_FOLDER, \"lol.txt\").toPath(), Collections.singleton(text));\n }\n }", "title": "" }, { "docid": "d44db593c7bad9653e04d9b6a83d1e85", "score": "0.4684981", "text": "public interface DocumentHandler {\n String FIELD_CONTENTS = \"contents\";\n String FIELD_PATH = \"path\";\n String FIELD_FILE_NAME = \"filename\";\n\n /**\n * Read file and convert it to document\n * @param file Path to file\n * @return Document\n * @throws IOException\n */\n Document getDocument(Path file) throws IOException;\n}", "title": "" }, { "docid": "62f3334d559899461d4681acc19aaea8", "score": "0.46772823", "text": "@SuppressWarnings(\"rawtypes\")\n private com.squareup.okhttp.Call putPdfInStorageToDocValidateBeforeCall(String name, String outPath, Boolean addReturnToLineEnd, String format, Integer imageResolutionX, Integer imageResolutionY, Integer maxDistanceBetweenTextLines, String mode, Boolean recognizeBullets, Double relativeHorizontalProximity, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (name == null) {\n throw new ApiException(\"Missing the required parameter 'name' when calling putPdfInStorageToDoc(Async)\");\n }\n \n // verify the required parameter 'outPath' is set\n if (outPath == null) {\n throw new ApiException(\"Missing the required parameter 'outPath' when calling putPdfInStorageToDoc(Async)\");\n }\n \n\n com.squareup.okhttp.Call call = putPdfInStorageToDocCall(name, outPath, addReturnToLineEnd, format, imageResolutionX, imageResolutionY, maxDistanceBetweenTextLines, mode, recognizeBullets, relativeHorizontalProximity, folder, progressListener, progressRequestListener);\n return call;\n\n }", "title": "" }, { "docid": "21d911ff45e94bc7d14b94ba330dc1af", "score": "0.4672326", "text": "private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {\n try\n {\n String path1=jTextField1.getText().trim();\n String tr=jTextArea1.getText().trim();\n \n if(path1.equals(\"\")||tr.equals(\"\"))\n JOptionPane.showMessageDialog(this, \"Select PDF Proposal\");\n else\n { \n StoreFile sfe=new StoreFile(path1);\n String ppr=sfe.read();\n \n String spres=\"\";\n File pr1=new File(\"process\"); // store file after preprocessing\n pr1.mkdir();\n \n String pt1=pr1.getAbsolutePath();\n \n \n File ds1=new File(pt1);\n String sd1[]=ds1.list();\n for(int i=0;i<sd1.length;i++)\n {\n File fi=new File(pt1+\"\\\\\"+sd1[i]);\n boolean b1=fi.delete();\n System.out.println(sd1[i]+\"delete \"+b1);\n }\n \n File spm=new File(ppr);\n String lt1[]=spm.list();\n File list1[]=spm.listFiles();\n \n for(int i=0;i<list1.length;i++)\n {\n \n String fname=list1[i].getPath(); \n\n String cnt=new PreProcess().getContent(pt1,fname); // call Process\n allkeys=allkeys+cnt+\" \";\n spres=spres+cnt.replace(\"\\n\", \",\")+\"\\n\";\n File f=new File(pt1+\"\\\\\"+lt1[i]);\n FileOutputStream fos=new FileOutputStream(f);\n fos.write(cnt.getBytes());\n fos.close();\n \n }\n \n String key[]=allkeys.split(\" \");\n String s1=\"\";\n for(int i=0;i<key.length;i++) \n {\n String k1=key[i].trim();\n if(!k1.equals(\"\"))\n {\n if(!feat.contains(k1))\n {\n feat.add(k1);\n \n }\n }\n }\n \n String g1=\"\";\n \n File fe1=new File(\"process\");\n File flist1[]=fe1.listFiles();\n \n for(int i=0;i<flist1.length;i++)\n { \n FileInputStream fis=new FileInputStream(flist1[i]);\n byte data[]=new byte[fis.available()];\n fis.read(data);\n fis.close();\n \n String gg=new String(data).toLowerCase();\n g1=g1+gg+\" \";\n }\n \n String g2[]=g1.trim().split(\" \");\n \n for(int i=0;i<feat.size();i++)\n {\n String ft=feat.get(i).toString().toLowerCase();\n int cc=0;\n for(int j=0;j<g2.length;j++)\n {\n if(g2[j].equals(ft))\n cc++;\n }\n //System.out.println(ft+\" : \"+cc);\n if(cc>1)\n {\n if(!feature.contains(ft))\n {\n System.out.println(ft + \" : \" + cc);\n if (ft.length() <= 14) {\n feature.add(ft);\n fCnt.add(cc);\n s1 = s1 + ft + \"\\n\";\n }\n \n }\n }\n }\n \n System.out.println(feature.size()+\" : \"+feat.size());\n System.out.println(feature);\n jTextArea2.setText(s1);\n }\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n \n System.out.println(\"dm : \" + StoreFile.dm);\n System.out.println(\"ns : \" + StoreFile.ns);\n System.out.println(\"ip : \" + StoreFile.ip);\n System.out.println(\"mc : \" + StoreFile.mc);\n \n try{\n DBConnection connection = new DBConnection();\n Statement statement = connection.stt;\n int count = 1;\n ResultSet resultset = null;\n \n String query = \"\";\n while(count <= 4){\n if(!StoreFile.dm.equals(\"\")){\n query = \"select name from professor where discipline='Data Mining'\";\n resultset = statement.executeQuery(query);\n if(resultset.next()){\n result2 += \"Domain 'Data Mining' (\" + StoreFile.dm + \") assigned to Prof. \" + resultset.getString(1)+ \"\\n\";\n }\n StoreFile.dm = \"\";\n }else if(!StoreFile.ns.equals(\"\")){\n query = \"select name from professor where discipline='Networking'\";\n resultset = statement.executeQuery(query);\n if(resultset.next()){\n result2 += \"Domain 'Networking' (\" + StoreFile.ns + \") assigned to Prof. \" + resultset.getString(1)+ \"\\n\";\n }\n StoreFile.ns = \"\";\n }else if(!StoreFile.ip.equals(\"\")){\n query = \"select name from professor where discipline='Image Processing'\";\n resultset = statement.executeQuery(query);\n if(resultset.next()){\n result2 += \"Domain 'Image Processing' (\" + StoreFile.ip + \") assigned to Prof. \" + resultset.getString(1)+ \"\\n\";\n }\n StoreFile.ip = \"\";\n }else if(!StoreFile.mc.equals(\"\")){\n query = \"select name from professor where discipline='Mobile Computing'\";\n resultset = statement.executeQuery(query);\n if(resultset.next()){\n result2 += \"Domain 'Mobile Computing' (\" + StoreFile.mc + \") assigned to Prof. \" + resultset.getString(1) + \"\\n\";\n }\n StoreFile.mc = \"\";\n }\n count++;\n }\n //jTextArea3.setText(result2);\n }catch(Exception ex){\n ex.printStackTrace();\n }\n \n }", "title": "" }, { "docid": "cf688931473db79a2752925aed207c66", "score": "0.46693346", "text": "@SuppressWarnings(\"rawtypes\")\n private com.squareup.okhttp.Call getPdfInStorageToLaTeXValidateBeforeCall(String name, Integer pagesCount, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (name == null) {\n throw new ApiException(\"Missing the required parameter 'name' when calling getPdfInStorageToLaTeX(Async)\");\n }\n \n\n com.squareup.okhttp.Call call = getPdfInStorageToLaTeXCall(name, pagesCount, folder, progressListener, progressRequestListener);\n return call;\n\n }", "title": "" }, { "docid": "3ecbfeab52e23b5f165516d810207df6", "score": "0.46645355", "text": "private void postProcess(XmlDocletAction action) throws IOException {\r\n if (action.getPostProcessor() != null && action.getPostProcessor().length() > 0) {\r\n String folderExpr = action.getPostProcessingParameters().get(\"folder\");\r\n String templateFileExpr = action.getPostProcessingParameters().get(\"templateFile\");\r\n String filePatternExpr = action.getPostProcessingParameters().get(\"filePattern\");\r\n String replaceStringExpr = action.getPostProcessingParameters().get(\"replaceString\");\r\n\r\n// System.out.println(action.getPostProcessingParameters());\r\n\r\n File folder = new File(folderExpr);\r\n Pattern filePattern = Pattern.compile(filePatternExpr);\r\n File templateFile = new File(templateFileExpr);\r\n\r\n String template = FileUtil.getFileContent(templateFile);\r\n\r\n List<File> files = FileUtil.findFiles(folder, filePattern);\r\n for (File file : files) {\r\n System.out.println(\"Look for \" + replaceStringExpr + \" in \" + templateFile.getName() + \" and apply it to \" + file.getName());\r\n\r\n String source = FileUtil.getFileContent(file);\r\n String result = template.replace(replaceStringExpr, source);\r\n FileWriter writer = new FileWriter(file);\r\n writer.write(result);\r\n writer.close();\r\n\r\n System.out.println(file.getAbsolutePath());\r\n }\r\n }\r\n }", "title": "" }, { "docid": "d719224c7791d4ae72978939cde77254", "score": "0.46602494", "text": "public void generatePDF(View view) {\n\n DateFormat df = new SimpleDateFormat(\"EEE, d MMM yyyy, HH:mm\");\n String date = df.format(Calendar.getInstance().getTime());\n ((TextView)findViewById(R.id.dateandtime)).setText(date);\n\n PrintAttributes.Builder printAttrsBuilder = new PrintAttributes.Builder();\n printAttrsBuilder.setMediaSize(PrintAttributes.MediaSize.ISO_A1);\n printAttrsBuilder.setMinMargins(new PrintAttributes.Margins(5, 5, 5, 5));\n\n // open a new document\n PrintedPdfDocument document = new PrintedPdfDocument(this, printAttrsBuilder.build());\n\n // PDF document generation\n PdfDocument.Page page = document.startPage(1); // set page one\n Canvas pdfCanvas = page.getCanvas(); // get canvas of view\n findViewById(R.id.pdfView).draw(pdfCanvas); // get canvas that will be drawn into pdf\n document.finishPage(page);\n File result = null; // create file object to store pdf on device\n FileOutputStream fos = null; // required for storing\n BufferedOutputStream bos = null; // required for storing\n FileDescriptor descriptor = null; // required for storing\n try {\n // if already exists -> replace\n if(new File(Environment.getExternalStorageDirectory() + \"/result.pdf\").exists())\n new File(Environment.getExternalStorageDirectory() + \"/result.pdf\").delete();\n\n // store on external storage path\n result = new File(Environment.getExternalStorageDirectory() + \"/result.pdf\");\n fos = new FileOutputStream(result);\n bos = new BufferedOutputStream(fos);\n document.writeTo(bos);\n descriptor = fos.getFD();\n descriptor.sync();\n } catch (Exception e) {\n // Error handling\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n } finally {\n try {\n // clean file store objects\n if (bos != null) { bos.flush(); bos.close(); }\n } catch (Exception e) {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }\n document.close();\n\n // open pdf directly after creating it\n Intent i = new Intent();\n i.setAction(android.content.Intent.ACTION_VIEW);\n i.setDataAndType(Uri.fromFile(result), \"application/pdf\");\n startActivity(i);\n }", "title": "" } ]
c4294cb9e23b375b37f8deb8ed8c79be
moment ou on envoie au Kmeans
[ { "docid": "a0374e72603a74bb9d12a5a4adfc3d3c", "score": "0.50955963", "text": "private void process() {\n\n Cluster current=_clusters.get(0);\n while (!current.isValid()) {\n KMeans kmeans=new KMeans(K,current);\n for (Cluster cluster : kmeans.getResult())\n if (cluster.getId()!=current.getId())\n _clusters.add(cluster);\n for (; current.isValid() && current.getId()+1<_clusters.size(); current=_clusters.get(current.getId()+1));\n }\n }", "title": "" } ]
[ { "docid": "0e1a7e8d2a87ffb5ac65f79601db2e5f", "score": "0.5496115", "text": "public void setCentroidsAsMeans();", "title": "" }, { "docid": "114a00b23ca3fb0a822313f34976bef4", "score": "0.54890484", "text": "public String Km() throws Exception {\n int x = 0;\n System.out.println(x+\" hlikiaaaaaa\");\n ΑrffCreator gen = new ΑrffCreator();\n\t\t\tgen.ArffGenerator();\n\t\t\t\n\t\t\tSimpleKMeans kmeans = new SimpleKMeans();\n\t \n\t\t\tkmeans.setSeed(2);\n\t \n\t\t\t//important parameter to set: preserver order, number of cluster.\n\t\t\tkmeans.setPreserveInstancesOrder(true);\n\t\t\tkmeans.setNumClusters(2);\n\t \n\t\t\tBufferedReader datafile = readDataFile(\"E:\\\\Users\\\\Filippos\\\\Documents\\\\NetBeansProjects\\\\MapsCopy\\\\mytext.arff\"); \n\t\t\tInstances data = new Instances(datafile);\n\t \n\t \n\t\t\tkmeans.buildClusterer(data);\n\t \n\t\t\t// This array returns the cluster number (starting with 0) for each instance\n\t\t\t// The array has as many elements as the number of instances\n\t\t\tint[] assignments = kmeans.getAssignments();\n int noNoobs=-1;\n\t\t\t//int i=0;\n\t\t\tint g = assignments.length;\n String studentsLvl = \"\";\n String quizAns = \"\";\n int clusterResult;\n\t\t\t/*----------------------------------------->xeirokinitos upologismos<----------------------------------------\n \n /*for(int clusterNum : assignments) {\n if(i==x){\n noNoobs = assignments[i];\n System.out.println(\"to \"+g+\"o einai \"+ clusterNum+\"= \"+x+\" o cluster EINAI PROXORIMENOS\");\n\t\t\t\t}\t\n if(i==g-1) {\n \n if(assignments[i] == noNoobs){\n studentsLvl = \"advanced\";\n System.out.println(\"MPAINEI STOUS PROXORIMENOUS\"+assignments[i]);\n \n }\n else{\n studentsLvl = \"beginner\";\n System.out.println(\"DEN PAEI POY8ENA ETSI\") ; \n }\n \n\t\t\t i++;\n\t\t\t}\n ---------------------------------------------------------------------------------------------------------*/\n /*upologizw thn euklideia apostash twn telikwn cluster cendroids apo to shmeio 0,0 \n auto pou apexei perissotero apo to kentro twn a3onwn , 8a einai to cluster advanced epeidi oso megaluterh hlikia \n kai kalutero scor sto preliminary test , toso pio advanced. Ka8w h logiki einai oti enas pio megalos kai diavasmenos ma8hths\n kaluteros apo enan pio pio mikro kai e3isou diavasmeno ma8hth h enan sunmoliko alla ligotero diavasmeno\n ----------------------------------------------------------------------------------------------------------*/\n \n //1 vazw ta teleutaia clusterCendroids se ena instance\t\t\t\n\t\t\tInstances clusterCendroid = kmeans.getClusterCentroids();\n //ta metatrepw se string\n\t\t\tString cluster0 = (clusterCendroid.firstInstance()).toString();\n\t\t\tString cluster1 = (clusterCendroid.lastInstance()).toString();\n\t\t\tSystem.out.println(cluster0+\"++++++++++++++++\"+cluster1);\n\t\t\t\n //2 spaw to ka8e string sto \",\" gt einai tis morfhs cluster0=\"x0,y0\" cluster1=\"x1,y1\"\n\t\t\tString[] parts = cluster0.split(\",\");\n\t\t\tString partx0 = parts[0]; // 004\n\t\t\tString party0 = parts[1]; // 034556\n\t\n\t\t\tSystem.out.println(partx0+\" || \"+party0);\n \n //3 Metatrepw ta String se double metavlites gia na epitrepontai oi pra3eis\n\t\t\tdouble clusterDx0 = Double.parseDouble(partx0);\n\t\t\tdouble clusterDy0 = Double.parseDouble(party0);\n\t\t\tSystem.out.println(clusterDx0+clusterDy0);\n\t\t\t\n //epanalamvanoume thn diadikasia apo to vhma 2\n\t\t\tString[] parts1 = cluster1.split(\",\");\n\t\t\tString partx1 = parts1[0]; // 004\n\t\t\tString party1 = parts1[1]; // 034556\n\t\t\t\n\t\t\tSystem.out.println(partx1+\" || \"+party1);\n\t\t\t\n \n double clusterDx1 = Double.parseDouble(partx1);\n\t\t\tdouble clusterDy1 = Double.parseDouble(party1);\n\t\t\t//System.out.println(clusterDx1+clusterDy2);\n //ypologizw thn euklidia apostasi twn 2 shmeivn ws pros to 0,0\n\t\t\tdouble popo = Math.sqrt((Math.pow(clusterDx0,2)+Math.pow(clusterDy0,2)));\n\t\t\tdouble popo2 = Math.sqrt((Math.pow(clusterDx1,2)+Math.pow(clusterDy1,2)));\n \n\t\t\tif (Math.max(popo, popo2)==popo) {\n \n clusterResult=0;\n\t\t\t\tSystem.out.println(\"0=advanced -- \"+popo+\"--1=begginer \"+popo2);\n\t\t\t}\n\t\t\telse {\n clusterResult=1;\n\t\t\t\tSystem.out.println(\"1=advanced -- \"+popo2+\"--0=begginer \"+popo);\n\t\t\t}\n\t\t\tSystem.out.println(popo+\"||\"+popo2+\"||\");\n \n if (assignments[data.numInstances()-1]==clusterResult){\n studentsLvl = \"advanced\";\n quizAns = \"yes\";\n System.out.println(\"MPAINEI STOUS PROXORIMENOUS \"+assignments[data.numInstances()-1]);\n }\n else{\n quizAns = \"no\";\n studentsLvl = \"beginner\";\n System.out.println(\"MPAINEI STOUS MH PROXORIMENOUS \"+assignments[data.numInstances()-1]) ; \n }\n \n coursequizs lev = new coursequizs();\n lev.studentLevel(studentsLvl,quizAns);\n \n System.out.println(Arrays.toString(assignments));\n return \"home.jsf\";\n\t\t}", "title": "" }, { "docid": "bfeff771e562cdc927fb9d7167267b39", "score": "0.53345436", "text": "private void calculateCentroid() {\n Moments moments = Imgproc.moments(binary, true);\n int centroid = (int)(moments.m10/moments.m00);\n\n Log.e(TAG, \"Centroid: \" + centroid);\n\n // get the delta movement\n int delta = centroid - centroids.getFirst();\n\n //find out if centroid is close to last centroid, if not, count as noise\n boolean noise = false;\n int loops = 1;\n for(int c : centroids) {\n //Log.e(TAG, \"abs: \" + Math.abs(centroid - c));\n if (Math.abs(centroid - c) < MIN_THRESH) {\n //Log.e(TAG, \"Smaller than Thresh\");\n noise = true;\n break;\n } else if (Math.abs(centroid - c) > MAX_THRESH * loops) {\n //Log.e(TAG, \"Larger than Thresh\");\n noise = true;\n break;\n }\n\n loops++;\n }\n\n //add current centroid and remove last if full\n addToList(centroids, centroid, MAX_STORED_CENTROIDS);\n\n Log.e(TAG, \"Noise: \" + noise);\n\n\n if(noise) {\n // centroid is noise, store the movement as 0\n addToList(tempForegroundMovement, 0, MAX_STORED_FOREGROUNDS);\n } else {\n // Centroid is close to previous centroids, therefore a valid value\n addToList(tempForegroundMovement, delta, MAX_STORED_FOREGROUNDS);\n }\n }", "title": "" }, { "docid": "2564ab9be69b26de96c7f401e3ad9dfd", "score": "0.5320583", "text": "@Override\n\tpublic SparseVector getPosteriorMeans(long timestamp) {\n\t\treturn getPosteriorMeans();\n\t}", "title": "" }, { "docid": "14f75beffb23dc34e331e9f807a27ca4", "score": "0.5270796", "text": "public Cluster(Cluster one, Cluster two) {\n this();\n // merge locations by just averaging\n// location.x=(one.location.x+two.location.x)/2;\n// location.y=(one.location.y+two.location.y)/2;\n\n Cluster older = one.firstTimestamp < two.firstTimestamp ? one : two;\n// Cluster older=one.numEvents>two.numEvents? one:two;\n\n // merge locations by average weighted by number of events supporting cluster\n int sumEvents = one.numEvents + two.numEvents;\n location.x = (one.location.x * one.numEvents + two.location.x * two.numEvents) / (sumEvents);\n location.y = (one.location.y * one.numEvents + two.location.y * two.numEvents) / (sumEvents);\n angle = older.angle;\n cosAngle = older.cosAngle;\n sinAngle = older.sinAngle;\n averageEventDistance = (one.averageEventDistance * one.numEvents + two.averageEventDistance * two.numEvents) / sumEvents;\n averageEventXDistance = (one.averageEventXDistance * one.numEvents + two.averageEventXDistance * two.numEvents) / sumEvents;\n averageEventYDistance = (one.averageEventYDistance * one.numEvents + two.averageEventYDistance * two.numEvents) / sumEvents;\n \n lastTimestamp = one.lastTimestamp > two.lastTimestamp ? one.lastTimestamp : two.lastTimestamp;\n numEvents = sumEvents;\n firstTimestamp = older.firstTimestamp; // make lifetime the oldest src cluster\n path = older.path;\n birthLocation = older.birthLocation;\n velocityFitter = older.velocityFitter;\n velocityPPT.x = older.velocityPPT.x;\n velocityPPT.y = older.velocityPPT.y;\n velocityPPS.x = older.velocityPPS.x;\n velocityPPS.y = older.velocityPPS.y;\n velocityValid = older.velocityValid;\n// vxFilter=older.vxFilter;\n// vyFilter=older.vyFilter;\n avgEventRate = older.avgEventRate;\n avgISI = older.avgISI;\n hasObtainedSupport = older.hasObtainedSupport;\n setAspectRatio(older.getAspectRatio());\n\n// Color c1=one.getColor(), c2=two.getColor();\n setColor(older.getColor());\n// System.out.println(\"merged \"+one+\" with \"+two);\n //the radius should increase\n// setRadius((one.getRadius()+two.getRadius())/2);\n if (growMergedSizeEnabled) {\n float R = (one.getRadius() + two.getRadius()) / 2;\n setRadius(R + getMixingFactor() * R);\n } else {\n setRadius(older.getRadius());\n }\n\n }", "title": "" }, { "docid": "79950b508ab60b9220bcfeb730a7fb83", "score": "0.52621746", "text": "public KMeans() {\n }", "title": "" }, { "docid": "6537d3d971ff72add588ee388d39d005", "score": "0.51778626", "text": "public void addKMeansListener(SME_KMeansListener l);", "title": "" }, { "docid": "3fd5bf8e614b8a70d1b80a3ad832b940", "score": "0.5164158", "text": "private static void kmeans(int[] rgb, int k) {\n\t\tColor[] rgbColor = new Color[rgb.length];\r\n\t\tColor[] ColorCluster = new Color[rgb.length];\r\n\t\tint[] ColorClusterID = new int[rgb.length];\r\n\t\t\r\n\t\tfor(int i = 0;i<rgb.length;i++) {\r\n\t\t\trgbColor[i] = new Color(rgb[i]);\r\n\t\t\tColorClusterID[i] = -1;\r\n\t\t}\r\n\t\t\r\n\t\tColor[] currentCluster = new Color[k];\t\t\r\n\t\tint randomNumber[]= ThreadLocalRandom.current().ints(0, rgb.length).distinct().limit(k).toArray();\r\n\t\tColor[] modifiedColorCluster = new Color[k];\t\r\n\t\t\r\n\t\tfor(int j=0;j<k;j++) {\r\n\t\t\tcurrentCluster[j]=rgbColor[randomNumber[j]];\r\n\t\t}\r\n\t\tint flag = 1;\r\n\t\tint maxIterations = 1000;\r\n\t\tint numIteration=0;\r\n\t\tdouble[] distance = new double[maxIterations+1];\t\t\r\n\t\tdistance[0]=Double.MAX_VALUE;\r\n\t\twhile(flag == 1) {\r\n\t\t\tflag = 0;\r\n\t\t\tnumIteration++;\r\n\t\t\tdistance[numIteration]=assignCLustersToPixels(rgbColor,currentCluster,ColorCluster,ColorClusterID,k,rgb.length);\r\n\t\t\tmodifiedColorCluster= findMeans(rgbColor,ColorClusterID,modifiedColorCluster,k,rgb.length);\r\n\t\t\tif(!clusterCenterCheck(currentCluster, modifiedColorCluster,k)){\r\n\t\t\t\tflag = 1;\r\n\t\t\t\tfor(int j=0;j<k;j++) {\r\n\t\t\t\t\tcurrentCluster[j]=modifiedColorCluster[j];}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tfor(int i = 0;i<rgb.length;i++) {\r\n\t\t\trgb[i]= getValue(ColorCluster[i].getRed(),ColorCluster[i].getGreen(),ColorCluster[i].getBlue());\r\n\t\t}\r\n\t\treturn;\r\n\t }", "title": "" }, { "docid": "05a19cef5d3e5bdc51302e0d79ea7f43", "score": "0.5163794", "text": "public static HashMap<LonLat,ArrayList<STPoint>> clustering2dKNSG(IKernel kernel,ArrayList<STPoint> data,double h,double e) {\n\t\tHashMap<LonLat,ArrayList<STPoint>> result = new HashMap<LonLat,ArrayList<STPoint>>();\n\t\tint N = data.size();\n\t\t//\t\tSystem.out.println(\"#number of points : \"+N);\n\n\t\tfor(STPoint point:data) {\n\t\t\t// seek mean value //////////////////\n\t\t\tLonLat mean = new LonLat(point.getLon(),point.getLat());\n\n\t\t\t//loop from here for meanshift\n\t\t\twhile(true) {\n\t\t\t\tdouble numx = 0d;\n\t\t\t\tdouble numy = 0d;\n\t\t\t\tdouble din = 0d;\n\t\t\t\tfor(int j=0;j<N;j++) {\n\t\t\t\t\tLonLat p = new LonLat(data.get(j).getLon(),data.get(j).getLat());\n\t\t\t\t\tdouble k = kernel.getDensity(mean,p,h);\n\t\t\t\t\tnumx += k * p.getLon();\n\t\t\t\t\tnumy += k * p.getLat();\n\t\t\t\t\tdin += k;\n\t\t\t\t}\n\t\t\t\tLonLat m = new LonLat(numx/din,numy/din);\n\t\t\t\tif( mean.distance(m) < e ) { mean = m; break; }\n\t\t\t\tmean = m;\n\t\t\t}\n\t\t\t//\t\t\tSystem.out.println(\"#mean is : \" + mean);\n\t\t\t// make cluster /////////////////////\n\t\t\tArrayList<STPoint> cluster = null;\n\t\t\tfor(LonLat p:result.keySet()) {\n\t\t\t\tif( mean.distance(p) < e ) { cluster = result.get(p); break; }\n\t\t\t}\n\t\t\tif( cluster == null ) {\n\t\t\t\tcluster = new ArrayList<STPoint>();\n\t\t\t\tresult.put(mean,cluster);\n\t\t\t}\n\t\t\tcluster.add(point);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "a12680efa7fd99c20eb4ea5743dc2a02", "score": "0.5143559", "text": "private void updateMean() {\r\n double tmp = 0.0;\r\n for (Tweet t : members) {\r\n tmp += t.getDateLong();\r\n }\r\n tmp = tmp / (double) members.size();\r\n this.mean = tmp;\r\n }", "title": "" }, { "docid": "d91aebd6d9411753c0aa3d2c437be89c", "score": "0.5141592", "text": "static double clusterVerticesOneStep(Mesh mesh) {\n\t\t\n\t\t// for each pair of the vertices\n\t\tdouble mindis = 1.0e+30;\n\t\tfor(int i = 0; i < mesh.getNumVertices(); i++) {\n\t\t\tVertex v1 = mesh.getVertex(i);\n\t\t\tfor(int j = (i + 1); j < mesh.getNumVertices(); j++) {\n\t\t\t\tVertex v2 = mesh.getVertex(j);\n\t\t\t\n\t\t\t\t// for each pair of the nodes\n\t\t\t\tdouble maxdis = 0.0;\n\t\t\t\tfor(int ii = 0; ii < v1.nodes.size(); ii++) {\n\t\t\t\t\tNode n1 = (Node)v1.nodes.get(ii);\n\t\t\t\t\tfor(int jj = 0; jj < v2.nodes.size(); jj++) {\n\t\t\t\t\t\tNode n2 = (Node)v2.nodes.get(jj);\n\t\t\t\t\t\tif(n1.getDisSim2(n2.getId()) > maxdis) {\n\t\t\t\t\t\t\tmaxdis = n1.getDisSim2(n2.getId());\n\t\t\t\t\t\t\tif(maxdis > mindis) {\n\t\t\t\t\t\t\t\tii = v1.nodes.size(); break;\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\t\n\t\t\t\t// update mindis\n\t\t\t\tif(mindis > maxdis) {\n\t\t\t\t\tmindis = maxdis;\n\t\t\t\t\t//System.out.println(\" updated mindis=\" + mindis);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Determine the threshold\n\t\tdouble threshold = mindis * clusteringThreshold;\n\t\t\n\t\t// Combine close two vertices \n\t\tfor(int i = 0; i < mesh.getNumVertices(); i++) {\n\t\t\tVertex v1 = mesh.getVertex(i);\n\t\t\tfor(int j = (i + 1); j < mesh.getNumVertices(); j++) {\n\t\t\t\tVertex v2 = mesh.getVertex(j);\n\t\t\t\n\t\t\t\t// for each pair of the nodes\n\t\t\t\tdouble maxdis = -1.0;\n\t\t\t\tfor(int ii = 0; ii < v1.nodes.size(); ii++) {\n\t\t\t\t\tNode n1 = (Node)v1.nodes.get(ii);\n\t\t\t\t\tfor(int jj = 0; jj < v2.nodes.size(); jj++) {\n\t\t\t\t\t\tNode n2 = (Node)v2.nodes.get(jj);\n\t\t\t\t\t\tif(n1.getDisSim2(n2.getId()) > maxdis) {\n\t\t\t\t\t\t\tmaxdis = n1.getDisSim2(n2.getId());\n\t\t\t\t\t\t\tif(maxdis > threshold) {\n\t\t\t\t\t\t\t\tii = v1.nodes.size(); break;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(maxdis > threshold) continue;\n\t\t\t\t\n\t\t\t\t//System.out.println(\" combine: i=\" + i + \" j=\" + j + \" names=\" + authors + \" maxdis=\" + maxdis + \" th=\" + threshold);\n\t\t\t\t\n\t\t\t\t// combine the two vertices\n\t\t\t\tfor(int jj = 0; jj < v2.nodes.size(); jj++) {\n\t\t\t\t\tNode n2 = (Node)v2.nodes.get(jj);\n\t\t\t\t\tv1.nodes.add(n2);\n\t\t\t\t\tn2.setVertex(v1);\n\t\t\t\t}\n\t\t\t\tmesh.removeOneVertex(v2);\n\t\t\t\tj--;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn threshold;\n\t}", "title": "" }, { "docid": "e916e8bef5d3115ceb6510bedd730962", "score": "0.5137044", "text": "private void laskeMatkojenKesto() {\n matkojenkesto = 0.0;\n\n for (Matka m : matkat) {\n matkojenkesto += m.getKesto();\n }\n }", "title": "" }, { "docid": "55f7cd82b2c0e0c5585685675abd3b27", "score": "0.51138294", "text": "@Override\n public String kMeansClusters_json(int k) {\n\n List<Set<String>> kMeansClusters = new ArrayList<Set<String>>();\n\n if (k == 1) {\n // No algorithm needed\n kMeansClusters.add(new HashSet<String>(this.restaurantMap.keySet()));\n return this.clusterToJSON(kMeansClusters);\n }\n\n // restaurant clusters contains random centroids mapped to a set of its closest\n // restaurants (in id form)\n Map<double[], Set<String>> restaurantClusters = this.initiateClusters(k, this.restaurantMap.keySet());\n\n do {\n Set<String> emptyCluster = findEmptyCluster(restaurantClusters);\n Set<String> largestCluster = findLargestCluster(restaurantClusters);\n\n // Code below finds some random centroid within the largest cluster\n double minLat = Double.MAX_VALUE;\n double minLon = Double.MAX_VALUE;\n double maxLat = -Double.MAX_VALUE;\n double maxLon = -Double.MAX_VALUE;\n for (String rID : largestCluster) {\n double lat = this.restaurantMap.get(rID).getLatitude();\n double lon = this.restaurantMap.get(rID).getLongitude();\n if (lat < minLat) {\n minLat = lat;\n }\n if (lat > maxLat) {\n maxLat = lat;\n }\n if (lon < minLon) {\n minLon = lon;\n }\n if (lon > maxLon) {\n maxLon = lon;\n }\n }\n double[] centroidInLargestCluster = this.generateRandomCentroid(minLat, maxLat, minLon, maxLon);\n\n // Find the empty cluster and reassign its centroid by placing it somewhere in\n // the largest cluster\n for (double[] centroid : restaurantClusters.keySet()) {\n if (restaurantClusters.get(centroid).equals(emptyCluster)) {\n centroid[0] = centroidInLargestCluster[0]; // New longitude based on largest cluster\n centroid[1] = centroidInLargestCluster[1]; // New latitude based on largest cluster\n break; // Once we find the empty cluster, we are done\n }\n }\n\n // Flag is true if any restaurants are reassigned to a new centroid\n // If no restaurants are reassigned, then we are done one run through\n boolean flag;\n do {\n this.reassignCentroids(restaurantClusters);\n flag = reassignRestaurants(restaurantClusters, this.restaurantMap.keySet());\n } while (flag);\n\n } while (atLeastOneEmptyCluster(restaurantClusters)); // Repeat if any empty clusters are detected\n\n // Add final restaurant clusters to list of clusters\n for (Set<String> cluster : restaurantClusters.values()) {\n kMeansClusters.add(cluster);\n }\n return this.clusterToJSON(kMeansClusters);\n }", "title": "" }, { "docid": "c581333112a1383a8ada8a19fb5a46e4", "score": "0.5087728", "text": "public static int[][] getCentroid(int data[],int noofcluster,int centroid[][],int flag){\n\t\tSystem.out.println(\"no of cluster:\"+noofcluster);\n\t\tint distance[][]=new int[noofcluster][data.length];\n\t\tint cluster[] =new int[data.length];\n\t\tint nodecnt[]=new int[noofcluster];\n\t\t\n\t\t\n\t\tSystem.out.println(\"..........new Cluster .........\");\n\t\t\n\t\t// this loop is for finding the minimum distance form depot to all the other bikestation\n\t\t\tfor(int j=0;j<data.length;j++) {\n\t\t\t\tdistance[0][j]=gr.dijkstra(adj,233,data[j]);\n\t\t\t\tMcluster.put(data[j],distance[0][j]);\n\t\t\t}\n\t\tSystem.out.println(\"Cluster=\"+Mcluster);\n\t\t\n\t\tSystem.out.println(\"............New Centroid..............\");\n\t\t// to find a random centroid for 1st time \n\t\tSet<Integer> tempp = new HashSet<Integer>();\n\t\tif(flag == 0) {\n\t\t\tfor(int i=0;i<noofcluster;i++) {\n\t\t\t\tcentroid[1][i]=Mcluster.get(getRandom(143,220));\n\t\t\t\twhile(tempp.contains(centroid[1][i])) {\n\t\t\t\t\tcentroid[1][i]=Mcluster.get(getRandom(143,220));\n\t\t\t\t}\n\t\t\t\ttempp.add(centroid[1][i]);\n\t\t\t\t//System.out.println(\"Centroid\"+centroid[1][i]);\n\t\t\t}\n\t\t\tflag=1;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"...........Creating temp Cluster.......\");\n\t\t\n\t\t// creating a list of all the bikestation nodes difference the centroid \n\t\tfor(int i=0;i<noofcluster;i++) {\n\t\t\tHashMap<Integer,Integer> mpp=new HashMap<Integer,Integer>();\n\t\t\tfor(int j : Mcluster.keySet()) {\n\t\t\t\tif(centroid[1][i]>Mcluster.get(j)) {\n\t\t\t\t\tint mp = centroid[1][i]-Mcluster.get(j);\n\t\t\t\t\tmpp.put(j,mp);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint mp = Mcluster.get(j)-centroid[1][i];\n\t\t\t\t\tmpp.put(j,mp);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcls.put(i, mpp);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"...........Creating Final Cluster.......\");\n\t\t\n\t\t// getting a cluster from given centroid \n\t\tfor(int i=0;i<noofcluster;i++) {\n\t\t\tArrayList<Integer> temp = new ArrayList<>();\n\t\t\tfinalCluster.put(i,temp);\n\t\t}\n\t\tint smallestDistance;\n\t\tfor(int j : Mcluster.keySet()) {\n\t\t\tint f = 0;\n\t\t\tsmallestDistance=Integer.MAX_VALUE;\n\t\t\tfor(int i=0;i<noofcluster;i++) {\n\t\t\t\tif(cls.get(i).get(j)<=smallestDistance) {\n\t\t\t\t\tsmallestDistance=cls.get(i).get(j);\n\t\t\t\t\tf=i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinalCluster.get(f).add(j);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"Final\"+finalCluster);\n\t\tSystem.out.println(\"........new centroid......\");\n\t\t\n\t\t//final cluster\n\t\tfor(int i : finalCluster.keySet()) {\n\t\t\tint sum=0, avg=0, count=0;\n\t\t\tfor(int j=0;j<finalCluster.get(i).size();j++) {\n\t\t\t\tint temp=finalCluster.get(i).get(j);\n\t\t\t\tsum=sum+Mcluster.get(temp);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tavg=(int)sum/count;\n\t\t\tcentroid[0][i]=avg;\n\t\t}\n\t\t\n\t\tboolean finalcentroid=true;\n\t\t//if (i-1) and (i)th cluster have the same centroid then we stop the loop\n\t\tfor(int i=0;i<noofcluster;i++) {\n\t\t\tif(finalcentroid && centroid[0][i]==centroid[1][i]) {\n\t\t\t\tfinalcentroid=true;\n\t\t\t\tcontinue;\n\t\t\t}else {\n\t\t\t\tfinalcentroid=false;\n\t\t\t\tSystem.out.println(\"Different\");\n\t\t\t\tcnt++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!finalcentroid) { \n\t\t\t//if (i-1) and (i)th cluster dont have the same centroid then we continue the loop iteration\n\t\t\tcentroid[1] = Arrays.copyOf(centroid[0], centroid[0].length);\n\t\t\tgetCentroid(data,noofcluster,centroid,flag);\n\t\t}\n\t\t\n\t\tif(finalcentroid) {\n\t\t\tSystem.out.println(\"Final Cluster: \"+finalCluster);\n\t\t\tfor(int i=0;i<5;i++) {\n\t\t\t\tSystem.out.print(\"Final Centroid: \"+centroid[1][i]+\" \");\n\t\t\t}\n\t\t}\n\t\treturn centroid;\n\t}", "title": "" }, { "docid": "d44972fa174e81d2af989861a8c23df0", "score": "0.49927476", "text": "public double getMeanCenterDifferenceFromStart(){\n double[] meanCenter = getMeanCenter();\n float[] trans = getTranslationVector(center.getX(),center.getY(),BITMAP_SIZE,BITMAP_SIZE,CONSTANT);\n Log.e(\"Points\",\"Actual (X,Y) = \"+\"(\"+((center.getX()*CONSTANT)+trans[0])+\",\"+((center.getY()*CONSTANT)+trans[1])+\")\");\n Log.e(\"Points\",\"Mean (X,Y) = \" + \"(\"+meanCenter[0]+\",\"+meanCenter[1]+\")\");\n double result = Math.sqrt(\n Math.pow(((center.getX()*CONSTANT)+trans[0]) - meanCenter[0],2)+\n Math.pow(((center.getY()*CONSTANT)+trans[1]) - meanCenter[1],2)\n );\n return result;\n }", "title": "" }, { "docid": "0f237cf585ca46393566abb5007c8eb4", "score": "0.49853152", "text": "private static void k_means_online(double[][] X, int k, String[] args){\n double[][] m = chooseKCluserCentres(k, X[0].length);\n double[][] oldM = m;\n \n //while loop and stopping condition\n int count = 0;\n \n //the index of each m associated to X, done below\n //first array is list of m's, second will be associated X_row indexes\n /*int[][] X_Assignments = new int[k][noRows];*/\n List<List<Integer>> X_Assignments = initXAssignments(m);\n\n \tboolean continue_ = findTermination(count, oldM, m);\n while(continue_){\n \toldM = m;\n \tX_Assignments = initXAssignments(m);\n\n \tfor(int i=0; i<X.length; i++){\n \t\tint minClusterIndex = findMinClusterIndex(X[i], m);\n \t\t//System.out.println(minClusterIndex);\n \t\tX_Assignments.get(minClusterIndex).add(i); //add to the list of clusters to points\n \t}\n\n \t//Check lists\n \t//printDoubleArrayList(X_Assignments);\n\n \tfor (int i=0; i<m.length; i++){\n \t\tm[i] = findClusterMean(X, X_Assignments, m, i); //finds for every dimension \n \t}\n\n \tcontinue_ = findTermination(count, oldM, m);\n \tcount++;\n }\n\n double sumOfSquaresError = findSumOfSquaresError(X, m);\n printOutput(X_Assignments, m, sumOfSquaresError, k, count);\n\n //append output file specified by args[1]\n //writeOutputToFile (args[0], k, m, sumOfSquaresError, args[1]);\n }", "title": "" }, { "docid": "97d92f19dd3106677b9bc2cc8c38f743", "score": "0.49051076", "text": "private double[] getMeanCenter(){\n double[] meanXY = new double[2];\n float[] trans = getTranslationVector(center.getX(),center.getY(),BITMAP_SIZE,BITMAP_SIZE,CONSTANT);\n // Plot points\n for (MeasurementService.DataPoint p: list) {\n meanXY[0] += (p.getX()*CONSTANT)+trans[0];\n meanXY[1] += (p.getY()*CONSTANT)+trans[1];\n }\n\n meanXY[0] = meanXY[0] / list.size();\n meanXY[1] = meanXY[1] / list.size();\n return meanXY;\n }", "title": "" }, { "docid": "56b6153a2d4ea3648719de7b7dff95e5", "score": "0.4884652", "text": "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "title": "" }, { "docid": "b3bc954dc7ce01bc8e4e0dd404dffa03", "score": "0.48483974", "text": "KmeansReducer(Map<Integer, Vector> centers) {\n this.centers = centers;\n }", "title": "" }, { "docid": "300b36d4583ffe4c3884412f9995a9b1", "score": "0.48469597", "text": "private double dist(Point a,Point b)//to find distance between the new entry to predict and the male or female cluster mean positions.\n { double d;\n d=Math.sqrt( Math.pow((a.ht-b.ht),2) + Math.pow((a.wt-b.wt),2));\n return d;\n }", "title": "" }, { "docid": "5e0cdb5c24cace19a02dfc282c897b24", "score": "0.48201117", "text": "@Override\n\tpublic CM_COV_Object centralMoment(CMOperator op, int nRows) {\n\t\tCM_COV_Object ret = _dict.centralMomentWithReference(op.fn, getCounts(), _reference[0], nRows);\n\t\tint count = _numRows - _data.size();\n\t\top.fn.execute(ret, _reference[0], count);\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "af2f5fe74412cb0ba70885eeac468632", "score": "0.48136127", "text": "public void sekvMetode(IntList m, IntList kohyll){\n int minX = x[0];\n int maxX = x[0];\n int minIndeks = 0, maxIndeks = 0;\n\n for(int i = 0; i < x.length; i++){\n\n if(minX > x[i]){\n minX = x[i];\n minIndeks = i;\n }\n if(maxX < x[i]){\n maxX = x[i];\n maxIndeks = i;\n }\n }\n\n\tSystem.out.println(minIndeks + \"\" + maxIndeks);\n //get all indexs\n IntList xcoords = drawLineBetweenPoints(maxIndeks, minIndeks, m);\n\n int xcoord = findPointWithMostNegativeDistance(maxIndeks, minIndeks, xcoords);\n\n\tkohyll.add(maxIndeks);\n sekvRek(maxIndeks, minIndeks, xcoord, xcoords, kohyll);\n\n //reset xcoords\n xcoords.clear();\n\n xcoords = drawLineBetweenPoints(minIndeks, maxIndeks, m);\n\n\t\n xcoord = findPointWithMostNegativeDistance(minIndeks, maxIndeks, xcoords);\n\n\t\n kohyll.add(minIndeks);\n\t\n sekvRek(minIndeks, maxIndeks, xcoord, xcoords, kohyll);\n }", "title": "" }, { "docid": "380efae322dac14f7df108fad3830901", "score": "0.48011333", "text": "static void start() throws IOException\n {\n Double[][] center;\n JavaPairRDD<Integer, Tuple2<Double[], Double>> sol;\n\n center = create_center( num_k );\n\n // 5.do until terminate\n for( int iter=0; iter<num_iter; iter++ )\n\t\t{\n start_t = System.currentTimeMillis();\n\n center = spark_kmeans( center );\n\n end_t = System.currentTimeMillis();\n print_best( iter + 1 );\n\t\t}\n }", "title": "" }, { "docid": "7e7db6c5d24a71a19c7022cd03b75b8a", "score": "0.47855508", "text": "public abstract float getMomentOfInertia();", "title": "" }, { "docid": "7549fe13b2cd8a9a1f7890aff8011fda", "score": "0.47773498", "text": "public org.apache.spark.mllib.clustering.KMeansModel train (org.apache.spark.rdd.RDD<org.apache.spark.mllib.linalg.Vector> data, int k, int maxIterations) { throw new RuntimeException(); }", "title": "" }, { "docid": "30e377b0f0750f3706fad641faee75e9", "score": "0.47718444", "text": "public double[] monteCarloMeans(){\n if(!this.monteCarloDone)this.monteCarlo();\n return this.randomEigenValuesMeans;\n }", "title": "" }, { "docid": "c41770f60e70fac2a3d0e6a8274efa43", "score": "0.4757712", "text": "private static void k_means_offline(double[][] X, int k, String[] args){\n double[][] m = chooseKCluserCentres(k, X[0].length);\n double[][] oldM = m;\n \n //while loop and stopping condition\n int count = 0;\n \n //the index of each m associated to X, done below\n //first array is list of m's, second will be associated X_row indexes\n /*int[][] X_Assignments = new int[k][noRows];*/\n List<List<Integer>> X_Assignments = initXAssignments(m);\n\n \tboolean continue_ = findTermination(count, oldM, m);\n while(continue_){\n \toldM = m;\n \tX_Assignments = initXAssignments(m);\n\n \tfor(int i=0; i<X.length; i++){\n \t\tint minClusterIndex = findMinClusterIndex(X[i], m);\n \t\t//System.out.println(minClusterIndex);\n \t\tX_Assignments.get(minClusterIndex).add(i); //add to the list of clusters to points\n \t}\n\n \t//Check lists\n \t//printDoubleArrayList(X_Assignments);\n\n \tfor (int i=0; i<m.length; i++){\n \t\tm[i] = findClusterMean(X, X_Assignments, m, i); //finds for every dimension \n \t}\n\n \tcontinue_ = findTermination(count, oldM, m);\n \tcount++;\n }\n\n double sumOfSquaresError = findSumOfSquaresError(X, m);\n printOutput(X_Assignments, m, sumOfSquaresError, k, count);\n\n //append output file specified by args[1]\n writeOutputToFile (args[0], k, m, sumOfSquaresError, args[1]);\n }", "title": "" }, { "docid": "05e18da65e75342e0f4aa8f4e68ea788", "score": "0.47273037", "text": "public static void Agrupar() {\n\t\tArrayList<ArrayList<Double>> distancias_centroids = new ArrayList<ArrayList<Double>>();\n\t\tfor (int i=0;i<centroids.size();i++) {\n\t\t\tArrayList<Double> distancias= new ArrayList<Double>();\n\t\t\tfor (int j=0;j<petalas.size();j++) {\n\t\t\t\tdouble x1= centroids.get(i).petal_length;\n\t\t\t\tdouble x2= petalas.get(j).petal_length;\n\t\t\t\tdouble y1= centroids.get(i).petal_width;\n\t\t\t\tdouble y2= petalas.get(j).petal_width;\n\t\t\t\tdouble cateto1= x1-x2;\n\t\t\t\tdouble cateto2= y1-y2;\n\t\t\t\tdouble hipotenusa = Math.sqrt(cateto1*cateto1+cateto2*cateto2);\n\t\t\t\tdistancias.add(hipotenusa);\n\t\t\t\t/*\n\t\t\t\tSystem.out.println(\"cateto1: \"+cateto1);\n\t\t\t\tSystem.out.println(\"cateto2: \"+cateto2);\n\t\t\t\tSystem.out.println(\"hipotenusa: \"+hipotenusa);\n\t\t\t\t*/\n\t\t\t\t\t\t\t}\n\t\t\t\n\t\t\tdistancias_centroids.add(distancias);\t\t\t\n\t\t}\n\t\t/*\n\t\tSystem.out.println(\"Distancias Centroids:\");\n\t\tfor (int i=0;i<distancias_centroids.size();i++) {\n\t\t\tSystem.out.println(\"Centroid \"+i);\n\t\t\tfor (int j=0;j<distancias_centroids.get(i).size();j++) {\n\t\t\t\tSystem.out.println(distancias_centroids.get(i).get(j));\n\t\t\t}\n\t\t}\n\t\t*/\n\t\t//Para qual centroid pertece cada ponto\n\t\tArrayList<ArrayList<Petala>> pontos_de_cada_centroid = new ArrayList<ArrayList<Petala>>();\n\t\tfor (int i=0;i<centroids.size();i++) {\n\t\t\tArrayList<Petala> p = new ArrayList<Petala>();\n\t\t\tpontos_de_cada_centroid.add(p); \n\t\t}\n\t\tfor (int i=0;i<petalas.size();i++) {\n\t\t\tdouble menor =100;\n\t\t\tint centroid_menor=0;\n\t\t\tfor (int j=0;j<centroids.size();j++) {\n\t\t\t\tif (distancias_centroids.get(j).get(i)<menor) {\n\t\t\t\t\tmenor = distancias_centroids.get(j).get(i);\n\t\t\t\t\tcentroid_menor=j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpontos_de_cada_centroid.get(centroid_menor).add(petalas.get(i));\n\t\t}\n\t\t/*\n\t\tfor (int i=0;i<pontos_de_cada_centroid.size();i++) {\n\t\t\tSystem.out.println(\"Centroid \"+i);\n\t\t\tSystem.out.println(\"Petalas: \");\n\t\t\tSystem.out.println(pontos_de_cada_centroid.get(i));\n\t\t}\n\t\t*/\n\t\t//Novos centroids\n\t\tArrayList<Petala> novos_centroids = new ArrayList<Petala>();\n\t\tfor (int i=0;i<pontos_de_cada_centroid.size();i++) {\n\t\t\tdouble soma_x=0;\n\t\t\tdouble soma_y=0;\n\t\t\tfor (int j=0;j<pontos_de_cada_centroid.get(i).size();j++) {\n\t\t\t\tsoma_x+=pontos_de_cada_centroid.get(i).get(j).petal_length;\n\t\t\t\tsoma_y+=pontos_de_cada_centroid.get(i).get(j).petal_width;\n\t\t\t}\n\t\t\tdouble novo_x=soma_x/pontos_de_cada_centroid.get(i).size();\n\t\t\tdouble novo_y=soma_y/pontos_de_cada_centroid.get(i).size();\n\t\t\tPetala novo_centroid = new Petala(novo_x,novo_y);\n\t\t\tnovos_centroids.add(novo_centroid);\n \t\t}\n\t\t\n\t\t//Gravar Geracao\n\t\tArrayList<Petala> gc= new ArrayList<Petala>();\n\t\tfor (int i=0;i<centroids.size();i++) {\n\t\t\tgc.add(centroids.get(i));\n\t\t}\n\t\tGeracao geracao = new Geracao(gc,pontos_de_cada_centroid);\n\t\tgeracoes.add(geracao);\n\t\t//Condicao de Parada\n\t\tboolean terminou = true;\n\t\tfor (int i=0; i<centroids.size();i++) {\n\t\t\tif (centroids.get(i).petal_length!=novos_centroids.get(i).petal_length) {\n\t\t\t\tterminou = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (centroids.get(i).petal_width!=novos_centroids.get(i).petal_width) {\n\t\t\t\tterminou = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (terminou) {\n\t\t\t/*\n\t\t\tSystem.out.println(\"Novos centroids:\");\n\t\t\tSystem.out.println(novos_centroids);\n\t\t\t\n\t\t\tSystem.out.println(\"FIM!\");\n\t\t*/\n\t\t}else {\n\t\t\tcentroids.clear();\n\t\t\tfor (int i=0;i<novos_centroids.size();i++) {\n\t\t\t\tcentroids.add(novos_centroids.get(i));\n\t\t\t}\n\t\tgeracao_atual++;\n\t\t\tAgrupar();\n\t\t}\n\t}", "title": "" }, { "docid": "83268679c6f8df53631ca2abd548db48", "score": "0.47180724", "text": "public double cariMean(int[] mean) {\n\t\tint n = mean.length;\n\t\tdouble mea = 0.0;\n\t\tdouble jumlah = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tjumlah = jumlah + mean[i];\n\t\t}\n\t\tmea = jumlah / n;\n\t\treturn mea;\n\t}", "title": "" }, { "docid": "faaef9edca8146237afe314168c8d529", "score": "0.47122446", "text": "public double[] momentosDeZernike(){\r\n\t\tdouble[] retorno = new double[9];\r\n\t\tdouble xDistancia = 0;\r\n\t\tdouble yDistancia = 0;\r\n\t\tdouble raio = 0;\r\n\t\tdouble angulo = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < imagem.length; i++) {\r\n\t\t\t\r\n\t\t\txDistancia = i - this.xMassa;\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < imagem[i].length; j++) {\r\n\t\t\t\t\r\n\t\t\t\t yDistancia = j - this.yMassa;\r\n\t\t\t\t \r\n\t\t\t\t raio = Math.sqrt(xDistancia*xDistancia + yDistancia*yDistancia);\r\n\t\t\t\t \r\n\t\t\t\t angulo = Math.atan(yDistancia/xDistancia);\r\n\t\t\t\t \r\n\t\t\t\t for(int l=0; l<retorno.length; l++){\r\n\t\t\t\t\t retorno[l] += imagem[i][j] * (this.calcularV(raio, angulo, l));\r\n\t\t\t\t }\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < retorno.length; i++) {\r\n\t\t\tif(i == 0 ){\r\n\t\t\t\t\r\n\t\t\t\tretorno[i] *= 1/Math.PI;\r\n\t\t\t\t\r\n\t\t\t}else if(i == 1){\r\n\t\t\t\t\r\n\t\t\t\tretorno[i] *= (1+1)/Math.PI;\r\n\t\t\t\t\r\n\t\t\t}else if(i == 2 || i == 3){\r\n\t\t\t\t\r\n\t\t\t\tretorno[i] *= (2+1)/Math.PI;\r\n\t\t\t\t\r\n\t\t\t}else if(i == 4 || i == 5){\r\n\t\t\t\t\r\n\t\t\t\tretorno[i] *= (3+1)/Math.PI;\r\n\t\t\t\t\r\n\t\t\t}else if (i == 6 || i == 7 || i == 8){\r\n\t\t\t\t\r\n\t\t\t\tretorno[i] *= (4+1)/Math.PI; \r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn retorno;\r\n\t}", "title": "" }, { "docid": "6164b98b5b8d3e5fa8955b63ba4e1e3e", "score": "0.47036576", "text": "public Vector getCentroid() {\n return centroid;\n }", "title": "" }, { "docid": "aec5580d977b298ee12524487e184125", "score": "0.47021624", "text": "public Map<double[], Integer> kmeans(int distance, Map<Integer, double[]> centroids, int k) {\n Map<double[], Integer> clusters = new HashMap<>();\n int k1 = 0;\n double dist = 0.0;\n for (double[] x : features) {\n double minimum = 999999.0;\n for (int j = 0; j < k; j++) {\n if (distance == 1) {\n dist = Distance.eucledianDistance(centroids.get(j), x);\n } else if (distance == 2) {\n dist = Distance.manhattanDistance(centroids.get(j), x);\n }\n if (dist < minimum) {\n minimum = dist;\n k1 = j;\n }\n\n }\n clusters.put(x, k1);\n }\n\n return clusters;\n }", "title": "" }, { "docid": "a8f21703377318b327a22011a0e6a6a8", "score": "0.46819532", "text": "public static int[] run(double[][] data, int numCluster) {\n int N = data.length;\n int M = data[0].length;\n\n // clustering result\n int[] cluster = new int[N];\n\n // randomize cluster center\n double[][] centers = new double[numCluster][M];\n for (int c = 0; c < numCluster; c++) {\n int idx = randomIntRange(0, N - 1);\n centers[c] = Arrays.copyOf(data[idx], M);\n }\n\n // assign every user to a cohort, use Euclidean distance\n assignCluster(cluster, centers, data);\n\n // iteration\n // (1) re-locate cohort center to average location of users in the cohort\n // (2) re-assign every user to the closest cohort center\n // (3) repeat\n // stop criterion: no change in cluster assignment, or reach max iteration\n int iterMax = 100;\n for (int iter = 0; iter < iterMax; iter++) {\n int[] oldCluster = Arrays.copyOf(cluster, N);\n locateCenters(cluster, centers, data);\n assignCluster(cluster, centers, data);\n\n // stop\n if (Arrays.equals(oldCluster, cluster)) {\n System.out.println(\"k-means : clustering converged\");\n break;\n }\n\n if (iter == iterMax) {\n System.out.println(\"k-means : reach max iteration\");\n }\n }\n\n return cluster;\n }", "title": "" }, { "docid": "f8c2bb414df15dae12b7578e9f37c46d", "score": "0.46798885", "text": "public double mean() {\n double resultat = 0;\n for (int i = 0; i < tab.size(); i++) {\n for (int j = 0; j < tab.get(i).size(); j++) {\n resultat += Double.parseDouble(tab.get(i).get(j));\n }\n }\n resultat = (resultat / (tab.size() + tab.get(0).size() - 1));\n System.out.println(\"Mean colonne:\" + resultat);\n return resultat;\n }", "title": "" }, { "docid": "cddbba3e2b0be2d0f4e8bd258f522614", "score": "0.46771398", "text": "public void decideCluster(){\n\tdouble shortest = 1000000;\n\tfor(int i = 0; i < clusterDist.length; i++)\n\t{\n\t\tif(clusterDist[i] < shortest)\n\t\t{\tshortest = clusterDist[i];\n\t\t\tthis.clusterid = i;\n\t\t}\n\t\t\n\t}\n}", "title": "" }, { "docid": "6cb5764223b11d1ce44b31b71aeb0fa8", "score": "0.46757343", "text": "float getMonatl_kosten();", "title": "" }, { "docid": "b2199eb865e5c91f43c606c34b116dfc", "score": "0.4673515", "text": "public BestMeanConvergence() {\n }", "title": "" }, { "docid": "6a0b16164910191fa7ed95340b1f4f70", "score": "0.46690243", "text": "@Override\n\tpublic double getCarbon() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "3540463c1ed08c304f921a11c778b649", "score": "0.46611515", "text": "public KMeans(KMeans a) {\n K = a.K;\n if (a.centroids != null) {\n centroids = new SparseVector[K];\n isInitialized = new boolean[K];\n for (int i = 0; i < K; i++) {\n centroids[i] = (SparseVector)a.centroids[i].clone();\n isInitialized[i] = a.isInitialized[i];\n }\n }\n }", "title": "" }, { "docid": "26b0c56d45232a7b03b1c39ea7886cb7", "score": "0.46535462", "text": "double angMomentum();", "title": "" }, { "docid": "f389531e9d28d47526b0ef5873305377", "score": "0.46486875", "text": "private void adjustSunAndMoonData()\n\t{\n\t\tdouble toRad = Math.PI / 180.0;\n\t\t\n\t\t//find the number of days since the epoch 2000\n\t\tdouble D = ((userYear - 1990)* 365.3) + userDecimalDay + ((userMonth - 1) * 30);\n\t\tdouble sunEg = 279.403303; //at epoch\n\t\tdouble sunE = 0.016713;\n\t\tdouble sunW = 282.768422;\n\t\t//find mean anomaly of the sun (in degrees)\t\t\n\t\tdouble sunMeanAnomaly = ((360 / 365.242191) * D) + sunEg - sunW;\n\t\tsunMeanAnomaly = AdjustDegree(sunMeanAnomaly);\n\t\t//find true anomaly of the sun\n\t\tdouble temp = sunMeanAnomaly * toRad;\n\t\ttemp = Math.sin(temp);\n\t\tdouble sunEc = (360 / Math.PI) * sunE * temp;\n\t\tdouble sunTrueAnomaly = sunMeanAnomaly + sunEc;\n\t\tsunTrueAnomaly = AdjustDegree(sunTrueAnomaly);\n\t\t//find ecliptic longitude of the sun (in degrees)\n\t\tdouble sunEcLong = sunTrueAnomaly + sunW;\n\t\tsunEcLong = AdjustDegree(sunEcLong);\n\t\t//find sun declination and right ascension\n\t\ttemp = theCalculator.findPlanetDeclination(sunEg, 0.0, sunEcLong);\n\t\tsun.setDeclination(temp);\n\t\tdouble rightAsc = theCalculator.findPlanetRightAscension(sunEg, 0.0, sunEcLong);\n\t\tsun.setRightAscension(rightAsc);\n\t\ttemp = theCalculator.findHourAngle(rightAsc, userLocalTime);\n\t\tsun.setHourAngle(temp);\n\t\tsun.setMagnitude(-26.0);\n\t\t\n\t\t//find moon mean longitude (in degrees)\n\t\ttemp = 13.1763966 * D + 318.351648;\n\t\ttemp = AdjustDegree(temp);\n\t\tmoon.setMeanLongitude(temp);\n\t\t\n\t\t//find moon mean anomaly (in degrees)\n\t\ttemp = moon.getMeanLongitude() - (0.1114041 * D) - 36.340410;\n\t\ttemp = AdjustDegree(temp);\n\t\tdouble moonMeanAnomaly = temp;\n\t\t\n\t\t//find moon longitude of the node (in degrees)\n\t\ttemp = 318.510105 - 0.0529539 * D;\n\t\ttemp = AdjustDegree(temp);\n\t\tmoon.setLongitudeOfAscendingNode(temp);\n\t\t\n\t\t//calculate moons correction for evection (in degrees)\n\t\tdouble evectionCorrection = theCalculator.correctMoonEvection(sunEcLong, moon.getMeanLongitude(), moonMeanAnomaly);\n\t\t\n\t\t//calculate moons correction for the annual equation\n\t\ttemp = sunMeanAnomaly * toRad;\n\t\tdouble annualEquation = 0.1858 * Math.sin(temp);\n\t\t\n\t\t//find moon's third correction (in degrees)\n\t\tdouble A3 = 0.37 * Math.sin(temp);\n\t\t\n\t\t//find moon corrected anomaly (in degrees)\n\t\tdouble correctedAnomaly = moonMeanAnomaly + evectionCorrection - annualEquation - A3;\n\t\t\n\t\t//find moon's correction for the equation of the centre (in degrees)\n\t\ttemp = correctedAnomaly * toRad;\n\t\tdouble equationCentre = 6.2886 * Math.sin(temp);\n\t\t\n\t\t//find moon's 4th correction (in degrees)\n\t\tdouble A4 = 0.214 * Math.sin(2.0*temp);\n\t\t\n\t\t//find moon's corrected longitude (in degrees)\n\t\tdouble correctedLong = moon.getMeanLongitude() + evectionCorrection + equationCentre - annualEquation + A4;\n\t\t\n\t\t//correct moon's longitude for variation (in degrees)\n\t\ttemp = (2 * (correctedLong - sunEcLong)) * toRad;\n\t\tdouble variation = 0.6583 * Math.sin(temp);\n\t\t\n\t\t//find moon's true longitude (in degrees)\n\t\tdouble trueLong = correctedLong + variation;\n\t\t\n\t\t//calculate moon's corrected longitude of the node (in degrees)\n\t\ttemp = 0.16 * Math.sin(sunMeanAnomaly * toRad);\n\t\tdouble correctedLongNode = moon.getLongitudeOfAscendingNode() - temp;\n\t\t\n\t\t//find ecliptic longitude of moon (in degrees)\n\t\t//find y (in radians)\n\t\tdouble i = 5.145396 * toRad;\n\t\ttemp = (trueLong - correctedLongNode) * toRad;\n\t\tdouble y = Math.sin(temp) * Math.cos(i);\n\t\t//find x (in radians)\n\t\tdouble x = Math.cos(temp);\n\t\tdouble tan = Math.atan2(y, x);\n\t\tdouble eclipticLong = tan + correctedLongNode;\n\t\t\n\t\t//find ecliptic latitude of moon (in degrees)\n\t\tdouble eclipticLat = Math.asin(Math.sin(temp * Math.sin(i)));\n\t\t\n\t\t//find moon mean obliquity (in degrees)\n\t\tdouble T = (userJulianDate - epoch2000JD) / 36525.0;\n\t\tdouble obliquity = 23.439292 - (((46.815 * T) + (T * T * 0.0006) - (T * T * T * 0.00181))/3600.0);\n\t\t\n\t\t//find moon declination\n\t\tdouble declination = theCalculator.findPlanetDeclination(obliquity, eclipticLat, eclipticLong);\n\t\tmoon.setDeclination(declination);\n\t\t\n\t\t//find moon right ascension\n\t\trightAsc = theCalculator.findPlanetRightAscension(obliquity, eclipticLat, eclipticLong);\n\t\tmoon.setRightAscension(rightAsc);\n\t\t\n\t\t//find moon hour angle\n\t\tdouble hourAngle = theCalculator.findHourAngle(rightAsc, userLocalTime);\n\t\tmoon.setHourAngle(hourAngle);\n\t\t\n\t\t//find moon phase - book's method\n\t\tdouble phase = Math.abs((trueLong - sunEcLong) * toRad);\n\t\t\t\t\n\t\t//find moon phase\t\t \n\t\tif ( phase > 2.2 ) //full moon to third quarter\n\t\t{\t\t\t\n\t\t\tif (phase >= 2.7) //full\n\t\t\t\tmoon.setUnicodeIcon(\"m10.png\");\n\t\t\tif (phase >= 2.6) \n\t\t\t\tmoon.setUnicodeIcon(\"m11.png\");\n\t\t\tif (phase >= 2.5) \n\t\t\t\tmoon.setUnicodeIcon(\"m12.png\");\n\t\t\tif (phase >= 2.4) \n\t\t\t\tmoon.setUnicodeIcon(\"m13.png\");\n\t\t\tif (phase >= 2.3) \n\t\t\t\tmoon.setUnicodeIcon(\"m14.png\");\n\t\t\tif (phase >= 2.2) \n\t\t\t\tmoon.setUnicodeIcon(\"m15.png\");\n\t\t\telse\n\t\t\t\tmoon.setUnicodeIcon(\"m16.png\"); //third quarter\n\t\t} \n\t\telse if ( phase > 1.55 ) //third quarter to first quarter\n\t\t{\t\t\t \n\t\t\tif (phase >= 2.2) //third quarter\n\t\t\t\tmoon.setUnicodeIcon(\"m16.png\");\n\t\t\tif (phase >= 2.1) \n\t\t\t\tmoon.setUnicodeIcon(\"m17.png\");\n\t\t\tif (phase >= 2.0) \n\t\t\t\tmoon.setUnicodeIcon(\"m18.png\");\n\t\t\tif (phase >= 1.8) \n\t\t\t\tmoon.setUnicodeIcon(\"m08.png\");\n\t\t\tif (phase >= 1.7) \n\t\t\t\tmoon.setUnicodeIcon(\"m07.png\");\n\t\t\tif (phase >= 1.6) \n\t\t\t\tmoon.setUnicodeIcon(\"m06.png\");\n\t\t\telse\n\t\t\t\tmoon.setUnicodeIcon(\"m05.png\"); //first quarter\n\t\t} \n\t\telse if ( phase > 1.0 ) //first quarter\n\t\t{\t\t\t\n\t\t\tif (phase >= 1.5) //first quarter\n\t\t\t\tmoon.setUnicodeIcon(\"m07.png\");\n\t\t\tif (phase >= 1.4) \n\t\t\t\tmoon.setUnicodeIcon(\"m07.png\");\n\t\t\tif (phase >= 1.3) \n\t\t\t\tmoon.setUnicodeIcon(\"m06.png\");\n\t\t\tif (phase >= 1.2) \n\t\t\t\tmoon.setUnicodeIcon(\"m06.png\");\n\t\t\tif (phase >= 1.1) \n\t\t\t\tmoon.setUnicodeIcon(\"m05.png\");\n\t\t\telse\n\t\t\t\tmoon.setUnicodeIcon(\"m05.png\"); //first quarter\n\t\t} \n\t\telse \t //new moon to first quarter\n\t\t{\t\t\t\n\t\t\tif (phase >= 1.0) //first quarter\n\t\t\t\tmoon.setUnicodeIcon(\"m05.png\");\n\t\t\tif (phase >= 0.9) \n\t\t\t\tmoon.setUnicodeIcon(\"m04.png\");\n\t\t\tif (phase >= 0.8) \n\t\t\t\tmoon.setUnicodeIcon(\"m03.png\");\n\t\t\tif (phase >= 0.7) \n\t\t\t\tmoon.setUnicodeIcon(\"m02.png\");\n\t\t\tif (phase >= 0.6) \n\t\t\t\tmoon.setUnicodeIcon(\"m01.png\");\n\t\t\telse\n\t\t\t\tmoon.setUnicodeIcon(\"m00.png\"); //new moon\n\t\t} \n \t}", "title": "" }, { "docid": "e7f452291c1667376106b6f55f7328b3", "score": "0.46341398", "text": "public double getMontoCatalogoEstimado(){\n return localMontoCatalogoEstimado;\n }", "title": "" }, { "docid": "d862555e805f1614332dcc1dc1e5f173", "score": "0.46277055", "text": "public abstract double getCarbon();", "title": "" }, { "docid": "fea3824dfc997b8188628ced0e6252fd", "score": "0.46251804", "text": "private void baseAlgorithm() {\n\t\tlong start = System.nanoTime();\n\t\tinitCentroids();\n\t\tint counter = 0;\n\t\twhile (counter < 1000\n\t\t\t\t&& (lastCentroids == null || !SeriesComparator.equalClustering(lastCentroids, centroids))) {\n\t\t\tresetClusters();\n\t\t\tassignPoints();\n\t\t\tlastCentroids = new ArrayList<Point2D>(centroids);\n\t\t\tcalculateNewMean();\n\t\t\tbasicIterations++;\n\t\t\tcounter++;\n\t\t}\n\t\tconvertToClustering();\n\t\tbasicRuntime = System.nanoTime() - start;\n\t}", "title": "" }, { "docid": "da1eb3a51a456fb0389ed89a1f028726", "score": "0.46132493", "text": "public void map(Object key, Text value, Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\t\t\n\t\t\tint which_center = 0;\n\t\t\tstringToDoubleArray (value.toString(), dimension, point);\n\n\t\t\t// get the vectors of the k cluster centers \n\t\t\t// emit a key-value pair \n\t\t\t// emitKey : cluster id that the input point belongs to\n\t\t\t// value : the input point and the squared error of the current point \n\t\t\t// with the coses center\n\t\t\t//context.write (emitKey, valudde);\n // TODO\n // ------------------------------------------------------\n //\n // ------------------------------------------------------\n\t\t\temitKey.set (which_center);\n\t\t\tcontext.write (emitKey, emitval);\n\t\t}", "title": "" }, { "docid": "412fb071370a6a2d166e0914ae0df7fa", "score": "0.46074235", "text": "public void compute() {\n\n this.jddPtsInflexion.clear();\n ILineString lsInitialee = this.geom;\n\n ILineString lsInitiale = Operateurs.resampling(lsInitialee, 1);\n ILineString lsLisse = GaussianFilter.gaussianFilter(lsInitiale, 5, 1);\n\n double sumOfDistances = 0;\n double length = 70;// 200 m max\n double sumOfAngels = 0;\n // ArrayList<Double> angels=new ArrayList<Double>();\n ArrayList<Double> differences = new ArrayList<Double>();\n\n ArrayList<Double> distances = new ArrayList<Double>();\n\n IDirectPosition p1 = lsInitiale.coord().get(0);\n IDirectPosition p2 = lsInitiale.coord().get(1);\n\n distances.add(p1.distance2D(p2));\n sumOfDistances += distances.get(distances.size() - 1);\n\n double angel = Math.atan2(p1.getY() - p2.getY(), p1.getX() - p2.getX());\n\n angel = (angel + Math.PI) * 180 / Math.PI;\n\n // angels.add(angel);\n\n for (int i = 1; i < lsInitiale.coord().size() - 1; i++) {\n\n p1 = lsInitiale.coord().get(i);\n p2 = lsInitiale.coord().get(i + 1);\n\n distances.add(p1.distance2D(p2));\n sumOfDistances += distances.get(distances.size() - 1);\n\n double newAngel = Math\n .atan2(p1.getY() - p2.getY(), p1.getX() - p2.getX());\n\n // give the value that varie from 0 to 360-epsilon\n newAngel = (newAngel + Math.PI) * 180 / Math.PI;\n\n // angels.add(newAngel);\n\n while (sumOfDistances > length && differences.size() > 0) {\n sumOfDistances -= distances.get(0);\n\n sumOfAngels -= differences.get(0);\n\n distances.remove(0);\n // System.out.println(\"olddiff=\" + differences.get(0));\n differences.remove(0);\n\n }\n\n double diff = newAngel - angel;\n\n if (diff > 180)\n diff = -360 + diff;// for the case of angel=10 and newAngel=350;\n else if (diff < -180)\n diff = 360 + diff;\n\n differences.add(diff);\n sumOfAngels += diff;\n angel = newAngel;\n // System.out.println(\"sumOfAngels=\" + sumOfAngels);\n // System.out.println(\"angel=\" + newAngel);\n // System.out.println(\"diff=\" + diff);\n\n /*\n * for(int k=0;k<angels.size();k++){ double diff2=newAngel-angels.get(k));\n * if(diff2>180)diff2=360-diff2;// for the case of angel=10 and\n * newAngel=350; else if(diff2<-180)diff2=-360-diff2;\n * if(Math.abs(newAngel->200) {\n * \n * }\n * \n * \n * }\n */\n\n if (Math.abs(sumOfAngels) > 100) {\n\n double maxOfDiff = 0;\n int indexOfMaxOfDiff = -1;\n for (int k = 0; k < differences.size(); k++) {\n if (differences.get(k) > maxOfDiff) {\n maxOfDiff = differences.get(k);\n indexOfMaxOfDiff = k;\n\n }\n\n }\n double maxDistance = -1;\n int maxDistancePointIndex = -1;\n // if(i+differences.size()-indexOfMaxOfDiff-1>=jddPtsInflexion.size())\n for (int jj = 0; jj < differences.size(); jj++) {\n // jddPtsInflexion.add(lsInitiale.coord().get(i+differences.size()-indexOfMaxOfDiff-2));\n if (i + jj - indexOfMaxOfDiff >= 0\n && i + jj - indexOfMaxOfDiff < lsInitiale.coord().size()) {\n int currIndex = i + jj - indexOfMaxOfDiff;\n double distance = lsInitiale.coord().get(currIndex).distance2D(\n lsLisse.coord().get(currIndex));\n if (distance > maxDistance) {\n maxDistance = distance;\n maxDistancePointIndex = currIndex;\n }\n\n }\n\n }\n\n if (maxDistancePointIndex >= 0)\n this.jddPtsInflexion.add(lsInitiale.coord()\n .get(maxDistancePointIndex));\n\n differences.clear();\n sumOfDistances = distances.get(distances.size() - 1);\n distances.clear();\n sumOfAngels = 0;\n i++;\n\n }\n\n }\n\n }", "title": "" }, { "docid": "760fa6e42c3b3a495bb4c153956cc731", "score": "0.46038583", "text": "public void doValidation(int currentRound)\n {\n getData(currentRound);\n// System.out.println(\"training unterminated ones\");\n kMeans.setItems(trainingData.get(0));\n kMeans.k=k1;\n kMeans.init();\n List<Cluster> unterminatedClusters=kMeans.doCluster();\n for (int i=0;i<unterminatedClusters.size();i++)\n {\n unterminatedClusters.get(i).label=0;\n }\n \n// System.out.println(\"training terminated ones\");\n kMeans.setItems(trainingData.get(1));\n kMeans.k=k2;\n kMeans.init();\n List<Cluster> terminatedClusters=kMeans.doCluster();\n for (int i=0;i<terminatedClusters.size();i++)\n {\n terminatedClusters.get(i).label=1;\n }\n \n List<Cluster> clusters=new ArrayList<Cluster>();\n clusters.addAll(unterminatedClusters);\n clusters.addAll(terminatedClusters);\n kMeans.setClusters(clusters);\n int[] corrects=new int[2];\n int[] counts=new int[2];\n for (int i=0;i<2;i++)\n {\n corrects[i]=0;\n counts[i]=0;\n }\n for (Item item:testData)\n {\n int label=kMeans.getNearestCluster(item).label;\n counts[label]++;\n if (label==item.type)\n {\n corrects[item.type]++;\n }\n }\n correctness+=corrects[1]*1.0/counts[1];\n correctCount+=corrects[1];\n// for (int i=0;i<2;i++)\n// System.out.println(\"for type \"+i+\": \" +corrects[i]+\" correct out of \"+counts[i]+\" in total (\"+corrects[i]*1.0/counts[i]+\")\");\n }", "title": "" }, { "docid": "2920cb04476885e3c2500e1f9ecc28de", "score": "0.45998102", "text": "public ArrayList<ArrayList<Example>> kmeanlearn(int k, int n, boolean dist) {\n kmean = new KMean(new ArrayList<Example>(learningData.getExamples().subList(n+1, learningData.getExamples().size())), k);\n kmean.kmeanAlgorithm(dist);\n return kmean.getCluster();\n }", "title": "" }, { "docid": "8b782c307bacf40a61d88406b59cda8d", "score": "0.4589705", "text": "public static void cluster(String[] args, boolean converged)\n\t\t\tthrows IOException, InterruptedException, ClassNotFoundException {\n\t\tSystem.out.println(\"Using mapper to output clustering information...\");\n\t\tConfiguration conf = new Configuration();\n\t\tString[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();\n\t\tconf.set(\"old.center.path\", otherArgs[3]);\n\t\tconf.set(\"K\", otherArgs[5]);\n\t\tconf.set(\"include.center.in.mapper\", \"1\");\n\t\tconf.set(\"converged\", converged ? \"1\" : \"0\");\n\t\tJob job = new Job(conf, \"KMeansCluster\");\n\t\tjob.setJarByClass(KMeansDriver.class);\n\n\t\tPath in = new Path(otherArgs[1]);\n\t\tPath out = new Path(otherArgs[2] + \"/\" + \"clustering_info\");\n\t\tFileInputFormat.addInputPath(job, in);\n\t\tFileSystem fs = FileSystem.get(conf);\n\t\tif (fs.exists(out)) {\n\t\t\tfs.delete(out, true);\n\t\t}\n\t\tFileOutputFormat.setOutputPath(job, out);\n\n\t\t//No reducer needed here.\n\t\tjob.setMapperClass(KMeansMapper.class);\n\t\tjob.setOutputKeyClass(IntWritable.class);\n\t\tjob.setOutputValueClass(Text.class);\n\t\tjob.setNumReduceTasks(0);\n\t\tjob.waitForCompletion(true);\n\t}", "title": "" }, { "docid": "58924f7e29ac2a882a75c6ddf3f676a8", "score": "0.45799968", "text": "public float getRotation() { return centroid_rot; }", "title": "" }, { "docid": "d6337894140a3a042f3bb5aae8acefa9", "score": "0.4569547", "text": "void stampaStatisticheNodo() {\r\n for(Object obj : this.nodes)\r\n {\r\n Nodo n = (Nodo)obj;\r\n \r\n TransportLayer tl = n.myTransportLayer;\r\n tl.stampaStatistiche();\r\n \r\n // System.out.println(\"=====STAMPA STATISTICHE NODO NETWORK LAYER====\");\r\n NetworkLayer nl = n.myNetLayer;\r\n // String s = nl.getStat();\r\n nl.stampaStatistiche();\r\n // System.out.println(s);\r\n // System.out.println(\"=====FINE====\");\r\n \r\n physicalLayer pl = n.myPhyLayer;\r\n pl.stampaStatistiche();\r\n }\r\n }", "title": "" }, { "docid": "7a3dbb8ad012023f39d3c0723f623489", "score": "0.45678946", "text": "public static int getOptimalK(Dataset<Row> vectorData) {\n\t\tList<Integer> K = new ArrayList<Integer>();\n\t\tList<Double> computeCost = new ArrayList<Double>();\n\n\t\tfor (int i = 2; i < 10; i++) {\n\n\t\t\tKMeans kMeansForTops = new KMeans().setK(i).setSeed(1L);\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tKMeansModel kMeansModel = kMeansForTops.fit(vectorData);\n\t\t\tSystem.out.println(\"Time to FIT \" + (System.currentTimeMillis() - start) / 1000);\n\t\t\tdouble cost = kMeansModel.computeCost(vectorData); // WCSS\n\t\t\t// KMeansSummary\n\t\t\tK.add(i);\n\t\t\tcomputeCost.add(cost);\n\t\t\t// System.out.println(\"================ Compite cost for K == \" + i + \" is == \"\n\t\t\t// + cost);\n\n\t\t\tDataset<Row> kMeansPredictions = kMeansModel.transform(vectorData);\n\n\t\t\tfor (int j = 0; j < i; j++) {\n\n\t\t\t\t// System.out.println(\"====================== Running it for \" + j + \"th cluster\n\t\t\t\t// when the K is \" + i);\n\t\t\t\t// System.out.println(\"====================== Range for the cluster count \" + i\n\t\t\t\t// + \" ===================\");\n\t\t\t\t// kMeansPredictions.where(kMeansPredictions.col(\"prediction\").equalTo(j)).agg(min(\"features\"),\n\t\t\t\t// max(\"features\")).show();\n\n\t\t\t}\n\n\t\t\t// kMeansPredictions.agg(min(\"features\"), max(\"features\")).show();\n\t\t\t// System.out.println(\"====================== Calculating Silhouette\n\t\t\t// ===================\");\n\n\t\t\t// Evaluate clustering by computing Silhouette score\n\t\t\tClusteringEvaluator topsEvaluator = new ClusteringEvaluator();\n\n\t\t\tdouble TopsSilhouette = topsEvaluator.evaluate(kMeansPredictions);\n\n\t\t\t// System.out.println(\"================ Silhouette score for K == \" + i + \" is\n\t\t\t// == \" + TopsSilhouette);\n\n\t\t}\n\n\t\tPlot plt = Plot.create();\n\t\t// plt.plot().add(K, computeCost).label(\"MyLabel\").linestyle(\"bx-\");\n\t\t// plt.plot().\n\n\t\tSystem.out.println(\"K List \" + K);\n\t\tSystem.out.println(\"Cost List \" + computeCost);\n\t\tplt.plot().add(K, computeCost).label(\"Elbow\").linestyle(\"--\");\n\t\tplt.xlabel(\"K\");\n\t\tplt.ylabel(\"Cost\");\n\t\tplt.title(\"Compute Cost for K-Means !\");\n\t\tplt.legend();\n\t\ttry {\n\t\t\tplt.show();\n\t\t} catch (IOException | PythonExecutionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn 0;\n\n\t}", "title": "" }, { "docid": "952474c9748918ad7d0f7fcabe8a3f9e", "score": "0.45526427", "text": "public void updateCentroid() {\n centroid = new Vector(numFeatures);\n for (Document document : documents) {\n centroid = centroid.add(document.getVector());\n }\n centroid = centroid.divide(size());\n }", "title": "" }, { "docid": "70a0d599e79352d8d829bf6d036b2d3a", "score": "0.4552627", "text": "public void correr(double km){\n System.out.println(\"He corrido\"+km+\"kilometros\");\n }", "title": "" }, { "docid": "3169026e7ebc8acd02c151c6c66ef8e7", "score": "0.45413667", "text": "public org.apache.spark.mllib.clustering.KMeansModel train (org.apache.spark.rdd.RDD<org.apache.spark.mllib.linalg.Vector> data, int k, int maxIterations, int runs, java.lang.String initializationMode) { throw new RuntimeException(); }", "title": "" }, { "docid": "b517e8168d5146909e929bc38c24d95f", "score": "0.4521076", "text": "public AggregateKMeansResponse aggregateKMeans(AggregateKMeansRequest request) throws GPUdbException {\n AggregateKMeansResponse actualResponse_ = new AggregateKMeansResponse();\n submitRequest(\"/aggregate/kmeans\", request, actualResponse_, false);\n return actualResponse_;\n }", "title": "" }, { "docid": "1f7a6adf6cd0d6f8a9b07581fb83e0d7", "score": "0.45180908", "text": "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "title": "" }, { "docid": "f7f42a97a8822c8165296358e64d674e", "score": "0.45171645", "text": "private synchronized void update() {\n nPoints++;\n int n = points.size();\n if (n < 1) {\n return;\n }\n PathPoint p = points.get(points.size() - 1); // take last point\n if (p.getNEvents() == 0) {\n return;\n }\n if (n > length) {\n removeOldestPoint(); // discard data beyond range length\n }\n n = n > length ? length : n; // n grows to max length\n float t = p.t - firstTimestamp; // t is time since cluster formed, limits absolute t for numerics\n st += t;\n sx += p.x;\n sy += p.y;\n stt += t * t;\n sxt += p.x * t;\n syt += p.y * t;\n// if(n<length) return; // don't estimate velocityPPT until we have all necessary points, results very noisy and send cluster off to infinity very often, would give NaN\n float den = (n * stt - st * st);\n if (den != 0) {\n valid = true;\n xVelocity = (n * sxt - st * sx) / den;\n yVelocity = (n * syt - st * sy) / den;\n } else {\n valid = false;\n }\n }", "title": "" }, { "docid": "66daa4b7038c6d382fae2b5d9a317b1a", "score": "0.45166025", "text": "public org.apache.spark.mllib.clustering.KMeansModel train (org.apache.spark.rdd.RDD<org.apache.spark.mllib.linalg.Vector> data, int k, int maxIterations, int runs) { throw new RuntimeException(); }", "title": "" }, { "docid": "42de1f2c1f44f6fb84be0f334255f11d", "score": "0.45093098", "text": "public double getMeanTimeBetweenCarArrivals() {\n return meanTimeBetweenCarArrivals;\n }", "title": "" }, { "docid": "54b54615bd97c52c4acd1043b08f6604", "score": "0.45056564", "text": "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "title": "" }, { "docid": "da0b84794501bac589943bff3218840f", "score": "0.45045364", "text": "public Cluster(Tweet centroid, int id) {\r\n this.members = new Vector<Tweet>();\r\n this.members.add(centroid);\r\n this.mean = centroid.getDateLong();\r\n this.id = id;\r\n this.variance = 0.0;\r\n this.prev_size = 1;\r\n this.centroid = new TweetVector(centroid.getType());\r\n this.map = new HashMap<String, Integer>();\r\n this.centroid.build_vector(centroid.getProcessedText());\r\n this.master = true;\r\n geoTag=new HashSet<>();\r\n nameEntities=new HashSet<>();\r\n }", "title": "" }, { "docid": "9a2f61b46fb511847ab723f515570dfe", "score": "0.4503793", "text": "private void PeriodMeanEvaluation () {\n\n float x = 0;\n for(int i = 0; i < 3; i++)\n {\n for(int j = 0; j < numberOfSample; j++)\n {\n x = x + singleFrame[j][i];\n }\n meanOfPeriodCoord[i] = (x/numberOfSample);\n x = 0;\n }\n }", "title": "" }, { "docid": "ba60e913312180125b24db1d531c37ce", "score": "0.4490837", "text": "public KMeans(int K) {\n this();\n this.K = K;\n centroids = new SparseVector[K];\n isInitialized = new boolean[K];\n for (int i = 0; i < K; i++) {\n centroids[i] = new SparseVector();\n isInitialized[i] = false;\n }\n }", "title": "" }, { "docid": "2541a17c8df8afcc0b0de30000f07976", "score": "0.44838795", "text": "private boolean containsCentroid(SparseVector vector) {\n for (int i = 0; i < K; i++) {\n if (centroids[i].equals(vector)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "1cdbc6521230f5881d10e029f1558f78", "score": "0.44793263", "text": "public String getMean()\n {\n return mean;\n }", "title": "" }, { "docid": "23b4c7d076a98c99bb59eae9f2c0d559", "score": "0.44686422", "text": "@Override\n public Point[] chooseCentroids(AbstractCluster self) {\n if (K!=2) {\n System.err.println(\"The used splitter is not suppose to be used with K>2. This program will shut down\"); //#like\n exit(1);\n }\n Point[] result={self.get(0),self.get(0)};\n double max=0;\n for (int i=0; i<self.size(); ++i)\n for (int j=0; j<i; ++j)\n if (max<_distances.get(self.get(i).getId(),self.get(j).getId())) {\n max=_distances.get(self.get(i).getId(),self.get(j).getId());\n result[0]=self.get(i);\n result[1]=self.get(j);\n }\n return result;\n }", "title": "" }, { "docid": "e03ec2fc2acbe5e8da714d2e64ac925e", "score": "0.446327", "text": "public void Semantica() {\r\n int var, etq;\r\n double marca, valor;\r\n double[] punto = new double[3];\r\n double[] punto_medio = new double[2];\r\n\r\n /* we generate the fuzzy partitions of the variables */\r\n for (var = 0; var < n_variables; var++) {\r\n marca = (extremos[var].max - extremos[var].min) /\r\n ((double) n_etiquetas[var] - 1);\r\n for (etq = 0; etq < n_etiquetas[var]; etq++) {\r\n valor = extremos[var].min + marca * (etq - 1);\r\n BaseDatos[var][etq].x0 = Asigna(valor, extremos[var].max);\r\n valor = extremos[var].min + marca * etq;\r\n BaseDatos[var][etq].x1 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].x2 = BaseDatos[var][etq].x1;\r\n valor = extremos[var].min + marca * (etq + 1);\r\n BaseDatos[var][etq].x3 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].y = 1;\r\n BaseDatos[var][etq].Nombre = \"V\" + (var + 1);\r\n BaseDatos[var][etq].Etiqueta = \"E\" + (etq + 1);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "6cb60fcfb9dc2989db07cdb7328c1fb5", "score": "0.44567546", "text": "public double getMoment(int n){\n\t\treturn Math.exp(n * location + n * n * scale * scale / 2);\n\t}", "title": "" }, { "docid": "ebf8f4898ad87a4ddaaebb31186297ff", "score": "0.44566238", "text": "public double mean() {\r\n\t\treturn mean;\r\n\t}", "title": "" }, { "docid": "2263cc82630c1137e6c3c95006251a15", "score": "0.44541082", "text": "void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ed32b6d74f4789b3a2d5474e44ed1464", "score": "0.44533277", "text": "public double mean() {\n\t\treturn mean;\n\t}", "title": "" }, { "docid": "ed32b6d74f4789b3a2d5474e44ed1464", "score": "0.44533277", "text": "public double mean() {\n\t\treturn mean;\n\t}", "title": "" }, { "docid": "da3939a063dc30b6c70116c46c2bcd1e", "score": "0.4445422", "text": "public double pointCost (scala.collection.TraversableOnce<org.apache.spark.mllib.clustering.VectorWithNorm> centers, org.apache.spark.mllib.clustering.VectorWithNorm point) { throw new RuntimeException(); }", "title": "" }, { "docid": "c926758a4ff1efea2d5f1db8bbe2193d", "score": "0.44424587", "text": "public void setMean(double mean) {\n this.mean = mean;\n }", "title": "" }, { "docid": "9be5bd8d0b43fc8cc614cf1df2e0a54d", "score": "0.44302875", "text": "public double\t\tgetMeanInterArrivalTime()\n\t{\n\t\treturn this.meanInterArrivalTime ;\n\t}", "title": "" }, { "docid": "b41550b9b1a05f20c55b3595334490a8", "score": "0.4429392", "text": "private static float calculateTrueAnomaly(float m, float e) {\n float e0 = m + e * MathUtil.sin(m) * (1.0f + e * MathUtil.cos(m));\n float e1;\n\n // iterate to improve accuracy\n int counter = 0;\n do {\n e1 = e0;\n e0 = e1 - (e1 - e * MathUtil.sin(e1) - m) / (1.0f - e * MathUtil.cos(e1));\n if (counter++ > 100) {\n Log.d(TAG, \"Failed to converge! Exiting.\");\n Log.d(TAG, \"e1 = \" + e1 + \", e0 = \" + e0);\n Log.d(TAG, \"diff = \" + MathUtil.abs(e0 - e1));\n break;\n }\n } while (MathUtil.abs(e0 - e1) > EPSILON);\n\n // convert eccentric anomaly to true anomaly\n float v =\n 2f * MathUtil.atan(MathUtil.sqrt((1 + e) / (1 - e))\n * MathUtil.tan(0.5f * e0));\n return Geometry.mod2pi(v);\n }", "title": "" }, { "docid": "286be778bdd36ecdc01fd2a2526df424", "score": "0.4429184", "text": "synchronized private void track(EventPacket<BasicEvent> ae) {\n boolean updatedClusterList = false;\n int n = ae.getSize();\n if (n == 0) {\n return;\n }\n// int maxNumClusters=getMaxNumClusters();\n\n // record cluster locations before packet is processed\n for (Cluster c : clusters) {\n c.getLastPacketLocation().setLocation(c.location);\n }\n\n // for each event, see which cluster it is closest to and add it to this cluster.\n // if its too far from any cluster, make a new cluster if we can\n// for(int i=0;i<n;i++){\n for (BasicEvent ev : ae) {\n// EventXYType ev=ae.getEvent2D(i);\n Cluster closest = null;\n if (useNearestCluster) {\n closest = getNearestCluster(ev);\n } else {\n closest = getFirstContainingCluster(ev); // find cluster that event falls within (or also within surround if scaling enabled)\n }\n if (closest != null) {\n closest.addEvent(ev);\n } else if (clusters.size() < maxNumClusters) { // start a new cluster\n Cluster newCluster = new Cluster(ev);\n clusters.add(newCluster);\n }\n if (!updateTimeInitialized) {\n nextUpdateTimeUs = ev.timestamp + updateIntervalMs * 1000 / AEConstants.TICK_DEFAULT_US;\n updateTimeInitialized = true;\n }\n // ensure cluster list is scanned at least every updateIntervalMs\n if (ev.timestamp > nextUpdateTimeUs) {\n nextUpdateTimeUs = ev.timestamp + updateIntervalMs * 1000 / AEConstants.TICK_DEFAULT_US;\n updateClusterList(ae, ev.timestamp);\n updatedClusterList = true;\n }\n }\n if (!updatedClusterList) {\n updateClusterList(ae, ae.getLastTimestamp()); // at laest once per packet update list\n }\n logClusters();\n }", "title": "" }, { "docid": "7a51cc63aad902e06cbc90bdbfcd8b96", "score": "0.44216067", "text": "public double mean() {\n return mean;\n }", "title": "" }, { "docid": "c019b7500ffe8c0c949fd56bab17f9d4", "score": "0.44189042", "text": "@Override\n\tpublic Object getCentroid() {\n\t\treturn centroid;\n\t}", "title": "" }, { "docid": "9d3195bc63a8e572ade10531c3d6e602", "score": "0.4415556", "text": "public double getMean() {\n return mean;\n }", "title": "" }, { "docid": "bb83648aea2d0349e0ecb3ada661b4d6", "score": "0.44059783", "text": "public double getClusterCoefficientJUNG()\r\n\t{\n\t\tMap<Entity, Double> coefficients = Metrics\r\n\t\t\t\t.clusteringCoefficients(undirectedGraph);\r\n\t\tdouble coefficientSum = 0.0;\r\n\t\t// logger.info(\"Clustering coefficients: \" + coefficients);\r\n\t\tfor (Entity vertex : coefficients.keySet()) {\r\n\t\t\t// logger.info(vertex + ((JUNGEntityVertex)\r\n\t\t\t// vertex).getVertexEntity());\r\n\t\t\tcoefficientSum += coefficients.get(vertex);\r\n\t\t}\r\n\t\treturn coefficientSum / getNumberOfNodes();\r\n\t}", "title": "" }, { "docid": "806d3857ceefece73a66956b9ff1f259", "score": "0.44019887", "text": "public double[] centroidCalculator(int id, List<double[]> a) {\n\n int count = 0;\n //double x[] = new double[ReadDataset.numberOfFeatures];\n double sum = 0.0;\n double[] centroids = new double[numberOfFeatures];\n for (int i = 0; i < numberOfFeatures; i++) {\n sum = 0.0;\n count = 0;\n for (double[] x : a) {\n count++;\n sum = sum + x[i];\n }\n centroids[i] = sum / count;\n }\n return centroids;\n }", "title": "" }, { "docid": "9fc3d61b8f4e50833700cdc5a8da2c63", "score": "0.44013387", "text": "public Coordinates getCentroid() {\r\n return centroid;\r\n }", "title": "" }, { "docid": "3c5a2ce5b66f22dec3a41619dea7cd29", "score": "0.44011518", "text": "private LecturasSensor cogerLectura(LecturasSensor lect) {\n\tLecturasSensor lecViento = new LecturasSensor();\n\tcal = Calendar.getInstance();\n\tjava.sql.Timestamp dateViento = new java.sql.Timestamp(\n\t\tcal.getTimeInMillis());\n\tlecViento.setNombreSensor(sens.getNum_sensor());\n\tlecViento.setFecha(dateViento);\n\tlecViento.setRiego(0);\n\tlecViento.setVelocidadAnemometro(lect.getVelocidadAnemometro());\n\tlecViento.setLluvia(0);\n\tlecViento.setTemperatura(0);\n\tlecViento.setIntru(false);\n\treturn lecViento;\n }", "title": "" }, { "docid": "22bea88373c4101384d6c427068bc73d", "score": "0.44002676", "text": "public boolean updateMeans(Mean[] newMeans);", "title": "" }, { "docid": "e7d3593a64bd4d8754fddc6053aa9b16", "score": "0.4399874", "text": "public static double solveKepler(double mean_anomaly, double ecc)\n\t{\n\t\tif (Math.abs(ecc) < 0.000000001)\n\t\t{\n\t\t\treturn mean_anomaly;\n\t\t}\n\t\tint maxit = 10000;\n\t\tint it = 0;\n\n\t\tdouble de = 1000.0;\n\n\t\tdouble ea = mean_anomaly;\n\t\tdouble old_m = mean_anomaly;\n\n\t\twhile ((it < maxit) && (Math.abs(de) > 1.0E-10))\n\t\t{\n\t\t\tdouble new_m = ea - ecc * Math.sin(ea);\n\t\t\tde = (old_m - new_m) / (1.0 - ecc * Math.cos(ea));\n\t\t\tea = ea + de;\n\t\t\tit = it + 1;\n\t\t}\n\t\treturn ea;\n\t}", "title": "" }, { "docid": "1f1426263666d40bf40edd74b912a68d", "score": "0.43980485", "text": "public Pairs[] getMeanOfGaussionsFromEM(String inputFolderPath, int numOfGaussions) throws Exception\n{\n\tdouble[][] mean = null;\n\tExpectationMaximizationAlgorithm EMA = new ExpectationMaximizationAlgorithm();\n\t//Read all arff files available in inputFolder\n\tFile[] arffFiles = EMA.readAllFiles(inputFolderPath);\n\t\n\tPairs pp[] = new Pairs[arffFiles.length]; \n\t\n\tfor(int i=0;i<arffFiles.length;i++)\n\t{\n\t\tEMA = new ExpectationMaximizationAlgorithm();\n\t\tBufferedReader datafile = EMA.readDataFile(arffFiles[i].getName().toString(),inputFolderPath);\n\t\tSystem.out.println(\"Converting..... : \"+arffFiles[i].getName().toString());\n\t\tInstances data = new Instances(datafile);\n\t\t\n\t\tEM EMObject = new EM();\n\t\tEMObject.setNumClusters(numOfGaussions);\n\t\tEMObject.buildClusterer(data);\n\t\tdouble[][][] attr = EMObject.getClusterModelsNumericAtts();\n\t\tmean = new double[data.numAttributes()][numOfGaussions];\n\t\tdouble[][] variance = new double[data.numAttributes()][numOfGaussions];\n\t\tfor(int j=0;j<numOfGaussions;j++)\n\t\t{\n\t\t\tfor(int k=0;k<data.numAttributes();k++)\n\t\t\t{\n\t\t\t\tmean[k][j]=attr[j][k][0];\n\t\t\t}\n\t\t}\n\t\tfor(int j=0;j<numOfGaussions;j++)\n\t\t{\n\t\t\tfor(int k=0;k<data.numAttributes();k++)\n\t\t\t{\n\t\t\t\tvariance[k][j]=attr[j][k][1];\n\t\t\t}\n\t\t}\n\t\tpp[i] = new Pairs(arffFiles[i].getName().toString(), mean,variance);\n\t\t\n\t}\n\t\n\treturn pp;\n}", "title": "" }, { "docid": "0d330cf4837be30e1e519131990e0404", "score": "0.43978283", "text": "public static void moment(final double[] data, final $double ave, final $double adev,\r\n final $double sdev, final $double var, final $double skew, final $double curt)\r\n throws NRException {\n int j, n = data.length;\r\n double ep = 0.0, s, p;\r\n if (n <= 1)\r\n throw new NRException(\"n must be at least 2 in moment\");\r\n s = 0.0; // First pass to get the mean.\r\n for (j = 0; j < n; j++)\r\n s += data[j];\r\n ave.$(s / n);\r\n $(adev, $(var, $(skew, $(curt, 0.0)))); // Second\r\n // pass to\r\n // get the\r\n // first\r\n // (absolute),\r\n // second,\r\n // third, and fourth moments of the deviation from the mean.\r\n for (j = 0; j < n; j++) {\r\n adev.$(adev.$() + abs(s = data[j] - ave.$()));\r\n ep += s;\r\n var.$(var.$() + (p = s * s));\r\n skew.$(skew.$() + (p *= s));\r\n curt.$(curt.$() + (p *= s));\r\n }\r\n adev.$(adev.$() / n);\r\n var.$((var.$() - ep * ep / n) / (n - 1)); // Corrected two-pass\r\n // formula.\r\n sdev.$(sqrt(var.$())); // Put the pieces together according to\r\n // the con\r\n if (var.$() != 0.0) { // ventional definitions.\r\n skew.$(skew.$() / (n * var.$() * sdev.$()));\r\n curt.$(curt.$() / (n * var.$() * var.$()) - 3.0);\r\n } else\r\n throw new NRException(\"No skew/kurtosis when variance = 0 (in moment)\");\r\n }", "title": "" }, { "docid": "ba29f6d027812ecd93e421b8d260303f", "score": "0.43915376", "text": "public Double getMean() {\n return mean;\n }", "title": "" }, { "docid": "391286162f7eeafc8a15271072fbed07", "score": "0.43841887", "text": "public final double get2ndCentralMoment() {\n return moments[2];\n }", "title": "" }, { "docid": "6062431ba06413f510f942eb471c768f", "score": "0.437971", "text": "public void correr(int km){\r\n\t\tdouble pesoPerdido = 0.05*km;\r\n\t\tthis.peso = this.peso - pesoPerdido;\r\n\t\tSystem.out.println(\"He corrido \" + km + \" y he perdido \" + pesoPerdido + \" kg-s\");\r\n\t}", "title": "" }, { "docid": "8aff2f9b472db7ed2016456828773feb", "score": "0.43781745", "text": "private void updateClusterList(EventPacket<BasicEvent> ae, int t) {\n pruneList.clear();\n for (Cluster c : clusters) {\n int t0 = c.getLastEventTimestamp();\n// int t1=ae.getLastTimestamp();\n int timeSinceSupport = t - t0;\n if (timeSinceSupport == 0) {\n continue; // don't kill off cluster spawned from first event\n }\n boolean killOff = false;\n if (clusterLifetimeIncreasesWithAge) {\n int age = c.getLifetime();\n int supportTime = clusterLifetimeWithoutSupportUs;\n if (age < clusterLifetimeWithoutSupportUs) {\n supportTime = age;\n }\n if (timeSinceSupport > supportTime) {\n killOff = true;\n// System.out.println(\"pruning unsupported \"+c);\n }\n } else {\n if (timeSinceSupport > clusterLifetimeWithoutSupportUs) {\n killOff = true;\n// System.out.println(\"pruning unzupported \"+c);\n }\n }\n boolean hitEdge = c.hasHitEdge();\n if (t0 > t || killOff || timeSinceSupport < 0 || hitEdge) {\n // ordinarily, we discard the cluster if it hasn't gotten any support for a while, but we also discard it if there\n // is something funny about the timestamps\n pruneList.add(c);\n }\n// if(t0>t1){\n// log.warning(\"last cluster timestamp is later than last packet timestamp\");\n// }\n }\n clusters.removeAll(pruneList);\n // merge clusters that are too close to each other.\n // this must be done interatively, because merging 4 or more clusters feedforward can result in more clusters than\n // you start with. each time we merge two clusters, we start over, until there are no more merges on iteration.\n // for each cluster, if it is close to another cluster then merge them and start over.\n// int beforeMergeCount=clusters.size();\n boolean mergePending;\n Cluster c1 = null;\n Cluster c2 = null;\n do {\n mergePending = false;\n int nc = clusters.size();\n outer:\n for (int i = 0; i < nc; i++) {\n c1 = clusters.get(i);\n for (int j = i + 1; j < nc; j++) {\n c2 = clusters.get(j); // getString the other cluster\n if (c1.distanceTo(c2) < (c1.getRadius() + c2.getRadius())) {\n // if distance is less than sum of radii merge them\n // if cluster is close to another cluster, merge them\n mergePending = true;\n break outer; // break out of the outer loop\n }\n }\n }\n if (mergePending && c1 != null && c2 != null) {\n pruneList.add(c1);\n pruneList.add(c2);\n clusters.remove(c1);\n clusters.remove(c2);\n clusters.add(new Cluster(c1, c2));\n// System.out.println(\"merged \"+c1+\" and \"+c2);\n }\n } while (mergePending);\n // update all cluster sizes\n // note that without this following call, clusters maintain their starting size until they are merged with another cluster.\n if (isHighwayPerspectiveEnabled()) {\n for (Cluster c : clusters) {\n c.setRadius(defaultClusterRadius);\n }\n }\n // update paths of clusters\n numVisibleClusters = 0;\n for (Cluster c : clusters) {\n c.updatePath(ae);\n if (c.isVisible()) {\n numVisibleClusters++;\n }\n }\n }", "title": "" }, { "docid": "8e9b5eb5b318f6e3d5a308857072cda0", "score": "0.43614992", "text": "double cekStop(double x[][], double v0[],double v[][],double w0[],double w[][], double t[]){\n double akumY=0;\n //~ itung z_in dan z\n for(int h=0; h<jumlah_data; h++){\n for(int j=0; j<unit_hidden; j++){\n //itung sigma xi vij\n double jum_xv=0;\n for(int i=0; i<unit_input; i++){\n double cc=x[h][i]*v[i][j];\n jum_xv=jum_xv+cc;\n //System.out.println(x[h][j]);\n }\n z_in[j]=v0[j]+jum_xv;\n //itung z\n z[j]=1/(1+(double)Math.exp(-z_in[j]));\n //System.out.println(\" dan z= \"+z[j]);\n }\n \n //~ itung y_in dan y (output)\n double cxc=0;\n for(int k=0; k<unit_output; k++){\n double jum_zw=0;\n for(int j=0; j<unit_hidden; j++){\n double cc=z[j]*w[j][k];\n jum_zw=jum_zw+cc;\n }\n y_in[k]=w0[k]+jum_zw;\n y[k]=1/(1+(double)Math.exp(-y_in[k]));\n akumY = akumY + Math.pow((t[h]-y[k]),2);\n //System.out.println(t[h]+\"-\"+y[k]+\"=\"+(t[k]-y[k]));\n }\n }\n double E = 0.5 * akumY;\n //System.out.println(E);\n return E;\n }", "title": "" }, { "docid": "89bee45f734d7464f1ac5ef010f26b42", "score": "0.43519974", "text": "public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }", "title": "" }, { "docid": "aeb30b330ec26b39c0437647cec74d78", "score": "0.43494645", "text": "public void\t\t\tsetMeanInterArrivalTime(double miat)\n\t{\n\t\tassert\tmiat > 0.0 ;\n\t\tthis.meanInterArrivalTime = miat ;\n\t}", "title": "" }, { "docid": "5cfbea2b9f93e64dc36f4945f4a693a9", "score": "0.4348142", "text": "@Override\n\tpublic void KYCMandate() {\n\t\t\n\t}", "title": "" }, { "docid": "0cad61026ffa5d12fde84ce0c78a2cab", "score": "0.4347328", "text": "public ConversorVelocidad() {\n //setTemperaturaConvertida(0);\n }", "title": "" }, { "docid": "15d71bc147954e577929cbce12a6d753", "score": "0.43460825", "text": "public void recenter()\n {\n PointF center = centroid();\n\n for (PointF point : points)\n {\n point.x -= center.x;\n point.y -= center.y;\n }\n }", "title": "" }, { "docid": "8c5cba8bf6084d6664e7fbb8625fdd47", "score": "0.43459442", "text": "@Override\n public String toString() {\n return \"BestMean convergence stoptest\";\n }", "title": "" } ]
c82adf2219d4bc9a33543234a5563a0c
Clears the gui board of all chess pieces.
[ { "docid": "b7dcc76ca6b55339e3cc4a7b361b636a", "score": "0.70089626", "text": "private void clearBoard() {\n gPane.getChildren().removeIf(child -> child instanceof ImageView);\n }", "title": "" } ]
[ { "docid": "903aabd743981ad08a8679d3cac8e1cc", "score": "0.7989635", "text": "public void clearBoard() {\n for(int r = 0; r < 8; r++) {\n for(int c = 0; c < 8; c++) {\n if(chess.pieceAt(r, c) != null && !(chess.pieceAt(r, c) instanceof King)) {\n chess.setPiece(r, c, null);\n }\n }\n }\n }", "title": "" }, { "docid": "efa38868754ce839f2ee04df491e2201", "score": "0.7952681", "text": "void clear() {\n for (int i = 0; i < _board.length; i++) {\n _board[i] = EMPTY;\n }\n makeBorders();\n _whoseMove = RED;\n set(\"a\".charAt(0), \"1\".charAt(0), BLUE);\n set(\"a\".charAt(0), \"7\".charAt(0), RED);\n set(\"g\".charAt(0), \"1\".charAt(0), RED);\n set(\"g\".charAt(0), \"7\".charAt(0), BLUE);\n _numMoves = 0;\n _numRed = 2;\n _numBlue = 2;\n _numJumps = 0;\n _allMoves = new Stack<>();\n _changedColorArrays = new Stack<>();\n setChanged();\n notifyObservers();\n }", "title": "" }, { "docid": "34a72c5b9bf2cebd3116e6f66e6df34b", "score": "0.7866982", "text": "public void clearBoard() {\n tiles.clear();\n piecesOnBoard.clear();\n counter = 0;\n }", "title": "" }, { "docid": "d3c7c21365aca924319cb9cf8e0dbb29", "score": "0.76663846", "text": "public void clearBoard() {\n values = new int[4][4];\n \n for (int col = 0; col < squares.length; col++) {\n for (int row = 0; row < squares[col].length; row++) {\n squares[col][row].setText(\"\");\n\n }\n }\n }", "title": "" }, { "docid": "27dc39f922a570080f1685c9bfb5008f", "score": "0.7662368", "text": "public void clearBoard() \n\t{\n\t\tGrid.resetGrid(this.cells);\n\t}", "title": "" }, { "docid": "609f2e9c87ed968631f3b5c43469129c", "score": "0.75735843", "text": "private void clearBoard() {\n button_7.setDisable(false);\n button_8.setDisable(false);\n button_9.setDisable(false);\n button_4.setDisable(false);\n button_5.setDisable(false);\n button_6.setDisable(false);\n button_1.setDisable(false);\n button_2.setDisable(false);\n button_3.setDisable(false);\n count = 0;\n button_7_Text.setText(\"\");\n button_8_Text.setText(\"\");\n button_9_Text.setText(\"\");\n button_4_Text.setText(\"\");\n button_5_Text.setText(\"\");\n button_6_Text.setText(\"\");\n button_1_Text.setText(\"\");\n button_2_Text.setText(\"\");\n button_3_Text.setText(\"\");\n player1go.setText(\"\");\n player2go.setText(\"\");\n for (int x = 0; x < 10; x++) {\n board[x] = 0;\n }\n }", "title": "" }, { "docid": "296f74c02d1ad2e08f313eba42ea2f81", "score": "0.7453452", "text": "public void clearBoard(){\n\n btnBox1.setText(\"\");\n btnBox2.setText(\"\");\n btnBox3.setText(\"\");\n btnBox4.setText(\"\");\n btnBox5.setText(\"\");\n btnBox6.setText(\"\");\n btnBox7.setText(\"\");\n btnBox8.setText(\"\");\n btnBox9.setText(\"\");\n\n }", "title": "" }, { "docid": "9a2b91e77bf5a46f3d59ed15539cede7", "score": "0.7416292", "text": "private void clear_board(){\n for(int row = 0; row < this.num_rows; row++){\n for(int col = 0; col < this.num_cols; col++){\n this.board[row][col] = null;\n }\n }\n }", "title": "" }, { "docid": "64d6e84c1a8bc2cdd2e202976cfdf21b", "score": "0.7357601", "text": "public void clearBoard(){\r\n \r\n for(int i = 0; i < noOfRows; i++){\r\n for(int j = 0; j < noOfColomns; j++){\r\n boardStatus[i][j] = 0;\r\n }\r\n }\r\n boardEmpty = true;\r\n setChanged();\r\n notifyObservers();\r\n }", "title": "" }, { "docid": "132142994ed27ce6d21900c7da04dd99", "score": "0.72959447", "text": "public void clear() {\r\n\r\n\t\tfor (int i = 0; i < board.getHeight(); i++) {\r\n\t\t\tfor (int j = 0; j < board.getWidth(); j++) {\r\n\t\t\t\tthis.board.setPiece(j, i, new Cell(DEAD_CELL));\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.gen = 0;\r\n\t}", "title": "" }, { "docid": "66737be84e10ae61b0e4ab2179248459", "score": "0.7259913", "text": "private void resetBoard()\n\t{\n\t\tfor(int i = 0; i < game_size; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < game_size; j++)\n\t\t\t{\n\t\t\t\tcells[i][j].setText(\"\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "596b6fae10c1b762748e1946d0c7e0e9", "score": "0.7256405", "text": "public void clearBoard() {\n\t\tfor (int i = 0; i < boardsize; i++) {\n\t\t\tfor (int j = 0; j < boardsize; j++) {\n\t\t\t\tboard[i][j] = Square.EMPTY;\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "3834e51e51b18a5dd87377143cf771a0", "score": "0.71479934", "text": "public void clear(int state) {\n\t\tfor (int row = 1; row < 9; row++) {\n\t\t\tfor (int col = 1; col < 9; col++) {\n\t\t\t\tif (_board[row][col] != null && _board[row][col].state() == state) {\n\t\t\t\t\t_gamePane.getChildren().remove((_board[row][col]).getRoot());\n\t\t\t\t\t_board[row][col] = null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e92802d7f5f051ca745e0c77361c42c6", "score": "0.7131108", "text": "private void resetPanel() {\n\t\tboardPanel.removeAll();\n\t}", "title": "" }, { "docid": "47c3d85ca6780e43791575faeb9ae05f", "score": "0.71253467", "text": "public final void clearBoard()\n {\n for (int row = 0; row < Connect4Constants.ROW_COUNT; row++)\n for (int col = 0; col < Connect4Constants.COLUMN_COUNT; col++)\n board[row][col] = 0;\n }", "title": "" }, { "docid": "29082824d6d81b3b6fc99ce468fa5c69", "score": "0.7028879", "text": "public void resetBoard() {\r\n\t\tfor (int r = 0; r < size; r++)\r\n\t\t\tfor (int c = 0; c < size; c++)\r\n\t\t\t\t// sets grid point board[r][c] to empty\r\n\t\t\t\tboard[r][c] = CellStatus.EMPTY;\r\n\t}", "title": "" }, { "docid": "b536ce1fccfb474e03d733e15cb3ff12", "score": "0.702492", "text": "public void clearBoard()\r\n\t{\r\n\t\tfor (int i = 0; i < 20; i++)\r\n\t\t{\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n \r\n\t\tfor (int i = 0; i < ROWS; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 0; j < COL; j++)\r\n\t\t\t{\r\n\t\t\t\tthis.Board[i][j] = '.';\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "840aba8df1a5b8b35988e736ee43ff2e", "score": "0.69912916", "text": "public void reset() {\n\t\tfor (int r = 0; r < 6; r++) {\n\t\t\tfor (int c = 0; c < 7; c++) {\n\t\t\t\tboard[r][c] = Space.EMPTY;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "90b68a7ead90a88be21cc2b8a7cbc3b3", "score": "0.69903815", "text": "void reset(){\n\n\t\tfor(int i = 0; i < 8; i++)\n\t\t\tfor(int j = 0; j < 8; j++)\n\t\t\t{\n\t\t\t\tsquares[i][j].releasePiece();\n\t\t\t}\n\t\t\n\t\tsquares[0][5].acceptPiece(new Piece(PieceType.ELEPHANT, PieceColour.SILVER));\n\t\tsquares[1][5].acceptPiece(new Piece(PieceType.CAMEL, PieceColour.SILVER));\n\t\tsquares[2][5].acceptPiece(new Piece(PieceType.HORSE, PieceColour.SILVER));\n\t\tsquares[3][5].acceptPiece(new Piece(PieceType.HORSE, PieceColour.SILVER));\n\t\tsquares[4][5].acceptPiece(new Piece(PieceType.DOG, PieceColour.SILVER));\n\t\tsquares[5][5].acceptPiece(new Piece(PieceType.DOG, PieceColour.SILVER));\n\t\tsquares[6][5].acceptPiece(new Piece(PieceType.CAT, PieceColour.SILVER));\n\t\tsquares[7][5].acceptPiece(new Piece(PieceType.CAT, PieceColour.SILVER));\n\t\t\t\t\n\t\tsquares[0][2].acceptPiece(new Piece(PieceType.ELEPHANT, PieceColour.GOLD));\n\t\tsquares[1][2].acceptPiece(new Piece(PieceType.CAMEL, PieceColour.GOLD));\n\t\tsquares[2][2].acceptPiece(new Piece(PieceType.HORSE, PieceColour.GOLD));\n\t\tsquares[3][2].acceptPiece(new Piece(PieceType.HORSE, PieceColour.GOLD));\n\t\tsquares[4][2].acceptPiece(new Piece(PieceType.DOG, PieceColour.GOLD));\n\t\tsquares[5][2].acceptPiece(new Piece(PieceType.DOG, PieceColour.GOLD));\n\t\tsquares[6][2].acceptPiece(new Piece(PieceType.CAT, PieceColour.GOLD));\n\t\tsquares[7][2].acceptPiece(new Piece(PieceType.CAT, PieceColour.GOLD));\n\t}", "title": "" }, { "docid": "c436f98deb5196a849528e2854c3567e", "score": "0.69860446", "text": "public void clearBoard() {\n for (int row = 0; row < numRows; row++) {\n for (int col = 0; col < numCols; col++) {\n Token t = getTokenAtPosition(row, col);\n t.clearOccupied();\n t.setSymbol(\"O\");\n }\n }\n this.numOccupied = 0;\n }", "title": "" }, { "docid": "5eb8832cff901644834aaee26f5735f1", "score": "0.6955377", "text": "private void clearPawnsFromBoard() {\r\n for (int x = 0; x < boardCompX; x = x + 2) {\r\n for (int y = 0; y < boardCompY; y = y + 2) {\r\n if (boardComp[x][y].getImage() == pawnImg) {\r\n ImageView gameSquare = createGameSquare(x, y);\r\n boardComp[x][y] = gameSquare;\r\n board.add(gameSquare, x, y);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "3b264d9d3b03743bbbfb0c78b0788c25", "score": "0.694895", "text": "private void clearPiece(){\n this.savedSelectedPiece = new None(new Coords(currentSelectedPiece.getPosition().getX(), currentSelectedPiece.getPosition().getY()));\n GameComponent.selectedPiece = new None(new Coords(currentSelectedPiece.getPosition().getX(), currentSelectedPiece.getPosition().getY()));\n this.clickCounter = 0;\n this.list = new PossibleMoves();\n GameComponent.list = this.list;\n this.checkList = new PossibleMoves();\n }", "title": "" }, { "docid": "aa9baad4169a19df7fee773a87b8e352", "score": "0.6927627", "text": "public void clearGameBoard() {\n for ( int column = 0; column < 3; ++column) {\n for ( int row = 0; row < 3; ++row ) {\n positionStates[column][row] = GameState.POSITION_STATE.UNCLAIMED;\n }\n }\n }", "title": "" }, { "docid": "84abc0768b4125b158865e5e8ff1acb8", "score": "0.69246113", "text": "public void clear() {\r\n\t\t\r\n\t\tfor (int i = 0; i < 3; i++)\r\n\t\t\tfor (int j = 0; j < 3; j++)\r\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\r\n\t\tmarkCount = 0;\r\n\t}", "title": "" }, { "docid": "57529e3892e9359cf0e451a4acc3743b", "score": "0.6921781", "text": "private void resetBoard() {\n for (int y = 0; y < MY_TILES.length; y++) {\n for (int x = 0; x < MY_TILES.length; x++) {\n MY_TILES[x][y].setHasPiece(false);\n }\n }\n for (ChessPiece myPiece : myPieces) {\n int pieceX = myPiece.getLocationX();\n int pieceY = myPiece.getLocationY();\n MY_TILES[pieceX][pieceY].setHasPiece(true);\n }\n }", "title": "" }, { "docid": "a5dab7e8c1fd97546197f6107e4320c3", "score": "0.69106364", "text": "public void clear() {\r\n\t\tfor (int i = 0; i < 3; i++)\r\n\t\t\tfor (int j = 0; j < 3; j++)\r\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\r\n\t\tmarkCount = 0;\r\n\t}", "title": "" }, { "docid": "6ea0986b6708931b1ea3fdd91f2a7a57", "score": "0.6903608", "text": "public static void clearBoard(boolean keepHighlighted){\n if(drawing == null){\n return;\n }\n ArrayList<Node> toremove = new ArrayList();\n for(Node s : drawing.getChildren()){\n if(s instanceof Piece){\n toremove.add(s);\n }\n\t\t\t\t\t\tif(!keepHighlighted){\n\t\t\t\t\t\t\tif(s instanceof Square){\n\t\t\t\t\t\t\t\tSquare p = (Square)s;\n\t\t\t\t\t\t\t\tp.unHighlight();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n }\n\n pieceLocations.clear();\n pieces.clear();\n\n drawing.getChildren().removeAll(toremove);\n }", "title": "" }, { "docid": "c88d7bec826f5bc9556aca705edee4ce", "score": "0.6876201", "text": "public void clear() {\n\t\tfor (int i = 0; i < 3; i++)\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\n\t\tmarkCount = 0;\n\t}", "title": "" }, { "docid": "c33b64b128a8473f7e2544a71a832027", "score": "0.6855937", "text": "@Override\n public void reset() {\n getPieces().clear();\n }", "title": "" }, { "docid": "17a64970db006f14d1f1a44a71ef98b1", "score": "0.684888", "text": "public void clearGrid(){\r\n\t\tfor(int y = 0; y < gridSize.length; y++) {\r\n\t\t\tfor(int x = 0; x < gridSize.length; x++) {\r\n\t\t\t\tgridSize[y][x] = EMPTY;\r\n\t\t\t}\r\n\t\t}\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "title": "" }, { "docid": "be94825b1fa05d79dde0689834fec6c6", "score": "0.6843356", "text": "private void resetPieces() {\n\t\tGame.getPlayer().getPieces().clear();\n\t\tGame.getInstance().getOpponent().getPieces().clear();\n\t\tGame.getPlayer().getDeadPieces().clear();\n\t\tGame.getInstance().getOpponent().getDeadPieces().clear();\n\t\tfor (final IPiece piece : Game.getWhite().getAllPieces()) {\n\t\t\tpiece.reset();\n\t\t\tGame.getWhite().getPieces().add(piece);\n\t\t}\n\t\tfor (final IPiece piece : Game.getBlack().getAllPieces()) {\n\t\t\tpiece.reset();\n\t\t\tGame.getBlack().getPieces().add(piece);\n\t\t}\n\t}", "title": "" }, { "docid": "886b6333b9c30cde84268a1c81fc7818", "score": "0.6826947", "text": "public String clearBoard()\n {\n //new display StringBuilder object\n display = new StringBuilder();\n //for loop to set each row and column index to 0\n for(int i = 0; i < board.length; i++)\n {\n for(int k = 0; k < board[0].length; k++)\n {\n //set to 0\n board[i][k] = 0;\n }\n }\n return display.toString();\n }", "title": "" }, { "docid": "ebe4427141b86d5ce733aa7b91266df7", "score": "0.677539", "text": "protected void clearBoard(final boolean clearModel) {\n for (int row = 0; row < ChessBoardModel.BOARD_SIZE; row++) {\n for (int col = 0; col < ChessBoardModel.BOARD_SIZE; col++) {\n this.clearCell(row, col, clearModel);\n }\n }\n }", "title": "" }, { "docid": "2989938af9f33533cc80017ff4b28fab", "score": "0.6757153", "text": "private void resetGameBoard() {\n topLeft.setText(\"\");\n top.setText(\"\");\n topRight.setText(\"\");\n left.setText(\"\");\n mid.setText(\"\");\n right.setText(\"\");\n botLeft.setText(\"\");\n bot.setText(\"\");\n botRight.setText(\"\");\n }", "title": "" }, { "docid": "6dc8f0b1451075d5a5831d08c04d7a68", "score": "0.6744108", "text": "public static void clear() {\n LIST_BUTTON_GRID.stream().forEach(i -> i.setText(\"\"));\n }", "title": "" }, { "docid": "45b1481212b5559175cd17e5ebdf61d9", "score": "0.67424566", "text": "public void actionPerformed(ActionEvent e)\n {\n Sudoku.getFrame().getPanel().clear();\n }", "title": "" }, { "docid": "552da795cbbced0858e6a7f4e1a55166", "score": "0.6730818", "text": "@Override\n\tpublic void reset() {\n\t\tfor (int i = 0; i < numBlacks; ++i) {\n board[i] = BLACK;\n }\n\t\t// no pieces are at 2 middle rows\n int whiteStart = numSquares - numBlacks;\n for (int i = numBlacks; i < whiteStart; ++i) {\n board[i] = empty;\n }\n // white pieces are at last 3 rows\n for (int i = whiteStart; i < numSquares; ++i) {\n board[i] = WHITE;\n }\n currentPlayer = BLACK;\n\t}", "title": "" }, { "docid": "9cc90ce5279ef96c9247ec7383b9e6ea", "score": "0.6724447", "text": "private void resetBoard() {\n clearBoard();\n drawBoard();\n }", "title": "" }, { "docid": "318dae6fbb61ccaff48aef4e1a3cf059", "score": "0.67003614", "text": "public void clearColours();", "title": "" }, { "docid": "dcc6fd33053f9f5d2e10f986c059bf41", "score": "0.6694906", "text": "public void reset_board() {\n }", "title": "" }, { "docid": "a2ae0db94e0e50adb872e3237df38787", "score": "0.6689569", "text": "public void cleanAllSquares() {\r\n\t\tfor(int i=0; i<8; i++) {\r\n\t\t\tfor(int j=0; j<8; j++) {\r\n\t\t\t\tsquares.get(i).get(j).setBorder(null);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "280b2f97f1c18ca50bb7201ae4b321bd", "score": "0.6685844", "text": "public void clearColors()\r\n\t{\r\n\t\tfor (JButton[] bb : grid)\r\n\t\t{\r\n\t\t\tfor (JButton b : bb)\r\n\t\t\t{\r\n\t\t\t\tb.setBorder(BorderFactory.createLineBorder(null));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7a6506e4a1ea1157ddc5469ed4976608", "score": "0.66714346", "text": "public void clear() {\n\t\tfor (int i = 0; i < _size; i++) {\n\t\t\tfor (int j = 0; j < _size; j++) {\n\t\t\t\t_grid[i][j] = false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0ac532787a3c3144d6b56358a5895e72", "score": "0.6669747", "text": "public void resetGame() {\n for (Column col : columns) {\n col.clear();\n }\n }", "title": "" }, { "docid": "5756c24bb2c57faa8382ad936d5c61a1", "score": "0.66686064", "text": "private void updateBoard(){\n for(int column = 0; column < COLUMNS; column++){\n for(int row = 0; row < ROWS; row++){\n if(board[column][row] != null){\n pieceGrid.getChildren().remove(board[column][row].getImageView());\n pieceGrid.add(board[column][row].getImageView(), column, row);\n }\n }\n }\n }", "title": "" }, { "docid": "4166e779f39d5747f9b5e6ad8c3e5e86", "score": "0.6658805", "text": "public void clear() {\n buttons.clear();\n }", "title": "" }, { "docid": "ac580b56ef1617b243ee91224d2071a0", "score": "0.6648893", "text": "public void clearScreen() {\n int gridPaneEnd = gridPane.getChildren().size();\n gridPane.getChildren().remove(gridPaneStart, gridPaneEnd);\n }", "title": "" }, { "docid": "feb28373157089542a75300a120573d2", "score": "0.66103834", "text": "private void clear()\r\n\t{\r\n\t\tfor(JLabel jf : places)\r\n\t\t{\r\n\t\t\tdrawPlace(jf, new ImageIcon(Images.BLANK));\r\n\t\t}\r\n\t\r\n\t}", "title": "" }, { "docid": "35f7a9feec20354d6a94d919c92f78f6", "score": "0.66076034", "text": "@Override\n public void clearBoard() {\n for (int x = 0; x < macroBoard.length; x++) {\n \n for (int y = 0; y < macroBoard[x].length; y++) {\n\n macroBoard[x][y] = AVAILABLE_FIELD;\n }\n\n }\n /*make all the fields in the board availible*/\n for (int x = 0; x < board.length; x++) {\n \n for (int y = 0; y < board[x].length; y++) {\n \n \n board[x][y] = EMPTY_FIELD;\n \n \n }\n }\n }", "title": "" }, { "docid": "06e1a9f22fadc7269a090b1d57d5f764", "score": "0.6581586", "text": "private void clearEvolutionStonePieces() {\n \n evolutionStonePieces_ = 0;\n }", "title": "" }, { "docid": "4740553ea9ce0217157552167f224fea", "score": "0.6517876", "text": "public void reset(){\r\n\t\t\t for (int j = 0; j < DIM; j++) {\r\n\t\t\t\t\tfor (int i = 0; i < DIM; i++) {\r\n\t\t\t\t\t\tfor(int k =0; k < DIM; k++) {\r\n\t\t\t\t\t\t\tboard[j][i][k] = LocationState.EMPTY;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t this.setChanged();\r\n\t\t\t\tthis.notifyObservers();\r\n\r\n\t\t\t}", "title": "" }, { "docid": "2df441bfb445b325b7c37e317bfa8a1a", "score": "0.6505786", "text": "void clearGame() {\n ArrayList<Disc> dList = null;\n Disc d = null;\n for(int i = 0; i < towers.length; i++) {\n dList = towers[i].getAll();\n Iterator<Disc> it = dList.iterator();\n while(it.hasNext()) {\n d = it.next();\n view.getChildren().remove(d.get());\n }\n }\n gameSet = false;\n solved = false;\n }", "title": "" }, { "docid": "2840e16b0e35c0b030ad3b40fe75ec32", "score": "0.65037984", "text": "public void clearPuzzle(){\r\n for (CryptoTextView ctv : plainTextViews){\r\n if (ctv.isPlainText())\r\n ctv.setText(\" \");\r\n }\r\n clueCount = 0;\r\n }", "title": "" }, { "docid": "f2828d5602d8a68197ea0894aadbf5a0", "score": "0.6491856", "text": "public void boardCleared() throws IOException {\n\t\tmodelListener.boardCleared();\n\t}", "title": "" }, { "docid": "096057199a2150a0f7da27b6863f2e93", "score": "0.64708894", "text": "public void clearButtonClicked() {\n System.out.println(\"Pressed clear button\");\n lifeCanvas.clearGrid();\n app.next();\n }", "title": "" }, { "docid": "7befa1806f3378e00e6efbf9359a609b", "score": "0.64695877", "text": "public void clear() {\n\t\ttiles = new int[8][8];\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}", "title": "" }, { "docid": "f92aca735222fae257275ef006696926", "score": "0.6469005", "text": "public void reset() {\r\n\t\tboard = new int[size][size];\r\n\t\tfor (int row = 0; row < size; row++) {\r\n\t\t\tfor (int col = 0; col < size; col++) {\r\n\t\t\t\tboard[col][row] = BLANK;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e4290558752412a3c73cab736f04bd41", "score": "0.64429986", "text": "public void clearTiles() {\n \t\tLog.i(\"snake\", \"clearing everything\");\n \t\tfor (int i = 0; i < mNumberTilesX; ++i)\n \t\t\tfor (int j = 0; j < mNumberTilesY; ++j)\n \t\t\t\tmTileKeyArray[i][j] = 0;\n \t}", "title": "" }, { "docid": "8f1a0d9a40bb97f8a2886fc054f08eed", "score": "0.64362854", "text": "private void clearGUI(){\r\n\t\t\r\n\t\tfor (int i = 0; i < allMapItem.size(); i++){\r\n MapItem tempMapItem = allMapItem.get(i);\r\n Coordinate curCoordinate = tempMapItem.getCoordinate();\r\n mapGUI.unshowItem(curCoordinate);\r\n }\r\n\t}", "title": "" }, { "docid": "c0b164bd3ee18cac2073f9d4153631c4", "score": "0.64253145", "text": "private void clearAllCardIcons() {\n String[] listOfOpponents = clientRequest.getOpponentsInGame(clientRequest.getUsername(), TABLE);\n clearCardIconsForUser(clientRequest.getUsername());\n for (int i = 0; i < listOfOpponents.length; i++) {\n \tif (!listOfOpponents[i].equals(\"Empty\"))\n \t\tclearCardIconsForUser(listOfOpponents[i]);\n } \n }", "title": "" }, { "docid": "e7c96a0065115aeff2b46959769eed8e", "score": "0.6422479", "text": "public void resetBoard() {\r\n\t\tdeck = null;\r\n\t\tregions = null;\r\n\t\ttypes = null;\r\n\t\tking = null;\r\n\t\tnobilityTrack = null;\r\n\t\tbonusKing = null;\r\n\t\tcouncillorPool.clear();\r\n\t}", "title": "" }, { "docid": "c6ea7e76fe5a54052b16c04f45210838", "score": "0.64214087", "text": "private void resetAll() {\n for (int i: board.keySet()) {\n board.get(i).resetAll();\n }\n }", "title": "" }, { "docid": "ba3c2c8ade596ac0ecb570e7ac07c0ff", "score": "0.6421129", "text": "public void reset() {\r\n\r\n\t\tcurentplayerpieces.clear();\r\n\t\twaitingplayerpieces.clear();\r\n\t\tcurentplayerwincondition = null;\r\n\t\twaitingplayerwincondition = null;\r\n\r\n\t\tsimulation.getUnits().clear();\r\n\t\tsimulation.setEnvironement(Match.getBoard().getEnvironement());\r\n\r\n\t\tfor (Piece piece : Match.getBoard().getUnits().values()) {\r\n\t\t\tsimulation.addPiece(new Piece(piece.getType(), piece.getCoordonates(), piece.getColor()));\r\n\t\t}\r\n\r\n\t\tfor (Piece piece : simulation.getUnits().values()) {\r\n\t\t\tif (piece.getColor().equals(Match.getInstance().getCurrentplayer().getColor())) {\r\n\t\t\t\tif (piece.getWincondition()) {\r\n\t\t\t\t\tcurentplayerwincondition = piece;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcurentplayerpieces.add(piece);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (piece.getWincondition()) {\r\n\t\t\t\t\twaitingplayerwincondition = piece;\r\n\t\t\t\t} else {\r\n\t\t\t\t\twaitingplayerpieces.add(piece);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3962df0781d3a08be2944c7081209338", "score": "0.6420181", "text": "private void clearPositionGrid(){\n for (int x = 0; x < 10; x++) {\n for (int y = 0; y < 10; y++) {\n positionGrid[x][y].setBackground(Color.BLUE);\n }\n }\n }", "title": "" }, { "docid": "e03ba47565e807565dd5ad1961a7058f", "score": "0.64190793", "text": "public void reset() {\n // Set status and revealedCells to initial values\n status = GameStatus.NotOverYet;\n revealedCells = 0;\n\n // Set board to initial values and reset gameStarted\n setEmpty();\n gameStarted = false;\n }", "title": "" }, { "docid": "04225f0e1ca8b2b5c27c4f813f5ba05b", "score": "0.6375932", "text": "public void clearCanvas() {\n if (this.canvasContent != null) {\n for (int y=0; y<canvasContent.length; y++) {\n for (int x=0; x<canvasContent[y].length; x++) {\n canvasContent[y][x] = EMPTY_CHAR;\n }\n }\n }\n }", "title": "" }, { "docid": "d8d05685d604f10442a431583856d557", "score": "0.63679206", "text": "private void resetChess(){\n map = new HashMap<Position, Chess>();\n map.put(new Position(0,0), new Chess(1, \"plus\"));\n map.put(new Position(0,1), new Chess(1, \"triangle\"));\n map.put(new Position(0,2), new Chess(1, \"chevron\"));\n map.put(new Position(0,3), new Chess(1, \"sun\"));\n map.put(new Position(0,4), new Chess(1, \"chevron\"));\n map.put(new Position(0,5), new Chess(1, \"triangle\"));\n map.put(new Position(0,6), new Chess(1, \"plus\"));\n map.put(new Position(5,0), new Chess(0, \"plus\"));\n map.put(new Position(5,1), new Chess(0, \"triangle\"));\n map.put(new Position(5,2), new Chess(0, \"chevron\"));\n map.put(new Position(5,3), new Chess(0, \"sun\"));\n map.put(new Position(5,4), new Chess(0, \"chevron\"));\n map.put(new Position(5,5), new Chess(0, \"triangle\"));\n map.put(new Position(5,6), new Chess(0, \"plus\"));\n message = \"Player 1's turn\";\n chessUIupdate();\n }", "title": "" }, { "docid": "da99e92367070274821df5e4d45c321d", "score": "0.6366154", "text": "public void clearGame(){\n for(int y = 0; y < 4; y++){\r\n for (int x = 0; x < 4; x++) {\r\n buttons[y][x].setText(\"\");\r\n buttons[y][x].setEnabled(true);\r\n // buttons[y][x].setVisibility(View.VISIBLE);\r\n // buttons[y][x].setBackgroundColor(getResources().getColor(R.color.white)); // set clicked button to green\r\n // layout.etBackgroundColor(Color.parseColor(\"#ffffff\"));\r\n String buttonID = \"button_\" + y + x;\r\n int resID = getResources().getIdentifier(buttonID, \"id\", getPackageName());\r\n // findViewById(resID).setBackgroundColor(Color.TRANSPARENT);\r\n // buttons[y][x].getResources().getColor(R.color.white);\r\n\r\n // Drawable img = buttons[y][x].getContext().getResources().getDrawable( R.drawable.custom_button4 );\r\n // buttons[y][x].setCompoundDrawablesWithIntrinsicBounds( img, null, null, null);\r\n\r\n // buttons[y][x].setCompoundDrawablesWithIntrinsicBounds(R.drawable.custom_button4, 0, 0, 0);\r\n buttons[y][x].setBackgroundResource(R.drawable.custom_button4);\r\n\r\n // buttons[y][x].setBackgroundResource(0);\r\n\r\n helper[y][x] = false;\r\n }\r\n // android:background=\"@drawable/cutom_button\"\r\n\r\n }\r\n // tStart = 0;\r\n // points = 0;\r\n // points2 = 0;\r\n tracker = false;\r\n // pauseBtn.setEnabled(true);\r\n primeIndexArrayList.clear();\r\n }", "title": "" }, { "docid": "e2e7309c29fa2706ffdc44852c9dda8f", "score": "0.634578", "text": "public void reset(){\n //reset the board\n initialize();\n //reset the current player to the first player\n this.currentPlayer = 0;\n //make sure the game is set to unfinished\n this.boardFull = false;\n this.gameFinished = false;\n setChanged();\n notifyObservers();\n }", "title": "" }, { "docid": "ded1a538936106af864703fe912acc4d", "score": "0.63375694", "text": "@Override\n public void clear() {\n widgets.clear();\n counter.set(0);\n maxZIndex.set(1);\n }", "title": "" }, { "docid": "4584a97082930176d2eab420ab5e214a", "score": "0.6335204", "text": "public void clearAll() {\n\t\tpanel.removeAll();\r\n\t\tpanel.revalidate();\r\n\t\tpanel.repaint();\r\n\t}", "title": "" }, { "docid": "5bfd1d952b1869a3f49347d71c8fa44e", "score": "0.6333666", "text": "void clearSelectedComponents();", "title": "" }, { "docid": "06eb105540592bae5f72df791bfedf29", "score": "0.63313615", "text": "public void reset() {\n\t\t// White Pieces\n\t\tplacePiece(new Rook(Player.White), new Position(\"a1\"));\n\t\tplacePiece(new Knight(Player.White), new Position(\"b1\"));\n\t\tplacePiece(new Bishop(Player.White), new Position(\"c1\"));\n\t\tplacePiece(new Queen(Player.White), new Position(\"d1\"));\n\t\tplacePiece(new King(Player.White), new Position(\"e1\"));\n\t\tplacePiece(new Bishop(Player.White), new Position(\"f1\"));\n\t\tplacePiece(new Knight(Player.White), new Position(\"g1\"));\n\t\tplacePiece(new Rook(Player.White), new Position(\"h1\"));\n\t\tplacePiece(new Pawn(Player.White), new Position(\"a2\"));\n\t\tplacePiece(new Pawn(Player.White), new Position(\"b2\"));\n\t\tplacePiece(new Pawn(Player.White), new Position(\"c2\"));\n\t\tplacePiece(new Pawn(Player.White), new Position(\"d2\"));\n\t\tplacePiece(new Pawn(Player.White), new Position(\"e2\"));\n\t\tplacePiece(new Pawn(Player.White), new Position(\"f2\"));\n\t\tplacePiece(new Pawn(Player.White), new Position(\"g2\"));\n\t\tplacePiece(new Pawn(Player.White), new Position(\"h2\"));\n\n\t\t// Black Pieces\n\t\tplacePiece(new Rook(Player.Black), new Position(\"a8\"));\n\t\tplacePiece(new Knight(Player.Black), new Position(\"b8\"));\n\t\tplacePiece(new Bishop(Player.Black), new Position(\"c8\"));\n\t\tplacePiece(new Queen(Player.Black), new Position(\"d8\"));\n\t\tplacePiece(new King(Player.Black), new Position(\"e8\"));\n\t\tplacePiece(new Bishop(Player.Black), new Position(\"f8\"));\n\t\tplacePiece(new Knight(Player.Black), new Position(\"g8\"));\n\t\tplacePiece(new Rook(Player.Black), new Position(\"h8\"));\n\t\tplacePiece(new Pawn(Player.Black), new Position(\"a7\"));\n\t\tplacePiece(new Pawn(Player.Black), new Position(\"b7\"));\n\t\tplacePiece(new Pawn(Player.Black), new Position(\"c7\"));\n\t\tplacePiece(new Pawn(Player.Black), new Position(\"d7\"));\n\t\tplacePiece(new Pawn(Player.Black), new Position(\"e7\"));\n\t\tplacePiece(new Pawn(Player.Black), new Position(\"f7\"));\n\t\tplacePiece(new Pawn(Player.Black), new Position(\"g7\"));\n\t\tplacePiece(new Pawn(Player.Black), new Position(\"h7\"));\n\t}", "title": "" }, { "docid": "bf29958382d1409a9bd2259127d1176b", "score": "0.63311505", "text": "public void clear() {\n\t\tfor(int i = 0; i < pixels.length; i++)\n\t\t\tpixels[i] = 0x000000;\n\t}", "title": "" }, { "docid": "665249f334198ad72f422a28419bf3ff", "score": "0.6323237", "text": "public void clear() {\n\t\tfor(int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++){\n\t\t\t\tpixels[x][y] = 0;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "cf509dac1e071ceb22f92f1f63bcdfd0", "score": "0.6323031", "text": "private void resetGame() {\n\t\t/* Clear all spots on board. Uses the fact that SpotBoard\n\t\t * implements Iterable<Spot> to do this in a for-each loop.\n\t\t */\n\n\t\tfor (Spot s : _board) {\n\t\t\ts.clearSpot();\n\t\t\ts.setSpotColor(Color.BLACK); //empty\n\t\t}\n\t\t\t\n\t\t\n\t\t/* Reset game won \n\t\t * displays the next game \n\t\t * who starts the game */\n\t\t\n\t\t_game_won = false;\n\t\t_game_draw = false;\n\t\t_next_to_play = Player.WHITE;\t\t\n\t\t\n\t\t/* Display game start message. */\n\t\n\t\t\n\t\t_message.setText(\"Welcome to TicTacToe. White to play\");\n\t}", "title": "" }, { "docid": "e1ea9e242a561b5c777451d00459ce82", "score": "0.63035566", "text": "public void clearGrid() {\n\t\tinitializeGrid();\n\t\tnotifyObservers();\n\t}", "title": "" }, { "docid": "415aa2e2b4c3b6f7819179501af062d9", "score": "0.6294149", "text": "public void reset() {\r\n\t\tfor(int i=0; i<9; i++) {\r\n\t\t\tfor(int j=0; j<9; j++) {\r\n\t\t\t\tboard[i][j]=initialBoard[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "828a48dcc2180af8ae335a966c4c3544", "score": "0.6274744", "text": "public void clearFlopTurnRiver() {\n\n\t\tPlatform.runLater(() -> {\n\t\t\ttabelCardArea.getChildren().clear();\n\t\t});\n\t}", "title": "" }, { "docid": "06f406466f7059cf1da45a5829d2be23", "score": "0.626205", "text": "public void clearCanvas() {\n\t\tremoveAll();\n\t}", "title": "" }, { "docid": "12f9f5fb2fa432af22666d1b6763b1be", "score": "0.62567735", "text": "public void reset(){\n\t\tfor(int x=0; x < 8; x++){\n\t\t\tfor(int y=0; y < 8; y++){\n\t\t\t\tdata[x][y].empty();\n\t\t\t\t\t\t\t\t\n\t\t\t\t//Find which piece goes here\n\t\t\t\tint start; //Indicates what starts here 1 = white, 0 = black, -1 = nothing\n\t\t\t\t\n\t\t\t\tif(y == 0 || y == 1){ //White starts on the 1 or 2 rank\n\t\t\t\t\tstart = 1;\n\t\t\t\t}else if(y == 6 || y == 7){ //Black starts on 7 and 8 rank\n\t\t\t\t\tstart = 0;\n\t\t\t\t}else{\n\t\t\t\t\tstart = -1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(data[x][y] + \" is a \" + start + \" start\");\n\t\t\t\t\n\t\t\t\tif(start != -1){\n\t\t\t\t\tfor(PieceType<?> pt : pieceTypes){\n\t\t\t\t\t\tboolean white = (start == 1) ? true : false;\n\t\t\t\t\t\tPiece piece = (Piece) Piece.build(pt.get(), white, data[x][y], game);\n\t\t\t\t\t\tif(piece.validStart(white, x, y)){\n\t\t\t\t\t\t\tSystem.out.println(\"Created a \" + start + \" \" + piece + \" for \" + data[x][y]);\n\t\t\t\t\t\t\tdata[x][y].piece(piece);\n\t\t\t\t\t\t\tgame.spawn(piece);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tpiece = null;\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}", "title": "" }, { "docid": "f0a5c202b1b216021a639e3ac3c50462", "score": "0.6243453", "text": "void ClearData() {\n\n HideAllButtons();\n ShowHumanButtons();\n\n //Unhighlight player's cards\n for(int i = 0; i < playerCards.size(); i++) {\n playerImageButtonHand.get(i).setColorFilter(null);\n }\n\n int numOfBuildCards = 0;\n\n\n for(int i = 0; i < multipleBuildCards.size(); i++) {\n\n singleBuildCards = cardView.ConvertModelToView(multipleBuildCards.get(i).GetBuildOfCards());\n\n for(int j = 0; j < singleBuildCards.size(); j++) {\n singleBuildCards.get(j).DrawImageCard(table.get(numOfBuildCards));\n\n if(i % 2 == 0) {\n table.get(numOfBuildCards).setColorFilter(0x4033FF42);\n }\n else {\n table.get(numOfBuildCards).setColorFilter(0x403336FF);\n }\n numOfBuildCards++;\n }\n }\n\n // Unhighlight table cards\n for(int i = numOfBuildCards; i < tableCards.size(); i++) {\n table.get(i).setColorFilter(null);\n\n }\n\n highlightedTableCard.clear();\n setHighlightedTableCard.clear();\n roundModel.PlayerModelClearPlayerMultipleSets();\n setCardPickedCounter = 0;\n roundModel.SetPlayerModelWantSet('n');\n roundModel.SetPlayerModelWantBuild('n');\n }", "title": "" }, { "docid": "8beb647e414bfc0e1591eb213addbad3", "score": "0.62336385", "text": "void resetGrid() {\n nTakenBox =0;\n int size = gameInfos.getGridSize();\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++) {\n textViews[i][j].setText(constants.EMPTY_GRID);\n textViews[i][j].setTextColor(getResources().getColor(R.color.white));\n }\n }\n }", "title": "" }, { "docid": "86de725dfe7e6f88502b136905b92b48", "score": "0.6228802", "text": "private Board() { \n // Main Frame initialization\n final int minFrameWidth = 700;\n final int minFrameHeight = 600;\n frame = new JFrame(\"Myrmidon Chess\"); \n frame.setSize(minFrameWidth,minFrameHeight);\n frame.setMinimumSize(new Dimension(minFrameWidth, minFrameHeight));\n frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); \n frame.addWindowListener(new WindowAdapter(){\n @Override\n public void windowClosing(WindowEvent we) {\n System.out.println(\"Closing window callback\");\n\n if(saveStatus == false && gameStatus) {\n showMessage(\"Please save before leaving\");\n }\n else {\n System.exit(0);\n }\n }\n });;\n // Menubar initialization\n JMenuBar menuBar;\n JMenu menu, submenu;\n JMenuItem newGame, loadGame, saveGame;\n menuBar = new JMenuBar();\n menu = new JMenu(\"Game\");\n newGame = new JMenuItem(new AbstractAction(\"New Game\"){\n @Override\n public void actionPerformed(ActionEvent e) {\n // If game is still playable and not yet saved\n if(gameStatus && !saveStatus) {\n showMessage(\"Please save the game before you start a new game\");\n return;\n }\n\n initVariable();\n resetChess();\n }\n });\n saveGame = new JMenuItem(new AbstractAction(\"Save Game\"){\n @Override\n public void actionPerformed(ActionEvent e) {\n saveGame();\n }\n });\n loadGame = new JMenuItem(new AbstractAction(\"Load Game\"){\n @Override\n public void actionPerformed(ActionEvent e) {\n initVariable();\n loadGame();\n chessUIupdate();\n }\n });\n menu.add(newGame);\n menu.add(saveGame);\n menu.add(loadGame);\n menuBar.add(menu);\n frame.setJMenuBar(menuBar);\n JPanel chessPanel = new JPanel();\n chessPanel.setLayout(new GridLayout(6,7));\n // Button initialization\n for (int r = 0; r <= 5; r++){\n for (int c = 0; c <= 6; c++){\n buttons[r][c] = new JButton();\n buttons[r][c].setBackground(Color.WHITE);\n buttons[r][c].setName(Integer.toString(r) + \",\" + Integer.toString(c));\n buttons[r][c].addChangeListener(this);\n chessPanel.add(buttons[r][c]);\n }\n }\n frame.add(chessPanel, BorderLayout.CENTER);\n\n // Top level message initialization\n message = \"READY (CREATE NEW GAME OR LOAD GAME)\";\n topMessage = new JLabel(message);\n topMessage.setHorizontalAlignment(SwingConstants.CENTER);\n frame.add(topMessage, BorderLayout.PAGE_START);\n\n }", "title": "" }, { "docid": "9046afe5b03354e231d70d87f3c476b5", "score": "0.6228097", "text": "private void clearView(){\r\n\t\t\r\n\t\tfor(int row = 0; row < allPlayers.size(); row++){\r\n\t\t\tmapGUI.unShowView(new Coordinate(row,0));\r\n\t\t}\r\n\t\t\r\n\t\tfor(int row = 0; row < allPlayers.size(); row++){\r\n\t\t\tfor(int col = 1; col <= keysOnMap.size(); col++){\r\n\t\t\t\tmapGUI.unShowView(new Coordinate(row,col));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tmapGUI.unShowColor();\r\n\t}", "title": "" }, { "docid": "b5fbfcae7cd8a24944a8f3efc8abebb9", "score": "0.6224134", "text": "public static void resetBoard() {\n for(int i = 0; i < board.length; i++) {\n for(int j = 0; j < board.length; j++) {\n board[i][j] = \" - \";\n }\n }\n }", "title": "" }, { "docid": "f459a532414d7dfac2fedad80460f064", "score": "0.6223879", "text": "private void reset()\n {\n\t//Place special Figures for WHITE\n\tfigures[0][0]= (short)(Figure.ROOK + Figure.WHITE_OFFSET); // a number\n\tfigures[1][0]=(short)(Figure.KNIGHT+Figure.WHITE_OFFSET); // a offset number like =1\n\tfigures[2][0]=(short)(Figure.BISHOP+Figure.WHITE_OFFSET);\n\tfigures[3][0]=(short)(Figure.QUEEN+Figure.WHITE_OFFSET);\n\tfigures[4][0]=(short)(Figure.KING+Figure.WHITE_OFFSET);\n\tfigures[5][0]=(short)(Figure.BISHOP+Figure.WHITE_OFFSET);\n\tfigures[6][0]=(short)(Figure.KNIGHT+Figure.WHITE_OFFSET); \n\tfigures[7][0]=(short)(Figure.ROOK + Figure.WHITE_OFFSET);\n\t\n\t//Pawns\n\tfor(int i = 0; i<=7; i++)\n\t{\n\t figures[i][1]=(short)(Figure.PAWN + Figure.WHITE_OFFSET);\n\t figures[i][6]=(short)(Figure.PAWN + Figure.BLACK_OFFSET);\n\t}\n\t\n\t//Place special Figures for BLACK\n figures[0][7]=(short)(Figure.ROOK + Figure.BLACK_OFFSET);\n figures[1][7]=(short)(Figure.KNIGHT+Figure.BLACK_OFFSET);\n figures[2][7]=(short)(Figure.BISHOP+Figure.BLACK_OFFSET);\n figures[3][7]=(short)(Figure.QUEEN+Figure.BLACK_OFFSET);\n figures[4][7]=(short)(Figure.KING+Figure.BLACK_OFFSET);\n figures[5][7]=(short)(Figure.BISHOP+Figure.BLACK_OFFSET);\n figures[6][7]=(short)(Figure.KNIGHT+Figure.BLACK_OFFSET); \n figures[7][7]=(short)(Figure.ROOK + Figure.BLACK_OFFSET);\n \n //clear all other spaces\n for(int i=0; i<=7; i++)\n for(int j=2; j<=5; j++)\n {\n figures[i][j]=(short)(Figure.EMPTY); //0\n }\n \n //reset all parameters\n\twhiteCanCastleQueenSide = true; //Private\n\twhiteCanCastleKingSide = true; //Private\n\tblackCanCastleQueenSide = true;\n\tblackCanCastleKingSide = true;\n\thistory = new ArrayList<Move>();\n }", "title": "" }, { "docid": "83a831f610ff8f40691835c590877bdc", "score": "0.62174314", "text": "public void clear()\n {\n //THIS CODE IS WEIRD DUE TO A GLITCH IN JAVAFX THAT I FOUND WHERE REMOVING NODES WITH UNI-DIRECTIONAL LISTENERS ARE NOT REMOVED BY THE GARBAGE COLLECTOR.\n //ORIGINALLY WAS getChildren().clear();//This was producing a memory leak because apparently thest TextCells were referenced\n // somewhere else in the Java code, I have no idea where. Each time I undo/redo'd, and loaded a new state,\n // all of these panes wouldn't be deleted for some reason that I don't understand. So as a result I'm just\n // going to have two lists.\n //My solution: When we 'delete' children, we call the clear method on this array but FIRST, we dump all these objects onto another arraylist.\n forEachChild(x->dueToMemoryLeak.add(x));\n getChildren().clear();\n }", "title": "" }, { "docid": "ba462a297776e71b8d6dbf16080c8ec3", "score": "0.62137574", "text": "@Test\n\tpublic void testClearEmptyBoard()\n\t{\n\t\tmodel.clearBoard();\n\t\t\n\t\tassertEquals(model.getTriangles().size(),0);\n\t\tassertEquals(model.getCircles().size(),0);\n\t\tassertEquals(model.getSquares().size(),0);\n\t\tassertEquals(model.getLFlipper().size(),0);\n\t\tassertEquals(model.getRFlipper().size(),0);\n\t\tassertEquals(model.getAbs().size(),0);\n\t\tassertEquals(model.getBalls().size(),0);\n\t}", "title": "" }, { "docid": "6d134d7de8e1878e533ff339eaeacf2f", "score": "0.6202878", "text": "private void drawBoard() {\n for (int j = 0; j < Utility.BOARD_SQUARE_COUNT; j++) {\n final Square squareToDraw = board.getSquare(j); // The internal board square we desire to draw on the gui\n if (!squareToDraw.isEmpty()) {\n final Piece pieceOnSquare = squareToDraw.getPiece(); // The piece on the internal board square\n\n final Piece.PieceType typeOnSquare = pieceOnSquare.getPieceType(); // The type of piece it is\n final String pieceTeam = pieceOnSquare.getTeam() == Team.WHITE ? \"W\" : \"B\"; // The team of the piece\n\n // The corresponding GridPane coordinates to the squares position on the gui-board\n final int row = j / Utility.RANK_SQUARE_COUNT;\n final int column = j % Utility.RANK_SQUARE_COUNT;\n\n // Generates a piece graphics object\n final Node guiPiece = new ImageView(new Image(\"gui/pieceimages/\" + pieceStyle + \"/\" + pieceTeam + typeOnSquare + \".png\"));\n guiPiece.setOnMousePressed(this::pressed);\n guiPiece.setOnMouseReleased(this::release);\n guiPiece.setOnMouseDragged(this::dragged);\n guiPiece.setOnMouseEntered(this::entered);\n\n // Draws the new graphics object to the board\n gPane.add(guiPiece, column, row);\n }\n }\n }", "title": "" }, { "docid": "46cb5a443dc89d3bd62e8f914ccbd65e", "score": "0.62027645", "text": "protected void resetAppToMatchBoard() {\n this.clearBoard(false);\n final ChessBoardModel board = this.context.getBoard();\n for (int row = 0; row < ChessBoardModel.BOARD_SIZE; row++) {\n for (int col = 0; col < ChessBoardModel.BOARD_SIZE; col++) {\n final int pieceCode = board.getPieceForCell(row, col);\n final ChessPiece.PieceType pieceType = ChessPiece.PieceType.fromCode(pieceCode);\n final Color color = board.getPieceColorForCell(row, col);\n this.updateBoardWithPiece(row, col, pieceType, color);\n }\n }\n }", "title": "" }, { "docid": "a8de79e2c96151aa291c172bdbf35a71", "score": "0.61998445", "text": "void resetButtons()\n\t{\n\t\tfor(int i = 0; i< 9;i++) for(int j = 0;j<9;j++){\n\t\t\tsquares[i][j].setText(\"\");\n\t\t\tnumbers[i][j] = 0;\n\t\t}\n\t\twarn.setText(\"Input the sudoku using the buttons to select numbers\");\n\t}", "title": "" }, { "docid": "248698da90dfae8a477376a1fdbcb591", "score": "0.619868", "text": "private void clearPiecefromBoard(Piece p){\n\t\t\t// loop over the array\n\t\t\tfor (int i = 0; i<sideN;i++){\n\t\t\t\tfor (int j = 0; j<sideN;j++){\n\t\t\t\t\tif (piece_on_board[i][j]==p) remove(i,j);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}", "title": "" }, { "docid": "ee6d3cf9d72f6ce4f9541473bc7aae78", "score": "0.61886674", "text": "public void clear() {\n\t\tint size = this.nelems;\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tthis.remove(0);\n\t\t}\n\t}", "title": "" }, { "docid": "385ba2cde70563b633463da7e8809df4", "score": "0.61763436", "text": "public void clear_trap_squares() {\r\n for (int i = 0; i < 4; i++) {\r\n for (int c = 0; c < 2; c++) {\r\n if ((TRAP[i] & colour_bb[c]) != 0 &&\r\n (TOUCH_TRAP[i] & colour_bb[c]) == 0) {\r\n int pt = getPieceType(TRAP[i]);\r\n piece_bb[pt] &= ~TRAP[i];\r\n }\r\n }\r\n }\r\n\r\n compute_secondary_bitboards();\r\n }", "title": "" }, { "docid": "f6298d7426303245dfbf949c3bd32a96", "score": "0.6169267", "text": "public void clearExamGrid()\n\t{\n\t\tcalendar.setValue(null);\n\t\tbilirubinTextField.clear();\n\t\tcheckHBS.setSelected(false);\n\t\tcheckHCV.setSelected(false);\n\t\tmessageExamLabel.setText(\"\");\n\t}", "title": "" }, { "docid": "111f10f59fca9b6e9d98e6b9805dc908", "score": "0.6165401", "text": "void clear() {\n init(cols(), rows());\n }", "title": "" }, { "docid": "7130e9b389cf1f67292d6dcb5911fc52", "score": "0.6154241", "text": "public void clear()\n {\n this.isFilled = false;\n this.isRed = false;\n this.isHighlighted = false;\n }", "title": "" }, { "docid": "f223ae517cc17301860fa940da356249", "score": "0.6152414", "text": "public void clearAllCells() {\r\n\t\tfor (int i = 0; i < this.brailleCellNumber; i++) {\r\n\t\t\tthis.brailleList.get(i).clear();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4875b0c119c734a7d30f067d2736095e", "score": "0.6138876", "text": "public void removeAll() {\n for (final GraphicComponent c : getAllComponents())\n c.delete();\n Change.clear();\n }", "title": "" } ]
89d65fb09b93c0ef71a5716ab4a723db
This method removes the map from the cache if index information for this map is loaded(size>0), index information entry in cache will not be removed if it is in the loading phrase(size=0), this prevents corruption of totalMemoryUsed. It should be called when a map output on this tracker is discarded.
[ { "docid": "9ec493f44a32f969fcdc2d6e4dd9ef42", "score": "0.78577983", "text": "public void removeMap(String mapId) {\n IndexInformation info = cache.get(mapId);\n if (info == null || isUnderConstruction(info)) {\n return;\n }\n info = cache.remove(mapId);\n if (info != null) {\n totalMemoryUsed.addAndGet(-info.getSize());\n if (!queue.remove(mapId)) {\n LOG.warn(\"Map ID\" + mapId + \" not found in queue!!\");\n }\n } else {\n LOG.info(\"Map ID \" + mapId + \" not found in cache\");\n }\n }", "title": "" } ]
[ { "docid": "c5b9be2331b3a0ef0ff0f40eaa378f49", "score": "0.77104867", "text": "public void clear() {\n map.clear();\n cacheHitCont = 0;\n cacheMissCount = 0;\n }", "title": "" }, { "docid": "e924409db138cb31cfea804172fab45e", "score": "0.70912963", "text": "protected void clear() {\n map.clear();\n }", "title": "" }, { "docid": "9339743323d211dbbd472c017e07b7f1", "score": "0.6952867", "text": "public void clear() {\n map.clear();\n }", "title": "" }, { "docid": "9339743323d211dbbd472c017e07b7f1", "score": "0.6952867", "text": "public void clear() {\n map.clear();\n }", "title": "" }, { "docid": "a695efb8ad5ad91aa6e9ccb42d2adee0", "score": "0.68819636", "text": "public void clear() {\n\t\tmap.clear();\n\t}", "title": "" }, { "docid": "250d136e585b77194cf2dfc5d40a25b9", "score": "0.67089075", "text": "public void clear() {\r\n map = new HashMap<>();\r\n }", "title": "" }, { "docid": "3c6c972e876ca6c80657c3cef673d18b", "score": "0.66858184", "text": "@Override\n public void clearCache() {\n cacheMap.clear();\n strategyMap.clear();\n }", "title": "" }, { "docid": "6cc9fb261ae522a048cb1efe99de8a5e", "score": "0.6599213", "text": "public void remove() {\n\t\tcache.remove(cache.get(0));\n\t}", "title": "" }, { "docid": "894e62c5c3ff656e5b9b708a17647ebf", "score": "0.6583001", "text": "void unsetCacheHits();", "title": "" }, { "docid": "bf841aef1d01142b48f729f1e31df2b7", "score": "0.65713054", "text": "public void clear() {\r\n\t\titemCacheMap.clear();\r\n\t}", "title": "" }, { "docid": "10bcdd8fbf59ae9da736e7a86188eb03", "score": "0.6531475", "text": "public void clear() {\n\n mMap.clear();\n }", "title": "" }, { "docid": "f36baff5ba188eb7f618a94a8ecf3c9f", "score": "0.6433153", "text": "public void clear()\n {\n dataMap.clear();\n }", "title": "" }, { "docid": "d993decb70598987e7237f3dd9e6e8f3", "score": "0.63959694", "text": "@Override\n public void clear() {\n synchronized (this) {\n internalMap = new HashMap<K, V>();\n }\n }", "title": "" }, { "docid": "d30dbfce43aaf57c8bd3eb24ace68ba6", "score": "0.6365496", "text": "public void clearCache() {\n for (int i = 0; i < data_.length; i++) {\n data_[i] = null;\n rowIndexLookup_[i] = -1;\n }\n lastRowAccess_ = 0;\n lastRequiredFetchRowIndex_ = 0;\n writePositionIndex_ = 0;\n }", "title": "" }, { "docid": "5e323056326a9d5147b7b1a4ba2762a8", "score": "0.63616675", "text": "@Override\n protected boolean removeEldestEntry(Map.Entry eldest) {\n return size() > cacheSize;\n }", "title": "" }, { "docid": "62c2a6f72f978a947d9b8ee1b22e2d3e", "score": "0.6360662", "text": "void mapRemoved(MapPath mapPath);", "title": "" }, { "docid": "72db09354ac89dc6fb79608c128f86df", "score": "0.63396347", "text": "@Override\r\n\tpublic void moveEntriesToCache(String mapName) {\n\t\t\r\n\t}", "title": "" }, { "docid": "261dd16fb1f9ae8ccf954188cdfe98c5", "score": "0.63386166", "text": "public void clear() {\n dataMap.clear();\n }", "title": "" }, { "docid": "1a79109b79ad1ec8aa28b5eecb494eec", "score": "0.6306498", "text": "public synchronized void clear() {\n resultMap.clear();\n }", "title": "" }, { "docid": "9a6c06cd87173ef7e6f24e6a355d30c4", "score": "0.6305283", "text": "public final void Clear()\n {\n synchronized (this)\n {\n _cacheCleared = true;\n }\n synchronized (_status_mutex)\n {\n if (!getIsInProgress())\n {\n _mainIndex = new HashMap(25000, 0.7f);\n _transitoryIndex = new HashMap(25000, 0.7f);\n\n _transitoryIndexMaxCount = 0;\n _mainIndexMaxCount = 0;\n }\n else\n {\n _transitoryIndex = new HashMap(25000, 0.7f);\n _transitoryIndexMaxCount = 0;\n _indexCleared = true;\n }\n _expirationManagerSize = 0;\n }\n }", "title": "" }, { "docid": "e9d03d38bb359520558be8c3a00f70f4", "score": "0.62941295", "text": "public void clear() {\n mapTree.clear();\n }", "title": "" }, { "docid": "51cb77019d1803ba75c70642af9bcf38", "score": "0.6287939", "text": "public Boolean clear() {\r\n\t\tmap.clear();\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "abf71527e0e22f13d337b1cef9555f2b", "score": "0.62439585", "text": "public void clearCache();", "title": "" }, { "docid": "abf71527e0e22f13d337b1cef9555f2b", "score": "0.62439585", "text": "public void clearCache();", "title": "" }, { "docid": "0965d9d3b8693495bd7c5f96bd72e4e4", "score": "0.6190431", "text": "@Override\n public synchronized void clear() {\n mappings.clear();\n }", "title": "" }, { "docid": "205405a40eec5cdf3c3dd72589532378", "score": "0.618448", "text": "void clearCache();", "title": "" }, { "docid": "205405a40eec5cdf3c3dd72589532378", "score": "0.618448", "text": "void clearCache();", "title": "" }, { "docid": "205405a40eec5cdf3c3dd72589532378", "score": "0.618448", "text": "void clearCache();", "title": "" }, { "docid": "205405a40eec5cdf3c3dd72589532378", "score": "0.618448", "text": "void clearCache();", "title": "" }, { "docid": "a4cd45f6dc4b540d629b3f62dab0c72e", "score": "0.61727834", "text": "void cleanCachedVertexAddressMap();", "title": "" }, { "docid": "cc8f3404121768c31d3d939ee3477c50", "score": "0.6166091", "text": "protected abstract void clearCache();", "title": "" }, { "docid": "ae18a212bd3ef557c328e05c30bda54f", "score": "0.61516243", "text": "private synchronized void freeIndexInformation() {\n while (totalMemoryUsed.get() > totalMemoryAllowed) {\n String s = queue.remove();\n IndexInformation info = cache.remove(s);\n if (info != null) {\n totalMemoryUsed.addAndGet(-info.getSize());\n }\n }\n }", "title": "" }, { "docid": "9fc4ba82fd1721d0f9b928c8b4e67ca4", "score": "0.61494005", "text": "public void clear() {\n \t\t\tcache.clear();\n \t\t}", "title": "" }, { "docid": "95ee1ecc55f0a54fd1f53dc8297c4226", "score": "0.61279756", "text": "public void clearCache() {\n\t\ttempRadServiceMap.putAll(radServiceMap);\n\t\tisRadSrvcCacheRefreshed=false;\n\t\tradServiceMap.clear();\n\t}", "title": "" }, { "docid": "7afe18a697759d666298986a3624a2e8", "score": "0.6126701", "text": "public abstract boolean removeFromMap();", "title": "" }, { "docid": "52eb966dfe493f19a633ee507cbe06f8", "score": "0.60955304", "text": "public void onClearMap(View view) {\n\t\tif (!checkReady()) {\n\t\t\treturn;\n\t\t}\n\t\tmMap.clear();\n\t}", "title": "" }, { "docid": "aa5c0091881976a74a98660b74bb3cd2", "score": "0.6053366", "text": "@Override\r\n\tpublic int delete(Map map) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "cf2832a6a06c110c4cc3a55da2168953", "score": "0.60463595", "text": "public void clearDataMaps(String tableUniqName) {\n List<TableDataMap> tableIndices = allDataMaps.get(tableUniqName);\n if (tableIndices != null) {\n for (TableDataMap tableDataMap : tableIndices) {\n if (tableDataMap != null) {\n // clear the segmentMap in BlockletDetailsFetcher,else the Segment will remain in executor\n // and the query fails as we will check whether the blocklet contains in the index or not\n tableDataMap.getBlockletDetailsFetcher().clear();\n tableDataMap.clear();\n }\n }\n }\n allDataMaps.remove(tableUniqName);\n }", "title": "" }, { "docid": "d584ecdd225d9c93e22c4578ebc42796", "score": "0.60452414", "text": "void unsetCacheMisss();", "title": "" }, { "docid": "7900770283c8362ee16a796ee5ade12f", "score": "0.6044904", "text": "public void clear() {\n int n10 = this.count;\n if (n10 != 0) {\n this.lock();\n try {\n Object object;\n int n11;\n int n12;\n Object object2 = this.map;\n object2 = ((LocalCache)object2).ticker;\n long l10 = ((Ticker)object2).read();\n this.preWriteCleanup(l10);\n object2 = this.table;\n for (n12 = 0; n12 < (n11 = ((AtomicReferenceArray)object2).length()); ++n12) {\n object = ((AtomicReferenceArray)object2).get(n12);\n for (object = (ReferenceEntry)object; object != null; object = object.getNext()) {\n Object object3 = object.getValueReference();\n boolean bl2 = object3.isActive();\n if (!bl2) continue;\n Object object4 = object.getKey();\n object3 = object.getValueReference();\n Object object5 = object3.get();\n object3 = object4 != null && object5 != null ? RemovalCause.EXPLICIT : RemovalCause.COLLECTED;\n Object object6 = object3;\n int n13 = object.getHash();\n object3 = object.getValueReference();\n int n14 = object3.getWeight();\n this.enqueueNotification(object4, n13, object5, n14, (RemovalCause)((Object)object6));\n }\n }\n for (n12 = 0; n12 < (n11 = ((AtomicReferenceArray)object2).length()); ++n12) {\n n11 = 0;\n object = null;\n ((AtomicReferenceArray)object2).set(n12, null);\n }\n this.clearReferenceQueues();\n object2 = this.writeQueue;\n object2.clear();\n object2 = this.accessQueue;\n object2.clear();\n object2 = this.readCount;\n ((AtomicInteger)object2).set(0);\n this.modCount = n10 = this.modCount + 1;\n this.count = 0;\n }\n finally {\n this.unlock();\n this.postWriteCleanup();\n }\n }\n }", "title": "" }, { "docid": "53b38ac475232e222e2bf4e539eb5e00", "score": "0.6027645", "text": "private void clearCache() {\n }", "title": "" }, { "docid": "068b41671be3df863b469a952597babd", "score": "0.6018729", "text": "@Override\n public void clearCache() {\n }", "title": "" }, { "docid": "cf6014277d66af0224bc2d151b817617", "score": "0.60115", "text": "@Override\n\tprotected synchronized Object evict() {\n\t\tObject removed =null;\n\t\tfor (int i = 0; i < m_evictCount; i++) {\n\n if (!m_access.isEmpty()) {\n Object o = m_access.remove(0);\n removed =o;\n m_cacheMap.remove(o);\n }\n\n else if (!m_accessSeg.isEmpty()) {\n Object o = m_accessSeg.remove(0);\n removed=o;\n m_cacheMap.remove(o);\n }\n }\n\t\treturn removed;\n\t}", "title": "" }, { "docid": "ac5d3af0cfcd43ef57c0454eba6cad39", "score": "0.5996398", "text": "private synchronized void clearMapValue() {\n for (Integer id : interestedInMe.keySet()) {\n interestedInMe.put(id, 0);\n }\n }", "title": "" }, { "docid": "8c032ef8266d754bc38ee224004cca1f", "score": "0.59948355", "text": "public Builder clearMap() {\n map_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000010);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3c64a2d6f24d96a96e164b508af6d84b", "score": "0.59931743", "text": "public Builder clearMap() {\n map_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00001000);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c63ae9714d9c9e833fe7ffe22234daa7", "score": "0.59922916", "text": "public void clearCache() {\r\n \t\tcache.clear();\r\n \t}", "title": "" }, { "docid": "2b69c472ac28d5482b8e967052fd62de", "score": "0.5985779", "text": "public void clean() {\n final ReentrantLock lock = this.lock;\n lock.lock();\n try {\n int size = objMap.size();\n List<Entry<T, Long>> res = Helper.sortLong(objMap.entrySet());\n Iterator<Entry<T, Long>> iter = res.iterator();\n for (int i = size; i >= minSize; i--) {\n objMap.remove(iter.next().getKey());\n }\n } finally {\n lock.unlock();\n }\n }", "title": "" }, { "docid": "f2ff5557ac92b876706f54287f41b93b", "score": "0.5971598", "text": "protected void removeNodeFromMemory(final OMVRBTreeEntryPersistent<K, V> iNode) {\r\n\t\tif (iNode.record != null)\r\n\t\t\tcache.remove(iNode.record.getIdentity());\r\n\t\tif (iNode.getSize() > 0)\r\n\t\t\tentryPoints.remove(iNode.getKeyAt(0));\r\n\t}", "title": "" }, { "docid": "33f73881d10b6b544ee9a2decc5de278", "score": "0.59645474", "text": "@Override\n\tpublic void clearCache()\n\t{\n\t}", "title": "" }, { "docid": "9a4d1779e51f35ed630f5dac80581d2f", "score": "0.5963569", "text": "public void clearCachedData() {}", "title": "" }, { "docid": "c4d3f84bc94a2f103013c5e8f49b25d3", "score": "0.59571296", "text": "protected void clearKeyCache() {\n key_position_cache.clear();\n }", "title": "" }, { "docid": "785fb816daeaeca5208a83f932ba829e", "score": "0.5954585", "text": "public void remove(int key) {\n\t\tint hashKey = HashUtilities.shortHash(key);\n\t\tif (mapArray[hashKey] != null) {\n\t\t\tmapArray[hashKey] = null;\n\t\t}\n\t}", "title": "" }, { "docid": "05d4e52e6c27a4bd27b6eabd914c47af", "score": "0.595281", "text": "public void clear() {\r\n\t\tmap = new ArrayList<Bucket>(numBuckets);\r\n\t\tfor (int i = 0; i < numBuckets; i++) {\r\n\t\t\tmap.add(i, new Bucket(null, null));\r\n\t\t}\r\n\t\tthis.size = 0;\r\n\t\tthis.retKeySet = new HashSet<K>();\r\n\t}", "title": "" }, { "docid": "c058f5ae924ae5d990b8326c26a244a0", "score": "0.5944628", "text": "public void clearMaps()\n\t{\n\t\teditorsListMap.clear();\n\t\treadOnlyEditorsListMap.clear();\n\t}", "title": "" }, { "docid": "826cfbd1c40f2a66e8bfca94dfb21209", "score": "0.5900435", "text": "private void doEviction() {\n long currentTime = System.currentTimeMillis();\n synchronized (cacheMap) {\n for (Iterator<Map.Entry<K, ValueHolder>> it = cacheMap.entrySet().iterator(); it.hasNext();) {\n ValueHolder vh = it.next().getValue();\n if (vh != null && currentTime > (timeToLive + vh.created)) {\n it.remove();\n }\n }\n }\n }", "title": "" }, { "docid": "816f519792cf2aba029d1de8412e34ae", "score": "0.5895582", "text": "public void clear() {\r\n\t\tcaches.clear();\r\n\t}", "title": "" }, { "docid": "b597cb470b0f26a49d679ca15e1839d6", "score": "0.5890925", "text": "public void clear() {\n\t\tentityMap.clear();\n\t}", "title": "" }, { "docid": "6e01aa11632134e8aabde5d1e31fa584", "score": "0.58901376", "text": "public void mo81237a() {\n HashMap hashMap = this.f57929f;\n if (hashMap != null) {\n hashMap.clear();\n }\n }", "title": "" }, { "docid": "b6ce4880052f9ccb269463d943d84fd1", "score": "0.5874376", "text": "public void clear()\n {\n for (int i = 0; i < this.arrayMap.length; i++)\n {\n arrayMap[i] = null;\n }\n\n }", "title": "" }, { "docid": "9312cba158f5dc5c05c5a130e05e2458", "score": "0.58437717", "text": "<K, V> void onRemove( ConcurrentLinkedHashMap<K, V> map, Node<K, V> node )\n {\n node.setValue( null );\n }", "title": "" }, { "docid": "3a83cf1a3fb93e300cece63483bef0d6", "score": "0.58265615", "text": "public void clearCaches() {\n\n }", "title": "" }, { "docid": "540e15b0d15f20977efd48545bea6c99", "score": "0.58076316", "text": "public void remove(String key)\n {\n if(calcLoad() <= 0.4)\n {\n resize();\n }\n int index = hash(key);\n int step = probeHash(key);\n if(m_hashTable[index].key.equals(key))\n {\n m_hashTable[index].key = \"\";\n m_hashTable[index].value = null;\n m_hashTable[index].empty = true;\n size--;\n }\n else\n {\n removeLinearProbing(index, key, step);\n }\n }", "title": "" }, { "docid": "79a690a305e7f77858f3ffe1524962dd", "score": "0.5803732", "text": "@Override\n public void onMapLoaded() {\n mMap.snapshot(new GoogleMap.SnapshotReadyCallback() {\n @Override\n public void onSnapshotReady(Bitmap bitmap) {\n //Getting Map as Bitmap\n mapBitmap = bitmap;\n\n // If map won't be used afterwards, remove it's views\n// ((FrameLayout)findViewById(R.id.map)).removeAllViews();\n }\n });\n }", "title": "" }, { "docid": "288089804106cdc152abdc9aae1015f6", "score": "0.5801092", "text": "@Override\n public void clearCache() throws IOException {\n for(String key : index()) {\n cache.replace(key, cache.get(key), null); // Concurrent-safe set all values to null but don't remove any keys\n }\n forEachDownstreamMirrorService(service -> service.clearCache()); // Downstream caches will clear synchronously\n Async.d(TAG, \"Cache cleared\");\n }", "title": "" }, { "docid": "6b533651d1bde4fed504518b4fefd476", "score": "0.5796555", "text": "public void mo109263c() {\n HashMap hashMap = this.f88037p;\n if (hashMap != null) {\n hashMap.clear();\n }\n }", "title": "" }, { "docid": "73cf8884b767444164134dbc4486fcc3", "score": "0.5793278", "text": "public synchronized void clear() {\n for (Entry e : mCache) {\n if (e.mBitmap != null) {\n e.mBitmap.recycle();\n }\n e.clear();\n }\n }", "title": "" }, { "docid": "75e6f8c8fce323d86611f975670c2c77", "score": "0.5791769", "text": "public void clearCache() {\n mCache = createLruCache();\n }", "title": "" }, { "docid": "a46054c553c0c5dd6ad2ef9e64e34c76", "score": "0.5778013", "text": "public void mapCleared(MapEvent arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "ecab81c582d52e356fe1a99443d6fe13", "score": "0.57719874", "text": "protected void flushCache() {\n // System.out.println(\"flushing cache\");\n CacheManager.remove(dataCacheKey);\n }", "title": "" }, { "docid": "6fafa957a6499f7dfb47cea258cb7b4b", "score": "0.57710105", "text": "public void clear () {\n\tArrayList<FiledKey<K>> ls;\n\tw.lock ();\n\ttry {\n\t ls = new ArrayList<FiledKey<K>> (htab.keySet ());\n\t for (FiledKey<K> k : ls)\n\t\tremove (k.getData ());\n\t vec.clear (); // just to be safe.\n\t currentSize = 0;\n\t changed = true;\n\t} finally {\n\t w.unlock ();\n\t}\n }", "title": "" }, { "docid": "c2b944bed458dc80d49d0b8121324c94", "score": "0.57651716", "text": "public static void invalidateCache()\n {\n classCache = new HashMap();\n }", "title": "" }, { "docid": "343e7c775be5ff04463a4b054b533b4b", "score": "0.5760586", "text": "@Override\n public void clear() {\n rowMap.clear();\n }", "title": "" }, { "docid": "da9aa451db45f2d56bc300bfdd44a48c", "score": "0.576038", "text": "public void clearCache() {\r\n\t\tcache = new IUSingleLinkedList<T>();\r\n\t\tsize = 0;\r\n\r\n\t}", "title": "" }, { "docid": "9ef62a7e590bb13e1908eaac5ace37b5", "score": "0.5758183", "text": "public void clean() {\n for (Pair<String,String> e : geoCache) {\n if (!checkGoodStatus(e.first(), e.last())) continue;\n }\n \t}", "title": "" }, { "docid": "d3598bc15d3e8076becf2c4c7b2b9c03", "score": "0.57499933", "text": "public void remove_google_route(){\n if( google_route != null) {\n google_route.remove();\n }\n if(my_google_stats != null) {\n my_google_stats.remove();\n }\n// map.clear();\n }", "title": "" }, { "docid": "2a549c10ff10291c6349c02e788c2fdb", "score": "0.5743136", "text": "public void removeFromCache(String key) {\r\n \t\tcache.remove(key);\r\n \t}", "title": "" }, { "docid": "fc8df594e09bc622d155b266448d4577", "score": "0.57334656", "text": "@Override\n public void deleteObject(K key) {\n if(containsKey(key)) {\n cacheMap.remove(key);\n strategyMap.remove(key);\n }\n }", "title": "" }, { "docid": "f56b9f611293fec4a2d1930b8e05b78b", "score": "0.57308877", "text": "protected void removeNodeFromCache(final ORID iRid) {\r\n\t\tcache.remove(iRid);\r\n\t}", "title": "" }, { "docid": "b7e529c74b5a620d456104e507836dfe", "score": "0.5728194", "text": "private void loadCache(TObjectFloatHashMap<IntPair> simMap) {\n cache.invalidateAll();\n cache.cleanUp();\n simMap.forEachEntry(new TObjectFloatProcedure<IntPair>() { // fast iteration over map\n @Override\n public boolean execute(IntPair pair, float sim) {\n cache.put(pair, sim);\n return true;\n }\n });\n }", "title": "" }, { "docid": "357bb1f671a351ca53ef4dab45546031", "score": "0.57279086", "text": "@Override\n \t\t\t\tprotected boolean removeEldestEntry(Map.Entry<Long, double[]> eldest) {\n \t\t\t\t\treturn size() > cacheSize;\n \t\t\t\t}", "title": "" }, { "docid": "3ebc131eba212ccc4713ec7be6ca2ab3", "score": "0.5724147", "text": "@Override\r\n public void remove(E element) {\r\n if (map.contains(element)) {\r\n map.remove(element);\r\n }\r\n }", "title": "" }, { "docid": "01c5a70353cee3f0f75c9532726d62d1", "score": "0.572092", "text": "public void clearCache() {\n sHardBitmapCache.clear();\n sSoftBitmapCache.clear();\n }", "title": "" }, { "docid": "0a7533aee731b63319417408edcca560", "score": "0.57154036", "text": "public void clearMaps() throws VisADException, RemoteException {\n if (IsRemote) clearMapsClone(true);\n else if (hasMappings()) {\n VDisplay.removeAllReferences();\n VDisplay.clearMaps();\n HasMappings = false;\n }\n }", "title": "" }, { "docid": "ee1ad8dfccd74ab7edd01a669125ebb6", "score": "0.5686533", "text": "public void clear() {\n regionsMap.clear();\n encodedRegionsMap.clear();\n regionInTransition.clear();\n regionOffline.clear();\n serverMap.clear();\n }", "title": "" }, { "docid": "d85cc6e0688c02b2a6697fe1574c0cd0", "score": "0.56835514", "text": "public void clear(){\n //Clear all lists\n for(List<Val> listIter : map.values()){\n listIter.clear();\n }\n\n //Clear the map\n map.clear();\n }", "title": "" }, { "docid": "b0c60f9e31e81030aa737f24b9c6256e", "score": "0.5681242", "text": "private void cleanup() {\r\n for (Map.Entry<K, ValueContainer> entry : cache.entrySet()) {\r\n if (entry.getValue().createdTimestamp + entry.getValue().exp < System.currentTimeMillis()) {\r\n cache.remove(entry.getKey());\r\n }\r\n }\r\n }", "title": "" }, { "docid": "dbf1212c2fd0de1a043f04e8b78f15e6", "score": "0.56711864", "text": "public void clear() {\r\n\t\tentrySet.clear();\r\n\t}", "title": "" }, { "docid": "1f3e2cf8574fe7164ca9e551ee6d7677", "score": "0.56699556", "text": "public static void flushCaches() {\n // Flush the cache by throwing away the cache HashMap and creating a\n // new empty one\n theCache.clear();\n }", "title": "" }, { "docid": "21f16a092061d5661f664368c2e0809d", "score": "0.5666914", "text": "@Override\n public void freeSpace() {\n K objectToDelete = (K)this.strategyType.getKeyForSubstitution();\n log.info(\"Object with key % will be deleted from cache according to substitution strategy %s\", objectToDelete,\n strategyType.getClass().getSimpleName());\n deleteObject(objectToDelete);\n }", "title": "" }, { "docid": "f66cbd52a4f3532fb540a3d3b920a57c", "score": "0.5648743", "text": "public void clear() {\n metricsMap.clear();\n statistics.clear();\n }", "title": "" }, { "docid": "2d89abbca96b3db0072c1b4a115bd688", "score": "0.5645562", "text": "abstract <K, V> boolean onEvict( ConcurrentLinkedHashMap<K, V> map, Node<K, V> node );", "title": "" }, { "docid": "9159e499d3fa00ca122a7b0ff8fff731", "score": "0.5637287", "text": "public void removeMapRecord(MapRecord mapRecord);", "title": "" }, { "docid": "e57b552f6cd6bb2ebb63718f08698659", "score": "0.563152", "text": "@Override\n protected void removeCache ()\n {\n super.removeCache ();\n removeConvertedFile ();\n }", "title": "" }, { "docid": "3d1281341064e1e6d7f0b5ed47b7dad0", "score": "0.5628605", "text": "public void clearCache() {\n logger.info(\"Going to clear cache...\");\n synchronized (existingLocalesLock) {\n existingLocales = null;\n }\n translationsCache.clear();\n }", "title": "" }, { "docid": "fe19269cc8b007da9489981461e12b33", "score": "0.5624993", "text": "public void removeFromCache() {\n fElements = null;\n fMethodCache.remove(getMethodCall().getKey());\n }", "title": "" }, { "docid": "f1fb7868d3d5bc386ed5ae3eaaf0e8dc", "score": "0.5616555", "text": "public synchronized void clearMap(String IPAddress) {\r\n\tuserMap.remove(IPAddress);\r\n}", "title": "" }, { "docid": "34ccd0280a7e1dd3c9549892da8c0780", "score": "0.56124496", "text": "void unsetMapping();", "title": "" }, { "docid": "75f73ceb01ff759c3d29bc99902468d3", "score": "0.56080264", "text": "public void remove(String key){\n cache.remove(key);\n }", "title": "" }, { "docid": "96367540c96da2cea2645e1ca8a838a8", "score": "0.55949676", "text": "@Override\n public void clear() {\n list = new LinkedList<>();\n map = new ConcurrentHashMap<>();\n }", "title": "" } ]
6098fdb54f61a9ea66702a9aeaba9f08
Return true if the supplied Map is null or empty. Otherwise, return false.
[ { "docid": "5cc07f83c84ef748c3c6f9268ec162fc", "score": "0.8324061", "text": "public static boolean isEmpty(Map<?, ?> map) {\n return (map == null || map.isEmpty());\n }", "title": "" } ]
[ { "docid": "ce3f18ef26e112a8c2805e678208b013", "score": "0.84898627", "text": "public static boolean isNotEmpty(Map<?, ?> map) {\r\n return map != null && !map.isEmpty();\r\n }", "title": "" }, { "docid": "d5727dc73755ad5635ec305bcee64980", "score": "0.8462528", "text": "public static boolean isEmpty(Map map)\r\n/* 26: */ {\r\n/* 27: 61 */ return (map == null) || (map.isEmpty());\r\n/* 28: */ }", "title": "" }, { "docid": "4822599394b9d18c70e71f48a4b9bd47", "score": "0.8417359", "text": "public static boolean isEmpty(Map<?, ?> map) {\r\n return map == null || map.isEmpty();\r\n }", "title": "" }, { "docid": "6d6895448e735d7e72ca6c0db3a726f3", "score": "0.83720714", "text": "public static boolean isEmpty(Map<?, ?> map) {\n return ((map == null) || map.isEmpty());\n }", "title": "" }, { "docid": "a7d9f736ba0aa5c83096b027db908048", "score": "0.83159894", "text": "public static boolean isEmpty(Map<?, ?> map) {\n\t\treturn (map == null || map.isEmpty());\n\t}", "title": "" }, { "docid": "a7d9f736ba0aa5c83096b027db908048", "score": "0.83159894", "text": "public static boolean isEmpty(Map<?, ?> map) {\n\t\treturn (map == null || map.isEmpty());\n\t}", "title": "" }, { "docid": "694571f83cba9e9e8978cfbc95d42147", "score": "0.8111782", "text": "public static boolean isNotEmpty(Map<?, ?> map) {\n return !isEmpty(map);\n }", "title": "" }, { "docid": "7f0449248762c5c76d851e86a926a620", "score": "0.8000682", "text": "public static <K, V> boolean m40630a(Map<K, V> map) {\n return map == null || map.isEmpty();\n }", "title": "" }, { "docid": "35a5e4566bbe1b085affcec9e273a3ee", "score": "0.78271145", "text": "public boolean isEmpty()\n\t{\n\t\treturn map.isEmpty();\n\t}", "title": "" }, { "docid": "4afb814a7667eb608b38acfc8d2862e3", "score": "0.7733958", "text": "@Override\n public boolean isEmpty() {\n return map.isEmpty();\n }", "title": "" }, { "docid": "f9c303b5d2765afa66ce9b4cc07ddb20", "score": "0.76921934", "text": "public boolean isEmpty() {\n return this.map.isEmpty();\n }", "title": "" }, { "docid": "684f4b2e7cf31b6fa8daf43ff1d7f591", "score": "0.76654077", "text": "public boolean isEmpty()\r\n/* 318: */ {\r\n/* 319:437 */ return this.map.isEmpty();\r\n/* 320: */ }", "title": "" }, { "docid": "0444111539ab6cf225d2b8871bb804f4", "score": "0.7630644", "text": "public static boolean checkNotEmpty(Map<?, ?> value) {\n\t\treturn checkNotNull(value) && !value.isEmpty();\n\t}", "title": "" }, { "docid": "f271afb8e98f8cfa0d1d682e6e2a0dcc", "score": "0.76239437", "text": "public static boolean isNotEmpty(final Map<?, ?> val) {\r\n\t\treturn !CommonUtils.isEmpty(val);\r\n\t}", "title": "" }, { "docid": "0b6209cdc0bfa4d4b19e27e0e817c017", "score": "0.757361", "text": "@SuppressWarnings(\"rawtypes\")\r\n\tpublic static boolean isEmpty(final Map val) {\r\n\t\treturn (val == null || (val.size() == 0));\r\n\t}", "title": "" }, { "docid": "789450542d946aedbc895ceb8e27afab", "score": "0.7563863", "text": "public static boolean m2862a(Map map) {\n return map == null || map.size() == 0;\n }", "title": "" }, { "docid": "aa55e1acd6a504385427a9782dd2f599", "score": "0.7450592", "text": "public boolean isEmpty() {\r\n return getMap().isEmpty();\r\n }", "title": "" }, { "docid": "e9a2fa7039fc621ca03f4e0617b7578c", "score": "0.74447274", "text": "public static boolean method_946(Map var0) {\n return var0 == null || var0.isEmpty();\n }", "title": "" }, { "docid": "5fa7075f135ba594f80da03a6d27805b", "score": "0.7305681", "text": "static void assertNullOrEmpty(Map m) {\n assertTrue(m == null || m.isEmpty());\n }", "title": "" }, { "docid": "269762be377ce9c5a39fd2ee574d9f84", "score": "0.72999614", "text": "boolean hasMap();", "title": "" }, { "docid": "269762be377ce9c5a39fd2ee574d9f84", "score": "0.72999614", "text": "boolean hasMap();", "title": "" }, { "docid": "269762be377ce9c5a39fd2ee574d9f84", "score": "0.72999614", "text": "boolean hasMap();", "title": "" }, { "docid": "269762be377ce9c5a39fd2ee574d9f84", "score": "0.72999614", "text": "boolean hasMap();", "title": "" }, { "docid": "269762be377ce9c5a39fd2ee574d9f84", "score": "0.72999614", "text": "boolean hasMap();", "title": "" }, { "docid": "549e492b4585116fcf3d8487d2eea521", "score": "0.72498155", "text": "public boolean isEmpty() {\n unparcel();\n return mMap.isEmpty();\n }", "title": "" }, { "docid": "62bab4e17ca186cc9e53f5deded8ee6e", "score": "0.7103037", "text": "public boolean isEmpty()\r\n \t{\r\n \t\treturn mappings.isEmpty();\r\n \t}", "title": "" }, { "docid": "1835a574322e40074c6a12e3b56a2ced", "score": "0.70134634", "text": "public AssertMaps<T, H> isNotEmpty() {\n return isNotEmpty((expected, actual, history) -> {\n history.setExpectedForHistory(\"<Not Empty>\");\n return !getActual().isEmpty();\n });\n }", "title": "" }, { "docid": "4006a0eded4e94eff79a56a2d6e58caf", "score": "0.6847127", "text": "public boolean hasMap() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" }, { "docid": "34f67ff9a94e2825480523d5cdc3a4d9", "score": "0.68281335", "text": "public boolean hasMap() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" }, { "docid": "22bf763430e806ef185abb7f1476c0e9", "score": "0.6810452", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\treturn this.querySet.keySet().size() == 0;\n\t}", "title": "" }, { "docid": "18128407cf33697f5e55eaf4f08e9777", "score": "0.67756313", "text": "public boolean isEmpty() {\n\t\treturn adjacencyMap.isEmpty();\n\t}", "title": "" }, { "docid": "9365ab23f5718eb6b83da4f769a82b75", "score": "0.67749727", "text": "public boolean hasMap() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "9365ab23f5718eb6b83da4f769a82b75", "score": "0.6773478", "text": "public boolean hasMap() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "9365ab23f5718eb6b83da4f769a82b75", "score": "0.6773478", "text": "public boolean hasMap() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "87aaaef50b04c44a6d269750aaa95147", "score": "0.6757107", "text": "public boolean hasMap() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "87aaaef50b04c44a6d269750aaa95147", "score": "0.6757107", "text": "public boolean hasMap() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "87aaaef50b04c44a6d269750aaa95147", "score": "0.6756735", "text": "public boolean hasMap() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "e696f03ec1b604e794e3cc4b4b2d4f36", "score": "0.6658646", "text": "public boolean isEmpty() {\n return keyed.isEmpty();\n }", "title": "" }, { "docid": "03ed9d422436efee2d84ff90241a4423", "score": "0.66056865", "text": "public AssertMaps<T, H> isEmpty() {\n return isEmpty((expected, actual, history) -> {\n history.setExpectedForHistory(\"\");\n return getActual().isEmpty();\n });\n }", "title": "" }, { "docid": "1cff16b199674901a7159530945c505b", "score": "0.65891886", "text": "private boolean isEmpty(Point p) {\n if (inBounds(p)) {\n Entity e = map[p.x][p.y];\n return e == null;\n } else {\n // Out of bounds is not empty\n return false;\n }\n }", "title": "" }, { "docid": "2d092b453ed3f0a7d724c38c77a84416", "score": "0.6542869", "text": "boolean hasEmptyValue();", "title": "" }, { "docid": "2d092b453ed3f0a7d724c38c77a84416", "score": "0.6542869", "text": "boolean hasEmptyValue();", "title": "" }, { "docid": "2d092b453ed3f0a7d724c38c77a84416", "score": "0.6542869", "text": "boolean hasEmptyValue();", "title": "" }, { "docid": "a614f301ae6bf4a51ea1c7fd2a0c7e55", "score": "0.65324306", "text": "public boolean hasMap() {\n return googleMap != NO_MAP_PROVIDED;\n }", "title": "" }, { "docid": "049b0feecd5f016c1c25f0f602c91474", "score": "0.65158534", "text": "boolean hasEmpty();", "title": "" }, { "docid": "049b0feecd5f016c1c25f0f602c91474", "score": "0.65158534", "text": "boolean hasEmpty();", "title": "" }, { "docid": "049b0feecd5f016c1c25f0f602c91474", "score": "0.6515703", "text": "boolean hasEmpty();", "title": "" }, { "docid": "7336b5382609c9832044adf526cb6fc4", "score": "0.65130955", "text": "public boolean hasMap() {\n return typeCase_ == 19;\n }", "title": "" }, { "docid": "077347bb70f76e4fdcc0ac50b6855e04", "score": "0.6504333", "text": "public boolean hasMap() {\n return typeCase_ == 19;\n }", "title": "" }, { "docid": "60e273ca789ab3e8e7a87fdf8fec759b", "score": "0.6445135", "text": "public boolean isSetExtraMap() {\n return this.extraMap != null;\n }", "title": "" }, { "docid": "9a63fa39bb98207b342dd5756497eb64", "score": "0.6430829", "text": "public boolean isSetPlot_map() {\n return this.plot_map != null;\n }", "title": "" }, { "docid": "b37a2f47969e47ceb583d1914d654398", "score": "0.6425343", "text": "public boolean isEmpty(){\n\t\tIterator<String> iter = week.keySet().iterator();\n\t\twhile(iter.hasNext()){\n\t\t\tif (!week.get(iter.next()).isEmpty()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\n\t}", "title": "" }, { "docid": "ab105837fb6e06ecc43ee8796fed05fb", "score": "0.6420493", "text": "public boolean isSetKeyValueMaps() {\n return this.KeyValueMaps != null;\n }", "title": "" }, { "docid": "3115be18b0eb2a5981b64ccad13f8ff1", "score": "0.63940525", "text": "public boolean isEmpty() {\n\t\treturn m.isEmpty();\n\t}", "title": "" }, { "docid": "b2aefe2332cf31660f9eb917d09f7541", "score": "0.635857", "text": "@CheckNoWriter @CheckNoStats\n @Test(dataProvider = \"caches\")\n @CacheSpec(removalListener = { Listener.DEFAULT, Listener.REJECTING })\n public void isEmpty(Map<Integer, Integer> map, CacheContext context) {\n assertThat(map.isEmpty(), is(context.original().isEmpty()));\n if (map.isEmpty()) {\n assertThat(map, is(emptyMap()));\n }\n }", "title": "" }, { "docid": "51d7d4302c2002d33ec8d6f3bf2f0f6c", "score": "0.6317522", "text": "public boolean isEmpty() {\n return rawProperties == null || rawProperties.isEmpty();\n }", "title": "" }, { "docid": "20303c8b730f49f104fdfdb93e4fc8a8", "score": "0.62907964", "text": "@java.lang.Override\n public boolean containsSpMap(\n java.lang.String key) {\n if (key == null) { throw new NullPointerException(\"map key\"); }\n return internalGetSpMap().getMap().containsKey(key);\n }", "title": "" }, { "docid": "5fd1ff0fc49435a96681a5fce94bf9db", "score": "0.62696964", "text": "@Override\n public boolean isEmpty() {\n return criterionEntries.isEmpty() && orderEntries.isEmpty() && Objects.isNull(perPage) && Objects.isNull(count)\n && Objects.isNull(facetCount) && Objects.isNull(resourceSettings) && inclusionEntries.isEmpty() && fieldsEntries.isEmpty()\n && Objects.isNull(lang)\n && !this.getActive().isPresent()\n && !this.getAvailable().isPresent()\n && this.intersectCriterias.isEmpty();\n }", "title": "" }, { "docid": "a38d5aa65e36c9e07958150346ba0f2e", "score": "0.62648565", "text": "public synchronized boolean equals(Object o) {\n if (o == this)\n return true;\n\n if (!(o instanceof Map))\n return false;\n Map t = (Map) o;\n if (t.size() != size())\n return false;\n\n try {\n Iterator i = entrySet().iterator();\n while (i.hasNext()) {\n Map.Entry e = (Map.Entry) i.next();\n Object key = e.getKey();\n Object value = e.getValue();\n if (value == null) {\n if (!(t.get(key)==null && t.containsKey(key)))\n return false;\n } else {\n if (value != (t.get(key)))\n return false;\n }\n }\n } catch(ClassCastException unused) {\n return false;\n } catch(NullPointerException unused) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "7e5d13e493f9c0f647972d755d17bdce", "score": "0.62605464", "text": "private boolean containsNullValue()\r\n\t{\r\n\t\tEntry tab[] = table;\r\n\t\tfor (int i = 0; i < tab.length; i++)\r\n\t\t{\r\n\t\t\tfor (Entry e = tab[i]; e != null; e = e.next)\r\n\t\t\t{\r\n\t\t\t\tif (e.value == null)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "dedaa70e198c4bb2fc57bdadae1ed030", "score": "0.6245586", "text": "@java.lang.Override\n public boolean containsSpMap(\n java.lang.String key) {\n if (key == null) { throw new NullPointerException(\"map key\"); }\n return internalGetSpMap().getMap().containsKey(key);\n }", "title": "" }, { "docid": "39bcb0bd2c6b1015266982a900a8b6e6", "score": "0.6241604", "text": "public boolean isEmpty() {\n\t\treturn (tile.getAnimal() == null);\n\t}", "title": "" }, { "docid": "a7a708555d1241a90fba7f893d347c6f", "score": "0.6219991", "text": "boolean hasIsNull();", "title": "" }, { "docid": "65eba1f5d059b9a0aef200b85ea68e9d", "score": "0.6207008", "text": "public boolean hasGameMap() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "title": "" }, { "docid": "0993f095b2bdf23a8d185d8d3c774f2a", "score": "0.6203201", "text": "public boolean isEmpty() {\n\t\treturn params.isEmpty();\n\t}", "title": "" }, { "docid": "a975a81247cbb03e908c4b16ed5469ad", "score": "0.6201383", "text": "public boolean isEmpty() {\n return message.getAllFields().isEmpty() && message.getUnknownFields().asMap().isEmpty();\n }", "title": "" }, { "docid": "21be6e4c8ccf1b46b3771d71e29ee06e", "score": "0.6185354", "text": "@CheckNoWriter @CheckNoStats\n @Test(dataProvider = \"caches\")\n @CacheSpec(removalListener = { Listener.DEFAULT, Listener.REJECTING })\n public void equals_null(Map<Integer, Integer> map, CacheContext context) {\n assertThat(map.equals(null), is(false));\n }", "title": "" }, { "docid": "eff7ff1998f49f0a553a477603306311", "score": "0.6178712", "text": "public boolean hasGameMap() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "title": "" }, { "docid": "7070289e4d085d00ae668b5949fac5be", "score": "0.6177005", "text": "public boolean hasGameMap() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "title": "" }, { "docid": "b3ab89e98fc009fee242aee8acd519ae", "score": "0.61609733", "text": "public boolean isEmpty() {\n return entries.isEmpty();\n }", "title": "" }, { "docid": "20956d84e422f95912d6c8fe10279822", "score": "0.6150265", "text": "public boolean hasGameMap() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "title": "" }, { "docid": "4563b7134f7e8f7d5f9732eb7b22a6d1", "score": "0.6131289", "text": "private boolean isFullListOfSocial(Map<String, String> social_names){\n Boolean full = true;\n for (String key : keys){\n if(social_names.get(key).isEmpty()){\n full = false;\n break;\n }\n }\n\n return full;\n }", "title": "" }, { "docid": "1122c589f372bc738565fab7f7b032bb", "score": "0.6125949", "text": "boolean hasIgnoreEmpty();", "title": "" }, { "docid": "a769141b1a5cbc396e96100cafd4ffde", "score": "0.6120211", "text": "public boolean isEmpty() {\n\t\t// is the set empty?\n\t\treturn points.isEmpty();\n\t}", "title": "" }, { "docid": "494d630d1e3623349cf5faa9401dccf1", "score": "0.61154807", "text": "public boolean IsEmpty(){\n\t\treturn Size() == 0;\r\n\t}", "title": "" }, { "docid": "494841c32936c9bff1433e5f321950f1", "score": "0.60975134", "text": "public boolean empty() {\n return values.isEmpty();\n }", "title": "" }, { "docid": "f40a9151ec60cfacd30ea8872e351d6e", "score": "0.60781527", "text": "public boolean nonEmpty()\n {\n return ptr != null;\n }", "title": "" }, { "docid": "4ce10836ad7d26f96e42e8f77d3e411c", "score": "0.6077811", "text": "@java.lang.Override\n public boolean containsSsMap(\n java.lang.String key) {\n if (key == null) { throw new NullPointerException(\"map key\"); }\n return internalGetSsMap().getMap().containsKey(key);\n }", "title": "" }, { "docid": "1fb116f2045a111c471a84b26f6fd408", "score": "0.60723066", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\treturn locations.isEmpty();\n\t}", "title": "" }, { "docid": "90b0cea9ab620ef2e58c87f49c148b47", "score": "0.6062518", "text": "public boolean isSetColValMap() {\n return this.colValMap != null;\n }", "title": "" }, { "docid": "214f917dd760c18ae3632a8da1081b98", "score": "0.606187", "text": "@java.lang.Override\n public boolean containsPerQuery(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n return internalGetPerQuery().getMap().containsKey(key);\n }", "title": "" }, { "docid": "898c194aa13bb32c1d61a3e821994388", "score": "0.60534203", "text": "public boolean isEmpty(){\n\t\treturn (first == null && last == null);\n\t}", "title": "" }, { "docid": "ad2274532c019d44e41f2a2c2b68c007", "score": "0.60398924", "text": "public boolean isEmpty() {\n\t\treturn pointSet.isEmpty();\n\t}", "title": "" }, { "docid": "59f554ccb142728fcf5eab3432171632", "score": "0.60184914", "text": "@java.lang.Override\n public boolean containsSsMap(\n java.lang.String key) {\n if (key == null) { throw new NullPointerException(\"map key\"); }\n return internalGetSsMap().getMap().containsKey(key);\n }", "title": "" }, { "docid": "cd4455d1be3150c7706429a8cb94da24", "score": "0.6017798", "text": "public boolean isEmpty() {\n return value.length == 0;\n }", "title": "" }, { "docid": "fba1f9dbf7f7d123d4f82a22f0e2c118", "score": "0.6016788", "text": "public boolean isEmpty() {\r\n return first == null && last == null && size == 0;\r\n }", "title": "" }, { "docid": "90ab7c678f9b2133fca82625d285fc71", "score": "0.6016757", "text": "public boolean isEmpty()\n {\n // boolean isEmpty = true;\n for(Object o : elements)\n {\n if(o != null)\n {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "9ed5fdc745735ab2e597bd5789cffe76", "score": "0.5990612", "text": "public boolean IsEmpty() {\r\n if(streetNo == 0) {\r\n if(streetName.equals(\"\")) {\r\n if(suburb.equals(\"\")) {\r\n if(postcode == 0) {\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n return false; \r\n }", "title": "" }, { "docid": "488bd64ebdb2af9c349e735c2d595709", "score": "0.59900475", "text": "@java.lang.Override\n public boolean containsPerQuery(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n return internalGetPerQuery().getMap().containsKey(key);\n }", "title": "" }, { "docid": "126980c6c526c9bc068419424356019f", "score": "0.5989362", "text": "public boolean isEmpty() {\r\n\t\treturn data.isEmpty();\r\n\t}", "title": "" }, { "docid": "a2d430e6f6b428eb5b81d21eb81be88a", "score": "0.59877896", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\treturn numberOfEntries == 0;\n\t}", "title": "" }, { "docid": "7eaf311c1f5c9ee4b449de015cb59d47", "score": "0.59875166", "text": "public boolean hasDataMap(DataMap dm) {\r\n // Make sure this datamap isn't already there\r\n return dataMaps.containsKey(dm.getId());\r\n }", "title": "" }, { "docid": "29437c027444fd2b935fdc29d9b1a403", "score": "0.59836257", "text": "public boolean isEmpty() {\n return this.getValue().isEmpty();\n }", "title": "" }, { "docid": "737bb112d17d4101efccd3725dcbbc3e", "score": "0.59784806", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\t\n\t\treturn numberOfEntries == 0;\t\n\t}", "title": "" }, { "docid": "8f48aacee847b070e8adbad87ed6dc99", "score": "0.5978435", "text": "public boolean isEmpty() {\n\t\treturn points.size() == 0;\r\n\t}", "title": "" }, { "docid": "fe0c17057a126ba0769390877949e886", "score": "0.5974239", "text": "@Override\n public boolean containsParams(\n String key) {\n if (key == null) { throw new NullPointerException(); }\n return internalGetParams().getMap().containsKey(key);\n }", "title": "" }, { "docid": "d895ca39e7bd447333de37a35b2ecc80", "score": "0.597372", "text": "@Override\n public boolean containsParams(\n String key) {\n if (key == null) { throw new NullPointerException(); }\n return internalGetParams().getMap().containsKey(key);\n }", "title": "" }, { "docid": "98f70c32dff0fc8b5797646ca1516d81", "score": "0.5961482", "text": "protected synchronized boolean isEmpty()\n {\n Subject subject = SecurityHelper.getCurrentSubject();\n\n return subject == null ? m_oRef == null : m_mapSubjectScope.isEmpty();\n }", "title": "" }, { "docid": "c4bcb9d16b2300b78afd1802a67c898d", "score": "0.59603494", "text": "public boolean isEmpty() {\n return optional.isEmpty() && provides.isEmpty() && requires.isEmpty();\n }", "title": "" }, { "docid": "548c836d840b1973f9b94bc88a7591b2", "score": "0.59587795", "text": "public boolean isEmpty() {\n\n\t\treturn set.isEmpty();\n\n\t}", "title": "" } ]
8dc3864e8f5ac3df2e81520550407963
Reads input fiels and compare sources inside it
[ { "docid": "182e7596d9c25bf10bc131bd294210f0", "score": "0.0", "text": "private void compareSources(String pathToDirectory) {\n directoryPath = pathToDirectory.replaceAll(\".zip\", \"\");\n\n if (!directoryPath.equals(\"none\")) {\n sourceComparator.clearComparatorData();\n if(archiveOperator.readArchive(pathToDirectory)) {\n System.out.println(archiveOperator.getProjectsNamesString());\n System.out.println(archiveOperator.getErrorMessagesReport());\n\n sourceComparator.setMinimumSimilarityPercentage(mainView.getSimilarityPercentageTextField().getText());\n sourceComparator.setSourceFilesToCompareList(archiveOperator.getSourceCodeFiles());\n sourceComparator.compareAllFiles(mainView.getSameProjectCheckBox().isSelected(), mainView.getSameAuthorCheckBox().isSelected());\n\n System.out.println(sourceComparator.getTotalResultString());\n printReport();\n Object[] options = {\"Yes\",\n \"No, exit program\"};\n int n = JOptionPane.showOptionDialog(mainFrame,\n \"Files comparison completed! \\nWould you like to continue\",\n \"Comparison completed\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE,\n null,\n options,\n options[1]);\n\n printExceptions();\n\n if (n == JOptionPane.NO_OPTION) {\n System.exit(0);\n }\n }\n else{\n JOptionPane.showMessageDialog(mainFrame, \"Input file invalid\");\n }\n } else {\n JOptionPane.showMessageDialog(mainFrame, \"Wrong input arguments\");\n System.out.println(\"Wrong input arguments\");\n }\n }", "title": "" } ]
[ { "docid": "21d74f3fe979aee47501aabac53471b9", "score": "0.61571085", "text": "public static void readSource () {\n\n try {\n source = Files.lines(Paths.get(input));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "91dae9ff965fb09c8a4d2c5a27d82d90", "score": "0.6111109", "text": "private static void compareFiles() {\n\t\ttry {\n\t\t\tScanner f1 = new Scanner(new File(\"decoded.txt\"));\n\t\t\tScanner f2 = new Scanner(new File(\"C:\\\\Users\\\\hboot\\\\Downloads\\\\Project\\\\sample2\\\\sample_input_large.txt\"));\n\t\t\tint i = 0;\n\t\t\tString str1, str2;\n\t\t\twhile(f1.hasNextLine() && f2.hasNextLine()){\n\t\t\t\tstr1 = f1.nextLine();\n\t\t\t\tstr2 = f2.nextLine();\n\t\t\t\tif(str1.equals(str2) == false){\n\t\t\t\t\tSystem.out.println(\"NOT SAME \" + str1 + \" \" + str2);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\tSystem.out.println(i);\n\t\t\t//while(f2.hasNextLine())\n\t\t\t\tSystem.out.println(f2.nextLine());\n\t\t\tf1.close();\n\t\t\tf2.close();\n\t\t\t\n\t\t\tSystem.out.println(\"SAME\");\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "7878c9411d6c849bb1f8ae35299eacac", "score": "0.5885402", "text": "public static void main (String[] args) throws java.io.IOException\n {\n\t\tBufferedReader br2 = new BufferedReader (new\n\t InputStreamReader(System.in));\n\t\tSystem.out.println(\"Enter 1st File name:\");\n \t\tString firstFile = br2.readLine();\n \t\t\n \t\tif ((firstFile == null)||(\"\".equals(firstFile.trim())))\n \t\t\tfirstFile = FileComparison.defaultFile1;\n \t\t\n \t\tSystem.out.println(\"Enter 2nd File name:\");\n \t\tString secondFile = br2.readLine();\n \t\t\n \t\tif ((secondFile == null)||(\"\".equals(secondFile.trim())))\n \t\t\tsecondFile = FileComparison.defaultFile2;\n \t\t\n \t\tSystem.out.println(\"Comparing \\nFile1=\\\"\" + firstFile + \"\\\" \\nwith\\n File2=\\\"\" + secondFile + \"\\\"\");\n \t\ttry\n \t\t{\n \t\t\tSystem.out.println(\"\\nAre they Same? \" + areEventTimelinesSame(firstFile, secondFile, true, System.out));\n \t\t}\n \t\tcatch(Exception e)\n \t\t{\n \t\t\te.printStackTrace();\n \t\t}\n }", "title": "" }, { "docid": "1e4d6c06ee1ded8ef11c107f015c5f36", "score": "0.5778167", "text": "void fileRead() {\r\n int regexCnt, testCases;\r\n\r\n try {\r\n // FileReader reads text files in the default encoding.\r\n FileReader fr = new FileReader(\"src/mpa3.in\");\r\n // Always wrap FileReader in BufferedReader.\r\n BufferedReader br = new BufferedReader(fr);\r\n // Number of regular expression to evaluate\r\n regexCnt = Integer.parseInt(br.readLine());\r\n\r\n while ((regexCnt--) > 0) {\r\n // The current cases regular expression\r\n regex = br.readLine();\r\n // Number of strings to test\r\n testCases = Integer.parseInt(br.readLine());\r\n // Adds the test strings to the array list\r\n for (int i = 0; i < testCases; i++) {\r\n tests.add(br.readLine());\r\n }\r\n // Start the evaluation\r\n start();\r\n // Clearing for the next regex\r\n tests.clear();\r\n }\r\n br.close();\r\n fileWrite(); // Write results to a file\r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\r\n \"Unable to open file '\" +\r\n \"mpa3.in\" + \"'\");\r\n } catch (IOException ex) {\r\n System.out.println(\r\n \"Error reading file '\"\r\n + \"mpa3.in\" + \"'\");\r\n }\r\n }", "title": "" }, { "docid": "770059a90b32e3b34421e4ae4700a768", "score": "0.57240516", "text": "public static void main(String[] args) {\n\t\tString srcPath = \"Sample Source File Path\";\n\t\tString dstPath = \"Sample Destination File Path\";\n\n\t\tJCompareCore core = new JCompareCore();\n\t\t\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(srcPath));\n\t\t\tString lineStr = \"\";\n\t\t\twhile((lineStr = br.readLine()) != null)\t{\n\t\t\t\tcore.AddSourceLine(lineStr);\n\t\t\t}\n\t\t\tbr.close();\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(dstPath));\n\t\t\tString lineStr = \"\";\n\t\t\twhile((lineStr = br.readLine()) != null)\t{\n\t\t\t\tcore.AddDestinationLine(lineStr);\n\t\t\t}\n\t\t\tbr.close();\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tcore.DoCompare();\n\t\tfor(int i = 0; i < core.GetResultCount(); i++) {\n\t\t\tJCompareCore.CompareElement item = core.GetResultItem(i);\n\t\t\tSystem.out.printf(\"Source line : %d, Destination line : %d, Line count of same contents : %d\\n\",\n\t\t\t\t\titem.srcStartIndex, item.dstStartIndex, item.lineCountOfSameContext);\n\t\t}\n\t}", "title": "" }, { "docid": "1e2b7667f8ba5cc98820050eb9a85386", "score": "0.56696945", "text": "@Test\n void checkResources() {\n try {\n Stream<String> inputSource = PackerTestUtils.getFileStream(PackerTestUtils.INPUT_FILE);\n assertNotNull(inputSource);\n Stream<String> outputSource = PackerTestUtils.getFileStream(PackerTestUtils.OUTPUT_FILE);\n assertNotNull(outputSource);\n } catch (IOException e) {\n fail(\"Error while checking resources: IO Operations\");\n } catch (URISyntaxException e) {\n fail(\"Error while checking resources: URISyntax\");\n }\n\n }", "title": "" }, { "docid": "fa70b0e0bb457b10388a80c8b790b2c7", "score": "0.56592107", "text": "public static void main(String[] args) throws IOException {\n \tString testURL = (args.length < 1) ? \"ftp://hgdownload.cse.ucsc.edu/goldenPath/panTro3/vsHg19/panTro3.hg19.all.chain.gz\" : args[0];\r\n long startPosition = (args.length < 2) ? 0x0b66c78l : Long.parseLong(args[1]);\r\n int len = (args.length < 3) ? 8 : Integer.parseInt(args[2]);\r\n int skipLen = (args.length < 4) ? 0x18 : Integer.parseInt(args[3]);\r\n SeekableStream s = SeekableStreamFactory.getStreamFor(testURL);\r\n byte[] buffer = new byte[len];\r\n s.seek(startPosition);\r\n s.read(buffer, 0, len);\r\n if (s.position() != startPosition + len && s.position() != s.length()) {\r\n \tSystem.out.println(\"1) updated position is incorrect\");\r\n }\r\n String data = new String(buffer);\r\n System.out.println(\"1) read:\" + data);\r\n if (args.length == 0) {\r\n System.out.println(\"1) expected:\" + EXPECTED1);\r\n System.out.println(\"1) values do\" + (EXPECTED1.equals(data) ? \"\" : \" not\") + \" match\");\r\n }\r\n s.skip(skipLen);\r\n s.read(buffer, 0, len);\r\n if (s.position() != startPosition + 2 * len + skipLen && s.position() != s.length()) {\r\n \tSystem.out.println(\"2) updated position is incorrect\");\r\n }\r\n String data2 = new String(buffer);\r\n System.out.println(\"2) read:\" + data2);\r\n if (args.length == 0) {\r\n System.out.println(\"2) expected:\" + EXPECTED2);\r\n System.out.println(\"2) values do\" + (EXPECTED2.equals(data2) ? \"\" : \" not\") + \" match\");\r\n }\r\n }", "title": "" }, { "docid": "b27b397a4e8ea5a147cc50418bba937b", "score": "0.5619469", "text": "public void readInputFile()\n {\n BufferedReader bufferedReader;\n StringTokenizer stringTokenizer;\n\n try\n {\n bufferedReader = new BufferedReader(new FileReader(inputFile)); // Opens previously specified input file.\n\n inputNodes = Integer.parseInt(bufferedReader.readLine()); // Find number of input nodes\n\n stringTokenizer = new StringTokenizer(bufferedReader.readLine());\n hiddenLayerNodes = new int[Integer.parseInt(stringTokenizer.nextToken())];\n for (int i = 0; i < hiddenLayerNodes.length; i++)\n {\n hiddenLayerNodes[i] = Integer.parseInt(stringTokenizer.nextToken()); // Populate number of nodes per hidden layer\n }\n\n outputNodes = Integer.parseInt(bufferedReader.readLine()); // Find number of output nodes\n\n numberCases = Integer.parseInt(bufferedReader.readLine()); // Find the number of trial cases\n trialCases = new double[numberCases][inputNodes];\n truths = new double[numberCases][outputNodes];\n lambda = Double.parseDouble(bufferedReader.readLine()); // Lambda\n MINIMUM_ERROR = Double.parseDouble(bufferedReader.readLine()); // Error\n MAX_STEPS = Integer.parseInt(bufferedReader.readLine()); // Steps\n lowValue = Double.parseDouble(bufferedReader.readLine()); // Low Value\n highValue = Double.parseDouble(bufferedReader.readLine()); // High Value\n bufferedReader.close();\n } // Reads the input file.\n catch (IOException e)\n {\n throw new IllegalArgumentException(\"Input File \" + e.toString() + \" not accepted, terminating.\");\n }\n\n }", "title": "" }, { "docid": "ff82c35131907e29fc67f2d3e12495d4", "score": "0.5600319", "text": "public static void compareFTPFiles(String compPath1,String compPath2,String fileName) throws IOException{\n\n\t\t/*if(fileName.equals(\"same.txt\")){\n\t\t\tSystem.out.println();\n\t\t}*/\n\n\t\tFTPClient ftpCon1=Ftp.getFTPConnection();\n\t\tFTPClient ftpCon2=Ftp.getFTPConnection();\n\n\n\t\tInputStream inSR=ftpCon1.retrieveFileStream(compPath1+fileName);\n\t\tInputStream outSR=ftpCon2.retrieveFileStream(compPath2+fileName);\n\t\tInputStreamReader inISR=new InputStreamReader(inSR);\n\t\tInputStreamReader ourISR=new InputStreamReader(outSR);\n\n\n\t\tBufferedReader reader1 = new BufferedReader(inISR);\n\n\t\tBufferedReader reader2 = new BufferedReader(ourISR);\n\n\t\tString line1 = reader1.readLine();\n\n\t\tString line2 = reader2.readLine();\n\n\t\tboolean areEqual = true;\n\n\t\tint srcLineNo = 1,destLineNo = 1;\n\n\t\tdo\n\t\t{\n\n\n\t\t\tif(line1 == null || line2 == null)\n\t\t\t{\n\t\t\t\tareEqual = false;\n\n\t\t\t\t//break;\n\t\t\t}\n\t\t\telse if(! line1.equalsIgnoreCase(line2))\n\t\t\t{\n\t\t\t\tareEqual = false;\n\t\t\t\tSystem.out.println(fileName+\"- Mismatch data @ \"+line1+\" --and destination file has --\"+line2+\" at line\"+srcLineNo);\n\t\t\t\t//break;\n\t\t\t}\n\n\t\t\tdo{\n\t\t\t\tline1 = reader1.readLine();\n\t\t\t\tsrcLineNo++;\n\t\t\t\tif(line1==null)break;\n\t\t\t}while(line1.equals(\"\"));\n\t\t\tdo{\n\t\t\t\tline2 = reader2.readLine();\n\t\t\t\tdestLineNo++;\n\t\t\t\tif(line2==null)break;\n\t\t\t}while(line2.equals(\"\"));\n\n\n\t\t}while (line1 != null || line2 != null);\n\n\t\tif(areEqual)\n\t\t{\n\t\t\tSystem.out.println(fileName+\"- has same content.\");\n\n\t\t}\n\t\tif(srcLineNo<destLineNo)System.out.println(fileName+\"Destination file has \"+(destLineNo-srcLineNo)+\"blank No number of lines \");\n\t\tif(srcLineNo>destLineNo)System.out.println(fileName+\"Src file has \"+(srcLineNo-destLineNo)+\"blank No number of lines \");\n\n\n\t\treader1.close();\n\n\t\treader2.close();\n\n\t\tFtp.closeFTPConnection(ftpCon1);\n\t\tFtp.closeFTPConnection(ftpCon2);\n\t}", "title": "" }, { "docid": "22f3e40a1a6ebe4638c692bc2a016afa", "score": "0.55841386", "text": "private void checkFiles(String expFile, String actFile) {\r\n\t try {\r\n\t Scanner expScanner = new Scanner(new FileInputStream(expFile));\r\n\t Scanner actScanner = new Scanner(new FileInputStream(actFile));\r\n\t \r\n\t while (expScanner.hasNextLine() && actScanner.hasNextLine()) {\r\n\t String exp = expScanner.nextLine();\r\n\t String act = actScanner.nextLine();\r\n\t assertEquals(\"Expected: \" + exp + \" Actual: \" + act, exp, act);\r\n\t }\r\n\t if (expScanner.hasNextLine()) {\r\n\t fail(\"The expected results expect another line \" + expScanner.nextLine());\r\n\t }\r\n\t if (actScanner.hasNextLine()) {\r\n\t fail(\"The actual results has an extra, unexpected line: \" + actScanner.nextLine());\r\n\t }\r\n\t \r\n\t expScanner.close();\r\n\t actScanner.close();\r\n\t } catch (IOException e) {\r\n\t fail(\"Error reading files.\");\r\n\t }\r\n\t}", "title": "" }, { "docid": "a65adbb312edd56b26f358acb743b15a", "score": "0.5569137", "text": "public boolean Load() {\n\tString spec = source.getText();\n\tint len = spec.length();\n\tindex = 0;\n\n\tstate.setSize(0);\n\tpattern.setSize(0);\n\tnext.setSize(0);\n\toutputs.setSize(0);\n\tsol.setSize(0);\n\teol.setSize(0);\n\n\twhile (index < len) {\n\t int eol = spec.indexOf('\\n',index);\n\t if (eol == -1) eol = len;\n\t if (ReadLine(spec,eol)) return false;\n\t index = eol + 1;\n\t}\n\treturn true;\n }", "title": "" }, { "docid": "8ae21cd648f6023c2701f18d866e218f", "score": "0.5559952", "text": "@Override\n\tprotected String[] customCommandLineValidation() {\n\t\tSet<String> _names = new TreeSet<String>();\n\t\tfor(File f : FASTQ){\n\t\t\tif(!f.exists() || !f.canRead())\n\t\t\t\treturn new String[]{\"Input FASTQ file does not exist OR cannot be read, please check: \"+f.getAbsolutePath()};\n\t\t\t\n\t\t\tif(_names.contains(f.getAbsolutePath())){\n\t\t\t\treturn new String[]{\"Found twice the same file in FASTQ options: \"+f.getAbsolutePath()};\n\t\t\t}\n\t\t\t_names.add(f.getAbsolutePath());\n\t\t}\n\t\t\t\n\t\t\n\t\t/*\n\t\t * Validate O\n\t\t * if not given, init to current dir else ensure the dir exists\n\t\t * After this validation OUTDIR is SET \n\t\t */\n\t\tif(OUTPUT_DIR == null){\n\t\t\tOUTPUT_DIR = new File(System.getProperty(\"user.dir\"));\n\t\t}\n\n\t\tif(!OUTPUT_DIR.exists()){\n\t\t\tlog.info(\"Attempting to create output directory : \"+OUTPUT_DIR.getAbsolutePath());\n\t\t\ttry{\n\t\t\t\tFileUtil.checkWritableDir(OUTPUT_DIR, true);\n\t\t\t}catch(Exception e){\n\t\t\t\treturn new String[]{\"Failed to create output directory :\"+OUTPUT_DIR.getAbsolutePath()};\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * Check quality format\n\t\t */\n\t\tif (QUALITY_FORMAT == null) { // we assume it s Standard\n\t\t\tFastqReader [] readers = new FastqReader[FASTQ.size()];\n\t\t\tint i = 0;\n\t\t\tfor(File f : FASTQ){\n\t\t\t\treaders[i++] = new FastqReader(f);\n\t\t\t}\n\t\t\tQUALITY_FORMAT = JeUtils.determineQualityFormat(readers, FastqQualityFormat.Standard);\n\t\t\tlog.info( String.format(\"Auto-detected quality encoding format as '%s'. Please set V option explicitely if not correct.\", QUALITY_FORMAT) );\n\t\t} else {\n\t\t\tlog.info(String.format(\"Quality encoding format set to %s by user.\", QUALITY_FORMAT));\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * parse read layout, we must have one per input FASTQ\n\t\t * \n\t\t */\n\t\tif(READ_LAYOUT.size() != FASTQ.size() )\n\t\t\treturn new String[]{\"Got \"+READ_LAYOUT.size()+\" read layouts for \"+FASTQ.size()+\" FASTQ files. You must provide as many read layouts as input FASTQ files.\"};\n\n\t\tlog.debug(\"init ReadLayouts command line... \");\n\n\t\treadLayouts = new ReadLayout[READ_LAYOUT.size()];\n\t\tfor (int j = 0; j < READ_LAYOUT.size(); j++) {\n\t\t\tString _rl = READ_LAYOUT.get(j);\n\t\t\ttry{\n\t\t\t\treadLayouts[j] = new ReadLayout(_rl);\n\t\t\t}catch(Exception e){\n\t\t\t\tlog.error(ExceptionUtil.getStackTrace(e));\n\t\t\t\treturn new String[]{e.getMessage()};\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tlog.debug(\"ReadLayouts are valid.\");\n\t\t\n\t\t/*\n\t\t * Process output layout \n\t\t */\n\t\tif(OUTPUT_LAYOUT == null || OUTPUT_LAYOUT.isEmpty()){\n\t\t\treturn new String[]{\"Output layout(s) must be provided.\"};\n\t\t}\n\n\t\tlog.debug(\"init output format layout from comamnd line... \");\n\n\t\toutLayouts = new FastqWriterLayout[OUTPUT_LAYOUT.size()];\n\t\t\n\t\tfor (int j = 0; j < OUTPUT_LAYOUT.size(); j++) {\n\t\t\tString _ol = OUTPUT_LAYOUT.get(j);\n\t\t\ttry{\n\t\t\t\tString [] parts = _ol.split(DEFAULT_READ_NAME_SEPARATOR_CHAR);\n\t\t\t\tif(parts.length > 3)\n\t\t\t\t\treturn new String[]{\"Invalid output layout. A maximum of three ':'-delimited parts are expected while \"+parts.length+\" are found in \"+_ol};\n\n\t\t\t\tint olIndex = j+1;\n\t\t\t\tString headerLayout = \"\";\n\t\t\t\tString seqLayout = \"\";\n\n\t\t\t\tswitch (parts.length) {\n\t\t\t\tcase 1:\n\t\t\t\t\tseqLayout = parts[0];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\theaderLayout = parts[0];\n\t\t\t\t\tseqLayout = parts[1];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tolIndex = Integer.parseInt(parts[0]);\n\t\t\t\t\theaderLayout = parts[1];\n\t\t\t\t\tseqLayout = parts[2];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * here BARCODE (or B) always mean READBAR (or R). We need to convert BARCODE to READBAR to\n\t\t\t\t * make sure the FastqWriterLayout bahaves properly\n\t\t\t\t */\n\t\t\t\toutLayouts[j] = new FastqWriterLayout(seqLayout, headerLayout, readLayouts, WITH_QUALITY_IN_READNAME, READ_NAME_SEPARATOR_CHAR, true, this.QUALITY_FORMAT);\n\t\t\t}catch(Exception e){\n\t\t\t\tlog.error(ExceptionUtil.getStackTrace(e));\n\t\t\t\treturn new String[]{e.getMessage()};\n\t\t\t}\n\t\t}\n\n\t\tlog.debug(\"Output format layouts are valid.\");\n\t\t\n\t\t/*\n\t\t * \n\t\t * Check one of \n\t\t * ADD_SEQUENCE_LAYOUT_IN_OUTPUT_FILENAME, \n\t\t * ADD_HEADER_LAYOUT_IN_OUTPUT_FILENAME, \n\t\t * ADD_LAYOUT_IDX_IN_OUTPUT_FILENAME \n\t\t * \n\t\t * is true \n\t\t * \n\t\t */\n\t\t\n\t\tif(!ADD_SEQUENCE_LAYOUT_IN_OUTPUT_FILENAME && !ADD_HEADER_LAYOUT_IN_OUTPUT_FILENAME && !ADD_LAYOUT_IDX_IN_OUTPUT_FILENAME){\n\t\t\treturn new String[]{\"At least one of 'OWID', 'OWHL' or 'OWSL' must be true\"};\n\t\t}\n\t\t\n\t\t/*\n\t\t * Properly init output files for samples\n\t\t * Check if file name was provided in barcode file else create default names\n\t\t */\n\t\t//no file name, init from output layouts\n\t\tlog.debug(\" initializing output file from output layouts ...\");\n\t\t\n\t\tfor (int i = 0; i < outLayouts.length; i++) {\n\t\t\tFastqWriterLayout ol = outLayouts[i];\n\t\t\tString fname = generateOutputFileName(i, ol);\n\n\t\t\toutputFiles.add( new File(OUTPUT_DIR , fname) );\n\t\t}\n\n\t\tlog.debug(\" output file names created, now checking if they already exist \");\n\t\t\n\t\tfor (File en : outputFiles) {\n\t\t\ttry{\n\t\t\t\tcheckFilesDoNotAlreadyExist(en, FORCE);\n\t\t\t}catch(Jexception e){\n\t\t\t\treturn new String[]{e.getMessage()};\n\t\t\t}\n\t\t}\n\t\tlog.debug(\"out file path fully validated.\");\n\t\t\n\t\t\n\t\t\n\t\tlog.debug(\"Validation ended without error\");\n\t\treturn null; //do not return an empty array\n\t}", "title": "" }, { "docid": "20f37abe01e9c2633809192514fbf898", "score": "0.5543936", "text": "private void checkFiles(String expFile, String actFile) {\n\t try {\n\t Scanner expScanner = new Scanner(new FileInputStream(expFile));\n\t Scanner actScanner = new Scanner(new FileInputStream(actFile));\n\t \n\t while (expScanner.hasNextLine() && actScanner.hasNextLine()) {\n\t String exp = expScanner.nextLine();\n\t String act = actScanner.nextLine();\n\t assertEquals(\"Expected: \" + exp + \" Actual: \" + act, exp, act);\n\t }\n\t if (expScanner.hasNextLine()) {\n\t fail(\"The expected results expect another line \" + expScanner.nextLine());\n\t }\n\t if (actScanner.hasNextLine()) {\n\t fail(\"The actual results has an extra, unexpected line: \" + actScanner.nextLine());\n\t }\n\t \n\t expScanner.close();\n\t actScanner.close();\n\t } catch (IOException e) {\n\t fail(\"Error reading files.\");\n\t }\n\t}", "title": "" }, { "docid": "ae0acdcb8c85e95dcc3f66061e92de31", "score": "0.5506392", "text": "private void compareFileInputList(compareList cl) {\n\n\t\ttry {\n\n\t\t\tList<String> L1 = readFile(\"com/company/resource/ListOne.txt\");\n\t\t\tList<String> L2 = readFile(\"com/company/resource/ListTwo.txt\");\n\n\t\t\tSystem.out.println(\"Total Element in List One =\" + L1.size());\n\t\t\tSystem.out.println(\"Total Element in List Two =\" + L2.size());\n\t\t\tint usrInput = cl.takeUserInput(\"show\");\n\t\t\tswitch (usrInput) {\n\t\t\tcase 1:\n\t\t\t\tcl.printListItem(cl.getCommonFromList(L1, L2));\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tcl.printListItem(cl.getDiffFromL1(L1, L2));\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tcl.printListItem(cl.getDiffFromL2(L1, L2));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "46146de45776c29c1cf8ed8cde8cd3d4", "score": "0.5502424", "text": "private void checkFiles(String expFile, String actFile) {\n\t\ttry {\n\t\t\tScanner expScanner = new Scanner(new FileInputStream(expFile));\n\t\t\tScanner actScanner = new Scanner(new FileInputStream(actFile));\n\n\t\t\twhile (expScanner.hasNextLine() && actScanner.hasNextLine()) {\n\t\t\t\tString exp = expScanner.nextLine();\n\t\t\t\tString act = actScanner.nextLine();\n\t\t\t\tassertEquals(\"Expected: \" + exp + \" Actual: \" + act, exp, act);\n\t\t\t}\n\t\t\tif (expScanner.hasNextLine()) {\n\t\t\t\tfail(\"The expected results expect another line \" + expScanner.nextLine());\n\t\t\t}\n\t\t\tif (actScanner.hasNextLine()) {\n\t\t\t\tfail(\"The actual results has an extra, unexpected line: \" + actScanner.nextLine());\n\t\t\t}\n\n\t\t\texpScanner.close();\n\t\t\tactScanner.close();\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Error reading files.\");\n\t\t}\n\t}", "title": "" }, { "docid": "135e913c2464b1a9d9591f52b3a3614e", "score": "0.5474537", "text": "public void read() throws IOException {\n\t\n\t\t//processs\n\t\tthis.schemas= new ArrayList<String[]>();\n\t\tthis.abnormalRawEventLists = new ArrayList<ArrayList<String[]>>();\n\t\tthis.referenceRawEventLists = new ArrayList<ArrayList<String[]>>();\n\n\t\t\n\t\tFile folder = new File(this.inputFolder);\n\t\tFile[] files = folder.listFiles();\n\t\tfor (File f : files) {\n\t\t\tthis.parseFile(f);\n\t\t}\n\t}", "title": "" }, { "docid": "7051a21e3fcabb9e444f64ab45817a66", "score": "0.5470407", "text": "public boolean filesSame(String input, String output) throws IOException\n {\n BufferedReader reader1 = new BufferedReader(new FileReader(input));\n BufferedReader reader2 = new BufferedReader(new FileReader(output));\n\n String line1 = reader1.readLine();\n String line2 = reader2.readLine();\n\n boolean areEqual = true;\n int lineNum = 1;\n\n while (line1 != null || line2 != null)\n {\n if(line1 == null || line2 == null)\n {\n areEqual = false;\n break;\n }\n else if(!line1.equalsIgnoreCase(line2))\n {\n areEqual = false;\n break;\n }\n\n line1 = reader1.readLine();\n line2 = reader2.readLine();\n lineNum++;\n }\n\n reader1.close();\n reader2.close();\n\n return areEqual;\n }", "title": "" }, { "docid": "380766db137a3de46afcc6518333f93d", "score": "0.5460657", "text": "public static void main (String[] args) {\n\t\tArrayList<String> file_one;\n\t\tArrayList<String> file_two;\n\t\tString name_one;\n\t\tString name_two;\n\t\tScanner input = new Scanner(System.in);\n\t\tchar cont = 'y';\n\t\t\n\t\twhile (cont == 'y') {\n\t\t\tSystem.out.print(\"Please enter the name of two files to compare: \");\n\t\t\tname_one = input.nextLine();\n\t\t\tSystem.out.print(\"Now the second file name: \");\n\t\t\tname_two = input.nextLine();\n\t\t\t\n\t\t\tfile_one = ReadTextFile(name_one);\n\t\t\tfile_two = ReadTextFile(name_two);\n\n\t\t\tif (file_one.equals(file_two)) {\n\t\t\t\tSystem.out.println(\"The files are the same!\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"The files are the different!!\");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(\"Compare two more files? (y/n): \");\n\t\t\tcont = input.nextLine().charAt(0);\n\t\t}\n\t}", "title": "" }, { "docid": "fb68a76eca1eb2130a0f81c233957bb3", "score": "0.54577494", "text": "public static void main(String[] args) throws IOException {\n \n //Establishes a link between Java the file\n File datFile = new File(\"input.dat\"); \n \n //Creates a Scanner object associated with the previous file\n Scanner input = new Scanner(datFile);\n \n //Prints out the input.dat data\n while(input.hasNext()) {\n System.out.println(input.next());\n }\n \n }", "title": "" }, { "docid": "3d332bf8b4f281db33491ba4b07f2386", "score": "0.54107064", "text": "@Override\n\t\t\tpublic void ReadFile(String input) {\n\n\t\t\t}", "title": "" }, { "docid": "3d332bf8b4f281db33491ba4b07f2386", "score": "0.54107064", "text": "@Override\n\t\t\tpublic void ReadFile(String input) {\n\n\t\t\t}", "title": "" }, { "docid": "3d332bf8b4f281db33491ba4b07f2386", "score": "0.54107064", "text": "@Override\n\t\t\tpublic void ReadFile(String input) {\n\n\t\t\t}", "title": "" }, { "docid": "b64c43a7db8e03f01a98a2cac896115c", "score": "0.53905714", "text": "public static void main(String[] args) {\n //try catch clasue to handle the input/output files\n try {\n fileInput = new Scanner(new FileInputStream(new File(\"a1q2in.txt\")));// readin input file\n fileOutput = new PrintWriter(\"a1q2out.txt\", \"UTF-8\");// output file creation\n int m = fileInput.nextInt(); // number of scenarios\n for (int i =1; i<=m ; i++){\n fileOutput.println(\"Scenario Number \" +i+ \"!\");\n inputs();// read in the rest of the inputs per each scenario\n }\n fileOutput.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "629851065080a6f813733835058690c8", "score": "0.53845334", "text": "public boolean isIdentical(String filename1, String filename2) {\n // ADD YOUR CODE HERE\n // Hint: you can read one file at a time\n // store the contents (strings) of the files\n // in separate ArrayLists\n ArrayList<String> stringList1 = new ArrayList<>();\n ArrayList<String> stringList2 = new ArrayList<>();\n \n String line;\n try {\n RandomAccessFile input1\n = new RandomAccessFile(filename1, \"r\");\n\n while ((line = input1.readLine()) != null) {\n stringList1.add(line);\n }\n \n RandomAccessFile input2\n = new RandomAccessFile(filename2, \"r\");\n\n while ((line = input2.readLine()) != null) {\n stringList2.add(line);\n }\n } catch (FileNotFoundException fnfe) {\n System.err.println(\"Cannot find the input file!\");\n } catch (IOException ioe) {\n System.err.println(\"Some IO exception occured!\");\n }\n \n System.out.println(stringList1);\n System.out.println(stringList2);\n \n if (stringList1.size() != stringList2.size())\n return false;\n \n for (int i = 0; i < stringList1.size(); i++)\n if (!stringList1.get(i).equals(stringList2.get(i)))\n return false;\n return true;\n }", "title": "" }, { "docid": "7a9d854aef108c301cd153c55376f4d1", "score": "0.5382438", "text": "public boolean unchangedPropComparison (File baseFile, File upgradeFile) {\n\t\t\n\t\tboolean blResult = false;\n\t\t\n\t\ttry {\n\n\t\t String sCurrentLine;\n\t\t \n\t\t List<String> list1 = new ArrayList<String>();\n\t\t List<String> list2 = new ArrayList<String>();\n\t\t \n\t\t br1 = new BufferedReader(new FileReader(baseFile));\n\t\t br2 = new BufferedReader(new FileReader(upgradeFile));\n\t\t\t \n\t\t while ((sCurrentLine = br1.readLine()) != null) {\n\t\t list1.add(sCurrentLine);\n\t\t }\n\n\t\t while ((sCurrentLine = br2.readLine()) != null) {\n\t\t list2.add(sCurrentLine);\n\t\t }\n\t\t \n\t\t List<String> tmpList = new ArrayList<String>(list1);\n\t\t \n\t\t tmpList.removeAll(list2);\n\t\t \n\t\t if (tmpList.size() == 0) {\n\t\t \n\t\t \t LOGGER.info(\"Both file are Same\");\n\t\t \t return blResult = true;\n\t\t \t \n\t\t } else {\n\t\t \t \n\t\t \t LOGGER.info(\"====Both file contents are NOT Same====\");\n\t\t \t LOGGER.info(\"=======================\");\n\t\t \t \n\t\t \t LOGGER.info(\"content from \"+baseFile+\" which are NOT there in \"+upgradeFile);\t\t \n\t\t for(int i=0;i<tmpList.size();i++){\n\t\t \t LOGGER.info (tmpList.get(i));\n\t\t }\n\n\t\t LOGGER.info(\"content from \"+upgradeFile+\" which are NOT there in \"+baseFile);\n\n\t\t tmpList = list2;\n\t\t tmpList.removeAll(list1);\n\t\t for(int i=0;i<tmpList.size();i++){\n\t\t \t LOGGER.info (tmpList.get(i));\n\t\t }\t\t \t \n\t\t \t \n\t\t }\n\t\t \n\t\t br1.close();\n\t\t br2.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\t\t\n\t\t\t\n\t\t} finally {\n\t\t\tif (input_base != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinput_base.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (input_upgrade != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinput_upgrade.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tLOGGER.info(\"Comparison result is : \"+blResult);\n\t\treturn blResult;\n\t}", "title": "" }, { "docid": "436a3aea6cb6b8a6a85da2569776bf78", "score": "0.5376147", "text": "@Test\n public void testInputFileParsedCorrectly() {\n try {\n String[] args = { inputFile, processorAmount };\n\n inputParser.parse(args);\n\n assertEquals(applicationState.getInputFile(), inputFile);\n } catch (InvalidInputException e) {\n assert (false);\n }\n }", "title": "" }, { "docid": "2e49d309618c4c015358da3a882096c6", "score": "0.5362759", "text": "InputStream getSourceInputStream();", "title": "" }, { "docid": "9b525bcac4ed4fdec6f3db87d8734b09", "score": "0.53570735", "text": "protected boolean equalFileContents(FileObject file1, FileObject file2) throws HopFileException {\n // Really read the contents and do comparisons\n DataInputStream in1 = null;\n DataInputStream in2 = null;\n try {\n // Really read the contents and do comparisons\n\n in1 =\n new DataInputStream(\n new BufferedInputStream(HopVfs.getInputStream(HopVfs.getFilename(file1))));\n in2 =\n new DataInputStream(\n new BufferedInputStream(HopVfs.getInputStream(HopVfs.getFilename(file2))));\n\n char ch1;\n char ch2;\n while (in1.available() != 0 && in2.available() != 0) {\n ch1 = (char) in1.readByte();\n ch2 = (char) in2.readByte();\n if (ch1 != ch2) {\n return false;\n }\n }\n if (in1.available() != in2.available()) {\n return false;\n } else {\n return true;\n }\n } catch (IOException e) {\n throw new HopFileException(e);\n } finally {\n if (in1 != null) {\n try {\n in1.close();\n } catch (IOException ignored) {\n // Nothing to see here...\n }\n }\n if (in2 != null) {\n try {\n in2.close();\n } catch (Exception ignored) {\n // We can't do anything else here...\n }\n }\n }\n }", "title": "" }, { "docid": "9392787226b6d6fcda274550f068b719", "score": "0.5354746", "text": "public static void main(String[] args) throws FileNotFoundException {\n Scanner sc = new Scanner(new FileReader(\"FastidiousFarmingIN.txt\"));\r\n while(sc.hasNext()) {\r\n int[] cropAInputs = new int[2];\r\n int[] cropBInputs = new int[2];\r\n int[] allowanceInputs = new int[2];\r\n\r\n String cropALine = sc.nextLine();\r\n String[] cropAStringInputs = cropALine.split(\" \");\r\n cropAInputs[0] = Integer.parseInt(cropAStringInputs[0]);\r\n cropAInputs[1] = Integer.parseInt(cropAStringInputs[1]);\r\n\r\n String cropBLine = sc.nextLine();\r\n String[] cropBStringInputs = cropBLine.split(\" \");\r\n cropBInputs[0] = Integer.parseInt(cropBStringInputs[0]);\r\n cropBInputs[1] = Integer.parseInt(cropBStringInputs[1]);\r\n\r\n String allowanceLine = sc.nextLine();\r\n String[] allowanceStringInputs = allowanceLine.split(\" \");\r\n allowanceInputs[0] = Integer.parseInt(allowanceStringInputs[0]);\r\n allowanceInputs[1] = Integer.parseInt(allowanceStringInputs[1]);\r\n\r\n int[] answer = findCrops(cropAInputs,cropBInputs,allowanceInputs);\r\n System.out.println(answer[0] + \" \" + answer[1]);\r\n }\r\n sc.close();\r\n }", "title": "" }, { "docid": "23b0c4e87b92f296e68ded78b14fc808", "score": "0.5347454", "text": "public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n, a, b, temp,cont=1;\n\t boolean same;\n\t String s;\n\t StringTokenizer t = null;\n\t while ((s = in.readLine())!=null)\n\t { if(s.length()==0)\n\t \tbreak;\n\t n=Integer.parseInt(in.readLine());\t \n\t System.out.printf(\"Case %d:%n\",cont); \n\t for(int j=0;j<n;j++) \n\t { t= new StringTokenizer(in.readLine()); \n\t \ta=Integer.parseInt(t.nextToken());\n\t b=Integer.parseInt(t.nextToken());\n\t same=true;\n\t if(b!=a){\t \t\t\n\t \tif (b < a)\n\t\t {\n\t\t temp = a;\n\t\t a = b;\n\t\t b = temp;\n\t\t } \n\n\t \tfor (int i = a; i <=b; ++i){\n\t \t\tif(s.charAt(i)!=s.charAt(b)){\n\t \t\t same= false;\n\t \t\t break;\n\t \t\t}\n\t \t\t\n\t \t} \n\t }\t \n\t if (same)\n\t System.out.println(\"Yes\");\n\t else\n\t \tSystem.out.println(\"No\");\n\t \n\t }\n\t cont++; \n\t }\n\t\n\n\t}", "title": "" }, { "docid": "a4d94c442961625c1b55ebff3c756458", "score": "0.5332195", "text": "public static Map<String, String> compareFTPFiles(String compPath1,String compPath2,String srcFileName,String destFileName) throws IOException{\n\n\t\tMap<String, String>\tresults=new HashMap<>();\n\t\t\n\t\t\n\t\t/*if(fileName.equals(\"same.txt\")){\n\t\t\tSystem.out.println();\n\t\t}*/\n\t\tFTPReporting ftp=new FTPReporting();\n\t\t\tWriter w=ftp.createReport(\"D:\\\\Reports\\\\FTPReports\\\\\"+srcFileName+\"_\"+destFileName+\".html\");\n\t\t\tftp.writeHeaderPart(w);\n\t\t\n\t\tFTPClient ftpCon1=Ftp.getFTPConnection();\n\t\tFTPClient ftpCon2=Ftp.getFTPConnection();\n\t\t///home/contintegration/Desktop/src/Folder1/Demo.xml\n\n\t\tInputStream inSR=ftpCon1.retrieveFileStream(compPath1+srcFileName);\n\t\tInputStream outSR=ftpCon2.retrieveFileStream(compPath2+destFileName);\n\t\tInputStreamReader inISR=new InputStreamReader(inSR);\n\t\tInputStreamReader ourISR=new InputStreamReader(outSR);\n\n\n\t\tBufferedReader reader1 = new BufferedReader(inISR);\n\n\t\tBufferedReader reader2 = new BufferedReader(ourISR);\n\n\t\tString line1 = reader1.readLine();\n\n\t\tString line2 = reader2.readLine();\n\n\t\tboolean areEqual = true;\n\n\t\tint srcLineNo = 1,destLineNo = 1,uniqueLinesNo = 0,diffLinesNo = 0;\n\t\tArrayList<Integer> srcblankLine=new ArrayList<>();\n\t\tArrayList<Integer> destblankLine=new ArrayList<>();\n\n\t\tdo\n\t\t{\n\n\n\t\t\tif(line1 == null || line2 == null)\n\t\t\t{\n\t\t\t\tareEqual = false;\n\n\t\t\t\t//break;\n\t\t\t}\n\t\t\telse if(! line1.equals(line2))\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif(verifyRuleSet(line1, line2)){\n\t\t\t\t\t\n\t\t\t\t\tftp.writeTableData(w, line1, line2, \"warning\");\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tareEqual = false;\n\t\t\t\tSystem.out.println(srcFileName+\"(Src) & \"+destFileName+\"(Dest)- Mismatch data @ \"+line1+\" --and destination file has --\"+line2+\" at line\"+srcLineNo);\n\t\t\t\tdiffLinesNo++;\n\t\t\t\tftp.writeTableData(w, line1, line2, \"fail\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//break;\n\t\t\t}else{\n\t\t\t\tuniqueLinesNo++;\n\t\t\t\tftp.writeTableData(w, line1, line2, \"pass\");\t\n\t\t\t}\n\n\t\t\tdo{\n\t\t\t\tline1 = reader1.readLine();\n\t\t\t\tsrcLineNo++;\n\n\t\t\t\tif(line1==null)break;\n\t\t\t\tif(line1.equals(\"\"))srcblankLine.add(srcLineNo);\n\t\t\t}while(line1.equals(\"\"));\n\t\t\tdo{\n\t\t\t\tline2 = reader2.readLine();\n\t\t\t\tdestLineNo++;\n\n\t\t\t\tif(line2==null)break;\n\t\t\t\tif(line2.equals(\"\"))destblankLine.add(destLineNo);\n\t\t\t}while(line2.equals(\"\"));\n\n\n\t\t}while (line1 != null || line2 != null);\n\n\t\tif(areEqual)\n\t\t{\t\n\t\t\tSystem.out.println(srcFileName+\"(Src) & \"+destFileName+\"(Dest)- has same content.\");\n\t\t\tftp.writeTableData(w, srcFileName, destFileName, \"pass\");\t\n\n\t\t}\n\t\tif(srcLineNo>destLineNo){\n\t\t\tSystem.out.println(srcFileName+\"(Src) file contains \"+srcblankLine.size()+\" blank line at \"+srcblankLine+\" and \"+destFileName+\"(Dest) file contains \"+destblankLine.size()+\" blank line at \"+destblankLine );\n\t\t\tftp.writeTableData(w, srcFileName+\"(Src) file contains \"+srcblankLine.size()+\" blank line at \"+srcblankLine, destFileName+\"(Dest) file contains \"+destblankLine.size()+\" blank line at \"+destblankLine, \"fail\");\t\n\t\t}\n\t\tif(srcLineNo<destLineNo)\n\t\t\t{\n\t\t\tSystem.out.println(srcFileName+\"(Src) file contains \"+srcblankLine.size()+\" blank line at \"+srcblankLine+\" and \"+destFileName+\"(Dest) file contains \"+destblankLine.size()+\" blank line at \"+destblankLine );\n\t\t\tftp.writeTableData(w, srcFileName+\"(Src) file contains \"+srcblankLine.size()+\" blank line at \"+srcblankLine, destFileName+\"(Dest) file contains \"+destblankLine.size()+\" blank line at \"+destblankLine, \"fail\");\n\t\t\t}\n\n\t\t/*if(srcLineNo<destLineNo)System.out.println(destFileName+\" Destination file has \"+(destLineNo-srcLineNo)+\"blank No number of lines \");\n\t\tif(srcLineNo>destLineNo)System.out.println(srcFileName+\" Src file has \"+(srcLineNo-destLineNo)+\"blank No number of lines \");\n\t\t */\n\n\t\treader1.close();\n\n\t\treader2.close();\n\n\t\tFtp.closeFTPConnection(ftpCon1);\n\t\tFtp.closeFTPConnection(ftpCon2);\n\t\tftp.writeFotterPart(w);\n\t\tftp.closeReport(w);\n\t\t\n\t\tresults.put(\"S_T\", srcLineNo+\"\");\n\t\tresults.put(\"S_U\", uniqueLinesNo+\"\");\n\t\tresults.put(\"S_B\",srcblankLine.size()+\"\");\n\t\tresults.put(\"S_D\", diffLinesNo+\"\");\n\n\t\tresults.put(\"D_T\", destLineNo+\"\");\n\t\tresults.put(\"D_U\", uniqueLinesNo+\"\");\n\t\tresults.put(\"D_B\",destblankLine.size()+\"\");\n\t\tresults.put(\"D_D\", diffLinesNo+\"\");\n\t\t\n\t\tresults.put(\"flag\",areEqual+\"\");\n\t\t\n\t\treturn results;\n\t}", "title": "" }, { "docid": "2de8175718669d4c8e84071b18795311", "score": "0.53156936", "text": "public static void captureInputAndSolveTestCase() {\n\t\tScanner scn = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the path of the file: \");\n\t\tString filePath = scn.next();\n\t\tFileReader inputFile;\n\t\tBufferedReader bReader;\n\t\tSystem.out.println(\"Enter the path of the O/P file: \");\n\t\tString outFilePath = scn.next();\n\t\toutFile = new File(outFilePath);\n\n\t\tif (outFile.exists()) {\n\t\t\toutFile.delete();\n\t\t\ttry {\n\t\t\t\toutFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tinputFile = new FileReader(filePath);\n\n\t\t\tLineNumberReader lineNo = new LineNumberReader(inputFile);\n\t\t\tString line;\n\t\t\tint countOfLine = 0;\n\t\t\t// Reading the file LINE by LINE\n\t\t\twhile ((line = lineNo.readLine()) != null) {\n\t\t\t\tcountOfLine = lineNo.getLineNumber();\n\t\t\t\tif (countOfLine == 1) {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"Total count of cases in the input file is: \"\n\t\t\t\t\t\t\t\t\t+ line);\n\t\t\t\t} else {\n\t\t\t\t\tsolveTestCase(countOfLine, line);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlineNo.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"File is not found!!\");\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}", "title": "" }, { "docid": "e241862bd710cfbe8cadf3fdca24ff04", "score": "0.531353", "text": "void readAndProcessFileData(String fromFile, String toFile) throws Exception;", "title": "" }, { "docid": "022798e7611da09f461fcad89569ddb3", "score": "0.5310074", "text": "private boolean equals(InputStream stream1, InputStream stream2) {\r\n\t\tif (stream1 == stream2)\r\n\t\t\treturn true;\r\n\t\tif (stream1 == null || stream2 == null)\r\n\t\t\treturn false;\r\n\r\n\t\t// Cannot compare, so assume not equal.\r\n\t\t//\r\n\t\tif (!stream1.markSupported() || !stream2.markSupported())\r\n\t\t\treturn false;\r\n\r\n\t\ttry {\r\n\t\t\tstream1.reset();\r\n\t\t\tstream2.reset();\r\n\t\t\t// ! int count = 0;\r\n\t\t\t// ! Diagnostic.println(\"stream1 length: \" + stream1.available());\r\n\t\t\t// ! Diagnostic.println(\"stream2 length: \" + stream2.available());\r\n\r\n\t\t\tint count = 1;\r\n\t\t\tint count2;\r\n\t\t\tbyte[] buf = new byte[1024];\r\n\t\t\tbyte[] buf2 = new byte[1024];\r\n\t\t\twhile (count > 0) {\r\n\r\n\t\t\t\tcount = stream1.read(buf);\r\n\t\t\t\tcount2 = stream2.read(buf2);\r\n\t\t\t\t// ! ++count;\r\n\t\t\t\tif (count != count2) {\r\n\t\t\t\t\t// ! Diagnostic.println(count +\" ch: \"+ch+\" ch2: \"+ch2);\r\n\t\t\t\t\t// ! Diagnostic.println(\"mismatch: \"+stream1+\" \"+stream2);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tfor (int index = 0; index < count; ++index) {\r\n\t\t\t\t\tif (buf[index] != buf2[index])\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException ex) {\r\n\t\t\tDiagnosticJLimo.println(\"IOException hit:\");\r\n\t\t\tDiagnosticJLimo.printStackTrace(ex);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "309f714fc017f4d91a84fc40d19bbcd9", "score": "0.5298811", "text": "String readWholeInputFile();", "title": "" }, { "docid": "d631c2171d714d8ced47e20af60a594c", "score": "0.5292231", "text": "private boolean isContentIdentical(InputStream isLeft, InputStream isRight) throws IOException {\n\t\tint sizeLeft = isLeft.available();\n\t\tint sizeRight = isRight.available();\n\n\t\tif (sizeLeft != sizeRight) {\n\t\t\treturn false;\n\t\t}\n\n\t\t/*\n\t\t * FileUtil provides the toString method, but an ABAP source file could be very big,\n\t\t * direct using String could cause memory problem.\n\t\t */\n\t\tBufferedReader rdLeft = new BufferedReader(new InputStreamReader(isLeft));\n\t\tBufferedReader rdRight = new BufferedReader(new InputStreamReader(isRight));\n\n\t\tString textLineLeft, textLineRight;\n\t\twhile ((textLineLeft = rdLeft.readLine()) != null) {\n\t\t\ttextLineRight = rdRight.readLine();\n\t\t\tif (textLineRight == null || textLineLeft.compareTo(textLineRight) != 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1e5ab6467774a239033b977c50c5ff68", "score": "0.5286448", "text": "public static void main(String[] args) {\n System.out.println(\"Task 1\");\n Predicate<String> startWithA = (x)->x.startsWith(\"A\");\n Predicate<String> ifEmpty = String::isEmpty;\n Predicate<String> ifNotEmpty = ifEmpty.negate();\n Predicate<String> task1 = ifNotEmpty.and(startWithA);\n try(BufferedReader reader = new BufferedReader(new FileReader(\"input.txt\"))){\n reader.lines().filter(task1).map(String::toUpperCase).forEach(System.out::println);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n System.out.println(\"\\nTask 2\");\n // TODO 2: read from a txt file, if line is upper case then convert to lower case, and vice versa, and write back to a different file\n try(BufferedReader reader = new BufferedReader(new FileReader(\"input.txt\")))\n {\n Consumer<String> writeLine = (x)->{\n// try {\n// writer.write(x);\n// writer.newLine();\n// } catch(IOException e){\n// e.printStackTrace();\n// }\n };\n\n reader.lines().map(StringUtils::swapCase).forEachOrdered(writeLine);\n File file = new File(\"output.txt\");\n FileUtils.writeLines(file, reader.lines()\n .map(StringUtils::swapCase)\n .collect(Collectors.toList()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "19630d822ec7597150f2a431f6a0853e", "score": "0.5259224", "text": "@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) throws FileNotFoundException {\n\t\tScanner trainlabelsscanner = new Scanner(new File(\"trainlabels.txt\"));\n\t\tScanner testlabelsscanner = new Scanner(new File(\"testlabels.txt\"));\n\t\tScanner traindatascan = new Scanner(new File(\"traindata.txt\"));\n\t\tScanner testdatascan = new Scanner(new File(\"testdata.txt\"));\n\t\tScanner stoplistscan= new Scanner (new File(\"stoplist.txt\"));\n\t\t\n\t\tArrayList<Integer> trainlabels = new ArrayList<Integer>();\n\t\tArrayList<Integer> testlabels = new ArrayList<Integer>();\n\t\tArrayList<String> traindata = new ArrayList<String>();\n\t\tArrayList<String> testdata = new ArrayList<String>();\n\t\tArrayList<String> stoplist = new ArrayList<String>();\n\t\t\n\t\twhile(trainlabelsscanner.hasNextInt()){\n\t\t\ttrainlabels.add(trainlabelsscanner.nextInt());\n\t\t}\n\t\twhile(testlabelsscanner.hasNextInt()){\n\t\t\ttestlabels.add(testlabelsscanner.nextInt());\n\t\t}\n\t\twhile(traindatascan.hasNext()){\n\t\t\ttraindata.add(traindatascan.nextLine());\n\t\t}\n\t\twhile(testdatascan.hasNext()){\n\t\t\ttestdata.add(testdatascan.nextLine());\n\t\t}\n\t\twhile(stoplistscan.hasNext()){\n\t\t\tstoplist.add(stoplistscan.nextLine());\n\t\t}\n\t\tSystem.out.println(\"Question 1\");\n\t\tArrayList<Integer> q1newlabels = checkthelines(traindata ,stoplist , trainlabels , traindata);\n\t\tSystem.out.println(trainlabels.toString());\n\t\tSystem.out.println(q1newlabels.toString());\n\t\tcheckprecentage(q1newlabels ,trainlabels ); \n\t\tSystem.out.println(\"Question 2\");\n\t\tArrayList<Integer> newlabels = checkthelines(traindata ,stoplist , trainlabels , testdata);\n\t\tSystem.out.println(newlabels.toString());\n\t\tSystem.out.println(testlabels.toString());\n\t\tcheckprecentage(newlabels ,testlabels ); \n\t\tcheckOpposites(traindata , stoplist, trainlabels);\n//\t\tSystem.out.println(countwords.toString());\n\n//\t\tSystem.out.println(stoplist.toString());\n//\t\tSystem.out.println(testdata.toString());\n\n//\t\tSystem.out.println(trainlabels.toString());\n\n\t\t\n\t\t \n\t}", "title": "" }, { "docid": "c77987ba84a023a9856c34486e402ae5", "score": "0.5244761", "text": "public static void main(String[] args) {\n\n try {\n\n System.out.println(\"Starting process..\");\n System.out.println(\"args[0]: \" + args[0]);\n System.out.println(\"args: \" + args.toString());\n // First we need an input reader\n\n final String inputSuffix = \"in\";\n final String inputSubfolder = \"input\";\n final String outputSuffix = \"out\";\n final String outputSubfolder = \"output\";\n\n final String fileName = args[0];\n\n FileReader fileReader = new FileReader(\"./\" + inputSubfolder + \"/\" + fileName + \".\" + inputSuffix);\n FileWriter fileWriter = new FileWriter(\"./\" + outputSubfolder + \"/\" + fileName + \".\" + outputSuffix);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n\n //InputReader inputReader = new InputReader(fileName, inputSubfolder, inputSuffix);\n //inputReader.startReadingFile();\n\n /*******************************************************************************************************\n *******************************************************************************************************/\n\n String line = bufferedReader.readLine();\n Integer t = Integer.valueOf(line);\n System.out.println(\"Test Cases: \" + t);\n\n HashSet<Integer> allIntegers = new HashSet<Integer>();\n allIntegers.add(0);\n allIntegers.add(1);\n allIntegers.add(2);\n allIntegers.add(3);\n allIntegers.add(4);\n allIntegers.add(5);\n allIntegers.add(6);\n allIntegers.add(7);\n allIntegers.add(8);\n allIntegers.add(9);\n\n\n for (int i = 0; i < t; i++) {\n //System.out.println(\"Test Case \" + (i+1) + \":\");\n\n line = bufferedReader.readLine();\n Integer n = Integer.valueOf(line); // starting number\n Integer k = 0; // currentNumber\n Integer s = 0; // steps passed\n\n HashSet<Integer> passedIntegers = new HashSet<Integer>();\n\n if (n == 0) {\n // This is a fail case...\n bufferedWriter.write(\"Case #\" + (i+1) + \": \" + \"INSOMNIA\");\n bufferedWriter.newLine();\n continue;\n }\n\n //while (!passedIntegers.containsAll(allIntegers) && s < 50) {\n while (passedIntegers.size() < 10) {\n s += 1;\n k += n;\n //System.out.println(\"Test case \" + i + \" step \" + s);\n //System.out.print(passedIntegers.size());\n\n // Build char array.\n String number = k.toString();\n for (int j = 0; j < number.length(); j++) {\n passedIntegers.add(Integer.valueOf(number.charAt(j)));\n }\n\n }\n\n System.out.println(\"Test case \" + (i+1) + \" steps \" + s + \"last number \" + k);\n bufferedWriter.write(\"Case #\" + (i+1) + \": \" + k);\n bufferedWriter.newLine();\n\n\n }\n\n bufferedReader.close();\n bufferedWriter.close();\n\n\n\n } catch(Exception e) {\n System.out.println(\"Failed to read or write file...\");\n }\n\n }", "title": "" }, { "docid": "769c5e2341d45a4d15b3ba7e50bc57d2", "score": "0.5235494", "text": "public static void main(String[] args) throws java.io.FileNotFoundException { \n\t\tIn in = new In(args[0]);\n\n\t\t// Storing file input in an array\n\t\tint[] a = in.readAllInts();\n\n\t\tint[] b = a.clone();\n\t\tArrays.sort(b);\n\n\t\tint[] c = b.clone();\n\t\t// https://stackoverflow.com/a/2137791/1198896\n\t\tfor (int i = 0; i < c.length / 2; i++) {\n\t\t\tint tmp = c[i];\n\t\t\tc[i] = c[c.length - i - 1];\n\t\t\tc[c.length - i - 1] = tmp;\n\t\t}\n\n\t\tint[] d = b.clone();\n\t\tRandom r = new Random();\n\t\tfor (int i = d.length / 10; i > 0; i--) {\n\t\t\tint idx = r.nextInt(d.length),\n\t\t\t\t\tidx2 = r.nextInt(d.length),\n\t\t\t\t\ttmp = d[idx];\n\t\t\td[idx] = d[idx2];\n\t\t\td[idx2] = tmp;\n\t\t}\n\t\t// So it gets GC'd\n\t\tr = null;\n\n\t\tString algorithmUsed;\n\t\tswitch (args[1]) {\n\t\tcase \"0\":\n\t\t\talgorithmUsed = \"Arrays.sort()\";\n\t\t\tbreak;\n\t\tcase \"1\":\n\t\t\talgorithmUsed = \"bubble sort\";\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\talgorithmUsed = \"selection sort\";\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\talgorithmUsed = \"insertion sort\";\n\t\t\tbreak;\n\t\tcase \"4\":\n\t\t\talgorithmUsed = \"mergesort\";\n\t\t\tbreak;\n\t\tcase \"5\":\n\t\t\talgorithmUsed = \"quicksort\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\talgorithmUsed = \"unknown\";\n\t\t}\n\n\n\t\tString arrayUsed = null;\n\t\tfor (int _i = 0; _i < 4; _i++) {\n\t\t\tint[] arr = null;\n\t\t\tswitch (_i) {\n\t\t\tcase 0:\n\t\t\t\tarr = a;\n\t\t\t\tarrayUsed = \"a\";\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tarr = b;\n\t\t\t\tarrayUsed = \"b\";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tarr = c;\n\t\t\t\tarrayUsed = \"c\";\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tarr = d;\n\t\t\t\tarrayUsed = \"d\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tStopwatch timer = new Stopwatch();\n\n\t\t\tswitch (algorithmUsed) {\n\t\t\tcase \"Arrays.sort()\":\n\t\t\t\tArrays.sort(arr);\n\t\t\t\tbreak;\n\t\t\tcase \"bubble sort\":\n\t\t\t\t// XXX test\n\t\t\t\tboolean finished = false;\n\t\t\t\twhile (!finished) {\n\t\t\t\t\tfinished = true;\n\t\t\t\t\tfor (int i = 0; i < arr.length - 1; i++) {\n\t\t\t\t\t\tif (arr[i] > arr[i+1]) {\n\t\t\t\t\t\t\tint tmp = arr[i+1];\n\t\t\t\t\t\t\tarr[i+1] = arr[i];\n\t\t\t\t\t\t\tarr[i] = tmp;\n\t\t\t\t\t\t\tfinished = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"selection sort\":\n\t\t\t\t// Source: slides\n\t\t\t\tint j, k;\n\t\t\t\tfor (int i = 0; i < arr.length - 1; i++) {\n\t\t\t\t\tj = i;\n\t\t\t\t\tfor (k = i+1; k < arr.length; k++) {\n\t\t\t\t\t\tif (arr[k] < arr[j]) j=k;\n\t\t\t\t\t}\n\t\t\t\t\tif (j != i) swap(arr, i, j);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"insertion sort\":\n\t\t\t\t// Source: slides\n\t\t\t\tint temp;\n\t\t\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\t\t\ttemp = arr[i];\n\t\t\t\t\tj = i - 1;\n\t\t\t\t\twhile (j >= 0 && arr[j] > temp) {\n\t\t\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\tarr[j+1] = temp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"mergesort\":\n\t\t\t\tMergeSort(arr);\n\t\t\t\tbreak;\n\t\t\tcase \"quicksort\":\n\t\t\t\trecursive_qs(arr, 0, arr.length - 1);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tdouble time = timer.elapsedTimeMillis();\n\t\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\t\tString netID = \"ajord17\";\n\t\t\tStdOut.printf(\"%s %s %8.1f %s %s %s\\n\", algorithmUsed, arrayUsed, time, timeStamp, netID, args[0]);\n\n\t\t\t// https://stackoverflow.com/a/2885224/1198896\n\t\t\tPrintWriter writer = new PrintWriter(arrayUsed + \".txt\");\n\t\t\tfor (int num: arr) {\n\t\t\t\twriter.println(num);\n\t\t\t}\n\t\t\twriter.close();\n\t\t}\n\t}", "title": "" }, { "docid": "d70d3106e2a1d9488015a223c005af64", "score": "0.52337897", "text": "public static boolean contentEquals( final InputStream input1, final InputStream input2 )\n throws IOException\n {\n final InputStream bufferedInput1 = new BufferedInputStream( input1 );\n final InputStream bufferedInput2 = new BufferedInputStream( input2 );\n\n int ch = bufferedInput1.read();\n while ( 0 <= ch )\n {\n final int ch2 = bufferedInput2.read();\n if ( ch != ch2 )\n {\n return false;\n }\n ch = bufferedInput1.read();\n }\n\n final int ch2 = bufferedInput2.read();\n if ( 0 <= ch2 )\n {\n return false;\n }\n else\n {\n return true;\n }\n }", "title": "" }, { "docid": "956b1cbb2c628dd847a718fda13a8320", "score": "0.5233109", "text": "public static void main(String[] args) throws FileNotFoundException {\n\t\tInputStream inputStream= new FileInputStream(\"E:\\\\Eclipse\\\\workspace\\\\Codeforces\\\\src\\\\input.txt\");\n\t\t\n\t\t//InputStream inputStream= System.in;\t\n\t\tInput in=new Input(inputStream);\n\t\t\t\t\n\t\t\n\t\tint cases=Integer.parseInt(in.nextString()),temp,low=Integer.MAX_VALUE;\n\t\tlong ans=0;\n\t\twhile(cases-->0){\n\t\t\ttemp=Integer.parseInt(in.nextString());\n\t\t\tif(temp%2==1 && low>temp)low=temp;\n\t\t\tans+=temp;\n\t\t\t\n\t\t}\n\t\t\n\t\tif(ans%2==1)ans-=low;\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "0b0a80e0736a46e091ebb592a807071f", "score": "0.5227893", "text": "public static void main(String[] args) {\n\t\tNumericalReader nr1 = new NumericalReader(); \r\n\t\tNumericalReader nr2 = new NumericalReader();\r\n\t\tString line = \"\";\r\n\t\tString saveDir = \"\";\r\n\t\t\r\n\t\t// get directory to saving files\r\n\t\ttry {\r\n\t\t\tsaveDir = NumericalReader.getStringFromKeyboard();\r\n\t\t\t} \r\n\t\tcatch (java.io.IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t// run analysis on first file\r\n\t\ttry {\r\n\t\t\tnr1.fileLoc = (saveDir + File.separator + \"numbers1.txt\");\r\n\t\t\tSystem.out.println(\"Saving to \" + nr1.fileLoc);\r\n\t\t\tnr1.analysisStart(nr1.fileLoc);\r\n\r\n\t\t\t// Creates BufferedReader object from a web page\r\n\t\t\tBufferedReader webBuffer1 = nr1.brFromURL(\"http://www.hep.ucl.ac.uk/undergrad/3459/data/module4/module4_data1.txt\");\r\n\t\t\t// Prints each number until readLine returns a null (empty) line\r\n\t\t\twhile ((line = webBuffer1.readLine()) != null) {\r\n\t\t\tnr1.analyseData(line);\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (java.io.IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\tnr1.analysisEnd(); // Print min, max, average, total\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t// run analysis on second file\r\n\t\ttry {\r\n\t\t\tnr2.fileLoc = (saveDir + File.separator + \"numbers2.txt\");\r\n\t\t\tSystem.out.println(\"Saving to \" + nr2.fileLoc);\r\n\t\t\tnr2.analysisStart(nr2.fileLoc);\r\n\r\n\t\t\t// Creates BufferedReader object from a web page\r\n\t\t\tBufferedReader webBuffer2 = nr2.brFromURL(\"http://www.hep.ucl.ac.uk/undergrad/3459/data/module4/module4_data2.txt\");\r\n\t\t\t// Prints each number until readLine returns a null (empty) line\r\n\t\t\twhile ((line = webBuffer2.readLine()) != null) {\r\n\t\t\tnr2.analyseData(line);\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (java.io.IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\tnr2.analysisEnd(); // Print min, max, average, total\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "e7fc3e0cfe44079281d416d630e3d843", "score": "0.52174366", "text": "private static void readInFile(String filename) {\n Scanner input;\n\n try {\n File file = new File(filename);\n input = new Scanner(file);\n\n boolean verticesPortion = false;\n boolean dataPortion = false;\n boolean functionPortion = false;\n\n while (input.hasNextLine()) {\n data.add(input.nextLine());\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found. Please input another file.\");\n }\n }", "title": "" }, { "docid": "d5d7b1c03068123d010674cf7bf33e36", "score": "0.5212994", "text": "public void processCaseComparison() {\r\n \ttry {\r\n \t\tFileReader vsDirAbsPath = new FileReader(caseCompareDir);\r\n \t\tBufferedReader inputStream = new BufferedReader(vsDirAbsPath);\r\n \t\tString line = null;\r\n \t\tString []tokens;\r\n \t\tint firstCase;\r\n \t\tint secondCase;\r\n \t\twhile ( ( line = inputStream.readLine() ) != null ) {\r\n \t\t\t tokens = line.split(\"\\\\s+\");\r\n \t\t\t firstCase = Integer.valueOf(tokens[0]);\r\n \t\t\t secondCase = Integer.valueOf(tokens[2]);\r\n \t\t\t cases.add(new caseComparison(firstCase, secondCase));\r\n \t\t}\r\n \t\t\r\n \t\t\r\n \t} catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "1facec4416175e43aa5a70e46eb26b0a", "score": "0.52076423", "text": "public boolean join(String[] args) {\n if ( args == null ) {\n General.doErrorExit(\"Expected three arguments but got null\");\n }\n if ( args.length != 3 ) {\n General.doErrorExit(\"Expected three arguments but got: \" + args.length + General.eol +\n \". They were: \" + Strings.toString(args)); \n }\n if ( ! InOut.filesExist(new String[] {args[0], args[1] })) {\n General.showError(\"At least on of the input files does not exist.\");\n return false;\n }\n \n \n long start = System.currentTimeMillis(); \n String f1_txt = InOut.readTextFromUrl(InOut.getUrlFileFromName(args[0]));\n if ( f1_txt == null ) {\n General.showError(\"Failed to read from: \" + args[0]);\n }\n String f2_txt = InOut.readTextFromUrl(InOut.getUrlFileFromName(args[1]));\n if ( f2_txt == null ) {\n General.showError(\"Failed to read from: \" + args[0]);\n }\n long taken = System.currentTimeMillis() - start;\n General.showDebug(\"Read took : \" + taken + \"(\" + (taken/1000.0) + \" sec)\" ); \n int endIdx = f2_txt.indexOf('\\n');\n if ( endIdx < 0 ) {\n endIdx=f2_txt.length();\n }\n String beginLine = f2_txt.substring(0,endIdx);\n if ( ! f2_txt.startsWith(\"data_\") ) {\n General.showError(\"Second file does not start with data_ as expected but with: \" + beginLine);\n return false; \n }\n String secondFileTxtToKeep = \"\";\n if ( endIdx!=f2_txt.length()) {\n secondFileTxtToKeep = f2_txt.substring(endIdx+1);\n }\n \n String totalTxt = f1_txt + secondFileTxtToKeep;\n InOut.writeTextToFile(new File(args[2]),totalTxt,true,false);\n return true;\n }", "title": "" }, { "docid": "f66714b2aa8a24a34c60db39d9855de9", "score": "0.52000386", "text": "public static void main(String[] args) throws IOException{\n\t\tScanner reader = new Scanner(new File(\"DATA11.txt\"));\n\t\tfor (int t = 0; t < 10; t++){\n\t\tin = reader.nextLine();\n\t\tint min = 10000000;\n\t\tint temp;\n\t\tfor (int i = 0; i < in.length(); i++){\n\t\t\ttemp = check(i);\n\t\t\tif (temp < min){\n\t\t\t\tmin = temp;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min);\n\t\t}\n\t}", "title": "" }, { "docid": "bcd7471124a4ffdc80216964961277cb", "score": "0.51994723", "text": "@Test\n public void testWithValidInput() {\n converter.convert();\n try (BufferedReader br = new BufferedReader(new FileReader(OUTPUT_RESULT_LOCATION))) {\n String currentLine;\n int count = 0;\n while ((currentLine = br.readLine()) != null) {\n Assert.assertEquals(\"2013-07-10 02:52:49,-44.490947,171.220966,Pacific/Auckland,2013-07-10 14:52:49\", currentLine);\n count++;\n }\n Assert.assertEquals(1, count);\n } catch (IOException e) {\n Assert.fail(\"Did not expected any exception \" + e);\n }\n }", "title": "" }, { "docid": "dab2bf6ab4730f85f41e236b321147dd", "score": "0.51967305", "text": "@Test\n public void testMultipleInputToDirectoryWithTheSameFile() throws Throwable {\n File outputFileBar = new File(outputDirPath + \"bar.html\");\n File inputFileBar1 = new File(inputDirPath + \"bar.html\");\n File inputFileBar2 = new File(inputDirPath + \"other/bar.html\");\n String[] args = {\n \"-o\",\n outputDirPath,\n inputDirPath,\n inputDirPath + \"/other/\",\n };\n\n try {\n getInputOutputMap(args);\n Assert.fail(\"Exception was expected.\");\n } catch (Exception e) {\n Assert.assertEquals(\n e.getMessage(),\n String.format(\n \"The output file \\\"%s\\\" will used from the two input files \\\"%s\\\" and \\\"%s\\\".\",\n outputFileBar.getAbsolutePath(),\n inputFileBar1.getAbsolutePath(),\n inputFileBar2.getAbsolutePath()\n )\n );\n }\n }", "title": "" }, { "docid": "3d1ee2b0b4cd59226a4c0a806aee7039", "score": "0.5187665", "text": "public static void main(String[] args) throws IOException {\n String file1=\"Aacl.txt\";\n String file2=\"packet.txt\";\n \n File f1 = new File(file1);\n Scanner s1=new Scanner(f1);\n File f2 = new File(file2);\n\n \n \n if (f1.exists()){\n if (s1.hasNext()){\n String acl = s1.nextLine();\n String[] words = acl.split(\" \"); //slits words into arrays\n int type = Integer.parseInt(words[1]); \n if(type > 0 && type < 100 ){\n System.out.println(\"ACL\");\n acl(f1,f2);\n }\n if(type > 99 && type < 200 ){\n System.out.println(\"ADVANCED ACL\");\n Advanedacl(f1,f2);\n } \n }\n }\n \n \n \n }", "title": "" }, { "docid": "dfb2481dd10ac45145091a26e6a6d5eb", "score": "0.51856273", "text": "public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer tok, tok2;\n\t\tint count, matches;\n\t\ttry {\n\t\t\twhile(true) {\n\t\t\t\tcount = matches = 0;\n\t\t\t\ttok = new StringTokenizer(in.readLine());\n\t\t\t\ttok2 = new StringTokenizer(in.readLine());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\twhile(tok.hasMoreTokens()) {\n\t\t\t\t\t++count;\n\t\t\t\t\tmatches += (tok.nextToken().charAt(0) == tok2.nextToken().charAt(0)) ? 1 : 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(count == matches ? \"yes\" : \"no\");\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {}\n\t}", "title": "" }, { "docid": "0036a3e312fd7344e6f420e9ba572061", "score": "0.51688296", "text": "public void read_file()\r\n{ \r\ntry \r\n\t{\r\n\t\r\n\t\ttrainsource = new DataSource(source_file_path);\r\n\t\ttrains = trainsource.getDataSet();\r\n\t\ttrains.setClassIndex(0);\r\n\t\t\r\n\t\ttestsource = new DataSource(target_file_path);\r\n\t\ttests = testsource.getDataSet();\r\n\t\t\r\n\t\ttests.setClassIndex(0);\r\n\t\t\r\n\t\tinstance_count_source = trains.numInstances();\r\n\t\tinstance_count_target = tests.numInstances();\r\n\t\t\r\n\t\t//System.out.println(\"Instance count source =\"+ instance_count_source + \" Instance count target=\"+ instance_count_target);\r\n \r\n\t} catch (Exception e) \r\n\t{\r\n\t\r\n\t\te.printStackTrace();\r\n\t}\t \r\n\t\r\n}", "title": "" }, { "docid": "0c5117bd279f3ef6a3b0da962e81bf03", "score": "0.51663196", "text": "@Override\n public void compareDataStructures() {\n try {\n for (String s : fileNames) {\n // Reset local references\n System.out.println(\"Trying \" + s);\n currentFileName = s;\n hashTable = new HashTable<Object,Object>(100000000,0.75);\n treeMap = new TreeMap<Object,Object>();\n // new loadData method call will populate appropriate inputData\n inputData.clear();\n \n System.out.println(\"Loading Data...\");\n loadData(dataFile + File.separator + s);\n \n System.out.println(\"Comparing Insertion...\");\n compareInsertion();\n System.out.println(\"Comparing Search...\");\n compareSearch();\n System.out.println(\"Comparing Deletion...\");\n compareDeletion();\n System.out.println();\n hashTable.clear();\n treeMap.clear();\n } \n } catch (IOException e) {\n \n }\n }", "title": "" }, { "docid": "4c29ae7b1bac9a807846b3a5260c9b50", "score": "0.51595414", "text": "public static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tFastReader scan=new FastReader();\n\t\tint t=scan.nextInt();\n\t\tfor(int i=0;i<t;i++)\n\t\t{\n\t\t\tint f=scan.nextInt();\n\t\t\tint c=scan.nextInt();\n\t\t\tlong []fs=new long[f];\n\t\t\tfor(int j=0;j<fs.length;j++)\n\t\t\t{\n\t\t\t\tfs[j]=scan.nextLong();\n\t\t\t}\n\t\t\tlong []cs=new long[c];\n\t\t\tfor(int j=0;j<cs.length;j++)\n\t\t\t{\n\t\t\t\tcs[j]=scan.nextLong();\n\t\t\t}\n\t\t\t\n\t\t\tint count=0;\n\t\t\tboolean flag=false;\n\t\t\tif(f>=c)\n\t\t\t{\n\t\t\t\tflag=true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tflag=false;\n\t\t\t\t\n\t\t\t}\n\t\t\tint j=0;\n\t\t\tint k=0;\n\t\t\tlong time=0;\n\t\t\tboolean tv=false;\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\t\n//\t\t\t\tSystem.out.println(\"j=\"+j);\n//\t\t\t\tSystem.out.println(\"k=\"+k);\n\t\t\t\tif(j>=fs.length)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(k>=cs.length)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(time==fs[j])\n\t\t\t\t{\n\t\t\t\t\tif(tv==false)\n\t\t\t\t\t{\n//\t\t\t\t\twatching football\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n//\t\t\t\t\t\tswitch to football\n\t\t\t\t\t\tcount+=1;\n\t\t\t\t\t\ttv=false;\n\t\t\t\t\t}\n\t\t\t\t\tj+=1;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t\tif(time==cs[k])\n\t\t\t\t{\n\t\t\t\t\tif(tv==false)\n\t\t\t\t\t{\n\t\t\t\t\t\tcount+=1;\n\t\t\t\t\t\ttv=true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tk+=1;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(j>=fs.length)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(k>=cs.length)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttime=Math.min(fs[j], cs[k]);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(j<=fs.length-1)\n\t\t\t{\n\t\t\t\tif(tv==true)\n\t\t\t\t{\n\t\t\t\t\tcount+=1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(k<=cs.length-1)\n\t\t\t{\n\t\t\t\tif(tv==false)\n\t\t\t\t{\n\t\t\t\t\tcount+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"\"+count);\n\t\t\n\t\t}\n\t\t\n\t\t\n//\t\t3 1\n//\t\t100 200 300\n//\t\t1\n//\t\t1 2\n//\t\t1\n//\t\t100 200\n\t}", "title": "" }, { "docid": "ff10f4a2ca86abb8351d55858eea48c9", "score": "0.51582795", "text": "@Test\n public void testAllSchubsL() throws IOException\n {\n // prove the duplicates in schubsL actually match so we can test with them\n String folderPath = \"src\" + File.separator + \"resources\" + File.separator + \"schubsL\";\n same(folderPath);\n\n String abra = folderPath + File.separator + \"abra.txt\";\n String gosia = folderPath + File.separator + \"gosia.txt\";\n String input = folderPath + File.separator + \"input.txt\";\n\n // compress all the .txt files in src/resources/schubsH\n SchubsL lzw = new SchubsL();\n lzw.main(new String[] {abra, gosia, input});\n\n // delete the original files\n File one = new File(abra);\n File two = new File(gosia);\n File three = new File(input);\n one.delete();\n two.delete();\n three.delete();\n\n // expand the compressed files\n Deschubs expand = new Deschubs();\n expand.main(new String[] {abra + \".ll\", gosia + \".ll\", input + \".ll\"});\n\n // compare all the files\n boolean match = filesSame(abra, folderPath + File.separator + \"abra2.txt\") && filesSame(gosia, folderPath + File.separator + \"gosia2.txt\") &&\n filesSame(input, folderPath + File.separator + \"input2.txt\");\n\n // delete the compressed files\n File oneH = new File(abra + \".ll\");\n File twoH = new File(gosia + \".ll\");\n File threeH = new File(input + \".ll\");\n oneH.delete();\n twoH.delete();\n threeH.delete();\n\n // make sure the files all expanded correctly\n assertEquals(match, true);\n }", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.5147499", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.5147499", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.5147499", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.5147499", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.5147499", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.5147499", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.5147499", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.5147499", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.5147499", "text": "boolean hasSource();", "title": "" }, { "docid": "0c568001891512168cb3c9c9cdbf6553", "score": "0.51462793", "text": "public Comparison compare(File file1, File file2) {\n\t\tSystem.out.println(file1.getAbsolutePath());\r\n\t\tSystem.out.println(file2.getAbsolutePath());\r\n\t\tResourceSet resourceSet1 = new ResourceSetImpl();\r\n\t\tResourceSet resourceSet2 = new ResourceSetImpl();\r\n\t\t//resourceSet1.\r\n\t\tString xmi1 = file1.getAbsolutePath();\r\n\t\tString xmi2 = file2.getAbsolutePath();\r\n\t\t// change to metamodel for simulink\r\n\t\t//Resource metamodel =loadMetamodel();\r\n\t\tResource metamodel =loadMetamodel();\r\n\t\tResource model1 = load(xmi1, resourceSet1);\r\n\t\tResource model2= load(xmi2, resourceSet2);\r\n\t\tsetResourceMetamodel(metamodel);\r\n\t\tsetResourceModel1(model1);\r\n\t\tsetResourceModel2(model2);\r\n\t\tfor (EObject obj: model1.getContents()) {\r\n\t\t\t//System.out.println(\"te\" + obj.eContents());\r\n\t\t\tfor(EObject ob: obj.eContents()) {\r\n\t\t\t\t//System.out.println(\"te\" + ob.eContents());\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (EObject obj: model2.getContents()) {\r\n\t\t\tfor(EObject ob: obj.eContents()) {\r\n\t\t\t\t//System.out.println(\"teggg\" + ob.eContents());\r\n\t\t\t}\r\n\t\t}\r\n\t\t//EObject obj = model1.getContents().get(0);\r\n\t\t//System.out.println(obj.eContents().get(0).eContents());\r\n\t\t//System.out.println(resourceSet1);\r\n\r\n\t\t// Configure EMF Compare\r\n\t\tFunction<EObject, String> idFunction = new Function<EObject, String>() {\r\n\t\t\tpublic String apply(EObject input) {\r\n\t\t\t\t//System.out.println(\"input \"+input.eClass());\r\n\t\t\t\t\r\n\t\t\t\t//System.out.println(input.eResource());\r\n\t\t\t\tif (input.eClass() instanceof EClass) {\r\n\t\t\t\t\t//System.out.println(\"input \"+input.eClass().getName());\r\n\t\t\t\t\t//return input.eClass().getName();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t//System.out.println(\"goal\");\r\n\t\t\t\t}\r\n\t\t\t\t// a null return here tells the match engine to fall back to the other matchers\r\n\t\t\t\treturn null;\r\n\t\t\t\t//return \"BlockDiagram\";\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t/**\r\n\t\t Default matcher\r\n\t\tIEObjectMatcher matcher = DefaultMatchEngine.createDefaultEObjectMatcher(UseIdentifiers.NEVER);\r\n\t\t//matcher.\r\n\t\tIComparisonFactory comparisonFactory = new DefaultComparisonFactory(new DefaultEqualityHelperFactory());\r\n\t\tIMatchEngine.Factory matchEngineFactory = new MatchEngineFactoryImpl(matcher, comparisonFactory);\r\n\t matchEngineFactory.setRanking(20);\r\n\t IMatchEngine.Factory.Registry matchEngineRegistry = new MatchEngineFactoryRegistryImpl();\r\n\t matchEngineRegistry.add(matchEngineFactory);\r\n\t\tEMFCompare comparator = EMFCompare.builder().setMatchEngineFactoryRegistry(matchEngineRegistry).build();\r\n\r\n\t\t// Compare the two models\r\n\t\tIComparisonScope scope = EMFCompare.createDefaultScope(resourceSet1, resourceSet2);\r\n\t\t\r\n\t\t\r\n\t\treturn comparator.compare(scope);\r\n\t\t***/\r\n\t\tIEObjectMatcher fallBackMatcher = DefaultMatchEngine.createDefaultEObjectMatcher(UseIdentifiers.WHEN_AVAILABLE);\r\n\t\tIEObjectMatcher customIDMatcher = new IdentifierEObjectMatcher(fallBackMatcher, idFunction);\r\n\t\t \r\n\t\tIComparisonFactory comparisonFactory = new DefaultComparisonFactory(new DefaultEqualityHelperFactory());\r\n\t\t \r\n\t\tIMatchEngine.Factory.Registry registry = MatchEngineFactoryRegistryImpl.createStandaloneInstance();\r\n\t\t// for OSGi (IDE, RCP) usage\r\n\t\t// IMatchEngine.Factory.Registry registry = EMFCompareRCPPlugin.getMatchEngineFactoryRegistry();\r\n\t\tfinal MatchEngineFactoryImpl matchEngineFactory = new MatchEngineFactoryImpl(customIDMatcher, comparisonFactory);\r\n\t\tmatchEngineFactory.setRanking(20); // default engine ranking is 10, must be higher to override.\r\n\t\tregistry.add(matchEngineFactory);\r\n\t\tIComparisonScope scope = EMFCompare.createDefaultScope(resourceSet1, resourceSet2);\r\n\t\tComparison result = EMFCompare.builder().setMatchEngineFactoryRegistry(registry).build().compare(scope);\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "192977e1ebf87577ad6baa036482a840", "score": "0.5140004", "text": "@Test\n public void testOpenForTwoFiles(@Mocked final FileInput input) throws Exception\n {\n new NonStrictExpectations() {{\n taskSource.loadTask(CommonsCompressDecoderPlugin.PluginTask.class); result = task;\n task.getFormat(); result = \"tar\";\n input.nextFile(); result = true; result = false;\n input.poll(); result = getResourceAsBuffer(\"samples.tar\");\n task.getBufferAllocator(); result = newBufferAllocator();\n }};\n\n CommonsCompressDecoderPlugin plugin = new CommonsCompressDecoderPlugin();\n FileInput archiveFileInput = plugin.open(taskSource, input);\n\n verifyContents(archiveFileInput, \"1,foo\", \"2,bar\");\n\n new Verifications() {{\n input.nextFile(); times = 2;\n input.close(); times = 1;\n }};\n }", "title": "" }, { "docid": "f15bf60a1bd29b297ca6f5e583be47ab", "score": "0.5136785", "text": "private void readInputFile(String inputFile) {\r\n MyLogger.writeMessage(\"Reading bNumber & subjects which are to be added in Tree\", MyLogger.DebugLevel.StudentCoursesBackup);\r\n FileProcessor fileProcessor = new FileProcessor();\r\n insertData = fileProcessor.readLine(inputFile);\r\n\r\n for (String insertdata1 : insertData) {\r\n String[] insertStudentData = insertdata1.split(\":\");\r\n int bNumber = Integer.parseInt(insertStudentData[0]);\r\n String subject = insertStudentData[1];\r\n try {\r\n MyLogger.writeMessage(\"Addiding node to tree\", MyLogger.DebugLevel.StudentCoursesBackup);\r\n tree.addCourse(bNumber, subject);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "a7182890388a6617f86d8401309c54d5", "score": "0.51347786", "text": "public static void main(String[] args) {\n\t\tcompareBinaryFiles(\"pg30452.txt\",\"pg30452 (1).txt\");\r\n\t\t\r\n\t\t//Alexanere Dumas, Les trois mouhquetaires\r\n\t\tcompareBinaryFiles(\"pg13951.txt\",\"pg13951 (1).txt\");\r\n\t}", "title": "" }, { "docid": "27b5e1d9d11095b03a9d31fb66528647", "score": "0.511638", "text": "public static void main(String[] args) throws IOException {\n\t\tInputStreamReader x = new InputStreamReader(System.in);\r\n BufferedReader rd = new BufferedReader(x);\r\n String s ;\r\n String[]input ;\r\n boolean flag = false;\r\n while (true) {\r\n\t\t\twhile (!(s=rd.readLine().trim()).equals(\"\")) {\r\n\t\t\t\tword.add(s);\r\n\t\t\t}\r\n\t\t\twhile ((s=rd.readLine())!= null) {\r\n\t\t\t\tif(flag){\r\n\t \t\tSystem.out.println();\r\n\t \t}\r\n\t\t\t\tinput = s.split(\" \");\r\n\t\t\t\tsource = input[0];\r\n\t\t\t\tdestination = input[1];\r\n\t\t\t\tq.add(source);\r\n\t\t\t\tsequence();\r\n\t\t\t\tparent.clear();\r\n\t\t\t\tq.clear();\r\n\t\t\t\tvisited.clear();\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t} \r\n\r\n\t}", "title": "" }, { "docid": "8897cf41f61dd970cc7d04f2ca3bb176", "score": "0.511484", "text": "@Test\n\tpublic void getSimilarityScoreSameFile2() throws IOException {\n\t\tString filePath = \"src/test/resources/PlagiarismChecker-Data/set01/Sample1/LinkedList.java\";\n\t\tBufferedReader br = new BufferedReader(new FileReader(filePath));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString line = br.readLine();\n\t\twhile (line != null) {\n\t\t\tsb.append(line);\n\t\t\tline = br.readLine();\n\t\t}\n\t\tbr.close();\n\n\t\tFile f1 = EntityFactory.getInstance().makeFile();;\n\t\tf1.setName(\"LinkedList\");\n\t\tf1.setContent(sb.toString());\n\n\t\tFile f2 = EntityFactory.getInstance().makeFile();;\n\t\tf2.setName(\"LinkedList\");\n\t\tf2.setContent(sb.toString());\n\n\t\tTextDiffBasedEngine engine = TextDiffBasedEngine.instance();\n\t\tengine.calculateSimilarity(f1, f2);\n\t\tfloat score = engine.getSimilarityScore();\n\t\tassertEquals(score, 1.0f, 0.0002);\n\t}", "title": "" }, { "docid": "0f8469044d79f15de346431f79d0d29a", "score": "0.51122934", "text": "public IStack readInputFile();", "title": "" }, { "docid": "66dfebe171cf04383b9ab8234a89aa27", "score": "0.5107211", "text": "static void copyData(){\n\t\tFileOutputStream out1=null;\n\t\tFileInputStream in1=null;\n\t\tFileInputStream in2=null;\n\t\tSequenceInputStream sis=null;\n\t\t\n\t\ttry {\n\t\t\t out1 = new FileOutputStream(new File(\"C:\\\\Users\\\\sridhar\\\\Desktop\\\\IO Demo\\\\output1.txt\"));\n\t\t\t in1 = new FileInputStream(new File(\"C:\\\\Users\\\\sridhar\\\\Desktop\\\\IO Demo\\\\input1.txt\"));\n\t\t\t in2 = new FileInputStream(new File(\"C:\\\\Users\\\\sridhar\\\\Desktop\\\\IO Demo\\\\input2.txt\"));\n sis = new SequenceInputStream(in1,in2 );\n int i;\n while((i = sis.read())!= -1){\n \t out1.write(i);\n \t \n }\n }catch(FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} 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\tfinally{\n\t\t\ttry {\n\t\t\t\tout1.flush();\n\t\t\t\tout1.close();\n\t\t\t\tin1.close();\n\t\t\t\tin2.close();\n\t\t\t\tsis.close();\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "7702a407dc60edf39d52f7fcec4bef42", "score": "0.51065624", "text": "private static void validateGet(final InputStream inputStream, final File file) throws IOException {\n\n\t\tInputStream inputStream2 = null;\n\t\ttry {\n\n\t\t\tinputStream2 = new FileInputStream(file);\n\n\t\t\twhile (true) {\n\n\t\t\t\tfinal int r1 = inputStream.read();\n\t\t\t\tfinal int r2 = inputStream2.read();\n\n\t\t\t\tassertEquals(r2, r1);\n\n\t\t\t\tif (r1 < 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} finally {\n\t\t\tif (inputStream2 != null) {\n\t\t\t\tinputStream2.close();\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "904d9cdb035ac8241eb9f8545ca422d6", "score": "0.5103611", "text": "public static void Parse() {\n\t\tString file1 = \"src/input/AtomicStructure.txt\";\n\t\treadFileByLines(file1);\n\n\t}", "title": "" }, { "docid": "e6bf93d3d3c046a3e7cd5c11ed55b2a4", "score": "0.50902647", "text": "public static boolean inputStreamsEqual(InputStream is1, InputStream is2) throws IOException {\n byte b1[] = new byte[1024];\n byte b2[] = new byte[1024];\n int count;\n boolean equals;\n do {\n count = is1.read(b1, 0, 1024);\n is2.read(b2, 0, 1024);\n equals = Arrays.equals(b1, b2);\n } while (equals && count != -1);\n return equals;\n }", "title": "" }, { "docid": "e873ce8d7696feec50461c3fa0fa9b6f", "score": "0.5089682", "text": "public static void main(String[] args) throws FileNotFoundException {\n File file = new File(\"input12.txt\");\n Scanner myReader = new Scanner(file);\n System.out.println(part2(myReader));\n myReader.close();\n }", "title": "" }, { "docid": "74148dfe559d2f50176618698144658b", "score": "0.50843495", "text": "private void readFiles() {\n }", "title": "" }, { "docid": "b582348026cbfe73b3de76b9be634350", "score": "0.5067069", "text": "void streamIn(Scanner input) {\n\n // Read number of locations\n int validLocationCount = Integer.parseInt(input.next());\n assert(validLocationCount > 0);\n\n // Read valid locations\n for (int i = 0; i < validLocationCount; i++) {\n Location loc = new Location();\n loc.streamIn(input);\n this.validLocations.add(loc);\n }\n assert(this.validLocations.size() > 0);\n\n // Read start and end locations\n this.startLocation.streamIn(input);\n this.endLocation.streamIn(input);\n\n assert(this.startLocation != null);\n assert(this.endLocation != null);\n\n }", "title": "" }, { "docid": "4fdb7e964f25c15968cf358afd926737", "score": "0.50639576", "text": "public static boolean contentEquals(InputStream input1, InputStream input2) throws IOException {\r\n\t\tif (input1 == input2) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (!(input1 instanceof BufferedInputStream)) {\r\n\t\t\tinput1 = new BufferedInputStream(input1);\r\n\t\t}\r\n\t\tif (!(input2 instanceof BufferedInputStream)) {\r\n\t\t\tinput2 = new BufferedInputStream(input2);\r\n\t\t}\r\n\r\n\t\tint ch = input1.read();\r\n\t\twhile (-1 != ch) {\r\n\t\t\tfinal int ch2 = input2.read();\r\n\t\t\tif (ch != ch2) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tch = input1.read();\r\n\t\t}\r\n\r\n\t\tfinal int ch2 = input2.read();\r\n\t\treturn ch2 == -1;\r\n\t}", "title": "" }, { "docid": "8ccc6cbe29dcad9d1e36c27e59a55af7", "score": "0.50637406", "text": "protected void validateSourceFile(SourceFile[] param){\n \n }", "title": "" }, { "docid": "0da8675744f3c6bfed0ec7028b0c9c71", "score": "0.5047864", "text": "void assertFilesIdentical(File file1, File file2) throws Exception {\n\n // this asserts the file was created\n file2 = new File(file2.getAbsolutePath());\n Assert.assertTrue(file2.exists());\n\n // now assert contents are byte-wise identical\n FileInputStream localFis, remoteFis;\n localFis = new FileInputStream(file1);\n remoteFis = new FileInputStream(file2);\n\n byte[] localBuf = new byte[32], remoteBuf = new byte[32];\n while (true) {\n int ln = localFis.read(localBuf, 0, localBuf.length);\n int rn = remoteFis.read(remoteBuf, 0, remoteBuf.length);\n Assert.assertEquals(ln, rn);\n Assert.assertArrayEquals(localBuf, remoteBuf);\n if (ln < 1)\n break;\n }\n remoteFis.close();\n localFis.close();\n }", "title": "" }, { "docid": "82ecd518955fa5dbcebac76169e7cd81", "score": "0.50395715", "text": "public Protein[] readFiles(){\r\n int format = fileFormat();\r\n String file1, file2;\r\n Protein[] seq = new Protein[2];\r\n System.out.println(\"Please give the filename for the first sequence\");\r\n Scanner scan = new Scanner(System.in);\r\n file1 = scan.nextLine();\r\n File f1 = new File(file1);\r\n System.out.println(\"Please give the filename for the second sequence\");\r\n file2 = scan.nextLine();\r\n File f2 = new File(file2);\r\n if(format == 1){\r\n seq[0] = readFastaFile(f1);\r\n seq[1] = readFastaFile(f2);\r\n }else{\r\n seq[0] = readUniprotFile(f1);\r\n seq[1] = readUniprotFile(f2);\r\n }\r\n return seq;\r\n }", "title": "" }, { "docid": "f3033171e7f6551cba0d41f610168778", "score": "0.50342244", "text": "protected void preprocessing() {\r\n String sourceInputFolder = input + File.separator + sourceLang;\r\n String targetInputFolder = input + File.separator + targetLang;\r\n File origSourceFile = new File(getSourceFile());\r\n File inputSourceFile = new File(sourceInputFolder + File.separator + origSourceFile.getName());\r\n\r\n System.out.println(\"source input:\" + getSourceFile());\r\n System.out.println(\"target input:\" + getTargetFile());\r\n File origTargetFile = new File(getTargetFile());\r\n File inputTargetFile = new File(targetInputFolder + File.separator + origTargetFile.getName());\r\n try {\r\n System.out.println(\"copying input to \" + inputSourceFile.getPath());\r\n copyFile(origSourceFile, inputSourceFile);\r\n System.out.println(\"copying input to \" + inputTargetFile.getPath());\r\n copyFile(origTargetFile, inputTargetFile);\r\n setSourceFile(inputSourceFile.getPath());\r\n setTargetFile(inputTargetFile.getPath());\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "title": "" }, { "docid": "bf82930290c6841cbc392a5081e81875", "score": "0.50336224", "text": "protected static boolean mainInputChanged(InputStory story) {\n String previousChecksum = story.state;\n String currentChecksum = getChecksum(story.inputPath);\n // signifies that the input file was changed\n if (!currentChecksum.equals(previousChecksum)) {\n Log.debug(\"The input file \" + story.inputPath.toString() + \" has changed.\",\n IncrementalChecker.class.getName());\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "735a486fd81e18c12e4f326cdfb4ce27", "score": "0.50318146", "text": "boolean isSource();", "title": "" }, { "docid": "5f68de8dc4633ccfba30d6faa93cac26", "score": "0.50279194", "text": "public final void run()\n\t{\n\t\t// reset counters\n\t\tnumLinesRead = 0;\n\t\tnumErrors = 0;\n\n\t\t// Loop through the expressions in pairs\n\t\tlogger.debug(\"Reading and comparing expressions...\");\n\t\twhile (true)\n\t\t{\n\t\t\tboolean hasError = false;\n\t\t\tString inputStr = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Read a line\n\t\t\t\tinputStr = getNextLine(); // returns null when end of file is\n\n\t\t\t\t// Either line may be null when the end of file is reached\n\t\t\t\tif (inputStr == null)\n\t\t\t\t{\n\t\t\t\t\t// logger.info(\"Reached end of file.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Process the line\n\t\t\t\tprocessLine(inputStr);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\thasError = true;\n\t\t\t\tlogger.error(e.getMessage());\n\t\t\t\te.printStackTrace(System.err);\n\t\t\t}\n\t\t\tif (hasError)\n\t\t\t{\n\t\t\t\tnumErrors++;\n\t\t\t\tlogger.error(\"Line \" + (numLinesRead - 2) + \": \" + inputStr);\n\t\t\t\tif (isStopOnFirstError())\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Closing remarks\n\t\tif (numErrors == 0)\n\t\t{\n\t\t\tlogger.info(numLinesRead + \" line(s) processed. \" + numErrors\n\t\t\t\t\t+ \" error(s) found.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlogger.error(numLinesRead + \" line(s) processed. \" + numErrors\n\t\t\t\t\t+ \" error(s) found.\");\n\n\t\t}\n\n\t\twriteOutput();\n\t}", "title": "" }, { "docid": "50ac7f3a6727e033aeee7a79d2a71606", "score": "0.50206894", "text": "public static void mergeAllFiles() {\n\n\t\tProperties configProperties = BytesStreamsAndHexFileUtil.getConfigProperties();\n\t\tBytesStreamsAndHexFileUtil.log(\"================================================\");\n\t\tBytesStreamsAndHexFileUtil.log(\"Started Programming: 1. Merging input files... \");\n\t\tBytesStreamsAndHexFileUtil.log(\"================================================\");\n\t\t// Input File#1 SX3 Base firmware file (.img)\n\t\tFile baseImageFile = BytesStreamsAndHexFileUtil.getBaseImageFile(configProperties);\n\t\tbyte[] readBaseFirmwareImgFileByteData = BytesStreamsAndHexFileUtil.readBaseFirmwareImgFile(baseImageFile);\n\n\t\t// check foe SX3 Configuration json file, if not exist do not merge.\n\t\tFile sx3ConfigJsonFile = BytesStreamsAndHexFileUtil.getConfigJsonFile();\n\t\tif (!sx3ConfigJsonFile.exists()) {\n\t\t\tBytesStreamsAndHexFileUtil.log(\"SX3 Configuration Json file not found, Unable to create merge file\");\n\t\t\treturn;\n\t\t}\n\t\t// Input File#2 SX3 Configuration Table Raw Data File (Generated hex\n\t\t// file)\n\t\tFile sx3ConfigHexFile = SX3ConfigHexFileUtil.getSX3ConfigHexFile();\n\t\tbyte[] sx3ConfigUtilityDataOutputByteData = new byte[0];\n\t\tif (sx3ConfigHexFile.exists()) {\n\t\t\tsx3ConfigUtilityDataOutputByteData = BytesStreamsAndHexFileUtil.readAlternateImpl(sx3ConfigHexFile);\n\t\t} else {\n\t\t\tBytesStreamsAndHexFileUtil.log(\"Generated Hex file not found. \" + SX3PropertiesConstants.NO_PART_OF_DATA);\n\t\t}\n\n\t\t// Input File#3 VideoSourceConfig files uploaded to GUI by user.\n\t\t// This file should be converted to hex.\n\t\tbyte[] videoSourceConfigByteData = new byte[0];\n\t\tList<File> videoSoureConfigFiles = SX3ConfigHexFileUtil.getVideoSoureConfigFiles(sx3ConfigJsonFile);\n\t\tif (videoSoureConfigFiles != null && !videoSoureConfigFiles.isEmpty()) {\n\t\t\tfor (File videoSourceConfigFile : videoSoureConfigFiles) {\n\t\t\t\tif (videoSourceConfigFile != null && videoSourceConfigFile.exists()) {\n\t\t\t\t\tFile videoSourceHexFile = SX3ConfigHexFileUtil.getVideoSourceConfigHexFile(\n\t\t\t\t\t\t\tBytesStreamsAndHexFileUtil.getFileNameWithoutExtension(videoSourceConfigFile));\n\t\t\t\t\tvideoSourceConfigByteData = BytesStreamsAndHexFileUtil.readAlternateImpl(videoSourceHexFile);\n\t\t\t\t} else {\n\t\t\t\t\tBytesStreamsAndHexFileUtil\n\t\t\t\t\t\t\t.log(SX3PropertiesConstants.VIDEO_SOURCE_CONFIG_FILE_PATH_NOT_ADDED_IN_JSON\n\t\t\t\t\t\t\t\t\t+ SX3PropertiesConstants.NO_PART_OF_DATA);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tBytesStreamsAndHexFileUtil.log(SX3PropertiesConstants.NO_FILE_PATHS_ADDED_FOR_VIDEO_SOURCE_CONFIG\n\t\t\t\t\t+ SX3PropertiesConstants.NO_PART_OF_DATA);\n\t\t}\n\n\t\t// Input File#4 FPGA Bit File (.bit)\n\t\tFile fifoBitFile = getFifoMasterGitFile(sx3ConfigJsonFile);\n\t\t\tbyte[] fifoMasterByteData = BytesStreamsAndHexFileUtil.readAlternateImpl(fifoBitFile);\n\t\t\n\t\t// Merge all the byte data's and write it into final .img file\n\t\ttry {\n\t\t\tbyte[] combinedData = addAll(readBaseFirmwareImgFileByteData, sx3ConfigUtilityDataOutputByteData,\n\t\t\t\t\tvideoSourceConfigByteData, fifoMasterByteData);\n\t\t\tFile sx3MergedHexFile = getSX3MergedHexFile();\n\t\t\tBytesStreamsAndHexFileUtil.write(combinedData, sx3MergedHexFile);\n\t\t} catch (Exception e) {\n\t\t\tBytesStreamsAndHexFileUtil.log(e);\n\t\t}\n\n\t}", "title": "" }, { "docid": "a572f71dbf240ce62bc592ecf7f8c37d", "score": "0.50142366", "text": "public static void main (String args[]) {\n\t Model model1 = ModelFactory.createDefaultModel();\n\t Model model2 = ModelFactory.createDefaultModel();\n\t \n\t // use the class loader to find the input file\n\t InputStream in1 = FileManager.get().open(inputFileName1);\n\t if (in1 == null) {\n\t throw new IllegalArgumentException( \"File: \" + inputFileName1 + \" not found\");\n\t }\n\t InputStream in2 = FileManager.get().open(inputFileName2);\n\t if (in2 == null) {\n\t throw new IllegalArgumentException( \"File: \" + inputFileName2 + \" not found\");\n\t }\n\t \n\t // read the RDF/XML files\n\t model1.read( in1, \"\" );\n\t model2.read( in2, \"\" );\n\t \n\t // merge the graphs\n\t Model model = model1.union(model2);\n\t \n\t // print the graph as RDF/XML\n\t model.write(System.out, \"RDF/XML-ABBREV\");\n\t \n\t System.out.println(\"===== Intersection =======\");\n\t \n\t model = model1.intersection(model2);\n\t \n\t // print the graph as RDF/XML\n\t model.write(System.out, \"RDF/XML-ABBREV\");\n\t \n\t System.out.println(\"===== Difference =======\");\n\t \n\t model = model1.difference(model2);\n\t \n\t // print the graph as RDF/XML\n\t model.write(System.out, \"RDF/XML-ABBREV\");\n\t System.out.println();\n\t }", "title": "" }, { "docid": "5eb76190ce9347b5f92617db5da7f6ba", "score": "0.5013225", "text": "public static void main(String[] args) throws Exception {\n\t\tif(args.length != 2 && !DEBUG){\n\t\t\t// TODO: Once program name is figured out, add it here.\n\t\t System.out.println(\"Arguments are invalid. Use java <program TODO CHANGE THIS> <file1> <file2>\");\n\t\t System.exit(0);\n\t\t}\n\t\t\n\t\tString file1name;\n\t\tif(DEBUG && isWindows()) file1name = System.getProperty(\"user.dir\")+\"\\\\testingFiles\\\\basicTest1.java\";\n\t\telse if(DEBUG && isMac()) file1name = System.getProperty(\"user.dir\")+\"/testingFiles/basicTest1.java\";\n\t\telse file1name = args[0];\n\t\t\n\t\tString file2name;\n\t\tif(DEBUG && isWindows()) file2name = System.getProperty(\"user.dir\")+\"\\\\testingFiles\\\\basicTest2.java\";\n\t\telse if(DEBUG && isMac()) file2name = System.getProperty(\"user.dir\")+\"/testingFiles/basicTest2.java\";\n\t\telse file2name = args[1];\n\t\t\n\t\tFile file1 = new File(file1name);\n\t\t\n\t\tif(!file1.exists() || file1.isDirectory()) { \n\t\t System.out.println(file1name);\n\t\t System.out.println(\"File 1 is not valid. Exitting...\");\n\t\t System.exit(0);\n\t\t}\n\t\tfile1 = null;\n\t\t\n\t\t\n\t\tFile file2 = new File(file2name);\n\t\t\n\t\tif(!file2.exists() || file2.isDirectory()) { \n\t\t System.out.println(file2name);\n\t\t System.out.println(\"File 2 is not valid. Exitting...\");\n\t\t System.exit(0);\n\t\t}\n\t\tfile2 = null;\n\t\t\n\t\t/*\n\t\t * Ok, we've checked the files and it seems that they're at least present. \n\t\t * Time to start working on the input stream\n\t\t */\n\n FileInputStream file1InputStream = new FileInputStream(file1name);\n FileInputStream file2InputStream = new FileInputStream(file2name); \n \n javaDataType file1Data = new javaDataType(file1name);\n javaDataType file2Data = new javaDataType(file2name);\n \n CompilationUnit cu1;\n CompilationUnit cu2;\n try {\n // parse the file\n cu1 = JavaParser.parse(file1InputStream);\n cu2 = JavaParser.parse(file2InputStream);\n } finally {\n \tfile1InputStream.close();\n \tfile2InputStream.close();\n }\n \n /*\n * Hooray, it parsed! Now we have a variety of things to check:\n * 1) A method is added in file2\n * 2) A method is deleted in file2\n * 3) Changed the body of a method\n * 4) A method is relocated\n * 5) Add a field\n * 6) Delete a field\n * 7) Change the definition of an instance field initializer\n */\n \n tempFile = file1Data;\n // visit and print the methods names\n new variableVisitor().visit(cu1, null);\n new MethodVisitor().visit(cu1, null);\n \n tempFile = file2Data;\n new variableVisitor().visit(cu2, null);\n new MethodVisitor().visit(cu2, null);\n \n \n file1Data.checkForChangedBodies(file2Data);\n file1Data.checkForAddedMethods(file2Data);\n file1Data.checkForDeletedMethods(file2Data);\n \n System.out.println(\"File 1 Fields: \" + file1Data.getFields().toString());\n System.out.println(\"File 2 Fields: \" + file2Data.getFields().toString());\n System.out.println(\"\");\n System.out.println(\"File 1 Methods: \" + file1Data.getMethods().toString());\n System.out.println(\"File 2 Methods: \" + file2Data.getMethods().toString());\n System.out.println(\"\");\n System.out.println(\"File 1 Body: \" + file1Data.getMethods().toString());\n System.out.println(\"File 2 Body: \" + file2Data.getMethods().toString());\n System.out.println(\"\");\n System.out.println(\"File 1 Parameters: \" + file1Data.getParameters().toString());\n System.out.println(\"File 2 Parameters: \" + file2Data.getParameters().toString());\n \n //FieldChecking\n FieldChecker fieldChecker = new FieldChecker(file1Data, file2Data);\n fieldChecker.printReports();\n\n }", "title": "" }, { "docid": "95680a87d0c73ad06c16d96b8c9b674b", "score": "0.50116396", "text": "protected void scanSrc() throws BuildException\n\t{\n\t\tfor(@SuppressWarnings(\"unchecked\")\n\t\tIterator<Resource> it = src.iterator(); it.hasNext();)\n\t\t{\n\t\t\tResource resource = it.next();\n\t\t\tFileResource fileResource = resource instanceof FileResource ? (FileResource)resource : null;\n\t\t\tif (fileResource != null)\n\t\t\t{\n\t\t\t\tFile file = fileResource.getFile();\n\t\t\t\tif (file.isDirectory())\n\t\t\t\t{\n\t\t\t\t\tDirectoryScanner ds = getDirectoryScanner(file);\n\t\t\t\t\tString[] files = ds.getIncludedFiles();\n\t\t\t\t\t\n\t\t\t\t\tscanDir(file, destdir != null ? destdir : file, files);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString[] files = new String[]{fileResource.getName()};\n\n\t\t\t\t\tscanDir(fileResource.getBaseDir(), destdir != null ? destdir : fileResource.getBaseDir(), files);\n\t\t\t\t}\n\t\t\t}\n//\t\t\telse\n//\t\t\t{\n//\t\t\t\t//FIXME what to do?\n//\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ed69155000105baed953b69b3e158857", "score": "0.50114405", "text": "public static void testDiffSame() throws IOException {\n String dirname = \"test/annotations/tests/classfile/cases\";\n String[] testcases = {\n \"ClassEmpty\",\n \"ClassNonEmpty\",\n \"FieldGeneric\",\n \"FieldSimple\",\n \"LocalVariableGenericArray\",\n \"MethodReceiver\",\n \"MethodReturnTypeGenericArray\",\n \"ObjectCreationGenericArray\",\n \"ObjectCreation\",\n \"TypecastGenericArray\",\n \"Typecast\"\n };\n AScene emptyScene = new AScene();\n for (String testcase : testcases) {\n AScene scene1 = new AScene();\n AScene scene2 = new AScene();\n String filename = dirname + \"/Test\" + testcase + \".jaif\";\n IndexFileParser.parseFile(filename, scene1);\n IndexFileParser.parseFile(filename, scene2);\n assert emptyScene.equals(diff(scene1, scene1));\n assert emptyScene.equals(diff(scene1, scene2));\n }\n }", "title": "" }, { "docid": "3fcf1bd72a0db8f046b8953d745f2938", "score": "0.50112695", "text": "public void readFile() throws Exception {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter the file name with extension: \");\n\t\tinput_file = new File(\"inputs//\" + sc.nextLine().trim());\n\t\tsc.close();\n\n\t\tScanner read = new Scanner(input_file);\n\t\tString temp_input = \"\";\n\t\ttemp_input = (read.hasNextLine()) ? read.nextLine() : \"\";\n\t\tinput.put(\"select_attributes\", temp_input);\n\t\ttemp_input = (read.hasNextLine()) ? read.nextLine() : \"\";\n\t\tinput.put(\"where_condition\", temp_input);\n\t\ttemp_input = (read.hasNextLine()) ? read.nextLine() : \"\";\n\t\tinput.put(\"grouping_variable\", temp_input);\n\t\ttemp_input = (read.hasNextLine()) ? read.nextLine() : \"\";\n\t\tinput.put(\"grouping_attributes\", temp_input);\n\t\ttemp_input = (read.hasNextLine()) ? read.nextLine() : \"\";\n\t\tinput.put(\"f_vect\", temp_input);\n\t\ttemp_input = (read.hasNextLine()) ? read.nextLine() : \"\";\n\t\tinput.put(\"condition_vect\", temp_input);\n\t\ttemp_input = (read.hasNextLine()) ? read.nextLine() : \"\";\n\t\tinput.put(\"having_condition\", temp_input);\n\t\tread.close();\n\n\t}", "title": "" }, { "docid": "2e24a38a6b45fe66601a2ef330aff811", "score": "0.500929", "text": "private String[] readInStrings() {\n\t\tString[] inputStringArray = new String[nodeAmount];\r\n\t\ttry {\r\n\r\n\t\t\tBufferedReader input2 = new BufferedReader(new FileReader(inputFilePath)); //Read through file\r\n\t\t\tfor (int i = 0; i < inputStringArray.length; i++) {\r\n\t\t\t\tinputStringArray[i] = input2.readLine();\r\n\t\t\t}\r\n\t\t\tinput2.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"File Not Found\");\r\n\t\t}\r\n\t\treturn inputStringArray;\r\n\t}", "title": "" }, { "docid": "94f7a2debe919a251cdb05d7b26db46a", "score": "0.50085384", "text": "public static void main(String[] args) throws FileNotFoundException {\n\t\tif(args.length>0) {\r\n\t\t\tFile opfile = new File(args[0]);\r\n\t\t\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tScanner file = new Scanner(opfile);\r\n\r\n\t\tString alphabet = setAlphabet(file.nextLine());\r\n\t\tString allStates = setAlphabet(file.nextLine());\r\n\t\tString startState = setStart(file.nextLine());\r\n\t\tString acceptState = setAccept(file.nextLine());\r\n\t\t\r\n\t\tString currentState = startState;\r\n\t\tString nextState = null;\r\n\t\tString testString;\r\n\t\t\r\n\t\tArrayList<String> function = new ArrayList<>();\r\n\t\twhile(file.hasNext()) {\r\n\t\t\tfunction.add(file.nextLine());\r\n\t\t}\r\n\t\t\r\n\t\t// Take in and verify a string\r\n\t\t\t\tboolean isValid = true;\r\n\t\t\t\tdo {\r\n\t\t\t\t\tSystem.out.println(\"Please enter a valid string along the alphabet \" + alphabet.substring(0, 1) + \" \"\r\n\t\t\t\t\t\t\t+ alphabet.substring(1));\r\n\t\t\t\t\ttestString = input.next();\r\n\t\t\t\t\tfor (int i = 1; i <= testString.length(); i++) {\r\n\t\t\t\t\t\tString tempStr = testString.substring(i - 1, i);\r\n\t\t\t\t\t\tif (alphabet.toString().contains(tempStr)) {\r\n\t\t\t\t\t\t\tisValid = true;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tisValid = false;\r\n\t\t\t\t\t\t\tSystem.out.println(\"The given string \" + testString\r\n\t\t\t\t\t\t\t\t\t+ \" is not accepted by the DFA, outside of alphabet range!\");\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} while (isValid == false);\r\n\t\t\r\n\t\twhile (testString.length() != 0) {\t\r\n\t\t\tString currentInput = testString.substring(0, 1);\r\n\t\t\tfor (int i = 0; i < function.size(); i++) {\r\n\t\t\t\tString tfStart = function.get(i).substring(1, 2);\r\n\t\t\t\tString tfInput = function.get(i).substring(3, 4);\r\n\t\t\t\tString tfNext = function.get(i).substring(7);\r\n\t\t\t\t\r\n\t\t\t\tif (currentState.equals(tfStart) && currentInput.equals(tfInput)) {\r\n\t\t\t\t\tnextState = tfNext;\r\n\t\t\t\t\tSystem.out.println(\"Current State is: \" + currentState + \" Input is: \" + currentInput\r\n\t\t\t\t\t\t\t+ \" Next State is: \" + nextState);\r\n\t\t\t\t\tcurrentState = nextState;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (currentState.equals(acceptState)) {\r\n\t\t\t\tSystem.out.println(\"The given string is accepted by the DFA!\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ttestString = testString.substring(1);\r\n\t\t}\r\n\t\t// Checks to see if the final state reached by the input string matches the\r\n\t\t// accept state and prints result\r\n\t\tif (currentState.equals(acceptState)) {\r\n\t\t\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"The given string is not accepted by the DFA\");\r\n\t\t}\r\n\t}else {\r\n\t\tSystem.out.println(\"File not found. Please enter a valid file\");\r\n\t\tSystem.exit(0);\r\n\t}\r\n}", "title": "" }, { "docid": "01efe9f6d2ec8dd5dcc1fb69c2ef0c53", "score": "0.5004016", "text": "public static void validateInput()\n {\n while(true)\n {\n try\n {\n inputPath = inputChooser.getSelectedFile().getAbsolutePath();\n break;\n }\n catch(NullPointerException e)\n {\n JOptionPane.showMessageDialog(null, \"No file chosen. Select a valid input file\");\n // goes back to choosing file. every time, input file changes before checking if a file was chosen\n inputChooser = chooseFile(inputChooser, \"input\");\n continue;\n }\n }\n \n inputPath = inputChooser.getSelectedFile().getAbsolutePath();\n inputFile = new File(inputPath); \n \n // makes you choose a new file while file not found\n while(true)\n {\n try\n {\n reader = new Scanner(new FileReader(inputFile));\n break;\n }\n catch(FileNotFoundException e)\n {\n JOptionPane.showMessageDialog(null, \"File not found. Select a valid input file\");\n // goes back to choosing file. every time, input file changes before checking if it is a file\n inputChooser = chooseFile(inputChooser, \"input\");\n continue;\n }\n }\n\n }", "title": "" }, { "docid": "6d2ebf150eba21805c76b0b2f87f2e81", "score": "0.5004", "text": "public static final Rule[] loadRules (String inputFile, boolean debug)\n {\n\n BufferedReader reader = null;\n Vector<Rule> values = new Vector<Rule>();\n int maxRule = 0;\n\n try\n {\n String line = null;\n\n reader = new BufferedReader(new FileReader(inputFile));\n \n while (((line = reader.readLine()) != null) && (line.length() > 0))\n {\n int nameDelim = line.indexOf(RULE_NAME_DELIMITER);\n String name = line.substring(0, nameDelim);\n\n if (debug)\n System.out.println(\"Rule name: \"+name);\n\n int matchDelim = line.indexOf(MATCH);\n\n if (matchDelim == -1)\n {\n int orDelim = line.indexOf(OR_DELIMITER); // there's only ever a maximum of one of these in a rule\n String dataOne = line.substring(nameDelim +1, ((orDelim == -1) ? line.length() : orDelim));\n String dataTwo = ((orDelim == -1) ? null : line.substring(orDelim +1));\n\n if (debug)\n {\n System.out.println(\"Rule one: \"+dataOne);\n System.out.println(\"Rule two: \"+dataTwo);\n }\n\n String[] dataOneList = dataOne.trim().split(RULE_DELIMITER);\n String[] dataTwoList = (dataTwo == null ? null : dataTwo.trim().split(RULE_DELIMITER));\n\n if (debug && (dataOneList != null))\n {\n for (int i = 0; i < dataOneList.length; i++)\n System.out.println(\"Rule one list: \"+dataOneList[i]);\n }\n\n if (debug && (dataTwoList != null))\n {\n for (int i = 0; i < dataTwoList.length; i++)\n System.out.println(\"Rule two list: \"+dataTwoList[i]);\n }\n\n Rule r = new Rule(name, dataOneList, dataTwoList);\n\n if (r.getNumber() > maxRule)\n maxRule = r.getNumber();\n\n values.add(r);\n }\n else\n {\n // match is always one character\n\n Rule r = new Rule(name, line.charAt(matchDelim +1));\n\n if (r.getNumber() > maxRule)\n maxRule = r.getNumber();\n\n values.add(r);\n }\n }\n }\n catch (Throwable ex)\n {\n ex.printStackTrace();\n }\n finally\n {\n try\n {\n reader.close();\n }\n catch (Throwable ex)\n {\n }\n }\n\n Rule[] ordered = new Rule[maxRule +1];\n\n for (int i = 0; i < values.size(); i++)\n {\n Rule r = values.elementAt(i);\n \n ordered[r.getNumber()] = r;\n }\n\n return ordered;\n }", "title": "" }, { "docid": "0bd1bd802465f340db2944622d9e393f", "score": "0.50033677", "text": "public void readRawText(InputStream inOne, InputStream inTwo) {\n\t\t//System.out.println(\"Reading raw text...\");\n\t\tanalyzeUniqueStrings(inOne);\n\t\toccurrences = new short[intAssignments.size()][intAssignments.size()];\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(inTwo));\n\t\tString line = \"\";\n\t\ttry {\n\t\t\tline = reader.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\twhile (line != null) {\n\t\t\tboolean isWhitespace=true;\n\t\t\tfor(int i=0; i<line.length(); i++) {\n\t\t\t\tif(!Character.isWhitespace(line.charAt(i))) {\n\t\t\t\t\tisWhitespace=false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(line.equals(\"\")||isWhitespace) {\n\t\t\t\ttry {\n\t\t\t\t\tline=reader.readLine();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tline=line.trim();\n\t\t\tString[] tokens = line.split(\"[ ]+\");\n\t\t\t//System.out.print(\"[\");\n\t\t\tfor(int i=0; i<tokens.length; i++)\n\t\t\t\t//System.out.print(tokens[i]+\", \");\n\t\t\t//System.out.println(\"]\");\n\t\t\toccurrences[getInt(\"\\n\")][getInt(tokens[0])]++;\n\t\t\toccurrences[getInt(tokens[tokens.length-1])][getInt(\"\\n\")]++;\n\t\t\tfor (int i = 0; i < tokens.length-1; i++) {\n\t\t\t\toccurrences[getInt(tokens[i])][getInt(tokens[i+1])]++;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tline = reader.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tcalculateProbabilities(occurrences);\n\t}", "title": "" }, { "docid": "7dc1c33741a543aa22efcb2a0511eb16", "score": "0.4994344", "text": "private void readFile(final Path sourcePath) throws IOException {\n Files.lines(sourcePath).forEach((text) -> {\n final String[] elements = text.split(\"=\");\n if (elements.length < 2) {\n LOG.finest(\"Ignoring line with \" + text);\n return;\n }\n if (elements[0].startsWith(\"#\")) {\n return;\n }\n if (elements[0].startsWith(\"address\")) {\n this.endpoint = elements[1];\n return;\n }\n if (elements[0].startsWith(\"token\")) {\n this.token = elements[1];\n return;\n }\n LOG.fine(\"Unknown entry in file: \" + text);\n });\n }", "title": "" }, { "docid": "6ce84ff9321b5c14606c9082d8de8b96", "score": "0.49897003", "text": "public static void readInput() {\n\n\t\t/* open new scanner */\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(new File(\"C://Users/newInput.txt\"));\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t/* restaurant number */\n\t\tMain.restaurantNumber = sc.nextInt();\n\t\tsc.nextLine();\n\n\t\t/* read restaurants' information */\n\t\tfor (int i = 1; i <= Main.restaurantNumber; ++i) {\n\t\t\t/* add to List automatically */\n\t\t\tRestaurant temp = new Restaurant(sc.nextLine());\n\t\t\ttemp.addToList(Main.restaurantList[temp.group]);\n\t\t}\n\n\t\t/* edge number */\n\t\tint line = sc.nextInt();\n\n\t\t/* read edges' information */\n\t\tfor (int i = 0; i < line; ++i) {\n\t\t\tint a, b, c;\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\n\t\t\tMain.matrix[a][b] = c;\n\t\t\tMain.matrix[b][a] = c;\n\t\t}\n\n\t\t/* close scanner */\n\t\tsc.close();\n\t}", "title": "" }, { "docid": "57dbf68e97dd3778841d68a06e2d77fa", "score": "0.49824047", "text": "public static boolean contentEquals(InputStream input1, InputStream input2)\n throws IOException {\n if (!(input1 instanceof BufferedInputStream)) {\n input1 = new BufferedInputStream(input1);\n }\n if (!(input2 instanceof BufferedInputStream)) {\n input2 = new BufferedInputStream(input2);\n }\n\n int ch = input1.read();\n while (EOF != ch) {\n int ch2 = input2.read();\n if (ch != ch2) {\n return false;\n }\n ch = input1.read();\n }\n\n int ch2 = input2.read();\n return ch2 == EOF;\n }", "title": "" }, { "docid": "5e90a5513b41ec9219d62df7bdbf7a1b", "score": "0.498204", "text": "public void teach(String fileName) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(fileName));\n compareFileLineWithUserInput(bufferedReader);\n System.out.println(\"Congratulations!\");\n }", "title": "" } ]
ff40cb2a4280b23ff99d912b2b544057
Deletes an organization from the server, and if successful, updates the list by removing it on the client.
[ { "docid": "7c077e1ffc5fc032b8ae247f14dcbe5c", "score": "0.5316174", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic void run()\n\t{\n\t\tMessageBox messageBox = new MessageBox(Display.getCurrent().getActiveShell(), SWT.YES | SWT.NO | SWT.ICON_QUESTION);\n\t\tmessageBox.setMessage(\"Are you sure you would like to delete \" + organization.getName() + \"'s account?\");\n\n\t\tif (messageBox.open() == SWT.YES)\n\t\t{\n\t\t\tboolean success = false;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tsuccess = Application.getManager().removeOrganization(organization);\n\t\t\t}\n\t\t\tcatch (ServerException_Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (success)\n\t\t\t{\n\t\t\t\tArrayList<Organization> organizationList = (ArrayList<Organization>) ManageAccountsComposite.organizationsViewer.getInput();\n\t\t\t\tfor (int i = 0; i < organizationList.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tif (organizationList.get(i).getName().equals(organization.getName()))\n\t\t\t\t\t\torganizationList.remove(i);\n\t\t\t\t}\n\t\t\t\tManageAccountsComposite.organizationsViewer.setSelection(null);\n\t\t\t\tManageAccountsComposite.organizationsViewer.refresh();\n\t\t\t}\n\t\t}\n\n\t}", "title": "" } ]
[ { "docid": "bffe531b4c0079bae7e1bee4a14ac230", "score": "0.71684945", "text": "boolean delete(String organizationId);", "title": "" }, { "docid": "c2435d435ca11b7def72fceaedaee3ed", "score": "0.6665808", "text": "@Override\n public void delete(Organization organization) {\n\n }", "title": "" }, { "docid": "5b883d29182fe51ec816e4b34f008274", "score": "0.65573484", "text": "@Override\n public void deleteOrganization(String id) {\n \torganizationRepoService.delete(id);\n }", "title": "" }, { "docid": "82d9ac540d91e4f468201fdfe26243f6", "score": "0.6370627", "text": "@Test\n\tpublic void _005_deleteAssociatedOrganization() {\n\n\t\tOrganization org = null;\n\t\tString query = \"select o from Organization o where o.name = 'testing'\";\n\n\t\ttry {\n\t\t\torg = em.createQuery(query, Organization.class).getResultList().get(0);\n\t\t} catch (Exception empty) {}\n\n\t\tassertEquals(org.getName(), \"testing\");\n\n\t\tem.remove(org);\n\n\t\tOrganization reload=null;\n\n\t\ttry {\n\t\t\treload = em.createQuery(query, Organization.class).getResultList().get(0);\n\t\t} catch (Exception empty) {}\n\n\t\tassertNull(reload);\n\t}", "title": "" }, { "docid": "a111eda0f3badbab53d4d35610ad8219", "score": "0.6297592", "text": "public void deleteApplicationList(String organization) throws APIManagementException {\n try (Connection connection = APIMgtDBUtil.getConnection()) {\n connection.setAutoCommit(false);\n\n if (multiGroupAppSharingEnabled) {\n updateGroupIDMappingsBulk(connection, organization);\n }\n\n try (PreparedStatement prepStmtGetConsumerKey = connection.prepareStatement(\n OrganizationPurgeConstants.GET_CONSUMER_KEYS_OF_APPLICATION_LIST_SQL);\n PreparedStatement deleteDomainApp = connection.prepareStatement(\n SQLConstants.REMOVE_APPLICATION_FROM_DOMAIN_MAPPINGS_SQL)) {\n prepStmtGetConsumerKey.setString(1, organization);\n try (ResultSet rs = prepStmtGetConsumerKey.executeQuery()) {\n while (rs.next()) {\n String consumerKey = rs.getString(APIConstants.FIELD_CONSUMER_KEY);\n String keyManagerName = rs.getString(NAME);\n String keyManagerOrganization = rs.getString(ORGANIZATION);\n\n // This is true when OAuth App has been created by pasting consumer key/secret in the screen.\n String mode = rs.getString(\"CREATE_MODE\");\n if (consumerKey != null) {\n\n deleteDomainApp.setString(1, consumerKey);\n deleteDomainApp.addBatch();\n KeyManager keyManager = KeyManagerHolder.getKeyManagerInstance(keyManagerOrganization,\n keyManagerName);\n\n if (keyManager != null) {\n try {\n keyManager.deleteMappedApplication(consumerKey);\n log.info(\"Mapped application deleted for consumer key: \" + consumerKey\n + \" and organization: \" + organization);\n } catch (APIManagementException e) {\n handleException(\n \"Error while Deleting Client Application for consumer key: \" + consumerKey\n + \" and organization: \" + organization, e);\n }\n }\n // OAuth app is deleted if only it has been created from API Store. For mapped clients we don't\n // call delete.\n if (!APIConstants.OAuthAppMode.MAPPED.name().equals(mode)) {\n //delete on oAuthorization server.\n if (log.isDebugEnabled()) {\n log.debug(\n \"Deleting Oauth application with consumer key \" + consumerKey + \" from the \"\n + \"Oauth server for organization: \" + organization);\n }\n if (keyManager != null) {\n try {\n keyManager.deleteApplication(consumerKey);\n log.info(\"Client application deleted for consumer key: \" + consumerKey\n + \" and organization: \" + organization);\n } catch (APIManagementException e) {\n handleException(\"Error while Deleting Client Application for organization: \"\n + organization, e);\n }\n }\n }\n }\n }\n }\n deleteDomainApp.executeBatch();\n } catch (SQLException domainAppsException) {\n connection.rollback();\n log.error(\"Failed to rollback removing domain applications for organization: \" + organization,\n domainAppsException);\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Subscription Key mapping details are deleted successfully for Applications for \"\n + \"organization: \" + organization);\n }\n\n try (PreparedStatement deleteApp = connection.prepareStatement(\n OrganizationPurgeConstants.REMOVE_APPLICATION_LIST_FROM_APPLICATIONS_SQL)) {\n deleteApp.setString(1, organization);\n deleteApp.execute();\n } catch (SQLException appDeletionException) {\n connection.rollback();\n log.error(\"Failed to rollback removing applications for organization: \" + organization,\n appDeletionException);\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Applications are deleted successfully for organization: \" + organization);\n }\n\n connection.commit();\n\n } catch (SQLException e) {\n handleException(\n \"Error while removing application details from the database for organization: \" + organization, e);\n }\n }", "title": "" }, { "docid": "b455a08dc36b6b23ef6e9d6e1a8a5339", "score": "0.62800926", "text": "@Test\n public void testDeleteOrganization() {\n Organization o = new Organization();\n o.setName(\"Avengers\");\n o.setDescription(\"The Avengers. It's what we call ourselves, \"\n + \"sort of like a team. 'Earth's Mightiest Heroes' type of thing.\");\n o.setAddress(\"890 Fifth Avenue, Manhattan, New York City\");\n o.setContactInfo(\"212-576-4000\");\n oDao.addOrganization(o);\n\n Organization fromDao = oDao.getOrganizationById(o.getOrganizationId());\n assertEquals(fromDao, o);\n oDao.deleteOrganization(o.getOrganizationId());\n assertNull(oDao.getOrganizationById(o.getOrganizationId()));\n }", "title": "" }, { "docid": "f4145d84e39b991b5aca787c065793c2", "score": "0.61645776", "text": "boolean deleteOrganisation(String name);", "title": "" }, { "docid": "0d2d76cb192c9c89998e3f3d467e718a", "score": "0.6153949", "text": "public void deleteOrganizationAPIList(String organization) throws APIManagementException {\n\n try (Connection connection = APIMgtDBUtil.getConnection()) {\n connection.setAutoCommit(false);\n\n deleteAmApiUrlMappings(connection, OrganizationPurgeConstants.REMOVE_AM_URL_MAPPINGS_SQL, organization);\n // Remove records from AM_API table and associated data through cascade delete\n deleteOrganizationAPIData(connection, OrganizationPurgeConstants.REMOVE_BULK_APIS_DATA_FROM_AM_API_SQL, organization);\n deleteAPIsFromDefaultVersion(connection, OrganizationPurgeConstants.REMOVE_BULK_APIS_DEFAULT_VERSION_SQL, organization);\n\n //Remove API Cleanup tasks\n String convertStr = \"\";\n if (connection.getMetaData().getURL().contains(\"sqlserver\")) {\n convertStr = \"CONVERT(CHAR, API.API_ID)\";\n } else {\n convertStr = \"CONVERT(API.API_ID, CHAR)\";\n }\n\n String deleteBulkAPIWF = OrganizationPurgeConstants.DELETE_BULK_API_WORKFLOWS_REQUEST_SQL.replaceAll(\"_CONVERT_PLACEHOLDER_\", convertStr);\n deleteAPICleanupTasks(connection, deleteBulkAPIWF, organization);\n connection.commit();\n } catch (SQLException e) {\n handleException(\"Error while removing the API data of organization \" + organization + \" from the database\",\n e);\n }\n }", "title": "" }, { "docid": "25fae5e7642add0eb34f68a68d3507a5", "score": "0.6115707", "text": "@Test\n public void testRemoveOrganisation() {\n data.add(org);\n data.remove(org);\n assertNull(data.get(org));\n }", "title": "" }, { "docid": "82fdb39983c760b3bd5fdcb955265a05", "score": "0.6040935", "text": "Boolean deleteOrganizationAction(String organizationActionId) throws Exception;", "title": "" }, { "docid": "decf3029c1f57aad996d82dd16788fc8", "score": "0.5948664", "text": "public void unsetOrganization()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ORGANIZATION$2, 0);\n }\n }", "title": "" }, { "docid": "bb308a995dc1c44242af8c0ff3ea4f5e", "score": "0.58237344", "text": "boolean update(OrganizationDTO organization);", "title": "" }, { "docid": "276ebe73e84ab6c5fb1be6542d2bb4e0", "score": "0.57147366", "text": "void unsetOrganization();", "title": "" }, { "docid": "4a985f72cd7a5b52aeb654b30a92118a", "score": "0.5714378", "text": "public void delete(OrganisationDetails organisationDetails) {\n\t\t\n\t}", "title": "" }, { "docid": "46f5582511ee50af6a7e443368800ce1", "score": "0.57028824", "text": "public void removeOrg(OrganizationContact value) {\r\n\t\tBase.remove(this.model, this.getResource(), ORG, value);\r\n\t}", "title": "" }, { "docid": "bba5e2d1000336a1868bbf38f97fe5e9", "score": "0.5526254", "text": "public void deleteCompany() {\n\t\tSystem.out.println(MENU_COMPANY_DELETE_HEADER);\n\t\tint index = selectValidCompanyIndex();\n\n\t\tcompanyTarget.path(\"/\" + index).request(MediaType.APPLICATION_JSON)\n\t\t\t\t.delete();\n\n\t\tSystem.out.println(\"deleted with success\");\n\n\t}", "title": "" }, { "docid": "3f5cbe71d35bf127321f2e800ee08abb", "score": "0.551672", "text": "@DELETE\n @Path(\"{orgId}\")\n @Consumes(\"application/json\")\n @Transactional\n public Response deleteBoundaries(@PathParam(\"orgId\") int orgId) {\n try {\n List<Boundaries> boundaries = daoFactory.getOrDAO().find(orgId).getBoundaries();\n for (Boundaries b : boundaries) {\n daoFactory.getBoundariesDAO().remove(b);\n }\n return Response.ok().build();\n } catch (DaoExn ex) {\n return Response.accepted(\"Delete boundaries failed. Organization ID: \" + orgId).build();\n }\n }", "title": "" }, { "docid": "520530a01cbf7631778bb4a6aea2200b", "score": "0.54251313", "text": "public void removeOrg( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ORG, value);\r\n\t}", "title": "" }, { "docid": "d9ac9ec33499ed97b30c5a8af12656bf", "score": "0.5370513", "text": "public List<Application> deleteApplicationById(int applicationId);", "title": "" }, { "docid": "abff41a78b420dcec2757ecaa3e16a38", "score": "0.5346214", "text": "public void removeOrganisation(IGenericEvent onSuccess,\n\t IGenericFailureEvent onFailure,\n\t String organisationName)\n\t{\n\t\tm_removeOrganisationCallback.execute(onSuccess, onFailure, organisationName);\n\t}", "title": "" }, { "docid": "b5da60d02ce5497fdb49838657cdf719", "score": "0.5264751", "text": "@Jpf.Action(forwards = { \r\n @Jpf.Forward(name = \"success\",\r\n path = \"deleteOrganization.do\")\r\n })\r\n protected Forward toDeleteOrganization(ManageOrganizationForm form)\r\n { \r\n this.isADD = false; \r\n this.globalApp.navPath.addCurrentAction(globalApp.ACTION_DELETE_ORGANIZATION);\r\n return new Forward(\"success\", form);\r\n }", "title": "" }, { "docid": "7624b7df5cd6fce47525bd897e58aba6", "score": "0.5245181", "text": "int deleteByPrimaryKey(String orgCode);", "title": "" }, { "docid": "e3d482dd225c483a1aba0e6d1313f3ea", "score": "0.52161837", "text": "@Test\n public void testRemoveNoOrganisation() {\n assertThrows(IllegalArgumentException.class, () -> data.remove(org));\n }", "title": "" }, { "docid": "5d657a3458d64a22b177b4c4e88b6e3e", "score": "0.52047044", "text": "@Override\n\tpublic vdocOrg remove(String orgId) throws NoSuchvdocOrgException {\n\t\treturn remove((Serializable)orgId);\n\t}", "title": "" }, { "docid": "b28e8b56808150aba290fd19b43e4fc2", "score": "0.52036285", "text": "public void setOrganization(List<Organization> organizations)throws Exception\n\t{\n\t\tthis.organizations = organizations;\n\t}", "title": "" }, { "docid": "3a789e2ce7925cdc38345a477ed836b5", "score": "0.5188523", "text": "public static void removeOrg(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, OrganizationContact value) {\r\n\t\tBase.remove(model, instanceResource, ORG, value);\r\n\t}", "title": "" }, { "docid": "812234ef210a2b8242bf5f3c0aba29d7", "score": "0.51314056", "text": "public void deleteOrganzationDet(int orgId) {\n\t\torganzationDao.deleteOrgsDet(orgId);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9c679074509f4864d67bbd93a14b8778", "score": "0.5129192", "text": "public void deletePendingApplicationRegistrations(String organization) throws APIManagementException {\n\n try (Connection connection = APIMgtDBUtil.getConnection()) {\n connection.setAutoCommit(false);\n try (PreparedStatement preparedStatement = connection.prepareStatement(\n OrganizationPurgeConstants.REMOVE_PENDING_APPLICATION_REGISTRATIONS_SQL)) {\n preparedStatement.setString(1, organization);\n preparedStatement.executeUpdate();\n connection.commit();\n } catch (SQLException e) {\n try {\n connection.rollback();\n } catch (SQLException ex) {\n log.error(\"Failed to rollback remove pending application registrations for organization: \"\n + organization, ex);\n }\n handleException(\n \"Error while deleting pending application registrations for organization: \" + organization, e);\n }\n } catch (SQLException e) {\n handleException(\"Error while deleting pending application registrations for organization: \" + organization,\n e);\n }\n }", "title": "" }, { "docid": "dd84341ae807b32fefa5078c1453d5b1", "score": "0.50929123", "text": "@Override\n\tpublic vdocOrg remove(Serializable primaryKey)\n\t\tthrows NoSuchvdocOrgException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tvdocOrg vdocOrg = (vdocOrg)session.get(vdocOrgImpl.class, primaryKey);\n\n\t\t\tif (vdocOrg == null) {\n\t\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchvdocOrgException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(vdocOrg);\n\t\t}\n\t\tcatch (NoSuchvdocOrgException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}", "title": "" }, { "docid": "12db394d95bdf852a6216645359363f4", "score": "0.5066081", "text": "@Test\n public void testUpdateOrganization() {\n Organization o = new Organization();\n o.setName(\"Avengers\");\n o.setDescription(\"The Avengers. It's what we call ourselves, \"\n + \"sort of like a team. 'Earth's Mightiest Heroes' type of thing.\");\n o.setAddress(\"890 Fifth Avenue, Manhattan, New York City\");\n o.setContactInfo(\"212-576-4000\");\n oDao.addOrganization(o);\n\n o.setName(\"Avengers 2.0\");\n oDao.updateOrganization(o);\n\n Organization fromDao = oDao.getOrganizationById(o.getOrganizationId());\n assertEquals(fromDao, o);\n\n }", "title": "" }, { "docid": "bdc28f5a5372387c6a102fec676215da", "score": "0.5054052", "text": "@POST\n @Path(\"delete\")\n @Consumes(MediaType.TEXT_XML)\n @Produces(MediaType.TEXT_XML)\n public Response deleteRepositoryItem(JAXBElement<RepositoryItemIdentityType> identityElement,\n @HeaderParam(\"Authorization\") String authorizationHeader) throws RepositoryException {\n\n RepositoryItemIdentityType itemIdentity = identityElement.getValue();\n LockableResource lockedResource = RepositoryLockManager.getInstance().acquireWriteLock(\n itemIdentity.getBaseNamespace(), itemIdentity.getFilename());\n try {\n LibraryInfoType itemMetadata = repositoryManager.getFileManager().loadLibraryMetadata(\n itemIdentity.getBaseNamespace(), itemIdentity.getFilename(),\n itemIdentity.getVersion());\n UserPrincipal user = securityManager.authenticateUser(authorizationHeader);\n\n if (securityManager.isAdministrator(user)) {\n repositoryManager.getFileManager().setCurrentUserId(user.getUserId());\n RepositoryItemImpl item = RepositoryUtils.createRepositoryItem(repositoryManager, itemMetadata);\n \n if (isReleaseMember( item )) {\n \tthrow new RepositoryException(\n \t\t\t\"The library cannot be deleted because it is part of a managed release.\");\n }\n\n // Delete the item in the local repository\n repositoryManager.delete(item);\n\n // Delete the item from the free-text search index\n indexRepositoryItem(item, true);\n\n return Response.status(Response.Status.OK).build();\n\n } else {\n throw new RepositorySecurityException(\n \"The user does not have permission to access the requested resource.\");\n }\n\n } finally {\n RepositoryLockManager.getInstance().releaseWriteLock(lockedResource);\n }\n }", "title": "" }, { "docid": "5d6feb9ee6283f5170a7ce61740a463a", "score": "0.5045063", "text": "public void deleteListUserTimeConfigOrgId(long orgId);", "title": "" }, { "docid": "5a91924dabf4b37849c69f5f1b647863", "score": "0.5005499", "text": "@RequestMapping(value = \"/applications/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteApplication(@PathVariable Long id) {\n log.debug(\"REST request to delete Application : {}\", id);\n applicationRepository.delete(id);\n applicationSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"application\", id.toString())).build();\n }", "title": "" }, { "docid": "0904074bc30874e70079ea57ee5cec2d", "score": "0.5000048", "text": "public OrganizationServiceResponse contractorganizationlist(ServiceContractOrganizationRequest body) throws ApiException {\n ApiResponse<OrganizationServiceResponse> resp = contractorganizationlistWithHttpInfo(body);\n return resp.getData();\n }", "title": "" }, { "docid": "b70a005034435a5a8474b46c2de059d8", "score": "0.49836206", "text": "private Call contractorganizationlistCall(ServiceContractOrganizationRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n Object localVarPostBody = body;\n \n // verify the required parameter 'body' is set\n if (body == null) {\n throw new ApiException(\"Missing the required parameter 'body' when calling contractorganizationlist(Async)\");\n }\n \n\n // create path and map variables\n String localVarPath = \"/contract/organization/list\".replaceAll(\"\\\\{format\\\\}\",\"json\");\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\", \"application/xml\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n if(progressListener != null) {\n apiClient.getHttpClient().networkInterceptors().add(new Interceptor() {\n @Override\n public Response intercept(Interceptor.Chain chain) throws IOException {\n Response originalResponse = chain.proceed(chain.request());\n return originalResponse.newBuilder()\n .body(new ProgressResponseBody(originalResponse.body(), progressListener))\n .build();\n }\n });\n }\n\n String[] localVarAuthNames = new String[] { };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);\n }", "title": "" }, { "docid": "eff7d32b70d0e0a8571ccabc3190ba45", "score": "0.4954407", "text": "@CrossOrigin\n @RequestMapping(value = \"inventory/delete\", method = RequestMethod.DELETE)\n public ResponseEntity deleteInventory(@RequestHeader(value = \"Authentication\") String auth,\n @RequestBody String body) {\n try {\n JSONObject bodyObj = new JSONObject(URLDecoder.decode(body, \"UTF-8\"));\n if (checkAuth(bodyObj.getString(USERNAME), auth)) {\n dataAccess.deleteItem(bodyObj.getInt(\"id\"));\n return ResponseEntity.noContent().build();\n } else {\n return UNAUTHORIZED;\n }\n } catch (Exception e) {\n e.printStackTrace();\n return SERVER_ERROR;\n }\n }", "title": "" }, { "docid": "a6f9fb59c774c0e23e63c8bedaf554ba", "score": "0.49482512", "text": "public void delete()\r\n\t{\r\n\t\tif (c.isMultiplayer() && c.isServer())\r\n\t\t{\r\n\t\t\tNetworkPacket data = new NetworkPacket(256);\r\n\t\t\tdata.addBytes(3, 1);\r\n\t\t\tdata.addInts(owner, id);\r\n\t\t\tc.getServer().sendEntityDataGuaranteed(data);\r\n\t\t}\r\n\t\tw.delete(this);\r\n\t}", "title": "" }, { "docid": "3014024ce5d5220946d6df7f68653869", "score": "0.49481723", "text": "int deleteByExample(TtOrganizationCriteria example);", "title": "" }, { "docid": "85a5e1931d3def3f971ede321eab1deb", "score": "0.49362147", "text": "@RequestMapping(value = \"/games\", method = RequestMethod.DELETE)\n\tpublic void deleteGames() {\n\t\tgames.clear();\n\t}", "title": "" }, { "docid": "f2d3a9d4d73625657a68a137069001d7", "score": "0.49168333", "text": "public static void removeOrg( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(model, instanceResource, ORG, value);\r\n\t}", "title": "" }, { "docid": "af581d86e319c8814e558144c7272624", "score": "0.49092478", "text": "@Override\r\n @RestResource(exported = false)\r\n void delete(LastSchool lastSchool);", "title": "" }, { "docid": "b778598e431277b1caafb6900c17f584", "score": "0.48915192", "text": "private void updateGroupIDMappingsBulk(Connection conn, String organization) throws APIManagementException {\n\n String deleteQuery = OrganizationPurgeConstants.REMOVE_GROUP_ID_MAPPING_BULK_SQL;\n String removeGroupIdsQuery = OrganizationPurgeConstants.REMOVE_MIGRATED_GROUP_ID_SQL_BULK_SQL;\n\n try (PreparedStatement removeMigratedGroupIdsStatement = conn.prepareStatement(removeGroupIdsQuery);\n PreparedStatement deleteStatement = conn.prepareStatement(deleteQuery)) {\n\n removeMigratedGroupIdsStatement.setString(1, organization);\n removeMigratedGroupIdsStatement.executeUpdate();\n\n deleteStatement.setString(1, organization);\n deleteStatement.executeUpdate();\n\n } catch (SQLException e) {\n try {\n conn.rollback();\n } catch (SQLException ex) {\n log.error(\"Failed to rollback update application group id mappings bulk for organization: \"\n + organization, ex);\n }\n handleException(\"Failed to update bulk groupId mappings for organization: \" + organization, e);\n }\n }", "title": "" }, { "docid": "0d965b0a02a286254bf8b3c92cefba46", "score": "0.48766646", "text": "public void removeByCompanyId(long companyId);", "title": "" }, { "docid": "0d965b0a02a286254bf8b3c92cefba46", "score": "0.48766646", "text": "public void removeByCompanyId(long companyId);", "title": "" }, { "docid": "bb0563c1b41ee91d9d65cf2f8f5fa403", "score": "0.48569492", "text": "public void delete()\n throws WorkflowException, MappingException, RepositoryException, RemoteException;", "title": "" }, { "docid": "6316889fba44882c7311ee9dc790afa6", "score": "0.4846764", "text": "@RolesAllowed(\"user\")\n @DELETE \n public Response delete() {\n \t\n \t// Validate the incoming user information independent of the database\n \tCommunity community = null;\n \t\n try {\n \tcommunity= Community.find(context, communityID);\n \tcommunity.delete();\n context.complete();\n } catch (SQLException e) {\n log.error(e);\n context.abort();\n return Response.\n status(Response.Status.INTERNAL_SERVER_ERROR).\n type(\"text/plain\").\n entity(e.getMessage()).\n build();\n } catch (AuthorizeException e) {\n log.error(e);\n context.abort();\n return Response.\n status(Response.Status.UNAUTHORIZED).\n type(\"text/plain\").\n entity(e.getStackTrace()).\n build();\n } catch (IOException e) {\n log.error(e);\n context.abort();\n return Response.\n status(Response.Status.INTERNAL_SERVER_ERROR).\n type(\"text/plain\").\n entity(e.getMessage()).\n build();\n }\n return Response.\n created(uriInfo.getRequestUriBuilder().path(community.getHandle()).build()).\n build();\n\n }", "title": "" }, { "docid": "bae97fccedb9e6cd180c0dd93c3eddbb", "score": "0.4843538", "text": "ServiceResponse<Domain> deleteDomain(Long domainId);", "title": "" }, { "docid": "4b8b8ad22bdf77ca98e28a621912cb11", "score": "0.48356715", "text": "@Override\n\tpublic vdocOrg removeByG_C(long groupId, String code)\n\t\tthrows NoSuchvdocOrgException {\n\t\tvdocOrg vdocOrg = findByG_C(groupId, code);\n\n\t\treturn remove(vdocOrg);\n\t}", "title": "" }, { "docid": "7ad5faac02a7e3648b209ff0ad5bef35", "score": "0.48331356", "text": "public void removePendingSubscriptions(String organization) throws APIManagementException {\n try (Connection connection = APIMgtDBUtil.getConnection()) {\n connection.setAutoCommit(false);\n try (PreparedStatement preparedStatement = connection.prepareStatement(\n OrganizationPurgeConstants.DELETE_PENDING_SUBSCRIPTIONS_SQL)) {\n preparedStatement.setString(1, organization);\n preparedStatement.executeUpdate();\n connection.commit();\n } catch (SQLException e) {\n try {\n connection.rollback();\n } catch (SQLException ex) {\n log.error(\"Failed to rollback remove pending subscriptions for organization: \" + organization, ex);\n }\n handleException(\"Error occurred while removing pending subscriptions for organization: \" + organization,\n e);\n }\n } catch (SQLException e) {\n handleException(\"Error occurred while removing pending subscriptions for organization: \" + organization, e);\n }\n }", "title": "" }, { "docid": "786bbde18b62a96fe1b3a5d7489e6912", "score": "0.48225427", "text": "@Transactional\n public ApiResponse deleteAggregation(List<Rc00101VO> list) {\n boolean error = false;\n String msg = \"\";\n for(Rc00101VO data : list)\n {\n if(rc001Mapper.checkPublished(data) > 0)\n {\n error = true;\n msg = \"RC001_05\";\n break;\n }\n if(!data.getNodeType().equals(\"item\") && rc001Mapper.getChildrenCnt(data) > 0)\n {\n error = true;\n msg = \"RC001_04\";\n break;\n }\n else\n rc001Mapper.deleteAggregation(data);\n }\n if(error)\n return ApiResponse.of(ApiStatus.SYSTEM_ERROR,msg);\n else\n return ApiResponse.of(ApiStatus.SUCCESS,\"AA007\");\n }", "title": "" }, { "docid": "f7d6ac5a00bbeffbfca9055b3aa88b68", "score": "0.48125064", "text": "@Override\n\tpublic boolean updateOrganizationManager(Organization organization) {\n\t\tOptional<Organization> optionalOrganization =\n\t\t\t\tfindOrganizationByName(organization.getName());\n\t\tif (optionalOrganization.isPresent()) {\n\t\t\torganizationRepository.save(organization);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "94e71dc26f1f47aebe3abaf6de6eb83a", "score": "0.4808923", "text": "void delete(Integer departmentId);", "title": "" }, { "docid": "e26b51f6ae280ff22c6412efec5d9f25", "score": "0.47903568", "text": "@RequestMapping(value = \"/activities/people\", method = RequestMethod.DELETE)\n public boolean deletePersonFromList(@RequestParam(value=\"activityType\", defaultValue=\"\") \n \t\t\t\t\t\t\t\t\t\t\tString activityType, @RequestParam(value=\"name\", defaultValue=\"\") \n String name) {\n \t\tint index = -1;\n for (int i = 0; i < arrList.size(); i++) {\n \t\tPerson p = arrList.get(i);\n \t\tif (p.getActivity().equalsIgnoreCase(activityType) && p.getName().equalsIgnoreCase(name)) {\n \t\t\tindex = i;\n \t\t\tbreak;\n \t\t}\n }\n \n if (index != -1) {\n \t\tarrList.remove(index);\n \t\treturn true;\n } else {\n \t\treturn false;\n }\n }", "title": "" }, { "docid": "fafddd5550d573d0d2cf20a6fd0cb045", "score": "0.47744843", "text": "E delete(I id) throws OrgApiDataException;", "title": "" }, { "docid": "76a14f9e1a74bfde805adfc773e270cf", "score": "0.47737852", "text": "public void removeAllOrg() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ORG);\r\n\t}", "title": "" }, { "docid": "3efbfae3c6d6b4c2d378af456c3d2b02", "score": "0.47307405", "text": "public void removeApplicationCreationWorkflows(String organization) throws APIManagementException {\n\n try (Connection connection = APIMgtDBUtil.getConnection()) {\n connection.setAutoCommit(false);\n try (PreparedStatement preparedStatement = connection.prepareStatement(\n OrganizationPurgeConstants.DELETE_APPLICATION_CREATION_WORKFLOWS_SQL)) {\n preparedStatement.setString(1, organization);\n preparedStatement.executeUpdate();\n connection.commit();\n } catch (SQLException e) {\n try {\n connection.rollback();\n } catch (SQLException ex) {\n log.error(\"Failed to rollback remove pending application creation workflows for organization: \"\n + organization, ex);\n }\n handleException(\"Error occurred while removing application creation workflows for organization: \"\n + organization, e);\n }\n } catch (SQLException e) {\n handleException(\n \"Error occurred while removing application creation workflows for organization: \" + organization,\n e);\n }\n }", "title": "" }, { "docid": "0f47e6089bc1431715ac35d76bde6687", "score": "0.472854", "text": "public Call contractorganizationlistAsync(ServiceContractOrganizationRequest body, final ApiCallback<OrganizationServiceResponse> callback) throws ApiException {\n\n ProgressResponseBody.ProgressListener progressListener = null;\n ProgressRequestBody.ProgressRequestListener progressRequestListener = null;\n\n if (callback != null) {\n progressListener = new ProgressResponseBody.ProgressListener() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n callback.onDownloadProgress(bytesRead, contentLength, done);\n }\n };\n\n progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {\n @Override\n public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {\n callback.onUploadProgress(bytesWritten, contentLength, done);\n }\n };\n }\n\n Call call = contractorganizationlistCall(body, progressListener, progressRequestListener);\n Type localVarReturnType = new TypeToken<OrganizationServiceResponse>(){}.getType();\n apiClient.executeAsync(call, localVarReturnType, callback);\n return call;\n }", "title": "" }, { "docid": "e5aaec1db05d2cb1ab7d79c96499fe20", "score": "0.4718402", "text": "@Test\n public void deleteMeetingWithSuccess() {\n Meetings meetingToDelete = service.getMeetings().get(0);\n\n //When deleting this meeting\n service.deleteMeeting(meetingToDelete);\n //Then assert list does not contain this object anymore\n assertFalse( service.getMeetings().contains(meetingToDelete));\n\n }", "title": "" }, { "docid": "4f43edad5608a9ad2948c512df70b599", "score": "0.47061157", "text": "public Builder clearOrganizationId() {\n \n organizationId_ = getDefaultInstance().getOrganizationId();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4f43edad5608a9ad2948c512df70b599", "score": "0.47061157", "text": "public Builder clearOrganizationId() {\n \n organizationId_ = getDefaultInstance().getOrganizationId();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4f43edad5608a9ad2948c512df70b599", "score": "0.47061157", "text": "public Builder clearOrganizationId() {\n \n organizationId_ = getDefaultInstance().getOrganizationId();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0dfb0aee1a479481718b2d997de6aa58", "score": "0.4704587", "text": "public ApiResponse<OrganizationServiceResponse> contractorganizationlistWithHttpInfo(ServiceContractOrganizationRequest body) throws ApiException {\n Call call = contractorganizationlistCall(body, null, null);\n Type localVarReturnType = new TypeToken<OrganizationServiceResponse>(){}.getType();\n return apiClient.execute(call, localVarReturnType);\n }", "title": "" }, { "docid": "06cb6eb71916aa8550018bdda22856a4", "score": "0.46990192", "text": "void delete(String resourceGroupName, String privateCloudName, String authorizationName);", "title": "" }, { "docid": "4c9301ddf307929727cf2f7ae2af1e06", "score": "0.46983665", "text": "public void delete() {\r\n GrouperDAOFactory.getFactory().getRoleSet().delete(this);\r\n }", "title": "" }, { "docid": "88dfcb2ed488427e539e722f999e573e", "score": "0.4682175", "text": "public void removeByCompanyGroup(long companyId, long groupId);", "title": "" }, { "docid": "e31167140ca560856a1ede2bc739b06b", "score": "0.4669736", "text": "@DeleteMapping(\"/{subjectid}/students/\") // Path variable names must match with method's signature variables.\n\t\t\t public Set<Student> removeStudentsFromSubject(@Valid @PathVariable int subjectid, @RequestBody List<Student> studentList){\n\t\t\t \n\t\t\t\t\t // Finds a subject and adds the given student to the subject's set.\n\t\t\t Optional<Subject> subject = this.subjectrepo.findById(subjectid);//.orElseThrow(\n\t\t\t // () -> new ResourceNotFoundException(\"Subject\", subjectid)\n\t\t\t // );\n\t\t\t Subject asubject =subject.get(); //convert from java 8 Optional to Subject object\n\t\t\t Set<Student> students =asubject.getStudents();//Get all students in the given subject\n\t\t\t\t\t\n\t\t\t \n\t\t\t studentList.forEach(astudent->{ //Iterate through the Studentslist passed adding them to the subject\n\t\t\t \n\t\t\t \tstudents.remove(astudent); //add the new student to the students'list of the selected subject\n\t\t\t \n\t\t\t });\n\t\t\t \n\t\t\t asubject.setStudents(students); //set the new students list to the selected subject\n\t\t\t return this.subjectrepo.save(asubject).getStudents(); //Save the subject object and return the students list\n\t\t\t \n\t\t\t // }).orElseThrow(() -> new ResourceNotFoundException(\"Lecturer\", id));\n\t\t\t }", "title": "" }, { "docid": "7b4f536b74e685ef83b063dca37729f7", "score": "0.46692413", "text": "@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n SyncPoller<PollResult<Void>, Void> beginDeleteBastionShareableLink(\n String resourceGroupName, String bastionHostname, BastionShareableLinkListRequest bslRequest);", "title": "" }, { "docid": "0bce5a12e4f1d8cc66bfe554572bde27", "score": "0.46626902", "text": "public String postDeleteOnGateway() {\n Client client = Client.create();\n\n WebResource webResource = client\n .resource(\"http://localhost:1200/nodes/remove\");\n\n ClientResponse response;\n\n String jsonStr;\n ObjectMapper mapper = new ObjectMapper();\n\n synchronized (Node.getInstance()) {\n // get node object as a json string\n jsonStr = \"{\\\"id\\\": \" + Node.getInstance().getId()\n + \",\\\"ipAddress\\\": \\\"\" + Node.getInstance().getIpAddress()\n + \"\\\",\\\"port\\\": \" + Node.getInstance().getPort()\n + \"}\";\n }\n\n System.out.println(jsonStr);\n\n response = webResource.accept(\"application/json\").type(\"application/json\")\n .delete(ClientResponse.class, jsonStr);\n\n System.out.println(response.getStatus());\n\n if (response.getStatus() == 409) {\n return \"error409\";\n }\n\n if (response.getStatus() != 200) {\n throw new RuntimeException(\"Failed - HTTP error code : \"\n + response.getStatus());\n }\n return response.getEntity(String.class);\n\n }", "title": "" }, { "docid": "d58c9660d70ee999f95c914bfaeb9b02", "score": "0.4653487", "text": "@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)\n SyncPoller<PollResult<Void>, Void> beginDeleteBastionShareableLink(\n String resourceGroupName, String bastionHostname, BastionShareableLinkListRequest bslRequest, Context context);", "title": "" }, { "docid": "745b43c03907bfecd92780699936eb29", "score": "0.46520397", "text": "protected void deleteRobot(Robot robot){\n Service deleteModel = new Service(ros, \"/gazebo/delete_model\", \"/gazebo/delete_model\");\n\n ServiceRequest request = new ServiceRequest(\"{\\\"model_name\\\": \\\"box\" +robot.id+ \"\\\"}\");\n deleteModel.callService(request, null);\n //ServiceResponse response = deleteModel.callServiceAndWait(request);\n //System.out.println(response.toString());\n }", "title": "" }, { "docid": "76ca8c4d8db857cd0f85a0bc86c13781", "score": "0.46444553", "text": "public ModelAndView doRemove(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) {\n\t\tsuper.removeObject(Role.class, super.getEntityID(request));\r\n\t\treturn super.removeSuccess(request, response);\r\n\t}", "title": "" }, { "docid": "17e77cc6ae1576b421aaa0475c030bd7", "score": "0.464222", "text": "public void delete(MstAccessRole domain) {\n\t\t\n\t}", "title": "" }, { "docid": "f70405a7a0bbd800c27fa8ff25b25f74", "score": "0.4639531", "text": "@DELETE\n\t@Path(\"{listName}\")\n\t@Produces(\"text/plain\")\n\tpublic Response deleteComponent(@Context HttpHeaders headers, @Context UriInfo ui,\n\t\t\t@PathParam(\"listName\") String listName) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "af643bb66156c44c8b19958e1af47553", "score": "0.46251684", "text": "@Override\n public void update(Organization organization) {\n\n }", "title": "" }, { "docid": "b574ff1bba142a40e758f05901a4f2de", "score": "0.46233907", "text": "public void setOrganization(Organization organization) {\n this.organization = organization;\n }", "title": "" }, { "docid": "b574ff1bba142a40e758f05901a4f2de", "score": "0.46233907", "text": "public void setOrganization(Organization organization) {\n this.organization = organization;\n }", "title": "" }, { "docid": "d31179bf4094003351758cbaad935224", "score": "0.4622213", "text": "private void populateOrganizationComboBox() {\n organizationJComboBox.removeAllItems();\n \n for (Organization organization : organizationDir.getOrganizationList()){\n organizationJComboBox.addItem(organization);\n }\n }", "title": "" }, { "docid": "d0af792a676571faf8b755f59bfbb35a", "score": "0.46187007", "text": "public int delete(Workspace workspace, long opponentId) throws SessionException;", "title": "" }, { "docid": "7965f8646f07ee9dc8237c2645fb92de", "score": "0.46120068", "text": "void removeAdministrator(AdminDTO admin);", "title": "" }, { "docid": "f5d6e6d6d3544dcc6ae74c3f5e0089a8", "score": "0.46089602", "text": "@RequestMapping(value = \"/item-lists/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteItemList(@PathVariable Long id) {\n log.debug(\"REST request to delete ItemList : {}\", id);\n itemListService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"itemList\", id.toString())).build();\n }", "title": "" }, { "docid": "e7d632b667d08cf172e53ef99fa7eae2", "score": "0.46087572", "text": "java.lang.String AddOrganisation(String token, OrganisationalUnit organisation) throws AuthenticationException, ServerException;", "title": "" }, { "docid": "dd12c4ba8afdcb5f35a042b569e8bc88", "score": "0.4608037", "text": "@Override\n\tprotected void doDelete(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString caller_ip = request.getRemoteAddr();\n\t\tSystem.out.println (\"BillBoardServer - DELETE (\" + caller_ip + \")\");\n\t\ttry{\n\t\t\tbb.deleteEntry(Integer.parseInt(request.getParameter(\"idx\")));\n\t\t} catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// TODO implementation of doDelete()!\n\t\tresponse.getWriter().close();\n\t\tsendUpdates();\n\t}", "title": "" }, { "docid": "f55e0c8b3507ff01c509f338bcf319ca", "score": "0.4600081", "text": "public void delete(Meeting item) throws IOException {\n \t// DAO save the delete\n meetingList.remove(item);\n\n }", "title": "" }, { "docid": "a0368b36d6eb4269ee1274bb58dea171", "score": "0.4599623", "text": "@DeleteMapping(\"/borrar/{personId}\")\n\t\tpublic void deletePerson(@PathVariable Integer personId){\n\t\t\tSystem.out.println(\"Delete person information\");\n\t\t\tpersonList.remove(personId-1);\n\t\t\t \n\t\t\t\n\t\t}", "title": "" }, { "docid": "3826ee3212aa70357103a14dae01a3c5", "score": "0.4593471", "text": "public interface OrganisationRepositoryExtension {\n\n /**\n * Deletes a Organisation by name\n *\n * @param name Organisation name\n * @return if the Organisation was successfully deleted\n */\n boolean deleteOrganisation(String name);\n}", "title": "" }, { "docid": "a615398eab790ec741474a59a2faf27c", "score": "0.45933446", "text": "void delete(Long developerId);", "title": "" }, { "docid": "6284034d0f1d68179e0d1b429b2da129", "score": "0.4588948", "text": "@Override\n\tpublic ManageContactsResponse removeContacts(ManageContactsRequest request) throws ContactValidationException\n\t{\n\t\ttry\n\t\t{\n\t\t\tManageContactsResponse \tresponse \t\t= new ManageContactsResponse();\n\t\t\tLong \t\t\t\t\tremoveContactId = contactRepository.removeContact(request.getContactName(), request.getAddressBook());\n\t\t\tpopulateResponse(response, removeContactId);\n\t\t\treturn response;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Error in removeContacts :: \"+e.getMessage());\n\t\t\tthrow new ContactValidationException();\n\t\t}\n\t}", "title": "" }, { "docid": "56e654f8558a9d8584461b1bf08d63d7", "score": "0.45801362", "text": "public void removeByC_S(long companyId, int status);", "title": "" }, { "docid": "9da7a349709244c7796cabc88bf5174a", "score": "0.45763153", "text": "private Status deletePublication () {\n\n if (!checkSyntax())\n return Status.SYNTAX_ERROR;\n\n if (!isFound())\n return Status.NOT_EXIST;\n\n if (!isVerified())\n return Status.INCORRECT_PASSWORD;\n\n return publicationDAOImp.deletePublication(publicationId);\n }", "title": "" }, { "docid": "60fb89b64adb1baa3c7b32132dcc73b0", "score": "0.45758528", "text": "public static void delete() {\n\t\tList<Publisher> publisherList = publisher.readPubs();\n\n\t\tAtomicInteger counter = new AtomicInteger();\n\n\t\tint quit = 0;\n\t\tint auth = 0;\n\t\tint i = 1;\n\n\t\tSystem.out.println(\"Choose a Publisher to delete. Please enter the number next to the publisher\");\n\t\tpublisherList.forEach(p -> {\n\t\t\tSystem.out.println(counter.incrementAndGet() + \") \" + p.getPublisherName());\n\t\t});\n\n\t\tquit = publisherList.size() + 1;\n\t\tSystem.out.println(quit + \") Quit to previous\");\n\t\tauth = BaseController.getInt(quit);\n\n\t\tif (auth != quit) {\n\t\t\tfor (Publisher p : publisherList) {\n\t\t\t\tif (auth == i) {\n\t\t\t\t\tpublisher.deletePublisher(p); // Deletes the chosen publisher\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\tfunc(AdminInput.getFunc());\n\t}", "title": "" }, { "docid": "816433029f3b326b61e8203a76b76fda", "score": "0.45744562", "text": "VOOperatorOrganization getOrganization(String organizationId)\n throws OrganizationAuthoritiesException, ObjectNotFoundException;", "title": "" }, { "docid": "28c321b0e42b7bcf79db694ee1c1ac94", "score": "0.45742795", "text": "public void setOrganization(String organization) {\r\n\t\t this.organization = organization;\r\n\t\t}", "title": "" }, { "docid": "cf7ec9cf46a8f6396f9912650ba03490", "score": "0.45738694", "text": "@Override\n public void performDELETE(DELETERequest request) {\n if (!isRoot) {\n\n // remove this resource\n remove();\n\n request.respond(CodeRegistry.RESP_DELETED);\n } else {\n request.respond(CodeRegistry.RESP_FORBIDDEN);\n }\n }", "title": "" }, { "docid": "e8f928167418f2e00f1b9040825f689b", "score": "0.45727992", "text": "public boolean del() throws Exception{\n //VALIDATE\n theValidateUUIDRequest();\n //INIT\n HttpRequest request = createDelHttpRequest();\n HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n //CHECK\n checkHTTPResponseCode(response);\n //RESULT\n return true;\n }", "title": "" }, { "docid": "e8a2953aa4e118349e95ca5213b8f8a8", "score": "0.4564796", "text": "public T deleteTenant(String tenantDomain) throws Exception;", "title": "" }, { "docid": "22e8c00646e29da91bc65fc28c9b10bf", "score": "0.45534497", "text": "public List<Organization> getOrganization()\n\t{\n\t\treturn organizations;\n\t}", "title": "" }, { "docid": "062405bf648307af5f10db43d6dd4cc2", "score": "0.4550144", "text": "@Path(\"/{authorization_id}\")\n @DELETE\n void oauth_authorizations_delete_authorization(\n @PathParam(\"authorization_id\") Integer authorizationId);", "title": "" }, { "docid": "61de2cfb77e9361ccd8c2dd457616d2b", "score": "0.4545527", "text": "@CrossOrigin\n\t@DeleteMapping(value=\"/{serial}\")\n\tpublic ResponseEntity<Equipment> delete(@RequestBody Equipment equip){\n\t\tservice.delete(equip);\n\t\treturn ResponseEntity.ok().build();\n\t}", "title": "" }, { "docid": "fa37133b09b465346b93395a87341692", "score": "0.4545213", "text": "int deleteByPrimaryKey(@Param(\"orgId\") Long orgId, @Param(\"userId\") Long userId);", "title": "" }, { "docid": "eac7096b96c091cb45f43c44110c6d36", "score": "0.4544933", "text": "void delete( EntityCompany company );", "title": "" } ]
a84e4d0d8c247056bc6857bd87534cae
Specify the most aggressive keepalive time clients are permitted to configure. The server will try to detect clients exceeding this rate and when detected will forcefully close the connection. The default is 5 minutes. Even though a default is defined that allows some keepalives, clients must not use keepalive without approval from the service owner. Otherwise, they may experience failures in the future if the service becomes more restrictive. When unthrottled, keepalives can cause a significant amount of traffic and CPU usage, so clients and servers should be conservative in what they use and accept.
[ { "docid": "790b980cd824b335cfa996a2763df455", "score": "0.60650873", "text": "public GateWayServerBuilder permitKeepAliveTime(long keepAliveTime, TimeUnit timeUnit) {\n checkArgument(keepAliveTime >= 0, \"permit keepalive time must be non-negative\");\n permitKeepAliveTimeInNanos = timeUnit.toNanos(keepAliveTime);\n return this;\n }", "title": "" } ]
[ { "docid": "9d15e09cf81583985854ba1900acf522", "score": "0.7005249", "text": "public void setKeepAliveTime(long keepAliveTimeMs);", "title": "" }, { "docid": "7fdb02bcffaffaf67fb2aad35612241e", "score": "0.62969196", "text": "public static int getKeepAliveInterval() {\n return keepAliveInterval;\n }", "title": "" }, { "docid": "53ec065a14e4efa318ee12902b8acb06", "score": "0.6283279", "text": "long getMaxConnectionAgeInSeconds();", "title": "" }, { "docid": "e0582566cb3493ee8dba65c390aa04eb", "score": "0.6228116", "text": "Update withIdleTimeoutInMinutes(int minutes);", "title": "" }, { "docid": "280ea33540b9ae0ecb332705f17cd3e4", "score": "0.62247306", "text": "public long getKeepAliveTimeout();", "title": "" }, { "docid": "f8469a34975e70c87520e0ba1caed32b", "score": "0.6192901", "text": "public GateWayServerBuilder keepAliveTimeout(long keepAliveTimeout, TimeUnit timeUnit) {\n checkArgument(keepAliveTimeout > 0L, \"keepalive timeout must be positive\");\n keepAliveTimeoutInNanos = timeUnit.toNanos(keepAliveTimeout);\n keepAliveTimeoutInNanos =\n KeepAliveManager.clampKeepAliveTimeoutInNanos(keepAliveTimeoutInNanos);\n if (keepAliveTimeoutInNanos < MIN_KEEPALIVE_TIMEOUT_NANO) {\n // Bump keepalive timeout.\n keepAliveTimeoutInNanos = MIN_KEEPALIVE_TIMEOUT_NANO;\n }\n return this;\n }", "title": "" }, { "docid": "522369aa487da8538bdf9ce57d03e7e6", "score": "0.61816037", "text": "Builder connectionMaxIdleTime(Duration connectionMaxIdleTime);", "title": "" }, { "docid": "4c7a8d615420b145555a63cf0438a3fc", "score": "0.61777514", "text": "public boolean setTCPKeepAliveInterval(long value)\n {\n return setSocketOpt(zmq.ZMQ.ZMQ_TCP_KEEPALIVE_INTVL, Long.valueOf(value).intValue());\n }", "title": "" }, { "docid": "7ee9a91efd654ededb1ac4ef5211aa06", "score": "0.61430365", "text": "public Duration getKeepAliveTimeout() {\n return keepAliveTimeout;\n }", "title": "" }, { "docid": "1f743404ebf2bd2bb764a842e803a249", "score": "0.6139615", "text": "public Duration getKeepAliveTimeout() {\n return keepAliveTimeout;\n }", "title": "" }, { "docid": "ad9fc3dd06eb231f29775402784166a7", "score": "0.60790616", "text": "void setIdleTimeoutMinutes(long newIdleTimeoutMinutes);", "title": "" }, { "docid": "fadd5cedd9633a9f1a677630469378d2", "score": "0.6072986", "text": "public int getKeepAlivePeriod() {\n\t\treturn keepAlivePeriod;\n\t}", "title": "" }, { "docid": "ef588047135b31307ef8f0e765ae4f80", "score": "0.6062894", "text": "long getIdleTimeoutMinutes();", "title": "" }, { "docid": "54b659ba3c1c2f98013bc81c98613ea5", "score": "0.6041925", "text": "long getIdleMaxAgeInMinutes();", "title": "" }, { "docid": "6bc9a50098df12b2897cbfbc5d931940", "score": "0.59853846", "text": "public long getConnectionThrottle() {\n/* 697 */ if (SpigotConfig.bungee) {\n/* 698 */ return -1L;\n/* */ }\n/* 700 */ return this.configuration.getInt(\"settings.connection-throttle\");\n/* */ }", "title": "" }, { "docid": "e1e5ea8d48b9033e33f0f01f2bccfb14", "score": "0.5975902", "text": "public int getKeepAliveTimeoutSeconds() {\r\n\t\treturn this.keepAliveTimeoutSeconds;\r\n\t}", "title": "" }, { "docid": "89326f53549e27a8bea6fdb66c6a01ae", "score": "0.59603626", "text": "@WithDefault(\"1\")\n Duration reconnectInterval();", "title": "" }, { "docid": "eb3a68d221e5516c60b7072870652d36", "score": "0.5956265", "text": "@WithDefault(\"15\")\n Duration poolRecycleTimeout();", "title": "" }, { "docid": "0d6eb8c69e46162f3ada59224bb8df48", "score": "0.5888041", "text": "public void setKeepAlivePeriod(int keepAlivePeriod) {\n\t\tthis.keepAlivePeriod = keepAlivePeriod;\n\t}", "title": "" }, { "docid": "8c8b47af1c2b9fc2cdec7c7445fe9737", "score": "0.5848845", "text": "long getIdleConnectionTestPeriodInMinutes();", "title": "" }, { "docid": "67a27917d638958851a588177e8e5810", "score": "0.58461297", "text": "public int getKeepAliveIntervalSeconds() {\r\n\t\treturn this.keepAliveIntervalSeconds;\r\n\t}", "title": "" }, { "docid": "f725b358efd1440ddb0ed5f0d2b759ce", "score": "0.58392256", "text": "public static void setKeepAliveInterval(int interval) {\n keepAliveInterval = interval;\n }", "title": "" }, { "docid": "440d1afd09eb05fd27710ff3e12728e9", "score": "0.57857245", "text": "public long getKeepAliveTime();", "title": "" }, { "docid": "f7de9952cf131b6c1cee7aa3c42eb407", "score": "0.5776092", "text": "void setKeepAliveIntervalSeconds(short intervalSeconds) {\n socketOptionsSetKeepAliveIntervalSec(getNativeHandle(), intervalSeconds);\n }", "title": "" }, { "docid": "2c3297bad02a86736410b3d75c143803", "score": "0.5746885", "text": "@java.lang.Override\n public com.google.protobuf.Int64Value getKeepAliveTimeout() {\n return keepAliveTimeout_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : keepAliveTimeout_;\n }", "title": "" }, { "docid": "79689ede765244b3ac4afa2e7d76d507", "score": "0.57464534", "text": "public int getPollInterval() {\n return 60;\n }", "title": "" }, { "docid": "30889c4ce1ac08dd8135ecf2f3a2c796", "score": "0.56989443", "text": "public Duration getKeepAliveTime() {\n return keepAliveTime;\n }", "title": "" }, { "docid": "96127cf64e579cbffad3cc1c39122761", "score": "0.56784534", "text": "public Duration getKeepAliveTime() {\n return keepAliveTime;\n }", "title": "" }, { "docid": "20f6541fefabfd3fdcc594f3865a4f89", "score": "0.5671907", "text": "interface WithIdleTimeoutInMinutes {\n /**\n * Specifies the number of minutes before an idle connection is closed.\n * @param minutes the desired number of minutes\n * @return the next stage of the update\n */\n Update withIdleTimeoutInMinutes(int minutes);\n }", "title": "" }, { "docid": "9a36e764011e1a6a45998bd51f185833", "score": "0.5667857", "text": "public static native void setMaxAliveTime(long duration);", "title": "" }, { "docid": "d8113e56c510f7e77dd391cbce7f3a92", "score": "0.56633246", "text": "com.google.protobuf.Int64Value getKeepAliveTimeout();", "title": "" }, { "docid": "2f77c56d47b3c6e954c39821b3368817", "score": "0.5658554", "text": "public boolean setTCPKeepAliveIdle(long value)\n {\n return setSocketOpt(zmq.ZMQ.ZMQ_TCP_KEEPALIVE_IDLE, Long.valueOf(value).intValue());\n }", "title": "" }, { "docid": "34e54d6ebbaa751c80dc5e97c0e46c32", "score": "0.561744", "text": "void setKeepAliveTimeoutSeconds(short timeoutSeconds) {\n socketOptionsSetKeepAliveTimeoutSec(getNativeHandle(), timeoutSeconds);\n }", "title": "" }, { "docid": "b66d9d4f14901479b6cf45d2730f250c", "score": "0.56041676", "text": "public void setKeepAliveTimeoutSeconds(int keepAliveTimeoutSeconds) throws SCMPValidatorException, SCServiceException {\r\n\t\t// validate in this case its a local needed information\r\n\t\tValidatorUtility.validateInt(1, keepAliveTimeoutSeconds, Constants.MAX_KP_TIMEOUT_VALUE, SCMPError.HV_WRONG_KEEPALIVE_TIMEOUT);\r\n\t\tif (this.attached) {\r\n\t\t\tthrow new SCServiceException(\"Can not set property, client is already attached.\");\r\n\t\t}\r\n\t\tthis.keepAliveTimeoutSeconds = keepAliveTimeoutSeconds;\r\n\t}", "title": "" }, { "docid": "5145a1733f27ea810b89ca9e237b5091", "score": "0.5603328", "text": "public void setConnectionTimeout(int newTimeout)\n {\n loadbalancer.setConnectionTimeout(newTimeout);\n }", "title": "" }, { "docid": "c8d6e9fcc800b5e3b83745a1e233ee7b", "score": "0.5587829", "text": "public int getRetryAfterInterval();", "title": "" }, { "docid": "134dfe44cffe473636f1230c1bb25966", "score": "0.55578786", "text": "String getMaximumRedeliveryDelay();", "title": "" }, { "docid": "1e906cb2961695d532edd05c20e763a8", "score": "0.55577326", "text": "void setEvictionTimeout(long timeoutMs);", "title": "" }, { "docid": "97cc4555da68cb57e08d58063a9b1e68", "score": "0.5499999", "text": "private double default_Heart_Rate_Limit(){\r\n\t\r\n\t\treturn heart_Rate_Default_Limit = 85;\r\n\t}", "title": "" }, { "docid": "6f23472c20d03cfa8eb5dd35246e84a4", "score": "0.5489578", "text": "void setExpirationTimeoutSec(int value);", "title": "" }, { "docid": "9914c8a28b734ef25ad97f99ff33bf15", "score": "0.54793966", "text": "public int getGracePeriod()\n {\n return gracePeriodMinutes * 60 * 1000;\n }", "title": "" }, { "docid": "87dd4df098c53ee0db02d6302655673f", "score": "0.5470466", "text": "void setMaxInactiveInterval(int interval);", "title": "" }, { "docid": "6202b1381b41e67d44405ecfaea9a1b0", "score": "0.5464012", "text": "public void setKeepAliveIntervalSeconds(int keepAliveIntervalSeconds) throws SCServiceException, SCMPValidatorException {\r\n\t\t// validate in this case its a local needed information\r\n\t\tValidatorUtility.validateInt(Constants.MIN_KPI_VALUE, keepAliveIntervalSeconds, Constants.MAX_KPI_VALUE, SCMPError.HV_WRONG_KEEPALIVE_INTERVAL);\r\n\t\tif (this.attached == true) {\r\n\t\t\tthrow new SCServiceException(\"Can not set property, client is already attached.\");\r\n\t\t}\r\n\t\tthis.keepAliveIntervalSeconds = keepAliveIntervalSeconds;\r\n\t}", "title": "" }, { "docid": "7a4e8072b066499a95e750072689007c", "score": "0.54598576", "text": "@Override\n public Long timout() {\n return 5000L;\n }", "title": "" }, { "docid": "a49bae54368043a3d34c3d5f7cedada8", "score": "0.5458538", "text": "public long getStaleTimeout() {\n return 600000;\n }", "title": "" }, { "docid": "ec0f9007007e0cdd0723e2641cec6e89", "score": "0.54432863", "text": "public void setMaximumRetryInterval(int interval) throws KiteException {\n if(interval >= 5) {\n //convert to milliseconds\n maxRetryInterval = interval * 1000;\n } else {\n throw new KiteException(\"Maximum retry interval can't be less than 0\");\n }\n }", "title": "" }, { "docid": "47596e175dbb79f79c9fcac2d30da231", "score": "0.5441735", "text": "public void setKeepAliveTime(long time, TimeUnit unit) {\r\n\t\tif (time < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif (time == 0 && allowsCoreThreadTimeOut())\r\n\t\t\tthrow new IllegalArgumentException(\"Core threads must have nonzero keep alive times\");\r\n\t\tthis.keepAliveTime = unit.toNanos(time);\r\n\t}", "title": "" }, { "docid": "3d267f6af7a05833d07053a5a45b1284", "score": "0.5433687", "text": "@Override\n public void addConnectionKeepAliveHeader() {\n // NOTE: This could actually be commented out because it seems like this header is automatically add. ****\n // NOTE: *************************************************************************************************\n request.addHeader(new BasicHeader(HttpHeaders.CONNECTION, HTTP.CONN_KEEP_ALIVE));\n }", "title": "" }, { "docid": "4b95a4bf35bbeb3f2af868b000781489", "score": "0.5411215", "text": "public abstract int getMaxInactiveInterval();", "title": "" }, { "docid": "0c3741c162aac57c65abc7577c91de86", "score": "0.5399099", "text": "public abstract void setMaxInactiveInterval(int arg0);", "title": "" }, { "docid": "30fe51a8a5d46eabf1a9c4201cebe33a", "score": "0.5389771", "text": "public int getIdleTimeoutSeconds() {\n return idleTimeoutSeconds;\n }", "title": "" }, { "docid": "fc406744269c1aa7a789d33ae15511f0", "score": "0.5334163", "text": "void setBlockingTimeoutMillis(int newBlockingTimeout);", "title": "" }, { "docid": "e6b245246d1afc9602d619497bca0cf5", "score": "0.53279006", "text": "public int getHeartbeatIntervalSeconds() {\n return heartbeatIntervalSeconds;\n }", "title": "" }, { "docid": "05bf98347d560cc5273037783ea87dba", "score": "0.5294462", "text": "Duration getDefaultPollInterval();", "title": "" }, { "docid": "05bf98347d560cc5273037783ea87dba", "score": "0.5294462", "text": "Duration getDefaultPollInterval();", "title": "" }, { "docid": "bb5414163be26548747e1dc6bf48e4cc", "score": "0.5291676", "text": "@java.lang.Override\n public com.google.protobuf.Int64ValueOrBuilder getKeepAliveTimeoutOrBuilder() {\n return getKeepAliveTimeout();\n }", "title": "" }, { "docid": "e60d1d0059b77439c77b67622f2233a1", "score": "0.5291332", "text": "private Timeout timeout(BidRequest bidRequest) {\n final Long tmax = bidRequest.getTmax();\n return timeoutFactory.create(tmax != null && tmax > 0 ? tmax : defaultTimeout);\n }", "title": "" }, { "docid": "fa7cf9e35b4d4537fc7356854eeb2b12", "score": "0.52728444", "text": "com.google.protobuf.Int64ValueOrBuilder getKeepAliveTimeoutOrBuilder();", "title": "" }, { "docid": "dddff35b0e928d7912eb63e38b6ee56b", "score": "0.52479666", "text": "public boolean setTCPKeepAliveCount(long value)\n {\n return setSocketOpt(zmq.ZMQ.ZMQ_TCP_KEEPALIVE_CNT, Long.valueOf(value).intValue());\n }", "title": "" }, { "docid": "45496a94ecde0f057d8a9102966ad420", "score": "0.52472115", "text": "public void setMinutes( int value ) {\n setMaxwait( value );\n setMaxWaitUnit( TimeUnit.MINUTE_UNIT );\n }", "title": "" }, { "docid": "0f58b711eec4ef328ea3bb0441722720", "score": "0.52274716", "text": "public void setMaxInactiveInterval(int interval) {\n\r\n\t}", "title": "" }, { "docid": "0863bd4970701d9a15568cb38f64b2a6", "score": "0.5226758", "text": "@Deprecated\n public void setIdleConnectionTimeout(long paramLong) {\n }", "title": "" }, { "docid": "f47b067afcc4ee7a1a0d09fd67ea9a78", "score": "0.5224169", "text": "public com.google.protobuf.Int64Value getKeepAliveTimeout() {\n if (keepAliveTimeoutBuilder_ == null) {\n return keepAliveTimeout_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : keepAliveTimeout_;\n } else {\n return keepAliveTimeoutBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "9b816d426693529a654b870fda3ba6f7", "score": "0.5206541", "text": "protected static void forceShortIdlePeriod(long idlePeriod)\n\t{\n\t\tLateralCacheMonitor.idlePeriod = idlePeriod;\n\t}", "title": "" }, { "docid": "753899822cc6ae39dd1a7f1ab75592d6", "score": "0.51947874", "text": "WithAttach<ReturnT> withIdleTimeoutInMinutes(int minutes);", "title": "" }, { "docid": "753899822cc6ae39dd1a7f1ab75592d6", "score": "0.51947874", "text": "WithAttach<ReturnT> withIdleTimeoutInMinutes(int minutes);", "title": "" }, { "docid": "6da6826b6d3596ba39b5fe8cf8b580a8", "score": "0.51823884", "text": "public Builder clearKeepAliveTimeout() {\n if (keepAliveTimeoutBuilder_ == null) {\n keepAliveTimeout_ = null;\n onChanged();\n } else {\n keepAliveTimeout_ = null;\n keepAliveTimeoutBuilder_ = null;\n }\n\n return this;\n }", "title": "" }, { "docid": "16e14514eef095cd864a4b88e0ee5b1f", "score": "0.5182265", "text": "@java.lang.Override\n public boolean hasKeepAliveTimeout() {\n return keepAliveTimeout_ != null;\n }", "title": "" }, { "docid": "0b68c87e418419c375e52e181d275ab2", "score": "0.5178585", "text": "@Override\n\tpublic long getHealSessionInterval() {\n\t\treturn (Long) config.get(\"HealSessionInterval\");\n\t}", "title": "" }, { "docid": "c97ef484fddb64fbc9129bad66e51f1b", "score": "0.5155076", "text": "public void setLastHeartbeat(long rtpKeepAlive) {\n\t\tthis.rtpLastHeartbeat = rtpKeepAlive;\n\t}", "title": "" }, { "docid": "2937a29a8953af0a952cc3210bd11ff0", "score": "0.5146712", "text": "void setTimeLimit(Long limit);", "title": "" }, { "docid": "3725e2350bfcad3dd38c94fde003cbd8", "score": "0.51315767", "text": "@Override\n public boolean acceptExpireTime(long expireTime) {\n long currentTimeMillis = System.currentTimeMillis();\n long currentTimeSec = currentTimeMillis / 1000;\n long expectedExpirySec = currentTimeSec + paymentChannelTimeoutSeconds;\n long min = expectedExpirySec - SAFE_MARGIN_SECONDS;\n long max = expectedExpirySec + SAFE_MARGIN_SECONDS;\n log.debug(\"Expire time = \" + expireTime + \" must be greater than \" + min + \" and less than \" + max);\n return expireTime > min && expireTime < max;\n }", "title": "" }, { "docid": "27064f351e0b5c3bc50a2663bf2cb486", "score": "0.5123581", "text": "@WithDefault(\"10s\")\n Duration timeout();", "title": "" }, { "docid": "7a8496dc484b46348a849522955295f9", "score": "0.5120862", "text": "public void setThrottlingDelay(int throttlingDelayMils) {\n this.throttlingDelayMils = throttlingDelayMils;\n }", "title": "" }, { "docid": "72c2c8a57227b64bfa2ba53daa073cbf", "score": "0.5115009", "text": "public Builder setKeepAliveTimeout(com.google.protobuf.Int64Value value) {\n if (keepAliveTimeoutBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n keepAliveTimeout_ = value;\n onChanged();\n } else {\n keepAliveTimeoutBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "56bec440a4af771d045b4599cc3b81f0", "score": "0.51148975", "text": "public TimeDuration getMaxAllowedClockDrift() {\n return SimpleTimeDuration.of(5, TimeUnit.SECONDS);\n }", "title": "" }, { "docid": "93babadfb814abff3bc672ec922c0e4a", "score": "0.51062936", "text": "public long getUpdateInterval() {\n\treturn 60L * 1000000L; // Just a default value for low volume.\n }", "title": "" }, { "docid": "fba2bf67aede98b7b34dea33f1ec8b3b", "score": "0.5103029", "text": "public void setTimeToLive(long timeToLive);", "title": "" }, { "docid": "a92a19a7bb22958be26fd8cfae4a6337", "score": "0.5077195", "text": "private static void setupRetriesInFlightTimeout(Properties props) {\n props.put(ProducerConfig.MAX_IN_FLIGHT_REQUESTS_PER_CONNECTION, (int)(config.get(ItemProducerConfig.MAX_IN_FLIGHT_REQUESTS_PER_CONNECTION)));\n //Set the number of retries - retries\n props.put(ProducerConfig.RETRIES_CONFIG, (int)(config.get(ItemProducerConfig.RETRIES_CONFIG)));\n\n //Request timeout - request.timeout.ms\n props.put(ProducerConfig.REQUEST_TIMEOUT_MS_CONFIG, (int)(config.get(ItemProducerConfig.REQUEST_TIMEOUT_MS_CONFIG)));\n\n //Only retry after one second.\n props.put(ProducerConfig.RETRY_BACKOFF_MS_CONFIG, (int)(config.get(ItemProducerConfig.RETRY_BACKOFF_MS_CONFIG)));\n }", "title": "" }, { "docid": "8f9e0f0f719bc4d14ba341e7766d5efd", "score": "0.50708073", "text": "boolean hasKeepAliveTimeout();", "title": "" }, { "docid": "7fb9595f6c2d3dfaec4fd632ed31c586", "score": "0.50663567", "text": "public Builder setKeepAliveTimeout(Duration duration) {\n this.keepAliveTimeout = duration;\n return this;\n }", "title": "" }, { "docid": "a5560c09d6e1724b467afb004361e5f9", "score": "0.50617254", "text": "interface WithIdleTimeoutInMinutes<ReturnT> {\n /**\n * Specifies the number of minutes before an idle connection is closed.\n * @param minutes the desired number of minutes\n * @return the next stage of the definition\n */\n WithAttach<ReturnT> withIdleTimeoutInMinutes(int minutes);\n }", "title": "" }, { "docid": "a5560c09d6e1724b467afb004361e5f9", "score": "0.50617254", "text": "interface WithIdleTimeoutInMinutes<ReturnT> {\n /**\n * Specifies the number of minutes before an idle connection is closed.\n * @param minutes the desired number of minutes\n * @return the next stage of the definition\n */\n WithAttach<ReturnT> withIdleTimeoutInMinutes(int minutes);\n }", "title": "" }, { "docid": "c57864ec2d5b70cd660f522ac2b1d01e", "score": "0.5057551", "text": "public void setThrottle(Integer throttle) {\n this.throttle = throttle;\n }", "title": "" }, { "docid": "8304bd60452b677b8bd92cf66055ac07", "score": "0.5054949", "text": "int getBlockingTimeoutMillis();", "title": "" }, { "docid": "21f15289d8bbf2a6c434ec96ddb6ba55", "score": "0.50496644", "text": "public void allowCoreThreadTimeOut(boolean value) {\r\n\t\tif (value && keepAliveTime <= 0)\r\n\t\t\tthrow new IllegalArgumentException(\"Core threads must have nonzero keep alive times\");\r\n\r\n\t\tallowCoreThreadTimeOut = value;\r\n\t}", "title": "" }, { "docid": "8769aabe93880cfe7866a974ff23e8d8", "score": "0.5043687", "text": "public long getKeepAliveTime(TimeUnit unit) {\r\n\t\treturn unit.convert(keepAliveTime, TimeUnit.NANOSECONDS);\r\n\t}", "title": "" }, { "docid": "24244ec90e53b4d7435ed124d6a012ef", "score": "0.50404555", "text": "public boolean setReceiveTimeOut(int value)\n {\n return setSocketOpt(zmq.ZMQ.ZMQ_RCVTIMEO, value);\n }", "title": "" }, { "docid": "434aa59accb069e18622dfcb03ba572c", "score": "0.5036706", "text": "@Override\n public long getClientTimeout() {\n return getLongProperty(\"net.client.timeout\", 12000000);\n }", "title": "" }, { "docid": "adaeeb569d8fd3f6466d57f09de46e7b", "score": "0.50342107", "text": "public Optional<Integer> maxBackoff() {\n return Codegen.integerProp(\"maxBackoff\").config(config).env(\"CLOUDFLARE_MAX_BACKOFF\").def(30).get();\n }", "title": "" }, { "docid": "8ae216b8dedc5101517d85280fbe06b9", "score": "0.50278014", "text": "protected void scheduleRequest() {\n\t\tif (!EnvironmentUtils.isGoogleAppEngine()) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(7000);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\tlogger.log(Level.WARNING, \"Load balancing interrupted\", ex);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6b221c446df836288923a805cc740cc0", "score": "0.5023247", "text": "Integer maxCacheTTL();", "title": "" }, { "docid": "39c67c072776aea5acce40d565a8a780", "score": "0.5021168", "text": "public void setMaxPollInterval( long maxPollInterval )\n {\n _maxPollInterval = maxPollInterval;\n }", "title": "" }, { "docid": "316a0f1290f3cb2af9da7c35bf8110b6", "score": "0.5020811", "text": "long getAcquireRetryDelayInMs();", "title": "" }, { "docid": "7393ae87574ba077fb0699c34d5d1710", "score": "0.5020686", "text": "public void setMaxInactiveTimeAllowed(long maxInactiveTimeAllowed) {\n if (maxInactiveTimeAllowed > 0) {\n this.maxInactiveTimeAllowed = maxInactiveTimeAllowed;\n }\n }", "title": "" }, { "docid": "93f43b7c8ca7e01c34878027b402bc59", "score": "0.50169456", "text": "public int getStartupWaitTime() {\n return 60;\n }", "title": "" }, { "docid": "7c6902d174982bd8d347f2fc5a90f003", "score": "0.50092524", "text": "public com.google.protobuf.Int64ValueOrBuilder getKeepAliveTimeoutOrBuilder() {\n if (keepAliveTimeoutBuilder_ != null) {\n return keepAliveTimeoutBuilder_.getMessageOrBuilder();\n } else {\n return keepAliveTimeout_ == null ?\n com.google.protobuf.Int64Value.getDefaultInstance() : keepAliveTimeout_;\n }\n }", "title": "" }, { "docid": "952211707a75eacfb183b0f90f14dc01", "score": "0.500298", "text": "private void disableConnectionReuseIfNecessary() {\n\t\tif (Integer.parseInt(Build.VERSION.SDK) < Build.VERSION_CODES.FROYO) {\n\t\t\tSystem.setProperty(\"http.keepAlive\", \"false\");\n\t\t}\n\t}", "title": "" }, { "docid": "580065a2dd94a41176f01f1e8d7ee5d2", "score": "0.50020635", "text": "public void setMaxinfoagePeriodicRequested(long value) {\n this.maxinfoagePeriodicRequested = value;\n }", "title": "" }, { "docid": "620068b64201bf2e48daa5627073873f", "score": "0.5000587", "text": "@Override\n\tpublic long getMaxWaitMillis() {\n\t\treturn (Long) config.get(\"MaxWaitMillis\");\n\t}", "title": "" } ]
ab9cba97c8bf6954117075ccff3160e6
As part of the save transaction, when a PO is in a "C"ompleted state, the replacement unit (when one exists) information should be captured and saved on the PO for historical reference.
[ { "docid": "67105f0c5d039335b6c415b7e6a3cb49", "score": "0.5498494", "text": "private void captureReplacementUnitInfo(MaintenanceRequest mrq){\t\n\t\tContractLine contractLine = null;\n\t\t\n\t\tif(mrq.getMaintReqStatus().equals(MaintenanceRequestStatusEnum.MAINT_REQUEST_STATUS_COMPLETE.getCode())){\n\t\t\tcontractLine = contractService.getLastActiveContractLine(mrq.getFleetMaster(), mrq.getMaintReqDate());\n\t\t\tVehicleReplacementV replacementUnitInfo = null;\n\t\t\tif(!MALUtilities.isEmpty(contractLine)){\n\t\t\t\treplacementUnitInfo = vehicleReplacementVDAO.findById(\n\t\t\t\t\tnew VehicleReplacementVPK(mrq.getFleetMaster().getUnitNo(), \n\t\t\t\t\t\t\tcontractLine.getContract().getExternalAccount().getExternalAccountPK().getCId(), \n\t\t\t\t\t\t\tcontractLine.getContract().getExternalAccount().getExternalAccountPK().getAccountType(), \n\t\t\t\t\t\t\tcontractLine.getContract().getExternalAccount().getExternalAccountPK().getAccountCode())).orElse(null);\n\t\t\t}\n\t\t\tif(!MALUtilities.isEmpty(replacementUnitInfo)){\n\t\t\t\t//mrq.setReplacementUnitNo(replacementUnitInfo.getVehicleReplacementVPK().getCurrentUnitNo()); Bug16623 commented instead of getting current unit no it should get replacement unit no.\n\t\t\t\tmrq.setReplacementUnitNo(replacementUnitInfo.getReplacementUnitNo());//Bug16623 Added to get replacement unit\n\t\t\t\tif(!MALUtilities.isEmpty(replacementUnitInfo.getInServiceDate())){\n\t\t\t\t\tmrq.setReplacementUnitDateType(DATE_TYPE_IN_SERVICE);\n\t\t\t\t\tmrq.setReplacementUnitDate(replacementUnitInfo.getInServiceDate());\n\t\t\t\t} else if(!MALUtilities.isEmpty(replacementUnitInfo.getDealerDeliverDate())){\n\t\t\t\t\tmrq.setReplacementUnitDateType(DATE_TYPE_DEALER_DELIVERY);\n\t\t\t\t\tmrq.setReplacementUnitDate(replacementUnitInfo.getDealerDeliverDate());// changed to dealerdeliverdate for Bug 16623\n\t\t\t\t} else if(!MALUtilities.isEmpty(replacementUnitInfo.getEtaDate())){\n\t\t\t\t\tmrq.setReplacementUnitDateType(DATE_TYPE_ETA);\n\t\t\t\t\tmrq.setReplacementUnitDate(replacementUnitInfo.getEtaDate());\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tmrq.setReplacementUnitDateType(null);\n\t\t\t\t\tmrq.setReplacementUnitDate(null);\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}", "title": "" } ]
[ { "docid": "d2f6f2b29f6b39ac0671947e8727e9c9", "score": "0.5899774", "text": "public void saveExisting() {\r\n Part modifiedPart = null;\r\n for (Part part : Inventory.getAllParts()) {\r\n if (Integer.parseInt(iDfield.getText()) == part.getId()) {\r\n modifiedPart = part;\r\n }\r\n }\r\n if (modifiedPart instanceof Outsourced && inHouseSelected) {\r\n replacePart(modifiedPart);\r\n\r\n } else if (modifiedPart instanceof InHouse && !inHouseSelected) {\r\n replacePart(modifiedPart);\r\n } else {\r\n modifiedPart.setName(nameField.getText());\r\n modifiedPart.setStock(Integer.parseInt(invField.getText()));\r\n modifiedPart.setPrice(Double.parseDouble(priceField.getText()));\r\n modifiedPart.setMax(Integer.parseInt(maxField.getText()));\r\n modifiedPart.setMin(Integer.parseInt(minField.getText()));\r\n if (inHouseSelected) {\r\n ((InHouse) modifiedPart).setMachineId(Integer.parseInt(machineOrCompanyField.getText()));\r\n } else {\r\n ((Outsourced) modifiedPart).setCompanyName(machineOrCompanyField.getText());\r\n }\r\n\r\n Inventory.updatePart(Inventory.getAllParts().indexOf(modifiedPart), modifiedPart);\r\n }\r\n\r\n }", "title": "" }, { "docid": "fc8c9dadadf104bd7d2237647f942a99", "score": "0.5709008", "text": "private void updrec() {\n\t\tsavedata();\n\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\tnmfkpinds.setPgmInd66(isLastError());\n\t\t// BR00011 Product found on Contract_Detail and NOT ERROR(CONDET)\n\t\tif (! nmfkpinds.pgmInd36() && ! nmfkpinds.pgmInd66()) {\n\t\t\trestoredata();\n\t\t\tcontractDetail.update();\n\t\t\tnmfkpinds.setPgmInd99(isLastError());\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"Y2U0007\", \"\", msgObjIdx, messages);\n\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t}\n\t}", "title": "" }, { "docid": "49c56cd0d81f27b9783683d124d07b17", "score": "0.5672157", "text": "@Test\n\t\tpublic void testSave2()\n\t\t{\n\t\t\tChObject cho = repoTest.get(\"68268301\");\n\t\t\trepoTest.remove(cho);\n\t\t\tcho.setDate(\"1900\");\n\t\t\tcho.setDescription(\"test input\");\n\t\t\trepoTest.save(cho);\n\n\t\t\tChObject cho2 = repoTest.get(\"68268301\");\n\t\t\tassertTrue(\"1900\".equals(cho2.getDate()));\n\t\t\tassertTrue(\"test input\".equals(cho2.getDescription()));\n\t\t}", "title": "" }, { "docid": "d8d9e30970a4ba24a37aef728a692524", "score": "0.5583006", "text": "@Override\n\tpublic void save(CorsoDiLaurea corso) {\n\t\t\n\t}", "title": "" }, { "docid": "589db193bff203278b8b69b816317bee", "score": "0.54527825", "text": "public void saveNew() {\r\n String name, compName;\r\n double price;\r\n int id, inv, max, min, machId;\r\n //Gets the ID of the last part in the inventory and adds 1 to it \r\n id = Inventory.getAllParts().get(Inventory.getAllParts().size() - 1).getId() + 1;\r\n name = nameField.getText();\r\n inv = Integer.parseInt(invField.getText());\r\n price = Double.parseDouble(priceField.getText());\r\n max = Integer.parseInt(maxField.getText());\r\n min = Integer.parseInt(minField.getText());\r\n\r\n if (inHouseSelected) {\r\n machId = Integer.parseInt(machineOrCompanyField.getText());\r\n Part newPart = new InHouse(id, name, price, inv, min, max, machId);\r\n Inventory.addPart(newPart);\r\n } else {\r\n compName = machineOrCompanyField.getText();\r\n Part newPart = new Outsourced(id, name, price, inv, min, max, compName);\r\n Inventory.addPart(newPart);\r\n }\r\n\r\n }", "title": "" }, { "docid": "e20007caf570109890418a4ee312a7b4", "score": "0.5445163", "text": "@Override\r\n\tpublic void save(Plate tipo) {\n\t\t\r\n\t}", "title": "" }, { "docid": "4fdbefd5c03493ef40a8cfa26bf117f1", "score": "0.54160506", "text": "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "f5b26d49c2dc4bfd752b7cb80ac0ed74", "score": "0.53762895", "text": "private boolean saveOperacion(BeanItem<Operacion> oItem, Form operacionConfirmForm) {\n\t\tboolean isMulti = (cuentasSet!=null);\n\t\tEntityTransaction trans = null;\n\t\tEntityManager em = null;\n\t\ttry {\n\t\t\tem = ConfigurationUtil.getNewEntityManager();\n\t\t\tMutableLocalEntityProvider<Operacion> operacionEP = new BatchableLocalEntityProvider<Operacion>(\n\t\t\t\t\tOperacion.class, em);\n\t\t\toperacionEP.setTransactionsHandledByProvider(false);\n\t\t\tMutableLocalEntityProvider<Cuenta> cuentaEP = new BatchableLocalEntityProvider<Cuenta>(\n\t\t\t\t\tCuenta.class, em);\n\t\t\tMutableLocalEntityProvider<Usuario> usuarioEP = new BatchableLocalEntityProvider<Usuario>(\n\t\t\t\t\tUsuario.class, em);\n\t\t\tcuentaEP.setTransactionsHandledByProvider(false);\n\t\t\tMutableLocalEntityProvider<Saldo> saldoEP = new BatchableLocalEntityProvider<Saldo>(\n\t\t\t\t\tSaldo.class, em);\n\t\t\tsaldoEP.setTransactionsHandledByProvider(false);\n\t\t\t\t\n\t\t\tString logCaja = null;\n\t\t\t\n\t\t\ttrans = em.getTransaction();\n\t\t\ttrans.begin();\n\t\t\t\n\t\t\tif (!isMulti) {\n\t\t\t\tcuentasSet = new HashSet<Cuenta>();\n\t\t\t\tcuentasSet.add(cuenta);\n\t\t\t}\n\t\t\tOperacion oper = null;\n\t\t\tfor (Cuenta cn : cuentasSet) {\n\t\t\t\toper = (isMulti ? ((Operacion)oItem.getBean()).clone() : (Operacion)oItem.getBean());\n\t\t\t\toper.setUsuario(em.find(Usuario.class, (SessionHandler.get().getId())));\n\t\t\t\tif (oper.getFechaDeCobro()==null && (!oper.getTipo().equals(Tipo.CHEQUE.toString()))) oper.setFechaDeCobro(oper.getFecha());\n\t\t\t\tcn = cuentaEP.getEntityManager().find(Cuenta.class, cn.getId(), LockModeType.PESSIMISTIC_WRITE);\n\t\t\t\tassert cn!=null;\n\t\t\t\t\n\t\t\t\tif (oper.getIsCargo()) {\n\t\t\t\t\toper.setPen(oper.getPen().multiply(new BigDecimal(-1)).setScale(2));\n\t\t\t\t\toper.setUsd(oper.getUsd().multiply(new BigDecimal(-1)).setScale(2));\n\t\t\t\t}\n\t\n\t\t\t\tBoolean isEfectivo = oper.getTipo().equals(Tipo.EFECTIVO.toString()); \n\t\t\t\t//logger.info(\"Got operacion to save: \" + oper);\n\t\n\t\t\t\toper.setIsPen((oper.getPen().compareTo(new BigDecimal(0)) > 0 \n\t\t\t\t\t\t|| oper.getPen().compareTo(new BigDecimal(0))< 0) ? true : false);\n\t\n\t\t\t\tBoolean isCorEfectivo = oper.getIsCorrection() ? \n\t\t\t\t\t\toper.getOperacionCorrected().getTipo().equals(Tipo.EFECTIVO.toString()) : isEfectivo;\n\t\t\t\t// In case of correction and same type (EFECTIVO/BANCO) or is of type Caja/Banco\n\t\t\t\t// Only add the difference\n\t\t\t\tif (oper.getIsCorrection() && (isEfectivo.equals(isCorEfectivo) || cn.getIsCaja())) {\n\t\t\t\t\tOperacion oldOperacion = oper.getOperacionCorrected();\n\t\t\t\t\t\n\t\t\t\t\tBigDecimal diffPen = oper.getPen().subtract(\n\t\t\t\t\t\t\toldOperacion.getPen());\n\t\t\t\t\toper.setPen(diffPen);\n\t\t\t\t\tBigDecimal diffUsd = oper.getUsd().subtract(\n\t\t\t\t\t\t\toldOperacion.getUsd());\n\t\t\t\t\toper.setUsd(diffUsd);\n\t\t\t\t} else if (oper.getIsCorrection() && (!cn.getIsCaja()) && ((!isEfectivo.equals(isCorEfectivo)) || \n\t\t\t\t\t\t((!isEfectivo) && (!isCorEfectivo) && (!oper.getBanco().equals(oper.getOperacionCorrected().getBanco()))))) {\n\t\t\t\t\t// If isCorrection and there are differences of types we have to move between Efectivo and Bancario\n\t\t\t\t\t// make a reverse operation\n\t\t\t\t\tOperacion op = oper.getOperacionCorrected().clone();\n\t\t\t\t\top.setIsCorrection(true);\n\t\t\t\t\top.setDescripcion(oper.getDescripcion());\n\t\t\t\t\top.setOperacionCorrected(oper.getOperacionCorrected());\n\t\t\t\t\top.setBeneficiario(oper.getBeneficiario());\n\t\t\t\t\top.setCentroCosto(oper.getCentroCosto());\n\t\t\t\t\top.setCuentaContable(oper.getCuentaContable());\n\t\t\t\t\top.setRubroInstitucional(oper.getRubroInstitucional());\n\t\t\t\t\top.setRubroProyecto(oper.getRubroProyecto());\n\t\t\t\t\top.setLugarGasto(oper.getLugarGasto());\n\t\t\t\t\top.setBanco(oper.getBanco());\n\t\t\t\t\top.setChequeNumero(oper.getChequeNumero());\n\t\t\t\t\top.setDocNumero(oper.getDocNumero());\n\t\t\t\t\top.setDni(oper.getDni());\n\t\t\t\t\top.setTipoDocumento(oper.getTipoDocumento());\n\t\t\t\t\tif (ConfigurationUtil.getUltimoMesCerrado().before(oper.getOperacionCorrected().getFecha()))\n\t\t\t\t\t\top.setFecha(ConfigurationUtil.dateAddSeconds(oper.getOperacionCorrected().getFecha(), 1));\n\t\t\t\t\telse\n\t\t\t\t\t\top.setFecha(ConfigurationUtil.dateAddSeconds(ConfigurationUtil.getUltimoMesCerrado(), 1));\n\t\t\t\t\t\n\t\t\t\t\top.setPen(oper.getOperacionCorrected().getPen().multiply(new BigDecimal(-1)));\n\t\t\t\t\top.setUsd(oper.getOperacionCorrected().getUsd().multiply(new BigDecimal(-1)));\n\t\t\t\t\t\n\t\t\t\t\tcn.setPen(cn.getPen().add(op.getPen()));\n\t\t\t\t\tcn.setUsd(cn.getUsd().add(op.getUsd()));\t\t\t\t\n\t\t\t\t\tcn = cuentaEP.updateEntity(cn);\n\t\t\t\t\top.setSaldoPen(cn.getPen());\n\t\t\t\t\top.setSaldoUsd(cn.getUsd());\t\t\n\t\t\t\t\tObject operAdded = operacionEP.addEntity(op);\n\t\t\t\t\tObject newOperacionId = ((Operacion)operAdded).getId();\n\t\t\t\t\top.setId((Long)newOperacionId);\n\t\t\t\t\t\n\t\t\t\t\t// NEW CODE REVERSE the Caja/Banco\n\t\t\t\t\t// NEW CODE - added operacion to caja Cuenta\n\t\t\t\t\tlogger.info(processCajaBancoOperacion(cn, (Operacion)operAdded, em, cuentaEP, operacionEP));\n\t\t\t\t\tif (newOperacionId!=null) recalculateSaldos((Operacion)operAdded, em);\n\t\t\t\t}\n\t\t\t\tString logCuenta = \"Cuenta numero: \" + cn.getNumero()\n\t\t\t\t\t\t+ \" , antes PEN: \" + cn.getPen()\n\t\t\t\t\t\t+ \", USD: \" + cn.getUsd();\n\t\t\t\t// Set the BancoCuenta beacause otherwise it gets lost\n\t\t\t\tif (oper.getBanco()!=null) {\n\t\t\t\t\tCuenta bancoCuenta = em.find(Cuenta.class, oper.getBanco().getBancoCuenta().getId());\n\t\t\t\t\tBanco banco = em.find(Banco.class, oper.getBanco().getId());\n\t\t\t\t\tbanco.setBancoCuenta(bancoCuenta);\n\t\t\t\t\toper.setBanco(banco);\n\t\t\t\t}\n\t\t\t\tObject operAdded = operacionEP.addEntity(oper);\n\t\t\t\tObject newOperacionId = ((Operacion)operAdded).getId();\n\t\t\t\tcn = recalculateSaldos((Operacion)operAdded, em);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tlogger.info(\"new oper id: \" + newOperacionId);\n\t\t\t\toper.setId((Long) newOperacionId);\n\t\t\t\tif (operAdded!=null) \n\t\t\t\t\tlogger.info(\"Added new operacion: \" + operAdded.toString());\n\t\t\t\tlogger.info(\"Updated cn: \" + cn.toString());\n\t\t\t\t// PROCESS CAJA/BANCO \n\t\t\t\tif (!cn.getIsCaja()) {\n\t\t\t\t\tlogger.info(\"OPERACION en CAJA/BANCO processing normally for non Caja\");\t\t\t\n\t\t\t\t\tlogger.info(processCajaBancoOperacion(cn, (Operacion)operAdded, em, cuentaEP, operacionEP));\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tlogger.info(\"Nueva operacion \"\n\t\t\t\t\t\t+ (oper.getIsCorrection() ? \" CORRECCION\" : \"\")\n\t\t\t\t\t\t+ \": \" + oper);\n\t\t\t\tlogCuenta += \", ahora PEN: \" + cn.getPen() + \", USD: \"\n\t\t\t\t\t\t+ cn.getUsd();\n\t\t\t\tlogger.info(logCuenta);\t\t\t\t\n\t\t\t\tcuenta = cn;\n\t\t\t}\n\t\t\tif (trans!=null && trans.isActive()) {\n\t\t\t\tlogger.info(\"trans active commiting...\");\n\t\t\t\ttrans.commit();\n\t\t\t\tlogger.info(\"commit done\");\n\t\t\t\tem.close();\n\t\t\t}\n\t\t\tlogger.info(\"Cuenta for redrawing: \" + cuenta);\n\t\t\tremoveComponent(operacionConfirmForm);\n\t\t\tif (operacionTable instanceof AccountantCajaTable) \n\t\t\t\t((AccountantCajaTable)operacionTable).redraw(cuenta, oper.getIsPen(), true, false);\n\t\t\telse if (operacionTable!=null) operacionTable.drawCuentaForm(cuenta, true);\n\t\t\tif (cuentaTable!=null) cuentaTable.redraw();\n\t\t\tWindow par = getWindow().getParent();\n\t\t\tpar.removeWindow(getWindow());\n\t\t\tif (!isMulti && ConfigurationUtil.is(\"REPORTS_COMPROBANTE_OPEN\")) ReportHelper.generateComprobante(oper, par);\n\t\t\tif (!isMulti && ConfigurationUtil.is(\"REPORTS_COMPROBANTE_PRINT\")&&(!SessionHandler.isAdmin())&&(!SessionHandler.isContador())) {\n\t\t\t\tJasperPrint jrPrint = ReportHelper.printComprobante(oper, par);\n\t\t\t\tboolean isPrinted = false;\n\t\t\t\tif (((VasjaApp)par.getApplication()).getPrintHelper()!=null)\n\t\t\t\t\tisPrinted = ((VasjaApp)par.getApplication()).getPrintHelper().print(jrPrint, true);\n\t\t\t\tif (!isPrinted)\n\t\t\t\t\tthrow new Exception(\"No se podia imprimir comprobante\");\t\t\t\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tif ((trans!=null) && (trans.isActive())) {\n\t\t\t\tlogger.info(\"Trans is active rolling back...\");\n\t\t\t\ttrans.rollback();\n\t\t\t\tlogger.info(\"Rolled back\");\n\t\t\t\tem.close();\n\t\t\t}\n\t\t\te.printStackTrace();\t\t\t\t\t\n\t\t\tgetWindow().showNotification(\"Problema con la operacion \", e.getMessage(), Notification.TYPE_ERROR_MESSAGE);\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "84084d0f6e6769e48c6c2b9d6a9dd712", "score": "0.53584385", "text": "private void saveCurrentObject() {\n\t}", "title": "" }, { "docid": "28f9a570c347d982212c112b7c077469", "score": "0.5357712", "text": "@Transactional\n\tpublic void saveNewGeneric(FlowObjCreator foc) {\n\t\tTree folderT = readDocT(foc.getIdf());\n\t\tTree newGenericT = setNewDocT(\"drug\",folderT);\n\t\tDrug newGenericO = makeNewDrug(newGenericT, foc.getGenericName());\n\t\tnewGenericO.setGeneric(newGenericO);\n\t\tem.persist(newGenericT);\n\t\tem.persist(newGenericO);\n\t}", "title": "" }, { "docid": "88d75c06e272f8f077808bfe2631f667", "score": "0.5325849", "text": "private void CQChangeStateVP(String origen, String destino) {\n if (!isReceipt()) {\n String sql = \"SELECT C_VALORPAGO_ID FROM C_VALORPAGO WHERE TIPO='P' AND STATE=? AND C_PAYMENT_ID=?\";\n\n try {\n\n PreparedStatement pstm = DB.prepareStatement(sql, get_TrxName());\n pstm.setString(1, origen);\n pstm.setInt(2, getC_Payment_ID());\n ResultSet rs = pstm.executeQuery();\n\n int C_VALORPAGO_ID;\n\n while (rs.next()) {\n C_VALORPAGO_ID = rs.getInt(1);\n MVALORPAGO payval = new MVALORPAGO(getCtx(), C_VALORPAGO_ID, get_TrxName());\n payval.setEstado(destino);\n payval.save(get_TrxName());\n }\n } catch (Exception e) {\n }\n }\n }", "title": "" }, { "docid": "9056989d11e0ea49f849e383ddea4c2c", "score": "0.5285214", "text": "@Test\n void updateSuccess() {\n String newDescription = \"December X-Large T-Shirt\";\n Order orderToUpdate = dao.getById(3);\n orderToUpdate.setDescription(newDescription);\n dao.saveOrUpdate(orderToUpdate);\n Order retrievedOrder = dao.getById(3);\n assertEquals(newDescription, retrievedOrder.getDescription());\n\n String resetDescription = \"February Small Long-Sleeve\";\n Order orderToReset = dao.getById(3);\n orderToUpdate.setDescription(resetDescription);\n dao.saveOrUpdate(orderToReset);\n }", "title": "" }, { "docid": "67477f1cb0a51c084aaf5cb48968b9db", "score": "0.52759135", "text": "@Override\n\tpublic void saveOrderComplainBatch(IBOOrderComplainsValue[] busiChangeValues)\n\t\t\tthrows Exception {\n\t\t\n\t}", "title": "" }, { "docid": "9b964517a2d70463a26924fc4952554e", "score": "0.5275295", "text": "@Transactional\n\tpublic void saveNewPatient(FlowObjCreator foc){\n\t\tlog.debug(\"-----------\");\n\t\tlog.debug(\"-----------\"+foc.getIdf());\n\t\tlog.debug(\"-----------\"+foc.getBdate());\n\t\tTimestamp bd = new Timestamp(foc.getBdate().getTime());\n\t\tTree folderT = readDocT(foc.getIdf());\n\t\tPatient newPatientO = foc.getNewPatient();\n\t\tnewPatientO.setBirthdate(bd);\n\t\t\n\t\tsaveNewPatient(folderT, newPatientO);\n\t}", "title": "" }, { "docid": "486b2c93051d12d27f20cf7e012586e1", "score": "0.5257301", "text": "@Override\n\tpublic void save(Religiao obj) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "0f218ce828a916a36973cdaf30021479", "score": "0.5249605", "text": "@Override\r\n\tpublic final void saveObjectData() throws BillingSystemException{\n\t}", "title": "" }, { "docid": "42251a4b37ae2da1c61e0615af1067b8", "score": "0.5234328", "text": "@Override\n\tpublic void posSave() {\n\t\tfor(ItemRequisicionEta tmpItm : itemsAgregados) {\n\t\t\ttmpItm.setReqEtapa(instance);\n\t\t\tgetEntityManager().persist(tmpItm);\n\t\t}\n\t\tgetEntityManager().refresh(etapaRepCliHome.getInstance());\n\t}", "title": "" }, { "docid": "e9e96c04c06831d2637cc4d80a3bd314", "score": "0.5231154", "text": "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 }", "title": "" }, { "docid": "b42c070465f0fc918fe46917ab81d49a", "score": "0.52237445", "text": "@Override\n protected boolean beforeSave(boolean newRecord) {\n if (newRecord){\n\n // Me aseguro de tener la organización correcta\n MZOrdenPago ordenPago = (MZOrdenPago) this.getZ_OrdenPago();\n this.setAD_Org_ID(ordenPago.getAD_Org_ID());\n\n if (this.getZ_GeneraOrdenPago_ID() <= 0){\n this.setZ_GeneraOrdenPago_ID(((MZOrdenPago) this.getZ_OrdenPago()).getZ_GeneraOrdenPago_ID());\n }\n if (this.getC_BPartner_ID() <= 0){\n this.setC_BPartner_ID(((MZOrdenPago) this.getZ_OrdenPago()).getC_BPartner_ID());\n }\n }\n\n // Si selecciono un item de medio de pago ya emitido, cargo datos del mismo en esta linea.\n if ((newRecord) || (is_ValueChanged(X_Z_OrdenPagoMedio.COLUMNNAME_Z_MedioPagoItem_ID))){\n if (this.getZ_MedioPagoItem_ID() > 0){\n MZMedioPagoItem medioPagoItem = (MZMedioPagoItem) this.getZ_MedioPagoItem();\n if (medioPagoItem.isEmitido()){\n\n if (this.getDateEmitted() == null) this.setDateEmitted(medioPagoItem.getDateEmitted());\n if (this.getDueDate() == null) this.setDueDate(medioPagoItem.getDueDate());\n if ((this.getTotalAmt() == null) || (this.getTotalAmt().compareTo(Env.ZERO) <= 0)) this.setTotalAmt(medioPagoItem.getTotalAmt());\n\n if ((!this.getDateEmitted().equals(medioPagoItem.getDateEmitted())) || (!this.getDueDate().equals(medioPagoItem.getDueDate()))\n || (this.getTotalAmt().compareTo(medioPagoItem.getTotalAmt()) != 0)){\n log.saveError(\"ATENCIÓN\", \"No es posible modificar datos de este medio de pago ya que el mismo esta emitido.\");\n return false;\n }\n\n /*\n this.setDateEmitted(medioPagoItem.getDateEmitted());\n this.setDueDate(medioPagoItem.getDueDate());\n this.setTotalAmt(medioPagoItem.getTotalAmt());\n\n */\n }\n }\n }\n\n // Valido fecha de emision debe ser siempre menor a fecha de vencimiento.\n if ((this.getDateEmitted() != null) && (this.getDueDate() != null)){\n if (this.getDueDate().before(this.getDateEmitted())){\n log.saveError(\"ATENCIÓN\", \"La fecha de Vencimiento debe ser mayor o igual a la fecha de Emisión.\");\n return false;\n }\n }\n\n // Valido importe del medio de pago mayor a cero\n if ((this.getTotalAmt() == null) && (this.getTotalAmt().compareTo(Env.ZERO) <= 0)){\n log.saveError(\"ATENCIÓN\", \"Debe indicar importe mayor a cero para este medio de pago.\");\n }\n\n return true;\n }", "title": "" }, { "docid": "e832b32cb10500ed3cbf64052332cb56", "score": "0.5221786", "text": "@Override\n protected boolean beforeSave(boolean newRecord) {\n if (!newRecord){\n if ((is_ValueChanged(X_Z_RemDifInvLinAfecta.COLUMNNAME_PriceEntered)) || (is_ValueChanged(X_Z_RemDifInvLinAfecta.COLUMNNAME_QtyEntered))){\n this.setLineTotalAmt(this.getQtyEntered().multiply(this.getPriceEntered()).setScale(2, RoundingMode.HALF_UP));\n\n MInvoiceLine invoiceLine = (MInvoiceLine) this.getC_InvoiceLine();\n if ((invoiceLine != null) && (invoiceLine.get_ID() > 0)){\n invoiceLine.setQtyInvoiced(this.getQtyEntered());\n invoiceLine.setQtyEntered(this.getQtyEntered());\n invoiceLine.setPriceActual(this.getPriceEntered());\n invoiceLine.setPriceEntered(this.getPriceEntered());\n\n MProduct prod = (MProduct) invoiceLine.getM_Product();\n\n // Impuesto del producto (primero impuesto especial de compra, y si no tiene, entonces el impuesto normal\n if (prod.get_ValueAsInt(\"C_TaxCategory_ID_2\") > 0) {\n MTaxCategory taxCat = new MTaxCategory(getCtx(), prod.get_ValueAsInt(\"C_TaxCategory_ID_2\"), null);\n MTax tax = taxCat.getDefaultTax();\n if (tax != null) {\n if (tax.get_ID() > 0) {\n invoiceLine.setC_Tax_ID(tax.get_ID());\n }\n }\n } else {\n if (prod.getC_TaxCategory_ID() > 0) {\n MTaxCategory taxCat = (MTaxCategory) prod.getC_TaxCategory();\n MTax tax = taxCat.getDefaultTax();\n if (tax != null) {\n if (tax.get_ID() > 0) {\n invoiceLine.setC_Tax_ID(tax.get_ID());\n }\n }\n }\n }\n\n invoiceLine.setLineNetAmt();\n invoiceLine.setTaxAmt();\n invoiceLine.saveEx();\n }\n\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "740280a564cf13b765ffda90f014991d", "score": "0.52120394", "text": "@Audit(transName=\"editUnitConfirmation\", transType=\"editUnit\", beforeLog=TRUE, afterLog=TRUE)\r\n\tpublic void editUnitConfirmation(){\r\n\t\t\r\n\t\twsrdModel.setErrorMsg(\"\");\r\n\t\twsrdModel.setDuplicateErrorMsg(\"\");\r\n\t\tif(checkMultipleUnitEdit()){\r\n\t\t\twsrdModel.setErrorMsg(WsrdConstants.UNSAVED);\r\n\t\t}\r\n\t\telse{\r\n\r\n\t\t\tif(checkUnitUnavaialble()){\r\n\t\t\t\twsrdModel.setErrorMsg(WsrdConstants.UNAVAILABLE);\r\n\t\t\t}\r\n\t\t\telse{\r\n\r\n\t\t\t\tString str=checkForUnitAssociation();\r\n\t\t\t\tif(\"Selected item is linked with with attribute.\".equalsIgnoreCase(str.trim())){\r\n\t\t\t\t\twsrdModel.setDuplicateErrorMsg(str);\r\n\t\t\t\t\twsrdModel.setErrorMsg(WsrdConstants.UNIT_CONFLICT);\r\n\t\t\t\t\t\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\telse{\r\n\t\t\t\t\teditUnit();\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "390a7eae582a45842990625a7ab9837d", "score": "0.52076226", "text": "public void saveProduit(Produit theProduit);", "title": "" }, { "docid": "c522a4fbe2eef8e19cc818fa99e168c2", "score": "0.5179175", "text": "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "title": "" }, { "docid": "c522a4fbe2eef8e19cc818fa99e168c2", "score": "0.5179175", "text": "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "title": "" }, { "docid": "7d05a7420c9e6155088114ac8d41502e", "score": "0.51774657", "text": "@PreDestroy\n public void saveStates() {\n if(getShopId() != 0) {\n log.info(\"Interrupt matching for shop {} during phase {} at {} \", getShopId(), getPhase(), new Date());\n getRemainingStates().add(new State(getShopId(), getPhase(), getPictureIds()));\n }\n getMatcherStateRepository().saveAllStates(getRemainingStates());\n }", "title": "" }, { "docid": "b1752d499924ef96091e3a85101db8ab", "score": "0.5162608", "text": "@Override\n\tpublic int save(CursoAsignatura ca) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "eb5fd2a05c10c3520b189ee46d56b978", "score": "0.5141517", "text": "@Override\n\tprotected void save() throws Exception {\n\t\t//turn the list of data into a unique list of tickets\n\t\tMap<String, ExtTicketVO> tickets= new HashMap<>(data.size());\n\t\tfor (SOHDRFileVO dataVo : data) {\n\t\t\t//035 are harvests and all we care about\n\t\t\tif (\"035\".equals(dataVo.getSoType())) {\n\t\t\t\tExtTicketVO vo = transposeTicketData(dataVo, new ExtTicketVO());\n\t\t\t\ttickets.put(vo.getTicketId(), vo);\n\t\t\t}\n\t\t}\n\n\t\tpopulateTicketDBData(tickets);\n\n\t\ttickets = removeGhostRecords(tickets);\n\n\t\t//don't bother with the rest of this class if we have no tickets\n\t\tif (tickets.isEmpty()) return;\n\n\t\tdecomissionUnits(tickets.keySet()); //ticket\n\n\t\tpurgePartShipments(tickets.keySet()); //calls purgeShipments to cascade deletion\n\n\t\tsetDispositionCode(tickets); //ticket_data attr_dispositionCode\tNONREPAIRABLE\n\n\t\tcorrectLedgerEntries(tickets);\n\t}", "title": "" }, { "docid": "89d28dbcca4c022c46dfbd5238459853", "score": "0.5126241", "text": "public void saveOperate(OperateBO operateBo) throws RollbackableException {\n }", "title": "" }, { "docid": "f4b8fc20dbe692153e3218959c7ec79f", "score": "0.5116873", "text": "public void tpoChange(){\r\n\r\n System.out.println(\"TPO change detected! \\nReloading compatible transmitters!\");\r\n\r\n tx_cb.getItems().clear();\r\n tx_cb.setPromptText(\"Select Transmitter\");\r\n tx_cb.setButtonCell(new ListCell<String>() {\r\n @Override\r\n protected void updateItem(String item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if (empty || item == null)\r\n setText(\"Select Transmitter\");\r\n else\r\n setText(item);\r\n }\r\n });\r\n genRep.setDisable(true);// disable generate report button we tpo is changed(this function resets some values and makes them null-- error handler\r\n filter.getItems().clear();\r\n filter.setPromptText(\"Select Filter\");\r\n filter.setButtonCell(new ListCell<String>() {\r\n @Override\r\n protected void updateItem(String item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if (empty || item == null)\r\n setText(\"Select Filter\");\r\n else\r\n setText(item);\r\n\r\n if(tpo.getText().equals(\"\")|| tpo.getText().equals(\"0\")){\r\n tx_cb.setValue(null);\r\n filter.setValue(null);\r\n tpo.setText(\"1\");\r\n }\r\n }\r\n });\r\n\r\n /** call addTX() to populate TX combo box with compatible transmitters for selected TPO **/\r\n addTX();\r\n System.out.println(\"New TPO: \"+tpo.getText());\r\n }", "title": "" }, { "docid": "7ec47a9b77c36bababc046ac3f9b3aa8", "score": "0.5108367", "text": "@Override\n public boolean onSave(EditTransaction et) {\n et.retrieveData(VisitDrug.CODE, typecode, false, null, null);\n\n ContentValues cv = et.getContentValues();\n cv.put(VisitDrug.CODE, typecode.getSelectId());\n cv.put(\"dentalcode\", typecode.getSelectId());\n if (dentist.getSelectId() != null)\n cv.put(VisitDrug.DOCTOR1, dentist.getSelectId());\n cv.put(\"unit\", \"1\");\n cv.put(\"costprice\", cost);\n cv.put(\"realprice\", real);\n //cv.put(VisitDrug.DOCTOR2, \"waitForMethod\");\n cv.put(VisitDrug._DATEUPDATE, DateTime.getCurrentDateTime());\n return true;\n }", "title": "" }, { "docid": "0aa3bce43b1e082d9fe232711c1c8afa", "score": "0.51080006", "text": "private void updateGameDescriptorAfterUndo() {\n roundNumber = roundsHistory.peek().getRoundNumber();\n gameDescriptor.setTerritoryMap(roundsHistory.peek().getCopyOfMap()); //This Set the gameDescriptor Territories as copy\n gameDescriptor.setPlayersList(roundsHistory.peek().getCopyOfPlayersList()); //This Set the gameDescriptor players as copy\n updateTurnsObjectQueue();\n }", "title": "" }, { "docid": "b988360c52b6cafffdf8ead0cd1faf38", "score": "0.50996846", "text": "@Override\r\n\tpublic int addProduct(ClosedOrder co) {\n\t\tint flag=0;\r\n\t\ttry {\r\n\t\t\tString sql=\"INSERT INTO closedorder VALUES(?,?,?,?,?,?,?,?,?,?)\";\r\n\t\t\tflag= qr.update(sql,co.getClosedorder_id(),co.getClosedorder_name(),co.getClosedorder_payId(),co.getClosedorder_location(),co.getClosedorder_picturename(),co.getClosedorder_price(),co.getClosedorder_count(),co.getClosedorder_closetime(),co.getClosedorderproduct_orderId(),co.getShoppingcart_orderStatus());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "title": "" }, { "docid": "8dee04ef65afb21e6b027d0764daeac5", "score": "0.5099125", "text": "public void saveORUpdateObra(Obra obra) throws Exception;", "title": "" }, { "docid": "56a7653e06db756834e822969bb822a6", "score": "0.5081973", "text": "public void saveFormData() throws edu.mit.coeus.exception.CoeusException {\r\n //Modified for COEUSDEV-413 : Subcontract Custom data bug - Data getting wiped out - Start\r\n// if( isDataChanged() ){\r\n\t\tif( isDataChanged() || getFunctionType() == NEW_ENTRY_SUBCONTRACT || getFunctionType() == NEW_SUBCONTRACT) { //COEUSDEV-413 : End\r\n Vector genericColumnValues = customElementsForm.getOtherColumnElementData();\r\n\t\t\tif( genericColumnValues != null && genericColumnValues.size() > 0 ){\r\n\t\t\t\tCustomElementsInfoBean genericCustElementsBean = null;\r\n\t\t\t\tint dataSize = genericColumnValues.size();\r\n\t\t\t\tfor( int indx = 0; indx < dataSize; indx++ ) {\r\n\t\t\t\t\tgenericCustElementsBean = (CustomElementsInfoBean)genericColumnValues.get(indx);\r\n\t\t\t\t\tSubContractCustomDataBean subContractCustomDataBean\r\n\t\t\t\t\t= new SubContractCustomDataBean(genericCustElementsBean);\r\n SubContractCustomDataBean oldSubContractCustomDataBean = (SubContractCustomDataBean)genericColumnValues.get(indx);\r\n\t\t\t\t\tif(getFunctionType() == NEW_ENTRY_SUBCONTRACT) {\r\n\t\t\t\t\t\tsubContractCustomDataBean.setAcType(\"I\");\r\n//\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n//\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif( INSERT_RECORD.equals(subContractCustomDataBean.getAcType()) ) {\r\n\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n \r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif( genericCustElementsBean instanceof SubContractCustomDataBean ) {\r\n//\t\t\t\t\t\t\tSubContractCustomDataBean oldSubContractCustomDataBean =\r\n//\t\t\t\t\t\t\t(SubContractCustomDataBean)genericCustElementsBean;\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setAcType(genericCustElementsBean.getAcType());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(oldSubContractCustomDataBean.getSubContractCode());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(oldSubContractCustomDataBean.getSequenceNumber());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tString custAcType = subContractCustomDataBean.getAcType();\r\n\t\t\t\t\t\tif( UPDATE_RECORD.equals(custAcType) ){\r\n//\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n//\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t\t\tqueryEngine.update(queryKey, subContractCustomDataBean);\r\n\t\t\t\t\t\t}else if( INSERT_RECORD.equals(custAcType)){\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t\t\tqueryEngine.insert(queryKey, subContractCustomDataBean);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}catch ( CoeusException ce ) {\r\n\t\t\t\t\t\tce.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcustomElementsForm.setSaveRequired(false);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "847e290238f537b6eb2613deb81f981a", "score": "0.5079031", "text": "@Override\n\tpublic <S extends ComplitedOrderInfo> Iterable<S> save(Iterable<S> arg0) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0e4215414f8ca4812fbe7ba9df037b25", "score": "0.50738966", "text": "@Override\r\n\tpublic <S extends Estates> S save(S arg0) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "bc1263c8729db49cef88ac01641f7bcf", "score": "0.50722724", "text": "public void save(CbmCItemFininceItem entity);", "title": "" }, { "docid": "bfa84b7d11b876fc372e4560f719f790", "score": "0.50688016", "text": "private void saveUnsyncedDonor() {\n LocalDonor ldonor = LocalDonor.convert(donor,realm);\n realm.beginTransaction();\n realm.copyToRealmOrUpdate(ldonor);\n realm.commitTransaction();\n Toast.makeText(this, \"Donor record save.\", Toast.LENGTH_LONG).show();\n finish();\n }", "title": "" }, { "docid": "f6a5532e9232c0fa877b981d685a14f9", "score": "0.5068011", "text": "stockFilePT102.StockDocument.Stock addNewStock();", "title": "" }, { "docid": "8cdea40e858d186d105e4a9fa38f0734", "score": "0.5061774", "text": "@Override\r\n\tpublic void innerSave() {\n\r\n\t}", "title": "" }, { "docid": "ac2bcbb03f8630502ee57a45aa1f00be", "score": "0.50433576", "text": "public MainItemOrdered save(MainItemOrdered mainItemOrdered);", "title": "" }, { "docid": "03513d03b6d756bd1b9d78cca1535a07", "score": "0.5040329", "text": "@Then(\"^: proceed to checkout$\")\r\n\tpublic void proceed_to_checkout() throws Throwable {\n\t\tobj.update();\r\n\t}", "title": "" }, { "docid": "e00a3cf8e882e448dd0229ad3b2e52b6", "score": "0.50321895", "text": "public void trySave() throws BOException {\n//\t\tif (verifyState()) {\n\t\tverifyState();\n\t\tsave();\n//\t\t}\n\t}", "title": "" }, { "docid": "23bff9ec8379fe07248849a5558c501a", "score": "0.5030634", "text": "@Override\n\tpublic void saveEstadoCabecera(EstadoCabecera estadoCabecera) {\n\n\t}", "title": "" }, { "docid": "d54e5a59f29532bb2a1e72b9a48b7e4d", "score": "0.5028991", "text": "@Override\n\tpublic void handleEvent(final AfterSaveEvent event)\n\t{\n\n\t}", "title": "" }, { "docid": "fe1a4afd70122d3fc25c962391196536", "score": "0.5015555", "text": "protected void saveRecord() throws DAOException {\r\n\t\t// Prepara para actualizar\r\n\t\tobject.prepareToUpdate();\r\n\t\t// Guarda objecto\r\n\t\tobjectDao.save(object);\r\n\t\t// Guarda registros de relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\t// Asigna Id padre\r\n\t\t\trelco.getId().setDconsecnk(object.getDconsecnk());\r\n\t\t\tsedrelcoDao.save(relco);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "24590a317e4d50e05d7160d9885dda33", "score": "0.5013079", "text": "@Then(\"^new type is saved$\")\n public void newTypeIsSaved() throws Throwable {\n throw new PendingException();\n }", "title": "" }, { "docid": "797c2e997f26d7cb8c1e05f834960d6f", "score": "0.49937358", "text": "public void reWrite21(SaleOrderVO[] vos)\r\n/* */ {\r\n/* 202 */ Map<String, String> map = new HashMap();\r\n/* 203 */ for (SaleOrderVO vo : vos) {\r\n/* 204 */ SaleOrderHVO hvo = vo.getParentVO();\r\n/* 205 */ UFBoolean iscoop = hvo.getBpocooptomeflag();\r\n/* 206 */ if ((null != iscoop) && (iscoop.booleanValue())) {\r\n/* 207 */ String srcHid = vo.getChildrenVO()[0].getCsrcid();\r\n/* 208 */ String billcode = hvo.getVbillcode();\r\n/* 209 */ map.put(srcHid, billcode);\r\n/* */ }\r\n/* */ }\r\n/* 212 */ if (map.size() > 0) {\r\n/* 213 */ IOrderUpdateCoopFor30 service = (IOrderUpdateCoopFor30)NCLocator.getInstance().lookup(IOrderUpdateCoopFor30.class);\r\n/* */ try\r\n/* */ {\r\n/* 216 */ service.updateCoopFlag(true, map);\r\n/* */ }\r\n/* */ catch (BusinessException e) {\r\n/* 219 */ ExceptionUtils.wrappException(e);\r\n/* */ }\r\n/* */ }\r\n/* */ }", "title": "" }, { "docid": "7701aaecb250fbc72eee02f014057c2b", "score": "0.4993172", "text": "protected void saveStockTags( final D originalDTO, final D newDTO )\n {\n final String methodName = \"saveStockTags\";\n logMethodBegin( methodName, originalDTO, newDTO );\n final TagsContainer container = (TagsContainer)originalDTO;\n this.stockTagService.saveStockTags( UUIDUtil.uuid( container.getCustomerId() ),\n container.getTickerSymbol(),\n container.getStockTagReferenceType(),\n UUIDUtil.uuid( newDTO.getId() ),\n container.getTags() );\n logMethodEnd( methodName );\n }", "title": "" }, { "docid": "fe9c311a3ea7d36964e71adf1b2b380e", "score": "0.49930435", "text": "@Override\r\n\tpublic Ngo save(Ngo obj) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ba1f1d1d8c19a1dfd62cfaa2ea756e90", "score": "0.49884456", "text": "protected abstract void commitIndividualTrx();", "title": "" }, { "docid": "098bcb079ee112855ad7bc302241613e", "score": "0.4983964", "text": "private void saveCurrentAcknowledgment() {\n\t\tacknowledgment.setANumber(aNumberField.getText());\n\t\tacknowledgment.setDate(DateUtil.formatToString(dateField.getValue()));\n\t\tacknowledgment.setNotify(notifyField.getText());\n\t\tacknowledgment.setTag(tagField.getText());\n\t\tacknowledgment.setDateOrderReceived(DateUtil.formatToString(dateOrderReceivedField.getValue()));\n\t\tacknowledgment.setCustomerOrderNumber(customerOrderNumberField.getText());\n\t\tacknowledgment.setApproxShipDate(DateUtil.formatToString(approxShipDateField.getValue()));\n\t\tacknowledgment.setShippingCost(shippingCostField.getText());\n\t\tacknowledgment.setFob(fobField.getText());\n\t\tacknowledgment.setShipVia(shipViaField.getText());\n\t\tacknowledgment.setDocuments(documentsField.getText());\n\t\tacknowledgment.setPrice(priceField.getText());\n\t\tacknowledgment.setUsername(main.getPreferenceList().get(0).getUsername());\n\t}", "title": "" }, { "docid": "8c5c5806e3e1a082c8e3e952951e8b18", "score": "0.49811062", "text": "@Override\n public void Save() {\n\t \n }", "title": "" }, { "docid": "2dccd3bf1ceabc7316fdfb0253b56916", "score": "0.49790624", "text": "@Override\n\tpublic void saveBankingDetail(BankingDetail baningDetail) {\n\t\t\n\t}", "title": "" }, { "docid": "d28d57c8c88eca14709ab5211e64dd6d", "score": "0.49788618", "text": "public void saveFiAvailableInvoice(FiAvailableInvoice fiAvailableInvoice);", "title": "" }, { "docid": "ca2639af357832ac4c102646fbbb6bf3", "score": "0.49775106", "text": "public void commitChanges(){\r\n try{\r\n //Record the state of unfinished set in unfinished.dat\r\n unfinishedFileOutputStream = new FileOutputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetOutputStream = new ObjectOutputStream(unfinishedFileOutputStream);\r\n unfinishedSetOutputStream.writeObject(unfinished);\r\n unfinishedSetOutputStream.close();\r\n unfinishedFileOutputStream.close();\r\n\r\n //Record the state of finished list in finished.dat\r\n finishedFileOutputStream = new FileOutputStream(FINISHED_FILE_PATH);\r\n finishedListOutputStream = new ObjectOutputStream(finishedFileOutputStream);\r\n finishedListOutputStream.writeObject(finished);\r\n finishedListOutputStream.close();\r\n finishedFileOutputStream.close();\r\n\r\n //Record the state of activities list in activities.dat\r\n activitiesFileOutputStream = new FileOutputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListOutputStream = new ObjectOutputStream(activitiesFileOutputStream);\r\n activitiesListOutputStream.writeObject(activities);\r\n activitiesListOutputStream.close();\r\n activitiesFileOutputStream.close();\r\n }\r\n catch(Exception e){\r\n System.out.println(\"Stress in commiting changes: \" + e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "e0ff16e2ab455a3beae9d99a4a2e2285", "score": "0.4974005", "text": "void committed() {\n\t\t\tfor (Entry<Integer, Object> entry : newData.entrySet())\n\t\t\t\toriginalData.put(entry.getKey(), entry.getValue());\n\t\t\treset();\n\t\t\taction = RowAction.UPDATE;\n\t\t}", "title": "" }, { "docid": "95c00a238088e69bf2dcf63c23c179c1", "score": "0.4973746", "text": "@Override\n\tpublic void save() {\n\t\t\n\t}", "title": "" }, { "docid": "95c00a238088e69bf2dcf63c23c179c1", "score": "0.4973746", "text": "@Override\n\tpublic void save() {\n\t\t\n\t}", "title": "" }, { "docid": "eac3984b87797bde8c3fddda6536e629", "score": "0.49637324", "text": "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "title": "" }, { "docid": "7162d457a4d416112a5ca1aab1ed4238", "score": "0.49635303", "text": "public String save() {\r\n\t\ttry {\r\n\r\n\t\t\tif (obs != null && !obs.trim().isEmpty()) {\r\n\t\t\t\tconcurso.setObservacionReserva(obs);\r\n\t\t\t\tconcursoHome.setInstance(concurso);\r\n\t\t\t\tString res = concursoHome.update();\r\n\t\t\t}\r\n\r\n\t\t\tfor (PlantaCargoDetDTO dto : listaPlantaCargoDto) {\r\n\r\n\t\t\t\tif (dto.getReservar()) {\r\n\t\t\t\t\tEstadoDet est = buscarEstado(\"en reserva\");\r\n\t\t\t\t\tif (!existeEnDetalle(dto.getPlantaCargoDet(), est)) {\r\n\t\t\t\t\t\t// buscar\r\n\r\n\t\t\t\t\t\tConcursoPuestoDet p = new ConcursoPuestoDet();\r\n\t\t\t\t\t\tp.setActivo(true);\r\n\t\t\t\t\t\tp.setFechaAlta(new Date());\r\n\t\t\t\t\t\tp.setUsuAlta(usuarioLogueado.getCodigoUsuario());\r\n\t\t\t\t\t\tp.setNroOrden(2);\r\n\t\t\t\t\t\tp.setPlantaCargoDet(dto.getPlantaCargoDet());\r\n\r\n\t\t\t\t\t\tif (est != null)\r\n\t\t\t\t\t\t\tp.setEstadoDet(est);\r\n\t\t\t\t\t\tp.setConcurso(concursoHome.getInstance());\r\n\t\t\t\t\t\tem.persist(p);\r\n\r\n\t\t\t\t\t\tPlantaCargoDet planta = new PlantaCargoDet();\r\n\t\t\t\t\t\tplanta = dto.getPlantaCargoDet();\r\n\t\t\t\t\t\tplanta.setEstadoCab(est.getEstadoCab());\r\n\t\t\t\t\t\tplanta.setEstadoDet(est);\r\n\t\t\t\t\t\tem.merge(planta);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Incidencia 1079 */\r\n\t\t\t\trefreshListaPuestoReservados();\r\n\t\t\t\t/**/\r\n\t\t\t\tEstadoCab estadoCab = obtenerEstadosCabecera(\"VACANTE\");\r\n\t\t\t\tif (esta(dto.getPlantaCargoDet())) {\r\n\t\t\t\t\tConcursoPuestoDet p = new ConcursoPuestoDet();\r\n\t\t\t\t\tp = recuperarConcurso(dto.getPlantaCargoDet());\r\n\r\n\t\t\t\t\tif (!dto.getReservar()) {\r\n\t\t\t\t\t\tif (p.getConcursoPuestoAgr() != null) {\r\n\t\t\t\t\t\t\tstatusMessages.clear();\r\n\t\t\t\t\t\t\tstatusMessages.add(Severity.ERROR,\r\n\t\t\t\t\t\t\t\t\t\"El puesto pertenece a un grupo\");\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * p.setActivo(true); p.setNroOrden(1);\r\n\t\t\t\t\t\t * p.setFechaMod(new Date());\r\n\t\t\t\t\t\t * p.setUsuMod(usuarioLogueado.getCodigoUsuario());\r\n\t\t\t\t\t\t * EstadoDet est = buscarEstado(\"libre\");\r\n\t\t\t\t\t\t * p.setEstadoDet(est); em.merge(p);\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tPlantaCargoDet planta = new PlantaCargoDet();\r\n\t\t\t\t\t\tplanta = dto.getPlantaCargoDet();\r\n\t\t\t\t\t\tplanta.setEstadoCab(estadoCab);\r\n\t\t\t\t\t\tplanta.setEstadoDet(null);\r\n\t\t\t\t\t\tem.merge(planta);\r\n\t\t\t\t\t\tif (!concurso\r\n\t\t\t\t\t\t\t\t.getDatosEspecificosTipoConc()\r\n\t\t\t\t\t\t\t\t.getDescripcion()\r\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\r\n\t\t\t\t\t\t\t\t\t\tCONCURSO_INTERNO_INTERINSTITUCIONAL)\r\n\t\t\t\t\t\t\t\t&& planta.getPermanente())\r\n\t\t\t\t\t\t\treponerCategoriasController.reponerCategorias(p,\r\n\t\t\t\t\t\t\t\t\t\"PUESTO\", \"CONCURSO\");\r\n\t\t\t\t\t\tem.remove(p);\r\n\t\t\t\t\t\t// listaPlantaCargoDto.remove(dto);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tobs = null;\r\n\t\t\tem.flush();\r\n\t\t\tllenarListado1();\r\n\t\t\tstatusMessages.clear();\r\n\t\t\tstatusMessages.add(Severity.INFO, SeamResourceBundle.getBundle()\r\n\t\t\t\t\t.getString(\"GENERICO_MSG\"));\r\n\t\t\treturn \"persisted\";\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "42d6634a78aba86a8033605d2a488eab", "score": "0.49624726", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic void insert(ReceiptFormPO po) throws RemoteException {\n\t\tSystem.out.println(\"Insert ReceiptFormPO Start!!\");\n\t\tioHelper = new IOHelper();\n\t\tallReceiptForm = ioHelper.readFromFile(file);\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n\t\tSystem.out.println(df.format(new Date()));\n\t\tpo.setNO(df.format(new Date()));\n\t\tallReceiptForm.put(po.getNO(), po);\n\t\tSystem.out.println(po.getNO());\n\t\tioHelper.writeToFile(allReceiptForm, file);\n\t\tSystem.out.println(\"Add ReceiptFormPO Over!!\");\n\t}", "title": "" }, { "docid": "968372d2a9379f12ae556fcb242b099d", "score": "0.4959449", "text": "@Override\r\n public void updatedSaleInventory(ItemAndQuantity lastItem) {\r\n }", "title": "" }, { "docid": "b7a7d7ef967bd4b1b01e63603a4f1d9d", "score": "0.49555093", "text": "public void save(CalCancel cancel) {\n\r\n\t}", "title": "" }, { "docid": "899f4641e5e1bd9cbf05b60379c43e4c", "score": "0.4953725", "text": "@Override\n public void save() {\n \n }", "title": "" }, { "docid": "84c4b8342d6bf8947f059895b8b5500f", "score": "0.49535525", "text": "stockFilePT102.StockFileDocument.StockFile addNewStockFile();", "title": "" }, { "docid": "e25b914523f62209947efe92b117c69a", "score": "0.49512246", "text": "@Override\n\tpublic BnsCash save(BnsCash obj) {\n\t\treturn cashRepository.save(obj);\n\t}", "title": "" }, { "docid": "eecaac29599729015967ed3a0de94c80", "score": "0.49454245", "text": "@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}", "title": "" }, { "docid": "6adae86552e46cb1f9259b72ec1653f3", "score": "0.49369493", "text": "@Override\r\n\tpublic void onSave(Bundle outState) {\n\t}", "title": "" }, { "docid": "17f1e5c6e269b7a5460260f0fef9ce49", "score": "0.4928231", "text": "public void saveChanges(DrugItem targetItem) {\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(DRUG_CODE, targetItem.getCode());\n\t\tvalues.put(DRUG_NAME, targetItem.getName());\n\t\tvalues.put(DRUG_ISAVAILABLE,\n\t\t\t\ttargetItem.getIsAvailableAsString());\n\t\tLog.d(this.getClass().getName(), targetItem.getIsAvailableAsString());\n\t\t\n\t\tdatabase.update(DRUG_TABLE, values, DRUG_CODE + \"=?\",\n\t\t\t\tnew String[] { String.valueOf(targetItem.getCode()) });\n\t}", "title": "" }, { "docid": "a9c455e1f2f469767f541efebc2cda7c", "score": "0.49281564", "text": "private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\t\ttry {\n\t\t\tioManager.writeToFile(FileDataWrapper.productMap.values(), new Product());\n\t\t\tioManager = null;\n\t\t} catch (Exception ex) {\n\t\t\tDisplayUtil.displayValidationError(buttonPanel, StoreConstants.ERROR + \" saving new product\");\n\t\t\tioManager = null;\n\t\t}\n\t}", "title": "" }, { "docid": "181bc380e89bdfa846e65d828dda4e1d", "score": "0.49279156", "text": "void save(Bill bill);", "title": "" }, { "docid": "242034bcd25c6d9b0a98c2166306376b", "score": "0.4923163", "text": "@Override\n public void notify(String newFileContent) {\n Repository.getRepositoryInstance().updateStockOrders(newFileContent);\n//end of modifiable zone..................E/a170c128-ca49-4fc4-abdd-43b714481007\n }", "title": "" }, { "docid": "b6dcd7f5c5bfaea7eee2285e3f3e2015", "score": "0.49214143", "text": "@Override\n\tpublic void saveORUpdate(T obj) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "bfa592cb2cf31e858e6b9b51c3655b94", "score": "0.49134767", "text": "public void savePropertyChange() {\n\t\tAsyncCallback<BmUpdateResult> callback = new AsyncCallback<BmUpdateResult>() {\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tstopLoading();\n\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-savePropertyChange(): ERROR \" + caught.toString());\n\t\t\t}\n\n\t\t\tpublic void onSuccess(BmUpdateResult result) {\n\t\t\t\tstopLoading();\n\t\t\t\tprocessPropertyChangeSave(result);\n\t\t\t}\n\t\t};\n\n\t\t// Llamada al servicio RPC\n\t\ttry {\n\t\t\tif (!isLoading()) {\n\t\t\t\tstartLoading();\n\t\t\t\tgetUiParams().getBmObjectServiceAsync().save(bmoOrderPropertyTax.getPmClass(),bmoOrderPropertyTax,callback);\n\t\t\t}\n\t\t} catch (SFException e) {\n\t\t\tstopLoading();\n\t\t\tshowErrorMessage(this.getClass().getName() + \"-savePropertyChange(): ERROR \" + e.toString());\n\t\t}\n\t}", "title": "" }, { "docid": "2af6f5346a08c6054c9d988193b5e56f", "score": "0.49128714", "text": "@Override\n public void save()\n {\n \n }", "title": "" }, { "docid": "24a0747ac2413625399c9ed2c2246db3", "score": "0.4910819", "text": "public void save() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.save(this);\r\n\t}", "title": "" }, { "docid": "166571a7856e6dee936ad7fda8df40f0", "score": "0.4905258", "text": "public void operationSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}", "title": "" }, { "docid": "9c3acf84427cbb9527fed3af23518536", "score": "0.49051708", "text": "private void saveNewCatalog() {\n\n\t}", "title": "" }, { "docid": "706b2ebcccf726247a2074e7c174ae47", "score": "0.4904979", "text": "@Override\n public Owner save(Owner object) {\n return super.save(object);\n }", "title": "" }, { "docid": "5d855b059fa11261b895416babc45ce3", "score": "0.48989773", "text": "@ClassVersion(\"$Id: NewOrReplaceOrder.java 16752 2013-11-14 02:54:13Z colin $\")\r\npublic interface NewOrReplaceOrder\r\n extends OrderBase, Serializable\r\n{\r\n /**\r\n * Gets the OrderType for the Order.\r\n *\r\n * @return the order type.\r\n */\r\n OrderType getOrderType();\r\n\r\n /**\r\n * Sets the OrderType for the Order.\r\n *\r\n * @param inOrderType the order type.\r\n */\r\n void setOrderType(OrderType inOrderType);\r\n\r\n /**\r\n * Gets the time in force value for the Order. If a value\r\n * is not specified, it defaults to\r\n * {@link org.marketcetera.trade.TimeInForce#Day}.\r\n *\r\n * @return the time in force value.\r\n */\r\n TimeInForce getTimeInForce();\r\n\r\n /**\r\n * Sets the time in force value for the Order.\r\n *\r\n * @param inTimeInForce the time in force value.\r\n */\r\n void setTimeInForce(TimeInForce inTimeInForce);\r\n\r\n /**\r\n * Gets the limit price for this order. A limit price should be\r\n * specified when the OrderType is {@link OrderType#Limit}.\r\n * This value is ignored if the OrderType is not {@link OrderType#Limit}.\r\n *\r\n *\r\n * @return the limit price for the order.\r\n */\r\n BigDecimal getPrice();\r\n\r\n /**\r\n * Sets the limit price for this order. A limit price should be\r\n * specified when the OrderType is {@link OrderType#Limit}.\r\n *\r\n * @param inPrice the limit price for the order.\r\n */\r\n void setPrice(BigDecimal inPrice);\r\n\r\n /**\r\n * Gets the order capacity value for this order.\r\n *\r\n * @return the order capacity value.\r\n */\r\n OrderCapacity getOrderCapacity();\r\n\r\n /**\r\n * Sets the order capacity value for this order.\r\n *\r\n * @param inOrderCapacity the order capacity value\r\n */\r\n void setOrderCapacity(OrderCapacity inOrderCapacity);\r\n\r\n /**\r\n * Gets the position effect for this order.\r\n *\r\n * @return the position effect value.\r\n */\r\n PositionEffect getPositionEffect();\r\n\r\n /**\r\n * Sets the position effect value for this order.\r\n *\r\n * @param inPositionEffect the position effect value.\r\n */\r\n void setPositionEffect(PositionEffect inPositionEffect);\r\n \r\n /**\r\n * Gets the display quantity for the Order.\r\n *\r\n * @return the display quantity.\r\n */\r\n BigDecimal getDisplayQuantity();\r\n\r\n /**\r\n * Sets the display quantity for the Order.\r\n *\r\n * @param inDisplayQuantity the display quantity.\r\n */\r\n void setDisplayQuantity(BigDecimal inDisplayQuantity);\r\n /**\r\n * Gets the broker algo value, if any.\r\n *\r\n * @return a <code>BrokerAlgo</code> value\r\n */\r\n BrokerAlgo getBrokerAlgo();\r\n /**\r\n * Sets the broker algo value.\r\n *\r\n * @param inBrokerAlgo a <code>BrokerAlgo</code> value\r\n */\r\n void setBrokerAlgo(BrokerAlgo inBrokerAlgo);\r\n}", "title": "" }, { "docid": "b30c0f16a4a5a07d3ee122cac09f67b5", "score": "0.48988935", "text": "private void saveChildEntities( final D dto, final D returnDTO )\n {\n /*\n * Save any tags contained in the dto\n */\n if ( dto instanceof TagsContainer )\n {\n this.saveStockTags( dto, returnDTO );\n }\n /*\n * Check for new sources\n */\n if ( dto instanceof NotesSourceIdContainer )\n {\n this.stockNoteSourceService\n .checkForNewSource( (NotesSourceIdContainer)dto );\n }\n }", "title": "" }, { "docid": "f653dc66c3b421505de884732032726d", "score": "0.4895775", "text": "@Override\n\tpublic void save(TBasUnitClass tem) {\n\t\ttBasUnitClassRepository.save(tem);\n\t}", "title": "" }, { "docid": "660622aa58ef213e4f1eb8191e6e26d0", "score": "0.48950717", "text": "@Override\n public void updateItem(P_CK t) {\n \n }", "title": "" }, { "docid": "48ae4a8371c41518cfc65d08d9976a66", "score": "0.48876506", "text": "@Test\n public void testSaveObsolescenceInfo() {\n IgniteStatisticsStore store = repo.statisticsStore();\n\n Map<StatisticsKey, IntMap<ObjectPartitionStatisticsObsolescence>> statObs = GridTestUtils\n .getFieldValue(repo, \"statObs\");\n\n repo.refreshObsolescence(K1, 2);\n repo.saveObsolescenceInfo(K1);\n\n assertNotNull(statObs.get(K1).get(2));\n }", "title": "" }, { "docid": "f3a3c1837bff9bb2d51e051682e11088", "score": "0.48865548", "text": "@Test\n public void testSave() {\n NoteCours nc = new NoteCours(\"titre\",\"description\", etu,matiere);\n // when: la méthode saveNote est invoquée\n ncService.saveNoteCours(nc);\n // then: la méthode save du NoteCoursRepository associé est invoquée\n verify(ncService.getNoteCoursRepository()).save(nc);\n }", "title": "" }, { "docid": "77bcc2091ad9fa51da5b3284c365f2b8", "score": "0.48855272", "text": "@Override\n public void saveVegetarianChange(ConnectathonParticipant cp) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"saveVegetarianChange\");\n }\n if (cp == null) {\n LOG.warn(\"saveVegetarianChange : ConnectathonParticipant is null \");\n return;\n }\n\n entityManager.merge(cp);\n entityManager.flush();\n\n }", "title": "" }, { "docid": "685b752c0c8de771e34966171445731d", "score": "0.48831266", "text": "public void chgOk() {\n Valid v = new Valid();\n try {\n v.startValidations();\n v.NB(\"Company name\", chgEntity.getName());\n v.NB(\"Contact\", chgEntity.getContact());\n if (v.isErrors()) return;\n chgEntity.update(dbc);\n applicationBean.setCompaniesStale();\n initializeChg();\n } catch (Exception e) {\n String em = \"chgOK() \" + e.getMessage();\n syslog.warn(em);\n FacesUtil.addErrorMessage(em);\n }\n }", "title": "" }, { "docid": "28904ef6061c89b8d64cbfb5e41e5722", "score": "0.48826802", "text": "public boolean saveDown() {\n if (\n cashFlow == null ||\n cashFlow.getDetail() == null ||\n cashFlow.getDetail().isEmpty()\n ) {\n System.out.println(\"invalid model store\");\n return false;\n }\n boolean cashFlowSaveResult = CashFlow.save(cashFlow);\n\n // save cash flow failure case\n if (!cashFlowSaveResult) {\n System.out.println(\"query false\");\n return false;\n }\n\n // get owe per provider\n boolean owe_log = true;\n int pointer = 0;\n final Map<String, Integer> providerIndex = new HashMap<>();\n final int nrow = cashFlow.getDetail().size();\n final int[] owe = new int[nrow];\n for (Payable p: cashFlow.getDetail()) {\n String prvId = p.getProviderId();\n if (providerIndex.containsKey(prvId)) {\n owe[ providerIndex.get(prvId) ] += p.getPrice();\n } else {\n providerIndex.put(prvId, pointer);\n owe[ pointer ] = p.getPrice();\n pointer++;\n }\n }\n for (String k: providerIndex.keySet()) {\n owe_log = owe_log &&\n db.send(\"UPDATE NhaCungCap SET NoPhaiTra = NoPhaiTra + \"\n + owe[ providerIndex.get(k) ]\n + \" WHERE MaNCC = \" + k);\n }\n if (!owe_log) {\n System.out.println(\"update own false\");\n }\n return owe_log;\n }", "title": "" }, { "docid": "de5d013607b6032e25a122bb24b3aaab", "score": "0.488142", "text": "@Test(expected=DuplicateKeyException.class)\n\t\tpublic void testSave3()\n\t\t{\n\n\t\t\tChObject cho = repoTest.get(\"68268301\");\n\n\t\t\trepoTest.save(cho);\t\t\t//add chObject to repo\n\t\t\trepoTest.save(cho);\t\t\t//add duplicate record (not allowed...should throw exception)\n\t\t}", "title": "" }, { "docid": "d3dd18542d6eb84d61a3244b7f11be6f", "score": "0.48783496", "text": "@Test\n\tpublic void saveTest() {\n//\t\tlog.trace(\"Testing Save Note\");\n\n\t\t// find batch and trainee to associate with note\n\t\tfinal Batch batch = batchDao.findOne(TEST_QCBATCH_ID);\n\t\tfinal Trainee trainee = traineeDao.findAll().get(0);\n\n\t\t// create a new note\n\t\tNote note = new Note();\n\t\tnote.setNoteId(1);\n\t\tnote.setContent(\"Note Test\");\n\t\tnote.setBatch(batch);\n\t\tnote.setQcFeedback(false);\n\t\tnote.setWeek((short) 1);\n\t\tnote.setTrainee(trainee);\n\t\tnote.setQcStatus(null);\n\t\tnote.setMaxVisibility(null);\n\t\tnote.setType(NoteType.TRAINEE);\n\n\t\t// save note\n\t\tnoteDao.save(note);\n\t}", "title": "" }, { "docid": "b66cd97687c5371e3adfc711a3dbcc2f", "score": "0.48769817", "text": "public String modelChange(PO po, int type) throws Exception {\n\n\t\tif (po.get_TableName().equals(\"C_CashLine\") \n\t\t\t\t&& (type == TYPE_BEFORE_CHANGE \n\t\t\t\t\t\t|| type == TYPE_BEFORE_NEW)) {\n\t\t\tlog.fine(MCashLine.Table_Name + \" -- TYPE_BEFORE_NEW || TYPE_BEFORE_CHANGE\");\n\t\t\t//\tGet Cash Line from PO\n\t\t\tMCashLine m_CashLine = (MCashLine) po;\n\t\t\t//\tVerify if the (Base Amount + Tax Amount) > Amount\n\t\t\tif(m_CashLine != null) {\n\t\t\t\tString str_base_amount = m_CashLine.get_ValueAsString(\"A_Base_Amount\");\t\t\t\t\n\t\t\t\tBigDecimal base_amt = new BigDecimal((str_base_amount != null && str_base_amount.length() > 0? str_base_amount: \"0\"));\n\t\t\t\tBigDecimal amt = m_CashLine.getAmount();\n\t\t\t\t//Dixon Martinez\n\t\t\t\t//Calculate the tax amount and the exempt amount\n\t\t\t\tMTax m_Tax = new MTax(Env.getCtx(), m_CashLine.get_ValueAsInt(\"C_Tax_ID\"), null);\n\t\t\t\tMCurrency m_Currency = new MCurrency(Env.getCtx(), Env.getContextAsInt(Env.getCtx(), \"@#C_Currency_ID@\"), null);\n\t\t\t\tBigDecimal taxAmt = m_Tax.calculateTax(base_amt, false, m_Currency.getStdPrecision());\n\t\t\t\tBigDecimal exAmt = amt.subtract(base_amt).subtract(taxAmt);\t\t\t\t\t\t\t\n\t\t\t\t//\tError\n\t\t\t\t\n\t\t\t\t//Carlos Parada Add Validation When Amt is Equals To Zero\n\t\t\t\tif(base_amt.abs()\n\t\t\t\t\t\t.add(taxAmt.abs())\n\t\t\t\t\t\t.add(exAmt.abs())\n\t\t\t\t\t\t.compareTo(amt.abs()) > 0 && amt.abs()!=Env.ZERO)\n\t\t\t\t\t//Dixon Martinez\n\t\t\t\t\t//Modification of code to make translations of the elements.\n\t\t\t\t\treturn \"(\" + Msg.translate(m_CashLine.getCtx(), \"A_Base_Amount\") + \n\t\t\t\t\t\t\t\" + \" + Msg.translate(m_CashLine.getCtx(), \"TaxAmt\") + \n\t\t\t\t\t\t\t\" + \" + Msg.translate(m_CashLine.getCtx(), \"Exempt\") + \n\t\t\t\t\t\t\t\") > \" + Msg.translate(m_CashLine.getCtx(), \"Amount\");\t\t\t\t\n\t\t\t}\n\t\t\tlog.info(po.toString());\t\t\t\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "cc4588f57449fd9421facfe4829e129f", "score": "0.48675537", "text": "@SuppressWarnings(\"unused\")\n protected void afterSave(T object) {\n //\n }", "title": "" }, { "docid": "7a9ed922c20cd63c75a64ddef74984a2", "score": "0.48675388", "text": "@Override\r\n\tpublic int modify(PaymentPO po) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "dfe15ece02dc654cd2421c8063c06dd3", "score": "0.48675156", "text": "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "title": "" }, { "docid": "5533780ae59c6a00140959a94edb382d", "score": "0.4867323", "text": "@Override\r\n\tpublic void save() {\n\r\n\t}", "title": "" }, { "docid": "5533780ae59c6a00140959a94edb382d", "score": "0.4867323", "text": "@Override\r\n\tpublic void save() {\n\r\n\t}", "title": "" }, { "docid": "8481e17928dbebde959ad54a889e0835", "score": "0.48602664", "text": "@Override\n protected void commitCreates(ViewImpl view, ObjectInstance oi)\n {\n }", "title": "" }, { "docid": "0b758e04f5016a4ae546fe17701a06ce", "score": "0.4858849", "text": "@Transactional\n\tpublic void saveNewProtocol(FlowObjCreator foc) {\n\t\tInteger idf = foc.getIdf();\n\t\tTree newProtocolT = saveNewDocRoot(idf, \"protocol\");\n\t\tProtocol newProtocolO = foc.getNewProtocol();\n\t\tlog.debug(newProtocolO);\n\t\tConceptMtl.reviseIntention(newProtocolO);\n\t\tlog.debug(newProtocolO);\n\t\tnewProtocolO.setProtocoltype(\"clinic\");\n\t\tnewProtocolO.setId(newProtocolT.getId());\n\t\tTree definitionT = addChild(\"definition\",newProtocolT,newProtocolT);\n\t\t\n\t\tTree newTaskT = addChild(\"task\",definitionT,newProtocolT);\n\t\tnewTaskT.setIdClass(newTaskT.getId());\n\t\tint duration = 14;\n\t\tduration = newProtocolO.getDuration();\n\t\tTask newTaskC = newTaskC(newProtocolO.getSchemaName(),\"chemo\",duration, newTaskT);\n\t\taddHistory(newTaskT);\n\t\t\n//\t\tTask supportTaskC = new Task();\n//\t\tsupportTaskC.setTask(\"support\");\n//\t\tsupportTaskC = (Task) taskL(supportTaskC).get(0);\n\t\tSchemaMtl schemaMtl = new SchemaMtl(newTaskT);\n\t\tTree supportTaskC=initInsideTask(schemaMtl, \"support\");\n//\t\taddSchema(supportTaskC.getId(), newTaskT, newTaskT);\n\t\t\n\t\tTree newTask2T = addChild(\"task\",newProtocolT,newProtocolT);\n\t\tnewTask2T.setIdClass(newTaskT.getIdClass());\n//\t\tem.merge(newProtocolT);\n\t\tem.persist(newProtocolT);\n\t\tem.persist(newProtocolO);\n\t\tem.persist(newTaskC);\n\t\t//formUtil.setNewTaskT(newTaskT);\n\t\tfoc.setIdf(newTaskT.getId());\n\t}", "title": "" }, { "docid": "1d5d1a05750fa383a5c02d6ce3753bbb", "score": "0.48525017", "text": "public String saveProductionBlock(ProductionBlock pb);", "title": "" } ]
f8728a8c7132194725f9f34a5d8b0e8d
Token literal values and constants. Generated by org.javacc.parser.OtherFilesGenstart()
[ { "docid": "5b126a40dc250fc237c3195b025b0404", "score": "0.707595", "text": "public interface Example1Constants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int INT = 5;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<INT>\",\n \"\\\"a\\\"\",\n \"\\\"b\\\"\",\n \"\\\"c\\\"\",\n \"\\\"d\\\"\",\n \"\\\"e\\\"\",\n \"\\\"f\\\"\",\n \"\\\"(\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\")\\\"\",\n \"\\\"==\\\"\",\n \"\\\"^\\\"\",\n \"\\\"tt\\\"\",\n \"\\\"ff\\\"\",\n \"\\\"!\\\"\",\n \"\\\"skip\\\"\",\n \"\\\";\\\"\",\n \"\\\":=\\\"\",\n \"\\\"if\\\"\",\n \"\\\"then\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"do\\\"\",\n };\n\n}", "title": "" } ]
[ { "docid": "b22f21d74266d5e92ae1a28032c77965", "score": "0.723068", "text": "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int num = 1;\n /** RegularExpression Id. */\n int bool = 2;\n /** RegularExpression Id. */\n int letra = 3;\n /** RegularExpression Id. */\n int dig = 4;\n /** RegularExpression Id. */\n int p_ent = 5;\n /** RegularExpression Id. */\n int p_dec = 6;\n /** RegularExpression Id. */\n int p_exp = 7;\n /** RegularExpression Id. */\n int lit_n = 8;\n /** RegularExpression Id. */\n int or = 9;\n /** RegularExpression Id. */\n int and = 10;\n /** RegularExpression Id. */\n int not = 11;\n /** RegularExpression Id. */\n int v_true = 12;\n /** RegularExpression Id. */\n int v_false = 13;\n /** RegularExpression Id. */\n int ID = 14;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\"num\\\"\",\n \"\\\"bool\\\"\",\n \"<letra>\",\n \"<dig>\",\n \"<p_ent>\",\n \"<p_dec>\",\n \"<p_exp>\",\n \"<lit_n>\",\n \"\\\"or\\\"\",\n \"\\\"and\\\"\",\n \"\\\"not\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"<ID>\",\n \"<token of kind 15>\",\n \"\\\"&&\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"==\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n };\n\n}", "title": "" }, { "docid": "ca20ba171d7695c614d67a79f7246e6b", "score": "0.71239823", "text": "public interface ParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int OP = 5;\r\n /** RegularExpression Id. */\r\n int RLT_PARALLEL = 6;\r\n /** RegularExpression Id. */\r\n int RLT_DIR_SUCC = 7;\r\n /** RegularExpression Id. */\r\n int RLT_INDIR_SUCC = 8;\r\n /** RegularExpression Id. */\r\n int RLT_DIR_CASUAL = 9;\r\n /** RegularExpression Id. */\r\n int RLT_INDIR_CASUAL = 10;\r\n /** RegularExpression Id. */\r\n int RLT_CYCLE = 11;\r\n /** RegularExpression Id. */\r\n int RLT_MUTEX = 12;\r\n /** RegularExpression Id. */\r\n int AND = 13;\r\n /** RegularExpression Id. */\r\n int OR = 14;\r\n /** RegularExpression Id. */\r\n int ACTIVITY = 15;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"<OP>\",\r\n \"\\\"\\\\u2225\\\"\",\r\n \"\\\">\\\"\",\r\n \"\\\"\\\\u00bb\\\"\",\r\n \"\\\"\\\\u2192\\\"\",\r\n \"\\\"\\\\u21a0\\\"\",\r\n \"\\\"\\\\u229a\\\"\",\r\n \"\\\"\\\\u00d7\\\"\",\r\n \"\\\"and\\\"\",\r\n \"\\\"or\\\"\",\r\n \"<ACTIVITY>\",\r\n \"\\\";\\\"\",\r\n \"\\\"(\\\"\",\r\n \"\\\")\\\"\",\r\n };\r\n\r\n}", "title": "" }, { "docid": "fc88426917670b80a2c4c99fc3c3bf6b", "score": "0.70293385", "text": "Expression literal() :\n {\n Token t;\n }", "title": "" }, { "docid": "ce277c78bd36d9237d0d1b9d658a6a38", "score": "0.6816926", "text": "interface Tokens {\n\tstatic final int EOF = -1;\n\tstatic final int HTML = 0;\n\tstatic final int JEXPR = 1; // <%= ... %>\n\tstatic final int JSCRIPT = 2; // <% .... %>\n\tstatic final int JDIRECT = 3; // <%@ ... %>\n\tstatic final int JDECLAR = 4; // <%! ... %>\n\tstatic final int GEXPR = 11; // ${ ... }\n\tstatic final int GSCRIPT = 12; // %{ ... }%\n\tstatic final int GDIRECT = 13; // @{ ... }\n\tstatic final int GDECLAR = 14; // !{ ... }!\n}", "title": "" }, { "docid": "3a3833fe008549a1bb30ed68045000ff", "score": "0.68108803", "text": "public interface TokenTypes {\n\n /**\n * Tokens of type <code>NULL</code> mark the end of lines with no\n * multi-line token at the end (such as a block comment in C++).\n */\n public static final int NULL = 0;\n\n public static final int COMMENT_EOL = 1;\n public static final int COMMENT_MULTILINE = 2;\n public static final int COMMENT_DOCUMENTATION = 3;\n public static final int COMMENT_KEYWORD = 4;\n public static final int COMMENT_MARKUP = 5;\n\n public static final int RESERVED_WORD = 6;\n public static final int RESERVED_WORD_2 = 7;\n\n public static final int FUNCTION = 8;\n\n public static final int LITERAL_BOOLEAN = 9;\n public static final int LITERAL_NUMBER_DECIMAL_INT = 10;\n public static final int LITERAL_NUMBER_FLOAT = 11;\n public static final int LITERAL_NUMBER_HEXADECIMAL = 12;\n public static final int LITERAL_STRING_DOUBLE_QUOTE = 13;\n public static final int LITERAL_CHAR = 14;\n public static final int LITERAL_BACKQUOTE = 15;\n\n public static final int DATA_TYPE = 16;\n\n public static final int VARIABLE = 17;\n\n public static final int REGEX = 18;\n\n public static final int ANNOTATION = 19;\n\n public static final int IDENTIFIER = 20;\n\n public static final int WHITESPACE = 21;\n\n public static final int SEPARATOR = 22;\n\n public static final int OPERATOR = 23;\n\n public static final int PREPROCESSOR = 24;\n\n public static final int MARKUP_TAG_DELIMITER = 25;\n public static final int MARKUP_TAG_NAME = 26;\n public static final int MARKUP_TAG_ATTRIBUTE = 27;\n public static final int MARKUP_TAG_ATTRIBUTE_VALUE = 28;\n public static final int MARKUP_PROCESSING_INSTRUCTION = 29;\n public static final int MARKUP_CDATA = 30;\n\n public static final int ERROR_IDENTIFIER = 31;\n public static final int ERROR_NUMBER_FORMAT = 32;\n public static final int ERROR_STRING_DOUBLE = 33;\n public static final int ERROR_CHAR = 34;\n\n public static final int NUM_TOKEN_TYPES = 35;\n\n}", "title": "" }, { "docid": "c4c38eb38e4040a35340271b8d70adf8", "score": "0.6588087", "text": "public interface NuevoParser201820Constants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 6;\n /** RegularExpression Id. */\n int MINUS = 7;\n /** RegularExpression Id. */\n int MULTIPLY = 8;\n /** RegularExpression Id. */\n int DIVIDE = 9;\n /** RegularExpression Id. */\n int EQ = 10;\n /** RegularExpression Id. */\n int NEQ = 11;\n /** RegularExpression Id. */\n int LT = 12;\n /** RegularExpression Id. */\n int LTE = 13;\n /** RegularExpression Id. */\n int GTE = 14;\n /** RegularExpression Id. */\n int GT = 15;\n /** RegularExpression Id. */\n int INT = 16;\n /** RegularExpression Id. */\n int DIGIT = 17;\n /** RegularExpression Id. */\n int PRINT = 18;\n /** RegularExpression Id. */\n int VAR = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int DEFINE = 21;\n /** RegularExpression Id. */\n int SMALL = 22;\n /** RegularExpression Id. */\n int LARGE = 23;\n /** RegularExpression Id. */\n int NOT = 24;\n /** RegularExpression Id. */\n int AND = 25;\n /** RegularExpression Id. */\n int OR = 26;\n /** RegularExpression Id. */\n int NAME = 27;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"/*\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">=\\\"\",\n \"\\\">\\\"\",\n \"<INT>\",\n \"<DIGIT>\",\n \"\\\"print\\\"\",\n \"\\\"var\\\"\",\n \"\\\"if\\\"\",\n \"\\\"define\\\"\",\n \"<SMALL>\",\n \"<LARGE>\",\n \"\\\"not\\\"\",\n \"\\\"and\\\"\",\n \"\\\"or\\\"\",\n \"<NAME>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"=\\\"\",\n \"\\\",\\\"\",\n \"\\\":\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n };\n\n}", "title": "" }, { "docid": "4334f0dc7b1642ab60cd8e78d8a2e797", "score": "0.6574373", "text": "public interface NosliwExpressionParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int OPEN_PAR = 1;\n /** RegularExpression Id. */\n int CLOSE_PAR = 2;\n /** RegularExpression Id. */\n int COMMAR = 3;\n /** RegularExpression Id. */\n int CONSTANT = 4;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\",\\\"\",\n \"<CONSTANT>\",\n \"\\\":(\\\"\",\n \"\\\"):\\\"\",\n \"\\\"!(\\\"\",\n \"\\\")!\\\"\",\n \"\\\"?(\\\"\",\n \"\\\")?\\\"\",\n \"\\\".\\\"\",\n };\n\n}", "title": "" }, { "docid": "4d1f413547ad7b20f1663cb061593441", "score": "0.65724754", "text": "public interface RccConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int MODULE_TKN = 11;\n /** RegularExpression Id. */\n int RECORD_TKN = 12;\n /** RegularExpression Id. */\n int INCLUDE_TKN = 13;\n /** RegularExpression Id. */\n int BYTE_TKN = 14;\n /** RegularExpression Id. */\n int BOOLEAN_TKN = 15;\n /** RegularExpression Id. */\n int INT_TKN = 16;\n /** RegularExpression Id. */\n int LONG_TKN = 17;\n /** RegularExpression Id. */\n int FLOAT_TKN = 18;\n /** RegularExpression Id. */\n int DOUBLE_TKN = 19;\n /** RegularExpression Id. */\n int USTRING_TKN = 20;\n /** RegularExpression Id. */\n int BUFFER_TKN = 21;\n /** RegularExpression Id. */\n int VECTOR_TKN = 22;\n /** RegularExpression Id. */\n int MAP_TKN = 23;\n /** RegularExpression Id. */\n int LBRACE_TKN = 24;\n /** RegularExpression Id. */\n int RBRACE_TKN = 25;\n /** RegularExpression Id. */\n int LT_TKN = 26;\n /** RegularExpression Id. */\n int GT_TKN = 27;\n /** RegularExpression Id. */\n int SEMICOLON_TKN = 28;\n /** RegularExpression Id. */\n int COMMA_TKN = 29;\n /** RegularExpression Id. */\n int DOT_TKN = 30;\n /** RegularExpression Id. */\n int CSTRING_TKN = 31;\n /** RegularExpression Id. */\n int IDENT_TKN = 32;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int WithinOneLineComment = 1;\n /** Lexical state. */\n int WithinMultiLineComment = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"//\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"\\\"/*\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"module\\\"\",\n \"\\\"class\\\"\",\n \"\\\"include\\\"\",\n \"\\\"byte\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"int\\\"\",\n \"\\\"long\\\"\",\n \"\\\"float\\\"\",\n \"\\\"double\\\"\",\n \"\\\"ustring\\\"\",\n \"\\\"buffer\\\"\",\n \"\\\"vector\\\"\",\n \"\\\"map\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"<CSTRING_TKN>\",\n \"<IDENT_TKN>\",\n };\n\n}", "title": "" }, { "docid": "919d7388d0535e93762ac903c9a9ac44", "score": "0.65405554", "text": "public interface DerivedDataParserConstants {\n\n\t/** End of File. */\n\tint EOF = 0;\n\t/** RegularExpression Id. */\n\tint PLUS = 6;\n\t/** RegularExpression Id. */\n\tint MINUS = 7;\n\t/** RegularExpression Id. */\n\tint DIVIDE = 8;\n\t/** RegularExpression Id. */\n\tint TIMES = 9;\n\t/** RegularExpression Id. */\n\tint LBRACKET = 10;\n\t/** RegularExpression Id. */\n\tint RBRACKET = 11;\n\t/** RegularExpression Id. */\n\tint COMMA = 12;\n\t/** RegularExpression Id. */\n\tint NUMBER = 13;\n\t/** RegularExpression Id. */\n\tint INTEGER = 14;\n\t/** RegularExpression Id. */\n\tint DIGIT = 15;\n\t/** RegularExpression Id. */\n\tint DECIMAL = 16;\n\t/** RegularExpression Id. */\n\tint EXPONENT = 17;\n\t/** RegularExpression Id. */\n\tint VARIABLE = 18;\n\t/** RegularExpression Id. */\n\tint ALPHA = 19;\n\t/** RegularExpression Id. */\n\tint CHAR = 20;\n\t/** RegularExpression Id. */\n\tint NAME = 21;\n\t/** RegularExpression Id. */\n\tint STRING = 22;\n\t/** RegularExpression Id. */\n\tint ENTITY = 23;\n\n\t/** Lexical state. */\n\tint DEFAULT = 0;\n\n\t/** Literal token values. */\n\tString[] tokenImage = { \"<EOF>\", \"\\\" \\\"\", \"\\\"\\\\t\\\"\", \"\\\"\\\\n\\\"\", \"\\\"\\\\r\\\"\",\n\t\t\t\"\\\"\\\\r\\\\n\\\"\", \"\\\"+\\\"\", \"\\\"-\\\"\", \"\\\"/\\\"\", \"\\\"*\\\"\", \"\\\"(\\\"\", \"\\\")\\\"\",\n\t\t\t\"\\\",\\\"\", \"<NUMBER>\", \"<INTEGER>\", \"<DIGIT>\", \"<DECIMAL>\",\n\t\t\t\"<EXPONENT>\", \"<VARIABLE>\", \"<ALPHA>\", \"<CHAR>\", \"<NAME>\",\n\t\t\t\"<STRING>\", \"<ENTITY>\", };\n\n}", "title": "" }, { "docid": "95333861853edbe8a8b895082a686978", "score": "0.6485318", "text": "public interface AssignmentConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 1;\n /** RegularExpression Id. */\n int MULT = 2;\n /** RegularExpression Id. */\n int LBRAC = 3;\n /** RegularExpression Id. */\n int RBRAC = 4;\n /** RegularExpression Id. */\n int LCURL = 5;\n /** RegularExpression Id. */\n int RCURL = 6;\n /** RegularExpression Id. */\n int KDEF = 7;\n /** RegularExpression Id. */\n int EOL = 8;\n /** RegularExpression Id. */\n int SPACE = 9;\n /** RegularExpression Id. */\n int SCOLN = 10;\n /** RegularExpression Id. */\n int MFUNC = 11;\n /** RegularExpression Id. */\n int NFUNC = 12;\n /** RegularExpression Id. */\n int PARAM = 13;\n /** RegularExpression Id. */\n int NUM = 14;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\"+\\\"\",\n \"\\\"*\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"DEF\\\"\",\n \"<EOL>\",\n \"\\\" \\\"\",\n \"\\\";\\\"\",\n \"\\\"MAIN\\\"\",\n \"<NFUNC>\",\n \"<PARAM>\",\n \"<NUM>\",\n };\n\n}", "title": "" }, { "docid": "41fa7061698b0e1d4f10eea99b64f6c8", "score": "0.64340556", "text": "public interface GoTokenTypes {\n\n IElementType wsWS = new GoElementTypeImpl(\"WHITESPACE\");\n IElementType wsNLS = new GoElementTypeImpl(\"WS_NEW_LINES\");\n\n IElementType litCHAR = new GoElementTypeImpl(\"LITERAL_CHAR\");\n IElementType litSTRING = new GoElementTypeImpl(\"LITERAL_STRING\");\n \n IElementType litOCT = new GoElementTypeImpl(\"LITERAL_OCT\");\n IElementType litINT = new GoElementTypeImpl(\"LITERAL_INT\");\n IElementType litHEX = new GoElementTypeImpl(\"LITERAL_HEX\");\n IElementType litFLOAT = new GoElementTypeImpl(\"LITERAL_FLOAT\");\n IElementType litFLOAT_I = new GoElementTypeImpl(\"LITERAL_IMAGINARY_FLOAT\");\n IElementType litDECIMAL_I = new GoElementTypeImpl(\"LITERAL_IMAGINARY_INTEGER\");\n\n IElementType kBREAK = new GoElementTypeImpl(\"KEYWORD_BREAK\");\n IElementType kDEFAULT = new GoElementTypeImpl(\"KEYWORD_DEFAULT\");\n IElementType kPACKAGE = new GoElementTypeImpl(\"KEYWORD_PACKAGE\");\n IElementType kFUNC = new GoElementTypeImpl(\"KEYWORD_FUNC\");\n IElementType kINTERFACE = new GoElementTypeImpl(\"KEYWORD_INTERFACE\");\n IElementType kSELECT = new GoElementTypeImpl(\"KEYWORD_SELECT\");\n\n IElementType kCASE = new GoElementTypeImpl(\"KEYWORD_CASE\");\n IElementType kDEFER = new GoElementTypeImpl(\"KEYWORD_DEFER\");\n IElementType kGO = new GoElementTypeImpl(\"KEYWORD_GO\");\n IElementType kMAP = new GoElementTypeImpl(\"KEYWORD_MAP\");\n\n IElementType kCHAN = new GoElementTypeImpl(\"KEYWORD_CHAN\");\n\n IElementType kSTRUCT = new GoElementTypeImpl(\"KEYWORD_STRUCT\");\n IElementType kELSE = new GoElementTypeImpl(\"KEYWORD_ELSE\");\n IElementType kGOTO = new GoElementTypeImpl(\"KEYWORD_GOTO\");\n IElementType kSWITCH = new GoElementTypeImpl(\"KEYWORD_SWITCH\");\n IElementType kCONST = new GoElementTypeImpl(\"KEYWORD_CONST\");\n IElementType kFALLTHROUGH = new GoElementTypeImpl(\"KEYWORD_FALLTHROUGH\");\n\n IElementType kIF = new GoElementTypeImpl(\"KEYWORD_IF\");\n IElementType kFOR = new GoElementTypeImpl(\"KEYWORD_FOR\");\n IElementType kRETURN = new GoElementTypeImpl(\"KEYWORD_RETURN\");\n IElementType kIMPORT = new GoElementTypeImpl(\"KEYWORD_IMPORT\");\n IElementType kCONTINUE = new GoElementTypeImpl(\"KEYWORD_CONTINUE\");\n\n IElementType kRANGE = new GoElementTypeImpl(\"KEYWORD_RANGE\");\n IElementType kTYPE = new GoElementTypeImpl(\"KEYWORD_TYPE\");\n IElementType kVAR = new GoElementTypeImpl(\"KEYWORD_VAR\");\n\n IElementType mWRONG = new GoElementTypeImpl(\"WRONG\");\n\n IElementType mSL_COMMENT = new GoElementTypeImpl(\"SL_COMMENT\");\n IElementType mML_COMMENT = new GoElementTypeImpl(\"ML_COMMENT\");\n\n IElementType mIDENT = new GoElementTypeImpl(\"IDENTIFIER\");\n\n IElementType pLCURCLY = new GoElementTypeImpl(\"{\");\n IElementType pRCURLY = new GoElementTypeImpl(\"}\");\n IElementType pLBRACK = new GoElementTypeImpl(\"[\");\n IElementType pRBRACK = new GoElementTypeImpl(\"]\");\n IElementType pLPAREN = new GoElementTypeImpl(\"(\");\n IElementType pRPAREN = new GoElementTypeImpl(\")\");\n\n IElementType oSEMI = new GoElementTypeImpl(\";\");\n\n IElementType oTRIPLE_DOT = new GoElementTypeImpl(\"...\");\n IElementType oDOT = new GoElementTypeImpl(\".\");\n IElementType oCOLON = new GoElementTypeImpl(\":\");\n IElementType oCOMMA = new GoElementTypeImpl(\",\");\n\n IElementType oEQ = new GoElementTypeImpl(\"==\");\n IElementType oASSIGN = new GoElementTypeImpl(\"=\");\n\n IElementType oNOT_EQ = new GoElementTypeImpl(\"!=\");\n IElementType oNOT = new GoElementTypeImpl(\"!\");\n\n IElementType oPLUS_PLUS = new GoElementTypeImpl(\"++\");\n IElementType oPLUS_ASSIGN = new GoElementTypeImpl(\"+=\");\n IElementType oPLUS = new GoElementTypeImpl(\"+\");\n\n IElementType oMINUS_MINUS = new GoElementTypeImpl(\"--\");\n IElementType oMINUS_ASSIGN = new GoElementTypeImpl(\"-=\");\n IElementType oMINUS = new GoElementTypeImpl(\"-\");\n\n IElementType oCOND_OR = new GoElementTypeImpl(\"||\");\n IElementType oBIT_OR_ASSIGN = new GoElementTypeImpl(\"|=\");\n IElementType oBIT_OR = new GoElementTypeImpl(\"|\");\n\n IElementType oBIT_CLEAR_ASSIGN = new GoElementTypeImpl(\"&^=\");\n IElementType oBIT_CLEAR = new GoElementTypeImpl(\"&^\");\n IElementType oCOND_AND = new GoElementTypeImpl(\"&&\");\n\n IElementType oBIT_AND_ASSIGN = new GoElementTypeImpl(\"&=\");\n IElementType oBIT_AND = new GoElementTypeImpl(\"&\");\n\n IElementType oBIT_XOR_ASSIGN = new GoElementTypeImpl(\"^=\");\n IElementType oBIT_XOR = new GoElementTypeImpl(\"^\");\n\n IElementType oMUL_ASSIGN = new GoElementTypeImpl(\"*=\");\n IElementType oMUL = new GoElementTypeImpl(\"*\");\n\n IElementType oQUOTIENT_ASSIGN = new GoElementTypeImpl(\"/=\");\n IElementType oQUOTIENT = new GoElementTypeImpl(\"/\");\n\n IElementType oREMAINDER_ASSIGN = new GoElementTypeImpl(\"%=\");\n IElementType oREMAINDER = new GoElementTypeImpl(\"%\");\n\n IElementType oSEND_CHANNEL = new GoElementTypeImpl(\"<-\");\n IElementType oSHIFT_LEFT_ASSIGN = new GoElementTypeImpl(\"<<=\");\n IElementType oSHIFT_LEFT = new GoElementTypeImpl(\"<<\");\n\n IElementType oSHIFT_RIGHT_ASSIGN = new GoElementTypeImpl(\">>=\");\n IElementType oSHIFT_RIGHT = new GoElementTypeImpl(\">>\");\n\n IElementType oLESS_OR_EQUAL = new GoElementTypeImpl(\"<=\");\n IElementType oLESS = new GoElementTypeImpl(\"<\");\n\n IElementType oGREATER_OR_EQUAL = new GoElementTypeImpl(\">=\");\n IElementType oGREATER = new GoElementTypeImpl(\">\");\n\n IElementType oVAR_ASSIGN = new GoElementTypeImpl(\":=\");\n\n\n}", "title": "" }, { "docid": "e0ef02e12c32d9792c7356598e522e6d", "score": "0.64339536", "text": "public interface DecoderConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int COMMENT = 5;\n /** RegularExpression Id. */\n int MULTICOMMENT = 6;\n /** RegularExpression Id. */\n int VARIABLE = 7;\n /** RegularExpression Id. */\n int FUNCTION = 8;\n /** RegularExpression Id. */\n int IF = 9;\n /** RegularExpression Id. */\n int ELSE = 10;\n /** RegularExpression Id. */\n int WHILE = 11;\n /** RegularExpression Id. */\n int BREAK = 12;\n /** RegularExpression Id. */\n int CONTINUE = 13;\n /** RegularExpression Id. */\n int RETURN = 14;\n /** RegularExpression Id. */\n int INTEGER_LITERAL = 15;\n /** RegularExpression Id. */\n int DECIMAL_LITERAL = 16;\n /** RegularExpression Id. */\n int HEX_LITERAL = 17;\n /** RegularExpression Id. */\n int OCTAL_LITERAL = 18;\n /** RegularExpression Id. */\n int FLOATING_POINT_LITERAL = 19;\n /** RegularExpression Id. */\n int EXPONENT = 20;\n /** RegularExpression Id. */\n int STRING_LITERAL = 21;\n /** RegularExpression Id. */\n int IDENTIFIER = 22;\n /** RegularExpression Id. */\n int LETTER = 23;\n /** RegularExpression Id. */\n int DIGIT = 24;\n /** RegularExpression Id. */\n int ASSIGN = 25;\n /** RegularExpression Id. */\n int GT = 26;\n /** RegularExpression Id. */\n int LT = 27;\n /** RegularExpression Id. */\n int EQ = 28;\n /** RegularExpression Id. */\n int LE = 29;\n /** RegularExpression Id. */\n int GE = 30;\n /** RegularExpression Id. */\n int NE = 31;\n /** RegularExpression Id. */\n int SC_OR = 32;\n /** RegularExpression Id. */\n int SC_AND = 33;\n /** RegularExpression Id. */\n int INCR = 34;\n /** RegularExpression Id. */\n int DECR = 35;\n /** RegularExpression Id. */\n int PLUS = 36;\n /** RegularExpression Id. */\n int MINUS = 37;\n /** RegularExpression Id. */\n int STAR = 38;\n /** RegularExpression Id. */\n int SLASH = 39;\n /** RegularExpression Id. */\n int BIT_AND = 40;\n /** RegularExpression Id. */\n int BIT_OR = 41;\n /** RegularExpression Id. */\n int XOR = 42;\n /** RegularExpression Id. */\n int REM = 43;\n /** RegularExpression Id. */\n int LPAREN = 44;\n /** RegularExpression Id. */\n int RPAREN = 45;\n /** RegularExpression Id. */\n int LBRACE = 46;\n /** RegularExpression Id. */\n int RBRACE = 47;\n /** RegularExpression Id. */\n int LBRACKET = 48;\n /** RegularExpression Id. */\n int RBRACKET = 49;\n /** RegularExpression Id. */\n int SEMICOLON = 50;\n /** RegularExpression Id. */\n int COMMA = 51;\n /** RegularExpression Id. */\n int DOT = 52;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<COMMENT>\",\n \"<MULTICOMMENT>\",\n \"\\\"var\\\"\",\n \"\\\"func\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"break\\\"\",\n \"\\\"continue\\\"\",\n \"\\\"return\\\"\",\n \"<INTEGER_LITERAL>\",\n \"<DECIMAL_LITERAL>\",\n \"<HEX_LITERAL>\",\n \"<OCTAL_LITERAL>\",\n \"<FLOATING_POINT_LITERAL>\",\n \"<EXPONENT>\",\n \"<STRING_LITERAL>\",\n \"<IDENTIFIER>\",\n \"<LETTER>\",\n \"<DIGIT>\",\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 \"\\\">>\\\"\",\n \"\\\">>>\\\"\",\n \"\\\"~\\\"\",\n \"\\\"!\\\"\",\n };\n\n}", "title": "" }, { "docid": "8b89a55d15fe9edd4892a324295eb080", "score": "0.6428606", "text": "public interface VELParserConstants {\n\n /**\n * End of File.\n */\n int EOF = 0;\n /**\n * RegularExpression Id.\n */\n int FOP = 5;\n /**\n * RegularExpression Id.\n */\n int GOP = 6;\n /**\n * RegularExpression Id.\n */\n int XOP = 7;\n /**\n * RegularExpression Id.\n */\n int NEG = 8;\n /**\n * RegularExpression Id.\n */\n int UOP = 9;\n /**\n * RegularExpression Id.\n */\n int VOP = 10;\n /**\n * RegularExpression Id.\n */\n int WOP = 11;\n /**\n * RegularExpression Id.\n */\n int AND = 12;\n /**\n * RegularExpression Id.\n */\n int DUR = 13;\n /**\n * RegularExpression Id.\n */\n int OR = 14;\n /**\n * RegularExpression Id.\n */\n int IMP = 15;\n /**\n * RegularExpression Id.\n */\n int LPAR = 16;\n /**\n * RegularExpression Id.\n */\n int RPAR = 17;\n /**\n * RegularExpression Id.\n */\n int LANG = 18;\n /**\n * RegularExpression Id.\n */\n int RANG = 19;\n /**\n * RegularExpression Id.\n */\n int COM = 20;\n /**\n * RegularExpression Id.\n */\n int SEMI = 21;\n /**\n * RegularExpression Id.\n */\n int COL = 22;\n /**\n * RegularExpression Id.\n */\n int UNIV = 23;\n /**\n * RegularExpression Id.\n */\n int EXIS = 24;\n /**\n * RegularExpression Id.\n */\n int TRUE = 25;\n /**\n * RegularExpression Id.\n */\n int FALSE = 26;\n /**\n * RegularExpression Id.\n */\n int ID = 27;\n /**\n * RegularExpression Id.\n */\n int NUM = 28;\n\n /**\n * Lexical state.\n */\n int DEFAULT = 0;\n\n /**\n * Literal token values.\n */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"F\\\"\",\n \"\\\"G\\\"\",\n \"\\\"X\\\"\",\n \"\\\"!\\\"\",\n \"\\\"U\\\"\",\n \"\\\"V\\\"\",\n \"\\\"W\\\"\",\n \"\\\"&\\\"\",\n \"\\\"*\\\"\",\n \"\\\"|\\\"\",\n \"\\\"->\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\",\\\"\",\n \"\\\";\\\"\",\n \"\\\":\\\"\",\n \"\\\"A\\\"\",\n \"\\\"E\\\"\",\n \"<TRUE>\",\n \"<FALSE>\",\n \"<ID>\",\n \"<NUM>\",\n };\n\n}", "title": "" }, { "docid": "96e32df697c41d9be4cfc8903be4218d", "score": "0.64168316", "text": "private void addToken(TokenType token, Object literal) {\n String lexeme = this.source.substring(start, current);\n tokens.add(new Token(token, lexeme, literal, this.currentLine));\n }", "title": "" }, { "docid": "33674565e90aedf47c924c1cec11647e", "score": "0.63454676", "text": "public interface QueryParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int AND = 5;\n /** RegularExpression Id. */\n int OR = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int LPAREN = 8;\n /** RegularExpression Id. */\n int RPAREN = 9;\n /** RegularExpression Id. */\n int QUOTED = 10;\n /** RegularExpression Id. */\n int _QUOTED_CHAR = 11;\n /** RegularExpression Id. */\n int TERM = 12;\n /** RegularExpression Id. */\n int PREFIXTERM = 13;\n /** RegularExpression Id. */\n int WILDTERM = 14;\n /** RegularExpression Id. */\n int _TERM_CHAR = 15;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<AND>\",\n \"<OR>\",\n \"<NOT>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"<QUOTED>\",\n \"<_QUOTED_CHAR>\",\n \"<TERM>\",\n \"<PREFIXTERM>\",\n \"<WILDTERM>\",\n \"<_TERM_CHAR>\",\n };\n\n}", "title": "" }, { "docid": "bd6f340821b37ae743f9d120a6050e69", "score": "0.6303844", "text": "public interface ContParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int KEYWORD_CREATE = 8;\n /** RegularExpression Id. */\n int KEYWORD_CONTEXT = 9;\n /** RegularExpression Id. */\n int KEYWORD_DOT = 10;\n /** RegularExpression Id. */\n int KEYWORD_ACTIVE = 11;\n /** RegularExpression Id. */\n int KEYWORD_IF = 12;\n /** RegularExpression Id. */\n int KEYWORD_DROP = 13;\n /** RegularExpression Id. */\n int KEYWORD_ALTER = 14;\n /** RegularExpression Id. */\n int KEYWORD_IS = 15;\n /** RegularExpression Id. */\n int KEYWORD_BETWEEN = 16;\n /** RegularExpression Id. */\n int KEYWORD_LIKE = 17;\n /** RegularExpression Id. */\n int OPERATOR_MULTIPLY = 18;\n /** RegularExpression Id. */\n int OPERATOR_DIVIDE = 19;\n /** RegularExpression Id. */\n int OPERATOR_MODULO = 20;\n /** RegularExpression Id. */\n int OPERATOR_PLUS = 21;\n /** RegularExpression Id. */\n int OPERATOR_MINUS = 22;\n /** RegularExpression Id. */\n int OPERATOR_NOT = 23;\n /** RegularExpression Id. */\n int OPERATOR_XOR = 24;\n /** RegularExpression Id. */\n int OPERATOR_AND = 25;\n /** RegularExpression Id. */\n int OPERATOR_OR = 26;\n /** RegularExpression Id. */\n int OPERATOR_BITWISE_NOT = 27;\n /** RegularExpression Id. */\n int OPERATOR_BITWISE_LSH = 28;\n /** RegularExpression Id. */\n int OPERATOR_BITWISE_RSH = 29;\n /** RegularExpression Id. */\n int OPERATOR_BITWISE_XOR = 30;\n /** RegularExpression Id. */\n int OPERATOR_BITWISE_AND = 31;\n /** RegularExpression Id. */\n int OPERATOR_BITWISE_OR = 32;\n /** RegularExpression Id. */\n int OPERATOR_GREATER = 33;\n /** RegularExpression Id. */\n int OPERATOR_LESS = 34;\n /** RegularExpression Id. */\n int OPERATOR_GREATER_EQUAL = 35;\n /** RegularExpression Id. */\n int OPERATOR_LESS_EQUAL = 36;\n /** RegularExpression Id. */\n int OPERATOR_EQUAL = 37;\n /** RegularExpression Id. */\n int OPERATOR_NOT_EQUAL = 38;\n /** RegularExpression Id. */\n int TYPE_ID = 39;\n /** RegularExpression Id. */\n int TYPE_TIMESTAMP = 40;\n /** RegularExpression Id. */\n int TYPE_BOOLEAN = 41;\n /** RegularExpression Id. */\n int TYPE_INTEGER = 42;\n /** RegularExpression Id. */\n int TYPE_FLOAT = 43;\n /** RegularExpression Id. */\n int TYPE_STRING = 44;\n /** RegularExpression Id. */\n int TYPE_ANY = 45;\n /** RegularExpression Id. */\n int CONSTANT_NULL = 46;\n /** RegularExpression Id. */\n int CONSTANT_BOOLEAN_TRUE = 47;\n /** RegularExpression Id. */\n int CONSTANT_BOOLEAN_FALSE = 48;\n /** RegularExpression Id. */\n int CONSTANT_BOOLEAN_UNKNOWN = 49;\n /** RegularExpression Id. */\n int CONSTANT_INTEGER_10 = 50;\n /** RegularExpression Id. */\n int CONSTANT_INTEGER_16 = 51;\n /** RegularExpression Id. */\n int CONSTANT_FLOAT = 52;\n /** RegularExpression Id. */\n int CONSTANT_SINGLE_QUOTED_STRING_START = 53;\n /** RegularExpression Id. */\n int CONSTANT_DOUBLE_QUOTED_STRING_START = 54;\n /** RegularExpression Id. */\n int CONSTANT_SINGLE_QUOTED_STRING_VALUE = 55;\n /** RegularExpression Id. */\n int CONSTANT_DOUBLE_QUOTED_STRING_VALUE = 56;\n /** RegularExpression Id. */\n int CONSTANT_SINGLE_QUOTED_STRING_END = 57;\n /** RegularExpression Id. */\n int CONSTANT_DOUBLE_QUOTED_STRING_END = 58;\n /** RegularExpression Id. */\n int DIGIT = 59;\n /** RegularExpression Id. */\n int LITERAL = 60;\n /** RegularExpression Id. */\n int UNDERSCORE = 61;\n /** RegularExpression Id. */\n int HEXADECIMAL = 62;\n /** RegularExpression Id. */\n int IDENTIFIER = 63;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int COMMENT = 1;\n /** Lexical state. */\n int NON_SINGLE_QUOTED_STRING = 2;\n /** Lexical state. */\n int NON_DOUBLE_QUOTED_STRING = 3;\n /** Lexical state. */\n int NON_SINGLE_QUOTED_STRING_END = 4;\n /** Lexical state. */\n int NON_DOUBLE_QUOTED_STRING_END = 5;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"/*\\\"\",\n \"<token of kind 6>\",\n \"\\\"*/\\\"\",\n \"\\\"CREATE\\\"\",\n \"\\\"CONTEXT\\\"\",\n \"\\\".\\\"\",\n \"\\\"ACTIVE\\\"\",\n \"\\\"IF\\\"\",\n \"\\\"DROP\\\"\",\n \"\\\"ALTER\\\"\",\n \"\\\"IS\\\"\",\n \"\\\"BETWEEN\\\"\",\n \"\\\"LIKE\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"NOT\\\"\",\n \"\\\"XOR\\\"\",\n \"\\\"AND\\\"\",\n \"\\\"OR\\\"\",\n \"\\\"~\\\"\",\n \"\\\"<<\\\"\",\n \"\\\">>\\\"\",\n \"\\\"^\\\"\",\n \"\\\"&\\\"\",\n \"\\\"|\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"=\\\"\",\n \"<OPERATOR_NOT_EQUAL>\",\n \"\\\"ID\\\"\",\n \"\\\"TIMESTAMP\\\"\",\n \"\\\"BOOLEAN\\\"\",\n \"\\\"INTEGER\\\"\",\n \"\\\"FLOAT\\\"\",\n \"\\\"STRING\\\"\",\n \"\\\"ANY\\\"\",\n \"\\\"NULL\\\"\",\n \"\\\"TRUE\\\"\",\n \"\\\"FALSE\\\"\",\n \"\\\"UNKNOWN\\\"\",\n \"<CONSTANT_INTEGER_10>\",\n \"<CONSTANT_INTEGER_16>\",\n \"<CONSTANT_FLOAT>\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"<CONSTANT_SINGLE_QUOTED_STRING_VALUE>\",\n \"<CONSTANT_DOUBLE_QUOTED_STRING_VALUE>\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"<DIGIT>\",\n \"<LITERAL>\",\n \"\\\"_\\\"\",\n \"<HEXADECIMAL>\",\n \"<IDENTIFIER>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\":\\\"\",\n };\n\n}", "title": "" }, { "docid": "7fdc519702cf4cdd0f267d331f72cd7c", "score": "0.62669885", "text": "public void literal()\n {\n \tenterRule(NonTerminal.LITERAL);\n \tif(this.currentToken.kind == Token.Kind.INTEGER)\n \t\texpect(Token.Kind.INTEGER);\n \telse if(this.currentToken.kind == Token.Kind.FLOAT)\n \t\texpect(Token.Kind.FLOAT);\n \telse if(this.currentToken.kind == Token.Kind.TRUE)\n \t\texpect(Token.Kind.TRUE);\n \telse if(this.currentToken.kind == Token.Kind.FALSE)\n \t\texpect(Token.Kind.FALSE);\n \texitRule(NonTerminal.LITERAL);\n }", "title": "" }, { "docid": "e3bc1c8c17489047d1ccca0bc35572be", "score": "0.62462074", "text": "public interface MooplParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int INTEGER_LITERAL = 8;\n /** RegularExpression Id. */\n int LPAREN = 9;\n /** RegularExpression Id. */\n int RPAREN = 10;\n /** RegularExpression Id. */\n int NEW = 11;\n /** RegularExpression Id. */\n int OBJECT = 12;\n /** RegularExpression Id. */\n int SELF = 13;\n /** RegularExpression Id. */\n int PROC = 14;\n /** RegularExpression Id. */\n int FUN = 15;\n /** RegularExpression Id. */\n int ARRAYOF = 16;\n /** RegularExpression Id. */\n int INT = 17;\n /** RegularExpression Id. */\n int TRUE = 18;\n /** RegularExpression Id. */\n int FALSE = 19;\n /** RegularExpression Id. */\n int NOT = 20;\n /** RegularExpression Id. */\n int ISNULL = 21;\n /** RegularExpression Id. */\n int LSQBR = 22;\n /** RegularExpression Id. */\n int RSQBR = 23;\n /** RegularExpression Id. */\n int LBRACE = 24;\n /** RegularExpression Id. */\n int RBRACE = 25;\n /** RegularExpression Id. */\n int SEMICOLON = 26;\n /** RegularExpression Id. */\n int DOT = 27;\n /** RegularExpression Id. */\n int ASSIGN = 28;\n /** RegularExpression Id. */\n int AND = 29;\n /** RegularExpression Id. */\n int LT = 30;\n /** RegularExpression Id. */\n int EQUALS = 31;\n /** RegularExpression Id. */\n int DIV = 32;\n /** RegularExpression Id. */\n int PLUS = 33;\n /** RegularExpression Id. */\n int MINUS = 34;\n /** RegularExpression Id. */\n int MULT = 35;\n /** RegularExpression Id. */\n int COMMA = 36;\n /** RegularExpression Id. */\n int BOOLEAN = 37;\n /** RegularExpression Id. */\n int CLASS = 38;\n /** RegularExpression Id. */\n int ELSE = 39;\n /** RegularExpression Id. */\n int THEN = 40;\n /** RegularExpression Id. */\n int EXTENDS = 41;\n /** RegularExpression Id. */\n int IF = 42;\n /** RegularExpression Id. */\n int WHILE = 43;\n /** RegularExpression Id. */\n int DO = 44;\n /** RegularExpression Id. */\n int OUTPUT = 45;\n /** RegularExpression Id. */\n int LENGTH = 46;\n /** RegularExpression Id. */\n int RETURN = 47;\n /** RegularExpression Id. */\n int ID = 48;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"<INTEGER_LITERAL>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"new\\\"\",\n \"\\\"object\\\"\",\n \"\\\"self\\\"\",\n \"\\\"proc\\\"\",\n \"\\\"fun\\\"\",\n \"\\\"arrayof\\\"\",\n \"\\\"int\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"!\\\"\",\n \"\\\"isnull\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\";\\\"\",\n \"\\\".\\\"\",\n \"\\\"=\\\"\",\n \"\\\"and\\\"\",\n \"\\\"<\\\"\",\n \"\\\"==\\\"\",\n \"\\\"div\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\",\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"class\\\"\",\n \"\\\"else\\\"\",\n \"\\\"then\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"if\\\"\",\n \"\\\"while\\\"\",\n \"\\\"do\\\"\",\n \"\\\"output\\\"\",\n \"\\\"length\\\"\",\n \"\\\"return\\\"\",\n \"<ID>\",\n \"\\\":call\\\"\",\n \"\\\":eval\\\"\",\n \"\\\":quit\\\"\",\n };\n\n}", "title": "" }, { "docid": "0b27866c96ab4df1dac3ab6e2852ba1c", "score": "0.6213116", "text": "protected void Literal() throws javax.xml.transform.TransformerException\n {\n\n int last = m_token.length() - 1;\n char c0 = m_tokenChar;\n char cX = m_token.charAt(last);\n\n if (((c0 == '\\\"') && (cX == '\\\"')) || ((c0 == '\\'') && (cX == '\\'')))\n {\n\n // Mutate the token to remove the quotes and have the XString object\n // already made.\n int tokenQueuePos = m_queueMark - 1;\n\n m_ops.m_tokenQueue.setElementAt(null,tokenQueuePos);\n\n Object obj = new XString(m_token.substring(1, last));\n\n m_ops.m_tokenQueue.setElementAt(obj,tokenQueuePos);\n\n // lit = m_token.substring(1, last);\n m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH), tokenQueuePos);\n m_ops.setOp(OpMap.MAPINDEX_LENGTH, m_ops.getOp(OpMap.MAPINDEX_LENGTH) + 1);\n\n nextToken();\n }\n else\n {\n error(XPATHErrorResources.ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,\n new Object[]{ m_token }); //\"Pattern literal (\"+m_token+\") needs to be quoted!\");\n }\n }", "title": "" }, { "docid": "edacf736e03edbadecc26d9cfbea8385", "score": "0.6207625", "text": "private void addToken(TokenType type, Object literal) {\n\t\tString text = source.substring(start, current);\n\t\ttokens.add(new Token(type, text, literal, line));\n\t}", "title": "" }, { "docid": "ba632be2390b61c9dcb39be0dd8233b1", "score": "0.61877877", "text": "CSXCharLitToken(String val,int line,int col) {\n\t\tsuper(line,col);\n\t\tcharLitteralText = val;\n\t\tif(val.charAt(1)=='\\\\'){\n\t\t\tswitch(val.charAt(2)){\n\t\t\t\tcase 'n':\n\t\t\t\t\tcharValue = '\\n';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 't':\n\t\t\t\t\tcharValue = '\\t';\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\'':\n\t\t\t\t\tcharValue = '\\'';\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\\\':\n\t\t\t\t\tcharValue = '\\\\';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Error token char: \"+val);\n\t\t\t\t\tcharValue = '\\0'; // if there is a error token we get null\n\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tcharLitteralText = val.substring(0,2)+\"\\'\";\n\t\t\tcharValue=val.charAt(1);\n\t\t}\n\t}", "title": "" }, { "docid": "6cc4ee4c4928e61ff3ed0fc592982151", "score": "0.61764425", "text": "public LiteralTokenFactory() {\n // regular expression for an integer literal\n super(\"[0-9]*\\\\.?[0-9]+\");\n }", "title": "" }, { "docid": "f811356ee6fa973d4ecce2d04e39f5e2", "score": "0.61625326", "text": "public interface CDLParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int WHITESPACE = 1;\r\n /** RegularExpression Id. */\r\n int LINE_BREAK = 2;\r\n /** RegularExpression Id. */\r\n int SINGLE_LINE_COMMENT = 6;\r\n /** RegularExpression Id. */\r\n int MULTI_LINE_COMMENT = 7;\r\n /** RegularExpression Id. */\r\n int END = 9;\r\n /** RegularExpression Id. */\r\n int DIGITS = 10;\r\n /** RegularExpression Id. */\r\n int DIGIT = 11;\r\n /** RegularExpression Id. */\r\n int NONZERO_DIGIT = 12;\r\n /** RegularExpression Id. */\r\n int TEXT_LITERAL = 13;\r\n /** RegularExpression Id. */\r\n int INTEGER_LITERAL = 14;\r\n /** RegularExpression Id. */\r\n int DECIMAL_LITERAL = 15;\r\n /** RegularExpression Id. */\r\n int EXPONENTIAL = 16;\r\n /** RegularExpression Id. */\r\n int BOOLEAN_LITERAL = 17;\r\n /** RegularExpression Id. */\r\n int PLUS = 18;\r\n /** RegularExpression Id. */\r\n int MINUS = 19;\r\n /** RegularExpression Id. */\r\n int MULTIPLY = 20;\r\n /** RegularExpression Id. */\r\n int DIVIDE = 21;\r\n /** RegularExpression Id. */\r\n int ZDIV = 22;\r\n /** RegularExpression Id. */\r\n int MOD = 23;\r\n /** RegularExpression Id. */\r\n int EXP = 24;\r\n /** RegularExpression Id. */\r\n int EQUALS = 25;\r\n /** RegularExpression Id. */\r\n int NOT_EQUALS = 26;\r\n /** RegularExpression Id. */\r\n int GT = 27;\r\n /** RegularExpression Id. */\r\n int GE = 28;\r\n /** RegularExpression Id. */\r\n int LT = 29;\r\n /** RegularExpression Id. */\r\n int LE = 30;\r\n /** RegularExpression Id. */\r\n int NOT = 31;\r\n /** RegularExpression Id. */\r\n int NOTTRUE = 32;\r\n /** RegularExpression Id. */\r\n int AND = 33;\r\n /** RegularExpression Id. */\r\n int OR = 34;\r\n /** RegularExpression Id. */\r\n int LIKE = 35;\r\n /** RegularExpression Id. */\r\n int SUBSETOF = 36;\r\n /** RegularExpression Id. */\r\n int CONSTRAIN = 37;\r\n /** RegularExpression Id. */\r\n int ADD = 38;\r\n /** RegularExpression Id. */\r\n int SUBTRACT = 39;\r\n /** RegularExpression Id. */\r\n int CONTRIBUTE = 40;\r\n /** RegularExpression Id. */\r\n int COMPATIBLE = 41;\r\n /** RegularExpression Id. */\r\n int CALL = 42;\r\n /** RegularExpression Id. */\r\n int OF = 43;\r\n /** RegularExpression Id. */\r\n int FORALL = 44;\r\n /** RegularExpression Id. */\r\n int IN = 45;\r\n /** RegularExpression Id. */\r\n int WHERE = 46;\r\n /** RegularExpression Id. */\r\n int COLLECT = 47;\r\n /** RegularExpression Id. */\r\n int DISTINCT = 48;\r\n /** RegularExpression Id. */\r\n int WHEN = 49;\r\n /** RegularExpression Id. */\r\n int WITH = 50;\r\n /** RegularExpression Id. */\r\n int TO = 51;\r\n /** RegularExpression Id. */\r\n int FROM = 52;\r\n /** RegularExpression Id. */\r\n int REQUIRES = 53;\r\n /** RegularExpression Id. */\r\n int IMPLIES = 54;\r\n /** RegularExpression Id. */\r\n int EXCLUDES = 55;\r\n /** RegularExpression Id. */\r\n int NEGATES = 56;\r\n /** RegularExpression Id. */\r\n int DEFAULTS = 57;\r\n /** RegularExpression Id. */\r\n int FUNC_PTR = 58;\r\n /** RegularExpression Id. */\r\n int DOT = 59;\r\n /** RegularExpression Id. */\r\n int COMMA = 60;\r\n /** RegularExpression Id. */\r\n int SEMICOLON = 61;\r\n /** RegularExpression Id. */\r\n int LPAREN = 62;\r\n /** RegularExpression Id. */\r\n int RPAREN = 63;\r\n /** RegularExpression Id. */\r\n int LBRACKET = 64;\r\n /** RegularExpression Id. */\r\n int RBRACKET = 65;\r\n /** RegularExpression Id. */\r\n int USER_PROP_IDENTIFIER = 66;\r\n /** RegularExpression Id. */\r\n int SYSTEM_PARAMETER = 67;\r\n /** RegularExpression Id. */\r\n int EVENT_PARAMETER = 68;\r\n /** RegularExpression Id. */\r\n int SIMPLE_IDENTIFIER = 69;\r\n /** RegularExpression Id. */\r\n int FORMAL_IDENTIFIER = 70;\r\n /** RegularExpression Id. */\r\n int QUOTED_IDENTIFIER = 71;\r\n /** RegularExpression Id. */\r\n int LETTER = 72;\r\n /** RegularExpression Id. */\r\n int LETTER_OR_DIGIT = 73;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n /** Lexical state. */\r\n int IN_SINGLE_LINE_COMMENT = 1;\r\n /** Lexical state. */\r\n int IN_MULTI_LINE_COMMENT = 2;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"<WHITESPACE>\",\r\n \"<LINE_BREAK>\",\r\n \"\\\"//\\\"\",\r\n \"\\\"--\\\"\",\r\n \"\\\"/*\\\"\",\r\n \"<SINGLE_LINE_COMMENT>\",\r\n \"\\\"*/\\\"\",\r\n \"<token of kind 8>\",\r\n \"\\\"\\\\\\\\0\\\"\",\r\n \"<DIGITS>\",\r\n \"<DIGIT>\",\r\n \"<NONZERO_DIGIT>\",\r\n \"<TEXT_LITERAL>\",\r\n \"<INTEGER_LITERAL>\",\r\n \"<DECIMAL_LITERAL>\",\r\n \"<EXPONENTIAL>\",\r\n \"<BOOLEAN_LITERAL>\",\r\n \"\\\"+\\\"\",\r\n \"\\\"-\\\"\",\r\n \"\\\"*\\\"\",\r\n \"\\\"/\\\"\",\r\n \"\\\"ZDIV\\\"\",\r\n \"\\\"%\\\"\",\r\n \"\\\"^\\\"\",\r\n \"\\\"=\\\"\",\r\n \"\\\"<>\\\"\",\r\n \"\\\">\\\"\",\r\n \"\\\">=\\\"\",\r\n \"\\\"<\\\"\",\r\n \"\\\"<=\\\"\",\r\n \"\\\"NOT\\\"\",\r\n \"\\\"NOTTRUE\\\"\",\r\n \"\\\"AND\\\"\",\r\n \"\\\"OR\\\"\",\r\n \"\\\"LIKE\\\"\",\r\n \"\\\"SUBSETOF\\\"\",\r\n \"\\\"CONSTRAIN\\\"\",\r\n \"\\\"ADD\\\"\",\r\n \"\\\"SUBTRACT\\\"\",\r\n \"\\\"CONTRIBUTE\\\"\",\r\n \"\\\"COMPATIBLE\\\"\",\r\n \"\\\"CALL\\\"\",\r\n \"\\\"OF\\\"\",\r\n \"\\\"FOR ALL\\\"\",\r\n \"\\\"IN\\\"\",\r\n \"\\\"WHERE\\\"\",\r\n \"\\\"COLLECT\\\"\",\r\n \"\\\"DISTINCT\\\"\",\r\n \"\\\"WHEN\\\"\",\r\n \"\\\"WITH\\\"\",\r\n \"\\\"TO\\\"\",\r\n \"\\\"FROM\\\"\",\r\n \"\\\"REQUIRES\\\"\",\r\n \"\\\"IMPLIES\\\"\",\r\n \"\\\"EXCLUDES\\\"\",\r\n \"\\\"NEGATES\\\"\",\r\n \"\\\"DEFAULTS\\\"\",\r\n \"\\\"@\\\"\",\r\n \"\\\".\\\"\",\r\n \"\\\",\\\"\",\r\n \"\\\";\\\"\",\r\n \"\\\"(\\\"\",\r\n \"\\\")\\\"\",\r\n \"\\\"{\\\"\",\r\n \"\\\"}\\\"\",\r\n \"\\\"property\\\"\",\r\n \"\\\"SYSTEM_PARAMETER\\\"\",\r\n \"\\\"EVENT_PARAMETER\\\"\",\r\n \"<SIMPLE_IDENTIFIER>\",\r\n \"<FORMAL_IDENTIFIER>\",\r\n \"<QUOTED_IDENTIFIER>\",\r\n \"<LETTER>\",\r\n \"<LETTER_OR_DIGIT>\",\r\n \"\\\":\\\"\",\r\n };\r\n\r\n}", "title": "" }, { "docid": "f38661b4ae871714977ea75cce14ea5d", "score": "0.61511695", "text": "public interface parserConfiguracionConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int ESPACIO = 1;\n /** RegularExpression Id. */\n int titulo_formulario = 2;\n /** RegularExpression Id. */\n int idform = 3;\n /** RegularExpression Id. */\n int estilo = 4;\n /** RegularExpression Id. */\n int importar = 5;\n /** RegularExpression Id. */\n int codigo_principal = 6;\n /** RegularExpression Id. */\n int codigo_global = 7;\n /** RegularExpression Id. */\n int pagina = 8;\n /** RegularExpression Id. */\n int archivo = 9;\n /** RegularExpression Id. */\n int todo = 10;\n /** RegularExpression Id. */\n int cuadricula = 11;\n /** RegularExpression Id. */\n int id = 12;\n /** RegularExpression Id. */\n int codigo = 13;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int ID = 1;\n /** Lexical state. */\n int CODE = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<ESPACIO>\",\n \"\\\"titulo_formulario\\\"\",\n \"\\\"idform\\\"\",\n \"\\\"estilo\\\"\",\n \"\\\"importar\\\"\",\n \"\\\"codigo_principal\\\"\",\n \"\\\"codigo_global\\\"\",\n \"\\\"pagina\\\"\",\n \"<archivo>\",\n \"\\\"todo\\\"\",\n \"\\\"cuadricula\\\"\",\n \"<id>\",\n \"<codigo>\",\n };\n\n}", "title": "" }, { "docid": "e239f26d81b099efa988626643fcdd29", "score": "0.6083988", "text": "public LiteralNode() {\n super();\n }", "title": "" }, { "docid": "cad66f308ebe0f0cbb4f5032c02f4c78", "score": "0.6072953", "text": "public int nextToken()\r\n/* 86: */ {\r\n/* 87:120 */ if (this.dataIndex < this.dataLength)\r\n/* 88: */ {\r\n/* 89:123 */ while ((this.dataIndex < this.dataLength) && (isWhiteSpaceChar(this.data.charAt(this.dataIndex)))) {\r\n/* 90:125 */ this.dataIndex += 1;\r\n/* 91: */ }\r\n/* 92:128 */ if (this.dataIndex < this.dataLength)\r\n/* 93: */ {\r\n/* 94:131 */ char c = this.data.charAt(this.dataIndex);\r\n/* 95:132 */ if (this.isAutoquoting)\r\n/* 96: */ {\r\n/* 97:134 */ if (!isAutoquoteSpecialChar(c))\r\n/* 98: */ {\r\n/* 99:136 */ processAutoquoteToken();\r\n/* 100: */ }\r\n/* 101:138 */ else if ((c == ';') || (c == '='))\r\n/* 102: */ {\r\n/* 103:140 */ this.currentToken = c;\r\n/* 104:141 */ this.currentTokenValue = new Character(c).toString();\r\n/* 105:142 */ this.dataIndex += 1;\r\n/* 106: */ }\r\n/* 107: */ else\r\n/* 108: */ {\r\n/* 109:146 */ this.currentToken = 0;\r\n/* 110:147 */ this.currentTokenValue = new Character(c).toString();\r\n/* 111:148 */ this.dataIndex += 1;\r\n/* 112: */ }\r\n/* 113: */ }\r\n/* 114:153 */ else if (isStringTokenChar(c))\r\n/* 115: */ {\r\n/* 116:155 */ processStringToken();\r\n/* 117: */ }\r\n/* 118:157 */ else if ((c == '/') || (c == ';') || (c == '='))\r\n/* 119: */ {\r\n/* 120:159 */ this.currentToken = c;\r\n/* 121:160 */ this.currentTokenValue = new Character(c).toString();\r\n/* 122:161 */ this.dataIndex += 1;\r\n/* 123: */ }\r\n/* 124: */ else\r\n/* 125: */ {\r\n/* 126:165 */ this.currentToken = 0;\r\n/* 127:166 */ this.currentTokenValue = new Character(c).toString();\r\n/* 128:167 */ this.dataIndex += 1;\r\n/* 129: */ }\r\n/* 130: */ }\r\n/* 131: */ else\r\n/* 132: */ {\r\n/* 133:173 */ this.currentToken = 5;\r\n/* 134:174 */ this.currentTokenValue = null;\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ else\r\n/* 138: */ {\r\n/* 139:179 */ this.currentToken = 5;\r\n/* 140:180 */ this.currentTokenValue = null;\r\n/* 141: */ }\r\n/* 142:183 */ return this.currentToken;\r\n/* 143: */ }", "title": "" }, { "docid": "da1c7b6a605b0d474d2eb6910cb33fa8", "score": "0.6067125", "text": "private void enumerationTypeDefinition(){\n accept(Token.L_PAR, \"'(' expected\");\n SymbolEntry list = identifierList();\n list.setRole(SymbolEntry.CONST);\n accept(Token.R_PAR, \"')' expected\");\n }", "title": "" }, { "docid": "eb004d9d5840b1dc8f58916f07f13da3", "score": "0.6053698", "text": "private SimpleStmtKeywordEnum(int value, String name, String literal)\n {\n this.value = value;\n this.name = name;\n this.literal = literal;\n }", "title": "" }, { "docid": "6b4c231734bbb61c9d3713cca7698624", "score": "0.6008775", "text": "public interface CUPToken {\n /* terminals */\n public static final int DIVIDE = 10;\n public static final int LBRACKET = 19;\n public static final int KW_PROCEDURE = 28;\n public static final int EQUALS = 11;\n public static final int KW_REF = 30;\n public static final int KW_DO = 24;\n public static final int LPAREN = 2;\n public static final int GREATER = 16;\n public static final int KW_CONST = 23;\n public static final int LESS = 15;\n public static final int MINUS = 8;\n public static final int RPAREN = 3;\n public static final int SEMICOLON = 4;\n public static final int GEQUALS = 14;\n public static final int RANGE = 17;\n public static final int LEQUALS = 13;\n public static final int NEQUALS = 12;\n public static final int COMMA = 18;\n public static final int KW_WRITE = 35;\n public static final int PLUS = 7;\n public static final int ASSIGN = 6;\n public static final int KW_TYPE = 32;\n public static final int KW_CALL = 22;\n public static final int EOF = 0;\n public static final int RBRACKET = 20;\n public static final int KW_BEGIN = 21;\n public static final int error = 1;\n public static final int NUMBER = 38;\n public static final int KW_IF = 27;\n public static final int TIMES = 9;\n public static final int COLON = 5;\n public static final int ILLEGAL = 36;\n public static final int KW_END = 26;\n public static final int KW_ELSE = 25;\n public static final int KW_READ = 29;\n public static final int KW_VAR = 33;\n public static final int KW_WHILE = 34;\n public static final int KW_THEN = 31;\n public static final int IDENTIFIER = 37;\n}", "title": "" }, { "docid": "eb42041f7c9ed0a1c544282926721856", "score": "0.599899", "text": "private ParseNode parseLiteral() {\r\n\t\tif(!startsLiteral(nowReading)) {\r\n\t\t\treturn syntaxErrorNode(\"literal\");\r\n\t\t}\r\n\t\t\r\n\t\tif(startsIntNumber(nowReading)) {\r\n\t\t\treturn parseIntNumber();\r\n\t\t}\r\n\t\tif(startsFloatingNumber(nowReading)) {\r\n\t\t\treturn parseFloatingNumber();\r\n\t\t}\r\n\t\tif(startsIdentifier(nowReading)) {\r\n\t\t\tParseNode result = parseIdentifier();\r\n\t\t\tif(nowReading.isLextant(Punctuator.OPEN_PARENTHESIS)) {\r\n\t\t\t\tToken functionInvocationToken = previouslyRead;\r\n\t\t\t\tToken exprListToken = nowReading;\r\n\t\t\t\treadToken();\r\n\t\t\t\tParseNode exprList = parseExpressionList(new ExpressionListNode(exprListToken));\r\n\t\t\t\texpect(Punctuator.CLOSE_PARENTHESIS);\r\n\t\t\t\tresult = FunctionInvocationNode.withChildren(functionInvocationToken, result, exprList);\r\n\t\t\t}\t\t\t\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\tif(startsBooleanConstant(nowReading)) {\r\n\t\t\treturn parseBooleanConstant();\r\n\t\t}\r\n\t\tif(startsCharacterConstant(nowReading)) {\r\n\t\t\treturn parseCharacterConstant();\r\n\t\t}\r\n\t\tif(startsStringConstant(nowReading)) {\r\n\t\t\treturn parseStringConstant();\r\n\t\t}\r\n\t\tassert false : \"bad token \" + nowReading + \" in parseLiteral()\";\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ae3008886bbac40683c2bf77159ff717", "score": "0.597456", "text": "public interface HOPE3Constants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PRINT = 13;\n /** RegularExpression Id. */\n int INT = 14;\n /** RegularExpression Id. */\n int STRING = 15;\n /** RegularExpression Id. */\n int BOOL = 16;\n /** RegularExpression Id. */\n int TRUE = 17;\n /** RegularExpression Id. */\n int FALSE = 18;\n /** RegularExpression Id. */\n int LBR = 19;\n /** RegularExpression Id. */\n int RBR = 20;\n /** RegularExpression Id. */\n int SEMIC = 21;\n /** RegularExpression Id. */\n int PLUS_SIGN = 22;\n /** RegularExpression Id. */\n int MINUS_SIGN = 23;\n /** RegularExpression Id. */\n int MUL_SIGN = 24;\n /** RegularExpression Id. */\n int DIV_SIGN = 25;\n /** RegularExpression Id. */\n int EQUALS = 26;\n /** RegularExpression Id. */\n int OR = 27;\n /** RegularExpression Id. */\n int AND = 28;\n /** RegularExpression Id. */\n int QUOTE = 29;\n /** RegularExpression Id. */\n int NUM = 30;\n /** RegularExpression Id. */\n int INTEGER_LITERAL = 31;\n /** RegularExpression Id. */\n int ID = 32;\n /** RegularExpression Id. */\n int STRING_LITERAL = 33;\n /** RegularExpression Id. */\n int LETTER = 34;\n /** RegularExpression Id. */\n int OTHER = 35;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_COMMENT = 1;\n /** Lexical state. */\n int IN_SINGLE_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"/*\\\"\",\n \"\\\"//\\\"\",\n \"\\\"/*\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"<token of kind 11>\",\n \"<token of kind 12>\",\n \"\\\"print\\\"\",\n \"\\\"int\\\"\",\n \"\\\"string\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\";\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"=\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"<NUM>\",\n \"<INTEGER_LITERAL>\",\n \"<ID>\",\n \"<STRING_LITERAL>\",\n \"<LETTER>\",\n \"<OTHER>\",\n };\n\n}", "title": "" }, { "docid": "b9fa1a5a03d158f336e538542df7234e", "score": "0.5972069", "text": "private ParseNode parseCharacterConstant() {\r\n\t\tif(!startsCharacterConstant(nowReading)) {\r\n\t\t\treturn syntaxErrorNode(\"character constant\");\r\n\t\t}\r\n\t\treadToken();\r\n\t\treturn new CharacterConstantNode(previouslyRead);\r\n\t}", "title": "" }, { "docid": "815186552084a6c37face7f4876fa086", "score": "0.5971164", "text": "RealLiteralExpCS createRealLiteralExpCS();", "title": "" }, { "docid": "3e43efc935d8aaf216443b7f668201cb", "score": "0.5967139", "text": "static public interface Token {\n\tpublic void print(Lang.AstProperties props);\n\tpublic void print();\n\tpublic void reduce2java(Lang.AstProperties props);\n\tpublic Object clone();\n\tpublic String tokenName();\n\tpublic boolean Equ(Lang.Token x);\n\tpublic void printWhitespaceOnly(Lang.AstProperties props);\n }", "title": "" }, { "docid": "03f24051e7d22ac29505cc0a1b8c59df", "score": "0.5958781", "text": "public Symbol next_token() throws java.lang.Exception;", "title": "" }, { "docid": "3e8f385a41c2573dfddb7e938a1642c2", "score": "0.59356666", "text": "protected Token eatCharacterLiteral()\n throws CompilerException, IOException\n {\n int iLine = m_script.getLine();\n int ofInLine = m_script.getOffset();\n\n // skip opening single quote\n m_script.nextChar();\n\n char ch = m_script.nextChar();\n switch (ch)\n {\n case '\\\\':\n m_script.putBackChar();\n ch = eatEscapedCharacter();\n break;\n\n case '\\r':\n case '\\n':\n // an unexpected end-of-line was found; don't try to complete\n // parsing of the character literal\n m_script.putBackChar();\n logError(ERROR, ERR_NEWLINE_IN_LIT, null,\n iLine, m_script.getOffset(), 0);\n return new LiteralToken(' ', iLine, ofInLine, m_script.getOffset() - ofInLine);\n\n case '\\'':\n // get the exact offset of the single quote\n m_script.putBackChar();\n int ofSQuote = m_script.getOffset();\n m_script.nextChar();\n // log the error, highlighting the unescaped single quote\n logError(ERROR, ERR_UNESC_S_QUOTE, null, iLine, ofSQuote, m_script.getOffset() - ofSQuote);\n }\n\n // closing single quote\n if (m_script.nextChar() != '\\'')\n {\n m_script.putBackChar();\n logError(ERROR, ERR_S_QUOTE_EXP, null, iLine, m_script.getOffset(), 0);\n }\n\n return new LiteralToken(ch, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }", "title": "" }, { "docid": "dbe94e9da38a9256387d2cc5843b05f0", "score": "0.5907368", "text": "protected Token eatStringLiteral()\n throws CompilerException, IOException\n {\n int iLine = m_script.getLine();\n int ofInLine = m_script.getOffset();\n\n // skip opening double quote\n char chQuote = m_script.nextChar();\n\n StringBuffer sb = new StringBuffer();\n char ch = m_script.nextChar();\n while (ch != chQuote)\n {\n if (ch == '\\\\')\n {\n m_script.putBackChar();\n ch = eatEscapedCharacter();\n }\n else if (ch == '\\r' || ch == '\\n')\n {\n m_script.putBackChar();\n logError(ERROR, ERR_NEWLINE_IN_LIT, null, iLine, m_script.getOffset(), 0);\n break;\n }\n\n sb.append(ch);\n ch = m_script.nextChar();\n }\n\n String s = sb.toString();\n if (chQuote == '`')\n {\n s = HashHelper.hash(s);\n }\n return new LiteralToken(s, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }", "title": "" }, { "docid": "e0548102a1dc66d0a06b288b9956d835", "score": "0.5906097", "text": "private void compileTerm() {\n\n switch (tokenizer.tokenType()) {\n case TOKEN_INT_CONST:\n codeWriter.writePush(Segment.CONST,tokenizer.intVal());\n advance();\n break;\n case TOKEN_STRING_CONST:\n int stringLength = tokenizer.stringVal().length();\n codeWriter.writePush(Segment.CONST,stringLength);\n codeWriter.writeCall(\"String.new\",1);\n for(int i=0;i<stringLength;i++) {\n codeWriter.writePush(Segment.CONST,(int) tokenizer.stringVal().charAt(i));\n codeWriter.writeCall(\"String.appendChar\",2);\n }\n advance();\n break;\n case TOKEN_KEYWORD:\n switch (tokenizer.keyword()) {\n case TRUE:\n codeWriter.writePush(Segment.CONST,1);\n codeWriter.writeArithmetic(ArithmeticCommand.NEG);\n break;\n case FALSE:\n codeWriter.writePush(Segment.CONST,0);\n break;\n case NULL:\n codeWriter.writePush(Segment.CONST,0);\n case THIS:\n codeWriter.writePush(Segment.POINTER,0);\n break;\n default:\n System.out.println(\"Error: In file \" + tokenizer.fileName()\n + \" line \" + tokenizer.lineNumber()\n + \" Expected one of: 'true' 'false' 'null' 'this'\");\n break;\n }\n advance();\n break;\n case TOKEN_SYMBOL:\n switch (tokenizer.symbol()) {\n case '(':\n advance();\n compileExpression();\n checkToken(TokenType.TOKEN_SYMBOL);\n checkSymbol(')');\n advance();\n break;\n case '-':\n case '~':\n char unaryOp = tokenizer.symbol();\n advance();\n compileTerm();\n codeWriter.writeArithmetic(ArithmeticCommand.getCommandFromUnaryOp(unaryOp));\n break;\n default:\n System.out.println(\"Error: In file \" + tokenizer.fileName()\n + \" line \" + tokenizer.lineNumber()\n + \" Unexpected Symbol \" + tokenizer.symbol());\n break;\n }\n break;\n case TOKEN_IDENTIFIER:\n int numArgs;\n String symbolName1 = tokenizer.identifier();\n String subroutineName;\n SymbolKind symbolKind1;\n advance();\n // looks like this if loop would always be executed\n // an identifier always seems to be followed by a symbol\n if (tokenizer.tokenType() == TokenType.TOKEN_SYMBOL) {\n switch (tokenizer.symbol()) {\n case '[':\n advance();\n compileExpression();\n checkToken(TokenType.TOKEN_SYMBOL);\n checkSymbol(']');\n symbolKind1 = symbolTable.kindOf(symbolName1);\n int index = symbolTable.indexOf(symbolName1);\n codeWriter.writePush(SymbolKind.getSegment(symbolKind1),index);\n codeWriter.writeArithmetic(ArithmeticCommand.ADD);\n codeWriter.writePop(Segment.POINTER,1);\n codeWriter.writePush(Segment.THAT,0);\n advance();\n break;\n case '(':\n advance();\n codeWriter.writePush(Segment.POINTER,0);\n numArgs = compileExpressionList();\n checkToken(TokenType.TOKEN_SYMBOL);\n checkSymbol(')');\n codeWriter.writeCall(className+\".\"+symbolName1,numArgs+1);\n advance();\n break;\n case '.':\n advance();\n checkToken(TokenType.TOKEN_IDENTIFIER);\n String symbolName2 = tokenizer.identifier();\n advance();\n checkToken(TokenType.TOKEN_SYMBOL);\n checkSymbol('(');\n advance();\n symbolKind1 = symbolTable.kindOf(symbolName1);\n boolean isMethodCall = (symbolKind1 != SymbolKind.NONE);\n if (isMethodCall) {\n // the subroutine is a method, hence an\n // extra argument needs to be passed\n Segment memorySegment = SymbolKind.getSegment(symbolKind1);\n codeWriter.writePush(memorySegment,symbolTable.indexOf(symbolName1));\n }\n // pushes the arguments to the stack\n numArgs = compileExpressionList();\n checkToken(TokenType.TOKEN_SYMBOL);\n checkSymbol(')');\n if (isMethodCall) {\n subroutineName = symbolTable.typeOf(symbolName1)+\".\"+symbolName2;\n codeWriter.writeCall(subroutineName,numArgs+1);\n }\n else {\n subroutineName = symbolName1+\".\"+symbolName2;\n codeWriter.writeCall(subroutineName,numArgs);\n }\n advance();\n break;\n default:\n symbolKind1 = symbolTable.kindOf(symbolName1);\n index = symbolTable.indexOf(symbolName1);\n codeWriter.writePush(SymbolKind.getSegment(symbolKind1),index);\n break;\n }\n }\n break;\n }\n }", "title": "" }, { "docid": "2c161c2373ff68146b5a3dda7e071fb0", "score": "0.5885998", "text": "public interface BooleanQueryParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int COMMA = 5;\n /** RegularExpression Id. */\n int COLON = 6;\n /** RegularExpression Id. */\n int DOT = 7;\n /** RegularExpression Id. */\n int OPEN_BRACKET = 8;\n /** RegularExpression Id. */\n int CLOSE_BRACKET = 9;\n /** RegularExpression Id. */\n int EXPRESSION = 10;\n /** RegularExpression Id. */\n int POSITION = 11;\n /** RegularExpression Id. */\n int TYPE = 12;\n /** RegularExpression Id. */\n int STAGE = 13;\n /** RegularExpression Id. */\n int PATTERN = 14;\n /** RegularExpression Id. */\n int LOCATION = 15;\n /** RegularExpression Id. */\n int OPERATOR = 16;\n /** RegularExpression Id. */\n int ORGAN = 18;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int OrganString = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\r\\\\n\\\"\",\n \"\\\",\\\"\",\n \"\\\":\\\"\",\n \"\\\".\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"<EXPRESSION>\",\n \"<POSITION>\",\n \"<TYPE>\",\n \"<STAGE>\",\n \"<PATTERN>\",\n \"<LOCATION>\",\n \"<OPERATOR>\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"<token of kind 19>\",\n };\n\n}", "title": "" }, { "docid": "9777aaee06bc6a1453383d27df704dbe", "score": "0.58830994", "text": "InvalidLiteralExpCS createInvalidLiteralExpCS();", "title": "" }, { "docid": "568066007b2e698d45f7fdcca0f8f8a5", "score": "0.58827007", "text": "public int nextToken () throws IOException\n { /* --- get next token */\n int c, ccl; /* character and character class */\n int quote = 0; /* quote at the start of a string */\n int ec = 0; /* escaped character */\n int state = 0; /* state of automaton */\n int level = 0; /* comment nesting level */\n\n if (this.pbtok) { /* check for a pushed back token */\n this.pbtok = false; return this.ttype; }\n\n this.buf.setLength(0); /* clear the token buffer */\n while (true) { /* read loop */\n c = this.getc(); /* get character and character class */\n ccl = (c < 0) ? -1 : ccltab[c];\n\n switch (state) { /* evaluate state of automaton */\n\n case S_SPACE: /* --- skip white space */\n switch (ccl) { /* evaluate character category */\n case C_SPACE : if ((c == '\\n') && this.nltok) {\n this.buf.append((char)c);\n this.value = this.buf.toString();\n return this.ttype = c;\n } /* if newline is a token, return it, */\n break; /* otherwise do nothing */\n case C_LETTER: this.buf.append((char)c);\n state = S_ID; break;\n case C_DIGIT : this.buf.append((char)c);\n state = S_NUMDIG; break;\n case C_POINT : this.buf.append((char)c);\n state = S_NUMPT; break;\n case C_SIGN : this.buf.append((char)c);\n state = S_SIGN; break;\n case C_CMPOP : this.buf.append((char)c);\n state = S_CMPOP; break;\n case C_QUOTE : quote = c;\n state = S_STRING; break;\n case C_SLASH : state = S_SLASH; break;\n case C_ACTIVE: this.buf.append((char)c);\n this.value = this.buf.toString();\n return this.ttype = c;\n case -1 : this.value = \"<eof>\";\n return this.ttype = T_EOF;\n default : this.buf.append((char)c);\n this.value = this.buf.toString();\n throw this.illegalChar(c);\n } break;\n\n case S_ID: /* --- identifier (letter read) */\n if ((ccl == C_LETTER) /* if another letter */\n || (ccl == C_DIGIT) /* or a digit */\n || (ccl == C_POINT) /* or a decimal point */\n || (ccl == C_SIGN)){ /* or a sign follows */\n this.buf.append((char)c);\n break; } /* buffer character */\n this.ungetc(c); /* put back last character */\n this.value = this.buf.toString();\n return this.ttype = T_ID; /* return 'identifier' */\n\n case S_NUMDIG: /* --- number (digit read) */\n this.buf.append((char)c); /* buffer character */\n if (ccl == C_DIGIT) /* if another digit follows, */\n break; /* do nothing */\n if (ccl == C_POINT){ /* if a decimal point follows, */\n state = S_FRAC; break; } /* go to 'fraction' state */\n if ((c == 'e') /* if an exponent indicator follows */\n || (c == 'E')) { /* (lower- or uppercase), */\n state = S_EXPIND; break; } /* go to 'exponent' state */\n if ((ccl == C_LETTER) /* if a letter */\n || (ccl == C_SIGN)){ /* or a sign follows, */\n state = S_ID; break; } /* go to 'identifier' state */\n this.ungetc(c); /* put back last character */\n this.value = this.buf.substring(0, this.buf.length()-1);\n return this.ttype = T_NUM; /* return 'number' */\n\n case S_NUMPT: /* --- number (point read) */\n this.buf.append((char)c); /* buffer character */\n if (ccl == C_DIGIT) { /* if a digit follows, */\n state = S_FRAC; break; } /* go to 'fraction' state */\n if ((ccl == C_LETTER) /* if a letter */\n || (ccl == C_POINT) /* or a decimal point */\n || (ccl == C_SIGN)){ /* or a sign follows */\n state = S_ID; break; } /* go to 'identifier' state */\n this.ungetc(c); /* put back last character, */\n this.value = this.buf.substring(0, this.buf.length()-1);\n return this.ttype = T_ID; /* return 'identifier' */\n\n case S_FRAC: /* --- number (digit & point read) */\n this.buf.append((char)c); /* buffer character */\n if (ccl == C_DIGIT) /* if another digit follows, */\n break; /* do nothing else */\n if ((c == 'e') /* if an exponent indicator follows, */\n || (c == 'E')) { /* (lower- or uppercase), */\n state = S_EXPIND; break; } /* go to exponent state */\n if ((ccl == C_LETTER) /* if a letter */\n || (ccl == C_POINT) /* or a decimal point */\n || (ccl == C_SIGN)){ /* or a sign follows, */\n state = S_ID; break; } /* go to 'identifier' state */\n this.ungetc(c); /* put back last character, */\n this.value = this.buf.substring(0, this.buf.length()-1);\n return this.ttype = T_NUM; /* return 'number' */\n\n case S_EXPIND: /* --- exponent (indicator read) */\n this.buf.append((char)c); /* buffer character */\n if (ccl == C_SIGN) { /* if a sign follows, */\n state = S_EXPSGN; break; } /* go to 2nd 'exponent' state */\n if (ccl == C_DIGIT) { /* if a digit follows, */\n state = S_EXPDIG; break; } /* go to 3rd 'exponent' state */\n if ((ccl == C_LETTER) /* if a letter */\n || (ccl == C_POINT)){/* or a decimal point follows */\n state = S_ID; break; } /* go to 'identifier' state */\n this.ungetc(c); /* put back last character, */\n this.value = this.buf.substring(0, this.buf.length()-1);\n return this.ttype = T_ID; /* return 'identifier' */\n\n case S_EXPSGN: /* --- exponent (sign read) */\n this.buf.append((char)c); /* buffer character */\n if (ccl == C_DIGIT) { /* if a digit follows, */\n state = S_EXPDIG; break; } /* do nothing else */\n if ((ccl == C_LETTER) /* if a letter */\n || (ccl == C_POINT) /* or a decimal point */\n || (ccl == C_SIGN)){ /* or a sign follows */\n state = S_ID; break; } /* go to 'identifier' state */\n this.ungetc(c); /* put back last character, */\n this.value = this.buf.substring(0, this.buf.length()-1);\n return this.ttype = T_ID; /* return 'identifier' */\n\n case S_EXPDIG: /* --- exponent (digit read) */\n this.buf.append((char)c); /* buffer character */\n if (ccl == C_DIGIT) /* if another digit follows, */\n break; /* do nothing else */\n if ((ccl == C_LETTER) /* if a letter */\n || (ccl == C_POINT) /* or a decimal point */\n || (ccl == C_SIGN)){ /* or a sign follows, */\n state = S_ID; break;/* go to 'identifier' state */\n } /* otherwise */\n this.ungetc(c); /* put back last character */\n this.value = this.buf.substring(0, this.buf.length()-1);\n return this.ttype = T_NUM; /* return 'number' */\n\n case S_SIGN: /* --- number (sign read) */\n this.buf.append((char)c); /* buffer character */\n if (ccl == C_DIGIT) { /* if a digit follows, */\n state = S_NUMDIG; break; } /* go to 'number' state */\n if (ccl == C_POINT) { /* if a decimal point follows, */\n state = S_NUMPT; break; } /* go to fraction state */\n if ((c == '-') /* if a '-' follows and previous */\n && (this.buf.charAt(0) == '-')) {/* character was '-' */\n this.value = this.buf.toString();\n return this.ttype = T_DASH;\n } /* token is '--' */\n if ((c == '>') /* if a '>' follows and previous */\n && (this.buf.charAt(0) == '-')) {/* character was '-' */\n this.value = this.buf.toString();\n return this.ttype = T_RGT;\n } /* token is '->' */\n if ((ccl == C_LETTER) /* if a letter */\n || (ccl == C_SIGN)) { /* or a sign follows, */\n state = S_ID; break; } /* go to 'identifier' state */\n this.ungetc(c); /* put back last character, */\n this.value = this.buf.substring(0, this.buf.length()-1);\n return this.ttype = T_ID; /* return 'identifier' */\n\n case S_CMPOP: /* --- comparison operator read */\n if ((c == '-') /* if minus sign follows and prev. */\n && (this.buf.charAt(0) == '<')) { /* character was '<' */\n this.buf.append('-'); this.ttype = T_LFT; }\n else if (c == '=') { /* if an equal sign follows */\n this.buf.append('='); this.ttype = T_CMP; }\n else { /* if anything else follows */\n this.ungetc(c); this.ttype = this.buf.charAt(0); }\n this.value = this.buf.toString();\n return this.ttype; /* return the token read */\n\n case S_STRING: /* --- quoted string */\n if ((c == '\\n') /* if at end of line */\n || (c < 0)) /* or at end of file */\n throw this.unterminated(false);\n if (c != quote) { /* if not at end of string */\n if (c == '\\\\') { /* if an escaped character follows, */\n state = S_ESC; break; } /* go to escaped char state */\n this.buf.append((char)c); break;\n } /* otherwise buffer character */\n this.value = this.buf.toString();\n return this.ttype = T_ID; /* return 'identifier' */\n\n case S_ESC: /* --- after '\\' in quoted string */\n if ((c >= '0') /* if an octal digit follows, */\n && (c <= '7')) { /* evaluate the digit */\n ec = c -'0'; state = S_OCT1; break; }\n if (c == 'x') { /* if hexadecimal character code, */\n state = S_HEX1; break;} /* go to hexadecimal evaluation */\n switch (c) { /* evaluate character after '\\' */\n case 'b': c = '\\b'; break;\n case 'f': c = '\\f'; break;\n case 'n': c = '\\n'; break;\n case 'r': c = '\\r'; break;\n case 't': c = '\\t'; break;\n case '\\n': c = -1; break;\n default : break;\n } /* get escaped character */\n if (c >= 0) this.buf.append((char)c);\n state = S_STRING; /* store it and then */\n break; /* return to quoted string state */\n\n case S_OCT1: /* --- escaped octal number 1 */\n if ((c >= '0') /* if an octal digit follows, */\n && (c <= '7')) { /* evaluate the digit */\n ec = ec *8 +c -'0'; state = S_OCT2; break; }\n this.ungetc(c); /* otherwise put back last character */\n this.buf.append((char)ec);\n state = S_STRING; /* store escaped character and */\n break; /* return to quoted string state */\n\n case S_OCT2: /* --- escaped octal number 2 */\n if ((c >= '0') /* if an octal digit follows, */\n && (c <= '7')) /* evaluate the digit */\n ec = ec *8 +c -'0';\n else this.ungetc(c); /* otherwise put back last character */\n this.buf.append((char)ec);\n state = S_STRING; /* store escaped character and */\n break; /* return to quoted string state */\n\n case S_HEX1: /* --- escaped hexadecimal number 1 */\n if (ccl == C_DIGIT) { /* if hexadecimal digit, evaluate it */\n ec = c -'0'; state = S_HEX2; break; }\n if ((c >= 'a') && (c <= 'f')) {\n ec = c -'a' +10; state = S_HEX2; break; }\n if ((c >= 'A') && (c <= 'F')) {\n ec = c -'A' +10; state = S_HEX2; break; }\n this.ungetc(c); /* otherwise put back last character */\n this.buf.append('x'); /* store escaped character ('x') */\n state = S_STRING; /* return to quoted string state */\n break;\n\n case S_HEX2: /* --- escaped hexadecimal number 2 */\n if (ccl == C_DIGIT) /* if hexadecimal digit, evaluate it */\n ec = ec*16 +c -'0';\n else if ((c >= 'a') && (c <= 'f'))\n ec = ec*16 +c -'a' +10;\n else if ((c >= 'A') && (c <= 'F'))\n ec = ec*16 +c -'A' +10;\n else this.ungetc(c); /* otherwise put back last character */\n this.buf.append((char)ec);\n state = S_STRING; /* store escaped character and */\n break; /* return to quoted string state */\n\n case S_SLASH: /* --- slash '/' */\n if (c == '/') { /* if C++ style comment, then */\n state = S_CPPCOM; break; } /* skip to end of line */\n if (c == '*') { /* if C style comment */\n state = S_CCOM1; break; } /* return to 1st state */\n this.ungetc(c); /* otherwise put back last character */\n this.value = \"/\"; /* store character in buffer */\n return this.ttype = '/'; /* return `character' */\n\n case S_CPPCOM: /* --- C++ style comment */\n if ((c == '\\n') /* if at end of line */\n || (c < 0)) /* or at end of file */\n state = S_SPACE; /* return to white space skipping */\n break; /* (skip to end of line) */\n\n case S_CCOM1: /* --- C style comment 1 */\n if (c < 0) /* if end of file, abort */\n throw this.unterminated(true);\n if (c == '*') /* if possibly 'end of comment', */\n state = S_CCOM2; /* go to 2nd 'comment' state */\n else if (c == '/') /* if possibly 'start of comment', */\n state = S_CCOM3; /* go to 3rd 'comment' state */\n break;\n\n case S_CCOM2: /* --- C style comment 2 */\n if (c < 0) /* if end of file, abort */\n throw this.unterminated(true);\n if (c == '/') { /* if end of comment found */\n if (--level <= 0) state = S_SPACE;\n else state = S_CCOM1; }\n else if (c != '*') /* if end of comment impossible */\n state = S_CCOM1; /* return to comment skipping */\n break; /* (possible start of comment) */\n\n case S_CCOM3: /* --- C style comment 3 */\n if (c < 0) /* if end of file, abort */\n throw this.unterminated(true);\n if (c == '*') { /* if start of comment found */\n level++; state = S_CCOM1; }\n else if (c != '/') /* if start of comment impossible */\n state = S_CCOM1; /* return to comment skipping */\n break; /* (possible end of comment) */\n\n default: /* if state is illegal, abort */\n throw new IOException(\"illegal scanner state\" +this.lno());\n\n } /* switch() */\n } /* while (true) */\n }", "title": "" }, { "docid": "25a348d6195b51756a7c9c54972f4e8b", "score": "0.5877906", "text": "@Override\n public Token getToken() {\n\n final String tokenContent = getTokenText();\n final int position = getTokenStartPosition();\n return tokenContent.contains(\".\")\n ? new Token(TokenType.DOUBLELITERAL, tokenContent, position)\n : new Token(TokenType.INTLITERAL, tokenContent, position);\n }", "title": "" }, { "docid": "1fc9a5e9e758dbf5d7a3d3e273c3ff8c", "score": "0.58608174", "text": "public ReservedLiteral(String s) {\r\n\tliteral = new Token(\r\n\t\tWordOrReservedState.TT_RESERVED, s, 0);\r\n}", "title": "" }, { "docid": "6f17f552ff58456f0a30301e556383f6", "score": "0.58284336", "text": "Token(String value, int linenumber){\r\n\t\tthis.value = value;\r\n\t\tthis.linenumber = linenumber;\r\n\t}", "title": "" }, { "docid": "056de3f86f2babbaf02fca850f5155db", "score": "0.5808317", "text": "PrimitiveTypeName primitiveType() :\n {\n Token t;\n }", "title": "" }, { "docid": "85d08bc1f2b7551d05a47c17c2c75426", "score": "0.5790561", "text": "public IElementType nextToken() {\n\t\tint n = text.length();\n\t\tif ( p>=n ) {\n\t\t\ttoken = null;\n\t\t\teof = true;\n\t\t\treturn null; // IDEA wants null for EOF\n\t\t}\n\t\tIElementType token;\n\t\tstart = p;\n\t\tif (isWS(c)) {\n\t\t\twhile ( p<n && isWS(c) ) { // don't consume end of line\n\t\t\t\tconsume();\n\t\t\t}\n\t\t\tstop = p-1;\n\t\t\t// IDEA wants whitespace char\n\t\t\ttoken = TokenType.WHITE_SPACE;\n\t\t}\n\t\telse if ( c=='\\n' ) {\n\t\t\tconsume();\n\t\t\ttoken = SimpleTokenType.CRLF;\n\t\t\tstop = p-1;\n\t\t}\n\t\telse if ( c=='\\r' ) {\n\t\t\tconsume();\n\t\t\tif ( c=='\\n' ) {\n\t\t\t\tconsume();\n\t\t\t}\n\t\t\ttoken = SimpleTokenType.CRLF;\n\t\t}\n\t\telse if ( c=='#' || c=='!' ) {\n\t\t\twhile ( p<n && c!='\\n' ) {\n\t\t\t\tconsume();\n\t\t\t}\n\t\t\tstop = p-1;\n\t\t\ttoken = SimpleTokenType.COMMENT;\n\t\t\tprevNonWSToken = token;\n\t\t}\n\t\telse if ( c=='=' || c==':' ) {\n\t\t\tstop = p;\n\t\t\tconsume();\n\t\t\ttoken = SimpleTokenType.SEPARATOR;\n\t\t\tprevNonWSToken = token;\n\t\t}\n\t\telse {\n\t\t\t// must be a key or value\n\t\t\twhile ( p<n && !isWS(c) && !isNL(c) ) {\n\t\t\t\tif ( c=='\\\\' ) {\n\t\t\t\t\tconsume();\n\t\t\t\t}\n\t\t\t\tconsume();\n\t\t\t}\n\t\t\tstop = p-1;\n\t\t\tif ( prevNonWSToken == SimpleTokenType.SEPARATOR ) {\n\t\t\t\ttoken = SimpleTokenType.VALUE;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttoken = SimpleTokenType.KEY;\n\t\t\t}\n\t\t\tprevNonWSToken = token;\n\t\t}\n\t\tthis.token = token;\n//\t\tSystem.out.println(\"nextToken yields \"+token);\n\t\treturn token;\n\t}", "title": "" }, { "docid": "76a05d0a9ee5cea77596578c823df108", "score": "0.5781122", "text": "public interface GramPracConstants {\n\n /**\n * A token identity constant.\n */\n public static final int WHITESPACE = 1001;\n\n /**\n * A token identity constant.\n */\n public static final int STRING = 1002;\n\n /**\n * A token identity constant.\n */\n public static final int CHAR = 1003;\n\n /**\n * A token identity constant.\n */\n public static final int INTEGER = 1004;\n\n /**\n * A token identity constant.\n */\n public static final int LONG = 1005;\n\n /**\n * A token identity constant.\n */\n public static final int FLOAT = 1006;\n\n /**\n * A token identity constant.\n */\n public static final int DOUBLE = 1007;\n\n /**\n * A token identity constant.\n */\n public static final int TRUE = 1008;\n\n /**\n * A token identity constant.\n */\n public static final int FALSE = 1009;\n\n /**\n * A token identity constant.\n */\n public static final int NULL = 1010;\n\n /**\n * A token identity constant.\n */\n public static final int VOID = 1011;\n\n /**\n * A token identity constant.\n */\n public static final int TYPE = 1012;\n\n /**\n * A token identity constant.\n */\n public static final int INFER = 1013;\n\n /**\n * A token identity constant.\n */\n public static final int NEW = 1014;\n\n /**\n * A token identity constant.\n */\n public static final int AS = 1015;\n\n /**\n * A token identity constant.\n */\n public static final int PRIV = 1016;\n\n /**\n * A token identity constant.\n */\n public static final int PUBL = 1017;\n\n /**\n * A token identity constant.\n */\n public static final int PRO = 1018;\n\n /**\n * A token identity constant.\n */\n public static final int ABSTRACT = 1019;\n\n /**\n * A token identity constant.\n */\n public static final int FINAL = 1020;\n\n /**\n * A token identity constant.\n */\n public static final int SYNCH = 1021;\n\n /**\n * A token identity constant.\n */\n public static final int THROWS = 1022;\n\n /**\n * A token identity constant.\n */\n public static final int STATIC = 1023;\n\n /**\n * A token identity constant.\n */\n public static final int VOLATILE = 1024;\n\n /**\n * A token identity constant.\n */\n public static final int FUNC = 1025;\n\n /**\n * A token identity constant.\n */\n public static final int RETURN = 1026;\n\n /**\n * A token identity constant.\n */\n public static final int FOR = 1027;\n\n /**\n * A token identity constant.\n */\n public static final int WHILE = 1028;\n\n /**\n * A token identity constant.\n */\n public static final int IF = 1029;\n\n /**\n * A token identity constant.\n */\n public static final int ELSE = 1030;\n\n /**\n * A token identity constant.\n */\n public static final int SWITCH = 1031;\n\n /**\n * A token identity constant.\n */\n public static final int DO = 1032;\n\n /**\n * A token identity constant.\n */\n public static final int DEF = 1033;\n\n /**\n * A token identity constant.\n */\n public static final int CASE = 1034;\n\n /**\n * A token identity constant.\n */\n public static final int CONT = 1035;\n\n /**\n * A token identity constant.\n */\n public static final int BREAK = 1036;\n\n /**\n * A token identity constant.\n */\n public static final int TRY = 1037;\n\n /**\n * A token identity constant.\n */\n public static final int CATCH = 1038;\n\n /**\n * A token identity constant.\n */\n public static final int CLASS = 1039;\n\n /**\n * A token identity constant.\n */\n public static final int INTER = 1040;\n\n /**\n * A token identity constant.\n */\n public static final int EXTNDS = 1041;\n\n /**\n * A token identity constant.\n */\n public static final int TPARAM = 1042;\n\n /**\n * A token identity constant.\n */\n public static final int USE = 1043;\n\n /**\n * A token identity constant.\n */\n public static final int FROM = 1044;\n\n /**\n * A token identity constant.\n */\n public static final int THROW = 1045;\n\n /**\n * A token identity constant.\n */\n public static final int PACK = 1046;\n\n /**\n * A token identity constant.\n */\n public static final int NAME = 1047;\n\n /**\n * A token identity constant.\n */\n public static final int ARROW = 1048;\n\n /**\n * A token identity constant.\n */\n public static final int PLUS = 1049;\n\n /**\n * A token identity constant.\n */\n public static final int MINUS = 1050;\n\n /**\n * A token identity constant.\n */\n public static final int MULT = 1051;\n\n /**\n * A token identity constant.\n */\n public static final int DIV = 1052;\n\n /**\n * A token identity constant.\n */\n public static final int MOD = 1053;\n\n /**\n * A token identity constant.\n */\n public static final int AND = 1054;\n\n /**\n * A token identity constant.\n */\n public static final int OR = 1055;\n\n /**\n * A token identity constant.\n */\n public static final int BANG = 1056;\n\n /**\n * A token identity constant.\n */\n public static final int WLDCRD = 1057;\n\n /**\n * A token identity constant.\n */\n public static final int COLON = 1058;\n\n /**\n * A token identity constant.\n */\n public static final int SEMICOLON = 1059;\n\n /**\n * A token identity constant.\n */\n public static final int EXPONENT = 1060;\n\n /**\n * A token identity constant.\n */\n public static final int LESS = 1061;\n\n /**\n * A token identity constant.\n */\n public static final int GREAT = 1062;\n\n /**\n * A token identity constant.\n */\n public static final int EQUAL = 1063;\n\n /**\n * A token identity constant.\n */\n public static final int EQ_EQ = 1064;\n\n /**\n * A token identity constant.\n */\n public static final int NOT_EQ = 1065;\n\n /**\n * A token identity constant.\n */\n public static final int GR_EQ = 1066;\n\n /**\n * A token identity constant.\n */\n public static final int LS_EQ = 1067;\n\n /**\n * A token identity constant.\n */\n public static final int EQ_MULT = 1068;\n\n /**\n * A token identity constant.\n */\n public static final int EQ_ADD = 1069;\n\n /**\n * A token identity constant.\n */\n public static final int EQ_DIV = 1070;\n\n /**\n * A token identity constant.\n */\n public static final int EQ_MIN = 1071;\n\n /**\n * A token identity constant.\n */\n public static final int EQ_MOD = 1072;\n\n /**\n * A token identity constant.\n */\n public static final int BOOL_AND = 1073;\n\n /**\n * A token identity constant.\n */\n public static final int BOOL_OR = 1074;\n\n /**\n * A token identity constant.\n */\n public static final int OP_PAREN = 1075;\n\n /**\n * A token identity constant.\n */\n public static final int CL_PAREN = 1076;\n\n /**\n * A token identity constant.\n */\n public static final int COMMA = 1077;\n\n /**\n * A token identity constant.\n */\n public static final int DOT = 1078;\n\n /**\n * A token identity constant.\n */\n public static final int OP_SQ_BRACK = 1079;\n\n /**\n * A token identity constant.\n */\n public static final int CL_SQ_BRACK = 1080;\n\n /**\n * A token identity constant.\n */\n public static final int OP_CU_BRACK = 1081;\n\n /**\n * A token identity constant.\n */\n public static final int CL_CU_BRACK = 1082;\n\n /**\n * A production node identity constant.\n */\n public static final int ASSGN = 2001;\n\n /**\n * A production node identity constant.\n */\n public static final int EXPR = 2002;\n\n /**\n * A production node identity constant.\n */\n public static final int AND_EXPR = 2003;\n\n /**\n * A production node identity constant.\n */\n public static final int EQ_COMP = 2004;\n\n /**\n * A production node identity constant.\n */\n public static final int COMPARISON = 2005;\n\n /**\n * A production node identity constant.\n */\n public static final int ADDITION = 2006;\n\n /**\n * A production node identity constant.\n */\n public static final int MULTIPLICATION = 2007;\n\n /**\n * A production node identity constant.\n */\n public static final int UNARY = 2008;\n\n /**\n * A production node identity constant.\n */\n public static final int FUNC_ARG = 2009;\n\n /**\n * A production node identity constant.\n */\n public static final int FUNC_ARGS = 2010;\n\n /**\n * A production node identity constant.\n */\n public static final int FUNC_CALL = 2011;\n\n /**\n * A production node identity constant.\n */\n public static final int CONSTRUCTOR = 2012;\n\n /**\n * A production node identity constant.\n */\n public static final int PAREN_EXPR = 2013;\n\n /**\n * A production node identity constant.\n */\n public static final int INVOKE = 2014;\n\n /**\n * A production node identity constant.\n */\n public static final int GENERIC = 2015;\n\n /**\n * A production node identity constant.\n */\n public static final int ARRAY_TYPE_NOTATION = 2016;\n\n /**\n * A production node identity constant.\n */\n public static final int TYPE_NAME = 2017;\n\n /**\n * A production node identity constant.\n */\n public static final int CAST = 2018;\n\n /**\n * A production node identity constant.\n */\n public static final int ARRAY_ACC = 2019;\n\n /**\n * A production node identity constant.\n */\n public static final int UNIT = 2020;\n}", "title": "" }, { "docid": "427bed334ce7bbfe9c72169ae3f8c27d", "score": "0.57691556", "text": "private void scanToken() {\n current++;\n // read previous char\n char c = this.source.charAt(current - 1);\n\n switch (c) {\n //---------- single-character tokens ---------//\n case '(': addToken(TokenType.LEFT_PAREN); break;\n case ')': addToken(TokenType.RIGHT_PAREN); break;\n case '{': addToken(TokenType.LEFT_BRACE); break;\n case '}': addToken(TokenType.RIGHT_BRACE); break;\n case ',': addToken(TokenType.COMMA); break;\n case '.': addToken(TokenType.DOT); break;\n case '-': addToken(TokenType.MINUS); break;\n case '+': addToken(TokenType.PLUS); break;\n case ';': addToken(TokenType.SEMICOLON); break;\n case '*': addToken(TokenType.STAR); break;\n\n //---------- two-character tokens (operators) ---------//\n case '!':\n addToken(match('=') ? TokenType.BANG_EQUAL : TokenType.BANG);\n break;\n case '=':\n addToken(match('=') ? TokenType.EQUAL_EQUAL : TokenType.EQUAL);\n break;\n case '>':\n addToken(match('=') ? TokenType.GREATER_EQUAL :\n TokenType.GREATER);\n break;\n case '<':\n addToken(match('=') ? TokenType.LESS_EQUAL :\n TokenType.LESS);\n break;\n case '/':\n if (match('/')) {\n // if this is a comment, consume the rest of the line\n while (!isEnd() && peek() != '\\n') {\n this.current++;\n }\n } else {\n addToken(TokenType.SLASH);\n }\n break;\n\n //---------- whitespaces ---------//\n case ' ':\n case '\\r':\n case '\\t':\n break;\n case '\\n':\n this.currentLine++;\n break;\n\n //---------- literals ---------//\n case '\"':\n string();\n break;\n default:\n if (isDigit(c)) {\n number();\n } else if (isAlpha(c)) {\n identifier();\n } else {\n Lox.error(this.currentLine, \"Unexpected token: \" + c);\n }\n break;\n }\n }", "title": "" }, { "docid": "059880190b27137f33e27870b5c96a49", "score": "0.57419306", "text": "public final Constants.Literal constant() throws RecognitionException {\n Constants.Literal constant = null;\n\n Token t=null;\n\n try {\n // E:\\\\cassandra\\\\git/src/java/org/apache/cassandra/cql3/Cql.g:810:5: (t= STRING_LITERAL | t= INTEGER | t= FLOAT | t= BOOLEAN | t= UUID | t= HEXNUMBER | ( '-' )? t= ( K_NAN | K_INFINITY ) )\n int alt86=7;\n switch ( input.LA(1) ) {\n case STRING_LITERAL:\n {\n alt86=1;\n }\n break;\n case INTEGER:\n {\n alt86=2;\n }\n break;\n case FLOAT:\n {\n alt86=3;\n }\n break;\n case BOOLEAN:\n {\n alt86=4;\n }\n break;\n case UUID:\n {\n alt86=5;\n }\n break;\n case HEXNUMBER:\n {\n alt86=6;\n }\n break;\n case K_NAN:\n case K_INFINITY:\n case 144:\n {\n alt86=7;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 86, 0, input);\n\n throw nvae;\n }\n\n switch (alt86) {\n case 1 :\n // E:\\\\cassandra\\\\git/src/java/org/apache/cassandra/cql3/Cql.g:810:7: t= STRING_LITERAL\n {\n t=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_constant4695); \n constant = Constants.Literal.string((t!=null?t.getText():null)); \n\n }\n break;\n case 2 :\n // E:\\\\cassandra\\\\git/src/java/org/apache/cassandra/cql3/Cql.g:811:7: t= INTEGER\n {\n t=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_constant4707); \n constant = Constants.Literal.integer((t!=null?t.getText():null)); \n\n }\n break;\n case 3 :\n // E:\\\\cassandra\\\\git/src/java/org/apache/cassandra/cql3/Cql.g:812:7: t= FLOAT\n {\n t=(Token)match(input,FLOAT,FOLLOW_FLOAT_in_constant4726); \n constant = Constants.Literal.floatingPoint((t!=null?t.getText():null)); \n\n }\n break;\n case 4 :\n // E:\\\\cassandra\\\\git/src/java/org/apache/cassandra/cql3/Cql.g:813:7: t= BOOLEAN\n {\n t=(Token)match(input,BOOLEAN,FOLLOW_BOOLEAN_in_constant4747); \n constant = Constants.Literal.bool((t!=null?t.getText():null)); \n\n }\n break;\n case 5 :\n // E:\\\\cassandra\\\\git/src/java/org/apache/cassandra/cql3/Cql.g:814:7: t= UUID\n {\n t=(Token)match(input,UUID,FOLLOW_UUID_in_constant4766); \n constant = Constants.Literal.uuid((t!=null?t.getText():null)); \n\n }\n break;\n case 6 :\n // E:\\\\cassandra\\\\git/src/java/org/apache/cassandra/cql3/Cql.g:815:7: t= HEXNUMBER\n {\n t=(Token)match(input,HEXNUMBER,FOLLOW_HEXNUMBER_in_constant4788); \n constant = Constants.Literal.hex((t!=null?t.getText():null)); \n\n }\n break;\n case 7 :\n // E:\\\\cassandra\\\\git/src/java/org/apache/cassandra/cql3/Cql.g:816:7: ( '-' )? t= ( K_NAN | K_INFINITY )\n {\n String sign=\"\"; \n // E:\\\\cassandra\\\\git/src/java/org/apache/cassandra/cql3/Cql.g:816:27: ( '-' )?\n int alt85=2;\n int LA85_0 = input.LA(1);\n\n if ( (LA85_0==144) ) {\n alt85=1;\n }\n switch (alt85) {\n case 1 :\n // E:\\\\cassandra\\\\git/src/java/org/apache/cassandra/cql3/Cql.g:816:28: '-'\n {\n match(input,144,FOLLOW_144_in_constant4806); \n sign = \"-\"; \n\n }\n break;\n\n }\n\n t=(Token)input.LT(1);\n if ( (input.LA(1)>=K_NAN && input.LA(1)<=K_INFINITY) ) {\n input.consume();\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n constant = Constants.Literal.floatingPoint(sign + (t!=null?t.getText():null)); \n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return constant;\n }", "title": "" }, { "docid": "44203d80cf7d7573b293dd96a99b2cfa", "score": "0.5704541", "text": "public Symbol next_token() throws java.io.IOException\n {\n for(;;)\n\t switch (next_toke)\n\t\t{\n case _boolean: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_boolean\", sym._boolean);\n case _break: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_break\", sym._break);\n case _class: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_class\", sym._class);\n case _double: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_double\", sym._double);\n case _else: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_else\", sym._else);\n case _extends: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_extends\", sym._extends);\n case _for: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_for\", sym._for);\n case _if: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_if\", sym._if);\n case _implements: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_implements\", sym._implements);\n case _int: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_int\", sym._int);\n case _interface: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_interface\", sym._interface);\n case _new: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_new\", sym._new);\n case _newarray: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_newarray\", sym._newarray);\n case _null: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_null\", sym._null);\n case _println: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_println\", sym._println);\n case _readln: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_readln\", sym._readln);\n case _return: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_return\", sym._return);\n case _string: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_string\", sym._string);\n case _void: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_void\", sym._void);\n case _while: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_while\", sym._while);\n case _plus: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_plus\", sym._plus);\n case _minus: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_minus\", sym._minus);\n case _multiplication: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_multiplication\", sym._multiplication);\n case _division: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_division\", sym._division);\n case _mod: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_mod\", sym._mod);\n case _less: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_less\", sym._less);\n case _lessequal: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_lessequal\", sym._lessequal);\n case _greater: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_greater\", sym._greater);\n case _greaterequal: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_greaterequal\", sym._greaterequal);\n case _equal: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_equal\", sym._equal);\n case _notequal: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_notequal\", sym._notequal);\n case _and: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_and\", sym._and);\n case _or: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_or\", sym._or);\n case _not: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_not\", sym._not);\n case _assignop: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_assignop\", sym._assignop);\n case _semicolon: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_semicolon\", sym._semicolon);\n case _comma: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_comma\", sym._comma);\n case _period: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_period\", sym._period);\n case _leftparen: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_leftparen\", sym._leftparen);\n case _rightparen: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_rightparen\", sym._rightparen);\n case _leftbracket: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_leftbracket\", sym._leftbracket);\n case _rightbracket: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_rightbracket\", sym._rightbracket);\n case _leftbrace: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_leftbrace\", sym._leftbrace);\n case _rightbrace: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_rightbrace\", sym._rightbrace);\n case _intconstant: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_intconstant\", sym._intconstant);\n case _doubleconstant: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_doubleconstant\", sym._doubleconstant);\n case _stringconstant: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_stringconstant\", sym._stringconstant);\n case _booleanconstant: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_booleanconstant\", sym._booleanconstant);\n case _id: /*System.out.print( next_toke.toString() + \" \");*/ advance(); return sf.newSymbol(\"_id\", sym._id);\n case EOF: return sf.newSymbol(\"EOF\", sym.EOF);\n\n\t\tdefault:\n System.out.println(\"[reject]\");\n advance();\n\t\t break;\n\t\t}\n }", "title": "" }, { "docid": "b3eb4b917f0396ad36d6b52c19604cd4", "score": "0.56986976", "text": "public Token (String type, String value){\n TOKEN_KEY = type;\n TOKEN_VALUE = value;\n }", "title": "" }, { "docid": "bad4fe3bedc692d8809e33fcc4929012", "score": "0.5698498", "text": "public CharLiteral(String name) {\n object_print_method = class_print_method;\n this.name = name;\n this.wide = name.charAt(0) == 'L';\n this.value = this.wide ? name.charAt(2) : name.charAt(1);\n }", "title": "" }, { "docid": "f7fbd5ac3eb2240970d44c700eb2e5d9", "score": "0.56891096", "text": "NamedLiteralExpCS createNamedLiteralExpCS();", "title": "" }, { "docid": "0297b31a738cc101e00740cf5a608fb1", "score": "0.5643706", "text": "public static String nameForToken(int paramInt)\r\n/* 51: */ {\r\n/* 52: 73 */ String str = \"really unknown\";\r\n/* 53: 75 */ switch (paramInt)\r\n/* 54: */ {\r\n/* 55: */ case 0: \r\n/* 56: 78 */ str = \"unknown\";\r\n/* 57: 79 */ break;\r\n/* 58: */ case 1: \r\n/* 59: 81 */ str = \"start\";\r\n/* 60: 82 */ break;\r\n/* 61: */ case 2: \r\n/* 62: 84 */ str = \"string\";\r\n/* 63: 85 */ break;\r\n/* 64: */ case 5: \r\n/* 65: 87 */ str = \"EOI\";\r\n/* 66: 88 */ break;\r\n/* 67: */ case 47: \r\n/* 68: 90 */ str = \"'/'\";\r\n/* 69: 91 */ break;\r\n/* 70: */ case 59: \r\n/* 71: 93 */ str = \"';'\";\r\n/* 72: 94 */ break;\r\n/* 73: */ case 61: \r\n/* 74: 96 */ str = \"'='\";\r\n/* 75: 97 */ break;\r\n/* 76: */ }\r\n/* 77:100 */ return str;\r\n/* 78: */ }", "title": "" }, { "docid": "4df01a9b6925c14994b3550c4a2425c1", "score": "0.5629505", "text": "public ObjCParser(ObjCParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 173; i++) jj_la1[i] = -1;\n for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n }", "title": "" }, { "docid": "a2a261acc2c8ec2ad23e31bf8a5ad061", "score": "0.5625863", "text": "public final Constants.Literal constant() throws RecognitionException {\n Constants.Literal constant = null;\n\n Token t=null;\n\n try {\n // /home/washim/cassandra-c3/src/java/org/apache/cassandra/cql3/Cql.g:778:5: (t= STRING_LITERAL | t= INTEGER | t= FLOAT | t= BOOLEAN | t= UUID | t= HEXNUMBER | ( '-' )? t= ( K_NAN | K_INFINITY ) )\n int alt86=7;\n switch ( input.LA(1) ) {\n case STRING_LITERAL:\n {\n alt86=1;\n }\n break;\n case INTEGER:\n {\n alt86=2;\n }\n break;\n case FLOAT:\n {\n alt86=3;\n }\n break;\n case BOOLEAN:\n {\n alt86=4;\n }\n break;\n case UUID:\n {\n alt86=5;\n }\n break;\n case HEXNUMBER:\n {\n alt86=6;\n }\n break;\n case K_NAN:\n case K_INFINITY:\n case 144:\n {\n alt86=7;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 86, 0, input);\n\n throw nvae;\n }\n\n switch (alt86) {\n case 1 :\n // /home/washim/cassandra-c3/src/java/org/apache/cassandra/cql3/Cql.g:778:7: t= STRING_LITERAL\n {\n t=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_constant4337); \n constant = Constants.Literal.string((t!=null?t.getText():null)); \n\n }\n break;\n case 2 :\n // /home/washim/cassandra-c3/src/java/org/apache/cassandra/cql3/Cql.g:779:7: t= INTEGER\n {\n t=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_constant4349); \n constant = Constants.Literal.integer((t!=null?t.getText():null)); \n\n }\n break;\n case 3 :\n // /home/washim/cassandra-c3/src/java/org/apache/cassandra/cql3/Cql.g:780:7: t= FLOAT\n {\n t=(Token)match(input,FLOAT,FOLLOW_FLOAT_in_constant4368); \n constant = Constants.Literal.floatingPoint((t!=null?t.getText():null)); \n\n }\n break;\n case 4 :\n // /home/washim/cassandra-c3/src/java/org/apache/cassandra/cql3/Cql.g:781:7: t= BOOLEAN\n {\n t=(Token)match(input,BOOLEAN,FOLLOW_BOOLEAN_in_constant4389); \n constant = Constants.Literal.bool((t!=null?t.getText():null)); \n\n }\n break;\n case 5 :\n // /home/washim/cassandra-c3/src/java/org/apache/cassandra/cql3/Cql.g:782:7: t= UUID\n {\n t=(Token)match(input,UUID,FOLLOW_UUID_in_constant4408); \n constant = Constants.Literal.uuid((t!=null?t.getText():null)); \n\n }\n break;\n case 6 :\n // /home/washim/cassandra-c3/src/java/org/apache/cassandra/cql3/Cql.g:783:7: t= HEXNUMBER\n {\n t=(Token)match(input,HEXNUMBER,FOLLOW_HEXNUMBER_in_constant4430); \n constant = Constants.Literal.hex((t!=null?t.getText():null)); \n\n }\n break;\n case 7 :\n // /home/washim/cassandra-c3/src/java/org/apache/cassandra/cql3/Cql.g:784:7: ( '-' )? t= ( K_NAN | K_INFINITY )\n {\n String sign=\"\"; \n // /home/washim/cassandra-c3/src/java/org/apache/cassandra/cql3/Cql.g:784:27: ( '-' )?\n int alt85=2;\n int LA85_0 = input.LA(1);\n\n if ( (LA85_0==144) ) {\n alt85=1;\n }\n switch (alt85) {\n case 1 :\n // /home/washim/cassandra-c3/src/java/org/apache/cassandra/cql3/Cql.g:784:28: '-'\n {\n match(input,144,FOLLOW_144_in_constant4448); \n sign = \"-\"; \n\n }\n break;\n\n }\n\n t=(Token)input.LT(1);\n if ( (input.LA(1)>=K_NAN && input.LA(1)<=K_INFINITY) ) {\n input.consume();\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n constant = Constants.Literal.floatingPoint(sign + (t!=null?t.getText():null)); \n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return constant;\n }", "title": "" }, { "docid": "4efe1bea153fe66a50f27eac8f2a51cd", "score": "0.5621798", "text": "private Token nextTokenInternal() throws Exception {\n\n\t\tint c = this.fstream.read();\n\n\t\tif (-1 == c)\n\n\t\t\t// The value for \"lineNum\" is now \"null\",\n\t\t\t// you should modify this to an appropriate\n\t\t\t// line number for the \"EOF\" token.\n\t\t\treturn new Token(Kind.TOKEN_EOF, linenum);\n\n\t\t// skip all kinds of \"blanks\"\n\n\t\twhile ('\\t' == c || '\\n' == c) {\n\t\t\tif ('\\n' == c)\n\t\t\t\tlinenum++;\n\t\t\tc = this.fstream.read();\n\t\t}\n\n\t\tif (-1 == c)\n\t\t\treturn new Token(Kind.TOKEN_EOF, linenum);\n\n\t\t// analysis the Comments\n\t\tif ('/' == c) {\n\t\t\tex = c;\n\t\t\tc = this.fstream.read();\n\t\t\tisComments(c, ex);\n\t\t\treturn null;\n\t\t}\n\n\t\tswitch (c) {\n\t\tcase ' ': {\n\t\t\treturn printTokenforspace(c);\n\n\t\t}\n\t\tcase '+': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_ADD, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase '&': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn null;\n\t\t\treturn behind;\n\n\t\t}\n\t\tcase '=': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_ASSIGN, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase ',': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_COMMER, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase '.': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_DOT, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase '{': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_LBRACE, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase '[': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_LBRACK, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase '(': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_LPAREN, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase '<': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_LT, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase '!': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_NOT, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase '}': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_RBRACE, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase ']': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_RBRACK, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase ')': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_RPAREN, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase ';': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_SEMI, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase '-': {//需要特殊处理一下!!!在parser中在判断\"-\"到底是减号还是负号。\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_SUB, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\t\tcase '*': {\n\t\t\tcmp = printTokenforspace(c);\n\t\t\tif (cmp == null)\n\t\t\t\treturn new Token(Kind.TOKEN_TIMES, linenum);\n\t\t\telse\n\t\t\t\treturn behind;\n\t\t}\n\n\t\tdefault:\n\t\t\t// Lab 1, exercise 2: supply missing code to\n\t\t\t// lex other kinds of tokens.\n\t\t\t// Hint: think carefully about the basic\n\t\t\t// data structure and algorithms. The code\n\t\t\t// is not that much and may be less than 50 lines. If you\n\t\t\t// find you are writing a lot of code, you\n\t\t\t// are on the wrong way.\n\n\t\t\t// new Todo();\n\t\t\ts += (char) (c);\n\t\t\t// System.out.println(s);\n\t\t\treturn nextTokenInternal();\n\t\t}\n\t}", "title": "" }, { "docid": "2a917cdfaf0314613794acf39fa242fc", "score": "0.56108207", "text": "private void processLiteralNode(LiteralNode node) throws IntermediateCodeGeneratorException {\n \t\tString literal = node.getLiteral();\n \t\tType type = node.getLiteralType();\n \t\tswitch (type.getKind()) {\n \t\tcase DOUBLE:\n \t\tcase LONG:\n \t\tcase BOOLEAN:\n \t\t\t// Literal of type Long or Double needs to start with a # to mark it\n \t\t\t// as a constant\n \t\t\tthis.intermediateResults.push(new IntermediateResult(\"#\" + literal, type));\n \t\t\tbreak;\n \t\tcase STRING:\n \t\t\t// Literal of type String needs to be in \" and start with a #\n \t\t\t// Replace all \" in the string with \\\"\n \t\t\tthis.intermediateResults\n \t\t\t\t\t.push(new IntermediateResult(\"#\\\"\" + literal.replaceAll(\"\\\"\", \"\\\\\\\"\") + \"\\\"\", type));\n \t\t\tbreak;\n \t\tdefault:\n \t\t\t// Literal of other types are not defined yet.\n \t\t\tthrow new IntermediateCodeGeneratorException(\"Literal node of type \" + node.getLiteralType().toString()\n \t\t\t\t\t+ \" is not supported\");\n \t\t}\n \t}", "title": "" }, { "docid": "5a763113b3a3519beab62e9b3bb7b703", "score": "0.5594515", "text": "public Token(TokenTypes type, String value, MIPSprogram sourceMIPSprogram, int line, int start) {\n\t\tthis.type = type;\n\t\tthis.value = value;\n\t\tthis.sourceMIPSprogram = sourceMIPSprogram;\n\t\tthis.sourceLine = line;\n\t\tthis.sourcePos = start;\n\t\tthis.originalMIPSprogram = sourceMIPSprogram;\n\t\tthis.originalSourceLine = line;\n\t}", "title": "" }, { "docid": "4fa245bc9b3e4ab4f5a4c48f125b13d3", "score": "0.5586537", "text": "private ArmaniTypes(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "title": "" }, { "docid": "c9c09ae04277437121ab401d59381cbd", "score": "0.5567998", "text": "protected Token eatToken()\n throws CompilerException\n {\n try\n {\n while (true)\n {\n int iLine = m_script.getLine();\n int ofInLine = m_script.getOffset();\n char ch = m_script.nextChar();\n switch(ch)\n {\n // Separator (3.11) - the easiest tokens to parse\n case '(':\n return new Token(Token.TOK_LPARENTHESIS, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case ')':\n return new Token(Token.TOK_RPARENTHESIS, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '{':\n return new Token(Token.TOK_LCURLYBRACE, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '}':\n return new Token(Token.TOK_RCURLYBRACE, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '[':\n return new Token(Token.TOK_LBRACKET, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case ']':\n return new Token(Token.TOK_RBRACKET, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case ';':\n return new Token(Token.TOK_SEMICOLON, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case ',':\n return new Token(Token.TOK_COMMA, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '.':\n {\n // test for '.' as the start of a FloatingPointLiteral (3.10.2)\n boolean fNum = isDecimal(m_script.nextChar());\n m_script.putBackChar();\n\n // if it is a number, then put back the '.' and parse\n if (fNum)\n {\n m_script.putBackChar();\n return eatFloatingPointLiteral();\n }\n }\n return new Token(Token.TOK_DOT, iLine, ofInLine, m_script.getOffset() - ofInLine);\n\n // Operator (3.12) - the second easiest tokens to parse\n case '~':\n return new Token(Token.TOK_BITNOT, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '?':\n return new Token(Token.TOK_CONDITIONAL, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case ':':\n return new Token(Token.TOK_COLON, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '+':\n switch(m_script.nextChar())\n {\n case '+':\n return new Token(Token.TOK_INCREMENT, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '=':\n return new Token(Token.TOK_ASSIGN_ADD, iLine, ofInLine, m_script.getOffset() - ofInLine);\n default:\n m_script.putBackChar();\n return new Token(Token.TOK_ADD, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n case '-':\n switch(m_script.nextChar())\n {\n case '-':\n return new Token(Token.TOK_DECREMENT, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '=':\n return new Token(Token.TOK_ASSIGN_SUB, iLine, ofInLine, m_script.getOffset() - ofInLine);\n default:\n m_script.putBackChar();\n return new Token(Token.TOK_SUB, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n case '*':\n if (m_script.nextChar() == '=')\n {\n return new Token(Token.TOK_ASSIGN_MUL, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n m_script.putBackChar();\n return new Token(Token.TOK_MUL, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '/':\n if (m_script.nextChar() == '=')\n {\n return new Token(Token.TOK_ASSIGN_DIV, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n m_script.putBackChar();\n return new Token(Token.TOK_DIV, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '%':\n if (m_script.nextChar() == '=')\n {\n return new Token(Token.TOK_ASSIGN_REM, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n m_script.putBackChar();\n return new Token(Token.TOK_REM, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '^':\n if (m_script.nextChar() == '=')\n {\n return new Token(Token.TOK_ASSIGN_BITXOR, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n m_script.putBackChar();\n return new Token(Token.TOK_BITXOR, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '=':\n if (m_script.nextChar() == '=')\n {\n return new Token(Token.TOK_TEST_EQ, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n m_script.putBackChar();\n return new Token(Token.TOK_ASSIGN, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '!':\n if (m_script.nextChar() == '=')\n {\n return new Token(Token.TOK_TEST_NE, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n m_script.putBackChar();\n return new Token(Token.TOK_LOGICAL_NOT, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '&':\n switch(m_script.nextChar())\n {\n case '&':\n return new Token(Token.TOK_LOGICAL_AND, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '=':\n return new Token(Token.TOK_ASSIGN_BITAND, iLine, ofInLine, m_script.getOffset() - ofInLine);\n default:\n m_script.putBackChar();\n return new Token(Token.TOK_BITAND, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n case '|':\n switch(m_script.nextChar())\n {\n case '|':\n return new Token(Token.TOK_LOGICAL_OR, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '=':\n return new Token(Token.TOK_ASSIGN_BITOR, iLine, ofInLine, m_script.getOffset() - ofInLine);\n default:\n m_script.putBackChar();\n return new Token(Token.TOK_BITOR, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n case '<':\n switch(m_script.nextChar())\n {\n case '=':\n return new Token(Token.TOK_TEST_LE, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '<':\n if (m_script.nextChar() == '=')\n {\n return new Token(Token.TOK_ASSIGN_SHL, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n m_script.putBackChar();\n return new Token(Token.TOK_SHL, iLine, ofInLine, m_script.getOffset() - ofInLine);\n default:\n m_script.putBackChar();\n return new Token(Token.TOK_TEST_LT, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n case '>':\n switch(m_script.nextChar())\n {\n case '=':\n return new Token(Token.TOK_TEST_GE, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '>':\n switch(m_script.nextChar())\n {\n case '>':\n if (m_script.nextChar() == '=')\n {\n return new Token(Token.TOK_ASSIGN_USHR, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n m_script.putBackChar();\n return new Token(Token.TOK_USHR, iLine, ofInLine, m_script.getOffset() - ofInLine);\n case '=':\n return new Token(Token.TOK_ASSIGN_SHR, iLine, ofInLine, m_script.getOffset() - ofInLine);\n default:\n m_script.putBackChar();\n return new Token(Token.TOK_SHR, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n default:\n m_script.putBackChar();\n return new Token(Token.TOK_TEST_GT, iLine, ofInLine, m_script.getOffset() - ofInLine);\n }\n\n // CharacterLiteral (3.10.4)\n case '\\'':\n m_script.putBackChar();\n return eatCharacterLiteral();\n\n // StringLiteral (3.10.5)\n case '\\\"':\n case '`': // non-standard\n m_script.putBackChar();\n return eatStringLiteral();\n\n case '0':\n case '1':\n case '2':\n case '3':\n case '4':\n case '5':\n case '6':\n case '7':\n case '8':\n case '9':\n // IntegerLiteral (3.10.1)\n // FloatingPointLiteral (3.10.2)\n // (see also TOK_DOT in the Separator (3.11) section)\n m_script.putBackChar();\n return eatNumericLiteral();\n\n case '_': // ASCII underscore\n case '$': // ASCII dollar sign\n case 'A': case 'a': // ASCII latin A-Z and a-z\n case 'B': case 'b':\n case 'C': case 'c':\n case 'D': case 'd':\n case 'E': case 'e':\n case 'F': case 'f':\n case 'G': case 'g':\n case 'H': case 'h':\n case 'I': case 'i':\n case 'J': case 'j':\n case 'K': case 'k':\n case 'L': case 'l':\n case 'M': case 'm':\n case 'N': case 'n':\n case 'O': case 'o':\n case 'P': case 'p':\n case 'Q': case 'q':\n case 'R': case 'r':\n case 'S': case 's':\n case 'T': case 't':\n case 'U': case 'u':\n case 'V': case 'v':\n case 'W': case 'w':\n case 'X': case 'x':\n case 'Y': case 'y':\n case 'Z': case 'z':\n // identifier (3.8) or keyword (3.9)\n m_script.putBackChar();\n return eatIdentifierOrKeyword();\n\n default:\n {\n if (Character.isJavaIdentifierStart(ch))\n {\n // identifier (3.8) or keyword (3.9)\n m_script.putBackChar();\n return eatIdentifierOrKeyword();\n }\n\n // lexical error -- the character is not a valid \"lead\"\n // character for any of the java tokens\n logError(ERROR, ERR_INVALID_CHAR,\n new String[] {LiteralToken.printableChar(ch)},\n iLine, ofInLine, m_script.getOffset() - ofInLine);\n eatFluff();\n }\n }\n }\n }\n catch (EOFException e)\n {\n logError(ERROR, ERR_UNEXPECTED_EOF, null, m_script.getLine(), m_script.getOffset(), 0);\n throw new CompilerException();\n }\n catch (IOException e)\n {\n logError(ERROR, ERR_UNEXPECTED_IO, new String[] {e.toString()},\n m_script.getLine(), m_script.getOffset(), 0);\n throw new CompilerException();\n }\n }", "title": "" }, { "docid": "69dcfb154cf24b077e3fdcd5dd9b2734", "score": "0.5563391", "text": "public static java.util.List literals()\r\n {\r\n return literals;\r\n }", "title": "" }, { "docid": "9531ddbe47c668fcc0aa383fdb5f0b24", "score": "0.55578583", "text": "public final JavaScriptParser.token_return token() throws RecognitionException {\r\n JavaScriptParser.token_return retval = new JavaScriptParser.token_return();\r\n retval.start = input.LT(1);\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token Identifier2=null;\r\n Token StringLiteral5=null;\r\n JavaScriptParser.reservedWord_return reservedWord1 = null;\r\n\r\n JavaScriptParser.punctuator_return punctuator3 = null;\r\n\r\n JavaScriptParser.numericLiteral_return numericLiteral4 = null;\r\n\r\n\r\n CommonTree Identifier2_tree=null;\r\n CommonTree StringLiteral5_tree=null;\r\n\r\n try {\r\n // C:\\\\Users\\\\goca\\\\git\\\\SSQSA-COP\\\\eCSTGenerator\\\\src\\\\Languages\\\\javaScript\\\\JavaScript.g:519:2: ( reservedWord | Identifier | punctuator | numericLiteral | StringLiteral )\r\n int alt1=5;\r\n switch ( input.LA(1) ) {\r\n case NULL:\r\n case TRUE:\r\n case FALSE:\r\n case BREAK:\r\n case CASE:\r\n case CATCH:\r\n case CONTINUE:\r\n case DEFAULT:\r\n case DELETE:\r\n case DO:\r\n case ELSE:\r\n case FINALLY:\r\n case FOR:\r\n case FUNCTION:\r\n case IF:\r\n case IN:\r\n case INSTANCEOF:\r\n case NEW:\r\n case RETURN:\r\n case SWITCH:\r\n case THIS:\r\n case THROW:\r\n case TRY:\r\n case TYPEOF:\r\n case VAR:\r\n case VOID:\r\n case WHILE:\r\n case WITH:\r\n case ABSTRACT:\r\n case BOOLEAN:\r\n case BYTE:\r\n case CHAR:\r\n case CLASS:\r\n case CONST:\r\n case DEBUGGER:\r\n case DOUBLE:\r\n case ENUM:\r\n case EXPORT:\r\n case EXTENDS:\r\n case FINAL:\r\n case FLOAT:\r\n case GOTO:\r\n case IMPLEMENTS:\r\n case IMPORT:\r\n case INT:\r\n case INTERFACE:\r\n case LONG:\r\n case NATIVE:\r\n case PACKAGE:\r\n case PRIVATE:\r\n case PROTECTED:\r\n case PUBLIC:\r\n case SHORT:\r\n case STATIC:\r\n case SUPER:\r\n case SYNCHRONIZED:\r\n case THROWS:\r\n case TRANSIENT:\r\n case VOLATILE:\r\n {\r\n alt1=1;\r\n }\r\n break;\r\n case Identifier:\r\n {\r\n alt1=2;\r\n }\r\n break;\r\n case LBRACE:\r\n case RBRACE:\r\n case LPAREN:\r\n case RPAREN:\r\n case LBRACK:\r\n case RBRACK:\r\n case DOT:\r\n case SEMIC:\r\n case COMMA:\r\n case LT:\r\n case GT:\r\n case LTE:\r\n case GTE:\r\n case EQ:\r\n case NEQ:\r\n case SAME:\r\n case NSAME:\r\n case ADD:\r\n case SUB:\r\n case MUL:\r\n case MOD:\r\n case INC:\r\n case DEC:\r\n case SHL:\r\n case SHR:\r\n case SHU:\r\n case AND:\r\n case OR:\r\n case XOR:\r\n case NOT:\r\n case INV:\r\n case LAND:\r\n case LOR:\r\n case QUE:\r\n case COLON:\r\n case ASSIGN:\r\n case ADDASS:\r\n case SUBASS:\r\n case MULASS:\r\n case MODASS:\r\n case SHLASS:\r\n case SHRASS:\r\n case SHUASS:\r\n case ANDASS:\r\n case ORASS:\r\n case XORASS:\r\n case DIV:\r\n case DIVASS:\r\n {\r\n alt1=3;\r\n }\r\n break;\r\n case DecimalLiteral:\r\n case OctalIntegerLiteral:\r\n case HexIntegerLiteral:\r\n {\r\n alt1=4;\r\n }\r\n break;\r\n case StringLiteral:\r\n {\r\n alt1=5;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 1, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt1) {\r\n case 1 :\r\n // C:\\\\Users\\\\goca\\\\git\\\\SSQSA-COP\\\\eCSTGenerator\\\\src\\\\Languages\\\\javaScript\\\\JavaScript.g:519:4: reservedWord\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n pushFollow(FOLLOW_reservedWord_in_token2097);\r\n reservedWord1=reservedWord();\r\n\r\n state._fsp--;\r\n\r\n adaptor.addChild(root_0, reservedWord1.getTree());\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\goca\\\\git\\\\SSQSA-COP\\\\eCSTGenerator\\\\src\\\\Languages\\\\javaScript\\\\JavaScript.g:520:4: Identifier\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n Identifier2=(Token)match(input,Identifier,FOLLOW_Identifier_in_token2102); \r\n Identifier2_tree = (CommonTree)adaptor.create(Identifier2);\r\n adaptor.addChild(root_0, Identifier2_tree);\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:\\\\Users\\\\goca\\\\git\\\\SSQSA-COP\\\\eCSTGenerator\\\\src\\\\Languages\\\\javaScript\\\\JavaScript.g:521:4: punctuator\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n pushFollow(FOLLOW_punctuator_in_token2107);\r\n punctuator3=punctuator();\r\n\r\n state._fsp--;\r\n\r\n adaptor.addChild(root_0, punctuator3.getTree());\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:\\\\Users\\\\goca\\\\git\\\\SSQSA-COP\\\\eCSTGenerator\\\\src\\\\Languages\\\\javaScript\\\\JavaScript.g:522:4: numericLiteral\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n pushFollow(FOLLOW_numericLiteral_in_token2112);\r\n numericLiteral4=numericLiteral();\r\n\r\n state._fsp--;\r\n\r\n adaptor.addChild(root_0, numericLiteral4.getTree());\r\n\r\n }\r\n break;\r\n case 5 :\r\n // C:\\\\Users\\\\goca\\\\git\\\\SSQSA-COP\\\\eCSTGenerator\\\\src\\\\Languages\\\\javaScript\\\\JavaScript.g:523:4: StringLiteral\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n StringLiteral5=(Token)match(input,StringLiteral,FOLLOW_StringLiteral_in_token2117); \r\n StringLiteral5_tree = (CommonTree)adaptor.create(StringLiteral5);\r\n adaptor.addChild(root_0, StringLiteral5_tree);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\r\n\r\n }\r\n finally {\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "2df2b8d4b4d803a0a0344a59df9126f6", "score": "0.5555377", "text": "public boolean isLiteralNode() {\n return true;\n }", "title": "" }, { "docid": "a1c556f05791871955678315367f5e8e", "score": "0.55479395", "text": "public final smaliParser.literal_return literal() throws RecognitionException {\n smaliParser.literal_return retval = new smaliParser.literal_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token LONG_LITERAL98=null;\n Token SHORT_LITERAL100=null;\n Token BYTE_LITERAL101=null;\n Token CHAR_LITERAL104=null;\n Token STRING_LITERAL105=null;\n Token BOOL_LITERAL106=null;\n Token NULL_LITERAL107=null;\n smaliParser.integer_literal_return integer_literal99 = null;\n\n smaliParser.float_literal_return float_literal102 = null;\n\n smaliParser.double_literal_return double_literal103 = null;\n\n smaliParser.array_literal_return array_literal108 = null;\n\n smaliParser.subannotation_return subannotation109 = null;\n\n smaliParser.type_field_method_literal_return type_field_method_literal110 = null;\n\n smaliParser.enum_literal_return enum_literal111 = null;\n\n\n CommonTree LONG_LITERAL98_tree=null;\n CommonTree SHORT_LITERAL100_tree=null;\n CommonTree BYTE_LITERAL101_tree=null;\n CommonTree CHAR_LITERAL104_tree=null;\n CommonTree STRING_LITERAL105_tree=null;\n CommonTree BOOL_LITERAL106_tree=null;\n CommonTree NULL_LITERAL107_tree=null;\n\n try {\n // org/jf/smali/smaliParser.g:500:2: ( LONG_LITERAL | integer_literal | SHORT_LITERAL | BYTE_LITERAL | float_literal | double_literal | CHAR_LITERAL | STRING_LITERAL | BOOL_LITERAL | NULL_LITERAL | array_literal | subannotation | type_field_method_literal | enum_literal )\n int alt15=14;\n switch ( input.LA(1) ) {\n case LONG_LITERAL:\n {\n alt15=1;\n }\n break;\n case POSITIVE_INTEGER_LITERAL:\n case NEGATIVE_INTEGER_LITERAL:\n case INTEGER_LITERAL:\n {\n alt15=2;\n }\n break;\n case SHORT_LITERAL:\n {\n alt15=3;\n }\n break;\n case BYTE_LITERAL:\n {\n alt15=4;\n }\n break;\n case FLOAT_LITERAL_OR_ID:\n case FLOAT_LITERAL:\n {\n alt15=5;\n }\n break;\n case DOUBLE_LITERAL_OR_ID:\n case DOUBLE_LITERAL:\n {\n alt15=6;\n }\n break;\n case CHAR_LITERAL:\n {\n alt15=7;\n }\n break;\n case STRING_LITERAL:\n {\n alt15=8;\n }\n break;\n case BOOL_LITERAL:\n {\n alt15=9;\n }\n break;\n case NULL_LITERAL:\n {\n alt15=10;\n }\n break;\n case OPEN_BRACE:\n {\n alt15=11;\n }\n break;\n case SUBANNOTATION_DIRECTIVE:\n {\n alt15=12;\n }\n break;\n case PRIMITIVE_TYPE:\n case VOID_TYPE:\n case CLASS_DESCRIPTOR:\n case ARRAY_DESCRIPTOR:\n {\n alt15=13;\n }\n break;\n case ENUM_DIRECTIVE:\n {\n alt15=14;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 15, 0, input);\n\n throw nvae;\n }\n\n switch (alt15) {\n case 1 :\n // org/jf/smali/smaliParser.g:500:4: LONG_LITERAL\n {\n root_0 = (CommonTree)adaptor.nil();\n\n LONG_LITERAL98=(Token)match(input,LONG_LITERAL,FOLLOW_LONG_LITERAL_in_literal1620); \n LONG_LITERAL98_tree = (CommonTree)adaptor.create(LONG_LITERAL98);\n adaptor.addChild(root_0, LONG_LITERAL98_tree);\n\n\n }\n break;\n case 2 :\n // org/jf/smali/smaliParser.g:501:4: integer_literal\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_integer_literal_in_literal1625);\n integer_literal99=integer_literal();\n\n state._fsp--;\n\n adaptor.addChild(root_0, integer_literal99.getTree());\n\n }\n break;\n case 3 :\n // org/jf/smali/smaliParser.g:502:4: SHORT_LITERAL\n {\n root_0 = (CommonTree)adaptor.nil();\n\n SHORT_LITERAL100=(Token)match(input,SHORT_LITERAL,FOLLOW_SHORT_LITERAL_in_literal1630); \n SHORT_LITERAL100_tree = (CommonTree)adaptor.create(SHORT_LITERAL100);\n adaptor.addChild(root_0, SHORT_LITERAL100_tree);\n\n\n }\n break;\n case 4 :\n // org/jf/smali/smaliParser.g:503:4: BYTE_LITERAL\n {\n root_0 = (CommonTree)adaptor.nil();\n\n BYTE_LITERAL101=(Token)match(input,BYTE_LITERAL,FOLLOW_BYTE_LITERAL_in_literal1635); \n BYTE_LITERAL101_tree = (CommonTree)adaptor.create(BYTE_LITERAL101);\n adaptor.addChild(root_0, BYTE_LITERAL101_tree);\n\n\n }\n break;\n case 5 :\n // org/jf/smali/smaliParser.g:504:4: float_literal\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_float_literal_in_literal1640);\n float_literal102=float_literal();\n\n state._fsp--;\n\n adaptor.addChild(root_0, float_literal102.getTree());\n\n }\n break;\n case 6 :\n // org/jf/smali/smaliParser.g:505:4: double_literal\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_double_literal_in_literal1645);\n double_literal103=double_literal();\n\n state._fsp--;\n\n adaptor.addChild(root_0, double_literal103.getTree());\n\n }\n break;\n case 7 :\n // org/jf/smali/smaliParser.g:506:4: CHAR_LITERAL\n {\n root_0 = (CommonTree)adaptor.nil();\n\n CHAR_LITERAL104=(Token)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_literal1650); \n CHAR_LITERAL104_tree = (CommonTree)adaptor.create(CHAR_LITERAL104);\n adaptor.addChild(root_0, CHAR_LITERAL104_tree);\n\n\n }\n break;\n case 8 :\n // org/jf/smali/smaliParser.g:507:4: STRING_LITERAL\n {\n root_0 = (CommonTree)adaptor.nil();\n\n STRING_LITERAL105=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_literal1655); \n STRING_LITERAL105_tree = (CommonTree)adaptor.create(STRING_LITERAL105);\n adaptor.addChild(root_0, STRING_LITERAL105_tree);\n\n\n }\n break;\n case 9 :\n // org/jf/smali/smaliParser.g:508:4: BOOL_LITERAL\n {\n root_0 = (CommonTree)adaptor.nil();\n\n BOOL_LITERAL106=(Token)match(input,BOOL_LITERAL,FOLLOW_BOOL_LITERAL_in_literal1660); \n BOOL_LITERAL106_tree = (CommonTree)adaptor.create(BOOL_LITERAL106);\n adaptor.addChild(root_0, BOOL_LITERAL106_tree);\n\n\n }\n break;\n case 10 :\n // org/jf/smali/smaliParser.g:509:4: NULL_LITERAL\n {\n root_0 = (CommonTree)adaptor.nil();\n\n NULL_LITERAL107=(Token)match(input,NULL_LITERAL,FOLLOW_NULL_LITERAL_in_literal1665); \n NULL_LITERAL107_tree = (CommonTree)adaptor.create(NULL_LITERAL107);\n adaptor.addChild(root_0, NULL_LITERAL107_tree);\n\n\n }\n break;\n case 11 :\n // org/jf/smali/smaliParser.g:510:4: array_literal\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_array_literal_in_literal1670);\n array_literal108=array_literal();\n\n state._fsp--;\n\n adaptor.addChild(root_0, array_literal108.getTree());\n\n }\n break;\n case 12 :\n // org/jf/smali/smaliParser.g:511:4: subannotation\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_subannotation_in_literal1675);\n subannotation109=subannotation();\n\n state._fsp--;\n\n adaptor.addChild(root_0, subannotation109.getTree());\n\n }\n break;\n case 13 :\n // org/jf/smali/smaliParser.g:512:4: type_field_method_literal\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_type_field_method_literal_in_literal1680);\n type_field_method_literal110=type_field_method_literal();\n\n state._fsp--;\n\n adaptor.addChild(root_0, type_field_method_literal110.getTree());\n\n }\n break;\n case 14 :\n // org/jf/smali/smaliParser.g:513:4: enum_literal\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_enum_literal_in_literal1685);\n enum_literal111=enum_literal();\n\n state._fsp--;\n\n adaptor.addChild(root_0, enum_literal111.getTree());\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "title": "" }, { "docid": "c998fdddb683fe86dbc28daff69b7d81", "score": "0.5537537", "text": "StringLiteralExpCS createStringLiteralExpCS();", "title": "" }, { "docid": "9ec2a2c9f886eeff6920aea88bd97f82", "score": "0.5529353", "text": "private void numberOrObjectDeclaration(){\n SymbolEntry list = identifierList();\n accept(Token.COLON, \"':' expected\");\n if (token.code == Token.CONST){\n list.setRole(SymbolEntry.CONST);\n token = scanner.nextToken();\n accept(Token.GETS, \"':=' expected\");\n expression();\n }\n else{\n list.setRole(SymbolEntry.VAR);\n typeDefinition();\n }\n accept(Token.SEMI, \"semicolon expected\");\n }", "title": "" }, { "docid": "efb82e3a02bf8c6aad9c5ef360f4f26f", "score": "0.5517974", "text": "TupleLiteralExpCS createTupleLiteralExpCS();", "title": "" }, { "docid": "87d9e6d620cabbcb524af141cf13d3b7", "score": "0.55163014", "text": "CSXStringLitToken(String text,int line,int col) {\n\t\tsuper(line,col);\n\t\tstringLitteralText = text;\n\t\tStringBuilder stringBuilder = new StringBuilder(text.length());\n\t\tfor(int i = 0; i < text.length(); ++i){\n\t\t\tif(text.charAt(i) != '\\\\'){\n\t\t\t\tstringBuilder.append(text.charAt(i));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tchar charValue = '\\0';\n\t\t\t\ti++; \t\t\t\t\t\t//skip over the escape character.\n\t\t\t\tswitch(text.charAt(i)){\n\t\t\t\t\tcase 'n':\n\t\t\t\t\t\tstringBuilder.append('\\n');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 't':\n\t\t\t\t\t\tcharValue = '\\t';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '\\'':\n\t\t\t\t\t\tcharValue = '\\'';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '\\\\':\n\t\t\t\t\t\tcharValue = '\\\\';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '\\\"':\n\t\t\t\t\t\tcharValue = '\\\"';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tSystem.out.println(\"unrecognized token type: \" + text.charAt(i));\n\t\t\t\t\t\tcharValue = ' '; \n\t\t\t\t}\n\t\t\t\tstringBuilder.append(charValue);\n\t\t\t}\n\t\t}\n\t\tstringText = stringBuilder.toString();\n\t}", "title": "" }, { "docid": "1efa16d03d7c3c65f5e28f09f9f96a4e", "score": "0.5509581", "text": "private void addOperator ( char c )\n\t{\n\t\t// initialize the token tag with a dummy var\n\t\tTokenTag tag = TokenTag.NONE;\n\t\t\n\t\tswitch ( c )\n\t\t{\n\t\t\tcase '(':\n\t\t\t\ttag = TokenTag.LPARA;\n\t\t\t\tbreak;\n\t\t\tcase ')':\n\t\t\t\ttag = TokenTag.RPARA;\n\t\t\t\tbreak;\n\t\t\tcase '+':\n\t\t\t\ttag = TokenTag.PLUS;\n\t\t\t\tbreak;\n\t\t\tcase '-':\n\t\t\t\ttag = TokenTag.MINUS;\n\t\t\t\tbreak;\n\t\t\tcase '*':\n\t\t\t\ttag = TokenTag.MULTIPLY;\n\t\t\t\tbreak;\n\t\t\tcase '/':\n\t\t\t\ttag = TokenTag.DIVIDE;\n\t\t\t\tbreak;\n\t\t\tcase '%':\n\t\t\t\ttag = TokenTag.MOD;\n\t\t\t\tbreak;\n\t\t\tcase '<':\n\t\t\t\ttag = TokenTag.LT;\n\t\t\tcase '>':\n\t\t\t\ttag = TokenTag.GT;\n\t\t\t\tbreak;\n\t\t\tcase '=':\n\t\t\t\ttag = TokenTag.ASSIGN;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn;\n\t\t}\n\t\t// add it to the token list\n\t\ttokens.add(new Token(Character.toString(c), tag));\n\t}", "title": "" }, { "docid": "7994990c548fa493a72875efcf8b759c", "score": "0.55039626", "text": "CharSequence token();", "title": "" }, { "docid": "37a836b84eaeded909e6b8de00f3f33f", "score": "0.5501221", "text": "private SEM_STATE(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "title": "" }, { "docid": "f621d218b6d88ce90091a138fbb02b5c", "score": "0.54824513", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n SystemInUtil.addInputLine(\"Expecting constant symbol as term\");\n StringReader stringReader0 = new StringReader(\"E?h\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n streamTokenizer0.nextToken();\n JSTerm jSTerm0 = new JSTerm(streamTokenizer0);\n jSTerm0.print();\n assertEquals(\"[?%%%]\", jSTerm0.toString());\n assertTrue(jSTerm0.isVariable());\n assertFalse(jSTerm0.isFunction());\n assertFalse(jSTerm0.isConstant());\n assertFalse(jSTerm0.isEval());\n }", "title": "" }, { "docid": "8a59659cd0ccc6f531f1a21d20203fbc", "score": "0.5479897", "text": "@Override\n public Void visitCharLiteralNode(WaccAstNode node) {\n instructions.add(new SingOpDataIns(DataInsOpcode.MOV, generalRegs.peek(),\n new CharLit(((CharLiteralNode) node).getLiteral())));\n return null;\n }", "title": "" }, { "docid": "b6a35c5eb2a70e611b8f86549e06c2fd", "score": "0.54705554", "text": "public Token() {\n\t\tdata = null;\n\t\ttype = Type.NIL.name();\n\t}", "title": "" }, { "docid": "f40eb291dfca375c4c9e2a57189db955", "score": "0.5455201", "text": "private NoobLiteral() {\n super(\"N00B\");\n }", "title": "" }, { "docid": "a734a71d7481fb30d467dc62b1794223", "score": "0.54525816", "text": "private ms_Type(int value, String name, String literal) {\r\n this.value = value;\r\n this.name = name;\r\n this.literal = literal;\r\n }", "title": "" }, { "docid": "f3cc924be5b6b4d8d630a7065b33b5cf", "score": "0.54486436", "text": "public LuaTokenLoader(LuaCharLoader luaCharLoader){\r\n\t\t\r\n\t\t/* Possibility\r\n\t\tSystem.getProperty(\"line.separator\");\r\n\t\tPattern pattern = Pattern.compile(fREGEXP, Pattern.COMMENTS);\r\n\t\t*/\r\n\t\t\r\n\t\tLogger.log(Priority.INFO, \"LuaTokenLoader\", \"LuaTokenLoader\", \"start\", \"start\");\r\n\t\t\r\n\t\tthis.luaCharLoader = luaCharLoader;\r\n\t\t\r\n\t\tthis.tokenIs = new TokenIs();\r\n\t\t\r\n\t\tthis.state = OTHER;\r\n\t\t\r\n\t\tthis.token = new ArrayList<String>();\r\n\t\tthis.tokenPointer = MINUS_ONE;\r\n\t\t\r\n\t\tthis.loadTokens();\r\n\t\t\r\n\t\tLogger.log(Priority.INFO, \"LuaTokenLoader\", \"LuaTokenLoader\", \"end\", \"end\");\r\n\t}", "title": "" }, { "docid": "59e8749dc31cec209f97b4e3da034c20", "score": "0.5427806", "text": "private void crearNuevaParteLiteral(){\n parteLiteral = String.valueOf(primeraLetra) + String.valueOf(segundaLetra) + String.valueOf(terceraLetra);\n }", "title": "" }, { "docid": "32062c2682cab5dfbcd9a739de4e6de2", "score": "0.54244465", "text": "public int nextToken() {\n // Skip any leading white space\n while (index < length && Character.isWhitespace(expr[index])) {\n index++;\n }\n // Clear the current token val\n tokenVal = null;\n if (index == length) return TOKEN_END; // End of string\n int start = index;\n char currentChar = expr[index];\n char nextChar = (char)0;\n index++;\n if (index < length) nextChar = expr[index];\n // Check for a known token start\n switch (currentChar) {\n case '(' -> {\n return TOKEN_LBRACE;\n }\n case ')' -> {\n return TOKEN_RBRACE;\n }\n case '=' -> {\n return TOKEN_EQ;\n }\n case '!' -> {\n if (nextChar == '=') {\n index++;\n return TOKEN_NOT_EQ;\n }\n return TOKEN_NOT;\n }\n case '|' -> {\n if (nextChar == '|') {\n index++;\n return TOKEN_OR;\n }\n }\n case '&' -> {\n if (nextChar == '&') {\n index++;\n return TOKEN_AND;\n }\n }\n case '>' -> {\n if (nextChar == '=') {\n index++;\n return TOKEN_GE; // Greater than or equal\n }\n return TOKEN_GT; // Greater than\n }\n case '<' -> {\n if (nextChar == '=') {\n index++;\n return TOKEN_LE; // Less than or equal\n }\n return TOKEN_LT; // Less than\n }\n default -> { }\n // Otherwise it's a string\n }\n int end = index;\n if (currentChar == '\"' || currentChar == '\\'') {\n // It's a quoted string and the end is the next unescaped quote\n char endChar = currentChar;\n boolean escaped = false;\n start++;\n for (; index < length; index++) {\n if (expr[index] == '\\\\' && !escaped) {\n escaped = true;\n continue;\n }\n if (expr[index] == endChar && !escaped) break;\n escaped = false;\n }\n end = index;\n index++; // Skip the end quote\n }\n else if (currentChar == '/') {\n // It's a regular expression and the end is the next unescaped /\n char endChar = currentChar;\n boolean escaped = false;\n for (; index < length; index++) {\n if (expr[index] == '\\\\' && !escaped) {\n escaped = true;\n continue;\n }\n if (expr[index] == endChar && !escaped) break;\n escaped = false;\n }\n end = ++index;\n }\n else {\n // End is the next whitespace character\n for (; index < length; index++) {\n if (isMetaChar(expr[index])) break;\n }\n end = index;\n }\n // Extract the string from the array\n this.tokenVal = new String(expr, start, end - start);\n return TOKEN_STRING;\n }", "title": "" }, { "docid": "f0834d2f395b26e38208736136c531ee", "score": "0.5419666", "text": "@Override\n\tpublic void defineTokens(Grammar root) {\n\n\t\tassignTokenIDTypes(root);\n\n\t\taliasTokenIDsAndLiterals(root);\n\n\t\tassignStringTypes(root);\n\n/*\n\tSystem.out.println(\"stringLiterals=\"+stringLiterals);\n\tSystem.out.println(\"tokens=\"+tokens);\n\tSystem.out.println(\"aliases=\"+aliases);\n*/\n\t\tdefineTokenNamesAndLiteralsInGrammar(root);\n\t}", "title": "" }, { "docid": "36717ff44f3de6ae80cc95c24882d888", "score": "0.5415386", "text": "public CodeTokenEnumSubSet<T_KEYWORD> typeLiterals();", "title": "" }, { "docid": "5603ce161cd987b74e47f89d21581ce4", "score": "0.541139", "text": "private JsonConstant next(JsonConstant hint) throws IOException, JsonEndOfStreamException {\n // If we have a binary stream, then ensure that it is closed first.\n // Closing it consumes it if it hasn't been\n // fully consumed yet\n if (currentToken == BINARY_STREAM && current instanceof InputStream) {\n ((InputStream) current).close();\n }\n\n // Skip through all whitespace and comments\n try {\n readWhitespaceAndComments();\n } catch (JsonEndOfStreamException e) {\n return WHITESPACE;\n }\n markPosition(0);\n int startLine = getLineNum();\n int startCol = getColNum();\n\n // Read and dispatch the next character\n char c = readChar();\n JsonConstant token = JsonConstant.valueOf(c);\n switch (token) {\n case OBJECT_START:\n if (hint == FUNCTION_BODY) {\n current = readFunctionBody();\n token = FUNCTION_BODY;\n }\n\n // Don't fully read the object if recursion is off\n else if (recursiveRead) {\n current = readObject();\n token = OBJECT;\n }\n break;\n case ARRAY_START:\n\n // Don't fully read the array if recursion is off\n if (recursiveRead) {\n current = readArray();\n token = ARRAY;\n }\n break;\n case ENTRY_SEPARATOR:\n current = null;\n break;\n case COMMENT_DELIM:\n current = readComment();\n break;\n case MULTICOMMENT_DELIM:\n throw new JsonStreamParseException(\"Illegal '*' token\");\n case LITERAL_START:\n unreadChar(c);\n if (hint == STRING || Character.isJavaIdentifierStart(c)) {\n String result = readLiteralString();\n token = null;\n // FIXME: we should probably check for more key words here.\n if (result.equals(\"true\")) {\n current = Boolean.TRUE;\n token = BOOLEAN;\n } else if (result.equals(\"false\")) {\n current = Boolean.FALSE;\n token = BOOLEAN;\n } else if (result.equals(\"function\")) {\n current = readFunction();\n token = FUNCTION;\n } else if (result.equals(\"null\")) {\n current = null;\n token = NULL;\n } else if (result.equals(\"class\")) {\n // Doh!\n throw new JsonStreamParseException(\"Reserved word used as a literal\", result);\n } else if (result.equals(\"Infinity\")) {\n current = Double.POSITIVE_INFINITY;\n token = NUMBER;\n } else if (result.equals(\"NaN\")) {\n current = Double.NaN;\n token = NUMBER;\n } \n if (hint == STRING || hint == LITERAL) {\n if (token != null) {\n // Guaranteed to fail.\n assertTokenType(STRING, token);\n }\n current = result;\n token = STRING;\n }\n if (token == null) {\n throw new JsonStreamParseException(\"Invalid literal value\", result);\n }\n } else {\n current = readNumber();\n token = NUMBER;\n }\n break;\n case FUNCTION_ARGS_START:\n case FUNCTION_ARGS_END:\n break;\n case QUOTE_SINGLE:\n case QUOTE_DOUBLE:\n current = readString(token, false);\n token = STRING;\n break;\n case BINARY_STREAM: {\n if (binaryInput != null) {\n current = new LimitedLengthInputStream(binaryInput, binaryInput.readLong(), BINARY_STREAM_FINISHED_LISTENER);\n } else {\n throw new JsonStreamParseException(\n \"Binary data encountered in a JsonStreamReader that was not constructed to support binary data\");\n }\n }\n default:\n }\n\n setPosition(startLine, startCol);\n currentToken = token;\n return token;\n }", "title": "" }, { "docid": "b927d65c99f5fb96d7537821ae2c027c", "score": "0.5408058", "text": "private Token getNextToken() {\n Token foundToken = null;\n\n if (file.isOnLastLine() && !file.hasNextChar()) {\n foundToken = new Token(TokenType.MP_EOF, \"EOF\",\n file.getLineIndex(), file.getColumnIndex());\n } else {\n char nextChar = file.getCurrentCharacter();\n\n FSA tokenFinder = null;\n\n switch (nextChar) {\n case 'a':\n case 'b':\n case 'c':\n case 'd':\n case 'e':\n case 'f':\n case 'g':\n case 'h':\n case 'i':\n case 'j':\n case 'k':\n case 'l':\n case 'm':\n case 'n':\n case 'o':\n case 'p':\n case 'q':\n case 'r':\n case 's':\n case 't':\n case 'u':\n case 'v':\n case 'w':\n case 'x':\n case 'y':\n case 'z':\n case 'A':\n case 'B':\n case 'C':\n case 'D':\n case 'E':\n case 'F':\n case 'G':\n case 'H':\n case 'I':\n case 'J':\n case 'K':\n case 'L':\n case 'M':\n case 'N':\n case 'O':\n case 'P':\n case 'Q':\n case 'R':\n case 'S':\n case 'T':\n case 'U':\n case 'V':\n case 'W':\n case 'X':\n case 'Y':\n case 'Z':\n case '_':\n tokenFinder = new AlphaFSA();\n break;\n case '0':\n case '1':\n case '2':\n case '3':\n case '4':\n case '5':\n case '6':\n case '7':\n case '8':\n case '9':\n tokenFinder = new NumeralFSA();\n break;\n case '\\'':\n tokenFinder = new LiteralFSA();\n break;\n case '.':\n case ',':\n case ';':\n case '(':\n case ')':\n case '=':\n case '>':\n case '<':\n case '+':\n case '-':\n case '*':\n case '/': //added for div vs / division\n case ':':\n tokenFinder = new SymbolFSA();\n break;\n case ' ':\n case '\\t':\n tokenFinder = new WhitespaceFSA();\n break;\n case '{':\n tokenFinder = new CommentFSA();\n break;\n default:\n tokenFinder = null;\n break;\n }\n\n if (tokenFinder != null) {\n // System.out.println(\"looking for token with : \"\n // + tokenFinder.getClass().getName());\n foundToken = tokenFinder.getToken(file);\n\n } else {\n nextChar = file.getNextCharacter(); //consume the error char\n foundToken = new Token(TokenType.MP_ERROR, \"\" + nextChar, file.getLineIndex(),\n file.getColumnIndex() - 1);\n }\n\n while (file.hasNextLine() && !file.hasNextChar()) {\n file.increaseLineIndex();\n }\n }\n return foundToken;\n }", "title": "" }, { "docid": "a0694567144338825bd58dda13c3133f", "score": "0.5393863", "text": "public mona(monaTokenManager tm) {\n if (jj_initialized_once) {\n System.out.println(\"ERROR: Second call to constructor of static parser. \");\n System.out.println(\" You must either use ReInit() or set the JavaCC option STATIC to false\");\n System.out.println(\" during parser generation.\");\n throw new Error();\n }\n jj_initialized_once = true;\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 40; i++) jj_la1[i] = -1;\n }", "title": "" }, { "docid": "87edcaaa52d1fab82309bdc24bab69b7", "score": "0.5382775", "text": "java.lang.String getSrcToken();", "title": "" }, { "docid": "87edcaaa52d1fab82309bdc24bab69b7", "score": "0.5382775", "text": "java.lang.String getSrcToken();", "title": "" }, { "docid": "a60ab8ce0c1e6bdd7c10a1387978b867", "score": "0.5377085", "text": "public final CNFLiteral literal(\n\t\tHashMap defs\n\t) throws RecognitionException, TokenStreamException {\n\t\tCNFLiteral l = null;\n\t\t\n\t\tToken s = null;\n\t\t\n\t\tFormula form = null;\n\t\t\n\t\t\n\t\ts = LT(1);\n\t\tmatch(SIGN);\n\t\tform=atom(defs);\n\t\tl = new CNFLiteral(form, s.getText().equals(\"++\"));\n\t\treturn l;\n\t}", "title": "" }, { "docid": "62acb17ed214743b65f8b3796f3ea43b", "score": "0.53728527", "text": "public Token() { this(new Complex(), INSTRUCTION.EMPTY); }", "title": "" }, { "docid": "631bfe50c74ef817cc0668646a42f42f", "score": "0.5364723", "text": "private static ExpressionNode makeCharConst (String tokenImage) {\r\n // See JLS 3.10.4\r\n\r\n String stripped = tokenImage.substring (1, tokenImage.length () - 1);\r\n String parsed = parseCharsSequence( stripped ) ;\r\n Assert.check( parsed.length() == 1 ) ;\r\n char value = parsed.charAt(0) ;\r\n return new ConstInt (tyChar, tokenImage, value);\r\n }", "title": "" }, { "docid": "ef0aa2aa28518371846826185b72e941", "score": "0.5356886", "text": "private void compileParameterList() {\n\n String symbolType = null;\n String symbolName = null;\n\n advance();\n if (tokenizer.tokenType()==TokenType.TOKEN_SYMBOL\n && tokenizer.symbol()==')') {\n return;\n }\n\n symbolType = compileType();\n advance();\n checkToken(TokenType.TOKEN_IDENTIFIER);\n symbolName = tokenizer.identifier();\n symbolTable.define(symbolName,symbolType,SymbolKind.ARG);\n advance();\n while (tokenizer.tokenType()==TokenType.TOKEN_SYMBOL\n && tokenizer.symbol()==',') {\n advance();\n symbolType = compileType();\n advance();\n checkToken(TokenType.TOKEN_IDENTIFIER);\n symbolName = compileIdentifier();\n symbolTable.define(symbolName,symbolType,SymbolKind.ARG);\n advance();\n }\n }", "title": "" }, { "docid": "7ad14847ada2fce9959b29e8bd6e301a", "score": "0.534996", "text": "private UsElementType(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "title": "" }, { "docid": "68b2a486794eb44293a63ec8984c40b4", "score": "0.5349174", "text": "Token mo57d();", "title": "" }, { "docid": "e924e463fdf201c0c63d71de943884a0", "score": "0.53387594", "text": "@SuppressWarnings(\"all\")\npublic interface X86_64SimParserConstants {\n\n /**\n * End of File.\n */\n int EOF = 0;\n /**\n * RegularExpression Id.\n */\n int MULTI_LINE_COMMENT = 4;\n /**\n * RegularExpression Id.\n */\n int SINGLE_LINE_COMMENT = 5;\n /**\n * RegularExpression Id.\n */\n int GLOBL = 6;\n /**\n * RegularExpression Id.\n */\n int ALIGN = 7;\n /**\n * RegularExpression Id.\n */\n int QUAD = 8;\n /**\n * RegularExpression Id.\n */\n int TEXT = 9;\n /**\n * RegularExpression Id.\n */\n int DATA = 10;\n /**\n * RegularExpression Id.\n */\n int SECTION = 11;\n /**\n * RegularExpression Id.\n */\n int TYPE = 12;\n /**\n * RegularExpression Id.\n */\n int SIZE = 13;\n /**\n * RegularExpression Id.\n */\n int IDENT = 14;\n /**\n * RegularExpression Id.\n */\n int CMP = 15;\n /**\n * RegularExpression Id.\n */\n int INC = 16;\n /**\n * RegularExpression Id.\n */\n int DEC = 17;\n /**\n * RegularExpression Id.\n */\n int ADD = 18;\n /**\n * RegularExpression Id.\n */\n int SUB = 19;\n /**\n * RegularExpression Id.\n */\n int MUL = 20;\n /**\n * RegularExpression Id.\n */\n int DIV = 21;\n /**\n * RegularExpression Id.\n */\n int XOR = 22;\n /**\n * RegularExpression Id.\n */\n int CQTO = 23;\n /**\n * RegularExpression Id.\n */\n int MOV = 24;\n /**\n * RegularExpression Id.\n */\n int CMOVL = 25;\n /**\n * RegularExpression Id.\n */\n int CMOVE = 26;\n /**\n * RegularExpression Id.\n */\n int CMOVG = 27;\n /**\n * RegularExpression Id.\n */\n int CMOVLE = 28;\n /**\n * RegularExpression Id.\n */\n int CMOVNE = 29;\n /**\n * RegularExpression Id.\n */\n int CMOVGE = 30;\n /**\n * RegularExpression Id.\n */\n int CMOVB = 31;\n /**\n * RegularExpression Id.\n */\n int CMOVA = 32;\n /**\n * RegularExpression Id.\n */\n int CMOVBE = 33;\n /**\n * RegularExpression Id.\n */\n int CMOVAE = 34;\n /**\n * RegularExpression Id.\n */\n int JL = 35;\n /**\n * RegularExpression Id.\n */\n int JE = 36;\n /**\n * RegularExpression Id.\n */\n int JG = 37;\n /**\n * RegularExpression Id.\n */\n int JLE = 38;\n /**\n * RegularExpression Id.\n */\n int JNE = 39;\n /**\n * RegularExpression Id.\n */\n int JGE = 40;\n /**\n * RegularExpression Id.\n */\n int JB = 41;\n /**\n * RegularExpression Id.\n */\n int JA = 42;\n /**\n * RegularExpression Id.\n */\n int JBE = 43;\n /**\n * RegularExpression Id.\n */\n int JAE = 44;\n /**\n * RegularExpression Id.\n */\n int JMP = 45;\n /**\n * RegularExpression Id.\n */\n int CALL = 46;\n /**\n * RegularExpression Id.\n */\n int LEAVE = 47;\n /**\n * RegularExpression Id.\n */\n int LEA = 48;\n /**\n * RegularExpression Id.\n */\n int PUSH = 49;\n /**\n * RegularExpression Id.\n */\n int RET = 50;\n /**\n * RegularExpression Id.\n */\n int SAR = 51;\n /**\n * RegularExpression Id.\n */\n int LPAREN = 52;\n /**\n * RegularExpression Id.\n */\n int RPAREN = 53;\n /**\n * RegularExpression Id.\n */\n int COMMA = 54;\n /**\n * RegularExpression Id.\n */\n int DOLLAR = 55;\n /**\n * RegularExpression Id.\n */\n int NL = 56;\n /**\n * RegularExpression Id.\n */\n int STAR = 57;\n /**\n * RegularExpression Id.\n */\n int INTEGER_LITERAL = 58;\n /**\n * RegularExpression Id.\n */\n int SCALE_LITERAL = 59;\n /**\n * RegularExpression Id.\n */\n int REGISTER = 60;\n /**\n * RegularExpression Id.\n */\n int RIP = 61;\n /**\n * RegularExpression Id.\n */\n int IDENTIFIER = 62;\n /**\n * RegularExpression Id.\n */\n int STRING = 63;\n /**\n * RegularExpression Id.\n */\n int LETTER = 64;\n /**\n * RegularExpression Id.\n */\n int DIGIT = 65;\n\n /**\n * Lexical state.\n */\n int DEFAULT = 0;\n\n /**\n * Literal token values.\n */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"<MULTI_LINE_COMMENT>\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\".globl\\\"\",\n \"\\\".align\\\"\",\n \"\\\".quad\\\"\",\n \"\\\".text\\\"\",\n \"\\\".data\\\"\",\n \"<SECTION>\",\n \"<TYPE>\",\n \"<SIZE>\",\n \"\\\".ident\\\"\",\n \"\\\"cmpq\\\"\",\n \"\\\"incq\\\"\",\n \"\\\"decq\\\"\",\n \"\\\"addq\\\"\",\n \"\\\"subq\\\"\",\n \"\\\"imulq\\\"\",\n \"\\\"idivq\\\"\",\n \"\\\"xorq\\\"\",\n \"\\\"cqto\\\"\",\n \"\\\"movq\\\"\",\n \"\\\"cmovl\\\"\",\n \"\\\"cmove\\\"\",\n \"\\\"cmovg\\\"\",\n \"\\\"cmovle\\\"\",\n \"\\\"cmovne\\\"\",\n \"\\\"cmovge\\\"\",\n \"\\\"cmovlb\\\"\",\n \"\\\"cmova\\\"\",\n \"\\\"cmovbe\\\"\",\n \"\\\"cmovae\\\"\",\n \"\\\"jl\\\"\",\n \"\\\"je\\\"\",\n \"\\\"jg\\\"\",\n \"\\\"jle\\\"\",\n \"\\\"jne\\\"\",\n \"\\\"jge\\\"\",\n \"\\\"jb\\\"\",\n \"\\\"ja\\\"\",\n \"\\\"jbe\\\"\",\n \"\\\"jae\\\"\",\n \"\\\"jmp\\\"\",\n \"\\\"call\\\"\",\n \"\\\"leave\\\"\",\n \"\\\"leaq\\\"\",\n \"\\\"pushq\\\"\",\n \"\\\"ret\\\"\",\n \"\\\"sarq\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\",\\\"\",\n \"\\\"$\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"*\\\"\",\n \"<INTEGER_LITERAL>\",\n \"<SCALE_LITERAL>\",\n \"<REGISTER>\",\n \"\\\"%rip\\\"\",\n \"<IDENTIFIER>\",\n \"<STRING>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"\\\":\\\"\",\n };\n\n}", "title": "" }, { "docid": "e8013310e36f056b1efad2c74c01bd7e", "score": "0.53379345", "text": "TupleTypeLiteralExpCS createTupleTypeLiteralExpCS();", "title": "" }, { "docid": "0e02d465fe541f9036e3b3e9764cbaa6", "score": "0.5337077", "text": "public interface Constants extends RuntimeConstants {\r\n\r\n /**\r\n * End of input\r\n */\r\n public static final int EOF = -1;\r\n\r\n /*\r\n * Flags\r\n */\r\n public static final int F_VERBOSE = 1 << 0;\r\n\r\n public static final int F_DUMP = 1 << 1;\r\n\r\n public static final int F_WARNINGS = 1 << 2;\r\n\r\n public static final int F_DEBUG = 1 << 3;\r\n\r\n public static final int F_OPTIMIZE = 1 << 4;\r\n\r\n public static final int F_DEPENDENCIES = 1 << 5;\r\n\r\n /*\r\n * Type codes\r\n */\r\n public static final int TC_BOOLEAN = 0;\r\n\r\n public static final int TC_BYTE = 1;\r\n\r\n public static final int TC_CHAR = 2;\r\n\r\n public static final int TC_SHORT = 3;\r\n\r\n public static final int TC_INT = 4;\r\n\r\n public static final int TC_LONG = 5;\r\n\r\n public static final int TC_FLOAT = 6;\r\n\r\n public static final int TC_DOUBLE = 7;\r\n\r\n public static final int TC_NULL = 8;\r\n\r\n public static final int TC_ARRAY = 9;\r\n\r\n public static final int TC_CLASS = 10;\r\n\r\n public static final int TC_VOID = 11;\r\n\r\n public static final int TC_METHOD = 12;\r\n\r\n public static final int TC_ERROR = 13;\r\n\r\n /*\r\n * Type Masks\r\n */\r\n public static final int TM_NULL = 1 << TC_NULL;\r\n\r\n public static final int TM_VOID = 1 << TC_VOID;\r\n\r\n public static final int TM_BOOLEAN = 1 << TC_BOOLEAN;\r\n\r\n public static final int TM_BYTE = 1 << TC_BYTE;\r\n\r\n public static final int TM_CHAR = 1 << TC_CHAR;\r\n\r\n public static final int TM_SHORT = 1 << TC_SHORT;\r\n\r\n public static final int TM_INT = 1 << TC_INT;\r\n\r\n public static final int TM_LONG = 1 << TC_LONG;\r\n\r\n public static final int TM_FLOAT = 1 << TC_FLOAT;\r\n\r\n public static final int TM_DOUBLE = 1 << TC_DOUBLE;\r\n\r\n public static final int TM_ARRAY = 1 << TC_ARRAY;\r\n\r\n public static final int TM_CLASS = 1 << TC_CLASS;\r\n\r\n public static final int TM_METHOD = 1 << TC_METHOD;\r\n\r\n public static final int TM_ERROR = 1 << TC_ERROR;\r\n\r\n public static final int TM_INT32 = TM_BYTE | TM_SHORT | TM_CHAR | TM_INT;\r\n\r\n public static final int TM_NUM32 = TM_INT32 | TM_FLOAT;\r\n\r\n public static final int TM_NUM64 = TM_LONG | TM_DOUBLE;\r\n\r\n public static final int TM_INTEGER = TM_INT32 | TM_LONG;\r\n\r\n public static final int TM_REAL = TM_FLOAT | TM_DOUBLE;\r\n\r\n public static final int TM_NUMBER = TM_INTEGER | TM_REAL;\r\n\r\n public static final int TM_REFERENCE = TM_ARRAY | TM_CLASS | TM_NULL;\r\n\r\n /*\r\n * Class status\r\n */\r\n public static final int CS_UNDEFINED = 0;\r\n\r\n public static final int CS_UNDECIDED = 1;\r\n\r\n public static final int CS_BINARY = 2;\r\n\r\n public static final int CS_SOURCE = 3;\r\n\r\n public static final int CS_PARSED = 4;\r\n\r\n public static final int CS_COMPILED = 5;\r\n\r\n public static final int CS_NOTFOUND = 6;\r\n\r\n /*\r\n * Attributes\r\n */\r\n public static final int ATT_ALL = -1;\r\n\r\n public static final int ATT_CODE = 1;\r\n\r\n /*\r\n * Number of bits used in file offsets\r\n */\r\n public static final int OFFSETBITS = 19;\r\n\r\n public static final int MAXFILESIZE = (1 << OFFSETBITS) - 1;\r\n\r\n public static final int MAXLINENUMBER = (1 << (32 - OFFSETBITS)) - 1;\r\n\r\n /*\r\n * Operators\r\n */\r\n public final int COMMA = 0;\r\n\r\n public final int ASSIGN = 1;\r\n\r\n public final int ASGMUL = 2;\r\n\r\n public final int ASGDIV = 3;\r\n\r\n public final int ASGREM = 4;\r\n\r\n public final int ASGADD = 5;\r\n\r\n public final int ASGSUB = 6;\r\n\r\n public final int ASGLSHIFT = 7;\r\n\r\n public final int ASGRSHIFT = 8;\r\n\r\n public final int ASGURSHIFT = 9;\r\n\r\n public final int ASGBITAND = 10;\r\n\r\n public final int ASGBITOR = 11;\r\n\r\n public final int ASGBITXOR = 12;\r\n\r\n public final int COND = 13;\r\n\r\n public final int OR = 14;\r\n\r\n public final int AND = 15;\r\n\r\n public final int BITOR = 16;\r\n\r\n public final int BITXOR = 17;\r\n\r\n public final int BITAND = 18;\r\n\r\n public final int NE = 19;\r\n\r\n public final int EQ = 20;\r\n\r\n public final int GE = 21;\r\n\r\n public final int GT = 22;\r\n\r\n public final int LE = 23;\r\n\r\n public final int LT = 24;\r\n\r\n public final int INSTANCEOF = 25;\r\n\r\n public final int LSHIFT = 26;\r\n\r\n public final int RSHIFT = 27;\r\n\r\n public final int URSHIFT = 28;\r\n\r\n public final int ADD = 29;\r\n\r\n public final int SUB = 30;\r\n\r\n public final int DIV = 31;\r\n\r\n public final int REM = 32;\r\n\r\n public final int MUL = 33;\r\n\r\n public final int CAST = 34; // (x)y\r\n\r\n public final int POS = 35; // +x\r\n\r\n public final int NEG = 36; // -x\r\n\r\n public final int NOT = 37;\r\n\r\n public final int BITNOT = 38;\r\n\r\n public final int PREINC = 39; // ++x\r\n\r\n public final int PREDEC = 40; // --x\r\n\r\n public final int NEWARRAY = 41;\r\n\r\n public final int NEWINSTANCE = 42;\r\n\r\n public final int NEWFROMNAME = 43;\r\n\r\n public final int POSTINC = 44; // x++\r\n\r\n public final int POSTDEC = 45; // x--\r\n\r\n public final int FIELD = 46;\r\n\r\n public final int METHOD = 47; // x(y)\r\n\r\n public final int ARRAYACCESS = 48; // x[y]\r\n\r\n public final int NEW = 49;\r\n\r\n public final int INC = 50;\r\n\r\n public final int DEC = 51;\r\n\r\n public final int CONVERT = 55; // implicit conversion\r\n\r\n public final int EXPR = 56; // (x)\r\n\r\n public final int ARRAY = 57; // {x, y, ...}\r\n\r\n public final int GOTO = 58;\r\n\r\n /*\r\n * Value tokens\r\n */\r\n public final int IDENT = 60;\r\n\r\n public final int BOOLEANVAL = 61;\r\n\r\n public final int BYTEVAL = 62;\r\n\r\n public final int CHARVAL = 63;\r\n\r\n public final int SHORTVAL = 64;\r\n\r\n public final int INTVAL = 65;\r\n\r\n public final int LONGVAL = 66;\r\n\r\n public final int FLOATVAL = 67;\r\n\r\n public final int DOUBLEVAL = 68;\r\n\r\n public final int STRINGVAL = 69;\r\n\r\n /*\r\n * Type keywords\r\n */\r\n public final int BYTE = 70;\r\n\r\n public final int CHAR = 71;\r\n\r\n public final int SHORT = 72;\r\n\r\n public final int INT = 73;\r\n\r\n public final int LONG = 74;\r\n\r\n public final int FLOAT = 75;\r\n\r\n public final int DOUBLE = 76;\r\n\r\n public final int VOID = 77;\r\n\r\n public final int BOOLEAN = 78;\r\n\r\n /*\r\n * Expression keywords\r\n */\r\n public final int TRUE = 80;\r\n\r\n public final int FALSE = 81;\r\n\r\n public final int THIS = 82;\r\n\r\n public final int SUPER = 83;\r\n\r\n public final int NULL = 84;\r\n\r\n /*\r\n * Statement keywords\r\n */\r\n public final int IF = 90;\r\n\r\n public final int ELSE = 91;\r\n\r\n public final int FOR = 92;\r\n\r\n public final int WHILE = 93;\r\n\r\n public final int DO = 94;\r\n\r\n public final int SWITCH = 95;\r\n\r\n public final int CASE = 96;\r\n\r\n public final int DEFAULT = 97;\r\n\r\n public final int BREAK = 98;\r\n\r\n public final int CONTINUE = 99;\r\n\r\n public final int RETURN = 100;\r\n\r\n public final int TRY = 101;\r\n\r\n public final int CATCH = 102;\r\n\r\n public final int FINALLY = 103;\r\n\r\n public final int THROW = 104;\r\n\r\n public final int STAT = 105;\r\n\r\n public final int EXPRESSION = 106;\r\n\r\n public final int DECLARATION = 107;\r\n\r\n public final int VARDECLARATION = 108;\r\n\r\n /*\r\n * Declaration keywords\r\n */\r\n public final int IMPORT = 110;\r\n\r\n public final int CLASS = 111;\r\n\r\n public final int EXTENDS = 112;\r\n\r\n public final int IMPLEMENTS = 113;\r\n\r\n public final int INTERFACE = 114;\r\n\r\n public final int PACKAGE = 115;\r\n\r\n /*\r\n * Modifier keywords\r\n */\r\n public final int PRIVATE = 120;\r\n\r\n public final int PUBLIC = 121;\r\n\r\n public final int PROTECTED = 122;\r\n\r\n public final int CONST = 123;\r\n\r\n public final int STATIC = 124;\r\n\r\n public final int TRANSIENT = 125;\r\n\r\n public final int SYNCHRONIZED = 126;\r\n\r\n public final int NATIVE = 127;\r\n\r\n public final int FINAL = 128;\r\n\r\n public final int VOLATILE = 129;\r\n\r\n public final int ABSTRACT = 130;\r\n\r\n public final int STRICT = 165;\r\n\r\n /*\r\n * Punctuation\r\n */\r\n public final int SEMICOLON = 135;\r\n\r\n public final int COLON = 136;\r\n\r\n public final int QUESTIONMARK = 137;\r\n\r\n public final int LBRACE = 138;\r\n\r\n public final int RBRACE = 139;\r\n\r\n public final int LPAREN = 140;\r\n\r\n public final int RPAREN = 141;\r\n\r\n public final int LSQBRACKET = 142;\r\n\r\n public final int RSQBRACKET = 143;\r\n\r\n public final int THROWS = 144;\r\n\r\n /*\r\n * Special tokens\r\n */\r\n public final int ERROR = 145; // an error\r\n\r\n public final int COMMENT = 146; // not used anymore.\r\n\r\n public final int TYPE = 147;\r\n\r\n public final int LENGTH = 148;\r\n\r\n public final int INLINERETURN = 149;\r\n\r\n public final int INLINEMETHOD = 150;\r\n\r\n public final int INLINENEWINSTANCE = 151;\r\n\r\n /*\r\n * Added for jasm\r\n */\r\n public final int METHODREF = 152;\r\n\r\n public final int FIELDREF = 153;\r\n\r\n public final int STACK = 154;\r\n\r\n public final int LOCAL = 155;\r\n\r\n public final int CPINDEX = 156;\r\n\r\n public final int CPNAME = 157;\r\n\r\n public final int SIGN = 158;\r\n\r\n public final int BITS = 159;\r\n\r\n public final int INF = 160;\r\n\r\n public final int NAN = 161;\r\n\r\n public final int INNERCLASS = 162;\r\n\r\n public final int OF = 163;\r\n\r\n public final int SYNTHETIC = 164;\r\n\r\n // last used=165;\r\n\r\n /*\r\n * Operator precedence\r\n */\r\n public static final int opPrecedence[] = { 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 13, 14, 15,\r\n 16, 17, 18, 18, 19, 19, 19, 19, 19, 20, 20, 20, 21, 21, 22, 22, 22, 23, 24, 24, 24, 24, 24, 24, 25, 25,\r\n 26, 26, 26, 26, 26, 26 };\r\n\r\n /*\r\n * Operator names\r\n */\r\n public static final String opNames[] = { \",\", \"=\", \"*=\", \"/=\", \"%=\", \"+=\", \"-=\", \"<<=\", \">>=\", \"<<<=\", \"&=\",\r\n \"|=\", \"^=\", \"?:\", \"||\", \"&&\", \"|\", \"^\", \"&\", \"!=\", \"==\", \">=\", \">\", \"<=\", \"<\", \"instanceof\", \"<<\",\r\n \">>\", \"<<<\", \"+\", \"-\", \"/\", \"%\", \"*\", \"cast\", \"+\", \"-\", \"!\", \"~\", \"++\", \"--\", \"new\", \"new\", \"new\",\r\n \"++\", \"--\", \"field\", \"method\", \"[]\", \"new\", \"++\", \"--\", null, null, null,\r\n\r\n \"convert\", \"expr\", \"array\", \"goto\", null,\r\n\r\n \"Identifier\", \"Boolean\", \"Byte\", \"Char\", \"Short\", \"Integer\", \"Long\", \"Float\", \"Double\", \"String\",\r\n\r\n \"byte\", \"char\", \"short\", \"int\", \"long\", \"float\", \"double\", \"void\", \"boolean\", null,\r\n\r\n \"true\", \"false\", \"this\", \"super\", \"null\", null, null, null, null, null,\r\n\r\n \"if\", \"else\", \"for\", \"while\", \"do\", \"switch\", \"case\", \"default\", \"break\", \"continue\", \"return\", \"try\",\r\n \"catch\", \"finally\", \"throw\", \"stat\", \"expression\", \"declaration\", \"declaration\", null,\r\n\r\n \"import\", \"class\", \"extends\", \"implements\", \"interface\", \"package\", null, null, null, null,\r\n\r\n \"private\", \"public\", \"protected\", \"const\", \"static\", \"transient\", \"synchronized\", \"native\", \"final\",\r\n \"volatile\", \"abstract\", null, null, null, null,\r\n\r\n \";\", \":\", \"?\", \"{\", \"}\", \"(\", \")\", \"[\", \"]\", \"throws\", \"error\", \"comment\", \"type\", \"length\",\r\n \"inline-return\", \"inline-method\", \"inline-new\", \"method\", \"field\", \"stack\", \"locals\", \"CPINDEX\",\r\n \"CPName\", \"SIGN\", \"bits\", \"INF\", \"NaN\", \"InnerClass\", \"of\", \"synthetic\" };\r\n\r\n }", "title": "" }, { "docid": "dd209f237d17e8bd313a090e7eab138a", "score": "0.5332687", "text": "private void setToken(\n java.lang.String value) {\n value.getClass();\n \n token_ = value;\n }", "title": "" }, { "docid": "3219f6fc53977643a14c385ac08b83ab", "score": "0.53286076", "text": "String tokenType();", "title": "" }, { "docid": "49babbe88ed2d1e177f955e5e1b37231", "score": "0.53278446", "text": "public static void main( String args[] ) {\n ArrayList<TokenLabel> output = new ArrayList<>();\r\n output= LexerClass.test(\"class class1 {\\n\" +\r\n\"int value = 3;\\n\" +\r\n\"String text = \\\"int x = 1\\\";\\n\" +\r\n\"/*\\n\" +\r\n\"if (num < 1)\\n\" +\r\n\"num = num +1 ;\\n\" +\r\n\"*/\\n\" +\r\n\"private void print()\t\\n\" +\r\n\"{\\n\" +\r\n\"System.out.println(\\\"/*hello*/\\\");\t\\n\" +\r\n\"}\\n\" +\r\n\"};\");\r\n for (int i=0;i<output.size();i++){\r\n System.out.println(output.get(i));\r\n }\r\n \r\n Map<Integer,String> z=new HashMap<Integer,String>();\r\nz.put(2, \"mody\");\r\nz.put(1, \"zizo\");\r\n System.out.println(z.toString());\r\n int _5=5; }", "title": "" }, { "docid": "f30637dfc7a992c7070621b27aef3eff", "score": "0.5327508", "text": "public void enterKeywordConstant(JackGrammarParser.KeywordConstantContext ctx) {\n\t}", "title": "" } ]
3196456730bc048a4e19002c6fc76f41
Returns the value of the 'Pricing Currency Code' BBIE Order. Pricing_ Currency. Code The currency that is used for all prices in the Order 0..1 Order Pricing Currency Code Currency_ Code. Type
[ { "docid": "e5ef4a950ddcd350c65e03f879342d2e", "score": "0.76450175", "text": "public PricingCurrencyCodeType getPricingCurrencyCode() {\r\n\t\treturn (pricingCurrencyCode == null) ? new PricingCurrencyCodeType()\r\n\t\t\t\t: pricingCurrencyCode;\r\n\t}", "title": "" } ]
[ { "docid": "3413b6be060857cf1ccce3dc57d149da", "score": "0.7332289", "text": "CurrencyCodeType getCurrencyCode();", "title": "" }, { "docid": "b48cd6492fd91ec33784fcf5baa1de75", "score": "0.69926476", "text": "java.lang.String getCurrencyCode();", "title": "" }, { "docid": "b48cd6492fd91ec33784fcf5baa1de75", "score": "0.69926476", "text": "java.lang.String getCurrencyCode();", "title": "" }, { "docid": "217030d6642533f5a088e434b410cb4f", "score": "0.6945144", "text": "public CurrencyCodeType getCurrency() {\n\t return this.currency;\n\t}", "title": "" }, { "docid": "68818f3113a9d766e0111460dc3d633f", "score": "0.6918317", "text": "com.pvelilla.walletProto.proto.CURRENCY getCurrency();", "title": "" }, { "docid": "9da0e33f6add2720a6d08cb07f9b27e0", "score": "0.68611664", "text": "public java.lang.String getCurrencyCode() {\n java.lang.Object ref = currencyCode_;\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 currencyCode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "9317a40c4c8fd8c570d73deaae34e062", "score": "0.6856778", "text": "java.lang.String getCurrencycode();", "title": "" }, { "docid": "9317a40c4c8fd8c570d73deaae34e062", "score": "0.6856778", "text": "java.lang.String getCurrencycode();", "title": "" }, { "docid": "9317a40c4c8fd8c570d73deaae34e062", "score": "0.6856778", "text": "java.lang.String getCurrencycode();", "title": "" }, { "docid": "9317a40c4c8fd8c570d73deaae34e062", "score": "0.6856778", "text": "java.lang.String getCurrencycode();", "title": "" }, { "docid": "9317a40c4c8fd8c570d73deaae34e062", "score": "0.6856778", "text": "java.lang.String getCurrencycode();", "title": "" }, { "docid": "9317a40c4c8fd8c570d73deaae34e062", "score": "0.6856778", "text": "java.lang.String getCurrencycode();", "title": "" }, { "docid": "9317a40c4c8fd8c570d73deaae34e062", "score": "0.6856778", "text": "java.lang.String getCurrencycode();", "title": "" }, { "docid": "9317a40c4c8fd8c570d73deaae34e062", "score": "0.6856778", "text": "java.lang.String getCurrencycode();", "title": "" }, { "docid": "9317a40c4c8fd8c570d73deaae34e062", "score": "0.6856778", "text": "java.lang.String getCurrencycode();", "title": "" }, { "docid": "9317a40c4c8fd8c570d73deaae34e062", "score": "0.6856778", "text": "java.lang.String getCurrencycode();", "title": "" }, { "docid": "9317a40c4c8fd8c570d73deaae34e062", "score": "0.6856778", "text": "java.lang.String getCurrencycode();", "title": "" }, { "docid": "b6d03e5e1bdbb5efe4f3512ef61e7db2", "score": "0.6823202", "text": "public java.lang.String getCurrencyCode() {\n java.lang.Object ref = currencyCode_;\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 currencyCode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "e07ee554edef9e0829c66369737ab883", "score": "0.6815534", "text": "@java.lang.Override\n public java.lang.String getCurrencyCode() {\n java.lang.Object ref = currencyCode_;\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 currencyCode_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "4edd0182de1ca6ddfe148b1b494097c6", "score": "0.6799517", "text": "public java.lang.String getCurrencyCode() {\n java.lang.Object ref = currencyCode_;\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 currencyCode_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "09b44f60d88d7dd4bd5a719e6dab961a", "score": "0.67718786", "text": "public String getCurrencyCode() {\n return currencyCode;\n }", "title": "" }, { "docid": "09b44f60d88d7dd4bd5a719e6dab961a", "score": "0.67718786", "text": "public String getCurrencyCode() {\n return currencyCode;\n }", "title": "" }, { "docid": "e2b288064245a4f47ff680dba237f78f", "score": "0.676529", "text": "public String getCurrencyCode() {\n\t\treturn this.currencyCode;\n\t}", "title": "" }, { "docid": "865278fb275068e3e72e690b4c6d6eaf", "score": "0.6744654", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "865278fb275068e3e72e690b4c6d6eaf", "score": "0.6744654", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "865278fb275068e3e72e690b4c6d6eaf", "score": "0.6744654", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "865278fb275068e3e72e690b4c6d6eaf", "score": "0.6744654", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "865278fb275068e3e72e690b4c6d6eaf", "score": "0.6744654", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "865278fb275068e3e72e690b4c6d6eaf", "score": "0.67430186", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "865278fb275068e3e72e690b4c6d6eaf", "score": "0.67430186", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "865278fb275068e3e72e690b4c6d6eaf", "score": "0.67430186", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "865278fb275068e3e72e690b4c6d6eaf", "score": "0.67430186", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "865278fb275068e3e72e690b4c6d6eaf", "score": "0.67427146", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "865278fb275068e3e72e690b4c6d6eaf", "score": "0.67427146", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a4f8df5c8e6b39fe182722992f013579", "score": "0.6693047", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "a4f8df5c8e6b39fe182722992f013579", "score": "0.6693047", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "a4f8df5c8e6b39fe182722992f013579", "score": "0.6693047", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "a4f8df5c8e6b39fe182722992f013579", "score": "0.6692559", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "a4f8df5c8e6b39fe182722992f013579", "score": "0.6692559", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "a4f8df5c8e6b39fe182722992f013579", "score": "0.6692559", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "a4f8df5c8e6b39fe182722992f013579", "score": "0.6691704", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "a4f8df5c8e6b39fe182722992f013579", "score": "0.6691704", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "a4f8df5c8e6b39fe182722992f013579", "score": "0.6691704", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "a4f8df5c8e6b39fe182722992f013579", "score": "0.6691704", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "a4f8df5c8e6b39fe182722992f013579", "score": "0.6691704", "text": "public java.lang.String getCurrencycode() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "2f9561b7cab7b6ad1659b9b9d9572699", "score": "0.66686296", "text": "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "title": "" }, { "docid": "2f9561b7cab7b6ad1659b9b9d9572699", "score": "0.66686296", "text": "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "title": "" }, { "docid": "2f9561b7cab7b6ad1659b9b9d9572699", "score": "0.66686296", "text": "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "title": "" }, { "docid": "608479c2fad7d152fb61f8291418ec4c", "score": "0.664157", "text": "BigDecimal getCUR_OrderValueUSD();", "title": "" }, { "docid": "df9e04432115661ee8136d1ff67fa25a", "score": "0.66381", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getCurrencyCodeBytes() {\n java.lang.Object ref = currencyCode_;\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 currencyCode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "bddcfdedd920b6aa3fdf91a8b59dedcb", "score": "0.6591782", "text": "java.lang.String getCurrency();", "title": "" }, { "docid": "4bb7444d82a3024e9c6ef8e41a7181fd", "score": "0.6579805", "text": "public com.google.protobuf.ByteString\n getCurrencyCodeBytes() {\n java.lang.Object ref = currencyCode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currencyCode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "6d084e4fec12bb022f6d1d1e1935bde0", "score": "0.6554595", "text": "public java.lang.String getCurrency() {\n java.lang.Object ref = currency_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n currency_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "c07e05ce2cf70fc72b5d071f17368659", "score": "0.65311503", "text": "public java.lang.String getCurrency() {\n java.lang.Object ref = currency_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n currency_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "317f2bc637bf783a872ab00ae2b05a29", "score": "0.65307957", "text": "String getCUR_CurrencyCode();", "title": "" }, { "docid": "1d914ca28797a91678a82a2c7eab116b", "score": "0.6488201", "text": "public com.google.protobuf.ByteString\n getCurrencyCodeBytes() {\n java.lang.Object ref = currencyCode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currencyCode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a1b39d68b465d78675daee4e2bb9a388", "score": "0.6487075", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a1b39d68b465d78675daee4e2bb9a388", "score": "0.6487075", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a1b39d68b465d78675daee4e2bb9a388", "score": "0.6487075", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a1b39d68b465d78675daee4e2bb9a388", "score": "0.6487075", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a1b39d68b465d78675daee4e2bb9a388", "score": "0.6487075", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a1b39d68b465d78675daee4e2bb9a388", "score": "0.6487075", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "2fc9e3226155bf8a92d995356c516840", "score": "0.6486895", "text": "public String getAccountCurrencyCode() {\r\n return accountCurrencyCode;\r\n }", "title": "" }, { "docid": "a1b39d68b465d78675daee4e2bb9a388", "score": "0.64868057", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a1b39d68b465d78675daee4e2bb9a388", "score": "0.64868057", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a1b39d68b465d78675daee4e2bb9a388", "score": "0.64868057", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a1b39d68b465d78675daee4e2bb9a388", "score": "0.64868057", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a1b39d68b465d78675daee4e2bb9a388", "score": "0.6486396", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3c760c8292484cba93a57b912d00e972", "score": "0.6475095", "text": "public String getCurrencyCode() {\r\n return (String) getAttributeInternal(CURRENCYCODE);\r\n }", "title": "" }, { "docid": "50d05c45d28eaf4d86b1962aa9a2ee89", "score": "0.6470169", "text": "com.google.protobuf.ByteString\n getCurrencyCodeBytes();", "title": "" }, { "docid": "c9ed55327e90037b5d0d074dab8c59f4", "score": "0.6467071", "text": "public String getCurrency() {\n return this.currency;\n }", "title": "" }, { "docid": "0b39977258e47ee7de0d14de777cf27c", "score": "0.64586455", "text": "public com.google.protobuf.ByteString\n getCurrencyCodeBytes() {\n java.lang.Object ref = currencyCode_;\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 currencyCode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "423298ae89fcbc09abd8b8cb64ee81dc", "score": "0.6448957", "text": "com.google.protobuf.ByteString\n getCurrencyCodeBytes();", "title": "" }, { "docid": "6663716087be8ac3a7581c7670949367", "score": "0.6446602", "text": "public int getCurrencyValue() {\n return currency_;\n }", "title": "" }, { "docid": "3301080e13df9e3446a9a291b82af379", "score": "0.6438914", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3301080e13df9e3446a9a291b82af379", "score": "0.6438914", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3301080e13df9e3446a9a291b82af379", "score": "0.6438914", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a0e86587ac169e767adf2e93cb0bf0d3", "score": "0.64382255", "text": "com.google.protobuf.ByteString\n getCurrencycodeBytes();", "title": "" }, { "docid": "a0e86587ac169e767adf2e93cb0bf0d3", "score": "0.64382255", "text": "com.google.protobuf.ByteString\n getCurrencycodeBytes();", "title": "" }, { "docid": "a0e86587ac169e767adf2e93cb0bf0d3", "score": "0.64382255", "text": "com.google.protobuf.ByteString\n getCurrencycodeBytes();", "title": "" }, { "docid": "a0e86587ac169e767adf2e93cb0bf0d3", "score": "0.64382255", "text": "com.google.protobuf.ByteString\n getCurrencycodeBytes();", "title": "" }, { "docid": "a0e86587ac169e767adf2e93cb0bf0d3", "score": "0.64382255", "text": "com.google.protobuf.ByteString\n getCurrencycodeBytes();", "title": "" }, { "docid": "a0e86587ac169e767adf2e93cb0bf0d3", "score": "0.64382255", "text": "com.google.protobuf.ByteString\n getCurrencycodeBytes();", "title": "" }, { "docid": "a0e86587ac169e767adf2e93cb0bf0d3", "score": "0.64382255", "text": "com.google.protobuf.ByteString\n getCurrencycodeBytes();", "title": "" }, { "docid": "a0e86587ac169e767adf2e93cb0bf0d3", "score": "0.64382255", "text": "com.google.protobuf.ByteString\n getCurrencycodeBytes();", "title": "" }, { "docid": "a0e86587ac169e767adf2e93cb0bf0d3", "score": "0.64382255", "text": "com.google.protobuf.ByteString\n getCurrencycodeBytes();", "title": "" }, { "docid": "a0e86587ac169e767adf2e93cb0bf0d3", "score": "0.64382255", "text": "com.google.protobuf.ByteString\n getCurrencycodeBytes();", "title": "" }, { "docid": "a0e86587ac169e767adf2e93cb0bf0d3", "score": "0.64382255", "text": "com.google.protobuf.ByteString\n getCurrencycodeBytes();", "title": "" }, { "docid": "3301080e13df9e3446a9a291b82af379", "score": "0.6438045", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3301080e13df9e3446a9a291b82af379", "score": "0.6438045", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3301080e13df9e3446a9a291b82af379", "score": "0.6438045", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3301080e13df9e3446a9a291b82af379", "score": "0.6438045", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3301080e13df9e3446a9a291b82af379", "score": "0.6438045", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3301080e13df9e3446a9a291b82af379", "score": "0.6438045", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3301080e13df9e3446a9a291b82af379", "score": "0.64374655", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3301080e13df9e3446a9a291b82af379", "score": "0.64374655", "text": "public com.google.protobuf.ByteString\n getCurrencycodeBytes() {\n java.lang.Object ref = currencycode_;\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 currencycode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "1deb8f5c2acd13b7e3f08446b8cd1971", "score": "0.6415633", "text": "public String getCurrencyCode() {\n return (String) getAttributeInternal(CURRENCYCODE);\n }", "title": "" }, { "docid": "de4e95693f5870b9b69cf38a18011d44", "score": "0.64002174", "text": "public int getCurrencyValue() {\n return currency_;\n }", "title": "" }, { "docid": "86b9d8375fc0c62793043c1374615316", "score": "0.63843226", "text": "public com.google.protobuf.ByteString\n getCurrencyBytes() {\n java.lang.Object ref = currency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "6196ddb408d425c60add7d7f00fdc2ca", "score": "0.6375345", "text": "public com.rightrez.PricingType getPricingType() {\r\n return pricingType;\r\n }", "title": "" } ]
ffe88f2a236dfaa61ffbbf5f0624e837
Close the Database Helper when paused
[ { "docid": "ad70346ab3552b4ea2970bb969cc8f16", "score": "0.7929614", "text": "@Override\n public void onPause() {\n super.onPause();\n dbh.close();\n }", "title": "" } ]
[ { "docid": "eb000f941de9b1475c336a29fdaf4685", "score": "0.81022894", "text": "@Override\n protected void onPause() {\n dbAccess.closeDatabase();\n super.onPause();\n }", "title": "" }, { "docid": "b5f4efb5bae1ab99e2ae96af62df89f2", "score": "0.7726884", "text": "public void closeDB() {\n openHelper.close();\n }", "title": "" }, { "docid": "9c61da4a89e305d329e3b2a0e834694a", "score": "0.7374486", "text": "public void close()\n{\nLog.i(LOGTAG, \"Database closed\");\ndbhelper.close();\n}", "title": "" }, { "docid": "cd46c76b9b6cdd09104c0451d7574102", "score": "0.732464", "text": "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tif(DBHelper.dbInstance != null) {\r\n\t\t\tDBHelper.dbInstance.close();\r\n\t\t\tDBHelper.dbInstance = null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0a1363244dd52f39c7d9154c889bae08", "score": "0.729046", "text": "public void close(){\r\n\t\tdbHelper.close();\r\n\t}", "title": "" }, { "docid": "c59fc2164507577c875997e41697c831", "score": "0.7263979", "text": "public static void close() {\n dbHelper.close();\n }", "title": "" }, { "docid": "786db0752ca43c82eee812c0a66602c8", "score": "0.7221664", "text": "@Override\r\n\tpublic void close() \r\n {\r\n DBHelper.close();\r\n }", "title": "" }, { "docid": "53024b3e24857000bfbef2071bf95c56", "score": "0.72129077", "text": "public void close() {\n myDBHelper.close();\n }", "title": "" }, { "docid": "53024b3e24857000bfbef2071bf95c56", "score": "0.72129077", "text": "public void close() {\n myDBHelper.close();\n }", "title": "" }, { "docid": "01d0deece762f739d3442ba4f28fd6cc", "score": "0.7205745", "text": "public void close() {\n DBHelper.close();\n }", "title": "" }, { "docid": "793dc05376a991542031f403688f7da6", "score": "0.7183012", "text": "private synchronized void closeDatabase(){\r\n\t\tif(mDb.isOpen())\r\n\t\t\tmDb.close();\t\t\r\n\t}", "title": "" }, { "docid": "855b31a6e9978cc4e754cd9a8e5e1294", "score": "0.71742576", "text": "public void close() {\n dbHelper.close();\n }", "title": "" }, { "docid": "855b31a6e9978cc4e754cd9a8e5e1294", "score": "0.71742576", "text": "public void close() {\n dbHelper.close();\n }", "title": "" }, { "docid": "855b31a6e9978cc4e754cd9a8e5e1294", "score": "0.71742576", "text": "public void close() {\n dbHelper.close();\n }", "title": "" }, { "docid": "ff88bf10e04c0fc76d1e7aa007e98e98", "score": "0.7173528", "text": "public void close() {\n\t\tmDbHelper.close();\n\t}", "title": "" }, { "docid": "362bc0891e305a7971f9f3fa4326a7d1", "score": "0.71614593", "text": "public void close() {\r\n\t\tmDbHelper.close();\r\n\t}", "title": "" }, { "docid": "e67b00f4da7e147478aa0077d8651c93", "score": "0.7149801", "text": "private void close() {\n mDatabase.close();\n }", "title": "" }, { "docid": "adf2f304531ce72ab8f1ddc9bf41267c", "score": "0.71459246", "text": "public void close(){\n db.close();\n }", "title": "" }, { "docid": "a37880f692f81abe5b83d79d451f29d1", "score": "0.71321654", "text": "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif (db != null) {\n\t\t\tdb.close();\n\t\t}\n\n\t}", "title": "" }, { "docid": "b65c8df24d298d73e2912b76c245021c", "score": "0.71064305", "text": "@Override\n protected void onDestroy()\n {\n db.close();\n super.onDestroy();\n }", "title": "" }, { "docid": "e621199789a040dda1e3398e9fbc3bba", "score": "0.7085272", "text": "@Override\r\n\tpublic void close(){\r\n\t\tif( activeDB.isOpen() )\r\n\t\t\tactiveDB.close();\r\n\t\tsuper.close();\r\n\t}", "title": "" }, { "docid": "db9468dae417954c2a5026289f6a7f52", "score": "0.70808405", "text": "public void closeDB() {\n\t\tusersDBHelper.close();\n\t}", "title": "" }, { "docid": "16f195d71c2ba93b82c1f86dd1da589f", "score": "0.70716304", "text": "public boolean closeDB();", "title": "" }, { "docid": "1e3e57abbe1363fcd701ec8fab40d58b", "score": "0.7069214", "text": "public void close() {\n\t\tDBHelper.close();\n\t\tdb = null;\n\t}", "title": "" }, { "docid": "31856767e17910f9a578c0ba68384e81", "score": "0.7060109", "text": "public void onDestroy()\n {\n super.onDestroy();\n \n if(m_db != null)\n {\n m_db.close();\n }\n \n System.exit(0);\n }", "title": "" }, { "docid": "382738d74dbb7ea7384d68ea09413b25", "score": "0.7035376", "text": "public void finish() {\n\t\tif (databaseManager != null) {\r\n\t\t\tdatabaseManager.close();\r\n\t\t\tdatabaseManager = null;\r\n\t\t}\r\n\t\tsuper.finish();\r\n\t}", "title": "" }, { "docid": "fb0eb1808fb0e4809c0a0edd3cc65b2b", "score": "0.7011442", "text": "public void destroy() {\n mDbHandler.close();\n }", "title": "" }, { "docid": "2411900da89d1a149c1679e2fbd9d1c3", "score": "0.69829935", "text": "@Override\n\tpublic void onDestroy() {\n\t\tdatabase.close();\n\t}", "title": "" }, { "docid": "32f350d902e6ec356c412f77e5d2aa74", "score": "0.6954806", "text": "@Override\r\n \tprotected void onDestroy() {\n \t\tsuper.onDestroy();\r\n \t\t//testDB.close(debugTag);\r\n \t}", "title": "" }, { "docid": "e12cb40658080c46bab19d2ac9204941", "score": "0.6911572", "text": "public void closeDB() {\n mSQLiteDatabase.close();\n }", "title": "" }, { "docid": "105bb4bb99857c3d9ba242f957c2faac", "score": "0.6892718", "text": "public static void stop() {\n try {\n SQLDatabase.disconnect();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "9f43b6c364656d05024db7a4f507a80b", "score": "0.68479943", "text": "public void close() {\n\t\t\tthis.mDbHandler.close();\n\t\t}", "title": "" }, { "docid": "dc970f17b511d1ba0034185d8322e723", "score": "0.6844601", "text": "public void closeDB() {\n SQLiteDatabase db = this.getReadableDatabase();\n if (db != null && db.isOpen())\n db.close();\n }", "title": "" }, { "docid": "835c343a0c294e3d05fc33bfa128c219", "score": "0.6843845", "text": "@Override\r\n\tpublic void Close() {\n\t\tdb.close();\r\n\t\tdb=null;\r\n\t\tSystem.gc();\r\n\t}", "title": "" }, { "docid": "b6326ec506aaba674ae4c7d79ffa84d3", "score": "0.68074834", "text": "public void onDestroy(){\n super.onDestroy();\n db.close();\n }", "title": "" }, { "docid": "4ba891ba432ce4d835ce7c2dfca1bf67", "score": "0.6806118", "text": "public synchronized void forceCloseDatabase() {\n openCounter.set(0);\n database.close();\n }", "title": "" }, { "docid": "7f3eed301a2e21d12e32fe1aab68b10e", "score": "0.67553496", "text": "@Override\r\n protected void onDestroy(){\r\n \tif( NotesDb != null )\r\n \t\tNotesDb.close(); \r\n \tsuper.onDestroy();\r\n }", "title": "" }, { "docid": "f4af00201db6919f8a6745e6cdc407b9", "score": "0.67462564", "text": "public void closeDB()\n\t{\n\t\ttry {\n\t\t\tconnection.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "a1f3ea51982ca6933f36db23c8bf3057", "score": "0.6739893", "text": "public void close() {\n\tif (db != null) {\n\t try {\n\t\tdb.close();\n\t } catch (SQLException e) {\n\t\tSystem.err.println(e.getMessage());\n\t\tSystem.exit(1);\n\t }\n\t}\n }", "title": "" }, { "docid": "80d837e88249d68180d9b32c3d6c102c", "score": "0.67396986", "text": "private void deleteDatabase() {\n \tmDbHelper.close();\n Context context = getContext();\n RedmineDatabase.deleteDatabase(context);\n mDbHelper = new RedmineDatabase(getContext());\n }", "title": "" }, { "docid": "3c6485958aac0dae9951ed2df6dab518", "score": "0.6724441", "text": "public static void closeDatabaseConnection() {\n DatabaseHandler.closeConnection();\n }", "title": "" }, { "docid": "a23339f380e8a29142c56497fe46d213", "score": "0.6716798", "text": "@Override\n protected void onDestroy() {\n super.onDestroy();\n \n ldba.close();\n }", "title": "" }, { "docid": "e9fb98289fb3b0555a2b0a3fbb81d866", "score": "0.66865146", "text": "@Override\n\tpublic void closeDataBase() {\n\t\tif (db != null && db.isOpen())\n\t\t\tdb.close();\n\t}", "title": "" }, { "docid": "130e381738505174827a6d0c1a5ee202", "score": "0.6684553", "text": "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\t//database.close();\r\n\t\t//base.close();\r\n\t\t//cursor1.close();\r\n\t}", "title": "" }, { "docid": "98e760ca7deb106ea579a4433a0bca9b", "score": "0.66692704", "text": "@After\n public void tearDown() throws Exception {\n dbHelper.close();\n }", "title": "" }, { "docid": "a03f2a6ce961346f5b1eb30f86439cad", "score": "0.66369754", "text": "public void onDestroy() {\n super.onDestroy();\n tempDB.close();\n }", "title": "" }, { "docid": "db221bb507a8935ea4cfdc241a23aac0", "score": "0.663471", "text": "public void close()\n {\n if (database != null)\n database.close(); // close the database connection\n }", "title": "" }, { "docid": "435a24f58955756bd6d3b739183e7e39", "score": "0.6612274", "text": "@Override\n protected void onPause() {\n super.onPause();\n dataSource.close();\n }", "title": "" }, { "docid": "c33bcccb4761c8938a7264f0daaa8604", "score": "0.661035", "text": "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\n\t\t// ¹Ø±ÕÊý¾Ý¿â\n\t\tdao.closeDataBase();\n\t}", "title": "" }, { "docid": "630da35348a82627e17f13cfcd1671b3", "score": "0.6595501", "text": "public void close() {\n if (sqLiteDatabase != null) {\n this.sqLiteDatabase.close();\n }\n }", "title": "" }, { "docid": "cf2f0cb656db1ae91a05f79fc543dfde", "score": "0.6590853", "text": "public void close() {\n try {\n if (database != null) {\n if (this.database.isOpen())\n this.database.close();\n }\n } catch (Exception ex) {\n Log.e(\"close\", ex.getMessage());\n }\n }", "title": "" }, { "docid": "5857b844e1ea9b7be6626cff36c1bd2f", "score": "0.65554637", "text": "public void closeDB() {\n\t\ttry {\n\t\t\tcon.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "08b900812fd4f620809c4dd47e54ad1b", "score": "0.6548235", "text": "@Override\n protected void onDestroy(){\n\n weaponDb.close();\n characterdataDb.close();\n statsDb.close();\n super.onDestroy();\n }", "title": "" }, { "docid": "4cff79308a67a75d119fa8efb4204b0a", "score": "0.65469944", "text": "public void closeConnection() {\n dbHelper.close();\n }", "title": "" }, { "docid": "373bf183e26dfe1205dcc89480601de4", "score": "0.6544352", "text": "@Override\r\n\tprotected void onDestroy() {\r\n\t\tstudentDS.close(); // close DB connection, before calling super.onDestroy()\r\n\t\tsuper.onDestroy();\r\n\t}", "title": "" }, { "docid": "d3e3af61d69ed5552d089b22ec1b88c4", "score": "0.65363336", "text": "public void close() {\n if (timer != null) {\n try {\n this.timer.cancel();\n Thread.sleep(100);// wait a bit, so no sql-query is fired any\n // more to\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n try {\n if (dbConnection != null) this.dbConnection.closeConnection(this);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "270c61e50fb3259463aebf51bc190e11", "score": "0.6534995", "text": "@Override\r\n public void close() {\n \r\n db.closeConnection();\r\n }", "title": "" }, { "docid": "ad86be051ecbf2c25ba3cd450ba69739", "score": "0.6514404", "text": "public void destroy(){\n\t\ttry{\n\t\t\tdbcon.close();\n\t\t}catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "c708823c7210734e48ec2fb416e5c64c", "score": "0.6509026", "text": "private void disconnectDB(){\n\t\ttry {\n\t\t\tdatabaseConnection.close();\n\t\t\tSystem.err.println(\"Disconnected.\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "7971124b9a26c40c068155479e6d1236", "score": "0.6493726", "text": "public void close() {\n if (database != null) {\n this.database.close();\n }\n }", "title": "" }, { "docid": "7971124b9a26c40c068155479e6d1236", "score": "0.6493726", "text": "public void close() {\n if (database != null) {\n this.database.close();\n }\n }", "title": "" }, { "docid": "7971124b9a26c40c068155479e6d1236", "score": "0.6493726", "text": "public void close() {\n if (database != null) {\n this.database.close();\n }\n }", "title": "" }, { "docid": "a84145ba5f45c0c6d2c134fc705f6abb", "score": "0.64704746", "text": "public void shutdown() throws DatabaseException {\r\n store.close();\r\n envmnt.close();\r\n }", "title": "" }, { "docid": "4602e5bac32dfbfcb952af9aee7c69f5", "score": "0.64572996", "text": "public static void Dispose(){\n em.close();\n emf.close();\n Logger.info(\"Database connection closed.\");\n }", "title": "" }, { "docid": "9146f4e6897ed5b660b7da366440f2f2", "score": "0.6443441", "text": "public void destroy() {\n closeSqlDbConnections();\n\n\n }", "title": "" }, { "docid": "47329135b5fc5bbe187c39f6da8d8b8d", "score": "0.64378583", "text": "public void exit(){\r\n\t\tdataBaseManager.closeConnection();\r\n\t}", "title": "" }, { "docid": "1370448a0498363ca18424dbd30fada5", "score": "0.64085376", "text": "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tapp.getDataManager().close();\r\n\t}", "title": "" }, { "docid": "38e0b36497ac5b805b595aa71df4f45b", "score": "0.6387112", "text": "public void destroy() {\n\t\tcloseSqlDbConnections();\n\n\t}", "title": "" }, { "docid": "60455cfcda60e63ad13d0989c80d35e1", "score": "0.6344328", "text": "@Override\n public void selfDestruct() throws DatabaseException {\n contactDao.selfDestruct();\n }", "title": "" }, { "docid": "2e15c9fa122ffebaf005bbb7ad1d88e0", "score": "0.6327298", "text": "@Override\n protected void onStop() {\n super.onStop();\n //close Realm Instance\n realmDB.close();\n }", "title": "" }, { "docid": "2e15c9fa122ffebaf005bbb7ad1d88e0", "score": "0.6327298", "text": "@Override\n protected void onStop() {\n super.onStop();\n //close Realm Instance\n realmDB.close();\n }", "title": "" }, { "docid": "03eec651196c9f5f219a116edb771bc3", "score": "0.6325838", "text": "@Override\n\tprotected void onDestroy() {\n\t\tif(mDBtableGuiJiItem != null){\n\t\t\tmDBtableGuiJiItem.close();\n\t\t}\n\t\tsuper.onDestroy();\n\t}", "title": "" }, { "docid": "fbfc6c3ed31de37e8a37073190af133e", "score": "0.6324334", "text": "private void close() {\n\t\t\tDB.close(m_rs, m_pstmt);\n\t\t\tm_rs = null;\n\t\t\tm_pstmt = null;\n\t\t}", "title": "" }, { "docid": "9f333ebfbdf1bd9184349c38f849e1eb", "score": "0.63232374", "text": "public void closeDB()\n {\n try{\n stm.close();\n conn.close();\n }\n catch(SQLException ex){\n ex.printStackTrace();\n }finally{\n //finally block used to close resources\n try{\n if(stm != null)\n stm.close();\n }catch(SQLException se2){\n\n }\n\n try{\n if(conn!=null){\n conn.close();\n }\n } catch(SQLException se){\n se.printStackTrace();\n }//end finally try\n }//end try\n }", "title": "" }, { "docid": "95b76902ad73341241866077748a8dbf", "score": "0.6304532", "text": "public void releaseDb() {\n\t\ttry {\n\t\t\tcon.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "257c94b236a5db3cfec52019c521e493", "score": "0.62953675", "text": "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif(cursor!=null){\n\t\t\tcursor.close();\n\t\t\tcursor = null;\n\t\t}\n\t}", "title": "" }, { "docid": "512775b62b0c220a864900498f4d90cc", "score": "0.6290912", "text": "public void disconnectDB() {\n try { rs.close(); } catch (Exception e) { /* ignored */ }\n// try { ps.close(); } catch (Exception e) { /* ignored */ }\n try { conn.close(); } catch (Exception e) { /* ignored */ }\n }", "title": "" }, { "docid": "764a0f05935a9f32d8e471aed0360f5e", "score": "0.62864953", "text": "public static void close(){\n\t\ttry {\n\t\t\tif(connect != null)\n\t\t\t\tstatement.close();\n\t\t\t\tconnect.close();\n\t\t\t\tSystem.out.println(\"Close Database\");\n\t\t\t} catch(SQLException e) {}\n\t}", "title": "" }, { "docid": "6f9bae105a4694cbcc91edcd6f15f0b5", "score": "0.6281725", "text": "public void close(){\r\n\t\tGirlDB_generater.close();\r\n\t}", "title": "" }, { "docid": "b642ef6d100bc3039226dba8f5baf5f9", "score": "0.62797064", "text": "public void closeDatabase() throws IOException {\n if (helper != null) {\n helper.close();\n }\n for (Dao dao : writerDatabases.values()) {\n dao.close();\n }\n for (Dao dao : readerDatabases.values()) {\n dao.close();\n }\n if (localDbFile.exists()) {\n copyFile(localDbFile, dbFile);\n localDbFile.delete();\n File journalFile = new File(localDbFile.getAbsolutePath() + \"-journal\");\n if (journalFile.exists()) {\n journalFile.delete();\n }\n }\n }", "title": "" }, { "docid": "6d10a71288d7a79ee3ababb5630df08e", "score": "0.62761754", "text": "@Override\n public synchronized void close() {\n if (myDataBase != null)\n myDataBase.close();\n super.close();\n }", "title": "" }, { "docid": "6d10a71288d7a79ee3ababb5630df08e", "score": "0.62761754", "text": "@Override\n public synchronized void close() {\n if (myDataBase != null)\n myDataBase.close();\n super.close();\n }", "title": "" }, { "docid": "5e966d8e3385cb879c8c02b83d8782a6", "score": "0.6243362", "text": "void selfDestruct() throws DatabaseException;", "title": "" }, { "docid": "d63334655ae37984cf479782d65f6897", "score": "0.62292516", "text": "@After\n public void closeMockDb() throws IOException {\n mockDb.close();\n mockDb_2.close();\n }", "title": "" }, { "docid": "0f1356fde71356690e85aece3304993b", "score": "0.62162423", "text": "public void closeDelete()\n {\n \ttry {\n dbConnect.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a8079748ad3baf7327e40e672367cc7d", "score": "0.6202847", "text": "public void closeProcess() {\n try {\n results.close();\n dbConnect.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "6de1299def36992cb38be08dca048c66", "score": "0.61793727", "text": "@Override\n public void close() {\n lastPage = true;\n\n try {\n // Deleting temporary table and dataset that gets generated when executing a query.\n if (temporaryDatasetId != null) {\n if (temporaryTableId != null) {\n deleteTable(temporaryDatasetId, temporaryTableId);\n }\n deleteDataset(temporaryDatasetId);\n }\n } catch (IOException | InterruptedException e) {\n if (e instanceof InterruptedException) {\n Thread.currentThread().interrupt();\n }\n throw new RuntimeException(e);\n }\n\n }", "title": "" }, { "docid": "e11670e7579521ff299e6eb0aa91bb39", "score": "0.616891", "text": "public void doClose() {\n mPersistenceObjDao.closeAll();\n // mPremiumAdvertiserDao.closeAll();\n // mInsurancePolicyDao.closeAll();\n // mDeviceVehicleDao.closeAll();\n // mVehicleManifestDao.closeAll();\n\n }", "title": "" }, { "docid": "58a395a80c75c2bda500329665f0be11", "score": "0.61646944", "text": "public void doClose() {\n mPersistenceObjDao.closeAll();\n //mPremiumAdvertiserDao.closeAll();\n //mInsurancePolicyDao.closeAll();\n //mDeviceVehicleDao.closeAll();\n //mVehicleManifestDao.closeAll();\n\n }", "title": "" }, { "docid": "c44da24db56f64fde4fe7ffcf732178a", "score": "0.615702", "text": "public void close() {\n\t\ttry {\n\t\t\tajuda.close();\n\t\t} catch (SQLException e) {\n\t\t\t// Si hi ha un error al tancar la base de dades nom�s el mostrem al\n\t\t\t// log.\n\t\t\tLog.e(TAG, context.getResources().getString(R.string.error_db));\n\t\t}\n\t}", "title": "" }, { "docid": "937e8aee92c293db547cf3da75f57407", "score": "0.6153937", "text": "public void close() {\n idDatabase.releaseTreeAdminMemory();\n nameDatabase.releaseTreeAdminMemory();\n }", "title": "" }, { "docid": "d69954eb87c05ca43077c6dbde53a372", "score": "0.6149157", "text": "public void deleteDB() {\n Database tradeDB = new Database();\n tradeDB.deleteDB(); // Deletes the database (for testing purposes only)\n }", "title": "" }, { "docid": "2ff975d4143b822a1cd763d763f2259d", "score": "0.61406416", "text": "public void close()\n throws DatabaseException {\n\n seq.close(0);\n }", "title": "" }, { "docid": "9bf832d2541ae5be653309e966be09fc", "score": "0.6122917", "text": "public static void disconnectFromDatabase() {\n \n try {\n connectionInstance.close();\n System.out.println(\"Database Disconnect Successful\");\n } catch (Exception ex) {\n System.out.println(\n \"Unable to disconnect from Database connection.\"\n + \"\\nFAILED in class \" + MethodHandles.lookup().getClass()\n + \"\\n\" + ex.getMessage());\n }\n }", "title": "" }, { "docid": "7529044101d166588cd833541f3b106c", "score": "0.6110875", "text": "@AfterClass\n public static void tearDownDatabase()\n {\n mongo.dropDatabase(DATABASE_NAME);\n mongo.close();\n mongo = null;\n morphia = null;\n datastore = null;\n }", "title": "" }, { "docid": "9d6dd6371a8322892c1422d49375f21d", "score": "0.6110333", "text": "public static void shutdown() {\n DatabaseFactory.shutdown();\n }", "title": "" }, { "docid": "3290d20d529aeb1c15753a9017b986cc", "score": "0.61038244", "text": "void deleteTheDatabase() {\n mContext.deleteDatabase(MovieDbHelper.DATABASE_NAME);\n }", "title": "" }, { "docid": "cc7ee5ff88fdc77f16a341951ce93704", "score": "0.6099637", "text": "@Override\n\tpublic void onDestroy()\n\t{\n\t\t// close db if is not case\n\t\tif ((mbTilesActions != null) && mbTilesActions.isOpen())\n\t\t{\n\t\t\tmbTilesActions.close();\n\t\t}\n\t\t\n\t\tsuper.onDestroy();\n\t}", "title": "" }, { "docid": "042b16add3c1ac137e6c6dc2c03fefde", "score": "0.60753465", "text": "@Override\r\n\tprotected void onDestroy() {\n\t\tteamsCursor.close();\r\n\t\tsuper.onDestroy();\r\n\t}", "title": "" }, { "docid": "0de6058879b2d8d098b725b7d759f912", "score": "0.6065619", "text": "public void closeDatabase() {\n try {\n connection.close();\n } catch (SQLException error) {\n System.err.println(\"JDBC error!\");\n DerbyUtils.traceErrors(error);\n } finally {\n DerbyUtils.shutdown(\"FDMdb\");\n }\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "0c54bfd2d71591623d654fbd6278de15", "score": "0.0", "text": "@Override\n\tpublic int compareTo(SpotEntity o) {\n\t\treturn this.getId().compareTo(o.getId());\n\t}", "title": "" } ]
[ { "docid": "663ac6f718361fb243bf093a1c7ded6a", "score": "0.66285414", "text": "@Override\r\n\tprotected void Goukakyuu() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "7679fd1b623986eeedb64db808e99029", "score": "0.64387834", "text": "@Override\n\t\t\tpublic void fahre() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.64340436", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "8484f1b37a8db0941e2722db3c988008", "score": "0.6240345", "text": "public void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1010f244e972c0ea26ed77a119296c6c", "score": "0.62359196", "text": "@Override\r\n\tprotected void Mokuton() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1e56eb875969a40be9b73939843db26f", "score": "0.6213003", "text": "public void starteWuerfelaktion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ccaf5f7aff0d6de105f523c68f63383c", "score": "0.6207747", "text": "private void cathc() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d65d6c17fb978c0d576ada2c03cd49fe", "score": "0.61387193", "text": "@Override\n\tpublic void apagar() {\n\t\t\n\t}", "title": "" }, { "docid": "a1f605ca3e07976447a751ccd937b4db", "score": "0.61104095", "text": "@Override public int ataque(){\n return 0;\n }", "title": "" }, { "docid": "c8ceec30e6f3ebd2fb8cab39b477d3f3", "score": "0.61064756", "text": "private static void sapxep() {\n\t\t\n\t}", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6071615", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.6063628", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "5602bebd0acaf2caa678957a2c24842b", "score": "0.6060216", "text": "@Override\r\n\tpublic void overAll() {\n\r\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.60185045", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d04504187907e1d84ed24fc616f45486", "score": "0.60087866", "text": "@Override\r\n\tpublic void inteface() {\n\t\t\r\n\t}", "title": "" }, { "docid": "428377dd8e49bc1cf5ac0e5d064029b3", "score": "0.6004459", "text": "@Override\r\n\tpublic void preco() {\n\r\n\t}", "title": "" }, { "docid": "4c743a5e5106c55466224d75f817448a", "score": "0.5945002", "text": "@Override\r\n\t\tpublic void ustSoyut() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "825fd65cd166afe72a9eff8424570f29", "score": "0.5943726", "text": "@Override\n\tpublic void setingInicial() {\n\n\t}", "title": "" }, { "docid": "19006c0661c5e3b653400b5da2beb934", "score": "0.59422", "text": "@Override\n\tpublic void pintar() {\n\t\t\n\t}", "title": "" }, { "docid": "19006c0661c5e3b653400b5da2beb934", "score": "0.59422", "text": "@Override\n\tpublic void pintar() {\n\t\t\n\t}", "title": "" }, { "docid": "ea4341d488d9be09cc755218b65fadf5", "score": "0.5906771", "text": "@Override\n public void preRetrieving() {\n }", "title": "" }, { "docid": "2fff6ed2c85a2b41abbe75775d352730", "score": "0.5904324", "text": "@Override\n\tpublic void contaminate() {\n\t\t// TODO Auto-generated method stub\t\n\t}", "title": "" }, { "docid": "4f4340003331db95a2feee0084056a02", "score": "0.59033096", "text": "@Override\n\tprotected void inicializar() {\n\n\t}", "title": "" }, { "docid": "9c48473814fa377ca395f7395203f48c", "score": "0.58910286", "text": "@Override\n\tprotected void dataAcquisition() {\n\n\t}", "title": "" }, { "docid": "1c143d94a2852990351338ba13e5399d", "score": "0.5888907", "text": "@Override\n\t\t\tvoid mothed() {\n\t\t\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5883667", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "8ac2c16a1254157c46ed1cdb437fe4f0", "score": "0.5880522", "text": "@Override\r\n\t\tpublic void ustSoyut2() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "712966778e94b206218092a51b836bb7", "score": "0.58803016", "text": "@Override\n\tpublic void tata() {\n\t\t\n\t}", "title": "" }, { "docid": "18d768f6f48ac88822b7bb8bccfac09e", "score": "0.5862438", "text": "public void mo18903b() {\n }", "title": "" }, { "docid": "c5ce5c6476f6c0a0be2e0ff930a7950e", "score": "0.58619136", "text": "@Override public int defensa(){\n return 0;\n }", "title": "" }, { "docid": "0e87d402221278c3889063822e567959", "score": "0.58611584", "text": "protected void sift() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "677e1bcc5ce2d0f98ae32478866994ca", "score": "0.5838853", "text": "@Override\n\tpublic void communiquer() {\n\t\t\n\t}", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5821835", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "45ec6548b6e93f86b574cc156cb7b6e8", "score": "0.5820645", "text": "@Override\r\n\t\t\tpublic void initData()\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "9a618b27fbeac32212f9b2e740d96efb", "score": "0.58155555", "text": "@Override\r\n\tpublic void 계산하다() {\n\r\n\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "6a181a924bbab2aef67a83a2090b6fe5", "score": "0.5800962", "text": "@Override\n\t\tpublic void freshStart() {\n\t\t\t// TODO Auto-generated method stub\n\t\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "06012d51723afddd7b9003b92d7d49c3", "score": "0.5783461", "text": "protected void mo1734a() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "cfdf25944086a38f063107aad70f2f0b", "score": "0.5766042", "text": "@Override\r\n\tprotected void visit() {\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.5755148", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57512486", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57409", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "a6f30265b22f810fdcc712e54cb1e81c", "score": "0.57399535", "text": "@Override\n\tpublic void byby() {\n\t\t\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5736822", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "17781c799f004311d8f8ad31648157ed", "score": "0.57339567", "text": "private void identify(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "90a583a9686287e3374351dca59e3033", "score": "0.5721244", "text": "@Override\r\n\tpublic void abrir() {\n\r\n\t}", "title": "" }, { "docid": "1c4063058b784c69f3e491b8fe1c5d87", "score": "0.57200766", "text": "@Override\r\n\tpublic void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3725f6f559f3adf4f03ebc1fb569a203", "score": "0.57187486", "text": "public void afficher(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "41872c9e2437abffdf2c5c6f8635bf62", "score": "0.5714925", "text": "@Override\n public void generate()\n {\n }", "title": "" }, { "docid": "fda8f619b8e2eb741dec9fcd5bf2e54c", "score": "0.5705268", "text": "@Override\r\n\tpublic void 念经() {\n\t\t\r\n\t}", "title": "" }, { "docid": "937f11d6d748f7b358f71d8d4239cafc", "score": "0.57020056", "text": "@Override\n\tpublic void afisareEl() {\n\t\t\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "15568346f60c78b5a5c404fbb6d1e685", "score": "0.5693754", "text": "@Override\n\tvoid affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.56936175", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "706722a65afe51ea925901f584f25118", "score": "0.5672425", "text": "@Override\n\tpublic void morir() {\n\t}", "title": "" }, { "docid": "fe16626444a6279379e0f9633775ecc4", "score": "0.5671583", "text": "@Override\r\n\tpublic void 撞钟() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c7f3bb62b62ab0efc25de23710ee029", "score": "0.5669814", "text": "@Override\n\tpublic void concentrarse() {\n\t\t\n\t}", "title": "" }, { "docid": "a71f185dfaf7230b8e77ee6f6a04d21b", "score": "0.5665494", "text": "@Override\n\tvoid rr() {\n\t\t\n\t}", "title": "" }, { "docid": "fb842ef1f250aaba4286c185df305a9b", "score": "0.5657007", "text": "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "c0eeb7bb899cafc556cf19801d318ce5", "score": "0.5647088", "text": "@Override\n\tprotected void initFiled() {\n\t\t\n\t}", "title": "" }, { "docid": "011174700bb7f7659f04c634fa0372f8", "score": "0.5644147", "text": "@Override\n\tpublic void arrancar() {\n\t\t\n\t}", "title": "" }, { "docid": "95be4fdee6d995b424f0a4e840e2c875", "score": "0.56325483", "text": "@Override\r\n\tpublic void init()\r\n\t{\r\n\t}", "title": "" }, { "docid": "da4fa7e263bb2e6d703854259aaf6363", "score": "0.5630819", "text": "@Override\n\tprotected void initialize() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.56188065", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f74fdb4945ba76b9dd3ab3b908142716", "score": "0.561768", "text": "@Override\r\n\tpublic void create() {\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "43f6d8e11245e9c1f9ec60b758a00a74", "score": "0.56113946", "text": "@Override\n\t\t\tpublic void abst_drink() {\n\t\t\t}", "title": "" }, { "docid": "57fad36f1e9515178fdc8e8afc8cc63c", "score": "0.56095", "text": "protected boolean method_2502() {\r\n return true;\r\n }", "title": "" }, { "docid": "b086aa458043018db12ea6c8dbfcc7c2", "score": "0.5587534", "text": "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "title": "" }, { "docid": "b086aa458043018db12ea6c8dbfcc7c2", "score": "0.5587534", "text": "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "title": "" }, { "docid": "7d7ee874da61c3db33c0d972ef288fe7", "score": "0.5578719", "text": "@Override\r\n\tpublic int discourse() {\n\t\treturn 75;\r\n\t}", "title": "" } ]
973fc3b602906a18f114ffcaec87ae1f
A string representation of this object
[ { "docid": "fc3affd611ab55ab98151ebe60c50d10", "score": "0.0", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"SurveyWithAnswers [survey=\" + survey + \", answers=\" + answers\n\t\t\t\t+ \"]\";\n\t}", "title": "" } ]
[ { "docid": "b92616b112a919db6b55a926442ba938", "score": "0.8530862", "text": "public String toString(){\n\t\treturn this.toJson();\n\t}", "title": "" }, { "docid": "b29e166a3a94bbcfa067744674ad572a", "score": "0.8519768", "text": "public String toString()\n\t{\n\t\treturn this.toJSON();\n\t}", "title": "" }, { "docid": "df78dda4b683e1edb689a597379fd090", "score": "0.8355241", "text": "@Override\n\tpublic String toString() { return serialize(); }", "title": "" }, { "docid": "745b71d932f03db0d97805e080fad2fb", "score": "0.83211476", "text": "@Override\n\tpublic String toString() {\n\t\treturn JsonConvert.serialize(this);\n\t}", "title": "" }, { "docid": "486b04f55a91c6d5a23218c5bf72534c", "score": "0.82118875", "text": "public String toString()\n {\n return JsonHelper.toJsonString(this);\n }", "title": "" }, { "docid": "ec1c33d7baa31c154041bc80c39d281e", "score": "0.81990623", "text": "@Override\n public String toString() {\n new Gson().toJson(this);\n return null;\n }", "title": "" }, { "docid": "ee914cd59975964e40b35d254886ffa2", "score": "0.8190014", "text": "@Override\n\tpublic String toString() {\n\t\treturn se.culvertsoft.mgen.javapack.util.Stringifyer.toString(this);\n\t}", "title": "" }, { "docid": "f6cee1fe9065de4e84812d5b81dc6b4e", "score": "0.8188086", "text": "@Override\n\tpublic String toString() {\n\t\treturn JSON.toJSONString(this);\n\t}", "title": "" }, { "docid": "2ef22656342280ced553a4572a7fbcd3", "score": "0.81545377", "text": "public String toString() {\n return toString(this);\n }", "title": "" }, { "docid": "2ef22656342280ced553a4572a7fbcd3", "score": "0.81545377", "text": "public String toString() {\n return toString(this);\n }", "title": "" }, { "docid": "9f2151ab538bdfbd9433ecee00eae936", "score": "0.81467605", "text": "public String toString() {\n\t\treturn toJSON();\n\t}", "title": "" }, { "docid": "c53a783b3905630f68ac6efb23f39b2a", "score": "0.81428504", "text": "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "title": "" }, { "docid": "d653e4080e238a2e351d228c0c637483", "score": "0.8132969", "text": "@Override\r\n public String toString() {\r\n return ReflectionToStringBuilder.toString(this);\r\n }", "title": "" }, { "docid": "75cf55085a59055a6bc10f0b52aa4c47", "score": "0.8126622", "text": "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "title": "" }, { "docid": "e0046b4e127272dc7625b8bfaa808854", "score": "0.81049675", "text": "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "title": "" }, { "docid": "e0046b4e127272dc7625b8bfaa808854", "score": "0.81049675", "text": "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "title": "" }, { "docid": "e0046b4e127272dc7625b8bfaa808854", "score": "0.81049675", "text": "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "title": "" }, { "docid": "d1f361b0c2a22a8d7cf0b37452a8fee7", "score": "0.8104393", "text": "@Override\n\tpublic String toString() {\n\t\treturn ToStringBuilder.reflectionToString(this); \n\t}", "title": "" }, { "docid": "0c84dde874bbe78e9058dd79bdebdc6b", "score": "0.8103122", "text": "public String toString() {\n\t\treturn this.toString(false);\n\t}", "title": "" }, { "docid": "eb505a909b7f7e5eb30c83435135f111", "score": "0.80959207", "text": "public String toString() {\n\t\t\treturn \"\";\n\t\t}", "title": "" }, { "docid": "4027335a302f95ae2880c519b66cb224", "score": "0.80680895", "text": "@Override\n public String toString() {\n return ReflectionToStringBuilder.toString(this,\n ToStringStyle.SIMPLE_STYLE, true, true);\n }", "title": "" }, { "docid": "07bd8e7433ada9ec9b7f9dbb35574943", "score": "0.80644035", "text": "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "title": "" }, { "docid": "b373c85db21a2ce25ad65ff68f34cf91", "score": "0.8056076", "text": "@Override\n public String toString() {\n return this.toJSONObject().toJSONString();\n }", "title": "" }, { "docid": "95f24088c86094fe24c802127ac36fa8", "score": "0.80353737", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}", "title": "" }, { "docid": "3afad104ee4b00c6ac65a36b01b11d06", "score": "0.8029161", "text": "@Override\n public final String toString() {\n return this.toString();\n }", "title": "" }, { "docid": "246926450462594708f6c6867a701d6f", "score": "0.8018205", "text": "@Override\n public String toString() {\n ByteArrayOutputStream s = new ByteArrayOutputStream();\n writeJSONToStream(s);\n return new String(s.toByteArray(), java.nio.charset.StandardCharsets.UTF_8);\n }", "title": "" }, { "docid": "74de2cee768e44bf752daa01709d286b", "score": "0.7986409", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"\"; // TODO\n\t}", "title": "" }, { "docid": "15bcfcfd2028d92b70fa2f99361aaf24", "score": "0.7986017", "text": "@Override\n\t\tpublic String toString ()\n\t\t{\n\t\t\treturn org.cosmo.common.util.Util.string(bytes());\n\t\t}", "title": "" }, { "docid": "52840fc9edd86391e0ac66c5747788ff", "score": "0.7979224", "text": "public String toString() {\n return toExternalForm();\n }", "title": "" }, { "docid": "cd2bf1104b7f9e5f5a72556d0c4b816d", "score": "0.7962241", "text": "@Override\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\n\t}", "title": "" }, { "docid": "fbed2f3183a256f634dde770ee025ccb", "score": "0.7928722", "text": "public String toString() {\n\t\t\t\treturn data.toString();\n\t\t\t}", "title": "" }, { "docid": "abf859cedc5ca72b85f4975427b4ff01", "score": "0.79239887", "text": "@Override String toString();", "title": "" }, { "docid": "abf859cedc5ca72b85f4975427b4ff01", "score": "0.79239887", "text": "@Override String toString();", "title": "" }, { "docid": "1fa9f2a4be0728e56f630bb1137348cc", "score": "0.7923731", "text": "public String toString() {\n StringBuilder builder = new StringBuilder();\n buildingString(builder);\n return builder.toString();\n }", "title": "" }, { "docid": "ddb2d41da3a5336ac75bad882d771baa", "score": "0.79153776", "text": "@Override\r\n public String toString()\r\n {\r\n return ToStringBuilder.reflectionToString(this);\r\n }", "title": "" }, { "docid": "06d9ffda2d98273caaabaa48f605d059", "score": "0.79075223", "text": "@Override\n\tpublic String toString() {\n\t\treturn stringRep;\n\t}", "title": "" }, { "docid": "6b77ada25d563509685053b6d9f4ca6d", "score": "0.7903756", "text": "public String toString() {\n StringBuilder sb = new StringBuilder();\n this.toString(sb, 0);\n return sb.toString();\n }", "title": "" }, { "docid": "9d0068f2f5c1a5d938ceb70d43f1a8a7", "score": "0.79016817", "text": "@Override\n public String toString() {\n return toString(true);\n }", "title": "" }, { "docid": "88c2bd49e8a5ffc21aa532e58f99b678", "score": "0.78961426", "text": "public String toString() {\r\n\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "88c2bd49e8a5ffc21aa532e58f99b678", "score": "0.78961426", "text": "public String toString() {\r\n\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "f396cc51eb5f151ddb8f18e0a698f8d5", "score": "0.7883817", "text": "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "title": "" }, { "docid": "f396cc51eb5f151ddb8f18e0a698f8d5", "score": "0.7883817", "text": "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "title": "" }, { "docid": "f396cc51eb5f151ddb8f18e0a698f8d5", "score": "0.7883817", "text": "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "title": "" }, { "docid": "f396cc51eb5f151ddb8f18e0a698f8d5", "score": "0.7883817", "text": "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "title": "" }, { "docid": "6b6427e889611fa150244f34855ff244", "score": "0.7877619", "text": "@Override\r\n\tpublic String toString();", "title": "" }, { "docid": "e1f0947c945fa6104a52aa0a3b95bb62", "score": "0.78621536", "text": "@Override\r\n String toString();", "title": "" }, { "docid": "f21d55a04fe3523dd865f48701c5ce50", "score": "0.78478956", "text": "public String toString()\n\t\t{\n\t\t\treturn toString(\"\");\n\t\t}", "title": "" }, { "docid": "da4620c3c1ab52fd6731b7fbaa477324", "score": "0.78387827", "text": "@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn super.toString();\n\t\t\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.7820443", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.7820443", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.7820443", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "d574a4e5b679879b97dd9e440b0f2dde", "score": "0.7800575", "text": "public String toString() { return ToStringBuilder.reflectionToString(this); }", "title": "" }, { "docid": "dc526cd149ceeda31a5a38bc4c4930dc", "score": "0.7798496", "text": "@Override\r\n public String toString() {\r\n return OpbToStringHelper.toString(this);\r\n }", "title": "" }, { "docid": "48994286f58632d7d1ba3d45c16a2738", "score": "0.77901125", "text": "@Override\r\n public String toString();", "title": "" }, { "docid": "48994286f58632d7d1ba3d45c16a2738", "score": "0.77901125", "text": "@Override\r\n public String toString();", "title": "" }, { "docid": "2e6dcfe52077b5f73c4e7bfcd06d9068", "score": "0.7788598", "text": "@Override\n\tpublic String toString() {\n\t\t//TODO implement me!!!\n\t}", "title": "" }, { "docid": "bc983bb319956c1f4965a2fb6411a7f2", "score": "0.7786523", "text": "public String toString() {\n return formatString(false);\n }", "title": "" }, { "docid": "271daff3a74fa6d4bf81c312ee1f8a0f", "score": "0.7780928", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "271daff3a74fa6d4bf81c312ee1f8a0f", "score": "0.7780928", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "ab9e143347f217bc9fcbaac89f5f4e65", "score": "0.77719516", "text": "@Override\n\tpublic String toString() {\n\t\treturn (super.toString());\n\t}", "title": "" }, { "docid": "833cae2973ae8dc82ab386f897223494", "score": "0.77654564", "text": "@Override\n\tpublic String toString()\n\t{\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "c7b5f7246eb98f920d7840cc18dda53c", "score": "0.7757176", "text": "@Override\n String toString();", "title": "" }, { "docid": "c7b5f7246eb98f920d7840cc18dda53c", "score": "0.7757176", "text": "@Override\n String toString();", "title": "" }, { "docid": "c7b5f7246eb98f920d7840cc18dda53c", "score": "0.7757176", "text": "@Override\n String toString();", "title": "" }, { "docid": "c7b5f7246eb98f920d7840cc18dda53c", "score": "0.7757176", "text": "@Override\n String toString();", "title": "" }, { "docid": "c7b5f7246eb98f920d7840cc18dda53c", "score": "0.7757176", "text": "@Override\n String toString();", "title": "" }, { "docid": "c7b5f7246eb98f920d7840cc18dda53c", "score": "0.7757176", "text": "@Override\n String toString();", "title": "" }, { "docid": "affccaf0ee5d71f9fe7576a847873233", "score": "0.7755796", "text": "public String toString () {\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "9eb6a46424b081ca47991b52a31bd606", "score": "0.7752979", "text": "public String toString() {\n\t\treturn toString(false);\n\t}", "title": "" }, { "docid": "9eb6a46424b081ca47991b52a31bd606", "score": "0.7752979", "text": "public String toString() {\n\t\treturn toString(false);\n\t}", "title": "" }, { "docid": "cf76f06fa71700b0731f56dc00cc2d85", "score": "0.7744362", "text": "public String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "dfe1e68d25b1c421e29e5743579b2897", "score": "0.7740091", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "23c5e1ca27bcf906c10903110289b4a9", "score": "0.7733195", "text": "@Override\n\tpublic String toString() {\n\t\tString s = super.toString();\n\t\treturn s;\n\t}", "title": "" }, { "docid": "d21af80a598f1812f03168c6f942e72f", "score": "0.77324706", "text": "public String toString()\n\t{\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "081f09e60d857b00aa8d1ba32b25ed8a", "score": "0.7731468", "text": "@Override\n\tpublic String toString();", "title": "" }, { "docid": "081f09e60d857b00aa8d1ba32b25ed8a", "score": "0.7731468", "text": "@Override\n\tpublic String toString();", "title": "" }, { "docid": "081f09e60d857b00aa8d1ba32b25ed8a", "score": "0.7731468", "text": "@Override\n\tpublic String toString();", "title": "" }, { "docid": "7834616739e63a86d0a131b6832ab4b8", "score": "0.7723595", "text": "public String toString ( ) {\n \t\treturn \"\";\n \t}", "title": "" }, { "docid": "58a900b61c917adf2b5368e8f6995136", "score": "0.7713795", "text": "@Override\n\tpublic String toString () {\n\t\treturn EPPUtil.toString( this );\n\t}", "title": "" }, { "docid": "7cfab76cbbcd8ee2ef857e7840de5463", "score": "0.76883215", "text": "public String toString() {\n return this.getStringValue();\n }", "title": "" }, { "docid": "838b1ea309be875b55e1e951ad61d552", "score": "0.76880616", "text": "public String toString() {\r\n\r\n\t\tStringBuilder buffer = new StringBuilder();\r\n\r\n\t\tbuffer.append(\"id=[\").append(id).append(\"] \");\r\n\t\tbuffer.append(\"name=[\").append(name).append(\"] \");\r\n\t\tbuffer.append(\"description=[\").append(description).append(\"] \");\r\n\r\n\t\treturn buffer.toString();\r\n\t}", "title": "" }, { "docid": "304e5a39e3982991a22a1b80882775d8", "score": "0.76758647", "text": "public String toString() {\n return String.valueOf(this.data);\n }", "title": "" }, { "docid": "2f6929d3f07d2d279a4f741dbe2aeacb", "score": "0.7675428", "text": "@Override\n String toString();", "title": "" }, { "docid": "6d984bc27b0a4b7d00fdc774d732b93e", "score": "0.7674273", "text": "@Override\n\tpublic String toString()\n\t{\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "4466408b8c7c9cb38bced3d7a2eeb672", "score": "0.7669666", "text": "@Override\n\tpublic final String toString() {\n\t\t// TODO Auto-generated method stub\n\t\treturn super.toString();\n\t}", "title": "" } ]
aa0fda39fd8ecadb75d30491aea23349
Sets up the timer's view
[ { "docid": "da14f76de59e128f91606876bd15552a", "score": "0.74158704", "text": "private void SetUpView(final TimerHolder holder) {\n holder.NameTextView.setText(holder.Timer.getTimerName());\n\n //This can just be called more times when running!\n holder.TimeLeftTextView.setText(holder.Timer.GetStringTimeLeft());\n holder.Timer.TimerUiDelegate = holder;\n\n if (holder.Timer.getTimerRunning()) {\n holder.StartStopButton.setText(\"PAUSE\");\n holder.SetResetButton.setText(\"RESET\");\n }\n\n holder.StartStopButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n MainActivityInterface.startStopButtonPress(holder);\n }\n });\n\n holder.SetResetButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n MainActivityInterface.setResetButtonPress(holder);\n }\n });\n\n holder.DeleteButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n MainActivityInterface.deleteButtonPress(holder);\n }\n });\n\n holder.view.setBackgroundColor(holder.Timer.getColor());\n }", "title": "" } ]
[ { "docid": "704c3454a2063285e190a88838ee2164", "score": "0.7103547", "text": "public void startTimer(View view) {\n\t\tcountDownTime = 10000;\n\t\tstartTimer(countDownTime);\n\t}", "title": "" }, { "docid": "9dcb38ee0b2e6951a4077c4000af300e", "score": "0.6770242", "text": "private void setupViews() {\n thermometer = (Thermometer) getView().findViewById(R.id.thermometer);\n mTvDataTransferRate = (TextView) getView().findViewById(R.id.tv_data_transfer);\n mTvHumidity = (TextView) getView().findViewById(R.id.tv_humidity);\n mTvTemperature = (TextView) getView().findViewById(R.id.tv_temp_value);\n mWaveLoadingView = (WaveLoadingView) getView().findViewById(R.id.waveLoadingView);\n mTvNode = (TextView) getView().findViewById(R.id.tv_node);\n //mTimer.start();\n\n }", "title": "" }, { "docid": "177ac6317a33a3e4df3ac4109543de26", "score": "0.6765873", "text": "private void startTimerToShowRefreshView(){\n handler.sendEmptyMessageDelayed(0,100);\n }", "title": "" }, { "docid": "ecb148ad273315ba4ea06ce865917eb7", "score": "0.66446453", "text": "public ViewTimetable() {\n initComponents();\n this.setLocationRelativeTo(null);\n viewtimetable();\n }", "title": "" }, { "docid": "ca799d448ff68fdafbea8bcfc5f0941f", "score": "0.66357255", "text": "public StartupScreen() {\n // timer.start();\n t = new Timer(5000, this); // Timer in 10 seconds\n t.start();\n initComponents();\n setDimension();\n }", "title": "" }, { "docid": "f8b974a2c560a4b509d8f83e1c47ba9d", "score": "0.6606368", "text": "public SimpleViewer() {\n this(null);\n timer = new Timer();\n timer.start();\n }", "title": "" }, { "docid": "bb7f3c74586a91a88459885a22c8df2c", "score": "0.65725875", "text": "public void setTime(View view){\n\n new TimePickerDialog(MainActivity.this, setTimeVariables,\n myCalendar.get(Calendar.HOUR),\n myCalendar.get(Calendar.MINUTE),\n true\n\n ).show();\n\n }", "title": "" }, { "docid": "d00bc382c3bd5ed344ce1a0974b594db", "score": "0.65617895", "text": "public DesktopTimer() {\n elapsedTime = new ElapsedTime();\n\n timeline = new Timeline(new KeyFrame(Duration.millis(1000), new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n elapsedTime.tick();\n view.setTimerValue(elapsedTime.toString());\n }\n }));\n timeline.setCycleCount(Timeline.INDEFINITE);\n }", "title": "" }, { "docid": "175c25f57397944f18450edd0be20847", "score": "0.6545659", "text": "public TimerView(ITanks gameModel) {\r\n float screenWidth = TanksAppAdapter.INSTANCE.getScreenWidth();\r\n float screenHeight = TanksAppAdapter.INSTANCE.getScreenHeight();\r\n \r\n picture = new Picture(\"GameTimer\");\r\n picture.setImage(assetManager, \"Interface/TimerBG.png\", true);\r\n picture.setWidth(screenWidth/12);\r\n picture.setHeight(screenHeight/16);\r\n \r\n BitmapFont font = assetManager.loadFont(EFonts.HANDDRAWNSHAPES.getPath());\r\n bitmapText = new BitmapText(font, false);\r\n bitmapText.setSize(font.getCharSet().getRenderedSize() * ((screenWidth/screenHeight) * 0.65f)); \r\n bitmapText.setText(\"99:99\");\r\n \r\n float xText = (screenWidth/2) - (bitmapText.getLineWidth() * 0.5f);\r\n float yText = (screenHeight/2) + (bitmapText.getLineHeight() * 0.32f);\r\n float xPic = (screenWidth/2) - (screenWidth/12) * 0.5f;\r\n float yPic = (screenHeight/2) - (screenHeight/16) * 0.5f;\r\n if (gameModel.getPlayers().size() == 1) {\r\n xPic = screenWidth - ((screenWidth/12) * 1.3f);\r\n yPic = screenHeight - ((screenHeight/16) * 1.5f);\r\n xText = screenWidth - ((screenWidth/12) * 1.1f);\r\n yText = screenHeight - ((screenHeight/16) * 0.8f);\r\n }\r\n picture.setPosition(xPic, yPic);\r\n bitmapText.setLocalTranslation(xText, yText, 1);\r\n \r\n gameModel.addObserver(this);\r\n }", "title": "" }, { "docid": "4b69f16f149aea5844e7d3aa5206b253", "score": "0.64970326", "text": "private void setupTimer() {\r\n // Define a single frame, with the duration of second/60\r\n final KeyFrame keyFrame = new KeyFrame(new Duration(Timeslider.STEP_SIZE), event -> this.updateKeyFrame());\r\n\r\n // The render loop play the frames\r\n this.timeline = new Timeline(keyFrame);\r\n\r\n this.timeline.setCycleCount(Animation.INDEFINITE);\r\n }", "title": "" }, { "docid": "ab92c2cb0cf0ab9d8f01469266852c92", "score": "0.6454934", "text": "public MainView() {\n initComponents();\n \n mPanelViewContent.setLayout(new java.awt.BorderLayout());\n mPanelViewContent.add(new ScheduleView());\n }", "title": "" }, { "docid": "35529eb9ac2030ffffddf386d93ed855", "score": "0.64415956", "text": "public TimeTableController(TimetableComponent view) {\n this.view = view; // register the view that wants to use this controller\n this.root = view.getTimeTable();\n setModel(Main.model); // set the model we want to read / write to.\n initView();\n }", "title": "" }, { "docid": "46269559727a75e14bad6a66ac8120bb", "score": "0.64368176", "text": "private void SetupTimer()\n {\n m_timer = new Timer();\n }", "title": "" }, { "docid": "3b3243d2ea7d1499322682e8d2d0cd6a", "score": "0.6436271", "text": "public void showTimer()\n\t{\n\t\t\n\t\trdControl.setBackgroundResource(R.drawable.unchecked);\n\t\trdTime.setBackgroundResource(R.drawable.checked);\n\t\trdLive.setBackgroundResource(R.drawable.unchecked);\n\t\t\n\t\tasstTimeText.setVisibility(View.VISIBLE);\n\t\ttimerFrame.setVisibility(View.VISIBLE);\n\t\t\n\t\tasstTypeString = \"401\";\n\t}", "title": "" }, { "docid": "b71a4c2ad05623cdcfb1834ecc3b3af9", "score": "0.64362097", "text": "private void initializeTimer(){\n animationTimer = new AnimationTimer() {\n @Override\n public void handle(long now) {\n if(model.isStopLoops()){\n animationTimer.stop();\n if(model.isTheGameDone()) {\n SavedInformationHandler.saveGame((Game) model);\n final CongratzView congratzView = new CongratzView(stage);\n new CongratzController(model, congratzView, stage);\n view.inactivate();\n }\n }\n }\n };\n animationTimer.start();\n }", "title": "" }, { "docid": "46f218b3a236c7de80c35d581e449d81", "score": "0.64074826", "text": "public void setTime(View v){\n showDialog(DIALOG_TIME);\n }", "title": "" }, { "docid": "51bbae123abea182c2cc7cd598ad8cae", "score": "0.63984036", "text": "private void setTimer(){\r\n timer.scheduleAtFixedRate(new TimerTask() {\r\n public void run() {\r\n Heure.setText(LockScreen.this.getTime());\r\n }\r\n }, 1000, 1000);\r\n }", "title": "" }, { "docid": "cd45bb7f76dd246e41a6bf7fca868c28", "score": "0.63631296", "text": "private void initView() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f5221ca581446a1a7b1e449a4fbea3aa", "score": "0.63625747", "text": "public TimerClockView(Context context) {\n super(context);\n mContext = context;\n initDrawable();\n }", "title": "" }, { "docid": "a85ffd884fde84267d45149c45875f0b", "score": "0.63377136", "text": "private void setupView() {\n t = new Tuition();\n ButtonHandlerNext next = new ButtonHandlerNext();\n nextButton = (Button)findViewById(R.id.buttonNext);\n nextButton.setOnClickListener(next);\n }", "title": "" }, { "docid": "32c12afdaa54525ade91c0618f6d92cb", "score": "0.63202333", "text": "void setTimer() {\r\n timer = new TimerCount();\r\n timer.start();\r\n }", "title": "" }, { "docid": "e9f6c686d92bab3fee1aece8a215d3e3", "score": "0.63173413", "text": "private void createTimer() {\n TimerFragment timerFragment = new TimerFragment();\n timerFragment.show(getFragmentManager(), \"timer_dialog\");\n }", "title": "" }, { "docid": "5f60628b4d1ffd21fdb6baf727c78039", "score": "0.6312636", "text": "private void initView() {\n\t\t\n\t}", "title": "" }, { "docid": "8a92ea530652129498ac43d6ea43006e", "score": "0.6311084", "text": "@Override\n public void initView() {\n mRefreshLayout.setRefreshListener(new JellyRefreshLayout.JellyRefreshListener() {\n @Override\n public void onRefresh(JellyRefreshLayout jellyRefreshLayout) {\n mRefreshLayout.postDelayed(new Runnable() {\n @Override\n public void run() {\n mRefreshLayout.finishRefreshing();\n }\n }, 3000);\n }\n });\n }", "title": "" }, { "docid": "8f389fb6aeebf9ca021ee17e4fcb411a", "score": "0.63023347", "text": "private void initView() {\n }", "title": "" }, { "docid": "8f389fb6aeebf9ca021ee17e4fcb411a", "score": "0.63023347", "text": "private void initView() {\n }", "title": "" }, { "docid": "01722fedc308f66a958de0a33413cb03", "score": "0.62875956", "text": "public View()\n\t{\n\t\tinitialize();\n\t\tmakeFrame();\n\t}", "title": "" }, { "docid": "580d6f9fac5cf1215052c6eecf23e841", "score": "0.6274074", "text": "private void initView() {\n\t\n\t}", "title": "" }, { "docid": "508b8596d5f48fcb277892c2ef9e0508", "score": "0.6259324", "text": "public GameController(GameView view) {\r\n\t\tthis.view = view;\r\n\t\t// creates a new timer on the game.\r\n\t\ttimer = new Timer(FRAME_INTERVAL, this);\r\n\t\t// starts the timer.\r\n\t\ttimer.start();\r\n\t}", "title": "" }, { "docid": "4ddcb9927ec6e247ffae3d6629dbfe1f", "score": "0.62422055", "text": "public mainTimerTask() {\n }", "title": "" }, { "docid": "8e1d7ea55569c6959f0882fc952c9441", "score": "0.6229955", "text": "private void initView() {\n\r\n\t}", "title": "" }, { "docid": "994ea9bd430ae333c83edd7c0c1691b9", "score": "0.6229595", "text": "public void show(){\n\t\tsuper.show();\n\t\tthis.timer.schedule(3000);\n\t}", "title": "" }, { "docid": "dac6842f724cc28c3fe5e7028ba58881", "score": "0.6227599", "text": "public void initializeTimerTask() {\n timerTask = new TimerTask() {\n public void run() {\n Log.i(\"in timer\", \"in timer ++++ \"+ (counter++));\n }\n };\n }", "title": "" }, { "docid": "d8869252a552acc40f081dbbb8ecf3c4", "score": "0.61772895", "text": "public View() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "f73adc953f78a6c37528d7687cec5f47", "score": "0.6176947", "text": "private void initTimerTask()\n\t{\n\t\tmTask = new TimerTask()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tif (!mIsTimerCancelled)\n\t\t\t\t{\n\t\t\t\t\t// startActivity(new Intent(SplashActivity.this, SocialPlatformsActivity.class));\n\t\t\t\t\t// finish();\n\t\t\t\t\trunOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (PrefUtils.getSharedPrefString(mThis, PrefConstants.USER_ID).equals(\"\")\n\t\t\t\t\t\t\t\t\t|| PrefUtils.getSharedPrefString(SplashActivity.this, PrefConstants.SCREEN_STEP)\n\t\t\t\t\t\t\t\t\t\t\t.equals(AppConstants.STEP_LOGIN))\n\t\t\t\t\t\t\t\tmLoginTextView.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tredirectAccToStep();\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "faedd06df64f5af10c172c03e69ed756", "score": "0.61647135", "text": "public BoardMenuTimerPanel() {\n\t\ttimeString = \"00:00\";\n\n\t\tsetPreferredSize(new Dimension(260, 35));\n\t\tsetFont(timerFont);\n\t\tsetBackground(Color.WHITE);\n\t\tsetLayout(new GridLayout(1, 2));\n\n\t\t// adds the JLabel to the screen\n\t\tJLabel timer = new JLabel(\"Time Remaining: \");\n\t\ttimer.setFont(timerFont);\n\t\tadd(timer);\n\t}", "title": "" }, { "docid": "dac0e9a3efca1fc0839fab268c2ea988", "score": "0.61583525", "text": "@FXML\n\tprivate void time(ActionEvent event) {\n\t\ttimePane.toFront();\n\t\tthis.timePane.setVisible(true);\n\t\tthis.schedulePane.setVisible(false);\n\t\tthis.projectPane.setVisible(false);\n\t\tthis.salarySlipPane.setVisible(false);\n\t\tthis.ManageAccountsPane.setVisible(false);\n\t\tthis.mainMenuPain.setVisible(false);\n\t}", "title": "" }, { "docid": "31c578daa58f17809671f1109ec07e77", "score": "0.61375296", "text": "public void setLoadScreen() {\n\t\tRingProgressIndicator timerVisual = new RingProgressIndicator();\n\t\ttimerVisual.setRingWidth(200);\n\t\ttimerVisual.makeIndeterminate();\n\t\t\n\t\tScene loadScene = new Scene(timerVisual, 700, 700);\n\t\tsetScene(loadScene);\n\t}", "title": "" }, { "docid": "5d086553ee300365ecad16dab879de20", "score": "0.61359364", "text": "public TableauView() {\n initComponents();\n initHelper();\n }", "title": "" }, { "docid": "8ed83a6dcdb23be3146e2995b3200f63", "score": "0.61328906", "text": "private void initTimer() {\n mTimerHandler = new Handler();\n mTimerRunnable = new Runnable() {\n //-------------------------------------------------------------------------------\n // run\n //-------------------------------------------------------------------------------\n @Override\n public void run() {\n onTimerRunnable();\n }\n };\n }", "title": "" }, { "docid": "31b24ae5ff1f66486ffda086dd06dda3", "score": "0.6124623", "text": "public void initTimeView(TextView text){\n text.setText(\"15\");\n }", "title": "" }, { "docid": "4430dddc85d16151c522c2906a95351a", "score": "0.6124337", "text": "@Override\n public void initialize() {\n _timer.start();\n }", "title": "" }, { "docid": "5a5e40534c2a7f7dc49b8e32e93014ea", "score": "0.61219573", "text": "private void displayTime() {\n\t\tClock time = new Clock();\n\t\tdateAndTimeLabel.textProperty().bind(time.messageProperty());\n\t\tnew Thread(time).start();\n\n\t}", "title": "" }, { "docid": "995cf51913f3b1311092054cd51a08a2", "score": "0.60946554", "text": "public MainView() {\n initComponents();\n init();\n }", "title": "" }, { "docid": "f6c09906d00fc5cdbb9e649e3017854c", "score": "0.60933834", "text": "public view() {\n initComponents();\n }", "title": "" }, { "docid": "ab5b3e07852a46b6b1d6dcf58361437e", "score": "0.6089718", "text": "private void initView(){\n }", "title": "" }, { "docid": "f84f10286cafb3bf4622cae3513c27b2", "score": "0.6084743", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n ViewGroup v = (ViewGroup)inflater.inflate(R.layout.stopwatch_fragment, container, false);\n\n mTimeText = (TimerView)v.findViewById(R.id.stopwatch_time_text);\n\n // Initiate the stopwatch when the view is created\n toggleStopWatchState();\n return v;\n }", "title": "" }, { "docid": "7d7e7c7f78df27c49b3af858184abd66", "score": "0.6082435", "text": "@Override protected void startup() {\n show(new JLottoView(this));\n }", "title": "" }, { "docid": "4be83dd834e1ebd36d56225c906e8c67", "score": "0.60787237", "text": "public TimeBarView(Context context) {\n this(context, null);\n }", "title": "" }, { "docid": "0527b87d941635095780ffbb3c2f06fe", "score": "0.60742134", "text": "public DailyView() {\n initComponents();\n }", "title": "" }, { "docid": "ca24338fb48246353958e8b8d2c44a09", "score": "0.60677403", "text": "public MainView() {\n\n //Title\n this.setTitle(\"HỆ THỐNG QUẢN LÝ BÁN VÉ XEM PHIM - RUBIKCREW_TEAM 1\");\n //set frame to Center Screen\n Toolkit theKit = this.getToolkit();\n Dimension wndSize = theKit.getScreenSize();\n this.setBounds(wndSize.width / 11, wndSize.height / 11, // Position \n wndSize.width / 2, wndSize.height / 2); // Size \n\n //set icon\n try {\n BufferedImage image;\n image = ImageIO.read(this.getClass().getResource(\"/Images/Icons/icon232x32.png\"));\n this.setIconImage(image);\n } catch (IOException ex) {\n Logger.getLogger(MainView.class.getName()).log(Level.SEVERE, null, ex);\n }\n\t\n\t//Khoi tao \n initComponents();\n\t\n\tsetTimeSystem();\n }", "title": "" }, { "docid": "677cf13bef2c680114cdbb9511f4d53c", "score": "0.60639286", "text": "Gestor(Controller controller, int timer) {\n this.controller=controller;\n this.timerDuration=timer;\n }", "title": "" }, { "docid": "a3dbdefafbba5c859cb28af16ed43c99", "score": "0.60629964", "text": "public void startTimer() {\n clearTimer();\n addOnPreDrawListener();\n }", "title": "" }, { "docid": "2cf9c693a719454de36014c9ac5575e2", "score": "0.605579", "text": "@Override\n\tpublic void teleopInit() {\n\t\ttimer.start();\n\t}", "title": "" }, { "docid": "c5c64761f3e9f6fff3b88dc397f790f4", "score": "0.6055625", "text": "private void initViews() {\n\t\tdate_layout = this.findViewById(R.id.schedule_date_layout);\r\n\t\ttime_layout = this.findViewById(R.id.schedule_time_layout);\r\n\t\trepead_layout = this.findViewById(R.id.schedule_repead_layout);\r\n\t\tet_remarks = (EditText) this.findViewById(R.id.schedule_remarks);\r\n\t\tet_events = (EditText) this.findViewById(R.id.schedule_event);\r\n\r\n\t\ttv_date = (TextView) this.findViewById(R.id.newschedule_date);\r\n\t\ttv_time = (TextView) this.findViewById(R.id.newschedule_time);\r\n\t\ttv_remind = (TextView) this.findViewById(R.id.newschedule_remaid);\r\n\r\n\t\tsave = (Button) this.findViewById(R.id.schedule_save);\r\n\r\n\t\tdrop_arrow = (ImageView) this.findViewById(R.id.drop_arrow);\r\n\r\n\t\trg_eventGroup = (RadioGroup) this.findViewById(R.id.event_group);\r\n\t}", "title": "" }, { "docid": "000d4e3a5633718d358ed4050a52f611", "score": "0.60491115", "text": "public View() {\n\t\tsuper();\n\t\tthis.eventBus = InjectorSingleton.getInjector().getInstance(\n\t\t\t\tEventBus.class);\n\t\tthis.setName(\"View\");\n\t}", "title": "" }, { "docid": "043a2471820425570bfb0415824f8e47", "score": "0.60489553", "text": "@Override\n protected void initViews() {\n }", "title": "" }, { "docid": "f25c0ccc040a4704e297e0a6472891ad", "score": "0.60478145", "text": "@Override\n public void run() {\n setDurationText(\"test\");\n }", "title": "" }, { "docid": "ece80f1671333e0a4a040c4481deae55", "score": "0.6046532", "text": "public TimerClockView(Context context, AttributeSet attrs) {\n super(context, attrs);\n mContext = context;\n initDrawable();\n }", "title": "" }, { "docid": "9da8cd123e516b3de0ef8e61bbc67866", "score": "0.60420215", "text": "@Override\n protected void initView() {\n }", "title": "" }, { "docid": "4e2dcaca0cf06c023862fdabd9c75cb2", "score": "0.6035326", "text": "protected abstract void initView();", "title": "" }, { "docid": "ed3d0207a250f87b01efbee24ea3c2f0", "score": "0.6022056", "text": "public ClockDisplay()\n {\n hours = new NumberDisplay(12);\n minutes = new NumberDisplay(60);\n alarmHour = -1;\n alarmMinute = -1;\n alarmDayTime = null;\n isAlarmActive = false;\n updateDisplay();\n }", "title": "" }, { "docid": "de54868e532d57206c5ad7adda42c40b", "score": "0.60194075", "text": "@Override\n\tprotected void displayView() {\n\t\ttr.setEndTime(new Date());\n\t\tConsole.output(\"考试结束,现在时间是:\"\n\t\t\t\t+ Configuration.getDateFormat().format(tr.getEndTime()));\n\t\tlong duration = 0;\n\t\tif(timeout) {\n\t\t\tConsole.output(\"时间已到,考试已由系统提交\");\n\t\t\tduration = this.tr.getTest().getTimeLimitMin();\n\t\t} else {\n\t\t\tduration = (this.tr.getEndTime().getTime()-this.tr.getStartTime().getTime())/(1000*60);\n\t\t\tif(duration == 0)duration=1;\n\t\t}\n\t\tConsole.output(\"你花了%1$s分钟考试%n\",duration);\n\t\t\n\t}", "title": "" }, { "docid": "01ad5f34bbd5445be9db9bbec5911737", "score": "0.6018807", "text": "private View createAlarmTimeStep() {\n LayoutInflater inflater = LayoutInflater.from(getContext());\n LinearLayout timeStepContent =\n (LinearLayout) inflater.inflate(R.layout.step_time_layout, null, false);\n timeTextView = (TextView) timeStepContent.findViewById(R.id.time);\n timeTextView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n timePicker.show();\n }\n });\n return timeStepContent;\n }", "title": "" }, { "docid": "cb59c83d85520ae5b32a0e82d3735458", "score": "0.6018107", "text": "protected void updateView ()\n {\n long nnow = System.currentTimeMillis();\n float elapsed = Math.max(0f, (nnow - _now.value) / 1000f);\n _now.value = nnow;\n\n updateView(elapsed);\n }", "title": "" }, { "docid": "010f7c223ea7f45805d614c441645145", "score": "0.60151744", "text": "private void initView()\n\t{\n\t\tCreateList(shortList,0);\n\t\t// 点火\n\t\tignitionButton = (Button) findViewById(R.id.Button_Ignition);\n\t\tignitionButton.setOnClickListener(this);\n\t\t// 启动\n\t\tstartButton = (Button) findViewById(R.id.Button_Start);\n\t\tstartButton.setOnClickListener(this);\n\t\tstartButton.setOnTouchListener(this);\n\t\t// 熄火\n\t\tshutDownButton = (Button) findViewById(R.id.Button_ShutDown);\n\t\tshutDownButton.setOnClickListener(this);\n\t\t// 故障点说明\n\t\tfindViewById(R.id.Button_PointOfFailureThat).setOnClickListener(this);\n\t\t// 状态读取\n\t\tfindViewById(R.id.Button_StateIsRead).setOnClickListener(this);\n\t\t// 全部设置\n\t\tfindViewById(R.id.Button_SetAll).setOnClickListener(this);\n\t\t// 全部清除\n\t\tfindViewById(R.id.Button_ClearAll).setOnClickListener(this);\n\t}", "title": "" }, { "docid": "3f87ed4f5691140cda3d96aabc34ebe9", "score": "0.60132843", "text": "public AgendaView() {\n initComponents();\n setLocationRelativeTo();\n addPopup();\n addPopup2();\n\n }", "title": "" }, { "docid": "68c95142c8ce72cae4aefd450786b7e9", "score": "0.60096335", "text": "@Override protected void startup() {\n show(new SoftphoneView(this));\n }", "title": "" }, { "docid": "47377f21a10c25263c729aea1ecb9c65", "score": "0.6006504", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View RetView = inflater.inflate(R.layout.fragment_countdown_config, container, false);\n timePicker = (TimePicker) RetView.findViewById(R.id.timePicker);\n timePicker.setIs24HourView(true);\n\n timePicker.setCurrentHour((int)prefs.getLong(\"cntdown.hours\",1));\n timePicker.setCurrentMinute((int)prefs.getLong(\"cntdown.minutes\",1));\n return RetView;\n }", "title": "" }, { "docid": "136982fc20b0e5aa1a6ce023ef7f2539", "score": "0.5998334", "text": "@Override\n\tpublic TimeView createView(Context context, boolean isCenterView)\n\t{\n\t\treturn new TimeLayoutView(context, isCenterView,25,8,0.95f);\n\t}", "title": "" }, { "docid": "7be8d8065ddddfe4e09fecc5fc043aaa", "score": "0.59964764", "text": "public void setCurrentTimeOnView() {\n timePicker1 = (TimePicker) findViewById(R.id.timePicker1);\n final Calendar c = Calendar.getInstance();\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n // set current time into timepicker\n timePicker1.setCurrentHour(hour);\n timePicker1.setCurrentMinute(minute);\n }", "title": "" }, { "docid": "723b08b4d9bdd5f3811f61595ae7039f", "score": "0.5992744", "text": "public void show() {\n\t\ttry {\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tview = new AppView(grid);\n\t\t\t\t}\n\t\t\t});\n\t\t\tThread.sleep(1000); // Helps the GUI draw more smoothly.\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Exception while initialising view!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "44811e389a63b471a37653cf4bc2bd64", "score": "0.59911114", "text": "@Override\n\tprotected void initView() {\n\t\t\n\t}", "title": "" }, { "docid": "32b55c19e71ae102ec39832606178b0e", "score": "0.5988377", "text": "@Override\n\tpublic void initView()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "c208d5b0ad3c6753d0220d5b1b6ac36e", "score": "0.5978297", "text": "private void initview() {\n\n loadWaveData(0.30f);\n }", "title": "" }, { "docid": "589cb78b7f6032d0fa5258fd055d4a18", "score": "0.5974448", "text": "private void initViews() {\n\t}", "title": "" }, { "docid": "9b66ed27454877c9db99bf19ac0e6bee", "score": "0.5973755", "text": "@Override\n\tprotected void onTimer() {\n\n\t}", "title": "" }, { "docid": "d80869d5c839f4bb03d65036ca0be5ab", "score": "0.59686196", "text": "public void startUpTimer() {\n //pendiente\n }", "title": "" }, { "docid": "0797ed58f76de5dc833cabb492db9cc5", "score": "0.5962243", "text": "public ViewCalculadora() {\n initComponents();\n }", "title": "" }, { "docid": "28794d0c7735dc866e135fd9fad98617", "score": "0.59599036", "text": "@Override\r\n public void run() {\n previewHandler.post(new Runnable() {\r\n @Override\r\n public void run() {\r\n previewView.setRecordingTime(ConvertTools.secondsToHours(lapseTime++));\r\n }\r\n });\r\n }", "title": "" }, { "docid": "7d5d237e0a9a7a17d3f1f6a667e08023", "score": "0.5956922", "text": "public void setTimes() {\n\t\tclearTime();\n\t\tText floating = new Text(Config.floating);\n\t\tfloating.setStyle(Config.minorTextStyle);\n\t\ttime.getChildren().add(floating);\n\t\tthis.overdue.setVisible(false);\n\t}", "title": "" }, { "docid": "a8f54931afaf49e75f45d56b40ad3c41", "score": "0.594945", "text": "@SuppressLint(\"UseCompatLoadingForDrawables\")\n void setUpLayout(){\n addDotsIndicator(currentInt);\n back_button.setOnClickListener(v -> {\n new AlertDialog.Builder(this)\n .setTitle(this.getString(R.string.give_up_title))\n .setMessage(this.getString(R.string.give_up_message))\n .setPositiveButton(R.string.yes, (dialogInterface, i) -> {\n if(countDownTimer!=null){\n countDownTimer.cancel();\n }\n changeScreens(\"give_up\");\n })\n .setNegativeButton(R.string.no, null)\n .show();\n });\n if(currentItem.getImage()!=0){\n activity_working_out_slide_image2.setForeground(getDrawable(currentItem.getImage()));\n }\n else{\n activity_working_out_slide_image2.setForeground(null);\n }\n activity_working_out_slide_heading2.setText(currentItem.getTitle());\n if(currentItem.hasTimer()){\n next_button.setVisibility(View.VISIBLE);\n activity_working_out_slide_desc2.setText(\"\" + currentItem.getTimer(cool_down,level) + \" sec.\");\n long millisInFuture = currentItem.getTimer(cool_down,level) * 1000 + 3000;// adding buffer for people to start exercises\n DataClass.print(\"millis in future is: \" + millisInFuture);\n next_button.setText(getString(R.string.start));\n next_button.setOnClickListener(v->{\n next_button.setVisibility(View.GONE);\n countDownTimer = new CountDownTimer(millisInFuture, 1000) {\n @Override\n public void onTick(long millisUntilFinished) {\n timeLeft = millisUntilFinished;\n int minutes = (int) (timeLeft / 1000) / 60;\n int seconds = (int) (timeLeft / 1000) % 60;\n String timeLeftFormatted = String.format(Locale.getDefault(), \"%02d:%02d\", minutes, seconds);\n activity_working_out_slide_desc2.setText(timeLeftFormatted);\n DataClass.print(\"slideDesc in onTick is: \" + activity_working_out_slide_desc2.getText());\n DataClass.print(\"timeLeftFormatted is: \" + timeLeftFormatted);\n }\n\n @Override\n public void onFinish() {\n if (currentInt == fullWorkOutArray.size()-1){\n currentInt++;\n changeScreens(\"finish\");\n }\n else{\n currentInt ++;\n currentItem = fullWorkOutArray.get(currentInt);\n setUpLayout();\n }\n }\n }.start();\n\n });\n }\n else{\n DataClass.print(\"else statement reached workingoutactivity\");\n next_button.setVisibility(View.VISIBLE);\n next_button.setText(getString(R.string.next));\n next_button.setOnClickListener(v->{\n if (currentInt == fullWorkOutArray.size()-1){\n currentInt++;\n changeScreens(\"finish\");\n }\n else{\n currentInt ++;\n currentItem = fullWorkOutArray.get(currentInt);\n DataClass.print(\"workingoutactivity currentItem is:\" + currentInt);\n DataClass.print(\"workingoutactivity currentItem headings is:\" + getString(fullWorkOutArray.get(currentInt).getTitle()));\n setUpLayout();\n }\n\n });\n\n activity_working_out_slide_desc2.setText(currentItem.getReps(level));\n }\n\n }", "title": "" }, { "docid": "fb27bbb76f8f2f2871ac69ba986297bb", "score": "0.59475255", "text": "@Override\n\tpublic void initView() {\n\n\t}", "title": "" }, { "docid": "9bf73db20aae6659b31c021e87e670f7", "score": "0.59351015", "text": "public simulatorView() {\n initComponents();\n initSimulatorCompontents();\n setUpSimulation();\n }", "title": "" }, { "docid": "0527dc0d3063434b111a849fa332c733", "score": "0.5933226", "text": "@Override\n\tprotected void initView() {\n\n\t}", "title": "" }, { "docid": "0527dc0d3063434b111a849fa332c733", "score": "0.5933226", "text": "@Override\n\tprotected void initView() {\n\n\t}", "title": "" }, { "docid": "2c32bf39926f093ed04bffad538cff78", "score": "0.592974", "text": "public MainView() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "a72426cf8a6d65b71a43780681829572", "score": "0.59228534", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView rootView = inflater.inflate(R.layout.health_fragment, container,\n\t\t\t\tfalse);\n\t\thealthShow = (TextView) rootView.findViewById(R.id.health_show);\n\t\tnew Timer().schedule(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmHandler.sendEmptyMessage(222);\n\t\t\t}\n\t\t}, 0, 500);\n\t\treturn rootView;\n\t}", "title": "" }, { "docid": "ef6ea1255b4562d1c2d3dba16c01c5e6", "score": "0.59193796", "text": "public timetable() {\n initComponents();\n }", "title": "" }, { "docid": "00c10eb7794b669d74c26003f7df8fa0", "score": "0.59125364", "text": "@Override\n\tprotected void initView() {\n\t\tmRecyclerView = findViewById(R.id.healthalarm_list);\n\t\tmAddButton = findViewById(R.id.healthalarm_add);\n\t}", "title": "" }, { "docid": "122b3eed7d5e4722bbfb13d8c806ce3a", "score": "0.5908789", "text": "protected abstract void initViews();", "title": "" }, { "docid": "03e33f586b511fdf824926f50d0e64d0", "score": "0.590386", "text": "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.clock_and_control, container, false);\n }", "title": "" }, { "docid": "3f4f5bf0f6aec0e4125e4dce257e9661", "score": "0.5903495", "text": "@Override\n\tprotected void initView()\n\t{\n\n\t}", "title": "" }, { "docid": "3f8c5ecf033b442ebcb98d8dfdbd5672", "score": "0.5885365", "text": "public summeryDashboard() {\n initComponents();\n javax.swing.Timer t = new javax.swing.Timer(1000, new ClockListener());\n t.start();\n loadvalueForFreeChart();\n }", "title": "" }, { "docid": "fa1dbabb301230cc7b309e1bc723cd9e", "score": "0.58827436", "text": "public ServerGUI() {\n initComponents();\n \n //Methos so txt_time shows the time and is updated every second\n java.util.Timer timer1 = new java.util.Timer();\n // creates a TimerTask runnable task\n java.util.TimerTask task1 = new java.util.TimerTask(){\n @Override public void run(){\n // put task's code here\n DateFormat dateandtime = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n Date date = new Date();\n LocalDateTime now = LocalDateTime.now();\n txt_time.setText(dateandtime.format(date));\n }\n };\n /* submits and schedules the TimerTask on the Timer\n thread and sets required delay time in milliseconds */\n long delay = 100L; //\n long interval = 1000L;\n timer1.schedule(task1, delay, interval);\n }", "title": "" }, { "docid": "b056fca7e88fad6cba72c4b6adad9b2a", "score": "0.58809316", "text": "private void setupNewTimer(int seconds, int minutes, int hours){\n\t\t//Setup timer text\n\t\ttime = new Timer(hours, minutes, seconds, this, bPane);\n\t\ttime.getText().setFont(new Font(\"Digital\", 48));\n\t\ttime.getText().setTranslateY(-20);\n\t\tbPane.setCenter(time.getText());\n\t\t\n\t\t//Setup timer buttons \n\t\tButton start = time.getButtons()[0];\n\t\tstart.setTranslateY(160);\n\t\tButton pause = time.getButtons()[1];\n\t\tpause.setTranslateY(160);\n\t\tpause.setTranslateX(-7);\n\t\tbPane.setLeft(start);\n\t\tbPane.setRight(pause);\n\t}", "title": "" }, { "docid": "e8109956d74dcaa83a36ce75902e5675", "score": "0.5871447", "text": "public void startFinishShowTimer(){\t\t\n\t\tthis.controlTimer(\"finish_show_timer\", true);\n\t}", "title": "" }, { "docid": "2cebcbbf7b92d5468ec652de7e280e4e", "score": "0.5870584", "text": "@Override\n public void startUpdate(View arg0) {\n }", "title": "" }, { "docid": "59b18d415c2425176f34551a554fa125", "score": "0.5869721", "text": "public ClockFrame()\n {\n frame = this;\n init();\n }", "title": "" }, { "docid": "ec4ec370d64348780c476b4a3f4a9cce", "score": "0.5867898", "text": "public View() {\n initComponents();\n }", "title": "" } ]
d10575e06a89708e2b1c107e41ccf167
Get the qualified network service package.
[ { "docid": "81969bbd326271d6e2a0120db080095d", "score": "0.72434413", "text": "private String getQualifiedNetworksServicePackageName() {\n // Read package name from the resource\n String packageName = mPhone.getContext().getResources().getString(\n com.android.internal.R.string.config_qualified_networks_service_package);\n\n PersistableBundle b = mCarrierConfigManager.getConfigForSubId(mPhone.getSubId());\n\n if (b != null) {\n // If carrier config overrides it, use the one from carrier config\n String carrierConfigPackageName = b.getString(CarrierConfigManager\n .KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING);\n if (!TextUtils.isEmpty(carrierConfigPackageName)) {\n if (DBG) log(\"Found carrier config override \" + carrierConfigPackageName);\n packageName = carrierConfigPackageName;\n }\n }\n\n return packageName;\n }", "title": "" } ]
[ { "docid": "28c890ae5411047025de3e1a49efa3d9", "score": "0.6870159", "text": "ServicePackage getServicePackage();", "title": "" }, { "docid": "b02a30e3b65ca5f0212dcd54bd274bf6", "score": "0.6649072", "text": "String getPackage();", "title": "" }, { "docid": "153d3608a6c6efb484e8ae71f9ef4c46", "score": "0.6511811", "text": "Gsn_Package getGsn_Package();", "title": "" }, { "docid": "35c5b358e434ded4add9ff5fda0c6432", "score": "0.6298557", "text": "public java.lang.String getPackageName();", "title": "" }, { "docid": "fb3a1889ee1d24275f51d21cf7a38068", "score": "0.6172189", "text": "public java.lang.String getPackagePath();", "title": "" }, { "docid": "c18079ad7d67378846e36f47607a8a34", "score": "0.6161755", "text": "private String getPackageName() {\n final StringBuilder buf = new StringBuilder(256);\n final Iterator<String> iterator = packageStack.descendingIterator();\n while (iterator.hasNext()) {\n final String subPackage = iterator.next();\n buf.append(subPackage);\n if (!CommonUtil.endsWithChar(subPackage, '.') && iterator.hasNext()) {\n buf.append('.');\n }\n }\n return buf.toString();\n }", "title": "" }, { "docid": "7f63ea4cae832bb6fa3d671c9e30e3cc", "score": "0.61582553", "text": "private Object lookupPackage() {\n Object parsedPackage = Model.getFacade().lookupIn(\n Model.getModelManagementFactory().getRootModel(),\n \"téstpackage\");\n assertNotNull(\"No package \\\"téstpackage\\\" found in model.\",\n parsedPackage);\n return parsedPackage;\n }", "title": "" }, { "docid": "5bd2049a321eacab7650bcf80e03b6b4", "score": "0.6151152", "text": "public IPackageBinding getPackage();", "title": "" }, { "docid": "3524a4011a92ed5270f98dd0903283cf", "score": "0.6142122", "text": "private String getPackage() {\n try {\n return context.getApplicationContext().getPackageName();\n } catch (NullPointerException e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "0889a5a51b010f4fbc0f3210fb5dbfe5", "score": "0.61290056", "text": "public String getPackage(String prefix) {\n return prefixToPackage.get(prefix);\n }", "title": "" }, { "docid": "aa2c64decbfffea052aa4a6447a91670", "score": "0.6053734", "text": "public org.andromda.metafacades.uml.ModelElementFacade getPackage();", "title": "" }, { "docid": "c549bdb04f1fdccb30a2fd4dcad58c38", "score": "0.60533226", "text": "public org.andromda.metafacades.uml.PackageFacade getRootPackage();", "title": "" }, { "docid": "d2f766c3de8204a0a115e00fdb383963", "score": "0.6043839", "text": "PsmPackage getPsmPackage();", "title": "" }, { "docid": "77832912499f1e9d5463e0ec0eefdfb2", "score": "0.6035138", "text": "private NamespaceService getNamespaceService()\n\t{\n\t return getSandbox().getWebproject().getWebProjects().getNamespaceService();\n\t}", "title": "" }, { "docid": "6fd9a7279a03bd777cf99221904a5838", "score": "0.6019535", "text": "String getNamespace();", "title": "" }, { "docid": "6fd9a7279a03bd777cf99221904a5838", "score": "0.6019535", "text": "String getNamespace();", "title": "" }, { "docid": "6fd9a7279a03bd777cf99221904a5838", "score": "0.6019535", "text": "String getNamespace();", "title": "" }, { "docid": "e2cbc396cca6b79aeab26f1d0f89c9a9", "score": "0.6008499", "text": "public String getBasePackage() {\n return basePackage;\n }", "title": "" }, { "docid": "36e1c40fa1c6295234f051ed7d99f852", "score": "0.6004988", "text": "private String getPackageName(String uri) {\n\t\treturn NameConverter.standard.toPackageName(uri);\n\t\t// return\n\t\t// com.sun.tools.xjc.reader.Util.getPackageNameFromNamespaceURI(resourceURI);\n\t}", "title": "" }, { "docid": "53e720c4b2df3892e212c63ef17bd0a2", "score": "0.5963635", "text": "MasPackage getMasPackage();", "title": "" }, { "docid": "229b8ffaa57aa4ade300d812107cd583", "score": "0.59500015", "text": "public String getService() {\n return service;\n }", "title": "" }, { "docid": "bd9bd24dd0b12b3586bb3674b8669b81", "score": "0.5929534", "text": "public NetService getService() {\n\t\t\treturn NetService.this;\n\t\t}", "title": "" }, { "docid": "945f13e0d7b359dc494532ff488d8fbc", "score": "0.5923255", "text": "public String getPackage() {\n return null;\n }", "title": "" }, { "docid": "a3da3d7a6774d2783c5af1cf901a378e", "score": "0.5916291", "text": "private String getPackageName() {\r\n Summary current = type;\r\n while (!(current instanceof PackageSummary)) {\r\n current = current.getParent();\r\n }\r\n\r\n return ((PackageSummary)current).getName();\r\n }", "title": "" }, { "docid": "ff3f76da3b6965724bc3f42325d3f4be", "score": "0.5913507", "text": "public static String getPackageName() {\n return API.class.getPackage().getName();\n }", "title": "" }, { "docid": "a7a53815868dc2f5f21219c865ea3038", "score": "0.5908807", "text": "public ModelElementFacade getPackage()\n {\n return this.getSuperFrontEndAction().getPackage();\n }", "title": "" }, { "docid": "60a5d8cb87b9ae446c4262a6f98094d5", "score": "0.5898701", "text": "String getTargetNamespace();", "title": "" }, { "docid": "9cd7200817c97a19129c9d0b32750513", "score": "0.5894295", "text": "public String getNamespace() {\n if (namespace == null) {\n throw new NullPointerException(\"namespace required\");\n }\n return namespace;\n }", "title": "" }, { "docid": "86aae45e24e61cf8ee736f0fb77637ea", "score": "0.58862054", "text": "java.lang.String getServiceName();", "title": "" }, { "docid": "7c184e05f9b726bc353b27329af1e93a", "score": "0.58825046", "text": "public String getPkg() {\n return (String) getAttributeInternal(PKG);\n }", "title": "" }, { "docid": "d6f56d5020ea35bb54bf224f175e996b", "score": "0.5844304", "text": "SmartCityPackage getSmartCityPackage();", "title": "" }, { "docid": "cee691028f05abe1ee222a8efd41178e", "score": "0.5842601", "text": "public String getNamespace();", "title": "" }, { "docid": "cee691028f05abe1ee222a8efd41178e", "score": "0.5842601", "text": "public String getNamespace();", "title": "" }, { "docid": "06ad5c9c9da4c261d5596b2a04093ba9", "score": "0.5836167", "text": "public String basePackage() {\n return basePackage;\n }", "title": "" }, { "docid": "0e7c617ed522eef23228a270cdde4059", "score": "0.58358324", "text": "public String getDmwPackage(){\n return(mycore.getDmwPackage());\n }", "title": "" }, { "docid": "fd1d1765632da80ae27080cec2566671", "score": "0.5827161", "text": "String getServiceName();", "title": "" }, { "docid": "fd1d1765632da80ae27080cec2566671", "score": "0.5827161", "text": "String getServiceName();", "title": "" }, { "docid": "7c0f4154e0c1efe9bbdc66608953c044", "score": "0.5807819", "text": "public String getService()\n\t{\n\t\tchecktype(FMRIType.SERVICE);\n\t\treturn (service_);\n\t}", "title": "" }, { "docid": "98f4195a971416f70d314b29ef2553b8", "score": "0.57814854", "text": "@DSSource(DSSourceKind.NETWORK)\n public String getServiceName() {\n return mServiceName;\n }", "title": "" }, { "docid": "9a78ebf0077163a31cf331777cd54b36", "score": "0.57812667", "text": "com.google.protobuf.ByteString getNamespace();", "title": "" }, { "docid": "b7cad6803b87412b63310bb78aaa86cd", "score": "0.57744", "text": "public String getService() \r\n\t{\r\n\t\treturn m_service;\r\n\t}", "title": "" }, { "docid": "be1ae291389256455d40ec9730342424", "score": "0.5756259", "text": "public URI getService() {\n \t\treturn service;\n \t}", "title": "" }, { "docid": "cce704dbc896cf57610049a7730499f0", "score": "0.57487637", "text": "String getNamespacePrefix();", "title": "" }, { "docid": "44b95819694b7531cd1bd84290006841", "score": "0.5744917", "text": "PackageDeclaration getPackage();", "title": "" }, { "docid": "d2c480d63820e590e86058fb46fd561b", "score": "0.5742173", "text": "public String getService()\n {\n return m_service;\n }", "title": "" }, { "docid": "d47407a175b513539396f855451bcf15", "score": "0.5733055", "text": "java.lang.String getService();", "title": "" }, { "docid": "d47407a175b513539396f855451bcf15", "score": "0.5733055", "text": "java.lang.String getService();", "title": "" }, { "docid": "763f0b2d54375fe9a2ca54b297ff37f1", "score": "0.5728461", "text": "RoutingPackage getRoutingPackage();", "title": "" }, { "docid": "026c740fa7738ebb44ce30d2063c611c", "score": "0.5711175", "text": "protected String getPackageName()\n {\n return immutableGetPackageName();\n }", "title": "" }, { "docid": "b452a0445971e047a73c7e872598497a", "score": "0.570017", "text": "private String getNamespace() {\n\t\treturn mapperInterface.getPackage().getName();\n\t}", "title": "" }, { "docid": "47bc0474cf8e62f66dcae882cf1b63a4", "score": "0.56972605", "text": "public abstract String getBindingNamespace();", "title": "" }, { "docid": "03485f3992c84c48a849f7352c3db159", "score": "0.5691745", "text": "private String getControllerBasePackageName() throws IOException,\r\n XPathExpressionException {\r\n StringBuilder buf = new StringBuilder();\r\n WebConfig config = createWebConfig();\r\n buf.append(config.getRootPackageName());\r\n buf.append(\".\");\r\n buf.append(Constants.CONTROLLER_PACKAGE);\r\n return buf.toString();\r\n }", "title": "" }, { "docid": "1a80a1cca0857c04d15dde8419d9aa73", "score": "0.5681742", "text": "public String getNamespace()\n {\n return this.m_namespace;\n }", "title": "" }, { "docid": "e8f156418ab3c4309ffa4169ef6735fc", "score": "0.56740457", "text": "public com.google.protobuf.ByteString getNamespace() {\n return namespace_;\n }", "title": "" }, { "docid": "1e2780f95762848bbdb56ecdd184459e", "score": "0.56697994", "text": "public QName getServiceName();", "title": "" }, { "docid": "8684e987b27c9a76b3658482628ce09a", "score": "0.5669005", "text": "public String getNamespace()\n {\n return namespace;\n }", "title": "" }, { "docid": "f690593429959936442a90dfa29295de", "score": "0.56670344", "text": "MixedportPackage getMixedportPackage();", "title": "" }, { "docid": "14ad779864393f65c338620225bcf807", "score": "0.5658253", "text": "public com.google.protobuf.ByteString getNamespace() {\n return namespace_;\n }", "title": "" }, { "docid": "bae6967e1b9d27a430345d115adbbafc", "score": "0.5647695", "text": "public String getNamespace() {\n return namespace;\n }", "title": "" }, { "docid": "bae6967e1b9d27a430345d115adbbafc", "score": "0.5647695", "text": "public String getNamespace() {\n return namespace;\n }", "title": "" }, { "docid": "bae6967e1b9d27a430345d115adbbafc", "score": "0.5647695", "text": "public String getNamespace() {\n return namespace;\n }", "title": "" }, { "docid": "e03710b82a138ecd28f3de9e6201a499", "score": "0.5620836", "text": "public String pkgString() {\n // NYI! More info?\n if (packageRange != null) {\n return name + \";\" + Constants.VERSION_ATTRIBUTE + \"=\" + packageRange;\n } else {\n return name;\n }\n }", "title": "" }, { "docid": "1404bea1d4c8874902f2d1888336bf72", "score": "0.55743885", "text": "public static String getPackageName(java.lang.Class<?> type) {\n\tString className = type.getName();\n\tint index = className.lastIndexOf('.');\n\treturn className.substring(0, index);\n }", "title": "" }, { "docid": "671d377e12a1130a8d429c2f9a6ec5c1", "score": "0.55741674", "text": "public String getbind_ProductService() {\n return (String) ensureVariableManager().getVariableValue(\"bind_ProductService\");\n }", "title": "" }, { "docid": "524aa4812d29120043d7c392f4c5054b", "score": "0.5560721", "text": "public static String getPackageName(Element element) {\n return getPackageElement(element).getQualifiedName().toString();\n }", "title": "" }, { "docid": "0eb667cad9221df6b25fffa2d7c4a770", "score": "0.55570394", "text": "String getFullyQualifiedName();", "title": "" }, { "docid": "776f2c5bcc153feb235f89690767287f", "score": "0.55496925", "text": "String getQualifiedImport();", "title": "" }, { "docid": "226ad133daf67fdeffb8d680cda2ec0b", "score": "0.5548873", "text": "public QName getServiceName() {\n return _serviceName;\n }", "title": "" }, { "docid": "27c7a9123a2cd449174dfd7081012e5c", "score": "0.55449164", "text": "@Override\n public String getCanonicalServiceName() {\n return null;\n }", "title": "" }, { "docid": "35e2812eb5529c471e78d27bd8b382bf", "score": "0.553097", "text": "public PackageDefinition getPackageByPrefix(String prefix) {\n if (prefix != null) {\n for (PackageDefinition pkg : getPackages()) {\n if (prefix.equals(pkg.getPrefix())) {\n return pkg;\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "5316261240db481474119bb86044c80c", "score": "0.55307174", "text": "@Override // java.lang.ClassLoader\n public Package getPackage(String str) {\n Package r0;\n if (str == null || str.isEmpty()) {\n return null;\n }\n synchronized (this) {\n r0 = super.getPackage(str);\n if (r0 == null) {\n r0 = definePackage(str, \"Unknown\", \"0.0\", \"Unknown\", \"Unknown\", \"0.0\", \"Unknown\", null);\n }\n }\n return r0;\n }", "title": "" }, { "docid": "96df01cba9e0d7d8d381bb9bd8a8f0f8", "score": "0.5526434", "text": "@SystemApi\n public @Nullable String getExtraLocationControllerPackage() {\n try {\n return mService.getExtraLocationControllerPackage();\n } catch (RemoteException e) {\n throw e.rethrowFromSystemServer();\n }\n }", "title": "" }, { "docid": "5ab6ce0057834ce3268f8e982e89ab73", "score": "0.5525295", "text": "PackageStatement getPackage();", "title": "" }, { "docid": "18a875100f4b30a0c55326d49ffe171b", "score": "0.5517018", "text": "public java.lang.String getService() {\n java.lang.Object ref = service_;\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 service_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "647d84521f0ad1e514af87479e7e6f5c", "score": "0.55053425", "text": "public String getPackageName() {\n\t\tif (folderName != \"\")\r\n\t\t\treturn folderName + \"/\" + packageName;\r\n\t\telse\r\n\t\t\treturn packageName;\r\n\t}", "title": "" }, { "docid": "8043801ab99f6e42f3d7a2abb79ef816", "score": "0.5502112", "text": "SoftwarePackage findByName(String softPackageName);", "title": "" }, { "docid": "a9c35f11baa385e0a40ea2f099156df7", "score": "0.54941136", "text": "Gr1616Package getGr1616Package();", "title": "" }, { "docid": "50f3b3bb89bcb336f752f9da4e23ba84", "score": "0.5492934", "text": "ShopPackage getShopPackage();", "title": "" }, { "docid": "c741d197effff1956e21ba2af54f1ae6", "score": "0.54832757", "text": "GraphPackage getGraphPackage();", "title": "" }, { "docid": "c52b58bc38424fb9b067e99185c1d062", "score": "0.547785", "text": "AdtPackage getAdtPackage();", "title": "" }, { "docid": "db49a5cafcec427517b014b42372cd73", "score": "0.5476651", "text": "public String packageName() {\n return packageName;\n }", "title": "" }, { "docid": "eae6711fa986e5b1d53795df1f94b722", "score": "0.5473027", "text": "public String getNamespace() { //Default is \"current\" namespace\n return getString(NAMESPACE, ConfigSpec.super.getNamespace());\n }", "title": "" }, { "docid": "0a5e9854c14a6dc0f3fcfabccde52ff5", "score": "0.547125", "text": "@Override\n\tpublic String getPackageName() {\n\t\treturn packageName;\n\t}", "title": "" }, { "docid": "47d58fae3c7101f5f70fbb1ce52aadf3", "score": "0.546558", "text": "public String getSourcePackageName()\r\n {\r\n return StringUtils.substring(getSourceClassName(), 0, StringUtils.lastIndexOf(getSourceClassName(), '.'));\r\n }", "title": "" }, { "docid": "e29a4c277be6360cd9575326957c24cd", "score": "0.546431", "text": "public java.lang.String getFullyQualifiedName();", "title": "" }, { "docid": "a708d3140e7b8dc4e91f633877cc48ee", "score": "0.5461596", "text": "public List<String> getPackageName();", "title": "" }, { "docid": "27c31118b18b811dd928e4c8396af634", "score": "0.54534817", "text": "public java.lang.String getNameSpaceURI()\n {\n return nsURI;\n }", "title": "" }, { "docid": "287ad66a62eb942a2b5f2e7889a132fe", "score": "0.54481053", "text": "public String getPackageName() {\n return packageName;\n }", "title": "" }, { "docid": "24a25bfcdbece998a4e0ddd73c392d15", "score": "0.5444902", "text": "public String getNamespace()\n\t{\n\t\treturn namespace;\n\t}", "title": "" }, { "docid": "353743d959c6f929aff79482b75d88cf", "score": "0.54362386", "text": "public java.lang.String getPackageName(boolean modelName);", "title": "" }, { "docid": "6705dde5032b9702637867cd4d75f616", "score": "0.54324824", "text": "public String getTargetService() {\n return targetService;\n }", "title": "" }, { "docid": "3bccc18e6d7949aa215f3a80933eea43", "score": "0.5421161", "text": "public java.lang.String getServiceAlias(){\r\n return localServiceAlias;\r\n }", "title": "" }, { "docid": "00890a7fa08b1e3817ff72e11bbad9ba", "score": "0.5410606", "text": "QosPackage getQosPackage();", "title": "" }, { "docid": "f41350b99f7ed85e13a1899326f2f9e8", "score": "0.54099166", "text": "public String getPackageName() {\n return packageName;\n }", "title": "" }, { "docid": "6ae8b96a2f12b2a2ffad1a258c098e30", "score": "0.54088116", "text": "@java.lang.Override\n public java.lang.String getService() {\n java.lang.Object ref = service_;\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 service_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "1e15c3ed35b9282adb351a98e433e471", "score": "0.54079837", "text": "ContainercomponentPackage getContainercomponentPackage();", "title": "" }, { "docid": "ea93924b443b81ea034ac7f2f4c4f075", "score": "0.54069155", "text": "private String resolvePackageName(String packageName){\r\n\t\treturn packageName.replace(\".\", \"/\");\r\n\t}", "title": "" }, { "docid": "8e9ad0748339fcac7472cee132d7e6aa", "score": "0.54051673", "text": "public String getNamespace() {\n return OFFICE_NAMESPACE;\n }", "title": "" }, { "docid": "65a4d572736016534d1fa3be24117315", "score": "0.5372979", "text": "WorkflowPackage getWorkflowPackage();", "title": "" }, { "docid": "d0d896db1b9c3eeac6ef75a70c61594a", "score": "0.53632957", "text": "@DSSource(DSSourceKind.NETWORK)\n public String getServiceType() {\n return mServiceType;\n }", "title": "" } ]
4ca5b3e9aef440757972c1ba32e29276
Will return Server Details for a Server.
[ { "docid": "d169f425cefe6ce8a3f8731bd045b418", "score": "0.71804166", "text": "public ServerBean getServerDetailsByServerId(@Param(\"serverId\") Integer serverId);", "title": "" } ]
[ { "docid": "c7e6db42a5e1d2567a62402689a08f77", "score": "0.7697752", "text": "public List<ServerBean> getServerDetails();", "title": "" }, { "docid": "7b879a4de5a1c0e34996092dd6ba1b1d", "score": "0.681424", "text": "@GetMapping(value = \"/serverDetailsFromDb\")\r\n\tpublic ServerDetail getserverDetails(@RequestParam String id) {\r\n\t\tServerDetail serverDetail = ServerDetailsRepository.findOne(id);\r\n\t\tlogger.info(serverDetail.toString());\r\n\t\treturn serverDetail;\r\n\t}", "title": "" }, { "docid": "94d5504a59b2f783b399e999c776c1d7", "score": "0.6810202", "text": "public List<ServerInfo> getServerInfos() {\n return serverInfoRepository.findAll();\n }", "title": "" }, { "docid": "48103704d6f8e28aed5a5b9091ac0a63", "score": "0.67124724", "text": "public String getServer() {\n return this.server;\n }", "title": "" }, { "docid": "df43cbbe76dfab9d4ba5168f9f54ec28", "score": "0.66472757", "text": "public static String getServerInfo() {\n\t\tlogger.debug(\"Start generate the server IP information\");\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tEnumeration<NetworkInterface> netInterfaces = null;\n\t\ttry {\n\t\t\tnetInterfaces = NetworkInterface.getNetworkInterfaces();\n\t\t\twhile (netInterfaces.hasMoreElements()) {\n\t\t\t\tNetworkInterface ni = netInterfaces.nextElement();\n\t\t\t\tsb.append(\"DisplayName:\" + ni.getDisplayName() + \"\\r\\n\");\n\t\t\t\tsb.append(\"Name:\" + ni.getName() + \"\\r\\n\");\n\t\t\t\tEnumeration<InetAddress> ips = ni.getInetAddresses();\n\t\t\t\twhile (ips.hasMoreElements()) {\n\t\t\t\t\tsb.append(\"IP:\" + ips.nextElement().getHostAddress() + \"\\r\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "95f366d84c010862ee3e27f72da003eb", "score": "0.6595269", "text": "public String getServer() {\n\t\treturn server;\n\t}", "title": "" }, { "docid": "f919515799eca4b4cb76676a97f471dd", "score": "0.6531949", "text": "public String getServer() {\n return server;\n }", "title": "" }, { "docid": "f919515799eca4b4cb76676a97f471dd", "score": "0.6531949", "text": "public String getServer() {\n return server;\n }", "title": "" }, { "docid": "3cf7e6a6f939d8ea56e17f8fd7dc26b3", "score": "0.64299", "text": "public java.lang.String getServer() {\n return server;\n }", "title": "" }, { "docid": "630acbba0f93c2e1db1900b6e07586a5", "score": "0.6405402", "text": "private static ServerInfor getServerInfo() {\r\n String serverName = SFSConfig.getServerName();\r\n String ip = ServerConfig.getInstance().getIP();\r\n String ipWS = ServerConfig.getInstance().getIPWS();\r\n int port = SFSConfig.getPort();\r\n int portWS = SFSConfig.getWsPort();\r\n String zone = SFSConfig.getZoneName();\r\n\r\n return new ServerInfor(serverName, ip, ipWS, port, portWS, zone);\r\n }", "title": "" }, { "docid": "48c470820b5468f1b600bf772d4213ab", "score": "0.63783365", "text": "public String getServer() {\n\t\treturn props.getProperty(\"server\");\n\t}", "title": "" }, { "docid": "6eb94619b5f311431a1e6ba230fa27a3", "score": "0.6270308", "text": "public String getServerId() {\n return serverId;\n }", "title": "" }, { "docid": "be0e76fca54441a1fc8eb9e22b6943ba", "score": "0.62599504", "text": "public String getServer(){\n\t\treturn serverName;\n\t}", "title": "" }, { "docid": "3dfe0e78037aa2157ac911ac5538957f", "score": "0.61699903", "text": "OMAGServerDetails(String serverName)\n {\n this.serverName = serverName;\n }", "title": "" }, { "docid": "005d79f5d609a74412cdd5958052e733", "score": "0.6158511", "text": "public String getServerId()\n {\n return _serverId;\n }", "title": "" }, { "docid": "005d79f5d609a74412cdd5958052e733", "score": "0.6158511", "text": "public String getServerId()\n {\n return _serverId;\n }", "title": "" }, { "docid": "966dd74894702121691dd45e7a3a14b5", "score": "0.6150858", "text": "public String getServer()\n {\n return serverPicker.getSelectedItem().toString();\n }", "title": "" }, { "docid": "ea106d058c35ff5677851c70bfa2e5d4", "score": "0.6112892", "text": "public String getServerName()\n {\n return this.serverName;\n }", "title": "" }, { "docid": "9c590a42d3e56d8b3b7b486bfc0e6385", "score": "0.60693794", "text": "public SubServer getServer() { return Server; }", "title": "" }, { "docid": "51a52a1b0d31f6bd347a9712e2787e88", "score": "0.60416085", "text": "@RequestMapping(value =\"/serverinfo/{id}/\",method = RequestMethod.GET)\n\tpublic String showServerInfo(@PathVariable(\"id\") int id, ModelMap model) {\n\t\tServer server = service.getServer(id);\n\t\tif(server!=null) {\n\t\t\tmodel.addAttribute(\"server\", server);\n\t\t\treturn \"serverinfo\";\n\t\t}\n\t\treturn \"redirect:/monitorservers/\";\n\t}", "title": "" }, { "docid": "2987143f62c96764bf74de6be84ffa6b", "score": "0.5985098", "text": "@Override\r\n\tpublic Server getServer() {\r\n\t\treturn server;\r\n\t}", "title": "" }, { "docid": "934dcb16f8d316dd598af9d8dbb9e509", "score": "0.5956625", "text": "public List<ServerBean> getServerDetailsByDCId(@Param(\"dcId\") Integer dcId);", "title": "" }, { "docid": "afe58d7e21104e85040fdf4671761391", "score": "0.59227246", "text": "@GET\n @NoCache\n @Produces(MediaType.APPLICATION_JSON)\n @Tag(name = KeycloakOpenAPI.Admin.Tags.ROOT)\n @Operation( summary = \"Get themes, social providers, auth providers, and event listeners available on this server\")\n public ServerInfoRepresentation getInfo() {\n ServerInfoRepresentation info = new ServerInfoRepresentation();\n info.setSystemInfo(SystemInfoRepresentation.create(session.getKeycloakSessionFactory().getServerStartupTimestamp()));\n info.setMemoryInfo(MemoryInfoRepresentation.create());\n info.setProfileInfo(ProfileInfoRepresentation.create());\n\n // True - asymmetric algorithms, false - symmetric algorithms\n Map<Boolean, List<String>> algorithms = session.getAllProviders(ClientSignatureVerifierProvider.class).stream()\n .collect(\n Collectors.toMap(\n ClientSignatureVerifierProvider::isAsymmetricAlgorithm,\n clientSignatureVerifier -> Collections.singletonList(clientSignatureVerifier.getAlgorithm()),\n (l1, l2) -> listCombiner(l1, l2)\n .stream()\n .sorted()\n .collect(Collectors.toList()),\n HashMap::new\n )\n );\n info.setCryptoInfo(CryptoInfoRepresentation.create(algorithms.get(false), algorithms.get(true)));\n\n setSocialProviders(info);\n setIdentityProviders(info);\n setThemes(info);\n setProviders(info);\n setProtocolMapperTypes(info);\n setBuiltinProtocolMappers(info);\n setClientInstallations(info);\n setPasswordPolicies(info);\n info.setEnums(ENUMS);\n return info;\n }", "title": "" }, { "docid": "c14faeae9bba07e8d55cc869a93d74b7", "score": "0.5886118", "text": "public String getServerName() {\r\n return itsServerName;\r\n }", "title": "" }, { "docid": "c1c66fedf515d9b653a9b9a10b49910e", "score": "0.5867329", "text": "public int getServerId() {\n return serverId;\n }", "title": "" }, { "docid": "b29e94d321afbe9bed47614bc9171418", "score": "0.58532196", "text": "public void getServerInfo()\r\n\t\tthrows Exception\r\n\t{\r\n\t\tServerInfo serverInfo = new ServerInfo();\r\n\r\n\t\tResponse<BaseResult<ServerInfo>> response = coreService.getServerInfo(null, null, 0, Integer.MAX_VALUE)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .execute();\r\n\r\n\t\tif (response.isSuccessful())\r\n\t\t{\r\n\t\t\tBaseResult<ServerInfo> serverInfoResponse = response.body();\r\n\r\n\t\t\tserverInfo = serverInfoResponse.getResult();\r\n\r\n\t\t\tif (serverInfo == null)\r\n\t\t\t\tthrowError(0, null);\r\n\t\t}\r\n\t\telse\r\n\t\t\tthrowError(response.code(), response.message());\r\n\r\n\t\tcallsUtils = new CallsUtils(serverInfo.getCalls());\r\n\t}", "title": "" }, { "docid": "6750d7fc1ea1ad4b7e64be5cf8c09648", "score": "0.5836917", "text": "public String getServerClassDesc() {\r\n return serverClassDesc;\r\n }", "title": "" }, { "docid": "0f6929d50e5e4ddf90b9388c94c8abd9", "score": "0.58358556", "text": "public String getServerAddress()\n {\n return this.serverAddress;\n }", "title": "" }, { "docid": "560506bca9f4b5379a596c4131dedc8e", "score": "0.58159345", "text": "public protomsg.CoincheMsg.ServerMsg.Info getInfo() {\n return info_ == null ? protomsg.CoincheMsg.ServerMsg.Info.getDefaultInstance() : info_;\n }", "title": "" }, { "docid": "844ae4a8ed34c682064570eedc4052eb", "score": "0.5814971", "text": "String getServerName()\n {\n return serverName;\n }", "title": "" }, { "docid": "48e9fad9ab2ec423a08ad99038597b9c", "score": "0.5804378", "text": "public String getServerName()\n\t{\n\t\treturn getConnectionParameter(\"Server\").getValue().toString();\n\t}", "title": "" }, { "docid": "7a3ed51b0d5a9fbab357003e06a3e7f2", "score": "0.5794945", "text": "Server getServer(Long id);", "title": "" }, { "docid": "9c4b2eac5c619d8271b812e36c2f9c83", "score": "0.579364", "text": "public void getServerInfo(){\r\n\t\tMessage infoMessage = new Message(PR_COMMAND_GETPARAMETERS);\r\n\t\tbeShareTransceiver.sendOutgoingMessage(infoMessage);\r\n\t\trequestedServerInfo = true;\r\n\t}", "title": "" }, { "docid": "48a2d4bff3636a9bf65d3a81ef072a87", "score": "0.57746494", "text": "@Override\n public String toString() {\n String returnString = \"[Server #\" + serverId + \" On Duty: \" + serverIsOnDuty + \" Tips: \" + tips;\n for(Table each : tableList)\n returnString += each.getTableId() + \" \";\n return returnString + \"]\";\n }", "title": "" }, { "docid": "c49823a6153abfb688d22346ca6c72a4", "score": "0.57647455", "text": "public int getServerID() {\n return serverID;\n }", "title": "" }, { "docid": "097898c789edf39c46d5ba0faec49fd4", "score": "0.576397", "text": "public String getServerName();", "title": "" }, { "docid": "8beb219b44806b8617c1d3bb88606162", "score": "0.57405514", "text": "public String getServer ()\n\t{\n\t\treturn mSharedPreferences.getString (\"server\", \"\");\n\t}", "title": "" }, { "docid": "0f69f7e47af82b91c3ec7336385dceea", "score": "0.573604", "text": "public String toString(){return \"Server Properties: \\n\"\r\n\t+ \"On Host Name: \"+ this.HostName + \" On Adress: \"+ this.HostAdress + \" On port: \"+ this.port;}", "title": "" }, { "docid": "82356f613b6c743c6676b590e426688e", "score": "0.5734368", "text": "public protomsg.CoincheMsg.ServerMsg.Info getInfo() {\n if (infoBuilder_ == null) {\n return info_ == null ? protomsg.CoincheMsg.ServerMsg.Info.getDefaultInstance() : info_;\n } else {\n return infoBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "fabb8ae25139a329c051a4221cf3416a", "score": "0.57271093", "text": "public org.hpccsystems.ws.client.gen.wssmc.v1_21.ServerJobQueue getServerInfo() {\n return serverInfo;\n }", "title": "" }, { "docid": "7295c8254118a84f5e32b14f90f1e864", "score": "0.5725748", "text": "String getServerName() {\n\t\treturn serverName;\n\t}", "title": "" }, { "docid": "146a9c452bc48e613c06d1ad2783e9eb", "score": "0.572095", "text": "public Map<Integer, Boolean> getServerList() {\n Map<Integer, Boolean> PORT = new HashMap<Integer, Boolean>();\n try {\n\n String query = \"select * from `server_info`\";\n rs = st.executeQuery(query);\n System.out.println(\"Records from database\");\n\n while (rs.next()) {\n Integer server_port = rs.getInt(\"server_port\");\n Boolean status = rs.getBoolean(\"status\");\n System.out.println(\"Port\" + server_port + \" Status\" + status);\n\n PORT.put(server_port, status);\n\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n return PORT;\n }", "title": "" }, { "docid": "7721bcc4a6708ed53d676663f2c5b9a4", "score": "0.5720363", "text": "public String getServerName() {\n return serverName;\n }", "title": "" }, { "docid": "7721bcc4a6708ed53d676663f2c5b9a4", "score": "0.5720363", "text": "public String getServerName() {\n return serverName;\n }", "title": "" }, { "docid": "bcbd1ca9129b69ae596c9eb0692bbbfc", "score": "0.57078743", "text": "@GetMapping(value = \"/getServerDetailsfromCache\")\r\n\tpublic ServerDetail getServerDetailsfromCache(@RequestParam String id){\r\n\t\tServerDetail serverDetailDb = ServerDetailsRepository.findOne(id);\r\n\t\tServerDetail serverDetailCache = serverDetailsHelper.getCachedObject(id);\r\n\t\tlogger.info(\"Cached object: \"+serverDetailCache);\r\n\t\tlogger.info(\"DB object: \"+serverDetailDb);\r\n\r\n\t\treturn serverDetailCache;\r\n\t}", "title": "" }, { "docid": "881cb41e2247cec9aa604a0dbe953a53", "score": "0.5704765", "text": "public String serverName() {\n return this.serverName;\n }", "title": "" }, { "docid": "4b127eb48070fa0dc7dd5b38aaccc5b2", "score": "0.56953984", "text": "public String getServer() {\n final int port = getPort();\n return getScheme() + \"://\" + getHost() + ((port != 80) && (port != 443) ? \":\" + getPort() : \"\");\n }", "title": "" }, { "docid": "51534fbb113d25a18397b7c7f0b7d01d", "score": "0.56771564", "text": "public int getServerId() {\n\t\treturn serverId;\n\t}", "title": "" }, { "docid": "b6c190d3c06ccb2bf2638c8a0799d2d6", "score": "0.56739354", "text": "public java.lang.String getServerName() {\n return serverName;\n }", "title": "" }, { "docid": "23e1153327823d170c4dab9d1fa3dc67", "score": "0.5664048", "text": "public final String getServerName() {\n\treturn serverName;\n }", "title": "" }, { "docid": "a5e37861863f05117097ef7122632fd8", "score": "0.5639605", "text": "public String getEdsServer() {\n return this.edsServer;\n }", "title": "" }, { "docid": "1d06ee4274aba6b34ac3d08173b88a2b", "score": "0.56310123", "text": "public abstract List<TServer> fetchServerList();", "title": "" }, { "docid": "47e1fd59559160f894078a559e09adac", "score": "0.5629564", "text": "public String getServerName() {\n\t\treturn serverName;\r\n\t}", "title": "" }, { "docid": "8f8de13e8d5fcd7d4840a03423aab6db", "score": "0.56232303", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic Map<String, String> stats(String server) {\r\n\t\tMap<String, String> result = null;\r\n\t\tOperationFutrue future = this.asynStats(server);\r\n\t\ttry {\r\n\t\t\tresult = (Map<String, String>) future.get();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOG.error(\"fail to get the result \", e);\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "e597f23e47658fa9c32dcfca7450c514", "score": "0.5622111", "text": "public String getServerName() {\r\n\t\treturn serverName;\r\n\t}", "title": "" }, { "docid": "04827cb261119a19d17f552eba77b25d", "score": "0.560532", "text": "@Override\r\n\tpublic String getServer() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "04827cb261119a19d17f552eba77b25d", "score": "0.560532", "text": "@Override\r\n\tpublic String getServer() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "31c590ca2ce7ab5aa6a158e09ade71b3", "score": "0.55958986", "text": "@Override\n public ServerInfo getServerInfo(String name) {\n if (!ready) {\n return getServersCopy().get(name);\n } else {\n return api.getServer(name);\n }\n }", "title": "" }, { "docid": "026bf1a64925fb5c22866d79ada0ba48", "score": "0.55926776", "text": "public String getServerName() {\n\t\treturn serverName;\n\t}", "title": "" }, { "docid": "8e134a6e51992a9707a8a33b3af980f6", "score": "0.5574342", "text": "public String getRealServerType() {\n return this.RealServerType;\n }", "title": "" }, { "docid": "8e134a6e51992a9707a8a33b3af980f6", "score": "0.5574342", "text": "public String getRealServerType() {\n return this.RealServerType;\n }", "title": "" }, { "docid": "db52fef7924b355356bbeb546e21cd7c", "score": "0.5574007", "text": "public abstract String getServer();", "title": "" }, { "docid": "ebda0db21c1f9ee6df1d77a4e7fbf43e", "score": "0.55369335", "text": "@Override\n public String getServerAddress() {\n return msServerAddress;\n }", "title": "" }, { "docid": "7504c76f63d1db03f7ec8435920d62f7", "score": "0.55348843", "text": "public static Server getGeneralServer() {\n Server server = new Server();\n server.setDestinationHost(\"123.123.123.123\");\n server.setProxyHost(\"localhost\");\n server.setProxyPort(1080);\n server.setEnabled(true);\n return server;\n }", "title": "" }, { "docid": "7c3bf8e9ac071198684809328fd14eb0", "score": "0.55210155", "text": "@Override\n public String getServerName()\n {\n return _request.getServerName();\n }", "title": "" }, { "docid": "b4a5d80773114d6f7e479e98cb2aa324", "score": "0.55202323", "text": "public Server getServerInstance()\n\t{\n\t\treturn server;\n\t}", "title": "" }, { "docid": "16d25552a6718a436e78fd1072513fdb", "score": "0.5517431", "text": "public int getServerType()\n {\n return m_serverType;\n }", "title": "" }, { "docid": "28a1900ebe7264dd432735b28c03230a", "score": "0.5506577", "text": "@RequestMapping(method = RequestMethod.GET, headers = \"Accept=application/json\")\n\tpublic @ResponseBody\n\tResult getServerStat() {\n\t\tlong started = System.currentTimeMillis() - serverStartTime;\n\t\treturn new Result().setData(\"ServerStarted\", started / 1000\n\t\t\t\t+ \" seconds\");\n\t}", "title": "" }, { "docid": "f9cf9ce5743094dcd39459099656393c", "score": "0.55061984", "text": "String getSecurityServer();", "title": "" }, { "docid": "409dfb26a17111501114a48b1ecbaed6", "score": "0.54997987", "text": "String getServerList();", "title": "" }, { "docid": "ccf29212a5b5bc8b62575f803579ee19", "score": "0.54897267", "text": "public Server getServer()\n {\n return _servletSystem;\n }", "title": "" }, { "docid": "540291daf3023cffe6c07cf2cc81b3ba", "score": "0.5474552", "text": "public BukkitServerInfoManager getServerInfoManager() {\n return serverInfoManager;\n }", "title": "" }, { "docid": "4fb69960e1d60e852efa049fdd2dabf8", "score": "0.5444334", "text": "public static String showServers(String Client_email){\n String current = \"\";\n if(acquired_servers.containsKey(Client_email)){\n int i =0;\n LinkedList<Server> x = acquired_servers.get(Client_email);\n for(Server v : x ){\n current = current + \"Servidor \"+ (i++) + \": \" + (v.getName()) + \" Id: \" + v.getServerId() + \"\\n\";\n }\n }\n return current;\n }", "title": "" }, { "docid": "6bbc02fea0aff96c31641b6e8ad652cf", "score": "0.5441991", "text": "public synchronized final ProcessServer getServer()\n {\n return m_Server;\n }", "title": "" }, { "docid": "2093c2e2bd2f6fa95e718fed6c6c4a35", "score": "0.54187185", "text": "public String getServerUrl() {\n\t\treturn serverUrl;\n\t}", "title": "" }, { "docid": "e786b904f7309b3451f6e1bc3fe8df3c", "score": "0.541058", "text": "public static String ServerStatusTxt(Connection dbcon)\n throws SQLException\n {\n DatabaseMetaData meta=dbcon.getMetaData();\n String txt=\"\";\n txt+=(\"server: \"+meta.getDatabaseProductName()+\" \"+meta.getDatabaseMajorVersion()+\".\"+meta.getDatabaseMinorVersion()+\"\\n\");\n txt+=(\"driver: \"+meta.getDriverName()+\" \"+meta.getDriverVersion()+\"\\n\");\n txt+=(\"JDBC: \"+meta.getJDBCMajorVersion()+\".\"+meta.getJDBCMinorVersion()+\"\\n\");\n return txt;\n }", "title": "" }, { "docid": "ae53005998409bc2e0e29e45e0118d33", "score": "0.5405508", "text": "Server getServer();", "title": "" }, { "docid": "ae53005998409bc2e0e29e45e0118d33", "score": "0.5405508", "text": "Server getServer();", "title": "" }, { "docid": "ae53005998409bc2e0e29e45e0118d33", "score": "0.5405508", "text": "Server getServer();", "title": "" }, { "docid": "d6d9a0d68724c49b86a468a6054851e0", "score": "0.54033375", "text": "void printServer(int indentLevel) throws IOException\n {\n report.printReportSubheading(indentLevel,\"Server: \" + serverName);\n\n int detailIndentLevel = indentLevel + 1;\n\n report.printReportLine(detailIndentLevel, \"Type\", serverType);\n\n if (configuration != null)\n {\n report.printReportLine(detailIndentLevel, \"Description\", configuration.getLocalServerDescription());\n report.printReportLine(detailIndentLevel, \"UserId\", configuration.getLocalServerUserId());\n\n if (configuration.getServerSecurityConnection() != null)\n {\n report.printConnection(detailIndentLevel, \"Security Connector\", configuration.getServerSecurityConnection());\n }\n\n if (configuration.getRepositoryServicesConfig() != null)\n {\n if (configuration.getRepositoryServicesConfig().getLocalRepositoryConfig() != null)\n {\n report.printReportSubheading(detailIndentLevel,\"Local Repository\");\n\n if (configuration.getRepositoryServicesConfig().getLocalRepositoryConfig().getLocalRepositoryMode() != null)\n {\n report.printReportLine(detailIndentLevel + 1,\n \"Local Repository Mode\",\n configuration.getRepositoryServicesConfig().getLocalRepositoryConfig().getLocalRepositoryMode().getName());\n }\n\n if (configuration.getRepositoryServicesConfig().getLocalRepositoryConfig().getLocalRepositoryLocalConnection() != null)\n {\n report.printConnection(detailIndentLevel + 1,\n \"Local Repository Connector\",\n configuration.getRepositoryServicesConfig().getLocalRepositoryConfig().getLocalRepositoryLocalConnection());\n }\n\n if (configuration.getRepositoryServicesConfig().getLocalRepositoryConfig().getEventMapperConnection() != null)\n {\n report.printConnection(detailIndentLevel + 1,\n \"Local Repository Event Mapper Connector\",\n configuration.getRepositoryServicesConfig().getLocalRepositoryConfig().getEventMapperConnection());\n }\n\n if (configuration.getRepositoryServicesConfig().getLocalRepositoryConfig().getLocalRepositoryRemoteConnection() != null)\n {\n report.printConnection(detailIndentLevel + 1,\n \"Local Repository Remote Connector\",\n configuration.getRepositoryServicesConfig().getLocalRepositoryConfig().getLocalRepositoryRemoteConnection());\n }\n }\n }\n }\n\n report.printReportSubheading(detailIndentLevel,\"Runtime Status\");\n\n if (serverStartTime != null)\n {\n report.printReportLine(detailIndentLevel + 1,\"Last Start Time\", serverStartTime.toString());\n }\n\n if (serverEndTime != null)\n {\n report.printReportLine(detailIndentLevel + 1,\"Last End Time\", serverEndTime.toString());\n }\n\n if ((serverActiveStatus != null) && (serverActiveStatus != ServerActiveStatus.UNKNOWN))\n {\n report.printReportLine(detailIndentLevel + 1,\"Server Active Status\", serverActiveStatus.getName());\n }\n\n if (serverHistory != null)\n {\n report.printReportSubheading(detailIndentLevel + 1,\"History\");\n\n for (OMAGServerInstanceHistory instanceHistory : serverHistory)\n {\n if (instanceHistory.getStartTime() != null)\n {\n report.printReportLine(detailIndentLevel + 2,\"Start Time\", instanceHistory.getStartTime().toString());\n }\n if (instanceHistory.getEndTime() != null)\n {\n report.printReportLine(detailIndentLevel + 2,\"End Time\", instanceHistory.getEndTime().toString());\n }\n }\n }\n\n report.printReportSubheading(detailIndentLevel,\"Services\");\n\n for (OMAGServiceDetails serviceDetails : serviceDetailsMap.values())\n {\n serviceDetails.printService(detailIndentLevel + 1);\n }\n\n if (! cohortDetailsMap.isEmpty())\n {\n report.printReportSubheading(detailIndentLevel, \"Cohorts\");\n\n for (OMAGCohortDetails cohortDetails : cohortDetailsMap.values())\n {\n cohortDetails.printCohort(detailIndentLevel + 1);\n }\n }\n }", "title": "" }, { "docid": "a49a423fb35f7a099303e619dd9e6740", "score": "0.5402872", "text": "public void setServerId(int serverId) {\n this.serverId = serverId;\n }", "title": "" }, { "docid": "f6f85f9561d0942e2f0f5eef9f69be61", "score": "0.53749406", "text": "public List<Server> getServers() {\n\t\treturn servers;\n\t}", "title": "" }, { "docid": "24e91a1025a5445ec4e5d542eff05c5d", "score": "0.53555727", "text": "public String getDisplayServerId()\n {\n if (_serverId == null || \"\".equals(_serverId))\n return \"default\";\n else\n return _serverId;\n }", "title": "" }, { "docid": "78cb708c909bef47f7b7bf39c86abf05", "score": "0.5350972", "text": "public NamingContextExt getNameServer() {\n\t\treturn nameServer;\n\t}", "title": "" }, { "docid": "e7b0bdccb995a5cebeb655b6f65bbc7d", "score": "0.53504294", "text": "@Override\n public String toString()\n {\n return \"ImmutableDruidServer{\"\n + \"meta='\" + metadata\n + \"', size='\" + currSize\n + \"', sources='\" + dataSources\n + \"'}\";\n }", "title": "" }, { "docid": "21ab41f07476a0ef2f4e208b41d7b044", "score": "0.5328001", "text": "@Attribute(desc = \"Server's name\")\n String getName();", "title": "" }, { "docid": "24732c344105ebe8ba1825f0e3c86233", "score": "0.5305251", "text": "public static GetServerInfoResponse buildGetServerInfoResponse(final ServerName serverName,\n final int webuiPort) {\n GetServerInfoResponse.Builder builder = GetServerInfoResponse.newBuilder();\n ServerInfo.Builder serverInfoBuilder = ServerInfo.newBuilder();\n serverInfoBuilder.setServerName(ProtobufUtil.toServerName(serverName));\n if (webuiPort >= 0) {\n serverInfoBuilder.setWebuiPort(webuiPort);\n }\n builder.setServerInfo(serverInfoBuilder.build());\n return builder.build();\n }", "title": "" }, { "docid": "06239dbfaac2a54330461dca09bb8451", "score": "0.5288548", "text": "public AdminRDServer getGetServerResult(){\r\n return localGetServerResult;\r\n }", "title": "" }, { "docid": "82d1895b6f756d21104d6f8b4b1d43c6", "score": "0.5287711", "text": "FridaServerId getLocalServer();", "title": "" }, { "docid": "29c7cca80389bf87d2983204ed4170c9", "score": "0.5281557", "text": "String getServerHostname() {\n\n return serverHostname;\n }", "title": "" }, { "docid": "13c3fd61046907580b356a2c7848d7d5", "score": "0.5260458", "text": "public String toString() {\n\t\tString str = \"ServerDriver class tostring method\\n\";\n\t\treturn str;\n\t}", "title": "" }, { "docid": "c598b22dab7bf78ad57f53c96f008d42", "score": "0.5251678", "text": "public String getDetails()\r\n\t{\r\n\t\treturn details;\r\n\t}", "title": "" }, { "docid": "05b56f589c572d6090c98bc4096eb1e4", "score": "0.5246499", "text": "public String get_vserver() throws Exception {\n\t\treturn this.vserver;\n\t}", "title": "" }, { "docid": "383efd519b0650e8bcd78d5dc3441d52", "score": "0.5245752", "text": "public OneResponse info()\n {\n OneResponse response = info(client, id);\n super.processInfo(response);\n return response;\n }", "title": "" }, { "docid": "045e2b55f3a8e9b29dba529b72e27f5d", "score": "0.5244465", "text": "public static String getServerId(ServletContext servletContext) {\n return (String) servletContext.getAttribute(\"_serverId\");\n }", "title": "" }, { "docid": "6e5e07b422df877d5f46e4770bc811ec", "score": "0.5236137", "text": "public String getServerName() {\n\t\treturn host;\n\t}", "title": "" }, { "docid": "a7c3d78b9f1fdf96df1e7f0f8068533a", "score": "0.52358186", "text": "public String toString() {\n\t\tString s = this.serverName + \" [\" + this.numMembers + \" members]\";\r\n\t\tif (this.needsPassword) {\r\n\t\t\ts += \" (Requires Password)\";\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "title": "" }, { "docid": "b4a047f08bb64b9e9ae47779ffb947fc", "score": "0.5232787", "text": "public ServerConfiguration getServer() {\n if (server == null) {\n server = new ServerConfiguration();\n }\n\n return server;\n }", "title": "" }, { "docid": "da653e43fa1343badfc0820adebd4860", "score": "0.5232776", "text": "@Override\n\tpublic CodeServerUrl getMdmDbServer() {\n\t\tString mdmDbServerId = Utils.getPropertiesValue(\"MDM_SERVER_CONFIG_ID\");\n\t\treturn codeServerUrlDao.get(Long.valueOf(mdmDbServerId));\n\t}", "title": "" }, { "docid": "b4c72536951b83c241b068516331d50a", "score": "0.52252233", "text": "private Properties getServerProperties(){\n\t\tProperties o=new Properties();\n\t\tString k=String.format(\"%sObjectAdapter.Endpoints\", name );\n\t\tString v=String.format(\"tcp -h %s -p %d\", ip,port);\n\t\to.put(k, v);\n\t\t\n\t\treturn o;\n\t}", "title": "" } ]
d7c3c4705256765b245b254e7caf495a
Computes the hash code of a string and adds the string to anagramTable
[ { "docid": "f7b3b1c1e1e09ea5fc491165000fa61b", "score": "0.5660403", "text": "private void addWord(String s) {\r\n\t\tLong sHash = myHashCode(s);\r\n\t\tArrayList<String> curStrList;\r\n\t\tif (anagramTable.get(sHash) != null) {\r\n\t\t\tcurStrList = anagramTable.get(sHash);\r\n\t\t} else {\r\n\t\t\tcurStrList = new ArrayList<String>();\r\n\t\t}\r\n\t\tcurStrList.add(s);\r\n\t\tanagramTable.put(sHash, curStrList);\r\n\t}", "title": "" } ]
[ { "docid": "84a5adfbdd4430cf77250383ed834868", "score": "0.6830935", "text": "private char[] anagram(String str) {\n char[] bitmap = new char[26];\n for (char c : str.toCharArray()) {\n bitmap[c - 'a']++;\n }\n return bitmap;\n }", "title": "" }, { "docid": "6685d35bf58bebaa3523a2992291bae9", "score": "0.657711", "text": "static int anagram(String s) { \n \t\n \tif(s.length()%2 != 0)\n \t\treturn -1; \t\n \t\n \tHashMap<Character, Integer> s1Map = new HashMap<Character, Integer>(); \n \t\n \tfor(int i=0; i<s.length()/2; i++){\n \t\tif(!s1Map.containsKey(s.charAt(i))){\n \t\t\ts1Map.put(s.charAt(i), 1);\n \t\t\n \t\t} else {\n \t\t\ts1Map.put(s.charAt(i), s1Map.get(s.charAt(i)) + 1); \n \t\t}\n \t} //end for i ~ 0 - s.length/2;\n \t\n \tint count = 0; \n \t\n \tfor(int i=s.length()/2; i<s.length(); i++){\n \t\t\n \t\tif( !s1Map.containsKey(s.charAt(i)) || s1Map.get(s.charAt(i)) < 1){\n \t\t\tcount ++; \n \t\t} else {\n \t\t\ts1Map.put(s.charAt(i), s1Map.get(s.charAt(i))-1); \n \t\t}\n \t\t\t\n \t}//end for i ~ s.length/2 - s.length\n \t\n\t\treturn count; \t\n }", "title": "" }, { "docid": "6b8043bbbaa4f95e71efa68a1e0cd8e2", "score": "0.64452654", "text": "public static int sherlockAndAnagrams(String s) {\n Map<String, Integer> map = new HashMap<>();\n\n for(int i = 0 ; i < s.length() ; i++){\n List<Character> list = new ArrayList<>();\n\n for(int j = i ; j < s.length() ; j++){\n list.add(s.charAt(j));\n list.sort(Comparator.comparingInt(o -> o));\n\n StringBuilder sb = new StringBuilder();\n for(char c : list)\n sb.append(c);\n\n map.put(sb.toString(), map.getOrDefault(sb.toString(), 0) + 1);\n }\n }\n\n int result = 0;\n for(int i : map.values()){\n if(i > 1)\n result += (i * (i - 1)) / 2;\n }\n\n return result;\n }", "title": "" }, { "docid": "7013db33a2e830d7a7486f2772b74887", "score": "0.6405962", "text": "static int makeAnagram(String a, String b) {\r\n int match=0;\r\n int len=a.length()+b.length();\r\n HashMap<Character, Integer> hash1=characterCount(a);\r\n HashMap<Character, Integer> hash2=characterCount(b);\r\n for (Map.Entry entry : hash1.entrySet()) { \r\n if(hash2.containsKey(entry.getKey()))\r\n {\r\n match= match +Math.min(hash2.get(entry.getKey()), hash1.get(entry.getKey()));\r\n }\r\n } \r\n \r\n return len-2*match;\r\n }", "title": "" }, { "docid": "8054a9d607fef666e3985e1b1b3f2a36", "score": "0.63890564", "text": "long hash(String term){\n long hash = 5381;\n for(int i=0; i<term.length();i++){\n hash = ((hash<<5)+hash)+term.charAt(i); /* hash * 33 + c */\n }\n hash %= TABLESIZE;\n if(hash<0){\n hash+=TABLESIZE;\n }\n //hash = Math.round(hash/10)*20;\n hash = hash*16;\n return hash;\n }", "title": "" }, { "docid": "9b9389d379a1abd60b3881ea4f1f8185", "score": "0.63878465", "text": "private int hashFunc(String input) {\r\n // TODO implement this\r\n int len = input.length();\r\n int hashVal = 0;\r\n for (int i = 0; i < len; i++) {\r\n hashVal = Math.abs(hashVal * 27) + Math.abs(((int) input.charAt(i) - 96));\r\n hashVal = hashVal % this.length;\r\n }\r\n return hashVal;\r\n }", "title": "" }, { "docid": "0779fc32ffc118cbc996abc02c2e207b", "score": "0.6368346", "text": "public static int computeHash(String input){\r\n int[] hashArray = new int[input.length()];\r\n\r\n for (int i = 0; i < input.length(); i++){\r\n hashArray[i] = input.charAt(i)*(int)Math.pow(31, input.length() - (i+1));\r\n }\r\n int ind = 0;\r\n int sumOfHash = 0;\r\n\r\n while(ind < input.length()){\r\n sumOfHash += hashArray[ind];\r\n ind++;\r\n }\r\n return sumOfHash;\r\n }", "title": "" }, { "docid": "16470ada53d8c657eda395e56a4d3960", "score": "0.6363512", "text": "private int calculateAnagram(String inputLine) {\n final Multiset<Character> charactersMultiset = TreeMultiset.create(Lists.charactersOf(inputLine));\n final Multiset<Character> hackerCupMultiset = TreeMultiset.create(Lists.charactersOf(\"HACKERCUP\"));\n \n int occurrences = 0;\n // Guava is sweet and so cheaty-face for this problem\n while (Multisets.intersection(charactersMultiset, hackerCupMultiset).containsAll(hackerCupMultiset)) {\n Multisets.removeOccurrences(charactersMultiset, hackerCupMultiset);\n occurrences++;\n }\n \n logger.trace(\"\\\"{}\\\"({}): {}\", new String[] { inputLine, Integer.toString(occurrences), charactersMultiset.toString() });\n \n return occurrences;\n }", "title": "" }, { "docid": "c4149b42328022fcc52057fe02b371a4", "score": "0.6313886", "text": "public static boolean isAnagram(String str1, String str2) {\n\t\t//create hashtable to keep count of occurence of each character in string 1\n\t\tHashtable<Character, Integer> anagram=new Hashtable<>();\n\t\tint count=0;\n\t\t//if Both strings lengths are equal then go for other conditions checking\n\t\tif(str1.length()==str2.length()){\n\t\t\t// store each character and their occurence\n\t\t\tfor(int i=0;i<str1.length();i++){\n\t\t\t\tif(!anagram.containsKey(str1.charAt(i))){\n\t\t\t\t\tcount=1;\n\t\t\t\t\tanagram.put(str1.charAt(i),count );\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcount=anagram.get(str1.charAt(i));\n\t\t\t\t\tcount++;\n\t\t\t\t\tanagram.replace(str1.charAt(i), count);\n\t\t\t\t}\n\t\t\t}//end for loop\n\t\t\t// Now compare string2 with hashtable character\t\t\n\t\t\tfor(int i=0;i<str2.length();i++){\n\t\t\t\tif(!anagram.containsKey(str2.charAt(i))){ //if hashtable does not contain character then return false\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcount=anagram.get(str2.charAt(i));\t //if yes then decrease its count for each occurence\n\t\t\t\t\tcount--;\n\t\t\t\t\tanagram.replace(str2.charAt(i), count);\n\t\t\t\t}\n\n\t\t\t}\t\t\n\t\t\tfor(int i=0;i<str1.length();i++){ //check all the counts of every character zero\n\t\t\t\tif(anagram.get(str1.charAt(i))!=0){return false;} //if not then false\n\t\t\t}\n\t\t\treturn true;\t //otherwise its true\n\t\t}//end if\n\t\treturn false; //if lengths are not equal\n\n\n\n\t}", "title": "" }, { "docid": "4e2560f4c22176c2d4e748f6cecb9e3d", "score": "0.6266952", "text": "private int hashFunction(String w)\n {\n int index = 0, exp = 1;\n String lower = w.toLowerCase();\n \n // go through the string backward using \n // val(character[len-i]) * 26^i for i = 0 to n\n for (int i = 0, j = lower.length() - 1; j >= i; j--)\n {\n // make sure the character is an alphabet character\n // so it ignores stuff like underscores and numbers\n // only do english char, ignore the rest\n if (lower.charAt(j) >= 'a' && lower.charAt(j) <= 'z')\n //if (Character.isLetter(lower.charAt(j)))\n {\n // have to do modular exponentiation so \n // the numbers don't get too big\n index += ((lower.charAt(j) - 'a')) * exp;\n exp = (exp * 26) % TABLE_SIZE;\n index = index % TABLE_SIZE;\n }\n }\n \n return index;\n }", "title": "" }, { "docid": "129c3cc96450e6b60fcdeeb9a29e377b", "score": "0.62367946", "text": "protected long hashString(String s) {\n\t\t\n\t\tint cont;\n\t\tint lsize = s.length();\n\t\tchar[] lchar = s.toCharArray();\n\t\tlong hcode = 0;\n\t\t\n\t\tfor (cont = 0; cont < lsize; cont++) {\n\t\t\t\n\t\t\thcode += lchar[cont] * Math.pow(31, lsize - (cont + 1));\n\t\t}\n\t\t\n\t\treturn hcode;\n\t}", "title": "" }, { "docid": "c3b98dee9ca423f3548eb0eda1991518", "score": "0.6220694", "text": "public static List<Integer> stringAnagram(List<String> dictionary, List<String> query) {\n\n\n HashMap<String, ArrayList<Integer>> map = new HashMap<>();\n for (int i = 0; i < dictionary.size(); i++) {\n String s = dictionary.get(i);\n\n char[] chars = s.toCharArray();\n Arrays.sort(chars);\n String strSort = new String(chars);\n\n if (!map.containsKey(strSort)) {\n map.put(strSort, new ArrayList<>());\n }\n\n map.get(strSort).add(i);\n }\n\n ArrayList<Integer> ans = new ArrayList<>();\n\n for (int i = 0; i < query.size(); i++) {\n String s = query.get(i);\n\n char[] chars = s.toCharArray();\n Arrays.sort(chars);\n String strSort = new String(chars);\n\n // Create a ArrayList for the sorted string.\n if (map.containsKey(strSort)) {\n ans.add(map.get(strSort).size());\n } else {\n ans.add(0);\n }\n\n }\n return ans;\n }", "title": "" }, { "docid": "ad7550c7387145cd7a8b050434589569", "score": "0.6208755", "text": "private int hash(String str){\n int strHash = MurmurHash.hash32(str, 0xe17a1465);\n return (strHash & 0x7FFFFFFF) % this.hashSize;\n }", "title": "" }, { "docid": "121555207b85bd58152c0a990674ed67", "score": "0.620286", "text": "static int makeAnagram(String a, String b) {\n\n\t\tMap<String, Integer> map = new HashMap<>();\n\n\t\tStream.of(a.split(\"\")).forEach(x -> map.compute(x, (k, v) -> v == null ? 1 : ++v));\n\n\t\tStream.of(b.split(\"\")).forEach(x -> map.compute(x, (k, v) -> v == null ? -1 : --v));\n\n\t\treturn map.entrySet().stream().map(x -> Math.abs(x.getValue())).reduce(Integer::sum).get();\n\t}", "title": "" }, { "docid": "8ecede86b2b12bc2498b9de359ad24b3", "score": "0.61865795", "text": "private static String panagram(String str) {\n\t\tint[] arr = new int[26];\r\n\r\n\t\tstr = str.toLowerCase();\r\n\t\tfor(int i = 0; i < str.length(); i++) {\r\n\t\t\tchar ch = str.charAt(i);\r\n\t\t\tif(ch - 'a' >= 0 && ch - 'a' <= 26) {\r\n\t\t\t\tarr[ch - 'a'] = 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*str = str.toLowerCase();\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tchar ch = str.charAt(i);\r\n\t\t\tif (ch - 'a' >= 0 && ch - 'a' <= 26) {\r\n\t\t\t\tarr[ch - 'a'] = 1;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}*/\r\n\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor(int i= 0; i < 26; i++) {\r\n\t\t\tif(arr[i] == 0) {\r\n\t\t\t\tsb.append((char)('a' + i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*for (int i = 0; i < 26; i++) {\r\n\t\t\tif (arr[i] == 0) {\r\n\t\t\t\tsb.append((char) ('a' + i));\r\n\t\t\t}\r\n\t\t}*/\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "10590f602da6404e7313c0fb731a3030", "score": "0.6178791", "text": "private int hash(String s) {\r\n\t\t\tif (customHash == true)\t\t\r\n\t\t\t\treturn whatHash.hash(s);\r\n\t\t\telse\r\n\t\t\t\treturn Math.abs(s.hashCode() % data.length);\r\n\t\t}", "title": "" }, { "docid": "f7eea5a80ea76d690e46bc58ef94d80d", "score": "0.6173165", "text": "private Long myHashCode(String s) {\r\n\t\ts = s.replaceAll(\"\\\\s\", \"\");\r\n\t\tlong pendingHash = 1;\r\n\t\tfor (Character c : s.toCharArray()) {\r\n\t\t\tpendingHash *= letterTable.get(c);\r\n\t\t}\r\n\t\tLong finalHash = new Long(pendingHash);\r\n\t\treturn finalHash;\r\n\t}", "title": "" }, { "docid": "255be6a180692b9977e71eb181caebf4", "score": "0.6171026", "text": "public boolean insertHash(String string, String hash) throws Exception;", "title": "" }, { "docid": "9f50d11e58eb3b7db22b3800c61231ab", "score": "0.616707", "text": "private static int elfHash(String str) {\r\n\t\tlong hashValue = 0;\r\n\t\tfor (int Pos = 0; Pos < str.length(); Pos++) { // use all elements\r\n\r\n\t\t\thashValue = (hashValue << 4) + str.charAt(Pos); // shift/mix\r\n\r\n\t\t\tlong hiBits = hashValue & 0xF000000000000000L; // get high nybble\r\n\r\n\t\t\tif (hiBits != 0)\r\n\t\t\t\thashValue ^= hiBits >> 56; // xor high nybble with second nybble\r\n\r\n\t\t\thashValue &= ~hiBits; // clear high nybble\r\n\t\t}\r\n\t\treturn (int) hashValue;\r\n\t}", "title": "" }, { "docid": "c4c85e20ceb94226d23a3789fbe5e7cf", "score": "0.6116968", "text": "public List<Integer> lc_438_findAnagrams(String s, String p) {\n List<Integer> list = new ArrayList<>();\n if (s == null || s.length() == 0 || p == null || p.length() == 0) return list;\n int[] hash = new int[256]; //character hash\n //record each character in p to hash\n for (char c : p.toCharArray()) {\n hash[c]++;\n }\n //two points, initialize count to p's length\n int left = 0, right = 0, count = p.length();\n while (right < s.length()) {\n //move right everytime, if the character exists in p's hash, decrease the count\n //current hash value >= 1 means the character is existing in p\n if (hash[s.charAt(right++)]-- >= 1) count--;\n\n //when the count is down to 0, means we found the right anagram\n //then add window's left to result list\n if (count == 0) list.add(left);\n\n //if we find the window's size equals to p, then we have to move left (narrow the window) to find the new match window\n //++ to reset the hash because we kicked out the left\n //only increase the count if the character is in p\n //the count >= 0 indicate it was original in the hash, cuz it won't go below 0\n if (right - left == p.length() && hash[s.charAt(left++)]++ >= 0) count++;\n }\n return list;\n }", "title": "" }, { "docid": "f319a20c0b7360b3cb3fa2c9b0062c63", "score": "0.61111367", "text": "private long hashString(String string){\n\t\tlong hash = 1125899906842589L; //really big prime number\n\n\t\tfor(int i = 0; i < string.length(); i++)\n\t\t{\n\t\t\thash = 31*hash + string.charAt(i);\n\t\t}\n\n\t\treturn hash;\n\t}", "title": "" }, { "docid": "f3a367f9edf6cae13999525b427a828d", "score": "0.611045", "text": "public static int hash(String key) {\n int i, u, v;\n\n for (u = v = i = 0; i < key.length(); ++i) {\n u = (u + TABLE_1[i % 8][key.charAt(i) % 64])\n % 25;\n v = ((v + TABLE_2[i % 8][key.charAt(i) % 64])\n % 25);\n }\n\n return (G[u] + G[v]) % 12;\n }", "title": "" }, { "docid": "4eb84cd62a0e88cb9af89a3d5d79451c", "score": "0.6091036", "text": "static int makeAnagram(String a, String b) {\n\t\tint res = 0;\n\t\t\n\t\tfor (int i = 0; i < a.length(); i++) {\n\t\t\tint pos = b.indexOf(a.charAt(i)); \n\t\t\tif (pos >= 0) {\n\t\t\t\tb = b.substring(0, pos) + b.substring(pos+1);\n\t\t\t} else {\n\t\t\t\tres++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn res+b.length();\n\t}", "title": "" }, { "docid": "78b35f1e076769bb3c81f411e9bd173a", "score": "0.60773885", "text": "public static int hash(String ID) {\r\n int PositionInTable;\r\n int FirstLetterOrNumber = ID.toLowerCase().charAt(1);\r\n if (FirstLetterOrNumber > 96)\r\n PositionInTable = FirstLetterOrNumber % 37;\r\n else\r\n PositionInTable = (FirstLetterOrNumber % 37) + 1;\r\n\r\n return PositionInTable;\r\n }", "title": "" }, { "docid": "1515a69286d7aac1f1e8ae3498805425", "score": "0.605824", "text": "public static List<Integer> anagramsMatch(String s, String p) {\n List<Integer> list = new ArrayList<>();\n int[] count = new int[256];\n int[] tc = new int[256];\n for (int i = 0; i < p.length(); i++) {\n count[p.charAt(i)]++;\n tc[s.charAt(i)]++;\n }\n if (matchCount(count, tc)) {\n list.add(0);\n }\n for (int i = p.length(); i < s.length(); i++) {\n tc[s.charAt(i - p.length())]--;\n tc[s.charAt(i)]++;\n if (matchCount(count, tc)) {\n list.add(i - p.length() + 1);\n }\n }\n for (int num : list) {\n System.out.print(\"Found at Index \" + num);\n }\n return list;\n }", "title": "" }, { "docid": "d7dfd54868aa5b5747e0e25e11e54dc2", "score": "0.60560066", "text": "public static String computeHash(String input)\n {\n return computeHash(input, utf8);\n }", "title": "" }, { "docid": "b99263ade083dcb193d91108da1b4f91", "score": "0.6051125", "text": "@Override\r\n\tpublic int hash(String item) {\r\n\t\tint index = 0;\r\n\t\tfor(int i = 0; i < item.length(); i++){\r\n\t\t\tindex += Character.getNumericValue(item.charAt(i)) * (i*23) + (i*item.length()+Character.getNumericValue(item.charAt(0)));\r\n\t\t}\r\n\t\treturn index+item.length();\r\n\t}", "title": "" }, { "docid": "454f0d6305528eca2f93b1af16fc8148", "score": "0.6042858", "text": "public boolean isAnagram(String s, String t) {\n Map<Character, Integer> map = new HashMap<>();\n for (char c : s.toCharArray()) {\n map.put(c, map.containsKey(c) ? map.get(c) + 1 : 1);\n }\n for (char c : t.toCharArray()) {\n if (map.containsKey(c)) {\n int count = map.get(c);\n if (count == 1) {\n map.remove(c);\n } else {\n map.put(c, count-1);\n }\n } else {\n return false;\n }\n }\n return map.size() == 0;\n }", "title": "" }, { "docid": "90bf35977daed48cc898d7b1612f218b", "score": "0.60339993", "text": "public ArrayList<String> generateSingleAnagram(String input){\n\t\tCharacter[] ch = new Character[input.length()];\n\t\tfor(int j = 0; j < ch.length; j++) {\n\t\t\tch[j] = new Character(input.charAt(j));\n\t\t}\n\t\tTemplatePermutationGenerator<Character> gen = \n\t\t\t\tnew TemplatePermutationGenerator<Character>(ch);\n\t\tArrayList<ArrayList<Character>> permutate = gen.getPermutation();\n\t\tArrayList<String> result = new ArrayList();\n\t\tfor(List<Character> subList : permutate) {\n\t\t\tStringBuilder str = new StringBuilder();\n\t\t\tfor(Character cha : subList) {\n\t\t\t\tstr.append(cha);\n\t\t\t}\n\t\t\tif(!str.toString().equals(input) && dictionary.contains(str.toString())) {\n\t\t\t\tresult.add(str.toString());\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "c104d9a2d090c5d094f6e528925011be", "score": "0.603002", "text": "static int sherlockAndAnagrams(String s) {\n int count = 0;\n\n List<String> subsets = new ArrayList<String>();\n for (int i = 0; i < s.length(); i++) {\n for (int j = 1; j <= s.length() - i; j++) {\n subsets.add(s.substring(i, i + j));\n }\n }\n\n for (int i = 0; i < subsets.size(); i++) {\n for (int j = i + 1; j < subsets.size(); j++) {\n String s1 = subsets.get(i);\n String s2 = subsets.get(j);\n if (i != j &&\n s1.length() == s2.length() &&\n isAnagram(s1, s2)) {\n count++;\n }\n }\n }\n return count;\n\n }", "title": "" }, { "docid": "43b304d64307d7314b7e3e995cd15cb5", "score": "0.6028073", "text": "public boolean isAnagram (String input1, String input2){\n String nonAlphabets = \"[^a-zA-Z]\";\n\n String str1 = input1.replaceAll(nonAlphabets, \"\");\n String str2 = input2.replaceAll(nonAlphabets,\"\");\n\n if (Objects.isNull(str1) || Objects.isNull(str2))\n return false;\n\n if (str1.length() != str2.length())\n return false;\n\n boolean isAnagram = Boolean.TRUE;\n\n //Initialize char array to store characters occurrence\n int[] charArray = new int[26];\n int index;\n\n //Convert both input strings to lower for sake of comparison\n String string1Lower = str1.toLowerCase();\n String string2Lower = str2.toLowerCase();\n\n //O(n)\n for (Character c : string1Lower.toCharArray()){\n index = c - 'a';\n charArray[index] = charArray[index] ++;\n }\n\n //O(n)\n for (Character c : string2Lower.toCharArray()){\n index = c - 'a';\n charArray[index] = charArray[index] --;\n }\n\n //O(k) where k<=26\n for (int i : charArray){\n if (charArray[i] != 0){\n isAnagram = false;\n break;\n }\n }\n\n return isAnagram;\n }", "title": "" }, { "docid": "7314bab12be97c9f91ab2cd1622680cd", "score": "0.60116863", "text": "public boolean isAnagram(String s,String t){\r\n\r\n // corner case\r\n if (s==null || s.length()==0){\r\n return false;\r\n }\r\n if(t==null || t.length() ==0 ){\r\n return false;\r\n }\r\n if (s.length() !=t.length()){\r\n return false;\r\n }\r\n\r\n Map<Character,Integer> mapOne = makeMap(s);\r\n Map<Character,Integer> mapTwo = makeMap(t);\r\n if (mapOne.equals(mapTwo)){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "e011f1ad53be3d3f04efeefc417255c2", "score": "0.60044235", "text": "private int hash(String key)\n {\n int idx = 0;\n\n for (int ii = 0; ii < key.length(); ii++)\n {\n idx = (11 * idx) + key.charAt(ii);\n }\n //END FOR\n\n return idx % hashTable.length;\n }", "title": "" }, { "docid": "01b101b448c7f619a448020c7c1a84a8", "score": "0.6003477", "text": "public static void sortAnagram2(String[] array){\n\t\tHashtable<String, LinkedList<String>> hash = new Hashtable<String, LinkedList<String>>();\n\t\tfor (int i = 0; i < array.length; i++){\n\t\t\tString key = sortedStr(array[i]);\n\t\t\tif (!hash.containsKey(key)){\n\t\t\t\tLinkedList<String> ll = new LinkedList<String>();\n\t\t\t\tll.add(array[i]);\n\t\t\t\thash.put(key, ll);\n\t\t\t} else {\n\t\t\t\thash.get(key).add(array[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint i = 0;\n\t\tfor (String key : hash.keySet()){\n\t\t\twhile (!hash.get(key).isEmpty()){\n\t\t\t\tarray[i++] = hash.get(key).pop();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "78e131a0a04b854ca82ba84a0b13e6c0", "score": "0.60023856", "text": "@Override\n public int getHash(String string, int arraySize) {\n return string.charAt(0) % arraySize;\n }", "title": "" }, { "docid": "fd6181bfc4dcfb80d896381e89daa40a", "score": "0.5997369", "text": "public static void test2(){\n int p = 1100101; // Big Prime (Hash key1)\n int x = 1001; // Small number (Hash key2)\n HashTable table = new HashTable(16, p, x);\n String[] names = {\"a\", \"b\", \"c\", \"A\", \"B\", \"BA\", \"BBA\", \"aaa\", \"aaaaa\", \"0\",\"1\",\"11\",\"111\", \"abcdABCD01234\" };\n\n for (int i=0; i<names.length; i++){\n table.addString(names[i]);\n System.out.println(\"Index of '\" + names[i] + \"' is \"+table.getIndex(names[i]));\n }\n }", "title": "" }, { "docid": "7d21507a0d5139d50718192deef0950f", "score": "0.59845686", "text": "public static int sherlockAndAnagrams(String s) {\n // Write your code here\n \n int count = 0;\n \n for (int i=0;i<s.length();i++){\n for (int j=i+1;j<s.length();j++){\n String str = s.substring(i, j);\n int len = str.length();\n String temp = s.substring(i+1);\n for (int k=0;k<temp.length()-len+1;k++){\n String temp2 = temp.substring(k, k+len);\n List<String> ch = new ArrayList<String>(Arrays.asList(temp2.split(\"\")));\n List<String> strch = new ArrayList<String>(Arrays.asList(str.split(\"\")));\n Collections.sort(ch);\n Collections.sort(strch);\n \n String t1 = String.join(\"\", strch);\n String t2 = String.join(\"\", ch);\n \n if (t1.compareTo(t2) == 0) count++;\n \n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "797f2edd14192d0b8fc86a0d6f35c76d", "score": "0.5971635", "text": "public Integer hashfunktion(String word) {\n\t\t//Initialsierung von h mit 0\n\t\tint h = 0;\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\t\t\t\t\t//Naechsten Buchstaben vom String nehmen\n\t\t\th = (h * 128 + (int) word.charAt(i)) % m;\n\t\t}\n\t\treturn h;\n\t}", "title": "" }, { "docid": "10bd475100021c72eed968f9de48c1a5", "score": "0.5955554", "text": "public static void main(String[] args) \r\n\t{\n\t\tScanner sc= new Scanner(System.in);\r\n\t\tString s1=sc.next();\r\n\t\tSystem.out.println(\"enter the first string\");\r\n\t\t\r\n\r\n\t\tString s2=sc.next();\r\n\t\tSystem.out.println(\"enter the second string\");\r\n\r\n\t\tchar ch1,ch2;\r\n\t\tint count = 0;\r\n\t\tif(s1.length()==s2.length())\r\n\t\t {\r\n\t\t\tSystem.out.println(\"two strings are of same length\");\r\n\t\t\t\r\n\t\t\r\n \t\t\tfor(int i=0;i<s1.length();i++)\r\n\t\t\t{\t\r\n\t\t\t\t ch1=s1.charAt(i);\r\n\t\r\n\t\t\t for(int j=0;j<s2.length();j++)\r\n\t\t\t {\r\n\r\n\t\t\t\t ch2=s2.charAt(j);\r\n\r\n if(ch1==ch2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcount= count+1;\t\t\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t if (j==s2.length()-1)\r\n\t\t\t\t {\r\n\t\t\t\t System.out.println(\" the given string is not an anagram\");\r\n\t\t\t\t System.exit(0); \r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (count == s1.length())\r\n\t\t\t{\r\n\t\t\t System.out.println(\" the given string is an anagram\");\r\n\t\t\t\r\n\t\t\t}\r\n\r\n\t\t \r\n\t\t }\r\n\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\" the given string is not of same length\");\r\n\t\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "52139d6a09aaee7343245fd5e434307c", "score": "0.593426", "text": "private int hashFunc(String key) \n\t{\n\t\tint val = key.hashCode();\n for(int i=0; i < key.length(); i++)\n {\n \tval %= 37 * val + key.charAt(i);\n }\n val %= size;\n if( val < 0 )\n val += size;\n\n return val;\n\t}", "title": "" }, { "docid": "500f20a29eda1c22f891d3322a7ecf4b", "score": "0.5915818", "text": "public int funcaoHash(String palavra) {\n palavra = palavra.toLowerCase();\r\n int posicao = palavra.charAt(0);\r\n return posicao - 97; \r\n }", "title": "" }, { "docid": "ba1a7f902a156c282b60741a31aa4143", "score": "0.5908596", "text": "public static void getPrimeAnagram() {\n\n\t\tint count1 = 0;\n\n\t\t// initializing array using getPrime method of Utility class\n\t\tint[] primeArray = Utility.getPrime();\n\n\t\t// Counting non- zero elements of primeArray\n\t\tfor (int i = 0; i < primeArray.length; i++) {\n\t\t\tif (primeArray[i] != 0)\n\t\t\t\tcount1++;\n\t\t}\n\t\t// creating array with count1 length\n\t\tint[] x = new int[count1];\n\n\t\t// initializing integer array with non-zero elements of primeArray\n\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\tif (primeArray[i] != 0)\n\t\t\t\tx[i] = primeArray[i];\n\t\t}\n\n\t\t// creating string array with integer array length\n\t\tString[] sAray = new String[x.length];\n\t\tString[] compareAray = new String[x.length];\n\t\tfor (int i = 0; i < x.length; i++) {\n\n\t\t\t// converting each integer elements into string and storing to string array\n\t\t\tsAray[i] = Integer.toString(x[i]);\n\t\t}\n\t\tint i = 0, j = 0, count = 0;\n\t\tString s3 = \"\";\n\n\t\t// Assigning array value to string s1\n\t\tfor (int m = 0; m < sAray.length; m++) {\n\t\t\tString s1 = sAray[m];\n\n\t\t\t// creating character array with the size of s1.length\n\t\t\tchar[] ch2 = new char[s1.length()];\n\n\t\t\t/**\n\t\t\t * Splitting each character of string s1 using chatAt() and storing into ch2\n\t\t\t * array\n\t\t\t */\n\n\t\t\tfor (i = 0; i < s1.length(); i++) {\n\n\t\t\t\tchar ch = s1.charAt(i);\n\t\t\t\tch2[i] = ch;\n\t\t\t}\n\t\t\t\n\t\t\t// Sorting characters of char array using bubble sort\n\t\t\tfor (j = 0; j < ch2.length; j++) {\n\t\t\t\tfor (int k = j + 1; k < ch2.length; k++) {\n\n\t\t\t\t\tif (ch2[j] > ch2[k]) {\n\n\t\t\t\t\t\tchar temp = ch2[j];\n\t\t\t\t\t\tch2[j] = ch2[k];\n\t\t\t\t\t\tch2[k] = temp;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\ts1 = \"\";\n\t\t\t// concatenating sorted characters of a char array to String s1\n\t\t\tfor (i = 0; i < ch2.length; i++)\n\t\t\t\ts1 = s1 + ch2[i];\n\n\t\t\tcompareAray[m] = s1;\n\n\t\t}\n\n\t\tSystem.out.println(\"THe Prime Numbers that are Anagram of each other are as follows\");\n\t\tfor (int p = 0; p < compareAray.length; p++) {\n\n\t\t\tcount = 0;\n\t\t\tfor (int q = p + 1; q < compareAray.length; q++) {\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Here we are comparing sorted Strings that are stored in compareAray \n\t\t\t\t * & but we are printing the actual integer values \n\t\t\t\t * that are present in place of those sorted strings\n\t\t\t\t * and we have stored those actual integer values in x array\n\t\t\t\t */\n\t\t\t\tif (compareAray[p].equals(compareAray[q]) & (compareAray[p].equals(\"\")) == false) {\n\n\t\t\t\t\tSystem.out.println(x[q]);\n\t\t\t\t\tcompareAray[q] = \"\";\n\t\t\t\t\tcount++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t// printing the values from which we are comparing i.e x[p]\n\t\t\tif (count > 0) {\n\t\t\t\tSystem.out.println(x[p]);\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "17051ea637da80f5cd3261d5bfe14b10", "score": "0.5905824", "text": "public static int fastHash(String s) {\n\t int result = 0;\n\t for (int i = 0; i < s.length(); i++) {\n\t \t\tint stepValue = s.charAt(i);\n\t \t\tresult = hashSBoxes[i & 7][stepValue] ^ result;\n\t }\n\t return result;\n\n/* fhashx.cxx\t \n\t UInt32 fastHash (char * string) {\n\t UInt32 result = 0;\n\t for (Int32 i = 0; *string; i++) {\n\t \tresult = hashSBoxes[i & 7][*string++] ^ result;\n\t }\n\t return result;\n\t }\n*/\n\t}", "title": "" }, { "docid": "c2ac2e0ffa09ef6b48fbc4349fb69027", "score": "0.5893378", "text": "public static boolean isAnagram(String s, String t) {\n int CHAR_COUNT = 26;\n\n int sLength = s.length();\n int tLength = t.length();\n\n int[] sArray = new int[CHAR_COUNT];\n int[] tArray = new int[CHAR_COUNT];\n\n for (int i = 0; i < sLength; i++)\n sArray[s.charAt(i) - 'a']++;\n\n\n for (int i = 0; i < tLength; i++)\n tArray[t.charAt(i) - 'a']++;\n\n for (int i = 0; i < CHAR_COUNT; i++)\n if (sArray[i] != tArray[i])\n return false;\n\n return true;\n }", "title": "" }, { "docid": "124a62e8f241102a4b2f580159607de0", "score": "0.58864176", "text": "public static void main(String[] args) {\r\n Scanner scan = new Scanner(System.in);\r\n System.out.print(\"Enter a string: \");\r\n String input = scan.nextLine();\r\n System.out.println(computeHash(input));\r\n\r\n\r\n\r\n\r\n }", "title": "" }, { "docid": "a98a9a77e349865f0451d2302b8f8bfa", "score": "0.58846235", "text": "private static int getAnagramCount(String value) {\r\n int anagrams = 0;\r\n \r\n // Calculates anagrams for single letters\r\n int[] occurrences = new int[MAX_ASCII_LOWER - MIN_ASCII_LOWER + 1];\r\n for (char letter : value.toCharArray()) {\r\n occurrences[letter - MIN_ASCII_LOWER]++;\r\n }\r\n for (int occurrence : occurrences) {\r\n if (occurrence > 1) {\r\n anagrams += ((occurrence - 1) * occurrence) / 2;\r\n }\r\n }\r\n \r\n // Calculates all possible anagram with size greater than 1\r\n int length = value.length();\r\n for (int size = 2; size <= length; size++) {\r\n // Checks all possibles anagrams starting at index i\r\n for (int i = 0; i + size <= length; i++) {\r\n String source = value.substring(i, i + size);\r\n for (int j = i + 1; j + size <= length; j++) {\r\n String target = value.substring(j, j + size);\r\n if (areAnagrams(source, target)) {\r\n anagrams++;\r\n }\r\n }\r\n }\r\n }\r\n \r\n return anagrams;\r\n }", "title": "" }, { "docid": "efff9b7628489b29a6858f9da12b6db3", "score": "0.58783084", "text": "public static String apply(String word) {\n\n\n return stringHexa(gerarHash(word, \"SHA-256\"));\n }", "title": "" }, { "docid": "4258ea2a9bc982b46e44e6734599d984", "score": "0.58545387", "text": "public static boolean checkAnagram(String s, String t) {\n if (s.length() != t.length()) return false;\n Map<Character, Integer> map1 = new HashMap<>();\n Map<Character, Integer> map2 = new HashMap<>();\n\n for (int i = 0; i < s.length(); i++) {\n map1.put(s.charAt(i), map1.getOrDefault(s.charAt(i), 0) + 1);\n map2.put(t.charAt(i), map2.getOrDefault(t.charAt(i), 0) + 1);\n }\n\n return map1.equals(map2);\n }", "title": "" }, { "docid": "03b00354459cc25637210eae1b773720", "score": "0.5843239", "text": "public static int hash(String inStr, int radix, int modulus ) {\n\treturn 1; // To allow compilation\n\n\n }", "title": "" }, { "docid": "080915a03365823ef87e05a9ae9f9247", "score": "0.58380175", "text": "private String hash(String password) {\n int hash = 7;\n for (int i = 0; i < password.length(); i++) {\n hash = hash * 31 + password.charAt(i);\n }\n return Integer.toString(hash);\n }", "title": "" }, { "docid": "4fbdf4b571f83c9980e309cbefb73706", "score": "0.5823519", "text": "private HashSet<String> recAnagramFinder(String s, String letter) {\n\t\t//if the length of the string is zero, return an empty set\n\t\tif (s.length() == 0){\n\t\t\treturn new HashSet<String>();\n\t\t}\n\t\t\n\t\t//oneCharacter is a new set for the anagrams beginning with one letter.\n\t\tHashSet<String> oneCharacter = new HashSet<String>();\n\t\t\n\t\t// size of set is the max no of combinations for a string of string letter's factorial.\n\t\tint sizeOfSet = factorial(letter.length()-1);\n\t\t\n\t\t//while the set doesn't have the maximum no of anagrams possible\n\t\twhile(oneCharacter.size() < sizeOfSet){\n\t\t\t\n\t\t\t//create a new arrayList consisting of the characters of the string letters \n\t\t\tArrayList<Character> chars = new ArrayList<Character>();\n\t\t\t\n\t\t\tfor (int i=0; i < letter.length(); i++){\n\t\t\t\tchars.add(letter.charAt(i));\n\t\t\t}\n\t\t\t\n\t\t\t// the first letter of char changes every time an anagram is added\n\t\t\tString anagram = \"\" + s.charAt(0);\n\t\t\tchars.remove(new Character(s.charAt(0)));\n\t\t\t\n\t\t\t// create an anagram consisting of the letters in char, decrease char as you go along\n\t\t\twhile (chars.size() > 0){\n\t\t\t\tRandom r = new Random();\n\t\t\t\t\n\t\t\t\tint rand = r.nextInt(chars.size());\n\t\t\t\t\n\t\t\t\tchar c = chars.remove(rand);\n\t\t\t\n\t\t\t\tanagram += c;\n\t\t\t}\n\t\t\t// add the anagram to oneCharacter set\n\t\t\toneCharacter.add(anagram);\n\t\t\t\n\t\t}\n\t\t\n\t\toneCharacter.addAll(recAnagramFinder(s.substring(1), letter));\n\t\t\n\t\treturn oneCharacter;\n\t}", "title": "" }, { "docid": "ee9fb3e192585cc7b6607310a65ea061", "score": "0.5823445", "text": "private String calculateHash(){\n\t\tString hash = \"\";\n\t\tint count = 0;\n\t\tfor(char e: pwField.getText().toCharArray()){\n\t\t\tif(count%2 == 0){\n\t\t\t\thash += e+\"^\";\n\t\t\t} else if(count%3 == 0){\n\t\t\t\thash += e+\"!\";\n\t\t\t} else {\n\t\t\t\thash += e+\"&\";\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t\treturn hash;\n\t}", "title": "" }, { "docid": "64c2d3afeb5e89a4246fb0408a1e4dad", "score": "0.58124423", "text": "public static void main(String[] args) {\nScanner skener = new Scanner(System.in);\r\nInteger[] usage = new Integer[26];\r\nfor(int a=0; a<26; a++) {\r\nusage[a]=0;\r\n}\r\nString pyrwaduma,wtoraduma;\r\nSystem.out.println(\"Enter the first word:\");\r\npyrwaduma=skener.nextLine();\r\nSystem.out.println(\"Enter the second word:\");\r\nwtoraduma=skener.nextLine();\r\nfor(int a=0; a<pyrwaduma.length(); a++) {\r\nif(pyrwaduma.charAt(a)>='a' && pyrwaduma.charAt(a)<='z') {\r\nusage[(pyrwaduma.charAt(a)-'a')]++;\r\n}\r\n}\r\nfor(int a=0; a<wtoraduma.length(); a++) {\r\nif(wtoraduma.charAt(a)>='a' && wtoraduma.charAt(a)<='z') {\r\nusage[(wtoraduma.charAt(a)-'a')]--;\r\n}\r\n}\r\nboolean anagram=true;\r\nfor(int a=0; a<26; a++) {\r\nif(usage[a]==0) {\r\ncontinue;\r\n} else {\r\nanagram=false;\r\nSystem.out.println(\"Ne e anagrama.\");\r\nbreak;\r\n}\r\n}\r\nif(anagram) {\r\nSystem.out.println(\"Anagrama e!\");\r\n}\r\n//skener.close();\r\n}", "title": "" }, { "docid": "1eab0e17caae0c3680c840463108595e", "score": "0.5809746", "text": "public static boolean isAnagram(String s, String t) {\n\t\t//Makes everything lowercase and removes spaces\n\t\ts = s.toLowerCase();\n\t\ts = s.replaceAll(\"\\\\s\",\"\");\n\t\tt = t.toLowerCase();\n\t\tt = t.replaceAll(\"\\\\s\",\"\");\n\n\t\t//Lengths must be equal\n\t\tif (s.length() != t.length()) return false;\n\n\t\tHashMap <Character, Integer> first = new HashMap<Character, Integer>();\n\t\tHashMap <Character, Integer> second = new HashMap<Character, Integer>();\n\n\n\t\t// Traverse strings simultaneously, adding characters to map\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (first.containsKey(s.charAt(i))) //update frequency\n\t\t\t\tfirst.put(s.charAt(i), (int)(first.get(s.charAt(i))) + 1);\n\t\t\telse //First occurrence, add to keys\n\t\t\t\tfirst.put(s.charAt(i), 1);\n\n\t\t\tif (second.containsKey(s.charAt(i)))\n\t\t\t\tsecond.put(s.charAt(i), (int)(second.get(s.charAt(i))) + 1);\n\t\t\telse\n\t\t\t\tsecond.put(s.charAt(i), 1);\n\t\t}\n\n\t\t// Test for character and frequency equality\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t// The character is in the first string, but not the second\n\t\t\tif (!second.containsKey(s.charAt(i)))\n\t\t\t\treturn false;\n\t\t\t// The character is in both, but the frequency is different\n\t\t\telse if (first.get(s.charAt(i)) != second.get(s.charAt(i)))\n\t\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "482189b6006f7831bc66d9237ee84928", "score": "0.58076733", "text": "public List<Integer> findAnagrams(String s, String p) {\n int m = s.length(), n = p.length();\n if (m < n) {\n return new ArrayList<>();\n }\n int[] counts = new int[26];\n for (char ch : p.toCharArray()) {\n counts[ch - 'a']++;\n }\n int[] window = new int[26];\n int i = 0;\n while (i < n) {\n window[s.charAt(i++) - 'a']++;\n }\n\n int base = hash(counts);\n int hash = hash(window);\n List<Integer> res = new ArrayList<>();\n while (true) {\n if (hash == base && Arrays.equals(counts, window)) {\n res.add(i - n);\n }\n if (i == m) {\n break;\n }\n int idx = s.charAt(i) - 'a';\n hash += idx;\n window[idx]++;\n idx = s.charAt(i - n) - 'a';\n hash -= idx;\n window[idx]--;\n i++;\n }\n return res;\n }", "title": "" }, { "docid": "649cf2b78c5b97ecf1290c7e95b67f13", "score": "0.58013093", "text": "public String hash(String input) throws TokenManagementException {\n return this.generateHash(input, algo);\n }", "title": "" }, { "docid": "394d6f4c1474b5db089f8770f00ba3d0", "score": "0.57871556", "text": "public static boolean isAnagramOptimized(String s, String t) {\n int sLength = s.length();\n int tLength = t.length();\n\n if (sLength != tLength)\n return false;\n\n int[] array = new int[26];\n\n for (int i = 0; i < sLength; i++)\n array[s.charAt(i) - 'a']++;\n\n\n for (int i = 0; i < tLength; i++)\n if (--array[t.charAt(i) - 'a'] < 0)\n return false;\n\n return true;\n }", "title": "" }, { "docid": "662a00dac03a2074ee231e37b58d1952", "score": "0.57838196", "text": "public String hash(String string)\n\t{\n\t\tbyte[] hashedPassword = md.digest(string.getBytes(StandardCharsets.UTF_8));\n\t\tStringBuffer hashedString = new StringBuffer();\n\t\t\n\t\tfor (int i = 0; i < hashedPassword.length; i++)\n\t\t\thashedString.append(Integer.toString((hashedPassword[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\n\t\treturn hashedString.toString();\n\t}", "title": "" }, { "docid": "98778682223dc74776014b6b11973dc7", "score": "0.57822686", "text": "public int hashCode() {\n int PRIME = 0x01000193;\n int hash = 0x811c9dc5;\n for (int i = 0; i < str.length(); i++){\n char c = str.charAt(i);\n hash ^= (c & 0xff);\n hash *= PRIME;\n }\n if (hash < 0) hash *= -1; // convert negatives to positive\n return hash;\n }", "title": "" }, { "docid": "82cec103e40c9719aaefdeedc47f21c0", "score": "0.577621", "text": "public int hash(String s) {\n\t\t\tfinal byte[] bytes = s.getBytes(); \n\t\t\treturn hash64(bytes, bytes.length);\n\t\t}", "title": "" }, { "docid": "94e090c8d323581f6163c9934c4bea1a", "score": "0.57755035", "text": "public static boolean Anagram3(String s1, String s2) {\r\n\t\tif (s1.length() != s2.length())\r\n\t\t\treturn false;\r\n\r\n\t\tHashMap<Character, Integer> hmap = new HashMap<Character, Integer>();\r\n\t\tfor (int i = 0; i < s1.length(); i++) {\r\n\t\t\tInteger val = hmap.get(s1.charAt(i));\r\n\t\t\tif (!hmap.containsKey(s1.charAt(i))) {\r\n\t\t\t\thmap.put(s1.charAt(i), 1);\r\n\t\t\t} else {\r\n\t\t\t\thmap.put(s1.charAt(i), ++val);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < s2.length(); i++) {\r\n\t\t\tif (!hmap.containsKey(s2.charAt(i)))\r\n\t\t\t\treturn false;\r\n\t\t\tInteger val = hmap.get(s2.charAt(i));\r\n\t\t\tif (val == 1)\r\n\t\t\t\thmap.remove(s2.charAt(i));\r\n\t\t\telse\r\n\t\t\t\thmap.put(s2.charAt(i), --val);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "d2f51178326c22dea02ca5dc29ff781f", "score": "0.5763933", "text": "private int hashFunction(String config) {\n\n\t\tint hashValue = 0;\n\t\tfor (int i = 0; i < config.length(); i++) {\n\t\t\thashValue = (31 * hashValue + ((int) config.charAt(i))) % this.size;\n\t\t}\n\n\t\treturn hashValue;\n\t}", "title": "" }, { "docid": "8e4d35772f1270429b2714a42fc5705d", "score": "0.57630086", "text": "public int hashCode() {\n if (content.length() < 1) return 0;\n return content.charAt(0)+content.charAt(content.length()/2);\n }", "title": "" }, { "docid": "46aac20cc82fce8a9834520dcb4f9a92", "score": "0.5759242", "text": "private static int reHash(String text, int length,\n int oldIndex, int newIndex, int hash) {\n int newHash = hash - ((int) text.charAt(oldIndex));\n // x = x / prime\n newHash = newHash / prime;\n // x + prime^m-1 * ASCII\n newHash += ((int) text.charAt(newIndex))\n * Math.pow(prime, (length - 1));\n return newHash;\n }", "title": "" }, { "docid": "52590a00140bcc64feeec20d0d4594f5", "score": "0.57516605", "text": "private static Map<String, Integer> generateSubstringsFrequencyTable(String input) {\n final Map<String, Integer> frequencyTable = new HashMap<>();\n for (int i = 0; i < input.length(); i++) {\n for (int j = i; j < input.length(); j++) {\n String subs = input.substring(i, j + 1);\n // NOTE: two string S1 and S2 of the same length are anagrammatic\n // if they remain equal after being alphabetically sorted\n String sortedSubs = sort(subs);\n // update frequency table. If sorted substring's frequency k is greater or equal to 2,\n // it means that k anagrammatic substrings were found\n updateSubstringFrequency(frequencyTable, sortedSubs);\n }\n }\n return frequencyTable;\n }", "title": "" }, { "docid": "a96505c288fb9873d2e6cc3d6bdd7355", "score": "0.5737985", "text": "public String freqAlphabets(String s) {\n Character c = ' ';\n StringBuilder res = new StringBuilder();\n Map<String, Character> alphabets = new HashMap<>();\n\n //for (char ch = 'a'; ch <= 'i'; ++ch) {\n alphabets.put(\"0\", ' ');\n alphabets.put(\"1\", 'a');\n alphabets.put(\"2\", 'b');\n alphabets.put(\"3\", 'c');\n alphabets.put(\"4\", 'd');\n alphabets.put(\"5\", 'e');\n alphabets.put(\"6\", 'f');\n alphabets.put(\"7\", 'g');\n alphabets.put(\"8\", 'h');\n alphabets.put(\"9\", 'i');\n alphabets.put(\"10#\", 'j');\n alphabets.put(\"11#\", 'k');\n alphabets.put(\"12#\", 'l');\n alphabets.put(\"13#\", 'm');\n alphabets.put(\"14#\", 'n');\n alphabets.put(\"15#\", 'o');\n alphabets.put(\"16#\", 'p');\n alphabets.put(\"17#\", 'q');\n alphabets.put(\"18#\", 'r');\n alphabets.put(\"19#\", 's');\n alphabets.put(\"20#\", 't');\n alphabets.put(\"21#\", 'u');\n alphabets.put(\"22#\", 'v');\n alphabets.put(\"23#\", 'w');\n alphabets.put(\"24#\", 'x');\n alphabets.put(\"25#\", 'y');\n alphabets.put(\"26#\", 'z');\n\n// for (int i = 0; i < s.length(); i++) {\n// if (s.charAt(i) == '#') {\n// c = alphabets.get(s.substring(i - 2, i+1));\n// res.delete(res.length() - 2, res.length());\n// res.append(c);\n// } else {\n// c = alphabets.get(s.substring(i, i + 1));\n// res.append(c);\n// }\n// }\n\n for (int i = 0 ; i < s.length(); i ++) {\n if (i < s.length() - 2 && s.charAt(i+2) == '#') {\n res.append(alphabets.get(s.substring(i, i+3)));\n i += 2;\n } else {\n res.append(alphabets.get(s.substring(i, i+1)));\n }\n }\n return res.toString();\n }", "title": "" }, { "docid": "6624bb905f2c9602963fc161861e6f0f", "score": "0.5736413", "text": "private int hash(String x) {\n\t\tint hashVal = x.hashCode();\n\t\thashVal %= TABLE_SIZE;\n\t\tif (hashVal < 0) {\n\t\t\thashVal += TABLE_SIZE;\n\t\t}\n\n\t\treturn hashVal;\n\t}", "title": "" }, { "docid": "87d7066c2e98b38a0654d66124b08696", "score": "0.57363003", "text": "static void hash(){\n\t\tString s = \"http://search.51job.com/list/co,c,2187839,000000,50,6.html\";\r\n\t\tint hash = s.hashCode();\r\n\t\tSystem.out.println(hash);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d855ad6489a344e0a9f664501ceb005b", "score": "0.57258797", "text": "private boolean checkAnagram(String s, String s1) {\n\t\tfor(int i=0;i<s.length();i++) {\n\t\t\tchar ch=s.charAt(i);\n\t\t\tif(ch==' ')\n\t\t\t\tcontinue;\n\t\t\tmap.put(ch,map.getOrDefault(ch,0)+1);\n\t\t}\n\n\t\tfor(int i=0;i<s1.length();i++) {\n\t\t\tchar ch=s1.charAt(i);\n\n\t\t\tif(ch==' ')\n\t\t\t\tcontinue;\n\t\t\tint key;\n\t\t\tif(map.get(ch)==null) {\n\t\t\t\tmap.put(ch,map.getOrDefault(ch,0)+1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tkey=map.get(ch);\n\t\t\t\tmap.put(ch,key-1);\n\t\t\t}\n\t\t}\n\n\t\tboolean flag=true;\n\t\tCollection<Integer> v=map.values();\n\n\t\tfor(Integer i:v) {\n\t\t\tif(i!=0)\n\t\t\t\tflag=false;\n\t\t}\n\n\t\treturn flag;\n\t}", "title": "" }, { "docid": "764ee1428c2aa52e3bc9bd6e49e250e8", "score": "0.5704681", "text": "public static boolean checkAnagramForLowerCaseAsciiAndUpperCaseChars(String s, String t) {\n //52 is used to make sure, we can cover both upper case and lower case characters\n int [] cMap = new int[52];\n if (s.length() != t.length()) {\n return false;\n }\n for (int i = 0; i < s.length(); i++) {\n cMap[s.charAt(i) - 'A']++;\n cMap[t.charAt(i) - 'A']--;\n\n }\n\n\n return Arrays.stream(cMap).allMatch(e -> e == 0);\n }", "title": "" }, { "docid": "a177c60b4e85ae65489bcc7b4115cc03", "score": "0.56895334", "text": "public boolean isAnagram(String s, String t) {\n if(s.length()!=t.length()) return false;\n char[] a = s.toCharArray();\n //nlogn quick sort\n Arrays.sort(a);\n char[] b = t.toCharArray();\n Arrays.sort(b);\n for(int i = 0; i<a.length ; i++){\n \tif(a[i]!=b[i]) return false;\n }\n return true;\n }", "title": "" }, { "docid": "a845bfa065df1604d2b6f2374be866e3", "score": "0.56803405", "text": "java.lang.String getHash();", "title": "" }, { "docid": "43e4078943bbaa775b2ff94acc156f38", "score": "0.56734467", "text": "public void calcHash() {\r\n\t\thash = HashUtil.applySha256(toString());\r\n\t}", "title": "" }, { "docid": "5fb7eca02a326ec3b5509e8177b3c4ad", "score": "0.5670302", "text": "public final int hashCode() {\n int h = 0;\n for (int i = 0; i < _length;) {\n h = 31 * h + charAt(i++);\n }\n return h;\n }", "title": "" }, { "docid": "a1b0bf4c5930a171ea19d7bc290c144c", "score": "0.56675124", "text": "public int hashCode() {\n\t\tint vowels = 0;\n\t\tString[] temp = theWord.split(\"\");\n\t\tfor (int i = 0; i < temp.length; i++) {\n\t\t\tif (temp[i].equals(\"a\") || temp[i].equals(\"i\") || temp[i].equals(\"e\") ||\n\t\t\ttemp[i].equals(\"o\") || temp[i].equals(\"u\")) {\n\t\t\t\tvowels++;\n\t\t\t}\n\t\t}\n\t\treturn (vowels * temp.length) % 10;\n\t}", "title": "" }, { "docid": "2b7d658000488106f8452489bce6ddb7", "score": "0.5635801", "text": "public static void isAnagram(String s1, String s2) {\n\t\tString spaceS1 = \"\";\n\t\tString spaceS2 = \"\";\n\t\t/**\n\t\t * removing space from String s1 if any space is present in user string\n\t\t */\n\t\tfor (int i = 0; i < s1.length(); i++) {\n\t\t\tchar ch = s1.charAt(i);\n\t\t\tif (ch == ' ')\n\t\t\t\tcontinue;\n\t\t\tspaceS1 += ch;\n\t\t}\n\t\ts1 = \"\";\n\n\t\t// converting user String into small letters\n\t\ts1 = spaceS1.toLowerCase();\n\t\t/**\n\t\t * removing space from String s1 if any space is present in user string\n\t\t */\n\t\tfor (int i = 0; i < s2.length(); i++) {\n\t\t\tchar ch = s2.charAt(i);\n\t\t\tif (ch == ' ')\n\t\t\t\tcontinue;\n\t\t\tspaceS2 += ch;\n\t\t}\n\t\ts2 = \"\";\n\t\t// converting user String into small letters\n\t\ts2 = spaceS2.toLowerCase();\n\n\t\t// this char array is used to store each character of s1 String\n\t\tchar[] storeCharS1 = new char[s1.length()];\n\t\t// this char array is used to store each character of s2 String\n\t\tchar[] storeCharS2 = new char[s2.length()];\n\n\t\t// storing each character of string s1 in char array\n\t\tfor (int i = 0; i < storeCharS1.length; i++) {\n\t\t\tchar ch = s1.charAt(i);\n\t\t\tstoreCharS1[i] = ch;\n\t\t}\n\n\t\t// storing each character of string s2 in char array\n\t\tfor (int i = 0; i < storeCharS2.length; i++) {\n\t\t\tchar ch = s2.charAt(i);\n\t\t\tstoreCharS2[i] = ch;\n\t\t}\n\n\t\t// Sorting character arrays1 using bubble sort\n\t\tfor (int i = 0; i < storeCharS1.length; i++) {\n\n\t\t\tfor (int j = i + 1; j < storeCharS2.length; j++) {\n\n\t\t\t\tif (storeCharS1[i] > storeCharS1[j]) {\n\n\t\t\t\t\tchar ch = storeCharS1[i];\n\t\t\t\t\tstoreCharS1[i] = storeCharS1[j];\n\t\t\t\t\tstoreCharS1[j] = ch;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ts1 = \"\";\n\t\t// concatenating characters to string s1\n\t\tfor (int i = 0; i < storeCharS1.length; i++)\n\t\t\ts1 += storeCharS1[i];\n\n\t\t// Sorting character arrays2 using bubble sort\n\t\tfor (int i = 0; i < storeCharS2.length; i++) {\n\n\t\t\tfor (int j = i + 1; j < storeCharS2.length; j++) {\n\n\t\t\t\tif (storeCharS2[i] > storeCharS2[j]) {\n\n\t\t\t\t\tchar ch = storeCharS2[i];\n\t\t\t\t\tstoreCharS2[i] = storeCharS2[j];\n\t\t\t\t\tstoreCharS2[j] = ch;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ts2 = \"\";\n\t\t// concatenating characters to string s2\n\t\tfor (int i = 0; i < storeCharS2.length; i++)\n\t\t\ts2 += storeCharS2[i];\n\n\t\t// comparing Strings s1 and s2\n\t\tif (s1.equals(s2))\n\t\t\tSystem.out.println(\"Both Strings are Anagram of each other\");\n\t\telse\n\t\t\tSystem.out.println(\"Both Strings are not Anagram of each other\");\n\n\t}", "title": "" }, { "docid": "d1efa9c0f95c55c97c3df17727d7622a", "score": "0.5635695", "text": "public static boolean Anagramtestfunc(String s, String str)\n {\n char [] arr1=s.toLowerCase().toCharArray();\n char [] arr2=str.toLowerCase().toCharArray();\n //sorting the char array in order to \n Arrays.sort(arr1);\n Arrays.sort(arr2);\n boolean stat=Arrays.equals(arr1, arr2);\n return stat;\n \n \n }", "title": "" }, { "docid": "04bc66f44d7786b5ac25ebce56737689", "score": "0.56305563", "text": "public int hash ( )\n\n {\n\t\t int hash_num = 0;\n\n\t\t for (int i = 0; i<streetAddress.length(); i++)\n\t\t {\n\t\t\t hash_num += streetAddress.charAt(i);\n\n\t\t }\n\n\t\t int factor = 0;\n\n\t\t for (int i = 0; i<city.length(); i++)\n\t\t\t\tfactor +=city.charAt(i);\n\n\t\thash_num *= factor;\n\n\n\n\n\n\n\t\treturn hash_num;\n }", "title": "" }, { "docid": "dc8ff305b9bb01514c9793b682d2d39a", "score": "0.56286895", "text": "private static void countNGrams(String script) {\n int count = 0;\n\n // Unigram\n for(int i = 0; i < alphabet.length; i++) {\n count = script.length() - script.replace(String.valueOf(alphabet[i]), \"\").length();\n unigram_count.put(String.valueOf(alphabet[i]), count);\n }\n\n // Bigram\n for(int i = 0; i < alphabet.length; i++) {\n for(int j = 0; j < alphabet.length; j++) {\n String search_target = String.valueOf(alphabet[i]) + String.valueOf(alphabet[j]);\n // each occurance will decrease total length of string by 2\n count = (script.length() - script.replace(search_target, \"\").length()) / 2;\n bigram_count.put(search_target, count);\n }\n }\n\n // Trigram\n for(int i = 0; i < alphabet.length; i++) {\n for(int j = 0; j < alphabet.length; j++) {\n for(int k = 0; k < alphabet.length; k++) {\n String search_target = String.valueOf(alphabet[i]) + String.valueOf(alphabet[j]) + String.valueOf(alphabet[k]);\n // each occurance will decrease total length of string by 3\n count = (script.length() - script.replace(search_target, \"\").length()) / 3;\n trigram_count.put(search_target, count);\n }\n }\n }\n }", "title": "" }, { "docid": "bbce2f943976bc56d4167f1150cb4423", "score": "0.56066006", "text": "public int hashcode()\n {\n int hashcode = 0;\n for (int i = 0; i < 16; i++)\n {\n hashcode += (int) contents[i];\n }\n return (hashcode);\n }", "title": "" }, { "docid": "389b53d425b11bd131e03735d3777479", "score": "0.5606033", "text": "static void makeAnagram(char[] a, int i) {\n\t\t//System.out.println(\"MakeAnagram i=\" + i); //for debug\n\t\tif (i == a.length-1) printArray(a);\n\t\telse {\n\t\t\tfor (int j=i; j< a.length; j++) {\n\t\t\t\t//swap a[i] with a[j]\n\t\t\t\tchar c = a[i]; \n\t\t\t\ta[i] = a[j]; \n\t\t\t\ta[j] = c;\n\t\t\t\tmakeAnagram(a, i+1);\n\t\t\t\t//swap back\n\t\t\t\tc = a[i]; \n\t\t\t\ta[i] = a[j]; \n\t\t\t\ta[j] = c;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "63ebc3c19223c7ec0bde9b878f464a1a", "score": "0.55931413", "text": "public static void primeAnagram() \n\t{\n\t\tArrayList<String> primes = new ArrayList<>();\n\t\tSystem.out.println(\"Prime numbers that are anagram\");\n\t\tfor (int i = 0; i < 1000; i++) \n\t\t{\n\t\t\tif (isPrime(i)) \n\t\t\t{\n\t\t\t\tprimes.add(String.valueOf(i));\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < primes.size(); i++) \n\t\t{\n\t\t\tfor (int j = i + 1; j < primes.size(); j++) \n\t\t\t{\n\t\t\t\tif (isAnagram(primes.get(i), primes.get(j)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(primes.get(i) + \" \" + primes.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5a89c42abf034ced4bc5171bb454ff9e", "score": "0.558284", "text": "public boolean isanagram(String str1, String str2)\n{\n StringBuffer s1 = new StringBuffer(str1);\n StringBuffer s2 = new StringBuffer(str2);\n // if(str1.length != str2.length)\n // return false;\n\n System.out.println(s1.capacity());\n int i=0;\n while(i<s1.length())\n {\n // System.out.println(s1.indexOf( s1.charAt(i) ));\n // System.out.println(s1.charAt(i));\n i++;\n }\n\n return true;\n}", "title": "" }, { "docid": "1fc27cecac575fe4915975b8db4371c2", "score": "0.55693096", "text": "private static int[] generateTable(String s) {\n int[] result = new int[s.length()];\n result[0] = 0;\n int index = 0;\n for(int i = 1; i < s.length(); i++) {\n char c = s.charAt(i);\n if (c == s.charAt(index)) {\n result[i] = result[i - 1] + 1;\n index++;\n }\n else {\n index = result[i-1];\n while(index > 0 && c != s.charAt(index)) {\n index = result[index - 1];\n }\n if (c == s.charAt(index)) {\n index++;\n }\n result[i] = index;\n }\n }\n return result;\n }", "title": "" }, { "docid": "43ae02f4759deacf4540173a5f32990a", "score": "0.55590874", "text": "public int hashCode () {\n\n\t\t//local variables to hold the return value and index\n\t\tint retval = 0;\n\t\tint index = 0;\n\t\t\n\t\t//get each char in the string and add to the sum \n\t\twhile (index != name.length ()) {\n\t\t\tretval += name.charAt (index);\n\t\t\tindex ++;\n\t\t}\n\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "84e78238041c2d075cecb2368f5e60ec", "score": "0.5544384", "text": "private void testHashTable(Hash hash) {\n HashTable<Integer> hashTable = new HashTable<>(hash);\n for (int i = 0; i < arraySize; i++) {\n array[i] = r.nextInt();\n }\n\n for (int i = 0; i < arraySize; i++) {\n hashTable.addToHash(array[i]);\n }\n\n for (int i = 0; i < arraySize; i++) {\n Assert.assertTrue(hashTable.count(array[i]) > 0);\n }\n for (int i = 0; i < arraySize; i++) {\n hashTable.removeFromHash(array[i]);\n }\n Assert.assertTrue(hashTable.amountOfWords() == 0);\n }", "title": "" }, { "docid": "a954d53bc50eb06fbab0a46a00541ab7", "score": "0.5542274", "text": "public static void main(String[] args) {\n\t\tString s1 = \"ggyyhhjjuukkii\";\r\n\t\tString s2 = \"hhuujjyyggiikk\";\r\n\r\n\t\tlong start = System.currentTimeMillis();\r\n\r\n\t\tSystem.out.println(Anagram3(s1, s2));\r\n\r\n\t\tlong end = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Time taken:\" + (end - start) / 1000.0 + \" secs\");\r\n\r\n\t}", "title": "" }, { "docid": "f55fa8aaa9a14e02440077d5364a8887", "score": "0.55388886", "text": "public static int hash(String word) {\n return word.length();\n }", "title": "" }, { "docid": "c18c9398b8222035e2e49b014b750091", "score": "0.55368376", "text": "public static void main(String args[])\r\n\t{\r\n\t\tif(args.length!=2)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error:Too few parameters\");\r\n\t\t\tSystem.out.println(\"Please enter two strings\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\tStringBuffer str1=new StringBuffer(args[0]);\r\n\t\tStringBuffer str2=new StringBuffer(args[1]);\r\n\t\tint l1=str1.length();\r\n\t\tint l2=str2.length();\r\n\t\tif(l1!=l2)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Given Strings is not Anagram\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<l1;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<l2;)\r\n\t\t\t{\r\n\t\t\t\tchar str1c=str1.charAt(i);\r\n\t\t\t\tchar str2c=str2.charAt(j);\r\n\t\t\t\tif(str1c==str2c)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tstr2.deleteCharAt(j);\r\n\t\t\t\t\tstr1.deleteCharAt(i);\r\n\t\t\t\t\tl2=l2-1;\r\n\t\t\t\t\tl1=l1-1;\r\n\t\t\t\t\ti=0;\r\n\t\t\t\t\tj=0;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t}\r\nif(l2==0 && l1==0)\r\n\tSystem.out.println(\"Given Strings is Anagram\");\r\nelse\r\n\tSystem.out.println(\"Given Strings is not Anagram\");\r\n\t}", "title": "" }, { "docid": "8a484673abea0e294a4ee3b35def4f34", "score": "0.5536679", "text": "public void makeFreqTable(String str) {\n\t\t//initialize hashtable with frequencies of each character\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tchar c = str.charAt(i);\n\t\t\tInteger val = freqTable.get(new Character(c));\n\t\t\t//for hashtable: key = character, value = frequency of character\n\t\t\tif(val != null) {\n\t\t\t\tfreqTable.put(c, new Integer(val + 1));\n\t\t\t} else {\n\t\t\t\tfreqTable.put(c, 1);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6abcfd7225c24f2270774c0db683b7d4", "score": "0.5524161", "text": "public static void main(String[] args) {\n\t\tString s=\"seem\";\n\t\tchar ch1[]=s.toCharArray();\n\t\tString s1=\"mees\";\n\t\tchar ch2[]=s1.toCharArray();\n\t\tif(s.length()!=s1.length())\n\t\t{\n\t\t\tSystem.out.println(\"false\");\n\t\t}\n\t\telse\n\t\t{\n//\t\t\tArrays.sort(ch1);\n//\t\t\tArrays.sort(ch2);\n//\t\t\tSystem.out.println(s.valueOf(ch1)+\" \"+s.valueOf(ch2));\n//\t\t\tif(s.valueOf(ch1).equals(s.valueOf(ch2)));\n//\t\t\t{\n//\t\t\t\tSystem.out.println(\"s is anagram of s1\");\n//\t\t\t}\n\t\t\t\n\t\t\t\tchar temp,temp1;\n\t\t\t\tfor(int i=0;i<s.length();i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int j=i+1;j<s.length();j++ )\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch1[i]>ch1[j])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttemp=ch1[i];\n\t\t\t\t\t\t\tch1[i]=ch1[j];\n\t\t\t\t\t\t\tch1[j]=temp;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(s.valueOf(ch1));\n\t\t\t\tfor(int i=0;i<s.length();i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int j=i+1;j<s.length();j++ )\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch2[i]>ch2[j])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttemp=ch2[i];\n\t\t\t\t\t\t\tch2[i]=ch2[j];\n\t\t\t\t\t\t\tch2[j]=temp;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(s.valueOf(ch2));\n}\n\t\tif(s.valueOf(s).equals(s.valueOf(s1)))\n\t\t{\n\t\t\tSystem.out.println(\"anagram\");\n\t\t}\n\t}", "title": "" }, { "docid": "3b3b71f867921ce54f0b6774bfcc305a", "score": "0.55229664", "text": "public static int get_key_code_of_a_string(String str){\r\n return str.hashCode();\r\n }", "title": "" }, { "docid": "1a03d074e18ad30aab277e2bb8133e37", "score": "0.5521534", "text": "long hash(final String k);", "title": "" }, { "docid": "d7c6691ab09e912b6ac357f44dcce8dc", "score": "0.5506312", "text": "@Override\r\n\tpublic String calculate(String input) {\r\n\t\t\r\n\t\tfinal String result;\r\n\t\t\r\n\t\tfinal int inputLength = input.length();\r\n\t\t\r\n\t\tMap<Character, Integer> numberCharacters = new HashMap<Character, Integer>(\r\n\t\t\t\tMath.min(inputLength, 26));\r\n\t\t\r\n\t\t// for all chars of the input\r\n\t\tfor (int i = 0; i < inputLength; ++i) {\r\n\t\t\t\r\n\t\t\tchar charAt = input.charAt(i);\r\n\t\t\t\r\n\t\t\t// if char is not in result add it\r\n\t\t\tif (!numberCharacters.containsKey(charAt)) {\r\n\t\t\t\t\r\n\t\t\t\tnumberCharacters.put(charAt, 1);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\t// otherwise increase appearance number by one\r\n\t\t\t\tnumberCharacters.put(charAt, numberCharacters.get(charAt) + 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tresult = numberCharacters.toString();\r\n\t\t\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "1ba7c791d0e4f30d625d5cfb424b980d", "score": "0.55060387", "text": "private byte[] hash(String input) {\n\t\tbyte[] hashedInput = null;\n\t\ttry {\n\t\t\tbyte[] inputBytes = input.getBytes(\"UTF-8\");\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n\t\t\thashedInput = md.digest(inputBytes);\n\t\t} catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn hashedInput;\n\t}", "title": "" }, { "docid": "fd9a21da27140bb1cf1a28c475d3f64d", "score": "0.5488733", "text": "public static boolean Anagram3_1(String s1, String s2) {\r\n\t\tif (s1.length() != s2.length())\r\n\t\t\treturn false;\r\n\r\n\t\tchar[] lookup = new char[26];\r\n\r\n\t\tfor (int i = 0; i < s1.length(); ++i)\r\n\t\t\t++lookup[s1.charAt(i) - 'a'];\r\n\r\n\t\tfor (int i = 0; i < s2.length(); ++i) {\r\n\t\t\tif (lookup[s2.charAt(i) - 'a'] == 0)\r\n\t\t\t\treturn false;\r\n\t\t\t--lookup[s2.charAt(i) - 'a'];\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "7ffb9ae81971af8ab752594ef58b59cf", "score": "0.54786676", "text": "public boolean isAnagram(String s, String t) {\n\t\tif (s == null)\n\t\t\treturn (t == null);\n\t\tif (t == null || s.length() != t.length())\n\t\t\treturn false;\n\n\t\tint[] arr = new int[256];\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tarr[s.charAt(i)]++;\n\t\t}\n\t\tfor (int i = 0; i < t.length(); i++) {\n\t\t\tif (arr[t.charAt(i)]-- == 0)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "63255ba4ada3da7d9b1f6ae48447c061", "score": "0.54782313", "text": "public int hashCode() {\n/* 674 */ return str().hashCode();\n/* */ }", "title": "" }, { "docid": "d64e522faad3d4955d5c4bf80c11a98b", "score": "0.5463355", "text": "public void findAnagram(){\n\n Scanner in =new Scanner(System.in);\n\n String CAT = in.nextLine();\n String ACT = in.nextLine();\n String ARMY = in.nextLine();\n String MARY = in.nextLine();\n\n char arr1[] = CAT.toCharArray();\n char arr2[] = ACT.toCharArray();\n char arr3[] =ARMY.toCharArray();\n char arr4[] =MARY.toCharArray();\n\n Arrays.sort(arr1);\n Arrays.sort(arr2);\n Arrays.sort(arr3);\n Arrays.sort(arr4);\n\n String Array1 = new String(arr1);\n String Array2 = new String(arr2);\n String Array3 = new String(arr3);\n String Array4 = new String(arr4);\n\n\n\n if(Array1.equals(Array2)){\n System.out.println(\"It is Anagram\");\n }\n else{\n System.out.println(\"It is not an Anagram\");\n }\n\n\n if (Array3.equals(Array4)){\n System.out.println(\"It is Anagram\");\n }\n else{\n System.out.println(\"2nd one is not an Anagram also\");\n }\n\n }", "title": "" }, { "docid": "cd6d49895e314d63088f982c95bbfe03", "score": "0.5455325", "text": "public List<String> anagramsWrong(String[] strs) {\n // write your code here\n Map<char[], List<Integer>> anal = new HashMap<>();\n int idx = 0;\n for (String str : strs) {\n char[] patt = anagram(str);\n if (!anal.containsKey(patt)) {\n List<Integer> pos = new ArrayList<>();\n pos.add(idx);\n anal.put(patt, pos);\n } else {\n anal.get(patt).add(idx);\n }\n idx++;\n }\n List<String> res = new ArrayList<>();\n for (char[] patt : anal.keySet()) {\n if (anal.get(patt).size() > 1) {\n System.out.println(anal.get(patt));\n res.add(anal.get(patt).toString());\n }\n }\n return null;\n }", "title": "" } ]
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "f76683c2859238b321cb4692c8477c7e", "score": "0.0", "text": "void mo85225a(ChatMessage chatMessage);", "title": "" } ]
[ { "docid": "937780f4f035d57e7a7e7267f6580385", "score": "0.6369484", "text": "public interface C0257a {\n /* renamed from: a */\n void mo786a();\n }", "title": "" }, { "docid": "e64b0e78a1866c07d6a7a8de5ad114d6", "score": "0.63654995", "text": "public a a(ao.a ☃) {\r\n/* 175 */ this.h = ☃.b();", "title": "" }, { "docid": "d402ae6cb02893957e1d2990deaad913", "score": "0.6308025", "text": "public interface C2193b {\n /* renamed from: a */\n void mo4030a(int i, Object obj);\n }", "title": "" }, { "docid": "ba8f76dad884d9e05fed8d591ef4fccd", "score": "0.6300409", "text": "public interface C4568a {\n /* renamed from: a */\n void mo24755a();\n }", "title": "" }, { "docid": "e02308d4ca9dd95a505ece5625db8a70", "score": "0.61857927", "text": "public interface C35559at {\n /* renamed from: a */\n void mo90376a();\n}", "title": "" }, { "docid": "0c42bf984e94067102872376d236f926", "score": "0.61487037", "text": "public interface C4226b {\n /* renamed from: a */\n void mo23224a(int i);\n }", "title": "" }, { "docid": "f9463735da2365bdd1ea8c1af5662f6a", "score": "0.61321104", "text": "public interface C47134b {\n /* renamed from: a */\n void mo118424a();\n }", "title": "" }, { "docid": "6aac2d1cd80eab7b6ca07437465ab587", "score": "0.6092662", "text": "public interface C38261b {\n /* renamed from: a */\n void mo95888a();\n }", "title": "" }, { "docid": "2a92c27025e59e79de12b4cf7fe96e15", "score": "0.60878164", "text": "public interface C0372a {\n /* renamed from: a */\n void mo950a();\n }", "title": "" }, { "docid": "bdeebcea16834f7b9f725108f622ab4a", "score": "0.60655385", "text": "public interface C3466a {\n /* renamed from: a */\n void mo7925a(C7575bv c7575bv);\n }", "title": "" }, { "docid": "0ca0371305dbf355f1f43cf926b61651", "score": "0.6064316", "text": "public interface awr extends axy {\n /* renamed from: a */\n void mo412a(aws aws);\n}", "title": "" }, { "docid": "665d1c56d20e267a5fd58d2bcd5af0f7", "score": "0.6061843", "text": "interface C0733b {\n /* renamed from: a */\n void mo11936a();\n }", "title": "" }, { "docid": "6d8f7c05f80f9acb832f9128324a9501", "score": "0.60342646", "text": "public interface C33494b {\n /* renamed from: a */\n void mo5871a(C33493a c33493a);\n }", "title": "" }, { "docid": "9b88eabc71a888685b0140abf589a052", "score": "0.6022664", "text": "private static void swap(A a, A b) {\n\t\tint t=a.i;\n\t\ta.i=b.i;\n\t\tb.i=t;\n\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "cca0a5939b9ed60a68611ba2afa6262c", "score": "0.6020366", "text": "public interface C32699a {\n /* renamed from: a */\n void mo84155a();\n }", "title": "" }, { "docid": "a877d287d1df44f7f48bd98382d1b681", "score": "0.6009139", "text": "public interface C42929a {\n /* renamed from: a */\n void mo71408a();\n\n /* renamed from: b */\n void mo71409b();\n }", "title": "" }, { "docid": "f1b91de5db261e6f631f0ec13660e83e", "score": "0.5991646", "text": "interface C2515a {\n /* renamed from: a */\n void m9530a(String str);\n }", "title": "" }, { "docid": "8a1ed074a8572ab993f9aca7f543a244", "score": "0.5956434", "text": "public interface C3980a {\n /* renamed from: a */\n void mo9455a(int i);\n }", "title": "" }, { "docid": "4676d462ca50d3e65737e8973ca6280c", "score": "0.59521675", "text": "interface caq {\n /* renamed from: a */\n void mo2606a(bzh bzh);\n}", "title": "" }, { "docid": "a32dd693c27d722fa248029bf4722165", "score": "0.5947403", "text": "public interface C1075b {\n /* renamed from: a */\n void mo10439a(String str);\n }", "title": "" }, { "docid": "ba23360bef0c9a64dde23f5e604e69a0", "score": "0.5926708", "text": "public interface C5332b {\n /* renamed from: a */\n void mo4018a(String str);\n }", "title": "" }, { "docid": "46242a5fae9f4da4b45702efb6b327eb", "score": "0.5921753", "text": "public interface C36223b {\n /* renamed from: a */\n void mo92217a(String str);\n }", "title": "" }, { "docid": "aa38e472c95c8727f1c6e809e412bccf", "score": "0.5918613", "text": "public interface C0433a {\n /* renamed from: a */\n void m1914a();\n }", "title": "" }, { "docid": "fff5f7d4d40dddbc1d67e18653658aa2", "score": "0.58976996", "text": "public interface C1451b {\n /* renamed from: a */\n void mo5017a(String str);\n }", "title": "" }, { "docid": "cd426ca662341c2a9055c55be4a2d0ae", "score": "0.5894773", "text": "public interface C1074a {\n /* renamed from: a */\n void mo10438a(String str);\n }", "title": "" }, { "docid": "91e1805d3d85bf9bac464255651a1ed0", "score": "0.5893678", "text": "public interface C45783b {\n /* renamed from: b */\n C45781a mo110997b();\n}", "title": "" }, { "docid": "ec9e43239cd671297536fd231e061cc2", "score": "0.5883106", "text": "public interface C24705a {\n /* renamed from: a */\n void mo64650a();\n\n /* renamed from: b */\n void mo64651b();\n}", "title": "" }, { "docid": "e8299284aaf8195323dfcf2c2e49a044", "score": "0.5879163", "text": "public interface C0599a {\n /* renamed from: a */\n void mo1375a();\n\n /* renamed from: b */\n void mo1376b();\n }", "title": "" }, { "docid": "e76afc2fd893584bd66c4b66ece9f01d", "score": "0.58790946", "text": "public interface C43371g {\n /* renamed from: a */\n void mo105243a(int i, int i2);\n}", "title": "" }, { "docid": "14df072246679f5091339e9670245447", "score": "0.58570564", "text": "protected Automaton convertAutomaton(Automaton a) {\n\t\treturn a;\n\t}", "title": "" }, { "docid": "8433ef0d728ea85ed5c77eb087d80ef8", "score": "0.5846192", "text": "interface C2094a {\n /* renamed from: a */\n void mo11939a();\n\n /* renamed from: b */\n void mo11940b();\n }", "title": "" }, { "docid": "0a28df39aa5a389edd324a6bf6d59d1c", "score": "0.58265096", "text": "public interface C24424b {\n /* renamed from: a */\n void mo63399a(int i);\n\n /* renamed from: b */\n void mo63400b(int i);\n }", "title": "" }, { "docid": "dc3c360b4221689cb9258962dab88ec4", "score": "0.5821299", "text": "public interface cvt {\n /* renamed from: a */\n void mo3421a(int i);\n\n /* renamed from: a */\n void mo3422a(cvv cvv);\n}", "title": "" }, { "docid": "74ccd9e36d32333c9607042a31cd9983", "score": "0.5818187", "text": "public interface C3302a {\n /* renamed from: a */\n void mo27942a(int i);\n }", "title": "" }, { "docid": "519e208140c60c671fe77a482dd6a0b4", "score": "0.5812891", "text": "public String B(String a) {\n\t\treturn a;\n\t}", "title": "" }, { "docid": "27a710e812cd37ed478a51549058b8aa", "score": "0.5756103", "text": "public interface C0173a {\n /* renamed from: a */\n void mo147a(int i);\n\n /* renamed from: a */\n void mo148a(View view);\n }", "title": "" }, { "docid": "2cc123e23e3586d7aa3340a79e83d99c", "score": "0.5750263", "text": "public interface C28404a {\n /* renamed from: a */\n void mo72138a();\n\n /* renamed from: b */\n void mo72139b();\n }", "title": "" }, { "docid": "e75740eaef2325200b06d4d821e5fb27", "score": "0.5740646", "text": "public interface C2567ma {\n /* renamed from: a */\n boolean mo7856a();\n}", "title": "" }, { "docid": "47b84df59b4861f6f5d28be57a72e823", "score": "0.57368433", "text": "public interface C1544h {\n /* renamed from: a */\n void mo14065a(int i, String str);\n}", "title": "" }, { "docid": "2e84a5356b959ae415e887dd904938b1", "score": "0.57316583", "text": "public interface C10644c {\n /* renamed from: a */\n void mo33666a(C10639a aVar);\n }", "title": "" }, { "docid": "8b3439872d1e4297f287f77bdf1adecb", "score": "0.57282656", "text": "public interface C0589c {\n /* renamed from: a */\n void mo974a(C0587a c0587a);\n}", "title": "" }, { "docid": "4a05adf73df28d59617c0199673d9701", "score": "0.57279474", "text": "public interface C1869c {\n /* renamed from: a */\n String mo1399a(String str);\n}", "title": "" }, { "docid": "653247b1b2b0dc9540a36b58e5605476", "score": "0.5699355", "text": "public interface AbstractC18515a {\n /* renamed from: a */\n void mo89736a();\n }", "title": "" }, { "docid": "dd66ad67809b20bf2317b26b01ff5100", "score": "0.5695602", "text": "public interface C37120a {\n /* renamed from: a */\n void mo93545a();\n\n /* renamed from: b */\n void mo93546b();\n\n /* renamed from: c */\n void mo93547c();\n }", "title": "" }, { "docid": "fee1f4742f6c7162ee32a525aebb7dfa", "score": "0.5637209", "text": "public interface C9197e {\n /* renamed from: a */\n void mo33330a(int i, boolean z);\n }", "title": "" }, { "docid": "38f6730a7a6f3584d629d1391142b46f", "score": "0.5627082", "text": "public interface AbstractC18517c {\n /* renamed from: a */\n void mo89738a();\n }", "title": "" }, { "docid": "8758c28ff96f635cffbd694bfd607a3c", "score": "0.56224865", "text": "public interface C1431c {\n /* renamed from: a */\n void mo6468a(float f);\n}", "title": "" }, { "docid": "8994b8ba3bac7dcba4fac50f10f24f34", "score": "0.5619538", "text": "public interface C7912a {\n /* renamed from: a */\n boolean mo20835a();\n}", "title": "" }, { "docid": "f25b04b8e6a669bcc6dc3149d36e9f50", "score": "0.56064713", "text": "public interface C3345c {\n /* renamed from: a */\n void mo12436a(C3626b bVar);\n\n /* renamed from: a */\n void mo12437a(C3626b bVar, int i);\n}", "title": "" }, { "docid": "fdd0fd3f339008a29b01218231ec7291", "score": "0.5603976", "text": "public interface C5501c {\n /* renamed from: a */\n C5266d mo4084a(C5274c c5274c);\n}", "title": "" }, { "docid": "371b566449dacc1205927ff54e118101", "score": "0.5578522", "text": "public interface C5486b {\n /* renamed from: a */\n void mo27583a();\n\n /* renamed from: a */\n void mo27584a(int i, int i2);\n\n /* renamed from: b */\n void mo27585b();\n }", "title": "" }, { "docid": "c57b8b0095a4b8649bc90a198fc51c81", "score": "0.5574464", "text": "public interface C47558ae<T> {\n /* renamed from: a */\n void mo22262a(C47556ac<T> acVar) throws Exception;\n}", "title": "" }, { "docid": "d24dca269126beeab1b405c54a651c4c", "score": "0.5572384", "text": "public interface AbstractC18381a {\n /* renamed from: a */\n String mo87990a();\n\n /* renamed from: b */\n String mo87991b();\n }", "title": "" }, { "docid": "536a39ede1bf88cc2431974b4d61315a", "score": "0.55638105", "text": "public interface C4847e {\n /* renamed from: a */\n void mo25854a();\n\n /* renamed from: a */\n void mo25855a(NativeUnifiedADData nativeUnifiedADData);\n}", "title": "" }, { "docid": "14ca2bf61553140c1c315dfe0b31ea2c", "score": "0.5551232", "text": "public DList<A> snoc(A a) {\n return this.append(DList.single(a));\n }", "title": "" }, { "docid": "503cd1b0fbffb96a1547b08f6156e4ea", "score": "0.55431056", "text": "public interface C0943a {\n /* renamed from: a */\n void mo1318a(boolean z);\n }", "title": "" }, { "docid": "1240e9d2d1eb64e116e4ebdd98754716", "score": "0.5540903", "text": "private interface C1201a {\n /* renamed from: a */\n void mo9526a(Bitmap bitmap);\n\n /* renamed from: b */\n void mo9527b(Bitmap bitmap);\n }", "title": "" }, { "docid": "98bfc4ed9600f9b6d1cec9e8cc1b640a", "score": "0.55355376", "text": "interface C2173a {\n /* renamed from: a */\n void mo5709a(Exception exc);\n }", "title": "" }, { "docid": "96c3ef5e9f67b168a400f78b649bd418", "score": "0.5516506", "text": "public interface C3542b {\n /* renamed from: a */\n void mo29148a(Uri uri);\n\n /* renamed from: a */\n void mo29149a(Exception exc);\n\n /* renamed from: a */\n void mo29150a(C3540a aVar);\n}", "title": "" }, { "docid": "bdfeaedd5a156c0c93b1a0ee46f5effd", "score": "0.5510298", "text": "public interface C0864a {\n /* renamed from: a */\n void mo3179a();\n\n /* renamed from: a */\n void mo3180a(int i, int i2, int i3, int i4, int i5);\n\n /* renamed from: a */\n void mo3181a(Bundle bundle);\n\n /* renamed from: a */\n void mo3182a(CharSequence charSequence);\n\n /* renamed from: a */\n void mo3183a(Object obj);\n\n /* renamed from: a */\n void mo3184a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo3185a(List<?> list);\n\n /* renamed from: b */\n void mo3186b(Object obj);\n }", "title": "" }, { "docid": "e0965120d5425015178bdd95c31bc19c", "score": "0.5509788", "text": "public interface C6409Ba {\n /* renamed from: a */\n String mo19440a();\n\n /* renamed from: b */\n InputStream mo19441b();\n\n /* renamed from: c */\n String[] mo19442c();\n}", "title": "" }, { "docid": "848b36c9750726cf44f002a0050551a8", "score": "0.55079395", "text": "public String a()\r\n/* 20: */ {\r\n/* 21:41 */ return this.a;\r\n/* 22: */ }", "title": "" }, { "docid": "f33c908778c05e932d989e8f568f2176", "score": "0.5502601", "text": "public a.a(String s)\n\t\t{\n\t\t\tb = s;\n\t\t// 7 15:aload_0 \n\t\t// 8 16:aload_1 \n\t\t// 9 17:putfield #34 <Field String b>\n\t\t// 10 20:return \n\t\t}", "title": "" }, { "docid": "b52d09efdd4ce6eb1dad730837f6f1e6", "score": "0.5491452", "text": "public interface C5477c {\n /* renamed from: a */\n long mo5485a();\n}", "title": "" }, { "docid": "f997a70aa54c6c3ef22350f1c36ae0d0", "score": "0.5488488", "text": "public interface C4035c {\n /* renamed from: a */\n void mo9609a();\n\n /* renamed from: b */\n void mo9610b();\n }", "title": "" }, { "docid": "12bff8e743eae9569c7ea3a934911b51", "score": "0.54823935", "text": "public void a(aqb ☃) {\r\n/* 377 */ super.a(☃);\r\n/* 378 */ ☃.a(this, 0, this.a);", "title": "" }, { "docid": "f239fcd2c02943886427d136d11d4aba", "score": "0.54792905", "text": "public interface C34896a {\n /* renamed from: b */\n void mo25333b(btd btd, long j, boolean z);\n }", "title": "" }, { "docid": "4898ce3bafa486c87e7dd17e23fe5b87", "score": "0.547422", "text": "public void a(String paramString)\r\n/* 25: */ {\r\n/* 26:45 */ this.a = paramString;\r\n/* 27: */ }", "title": "" }, { "docid": "52fac2a733eba8fbd98497626731ba84", "score": "0.54606336", "text": "@Override // com.zhihu.android.base.widget.adapter.ZHRecyclerViewAdapter.ViewHolder\n /* renamed from: a */\n public void mo65331a(Object obj) {\n super.mo65331a(obj);\n }", "title": "" }, { "docid": "c9c364e9da5bbd978ffbc3cef450faee", "score": "0.54497004", "text": "public interface C42474b {\n /* renamed from: a */\n void mo103899a();\n\n /* renamed from: a */\n void mo103900a(List<? extends MusicModel> list, boolean z);\n\n /* renamed from: b */\n void mo103901b();\n\n /* renamed from: c */\n void mo103902c();\n }", "title": "" }, { "docid": "6dd8205c8e90b35fe840b14c1ba7fb3c", "score": "0.54487973", "text": "public interface C2192a {\n /* renamed from: a */\n void mo1454a(ExoPlaybackException exoPlaybackException);\n\n /* renamed from: a */\n void mo1455a(C2276k c2276k);\n\n /* renamed from: a */\n void mo1456a(C2313q c2313q, Object obj);\n\n /* renamed from: a */\n void mo1457a(C2327i c2327i, C2158g c2158g);\n\n /* renamed from: a */\n void mo1459a(boolean z, int i);\n\n /* renamed from: b */\n void mo1460b(boolean z);\n\n /* renamed from: f */\n void mo1464f();\n }", "title": "" }, { "docid": "721bd156bf9352b9d3333601e9a8e702", "score": "0.54452944", "text": "public interface C0863c<T> {\n /* renamed from: a */\n void mo3532a(T t);\n }", "title": "" }, { "docid": "48f20e5a19f09457da5a8f5ac86ff2d5", "score": "0.5441441", "text": "interface C8178a extends C8268o {\n /* renamed from: b */\n long mo25237b(long j);\n\n /* renamed from: c */\n long mo25238c();\n }", "title": "" }, { "docid": "1254f809268b0834322217471f812b5d", "score": "0.5440176", "text": "@Override // g.p.q\n public a a() {\n return new a(this);\n }", "title": "" }, { "docid": "34aa1ed0e2a30abd9aed561592f58dad", "score": "0.54362345", "text": "public interface AbstractC1864c {\n /* renamed from: a */\n String mo9936a();\n\n /* renamed from: b */\n String mo9937b();\n}", "title": "" }, { "docid": "ad6933e6536769a5777e81cec564df6e", "score": "0.5434842", "text": "public interface C10830d {\n /* renamed from: a */\n void mo27897a(String str, String str2, String str3, String str4, int i, C10827a aVar);\n}", "title": "" }, { "docid": "9eee48625c9826b1b13669763f9ea689", "score": "0.542951", "text": "@Override\n\tpublic void transform(E a, E b) {\n\t\t\n\t}", "title": "" }, { "docid": "64fd7370f191393337b6125ac7aebe1e", "score": "0.54281354", "text": "public interface C3044e {\n /* renamed from: a */\n void mo27484a();\n\n /* renamed from: a */\n void mo27485a(Exception exc);\n}", "title": "" }, { "docid": "3abde54166ca2559199b00310d097520", "score": "0.54231817", "text": "interface C13496b {\n /* renamed from: a */\n void mo38875a();\n\n /* renamed from: a */\n boolean mo38876a(C13499b bVar);\n }", "title": "" }, { "docid": "339d3ec9adb742a91c58c76c3b3c5c72", "score": "0.5422737", "text": "public interface C37334b {\n /* renamed from: a */\n void mo93929a(int i, Exception exc);\n\n /* renamed from: a */\n void mo93930a(int i, Object obj);\n}", "title": "" }, { "docid": "3829dfa26e9ad8a1f009540a766fb7a5", "score": "0.54100937", "text": "public interface C6980m extends C4926d<C7575bv> {\n\n /* renamed from: com.tencent.mm.plugin.messenger.foundation.a.a.m$a */\n public interface C3466a {\n /* renamed from: a */\n void mo7925a(C7575bv c7575bv);\n }\n\n /* renamed from: RB */\n C7575bv mo15364RB(String str);\n\n /* renamed from: RC */\n int mo15365RC(String str);\n\n /* renamed from: a */\n void mo15366a(C3466a c3466a);\n\n /* renamed from: b */\n void mo15367b(C3466a c3466a);\n}", "title": "" }, { "docid": "bd33383d5ce48c9808a0bc8eac21886f", "score": "0.540851", "text": "public interface C13308h<T> {\n /* renamed from: a */\n boolean mo32572a(T t);\n}", "title": "" }, { "docid": "354dd313eaf263f434d8fc354c452c6e", "score": "0.54056334", "text": "public interface AbstractC1482g {\n /* renamed from: a */\n void mo8618a();\n\n /* renamed from: a */\n void mo8621a(Object obj);\n\n /* renamed from: b */\n void mo8623b();\n}", "title": "" }, { "docid": "070b1e8b1501eff333a90a38a5b1ab7a", "score": "0.5402275", "text": "public interface az {\n /* renamed from: b */\n <S extends ay> S mo7210b();\n}", "title": "" }, { "docid": "97388fa245eb0d20bc49f442dbffc54a", "score": "0.5401514", "text": "interface a {}", "title": "" }, { "docid": "0b4ce89269e2ad8882f55a31dbcaf0a8", "score": "0.54012275", "text": "public interface AbstractC0338a {\n /* renamed from: a */\n void mo432a(boolean z);\n }", "title": "" }, { "docid": "3742c014a629399c33d338909c33db19", "score": "0.539852", "text": "public interface C9198f {\n /* renamed from: a */\n void mo33331a(int i, boolean z);\n }", "title": "" }, { "docid": "9a1df8eae51cc35e3bbfd752cad2dff4", "score": "0.5396802", "text": "public interface C11330a {\n /* renamed from: a */\n void mo27331a(C11330a aVar);\n\n /* renamed from: a */\n void mo27328a(C11351d dVar);\n\n /* renamed from: a */\n void mo27329a(C11351d dVar, int i, int i2);\n\n /* renamed from: b */\n void mo27330b(C11351d dVar, int i, int i2);\n\n /* renamed from: d */\n C11351d mo27334d();\n}", "title": "" }, { "docid": "66cb273e3e32577a6ed22af969c95167", "score": "0.5392445", "text": "public interface C0307a {\n /* renamed from: a */\n boolean mo1686a();\n }", "title": "" }, { "docid": "bdd0f899262c0a0516dacdc4778d6c9f", "score": "0.539024", "text": "public void an() {\n\t}", "title": "" }, { "docid": "f0d972eac4c05b853b09e28bb88ea354", "score": "0.5388332", "text": "public interface C3869a<R> {\n /* renamed from: a */\n void mo11403a(R r);\n }", "title": "" }, { "docid": "fe9b1c6de04f9dfeb2feb71c423c3f20", "score": "0.53836817", "text": "public interface C7752a {\n /* renamed from: a */\n void mo37610a(AlbumFile albumFile);\n\n /* renamed from: d */\n void mo37616d();\n }", "title": "" }, { "docid": "e7c3444f9874b9e9ea028431b94b4b2f", "score": "0.53778785", "text": "public interface C27353a {\n /* renamed from: a */\n void mo70405a(EffectModel effectModel, int i, int i2);\n }", "title": "" }, { "docid": "c7393a80599379ec69a83c90e248ca98", "score": "0.53554374", "text": "public interface C1714a {\n /* renamed from: a */\n void mo7858a(JSONArray jSONArray);\n }", "title": "" }, { "docid": "0c55a3eb07a1801376bbce1ea89f73d8", "score": "0.5353947", "text": "public interface C32534a {\n /* renamed from: a */\n View mo83771a();\n\n /* renamed from: a */\n void mo83775a(C35611a aVar);\n\n /* renamed from: a */\n void mo83776a(View... viewArr);\n\n /* renamed from: b */\n void mo83778b();\n\n /* renamed from: c */\n void mo83780c();\n}", "title": "" }, { "docid": "e0c21f8dbd658485edf408f7f43ae1be", "score": "0.53412503", "text": "public void a() {}", "title": "" }, { "docid": "5a4469a990f50a390902631f5de02b8c", "score": "0.5335084", "text": "public interface C0039a<T> {\n /* renamed from: a */\n Iterator<T> mo6a();\n}", "title": "" }, { "docid": "b4e09243e18924a172bc57104f67a4bf", "score": "0.5329545", "text": "interface AbstractC3012f {\n /* renamed from: a */\n void mo22940a(Map<String, String> map);\n}", "title": "" }, { "docid": "256aa7db66a5055052e976f1a98b203f", "score": "0.5327647", "text": "public interface C41033be {\n /* renamed from: a */\n void mo65113a(C44499az c44499az);\n\n /* renamed from: a */\n boolean mo65114a(C44498ay c44498ay);\n\n /* renamed from: a */\n boolean mo65115a(C46770bd c46770bd);\n}", "title": "" }, { "docid": "a4704ce7813421e5801f4faa8aaff590", "score": "0.5322803", "text": "static Vec aTOp(Vec a) {\n double px = -Math.sin(a.v[1]) / Math.abs(a.v[2]);\n double py = Math.cos(a.v[1]) / Math.abs(a.v[2]);\n double pz = a.v[4] / Math.abs(a.v[2]);\n return new Vec(px, py, pz);\n }", "title": "" }, { "docid": "9538184decb4a0ff27a4015b7f6ba0ef", "score": "0.53173286", "text": "public void prefixPhenotype(String a) {\n for (int i = 0; i < numPhenotype; i++) {\n renamePhenotype(phenotypeName.get(i).str(), a + phenotypeName.get(i).str());\n }\n }", "title": "" } ]
1fa834c9d673dc94b222f46fa8f6dd81
Removes a property and its value from project configuration.
[ { "docid": "8681bd6f8a889dbef0e4d6bb4ff478be", "score": "0.6156988", "text": "void removeSetting(String value);", "title": "" } ]
[ { "docid": "98c76bf43d099c3a877e166da128920f", "score": "0.69349045", "text": "default void deleteProperty(RepoPath repoPath, String property) {\n }", "title": "" }, { "docid": "d9eeab49b94fae3d303ad8a67cb94b69", "score": "0.6864473", "text": "public void deleteProperty(property pr) {\r\n\t\trepos.delete(pr);\r\n\t}", "title": "" }, { "docid": "1ddd92d90975ed5238f64407f61d2bbc", "score": "0.67938334", "text": "public void removeProperty(String alfrescoPath, String fullyQualifiedName);", "title": "" }, { "docid": "2295d2d5b6f09e66e97033f6b5c3b529", "score": "0.67332685", "text": "@Override\r\n\tpublic BidiPropertyConfig removePropertyConfigByName(final String propertyId)\r\n\t{\n\t\treturn getProperties().remove(propertyId);\r\n\t}", "title": "" }, { "docid": "1bda7e8efd81b2be23efe2a0b39bc7c4", "score": "0.65812355", "text": "public void removeProperty(String name) {\n\t\tthis.properties.remove(name);\n\t}", "title": "" }, { "docid": "afa1b76e8b48a153a967ba0aa29138af", "score": "0.6569622", "text": "public void removeProperty(String propertyName);", "title": "" }, { "docid": "a454b904f8c5cc98cb652a57d26cd70e", "score": "0.6397974", "text": "public void removeProperty(String name) {\n deletedProperties.add(name);\n }", "title": "" }, { "docid": "57d873c5b1da0b24445f15475b0552c3", "score": "0.6392784", "text": "public void removeProperty(String key) throws ShellException;", "title": "" }, { "docid": "44d8a6e99494e39730b28f06a4411059", "score": "0.6332779", "text": "public void deleteProperty(Property property) {\r\n allProperties.remove(property);\r\n }", "title": "" }, { "docid": "881fe0c7962ce5e1cbfe0fdb7faa3fe1", "score": "0.6296897", "text": "public void rmProperty(String name)\n\t{\n\t\tPropertiesUtil.rmIgnoreCase(props, name);\n\t}", "title": "" }, { "docid": "cfcbe8f2ae97976c972deeb4ec7f3a61", "score": "0.61026007", "text": "void removeProperty(Object key);", "title": "" }, { "docid": "cac33ae367393219e813b260f21974bb", "score": "0.60794127", "text": "public void deleteProperty(final DccProperty dccProperty);", "title": "" }, { "docid": "8b36c4eb01d0a648c4855ae3452f6f41", "score": "0.60549605", "text": "boolean clearProperty(String tcProperty);", "title": "" }, { "docid": "a68c62f29f3a1a2ed8cefee18d64edfd", "score": "0.59801865", "text": "public boolean removeProperty(Property prop)\n {\n if(property.contains(prop)) //if the property is on the list\n {\n removeAssets(prop.getWorth());\n this.property.remove(prop); //remove it from the list\n return true; //say it worked\n }\n return false; //otherwise it didn't\n }", "title": "" }, { "docid": "0160a080fd2653f3e018f62654bf460b", "score": "0.59120554", "text": "public static void removeValue(String name) {\n configObject.remove(name);\r\n NetworkTableInstance.getDefault().getTable(\"Config\").delete(name);\r\n }", "title": "" }, { "docid": "b15cda93bdf197c10caff40a030e5d52", "score": "0.59061193", "text": "public void removeAllProperty()\n {\n _propertyList.removeAllElements();\n }", "title": "" }, { "docid": "29d23fecdc60b27da59b1a050259081e", "score": "0.5865566", "text": "public de.tif.jacob.core.definition.impl.jad.castor.CastorProperty removeProperty(int index)\n {\n java.lang.Object obj = _propertyList.elementAt(index);\n _propertyList.removeElementAt(index);\n return (de.tif.jacob.core.definition.impl.jad.castor.CastorProperty) obj;\n }", "title": "" }, { "docid": "fa9a91b0b159282c3a21bd261c25aa6c", "score": "0.58652365", "text": "public void removeDatastoreProperties()\n {\n Iterator<String> propKeyIter = properties.keySet().iterator();\n while (propKeyIter.hasNext())\n {\n String name = propKeyIter.next();\n if (isPropertyForDatastore(name))\n {\n propKeyIter.remove();\n }\n }\n }", "title": "" }, { "docid": "99658159ffaebdd207a3af2cbbe53e95", "score": "0.5849798", "text": "@Override\n public boolean clearProperty(String tcProperty)\n {\n return getApplicationSettings().clearProperty(tcProperty);\n }", "title": "" }, { "docid": "33e005f8981e57f5446dd203d4118054", "score": "0.57830554", "text": "public <X> X remove(String property) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "fd2476755de893474fb547bd962ab66c", "score": "0.5746732", "text": "private void getConfigProperties(String property, Map<String, Integer> configProperties) {\n for (String propertyName : config.getPropertyNames()) {\n if (propertyName.startsWith(property)) {\n Integer value = config.getValue(propertyName, Integer.class);\n String strippedProperty = propertyName.replace(property, \"\");\n configProperties.put(strippedProperty, value);\n }\n }\n }", "title": "" }, { "docid": "401313b7c39b6de1f18fb0550601b5e2", "score": "0.56939125", "text": "private static void clearRemovePropertyFile() {\n String fn = \".hdfview\" + VERSION;\n String uh = System.getProperty(\"user.home\") + File.separator + fn;\n String ud = System.getProperty(\"user.dir\") + File.separator + fn;\n\n File prop_file = new File(uh);\n if (prop_file.exists()) {\n prop_file.delete();\n }\n else {\n prop_file = new File(ud);\n if (prop_file.exists()) {\n prop_file.delete();\n }\n }\n }", "title": "" }, { "docid": "fa33ccacf1cda77c883e01e0a628c5c0", "score": "0.5692027", "text": "protected void removeProperty(String propertyName, InstanceProperties properties)\n {\n if (properties != null)\n {\n Map<String, InstancePropertyValue> instancePropertyValueMap = properties.getInstanceProperties();\n\n if (instancePropertyValueMap != null)\n {\n instancePropertyValueMap.remove(propertyName);\n properties.setInstanceProperties(instancePropertyValueMap);\n }\n }\n }", "title": "" }, { "docid": "9ccf321d35bcadaa4aed1934c86db25a", "score": "0.56905764", "text": "public <X> X remove(String property)\r\n\t{\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "bcaf0e9211f5c2f5478659c3fa667256", "score": "0.56835055", "text": "@DELETE\n public void deleteSystemProperty(@PathParam(SYSTEM_PROPERTY) final Integer propertyId)\n {\n SystemProperty property = service.getSystemProperty(propertyId);\n\n if (property == null)\n {\n throw new NotFoundException(APIError.NON_EXISTENT_SYSTEM_PROPERTY);\n }\n\n service.removeSystemProperty(propertyId);\n }", "title": "" }, { "docid": "d083f4851d610d5efd96643068bd205e", "score": "0.56427306", "text": "public Builder removeProperty(int index) {\n if (propertyBuilder_ == null) {\n ensurePropertyIsMutable();\n property_.remove(index);\n onChanged();\n } else {\n propertyBuilder_.remove(index);\n }\n return this;\n }", "title": "" }, { "docid": "4c3d9c099cdcb8eea14df6b65301affa", "score": "0.563675", "text": "public void removeProperty(String key) {\n httpCarbonMessage.removeProperty(key);\n }", "title": "" }, { "docid": "f7447c8862344d4654385fbe1775f043", "score": "0.5599722", "text": "@Transactional\n public void deletePropertyOrValue(@Nonnull final String propertyName,\n @Nullable final String propertyValue) throws ResourceNotFoundException {\n try {\n\n if (Strings.isNullOrEmpty(propertyValue))\n if (!propertyDAO.isPropertyUsed(propertyName))\n deleteProperty(propertyName);\n else\n log.warn(\"Not removing property: \" + propertyName + \" as still used in assays or samples\");\n else {\n if (!propertyValueDAO.isPropertyValueUsed(propertyName, propertyValue)) {\n Property property = propertyDAO.getByName(propertyName);\n PropertyValue propValue = propertyValueDAO.find(property, propertyValue);\n propertyDAO.delete(property, propValue);\n } else {\n log.warn(\"Not removing property: \" + propertyName +\n \" and propertyValue: \" + propertyValue + \" as still used in assays or samples\");\n }\n }\n } catch (RecordNotFoundException e) {\n throw new ResourceNotFoundException(e);\n }\n }", "title": "" }, { "docid": "dc8ef26bedb48978b5211aba49a5e6d8", "score": "0.558066", "text": "void removePropertyFromPartition(final int stepId, final int partitionId, final String propertyName);", "title": "" }, { "docid": "957e59a62ab506ba0530b860068ba374", "score": "0.55777967", "text": "public static void clearProperty(String key)\n {\n ri.clearProperty( key );\n }", "title": "" }, { "docid": "6b895cbc1845331c07e6063ea53a2ecb", "score": "0.55629295", "text": "public void unsubscribe(String property);", "title": "" }, { "docid": "87208f1f01abfdec203dc7f38889c081", "score": "0.5552446", "text": "public void removeProperty(String key) {\n propertyBag.remove(key);\n }", "title": "" }, { "docid": "aaca1258419a4b5dfd11b169ee5eaa17", "score": "0.5544229", "text": "public static void deletePropertyFile(String sPropertyFile)\n throws PropertyAccessException\n {\n String sPropFile = PropertyAccessor.getPropertyFileLocation() + sPropertyFile + \".properties\";\n File fPropFile = new File(sPropFile);\n\n try\n {\n if (fPropFile.exists())\n {\n fPropFile.delete();\n }\n }\n catch (Exception e)\n {\n throw new PropertyAccessException(\"Failed to delete file: \" + sPropFile +\n \". Error: \" + e.getMessage(), e);\n }\n\n }", "title": "" }, { "docid": "b3e45c94feda503f471e9652f0a9f86c", "score": "0.55180067", "text": "public void removeProperty(String key) {\n\t\tthrow new UnsupportedOperationException();\t\n\t}", "title": "" }, { "docid": "8035b08c33a9f7241d576c9726d854bd", "score": "0.5497205", "text": "public Species removeProperty(String name) {\n\t\tif (properties != null) {\n\t\t\tproperties.remove(name);\n\t\t}\n\n\t\treturn this;\n\t}", "title": "" }, { "docid": "31f4ad79877e21426f3d607415d1f2bb", "score": "0.5492856", "text": "@Override\n public final String removeProperty(final String key) {\n Validators.nonEmpty(key);\n // seems like an API flaw, cast looks ugly but should work in any case\n return (String) props.remove(key);\n }", "title": "" }, { "docid": "892f96f1a2defe5116ccbcac7064dc61", "score": "0.5444091", "text": "private void deleteProjectProperties(Long projectId, Set propertyIdSet, Connection conn)\r\n throws PersistenceException {\r\n\r\n // check if the property id set is empty\r\n // do nothing if property id set is empty\r\n if (!propertyIdSet.isEmpty()) {\r\n\r\n // build the id list string\r\n StringBuffer idListBuffer = new StringBuffer();\r\n idListBuffer.append('(');\r\n int idx = 0;\r\n for (Iterator it = propertyIdSet.iterator(); it.hasNext();) {\r\n if (idx++ != 0) {\r\n idListBuffer.append(',');\r\n }\r\n idListBuffer.append(it.next());\r\n }\r\n idListBuffer.append(')');\r\n\r\n // delete the properties whose id is in the set\r\n Helper.doDMLQuery(conn, DELETE_PROJECT_PROPERTIES_SQL + idListBuffer.toString(),\r\n new Object[] {projectId});\r\n }\r\n }", "title": "" }, { "docid": "500e8dca238ef2c6365bfd67095c4529", "score": "0.54375935", "text": "public void remove(String name)\n {\n props.remove(name);\n }", "title": "" }, { "docid": "19c6c0a311cd803078dfdc0fc0bda54c", "score": "0.5422632", "text": "public boolean removeProperty(Property property) {\n return this.properties.remove(property);\n }", "title": "" }, { "docid": "d87d136511e31b5fb00ac1ece15488c0", "score": "0.54173166", "text": "public static void removeLocalProperties(int runId) throws FinderException, RemoveException {\n\t\t// Collect the PropertyEntities matching the criteria of user and run\n\t\tCollection propPks = getHome().findByRun(runId);\n\n\t\t// delete each of the properties\n\t\tIterator iter = propPks.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tPropertyEntity propEntity = (PropertyEntity) iter.next();\n\t\t\tpropEntity.remove();\n\t\t}\n\t}", "title": "" }, { "docid": "97754cb09f51a29e87558f08d0196976", "score": "0.53764683", "text": "void deleteSetting(String profileName) {\n\t\t\n\t}", "title": "" }, { "docid": "5888f2b8ac6d6aadb0a5facfa7078684", "score": "0.5338705", "text": "private void removeProperties(Node node) throws RepositoryException {\n PropertyIterator properties = node.getProperties();\n while (properties.hasNext()) {\n Property property = properties.nextProperty();\n if (property.getDefinition().isProtected() || property.getDefinition().isMandatory()) {\n continue;\n }\n try {\n property.remove();\n }\n catch (ConstraintViolationException e) {\n if (log.isDebugEnabled()) {\n log.debug(\"Property \" + property.getName() + \" is a reserved property\");\n }\n }\n }\n }", "title": "" }, { "docid": "0572fa2d0a1877c63d051317351453f3", "score": "0.53103787", "text": "private Value weakDeleteProperty(ObjectLabel objlabel, Str propertystr) {\n // 8.6.2.5 [[Delete]] (P)\n // When the [[Delete]] method of O is called with property name P, the following steps are taken:\n // 1. If O doesn't have a property with name P, return true.\n // 2. If the property has the DontDelete attribute, return false.\n // 3. Remove the property with name P from O.\n // 4. Return true.\n Value res = Value.makeNone();\n if (propertystr.isMaybeSingleStr())\n res = res.joinBool(weakDeleteProperty(PropertyReference.makeOrdinaryPropertyReference(objlabel, propertystr.getStr())));\n else {\n if (propertystr.isMaybeStrSomeUInt())\n res = res.joinBool(weakDeleteProperty(PropertyReference.makeDefaultArrayPropertyReference(objlabel)));\n if (propertystr.isMaybeStrSomeNonUInt())\n res = res.joinBool(weakDeleteProperty(PropertyReference.makeDefaultNonArrayPropertyReference(objlabel)));\n // the calls to UnknownValueResolver above have materialized all relevant properties\n for (String propertyname : newSet(c.getState().getObject(objlabel, false).getPropertyNames()))\n if (propertystr.isMaybeStr(propertyname))\n res = res.joinBool(weakDeleteProperty(PropertyReference.makeOrdinaryPropertyReference(objlabel, propertyname)));\n }\n return res;\n }", "title": "" }, { "docid": "b23a1fefabb690b13e53548b131a9195", "score": "0.5300117", "text": "public String remove(StreamProperty streamProperty)\n\t{\n\t\treturn (String) this.props.remove(streamProperty);\n\t}", "title": "" }, { "docid": "e4d0c374ba6c2c003b005d9eae5fa93b", "score": "0.5297206", "text": "public void clearProperty(String key) {\n props.remove(this.prefix + key);\n }", "title": "" }, { "docid": "758f663cb2a7fdcc805a0364e12bd5bc", "score": "0.5290278", "text": "public void removeByPROJECT_ID(long PROJECT_ID);", "title": "" }, { "docid": "269fc9b10a15d587b36f7e1a42ccf6c1", "score": "0.52769023", "text": "public void removeProperty(QualifiedName propertyName) throws DAVException {\n Collection propertyNames = new Vector(1);\n propertyNames.add(propertyName);\n removeProperties(propertyNames);\n }", "title": "" }, { "docid": "7c36507b610271d658506d03b967b1dd", "score": "0.52710974", "text": "public static void delete_property(MOOObjRef objRef, MOOString propName) throws MOOException\r\n {\r\n MOOObject obj = MOODbLogic.get(objRef);\r\n if (obj == null)\r\n throw new MOOException(\"Invalid arg=\"+objRef);\r\n if (!obj.getProperties().containsKey(propName.getValue()) || !obj.getProperties().get(propName.getValue()).isDefinition())\r\n throw new MOOException(\"Property \"+propName.getValue()+\" is not defined on \"+objRef);\r\n MOOObject programmer = MOOProgrammerLogic.getProgrammer();\r\n if (!programmer.isWizard() && !obj.isWrite() && !obj.getOwner().equals(programmer))\r\n throw new MOOException(programmer+\" has no write permission on obj=\"+objRef);\r\n removeProperty(obj, propName.getValue());\r\n }", "title": "" }, { "docid": "0c2be23a7d271b57daad8808f4dce181", "score": "0.52443284", "text": "public void remove(String propertyName) {\n Preconditions.checkNotNull(propertyName);\n if (properties.containsKey(propertyName)) {\n properties.remove(propertyName);\n } else if (references.containsKey(propertyName)) {\n references.remove(propertyName);\n }\n }", "title": "" }, { "docid": "8a596cab3782e98096a0b01fde3a88fb", "score": "0.5238833", "text": "private void deleteProperty(String valueID, Long userID) throws JspTagException\n\t{\n\t // get instance of Property to delete\n\t Property property = new Property(new Long(valueID), userID);\n\t try\n\t {\n \t // delete the property\n \t property.delete();\n }\n catch (RemoveException e)\n {\n throw new JspTagException(\"Could not delete Property, DeleteException: \" + e.getMessage());\n } \n }", "title": "" }, { "docid": "d06706275deeae73d29173a72768c332", "score": "0.5238569", "text": "public void removeRepositoryURL()\r\n {\r\n getSemanticObject().removeProperty(swp_repositoryURLRef);\r\n }", "title": "" }, { "docid": "6ecf8bdd13853c36a5e9c9d4fee51b2c", "score": "0.52328485", "text": "void clearProperties() {\n properties.clear();\n }", "title": "" }, { "docid": "19529d20491caaf2d076580d39742464", "score": "0.52209127", "text": "public void clearProperty() {\n\t\tsetPurchasable(true);\n\t\tsetLevel(0);\n\t}", "title": "" }, { "docid": "24a5d2f22ece9f6669a87454cd1a7fe4", "score": "0.5219184", "text": "public <T> void removeSetting(Key key) {\n\t\tsettings.removeSetting(key);\n\t}", "title": "" }, { "docid": "3afa4b5bc8a2bd418ea43dcb5b2d7c8a", "score": "0.52106124", "text": "public void _removePropertiesChangeListener() {\n requiredMethod(\"firePropertiesChangeEvent()\");\n boolean bResult = true;\n\n oObj.removePropertiesChangeListener(PClistener);\n\n tRes.tested(\"removePropertiesChangeListener()\", bResult);\n }", "title": "" }, { "docid": "2387be92972c0c586b2c9485ad921835", "score": "0.52102804", "text": "public Builder removeProperties(int index) {\n if (propertiesBuilder_ == null) {\n ensurePropertiesIsMutable();\n properties_.remove(index);\n onChanged();\n } else {\n propertiesBuilder_.remove(index);\n }\n return this;\n }", "title": "" }, { "docid": "2387be92972c0c586b2c9485ad921835", "score": "0.52102804", "text": "public Builder removeProperties(int index) {\n if (propertiesBuilder_ == null) {\n ensurePropertiesIsMutable();\n properties_.remove(index);\n onChanged();\n } else {\n propertiesBuilder_.remove(index);\n }\n return this;\n }", "title": "" }, { "docid": "d4ce0da71408f19d5a74c1cef8cc65b8", "score": "0.5210062", "text": "public void removeParam(String name) {\n if (config != null) {\n config.remove(name);\n }\n }", "title": "" }, { "docid": "780917154d13f1cc8cb2e8a60e6354f1", "score": "0.5206227", "text": "void removePropertyChangeListener(String name, PropertyChangeListener l);", "title": "" }, { "docid": "74f4c0a1d921a2472315962128400ab4", "score": "0.5198983", "text": "public void removeFromProjectId(final CybageProject value)\n\t{\n\t\tremoveFromProjectId( getSession().getSessionContext(), value );\n\t}", "title": "" }, { "docid": "3da7850b2fc0e0db10fa5bb96f221cdd", "score": "0.51931006", "text": "@Override\n\tpublic void unconfigure(ProjectConfigurationRequest request, IProgressMonitor monitor) throws CoreException {\n\t\tsuper.unconfigure(request, monitor);\n\t}", "title": "" }, { "docid": "e8738f8bfe6726d9675038f620bbd8b6", "score": "0.519272", "text": "public void removeScopeProperty(String name) {\r\n\t\tScopeProperty propertyToRemove = null;\r\n\t\tfor(ScopeProperty property : this.getScopeProperties()) {\r\n\t\t\tif(property.getName().equals(name)) {\r\n\t\t\t\t// replace\r\n\t\t\t\tpropertyToRemove = property;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// else add\r\n\t\tif(propertyToRemove != null) {\r\n\t\t\tthis.getScopeProperties().remove(propertyToRemove);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "4cd5956e9e5909602af5b0f0182e9d31", "score": "0.5187049", "text": "public void removeValue(String path) {\n this.values.remove(path);\n }", "title": "" }, { "docid": "68f22bc81eead89483cfbe85ce54999d", "score": "0.5177328", "text": "public abstract void removePropertyChangeListener(PropertyChangeListener pcl);", "title": "" }, { "docid": "464fdb340a7e182f2853a453c040389b", "score": "0.5152719", "text": "protected void uninstallProjectListeners(Project p) {\n p.removePropertyChangeListener(projectListener);\n }", "title": "" }, { "docid": "6d74872fa91045dafc2371858d99b1ae", "score": "0.51452196", "text": "private Value strongDeleteProperty(ObjectLabel objlabel, String propertyname) {\n // 8.6.2.5 [[Delete]] (P)\n // When the [[Delete]] method of O is called with property name P, the following steps are taken:\n // 1. If O doesn't have a property with name P, return true.\n // 2. If the property has the DontDelete attribute, return false.\n // 3. Remove the property with name P from O.\n // 4. Return true.\n Value res;\n Value v = UnknownValueResolver.getProperty(objlabel, propertyname, c.getState(), true);\n if (!v.isMaybePresent()) // property is definitely absent already\n res = Value.makeBool(true);\n else if (!v.isMaybeAbsent() && v.isDontDelete()) // definitely present already, definitely can't delete\n res = Value.makeBool(false);\n else {\n Value newval;\n if (v.isNotDontDelete()) { // maybe present already, definitely can delete\n newval = Value.makeAbsentModified(); // FIXME: deleting magic properties? (also other places...)\n res = Value.makeBool(true);\n } else { // don't know, maybe delete\n newval = v.joinAbsentModified();\n res = Value.makeAnyBool();\n }\n Obj obj = c.getState().getObject(objlabel, true);\n obj.setProperty(propertyname, newval);\n }\n return res;\n }", "title": "" }, { "docid": "b8df7f1110e0642de516546ae27151b0", "score": "0.5144756", "text": "synchronized void clearDesktopProperty(String name) {\n desktopProperties.remove(name);\n }", "title": "" }, { "docid": "01b3772364cfb6952fc48599f23c302f", "score": "0.51429594", "text": "public void remove (String config) throws DictionaryException;", "title": "" }, { "docid": "bac7179ade5f8b21aca6f941dfa7f43b", "score": "0.51362276", "text": "void removePropertyChangeListener(PropertyChangeListener l);", "title": "" }, { "docid": "84f819e20357096e8562444f20b84f3f", "score": "0.5112905", "text": "public boolean deleteProperty(byte[] key) {\n ByteArray k = new ByteArray(key);\n byte[] v = this.properties.get(k);\n if (v == null) {\n return false;\n }\n // Old property exist, we delete it.\n String p = KVBase64Util.kvToBase64(key, v);\n this.zkConn.deleteNode(basePath + \"/\" + p);\n this.properties.remove(k);\n return true;\n }", "title": "" }, { "docid": "e6b8f38bdc447960d7b6106721f269f9", "score": "0.5106225", "text": "public static synchronized void removeKey (String key)\n {\n getInstance()._properties.remove(key);\n }", "title": "" }, { "docid": "0310ea10adbcf67f8679a9a83895f8c9", "score": "0.5098601", "text": "public static String removeProject() {\n return QueryData.getBaseURL() + \"/makers/\" + QueryData.getMakerID() + \"/projects/\" + QueryData.getProjectID();\n }", "title": "" }, { "docid": "8f18f16c9b2e61ab2a5ce03934708403", "score": "0.5093833", "text": "public static void deleteConfig(boolean all) {\n\t\tif (all) {\n\t\t\tlog(\"Deleting Configuration\");\n\t\t\tString[] delConfig = { \"rm\", \"-rf\", UtilitiesPro_DIR };\n\t\t\tExecEngine.exec(delConfig);\n\t\t} else {\n\t\t\tString[] delConfig = { \"rm\", UtilitiesPro_DIR + \"/config.properties\" };\n\t\t\tExecEngine.exec(delConfig);\n\t\t}\n\t}", "title": "" }, { "docid": "7a753d2729213b2a80b4eb108b6dd7db", "score": "0.504889", "text": "<PropertyElementType, ReferenceType> ReferencedValue<ReferenceType, PropertyElementType> strip(StripableProperty<ModelType, ?, PropertyElementType, ReferenceType> property);", "title": "" }, { "docid": "933fbcdc7a597d5f0fe0bb37e7aa3fa2", "score": "0.50386107", "text": "public Builder removeProjectConfigurationData(int index) {\n if (projectConfigurationDataBuilder_ == null) {\n ensureProjectConfigurationDataIsMutable();\n projectConfigurationData_.remove(index);\n onChanged();\n } else {\n projectConfigurationDataBuilder_.remove(index);\n }\n return this;\n }", "title": "" }, { "docid": "4cf42d92b3968938f47f61a49a7a67a5", "score": "0.5032273", "text": "@Transactional\n private void deleteProperty(final String propertyName) throws ResourceNotFoundException {\n try {\n Property property = propertyDAO.getByName(propertyName);\n propertyDAO.delete(property);\n } catch (RecordNotFoundException e) {\n throw new ResourceNotFoundException(e);\n }\n }", "title": "" }, { "docid": "e99b2af44ef82eabfa3647578bc85347", "score": "0.5007105", "text": "public void removePropertyChangeListener(PropertyChangeListener pcl) {\n support.removePropertyChangeListener(pcl);\n }", "title": "" }, { "docid": "169e8a73da81f5293a491dd17d204c99", "score": "0.5007096", "text": "public void removePropertyChangeListener(PropertyChangeListener listener);", "title": "" }, { "docid": "ee8ecc8ae3df05147b4cf5845e0f1d3e", "score": "0.5004089", "text": "public String removeValue(String sectionName, String key);", "title": "" }, { "docid": "a43bbe8d1e5c0d1aece1126c7f2b49a9", "score": "0.50000596", "text": "public void delete(String key) {\n config.remove(key);\n }", "title": "" }, { "docid": "cb1c71f876f90782a28aa97c1b237e68", "score": "0.49890265", "text": "public void delete(final String propName, final Serializable propValue) {\r\n\t\tAssert.hasText(propName);\r\n\t\tQuery<T> query = createQuery().field(propName).equal(propValue);\r\n\t\tAssert.notNull(query);\r\n\t\tmorphiaDao.deleteByQuery(query);\r\n\t}", "title": "" }, { "docid": "2744adcc994bd2aebd3d5e1eaa8abcde", "score": "0.49877107", "text": "@Override\n\tpublic void removeDevelopperFromProject(long idProject, String idDevelopper) {\n\t\t\n\t}", "title": "" }, { "docid": "aa100b98d2598389d60f34edd8a8140b", "score": "0.4983682", "text": "public boolean deleteProperty(String key) {\n return deleteProperty(StringUtil.strToUtf8Byte(key));\n }", "title": "" }, { "docid": "388779084a6131d89500078c15e15dbc", "score": "0.49803248", "text": "@Override\n\tpublic void removeProject(long idProject) {\n\t\t\n\t}", "title": "" }, { "docid": "9c903afc11a4d2e24e2dca3316ad4a15", "score": "0.4955343", "text": "public static void removeLocalProperties(String userId, int runId) throws FinderException, RemoveException {\n\t\t// Collect the PropertyEntities matching the criteria of user and run\n\t\tCollection propPks = getHome().findByUserRun(userId, runId);\n\n\t\t// delete each of the properties\n\t\tIterator iter = propPks.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tPropertyEntity propEntity = (PropertyEntity) iter.next();\n\t\t\tpropEntity.remove();\n\t\t}\n\t}", "title": "" }, { "docid": "4ed5b418ebe14924e84d6b6e419d8e2b", "score": "0.49467033", "text": "public void delete(Long id) {\n log.debug(\"Request to delete Property : {}\", id);\n propertyRepository.deleteById(id);\n }", "title": "" }, { "docid": "7179607911cf6a6b055ea73ebdc06b0a", "score": "0.49403524", "text": "@Transactional\n public void removeUnusedPropertyValues() {\n propertyValueDAO.removeUnusedPropertyValues();\n }", "title": "" }, { "docid": "68d106c7cc2af2dd61df763ece721341", "score": "0.49363205", "text": "@Override\n public boolean removeBooleanProperty(String sourceName,\n String propertyName,\n InstanceProperties properties,\n String methodName)\n {\n boolean retrievedProperty = false;\n\n if (properties != null)\n {\n retrievedProperty = this.getBooleanProperty(sourceName, propertyName, properties, methodName);\n\n this.removeProperty(propertyName, properties);\n log.debug(\"Properties left: \" + properties);\n }\n\n log.debug(\"Retrieved \" + propertyName + \" property: \" + retrievedProperty);\n return retrievedProperty;\n }", "title": "" }, { "docid": "3b8b44a54b89dd1ffaaf809428dbf05f", "score": "0.4910055", "text": "public void unassignEmployee(Project project);", "title": "" }, { "docid": "4208089048b418770aab12d8dea5cb32", "score": "0.48986283", "text": "public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener listener) {\r\n\tgetPropertyChange().removePropertyChangeListener(listener);\r\n}", "title": "" }, { "docid": "4208089048b418770aab12d8dea5cb32", "score": "0.48986283", "text": "public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener listener) {\r\n\tgetPropertyChange().removePropertyChangeListener(listener);\r\n}", "title": "" }, { "docid": "71f4d97f1c462fcb7a236a52f34342de", "score": "0.48922732", "text": "public void removeAllProperties() {\n mProperties.clear();\n }", "title": "" }, { "docid": "3d1229f09f9247b31a74d34c55e364ff", "score": "0.48773766", "text": "void onTaskConfigRemove(String taskId);", "title": "" }, { "docid": "7e990ea686669aa88e6638aa1b1c623e", "score": "0.48712215", "text": "public final void removePropertyChangeListener(String propertyName, PropertyChangeListener listener) {\n/* 266 */ this.pcs.removePropertyChangeListener(propertyName, listener);\n/* */ }", "title": "" }, { "docid": "e8d2e9acb07951b3fc11e30329c2bb40", "score": "0.4870299", "text": "public void unsetLevelOfConf()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(LEVELOFCONF$20);\n }\n }", "title": "" }, { "docid": "29a295b4a73a507b38da4abad52811bd", "score": "0.4868077", "text": "public static boolean delCpeProperty(String key)\n {\n try\n {\n PropsServiceClient.delCpeProperty(key);\n return true;\n }\n catch (IPCException ex)\n {\n logger.warn(\"cpeProps: error deleting CPE property \"+key, ex);\n }\n\n return false;\n }", "title": "" }, { "docid": "e7775a17ee632fd8c989113515b2e6dd", "score": "0.4867391", "text": "@Override\n public Object removeFromEnvironment(String propName) throws NamingException {\n return null;\n }", "title": "" }, { "docid": "ebc11dab4d3bed96b50b0e8b9c225d12", "score": "0.48637342", "text": "public static void removeUolProperties(int uolId) throws FinderException, RemoveException {\n\t\t// Collect the PropertyEntities matching the criteria of user and run\n\t\tCollection propPks = getHome().findByUol(uolId);\n\n\t\t// delete each of the properties\n\t\tIterator iter = propPks.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tPropertyEntity propEntity = (PropertyEntity) iter.next();\n\t\t\tpropEntity.remove();\n\t\t}\n\t}", "title": "" }, { "docid": "2eec0a37a383871dfb96dde811a92cf5", "score": "0.4862414", "text": "public void clearProperties() {\n\t\tthrow new UnsupportedOperationException();\t\n\t}", "title": "" }, { "docid": "38f18a351491fc9f066e17e1cc8a8490", "score": "0.4849899", "text": "@Override\r\n public void projectRemoved(String projectName) {\n }", "title": "" } ]
775f0fed84dcb14d8137da539f46a1b9
/ for a configured while, wait on take, if still does not get register listener and move out
[ { "docid": "00e58b68d4a209e18c83e664521d4e19", "score": "0.0", "text": "public synchronized T take(){\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "165119d45a4288b75390e2da65994769", "score": "0.6340042", "text": "private void waitAndRecognizeAgain(){\n Handler handler = new Handler();\n\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n ON_GOING_FACE = false;\n if(mRetryRemained>0){\n takeSnapAndRecognize();\n }\n }\n }, mWaitingSeconds * SECOND_IN_MILLIES);\n }", "title": "" }, { "docid": "e88f0517d702468e4ba2ea3204bac20d", "score": "0.6264413", "text": "public void waitListeners();", "title": "" }, { "docid": "705f52f7b57dbb9e26fedfe048d2b6be", "score": "0.62486786", "text": "private void waitForSomeTime() {\n LOGGER.info(\"Going to Wait...\");\n ActorSystem system = getContext().system();\n //Schedule a message to find work after a waiting time.\n system.scheduler().scheduleOnce(Duration.ofSeconds(this.pollingInterval), () ->\n getSelf().tell(new MonitoringProtocol.FindWork(), getSelf()), system.dispatcher());\n }", "title": "" }, { "docid": "398c308e269e579a7dc25bf2e59d900c", "score": "0.6183157", "text": "@Override\n public void run() {\n while(!stop){\n try{\n listener.run();\n Thread.sleep(tenSecondsInMili);\n }\n catch (Exception e){\n Log.d(\"DisplayDevices\",\"Error during refresh operation\");\n }\n }\n }", "title": "" }, { "docid": "e3c49cdf965a136367009ed3378f87ba", "score": "0.6172416", "text": "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(interval);\n\t\t\t\tWelcomServer.clientRoom.scanTimeOut(timeout);\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}", "title": "" }, { "docid": "9cb22d3269ba5bd5aeaaddfee2928ac5", "score": "0.6045489", "text": "@Override\n public void run() {\n long elapsed = 0;\n while (elapsed < TIMEOUT) {\n try {\n Thread.sleep(SLEEP_INTERVAL);\n } catch (InterruptedException e) {}\n\n // See if result is known\n boolean abkReceived = checkForAbk();\n if (abkReceived) {\n break;\n }\n elapsed += SLEEP_INTERVAL;\n }\n\n // Check for timeout\n if (elapsed >= TIMEOUT) {\n resultListener.accept(null);\n }\n\n // Remove from pool\n sendThreadPool.removeThread(hash);\n }", "title": "" }, { "docid": "9acf9bbba3de32c6cce07093768528dd", "score": "0.59604836", "text": "public void waitForRunCompletion(AppThwackRun run) {\n while (true) {\n result = new AppThwackTestResult(owner, run, run.getResults());\n if (result.isCompleted()) {\n break;\n }\n try {\n Thread.sleep(DefaultUpdateInterval);\n }\n catch(InterruptedException ex) {\n break;\n }\n }\n }", "title": "" }, { "docid": "d0b475cea18cdf45e1440517ac784391", "score": "0.5921174", "text": "private void waitHere(ReturnData ret) {\r\n try {\r\n while (!ret.cont) {\r\n Thread.sleep(50); //Wait until a reply has been received\r\n }\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(JConn.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "c782f2f7257305044914a5a22ff08cfc", "score": "0.5915346", "text": "private void afterEvent() {\n autoWaitForIdle();\n autoDelay();\n }", "title": "" }, { "docid": "f5b236073fc306b4e8c5bdc3a2052846", "score": "0.59109867", "text": "public void waitForNotificationOrFail() {\n new PollingCheck(5000) {\n @Override\n protected boolean check() {\n return mContentChanged;\n }\n }.run();\n mHT.quit();\n }", "title": "" }, { "docid": "25a967961b4d5d94f5926112e30b2c48", "score": "0.58488625", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tLog.v(\"DEBUG-OWN\", \"before enter the while\");\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\tmessage = sroidService.checkAvailability();\n\t\t\t\t\t\t\tSystem.out.println(message);\n\t\t\t\t\t\t\tLog.v(\"DEBUG-OWN\", message);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "title": "" }, { "docid": "ee315d35293810ad7651eb44da458161", "score": "0.5812036", "text": "protected void waitForNewEvents() throws Exception {\n Thread.sleep(100);\n }", "title": "" }, { "docid": "d2025aac54afed9f21f7d6f451541356", "score": "0.580421", "text": "private void watchConnection() {\r\n\t\tif (this.timer != null) {\r\n\t\t\tthis.timer.cancel();\r\n\t\t\tthis.timer = null;\r\n\t\t}\r\n\t\tthis.timer = new Timer();\r\n\t\tthis.timer.schedule(new Task(), ConnectionFactory.DELAY);\r\n\t}", "title": "" }, { "docid": "e67f434b14267eb17f580021827f0acd", "score": "0.5780601", "text": "private void waitCommand() {\n scanning.set(true);\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n System.out.println(\n \"Thread was interrupted, Failed to complete operation\");\n }\n while(robot.motorA.getState() == Motor.STATE_RUNNING && robot.motorB.getState() == Motor.STATE_RUNNING && scanning.get()) {\n }\n stop();\n try {\n Thread.sleep(400);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n System.out.println(\n \"Thread was interrupted, Failed to complete operation\");\n }\n }", "title": "" }, { "docid": "f1a41edc73db472e816bfc037d17fcbd", "score": "0.5747041", "text": "private void waitingMessage(){\r\n\tSystem.out.println(\"waiting\");\r\n\tlcd. writeMessage(\"Waiting 30s\");\r\n\r\n\tTimer lookForMotionTimer = new Timer();\r\n\tlookForMotionTimer.schedule(lookForMotionCallback(), TIMEOUT);\r\n\t\r\n }", "title": "" }, { "docid": "695fab0c408d7f100ef80b2fd0c6fbf7", "score": "0.57044137", "text": "public void run() {\n\t\t\t\t\tfinal int MY_TIME_OUT = 7;\r\n\t\t\t\t\t// !! Only finds 10 devices max at present. Good enough?\r\n\t\t\t\t\tfinal int MAX_DEVICES = 10;\r\n\t\t\t\t\tBluetooth.inquireNotify(MAX_DEVICES, MY_TIME_OUT, listy);\r\n\t\t\t\t}", "title": "" }, { "docid": "4a0c06aa8362804c060802ff26bdbde3", "score": "0.57033664", "text": "private void waitFor(Supplier<Boolean> condition) {\n do {\n uncheckedSleep(100);\n } while (!condition.get());\n }", "title": "" }, { "docid": "169a1714f972fe6b9ced8a54adfe3e21", "score": "0.5681105", "text": "private void waitFor(int ms) {\n\tint k=1;\n new EventTool().waitNoEvent(ms*k);\n }", "title": "" }, { "docid": "5cede80e0de3e23aec527a2a4f795b89", "score": "0.566985", "text": "public void waitUntilFinished() {\n waitUntilFinished(-1L);\n }", "title": "" }, { "docid": "d1e895ce06fc1e3a320f1668e6d01b6a", "score": "0.5653934", "text": "@Override\n \t\t\t\t\t\t\tpublic void run() {\n \t\t\t\t\t\t\t\tWait.waitExactly(1000L);\n \t\t\t\t\t\t\t\tdisconnectThread.interrupt();\n \t\t\t\t\t\t\t}", "title": "" }, { "docid": "4e99e13a1373489cbe30adecd9e83f7f", "score": "0.5644293", "text": "private void waitUntilReady() {\n synchronized (mStartLock) {\n while (!mReady) {\n try {\n mStartLock.wait();\n } catch (InterruptedException ie) { /* not expected */ }\n }\n }\n }", "title": "" }, { "docid": "8229657443361db01d097755622c4e8f", "score": "0.5642423", "text": "@Override\r\n\tpublic boolean hasWait() {\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "7af80891839a86c3818814b315cc3ecd", "score": "0.5631822", "text": "public void run() {\n p2p.discoverServices(channel, new WifiP2pManager.ActionListener() {\n public void onSuccess() {\n myServiceList.clear();\n Log.i(\"\",\"Started service discovery\");\n myServiceState = ServiceState.DiscoverService;\n }\n public void onFailure(int reason) {\n stopDiscovery();\n myServiceState = ServiceState.NONE;\n Log.i(\"\",\"Starting service discovery failed, error code \" + reason);\n //lets try again after 1 minute time-out !\n ServiceDiscoveryTimeOutTimer.start();\n }\n });\n }", "title": "" }, { "docid": "f958f1d353fe07a38b029c650462e45c", "score": "0.56093574", "text": "private void waitClick() {\n graphic_listener.unlockRead();\n graphic_listener.waitClick();\n graphic_listener.lockRead();\n }", "title": "" }, { "docid": "f26376b0840acd23bc3c96d157c4a932", "score": "0.5609326", "text": "public void waitAtSignal()\n {\n printMove(3);//If debugging, prints wait info\n time++;//Costs a minute\n return;\n }", "title": "" }, { "docid": "0b477ed9c0fe070e76ef23659191d42f", "score": "0.560719", "text": "private void startListening() {\n scheduledExecutorService.scheduleWithFixedDelay(this::checkTaskStatuses, 1000, 1000,\n TimeUnit.MILLISECONDS);\n }", "title": "" }, { "docid": "bffd23828b3154abd739fd18c0db3c14", "score": "0.5589136", "text": "public void waitOnPending()\r\n\t{\r\n\t\twhile(pending_asynchronous_calls.get() > 0){\r\n\t\t\tUtility.pause(500);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "758f8a7e01a5e15d7e4b19ff4449de86", "score": "0.5578012", "text": "private void waitForRunJudgementConfirmation(RunEventListener listener, int seconds) throws Exception {\n\n boolean done = false;\n\n long waittime = seconds * 1000;\n\n long startTime = new Date().getTime();\n\n long timeLimit = startTime + waittime;\n\n while (!done) {\n\n if (listener.getRun() != null) {\n done = true;\n }\n\n if (!done && (new Date().getTime() > timeLimit)) {\n break;\n }\n System.out.print(\"\");\n }\n\n long totalTime = new Date().getTime() - startTime;\n\n if (debugMode) {\n System.out.println(totalTime + \" ms\");\n System.out.println();\n }\n\n if (!done) {\n throw new Exception(\"Timed out (\" + totalTime + \" ms) waiting for run update confirmation for run \" + runId + \" - contact staff \");\n }\n }", "title": "" }, { "docid": "b29a34b97d5b8919059f9071735b74fb", "score": "0.55773616", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\twaitAClient();\n\t\t\t}", "title": "" }, { "docid": "7ee0b0107e2dd37559310c6e75e60509", "score": "0.5570212", "text": "protected void runSim() {\r\n\t\twhile((!pQueue.isEmpty() || currentTime <= nextEvent)) {\r\n\t\t\tverifyCompletedTask();\r\n\t\t\tif(lineChange) {\r\n\t\t\tdoLineChange();\r\n\t\t\t}\r\n\t\t\tverifyServiceStart();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2408d3fa95e3721cd8caef3aca458fc9", "score": "0.55694973", "text": "private void autoWaitForIdle() {\n if (isAutoWaitForIdle) {\n waitForIdle();\n }\n }", "title": "" }, { "docid": "b9d5a7fa8097d7cbafaba08391acbfb5", "score": "0.55671877", "text": "boolean hasWait();", "title": "" }, { "docid": "b9d5a7fa8097d7cbafaba08391acbfb5", "score": "0.55671877", "text": "boolean hasWait();", "title": "" }, { "docid": "e295a49cbcb3de5bb9ef1ce841e5a6b4", "score": "0.55431384", "text": "private void startCountDownATimer()\r\n {\r\n Toast.makeText(this, \"Please wait while we try to find you a driver\", Toast.LENGTH_SHORT).show();\r\n countDownTimer = new CountDownTimer(60000, 1000)\r\n {\r\n public void onTick(long millisUntilFinished)\r\n {}\r\n \r\n public void onFinish()\r\n {\r\n // Cancelling the request if driver wasn't assigned\r\n if(!isDriverAssigned)\r\n {\r\n cancelUberRequest();\r\n }\r\n }\r\n }.start();\r\n }", "title": "" }, { "docid": "ae5f2e70545098067f52672fe883e381", "score": "0.5533939", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ts.getMachine().receive(timeout);\n\t\t\t\t\t}", "title": "" }, { "docid": "0b0a931bd901524d9312cd77dbcf28c1", "score": "0.5528054", "text": "private void startWaitingForReader() {\n if (this.readerInformNotConnectedHandler != null) {\n this.readerInformNotConnectedHandler.removeCallbacks(this.readerInformNotConnectedRunnable);\n }\n\n // Wait a few seconds for the reader to be detected, otherwise announce not connected\n this.readerInformNotConnectedRunnable = new Runnable() {\n @Override\n public void run() {\n externalCardReaderHelper.informExternalCardReader(CardReaderStatus.NOT_CONNECTED);\n }\n };\n\n this.readerInformNotConnectedHandler.postDelayed(this.readerInformNotConnectedRunnable, CONNECTION_TIME_MS);\n }", "title": "" }, { "docid": "c532cdede6b8100a9e6f68653468f1ba", "score": "0.55190146", "text": "private void checkIfHuntAlreadyStarted() {\n\t\tif (mHuntStartedTask != null) {\n\t\t\treturn;\n\t\t} \t\n\t\t\n\t\tmHuntStartedTask = new CheckIfHuntStartedTask();\n\t\tmHuntStartedTask.execute((String) null);\n\n\t\tHandler handlerForUserTask = new Handler();\n\t\thandlerForUserTask.postDelayed(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif(mHuntStartedTask!= null) {\n\t\t\t\t\tif(mHuntStartedTask.getStatus() == AsyncTask.Status.RUNNING) {\n\t\t\t\t\t\tmHuntStartedTask.cancel(true);\n\t\t\t\t\t\tmPreparationDialog.cancel();\n\t\t\t\t\t\tToast.makeText(RegisterWithHuntActivity.this, mConnectionTimeout, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t//mRefreshButton.setVisibility(Button.VISIBLE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t, 20000);\t\n\t}", "title": "" }, { "docid": "d9acd01cbe5a2321ece020c632d1765f", "score": "0.5519003", "text": "public abstract void whileReleased();", "title": "" }, { "docid": "f704f406de6d7d5e363bdb682bd0b9c1", "score": "0.5509985", "text": "@Override\n public void run() {\n _statusCheckerTimer.schedule(new StatusCheckerTask(), 0, 15000); //15 em 15 seg, dps o contador ate o sec overload\n }", "title": "" }, { "docid": "eb94ec8f58e1878a56300beda22f464a", "score": "0.55071396", "text": "public void waitUntilAusStarted() throws InterruptedException {\n ausStarted.waitFull(Deadline.MAX);\n }", "title": "" }, { "docid": "db51dafcb32ab15e7abf216634014a54", "score": "0.5497651", "text": "public void waitMove();", "title": "" }, { "docid": "fb6125373d06bfaab1870fe780664682", "score": "0.5492533", "text": "public synchronized boolean start(){\n\t\tif(!full){\n\t\t\ttry {\n\t\t\t\twait(30000);//wait half a minute\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\tif(!full)//30 sec past\n\t\t\treturn false;\n\t\tnotify();\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7ef92e5914cd851d5596e259679062b4", "score": "0.54910225", "text": "@Override\n\t\tpublic void run() {\n\t\t\twhile (!Thread.interrupted()) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(10); // wait 10 milliseconds\n\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\ts.setElapsedTime(s.getElapsedTime() + 10);\n\t\t\t\t // increment clock by 10 millis\n\n\t\t\t\t//this function will check to see if the next available ThreadHandler's time for arrival in ThreadHandlerList \n\t\t\t\t// if it's time to arrive then that ThreadHandler is removed and put into the queue system\n\t\t\t\ts.checkForArrival();\n\t\t\t\t\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "41c850f8810c4d3180e0d76e95c15ad1", "score": "0.5488045", "text": "@Override\r\n public void runt() {\r\n boolean is_close = false;\r\n while( is_started() && !is_close){\r\n\r\n synchronized (cmd_queue) {\r\n try {\r\n cmd_queue.wait(100);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n check_token(false);\r\n\r\n Msg msg = cmd_queue.poll();\r\n if(msg == null){\r\n sleep(1);\r\n continue;\r\n }\r\n\r\n\r\n switch(msg.func_id){\r\n case CMD_OPEN:\r\n msg.func_complete.onComplete(null, call_open(msg.args.get(0).toString(), msg.args.get(1).toString()));\r\n break;\r\n case CMD_GetUserInfo:\r\n {\r\n CloudUserInfo userinfo = call_CMD_GetUserInfo();\r\n msg.func_complete.onComplete(userinfo, getResultInt());\r\n break;\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "7678cc5d285d3b2c76bbd0b0309b229b", "score": "0.54705775", "text": "@SuppressWarnings(\"InfiniteLoopStatement\")\n private void waitForConnections()\n {\n while (true)\n {\n synchronized (mMonitor)\n {\n try\n {\n mMonitor.wait();\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "eba0fa661605f07e8c011c25a0c7caf0", "score": "0.54676294", "text": "@Test\n\tpublic void testStillReadyMany() {\n\t\ttry {\n\t\t\tThread.sleep(150);\n\t\t\tassertTrue(testTimer.stillReady());\n\t\t\tassertTrue(testTimer.stillReady());\n\t\t\tassertTrue(testTimer.stillReady());\n\t\t\tassertFalse(testTimer.stillReady());\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Could not sleep.\");\n\t\t}\n\t}", "title": "" }, { "docid": "632fa19194152eb63e9c1d60870f491c", "score": "0.54643637", "text": "public static void blockUntilFinished(Runnable task)\n {\n Thread thread = new Thread(task);\n thread.start();\n Display display = Display.getCurrent();\n final boolean[] pollerEnabled = {false};\n while (thread.isAlive() && !display.isDisposed()) {\n if (!display.readAndDispatch()) {\n // awake periodically so it returns when task has finished\n if (!pollerEnabled[0]) {\n pollerEnabled[0] = true;\n display.timerExec(300, new Runnable() {\n @Override\n public void run()\n {\n pollerEnabled[0] = false;\n }\n });\n }\n display.sleep();\n }\n }\n }", "title": "" }, { "docid": "adac7e51a1242d25f4319673709f737b", "score": "0.54513973", "text": "public void waitForCoach();", "title": "" }, { "docid": "f3117da371945fbd40ffa18aabccafeb", "score": "0.5447724", "text": "@Override\r\n public void run() {\r\n\r\n while(true) {\r\n\r\n //Log.i(TAG, \"etat=\"+mbtActif);\r\n if(mbtAdapt != null) {\r\n //Log.i(TAG, \"etat=\"+mbtAdapt);\r\n\r\n if(mbtAdapt.isEnabled()) {\r\n\r\n mbtActif = true;\r\n //Log.i(TAG, \"etat=\"+mbtActif);\r\n }\r\n\r\n else {\r\n\r\n mbtActif = false;\r\n //Log.i(TAG, \"etat=\"+mbtActif);\r\n }\r\n }\r\n\r\n // reception of data when connected\r\n if(mbtConnected == true) {\r\n\r\n mstrRecu = reception();\r\n\r\n if (!mstrRecu.equals(\"\")) { // if there is something -> send message to the handler of the activity\r\n\r\n Message msg = mHandler.obtainMessage();\r\n msg.obj = mstrRecu;\r\n mHandler.sendMessage(msg);\r\n //Log.i(\"Recu\", mstrRecu);\r\n }\r\n //else\r\n //Log.i(\"mstrRecu\", \"vide\");\r\n }\r\n\r\n try {\r\n Thread.sleep(2, 0); // this has to be lower than the period of the robot\r\n }\r\n catch (InterruptedException e) {\r\n e.printStackTrace();\r\n //Log.i(\"IT\", \"mstrRecu\");\r\n }\r\n }\r\n }", "title": "" }, { "docid": "6b49cd039fe72338cb2d90291eed9720", "score": "0.54434377", "text": "public void waitCastDelay()\n\t{\n\t\tMacro.sleep((int) (cooldown * 1000d)); //convert to seconds\n\t}", "title": "" }, { "docid": "636d461014147df8382c812215c26f30", "score": "0.5441781", "text": "public void run() {\r\n //don't do shit here. we will be notified about incoming data\r\n try {\r\n Thread.sleep(2000);\r\n } catch (InterruptedException e) {\r\n }\r\n }", "title": "" }, { "docid": "059c9dd0a69c69c7c5c5fa8ef5f33a2e", "score": "0.54342216", "text": "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tif (mScanning == true) {\r\n\t\t\t\t\tmScanning = false;\r\n\t\t\t\t\tmBluetoothAdapter.stopLeScan(mLeScanCallback);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(200);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * bar.setVisibility(View.GONE);\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * btn_scan.setBackground(getResources().getDrawable(R.drawable\r\n\t\t\t\t\t * .bluetooth_icon)); btn_scan.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t * invalidateOptionsMenu();\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "3169cb16a67792e20965c191c546447b", "score": "0.54242", "text": "public void waitUtili(int sec) {\n\t\ttry {\n\t\t\tThread.sleep(sec * 1000);\n\t\t} catch (Exception ex) {\n\t\t}\n \n }", "title": "" }, { "docid": "09640aa2aae3990178d9e57c05484697", "score": "0.5419069", "text": "@Override\n public synchronized void run() {\n log.entering(getClass().getName(), \"run\");\n // Ice negociation phase\n try {\n\n /**\n * Refresh any port mappings in need of a refresh\n */\n doRefreshes();\n\n /**\n * Check for any overdue nominations\n */\n checkNominations();\n\n /**\n * Check for session updates\n */\n checkSessionUpdates();\n\n if (iceStatus == IceStatus.IN_PROGRESS) {\n // First check for any finished pairs\n for (Entry<IceSocket, List<CandidatePair>> pairsEntry : checkPairs.entrySet()) {\n IceSocket socket = pairsEntry.getKey();\n List<CandidatePair> pairs = pairsEntry.getValue();\n for (CandidatePair pair : getPairsInState(pairs, PairState.IN_PROGRESS)) {\n if (pair.getReplyFuture() != null) {\n if (pair.getReplyFuture().isDone()) {\n checkTestResult(socket, pair);\n }\n } else {\n log.log(Level.SEVERE, \"BUG: Found an In-Progress pair with a null future: {0}\", pair);\n pair.setState(PairState.FAILED);\n }\n }\n }\n\n // If we're controlling, send the SDP offer if timeout has occured,\n // or it hasn't been sent yet.\n if (localRole == AgentRole.CONTROLLING) {\n // This prevents packet storms\n if (isSdpTimeout()) {\n sendSessionUpdate();\n }\n }\n\n // Do we have a remote uFrag and Password?\n if (remoteUFrag == null || remotePassword == null || checkPairs == null) {\n log.log(Level.INFO, \"{0} waiting on peer for offer in {1} role.\", new Object[]{getPeerId(), localRole});\n checkStatus();\n } else {\n // Check ICE status\n checkStatus();\n if (iceStatus == IceStatus.SUCCESS) {\n return;\n }\n\n // Form check pairs\n if (checkPairs != null) {\n for (List<CandidatePair> candidatepairs : checkPairs.values()) {\n Collections.sort(candidatepairs, new CandidatePairComparison());\n }\n }\n\n boolean didTest = false;\n\n // If there's a triggered check, do it now\n CandidatePair triggeredPair = triggeredCheckQueue.poll();\n if (triggeredPair != null) {\n log.log(Level.FINE, \"TriggeredTest: {0}:{1} ({2}) -> {3}:{4}\",\n new Object[]{triggeredPair.getLocalCandidate().getAddress(),\n triggeredPair.getLocalCandidate().getPort(),\n triggeredPair.getLocalCandidate().getComponentId(),\n triggeredPair.getRemoteCandidate().getAddress(),\n triggeredPair.getRemoteCandidate().getPort()});\n runOneTest(triggeredPair.getLocalCandidate().getIceSocket(), triggeredPair);\n didTest = true;\n } else {\n // Check for a waiting pair in each channel\n for (Entry<IceSocket, List<CandidatePair>> pairsEntry : checkPairs.entrySet()) {\n IceSocket socket = pairsEntry.getKey();\n List<CandidatePair> pairs = pairsEntry.getValue();\n // No waiting pairs, is there a successful pair?\n if (pairsInState(pairs, PairState.WAITING) == 0) {\n // No, unfreeze pairs if they exist\n if (pairsInState(pairs, PairState.SUCCEEDED) == 0) {\n\n // Find the current lowest component ID\n short lowestComponentId = 256;\n for (CandidatePair pair : pairs) {\n if (pair.getComponentId() < lowestComponentId) {\n lowestComponentId = pair.getComponentId();\n }\n }\n\n // Unfreeze all candidates for this component ID\n for (CandidatePair pair : pairs) {\n if (pair.getComponentId() == lowestComponentId\n && pair.getState() == PairState.FROZEN) {\n pair.setState(PairState.WAITING);\n }\n }\n }\n }\n if (pairsInState(pairs, PairState.WAITING) != 0) {\n // Non frozen pairs exist, test one, then break out of the loop\n CandidatePair pair = getFirstWaitingPair(pairs);\n runOneTest(pair.getLocalCandidate().getIceSocket(), pair);\n didTest = true;\n break;\n }\n }\n\n // Test for completion\n if (!didTest && !checkPairs.isEmpty()) {\n // Check for pairs still in-progress\n for (List<CandidatePair> pairs : checkPairs.values()) {\n int inProgressPairCounts = pairsInState(pairs, PairState.IN_PROGRESS);\n if (inProgressPairCounts > 0) {\n\n // End this round\n log.log(Level.FINE, \"{0} Waiting for {1} tests to finish...\", new Object[]{localUFrag, inProgressPairCounts});\n return;\n }\n }\n for (Entry<IceSocket, List<CandidatePair>> pairsEntry : checkPairs.entrySet()) {\n IceSocket socket = pairsEntry.getKey();\n List<CandidatePair> pairs = pairsEntry.getValue();\n\n // If controller, nominate a pair, or restart ICE\n if (localRole == AgentRole.CONTROLLING) {\n List<CandidatePair> successPairs = new LinkedList<CandidatePair>();\n for (CandidatePair cp : pairs) {\n if (cp.getState() == PairState.SUCCEEDED) {\n successPairs.add(cp);\n }\n }\n if (!successPairs.isEmpty()) {\n Map<Short, List<CandidatePair>> separatedCandidates = separateByComponent(successPairs);\n\n for (List<CandidatePair> nominateOne : separatedCandidates.values()) {\n // Sort to get the highest priority pair on top\n Collections.sort(nominateOne, new CandidatePairComparison());\n // Nominate the highest priority pair that succeedes\n for (CandidatePair nominatePair : nominateOne) {\n\n nominate(nominatePair);\n // Send the nomination to the remote ICE peer\n IceReply nominationReply = doIceTest(\n nominatePair,\n localUFrag,\n remoteUFrag,\n remotePassword,\n isLocalControlled(),\n PEER_REFLEXIVE_PRIORITY,\n tieBreaker,\n true).get();\n\n if (nominationReply.isSuccess()) {\n nominate(nominatePair);\n break;\n }\n }\n }\n checkPairs.putAll(nominated);\n }\n }\n }\n //iceStatus = IceStatus.SUCCESS;\n checkStatus();\n\n if (iceStatus == IceStatus.SUCCESS) {\n sendSessionUpdate();\n } else {\n // If it's been more than resetTimeout ms since the last STUN test was\n // sent or received, and we're the controlling peer, do a reset.\n if (isLocalControlled() && new Date().getTime() - lastTouch > resetTimeout) {\n doReset(isLocalControlled(), true);\n return;\n }\n\n }\n }\n }\n }\n }\n\n // Upkeep Phase\n if (iceStatus == IceStatus.SUCCESS) {\n if (sendKeepalives) {\n if (new Date().getTime() - lastSent > refreshDelay) {\n lastSent = new Date().getTime();\n for (List<CandidatePair> pairList : nominated.values()) {\n for (CandidatePair pair : pairList) {\n /**\n * Repeat connectivity checks at a regular interval on\n * nominated candidates to keep the candidates available\n */\n IceReply result = doIceTest(\n pair,\n localUFrag,\n remoteUFrag,\n remotePassword,\n isLocalControlled(),\n PEER_REFLEXIVE_PRIORITY,\n tieBreaker,\n true).get();\n if (result != null) {\n if (pair == null || pair.getLocalCandidate() == null || pair.getRemoteCandidate() == null) {\n log.log(Level.WARNING, \"Got a strange candidate pair: {0}\", pair);\n } else {\n log.log(Level.FINEST, \"Keepalive: {0}:{1} -> {2}:{3} - {4} - {5}\", new Object[]{\n pair.getLocalCandidate().getAddress(),\n pair.getLocalCandidate().getPort(),\n pair.getRemoteCandidate().getAddress(),\n pair.getRemoteCandidate().getPort(),\n pair.getState(),\n (result.isSuccess()) ? result.getMappedAddress() : result.getErrorReason()});\n\n\n }\n } else {\n log.log(Level.WARNING, \"Got a null reply from an ICE test during keepalive. \"\n + \"This is abnormal. {0}:{1} -> {2}:{3} - {4}\",\n new Object[]{pair.getLocalCandidate().getAddress(),\n pair.getLocalCandidate().getPort(),\n pair.getRemoteCandidate().getAddress(),\n pair.getRemoteCandidate().getPort(),\n pair.getState()});\n }\n\n }\n }\n }\n } else {\n // Stop executing the ice loop, but don't interrupt already executing processes.\n task.cancel(false);\n }\n\n }\n } catch (Exception ex) {\n if (ex instanceof InterruptedException) {\n log.log(Level.WARNING, \"Got interrupted Exception\", ex);\n } else {\n log.log(Level.SEVERE, \"Got an unchecked exception in the ICE State Machine\", ex);\n throw new RuntimeException(ex);\n }\n }\n log.exiting(getClass().getName(), \"run\");\n }", "title": "" }, { "docid": "aa11b56fa3a7f21b347e85e6b3851ae2", "score": "0.54112774", "text": "void startWait();", "title": "" }, { "docid": "3e07dc4b92a8cec75a2a737c8433e1b5", "score": "0.54057974", "text": "@Override\n\t\tpublic void run() {\n\t\t\tisTimeOut = true;\n\t\t\tif(listener != null)\n//\t\t\t\tlistener.onLongPress(v);\n\t\t\tFyLog.v(\"Listener\", \"onLongPress\");\n\t\t}", "title": "" }, { "docid": "bf173c846579904828a42284daac1d2f", "score": "0.5405508", "text": "public void waitUntilStopped() {\n // Wait while motor is moving\n double position = getSensorValue();\n double previousPosition = Double.POSITIVE_INFINITY;\n while (Math.abs(position - previousPosition) > 0.000001) {\n previousPosition = position;\n // Sleep for two physics steps\n ExecutionController.waitUntilNextStep();\n ExecutionController.waitUntilNextStep();\n position = getSensorValue();\n }\n }", "title": "" }, { "docid": "4bb8ab68e1468c422a69aed473c48f1c", "score": "0.54027176", "text": "@Test\n\tpublic void testStillReadyOnce() {\n\t\ttry {\n\t\t\tThread.sleep(60);\n\t\t\tassertTrue(testTimer.stillReady());\n\t\t\tassertFalse(testTimer.stillReady());\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Could not sleep.\");\n\t\t}\n\t}", "title": "" }, { "docid": "8142ac2b494f89168fdb90f5dd143f67", "score": "0.5400711", "text": "public int listen() {\n boolean status = nachos.machine.Machine.interrupt().disabled() ;\n lock.acquire() ;\n // System.out.println(\"heihei\") ;\n if (speakercount > 0) {\n speakCondition.wake() ;\n listenCondition.sleep() ;\n }\n else {\n listenercount ++ ;\n listenCondition.sleep() ;\n listenercount -- ;\n }\n int answer = queue.poll() ;\n lock.release();\n nachos.machine.Machine.interrupt().restore(status) ;\n return answer ;\n }", "title": "" }, { "docid": "d4a0c0356cbde84cae0141731a61a152", "score": "0.5388888", "text": "@Override\n public boolean waitToProceed() {\n return false;\n }", "title": "" }, { "docid": "f510b3bb472fb496cdc180ce24767802", "score": "0.5384286", "text": "public void syncWaitTime() {\n\t\tthreadSleep(40000);\n\t}", "title": "" }, { "docid": "4af03f45671a3b3932230e72803dcb92", "score": "0.5380765", "text": "@Override\n public void run() {\n if (state.compareAndSet(State.RUNNING, State.TIMEOUT)) {\n heartbeatListener.notifyHeartbeatTimeout(resourceID);\n }\n }", "title": "" }, { "docid": "691ba8b7eb2af17f85a0298bd7592694", "score": "0.53783476", "text": "protected void onWait()\n throws java.lang.InterruptedException\n {\n // all work is done in onNotify()\n return;\n }", "title": "" }, { "docid": "a14fa8f15e4d5a461bf690b86c9412a5", "score": "0.53757757", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t while(true){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\tif(mmprogress>0){\t\n\t\t\t\t\t\t\tif(mmprogress==MusicService.mediaPlayer.getDuration()){\n\t\t\t\t\t\t\t\t//Log.i(TAG,\"----->startMTimeThread break\");\n\t\t\t\t\t\t\t\tMusicService.mediaPlayer.seekTo(mmprogress);\n\t\t\t\t\t\t\t\tcurrentTimeHandler.sendEmptyMessage(0);\n\t\t\t\t\t\t\t\tisThreadBreak = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tMusicService.mediaPlayer.seekTo(mmprogress);\n\t\t\t\t\t\t\t\tcurrentTimeHandler.sendEmptyMessage(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tif(isseekbarChange==false){\n\t\t\t\t\t\tMusicService.mediaPosition = mmprogress;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\n\t\t\t\tsuper.run();\n\t\t\t}", "title": "" }, { "docid": "e6f3ecaa1eae88ac2f0a8315f8d93e86", "score": "0.53717196", "text": "@Override\n\t\tpublic void run() {\n\t\t\twhile (run) {\n\t\t\t\tif (mInputStream != null) {\n\t\t\t\t\ttry {\n//\t\t\t\t\t\tSystem.out.println(\"is recevice\");\n\t\t\t\t\t\tint len = mInputStream.available();\n\t\t\t\t\t\tif (len > 0) {\n//\t\t\t\t\t\t\tsleep(10);\n\t\t\t\t\t\t\tint temp = 0;\n\t\t\t\t\t\t\twhile (run) {\n\t\t\t\t\t\t\t\tlen = mInputStream.available();\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tThread.sleep(1);\n\t\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (temp == len) {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttemp = len;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(\"is recevice\");\n\t\t\t\t\t\t\tlen = mInputStream.available();\n\t\t\t\t\t\t\tbyte[] buffer = new byte[len];\n\t\t\t\t\t\t\tmInputStream.read(buffer);\n\t\t\t\t\t\t\tif (l != null)\n\t\t\t\t\t\t\t\tl.onReceive(buffer);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsleep(5);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "54e11b858c41f3e491a72b51a4286cb9", "score": "0.5369936", "text": "private void shortWait() {\n try {\n Thread.sleep(2000) ;\n } catch (InterruptedException e) {\n log.println(\"While waiting :\" + e) ;\n }\n }", "title": "" }, { "docid": "cbe3f15893492c95ec4ebc3eeedec075", "score": "0.5367292", "text": "public void poll();", "title": "" }, { "docid": "5bd06585a7dbebab9ca31063520a5fab", "score": "0.5366358", "text": "@Override\r\n\tpublic void run() {\r\n\t\twhile(!mIsPause && !isInterrupted()){\r\n\t\t\tLog.d(TAG,\"connect to repeater\");\r\n\t\t\t\t\t\t\r\n\t\t\tif(BTConfig.flag){\r\n\t\t\t\r\n\t\t\t\tBTConfig.mBTConfig.setBTConfigState(BTConfigState.STATE_BT_CONNECTING);\r\n\t\t\t\tString mBTDeviceMac = BTConfig.mBTConfig.getBTDeviceMac();\t\t\r\n\t\t\t\t\r\n\t\t\t\tboolean ret = BTConfig.mBTConfig.getBTBle().doBTBleConnect(mBTDeviceMac);\t\t\t\t\t\t\r\n\t\t\t\tif(ret == false){\r\n\t\t\t\t\tBTConfig.mBTConfig.setBTConfigState(BTConfigState.STATE_BT_CONNECT_FAIL);\t\t\t\r\n\t\t\t\t}\t\r\n\t\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\r\n\t\t\t\tBTConfig.mBTConfig.setBTConfigState(BTConfigState.STATE_BT_CONNECTING);\t\t\r\n\t\t\t\tBTConfig.mBTConfig.getBTRfComm().cancelBTScan();\r\n\t\t\t\tString mBTDeviceMac = BTConfig.mBTConfig.getBTDeviceMac();\r\n\t\t\t\r\n\t\t\t\tboolean ret = BTConfig.mBTConfig.getBTRfComm().doBTRfCommConnect(mBTDeviceMac);\r\n\t\t\t\tif(ret == false){\r\n\t\t\t\t\tBTConfig.mBTConfig.setBTConfigState(BTConfigState.STATE_BT_CONNECT_FAIL);\r\n\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tBTConfig.mBTConfig.setBTConfigState(BTConfigState.STATE_BT_CONNECT_OK);\r\n\t\t\t\t\r\n\t\t\t\t} // connect successfully\t\t\t\r\n\t\t\t}\t\t\t\r\n\t\t\tonThreadPause();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5a547212465aa69b5c9bf18060d9bd5e", "score": "0.5365501", "text": "public boolean sleep();", "title": "" }, { "docid": "cf420ef92309d6d38d8c22f12caccc6a", "score": "0.5365059", "text": "protected void onWait()\n throws java.lang.InterruptedException\n {\n // all work is done in onNotify()\n return;\n }", "title": "" }, { "docid": "0092a6f71996f1f4244f4089e6561716", "score": "0.53591645", "text": "public void acceptAlertAndRefresh() {\n long currentTime = System.currentTimeMillis();\n long maxTime = currentTime + 3000;\n while (currentTime < maxTime) {\n acceptAlert();\n currentTime = System.currentTimeMillis();\n }\n sleeper.sleep();\n initElements(this);\n }", "title": "" }, { "docid": "33570f18df1a6fa022885bab3b626252", "score": "0.53570294", "text": "@Override\n public void run() {\n mHandler.removeCallbacks(mScanTask);\n\n scanNow();\n }", "title": "" }, { "docid": "cfe01facd56e12f44c71468646fa9893", "score": "0.5349237", "text": "@Override\n public void run() {\n boolean hasConnection;\n int count = 0;\n do {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n }\n hasConnection = Utils.isNetworkAvailable(SplashActivity.this);\n } while (!hasConnection && count++ < 5);\n // app is being continued ...\n final boolean finalResult = hasConnection;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (finalResult) {\n checkGps();\n } else {\n showExitDialog(\"Connection Fail!\", \"Please connect Internet!\");\n }\n }\n });\n }", "title": "" }, { "docid": "4bd809280fa30f2f8b35834c2adfe234", "score": "0.5340844", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(!gs.getStart()){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(25);\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}\n\t\t\t\tloading = false;\n\t\t\t\tsetScreenToGame(canvas);\n\t\t\t}", "title": "" }, { "docid": "58cff4d3fbaea60374343ac905e7ec60", "score": "0.53373355", "text": "public void waitRequestCompletion() {\n\t\ttry {\n\t\t\twhile (working) {\n\t\t\t\tsynchronized (lock) {\n\t\t\t\t\tlock.wait();\n\t\t\t\t}\n\t\t\t\tThread.sleep(100);\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "6d2d9cea49adacf07559231da945a318", "score": "0.533731", "text": "protected void waitResponse() {\n\t\twaitResponse(_timeout, true);\n\t}", "title": "" }, { "docid": "bb54b27f842cf368ee8e1cb7dc9e9a3a", "score": "0.5332333", "text": "public static void waitForElement(long unit){\n\t\ttry {\n\t\t\tThread.sleep(unit);\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\t\n\t}", "title": "" }, { "docid": "b89382bf6536343b78457568e3179823", "score": "0.5324087", "text": "private void waitForInitialSensorDataToBeCollected() {\n\n warmupTimer = new Timer();\n warmupTimer.scheduleAtFixedRate(new calculateFusedOrientationTask(), 1000, TIME_CONSTANT);\n }", "title": "" }, { "docid": "d54500346680610bda8c9df175a2e204", "score": "0.5320674", "text": "public void stay() {\n while (getStatus().equals(\"Run\")) {\n // parent.delay(1);\n if (getStatus().equals(\"Idle\"))\n break;\n }\n }", "title": "" }, { "docid": "1b708a9d3d41025e0cccd1f1984ee0b3", "score": "0.5320538", "text": "public void sleep() {\r\n\t\tif((memberMoves - 1) >= 0) {\r\n\t\t\tmemberMoves -= 1;\r\n\t\t\tmemberTiredness -= 100;\r\n\t\t\tif (memberTiredness < 0) memberTiredness = 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3f7fe91f509342392aa0e52ed4a2b91b", "score": "0.53152096", "text": "boolean queueIdle();", "title": "" }, { "docid": "08ead884c1e1ff46ac2e5962bc55fa30", "score": "0.5312151", "text": "@Test @Ignore\n public void waitForCompletion() throws Exception {\n CountDownLatch latch = new CountDownLatch(47);\n _testTask._latch = latch;\n _taskManager.monitorTaskQueue();\n latch.await();\n _taskManager.stopTaskQueueMonitor(false);\n }", "title": "" }, { "docid": "153986dcdae8e3821d461132e1d26db0", "score": "0.53003603", "text": "private void startCollectStatus() {\n Handler handler = this.mSDKHandler;\n if (handler != null) {\n handler.postDelayed(this.mStatusNotifyTask, 1000);\n }\n }", "title": "" }, { "docid": "8b158945b0637e7e8c4578938b7612f9", "score": "0.5298885", "text": "private void scan(long time) throws InterruptedException\n\t{\n\t\tsystemState = observeState.scanning;\n\t\t\n\t\t//comienzo servidor\n\t\tstart(mLogDir + cap_file);\n\t\t//thread que maneja la finalización del scaneo\n\t\tstopHandler = new Handler();\n\t\tstopHandler.postDelayed(stopServer, time);\n\t}", "title": "" }, { "docid": "0617d58a082279c44f50b0fa8c26a17d", "score": "0.5288827", "text": "private void checkPeriodically() {\n while (midlet.loggedIn) {\n try {\n synchronized (this) {\n checkUpdate();\n wait(60000);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "ba194e7c9d0568280d0f39342450df51", "score": "0.5286706", "text": "private void loosenWireUntilSensorReleased(NXTCuddleMotor m) {\n if (!ts1.isPressed()) return;\n\n m.forward();\n while (ts1.isPressed()) {\n xsleep(25);\n }\n m.flt();\n }", "title": "" }, { "docid": "2fb53a61aa3405088b67516b704a7472", "score": "0.52850366", "text": "@Override\n public void run()\n {\n is_started = true;\n while (!isShutdown())\n {\n LogicControl.sleep(1*1000);\n \n } \n finished = true;\n }", "title": "" }, { "docid": "3383fbec1584e6a02653577be9e78057", "score": "0.5284666", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\tString result = sroidService.checkAvailability();\n\t\t\t\t\t\t\tSystem.out.println(result);\n\t\t\t\t\t\t\tLog.v(\"DEBUG-OWN\", result);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "title": "" }, { "docid": "360496a337693fcdd74524c5d4b2d7d6", "score": "0.52816427", "text": "EventList hangup();", "title": "" }, { "docid": "e317441e75eb486d2586e78d9c88b2fb", "score": "0.52757555", "text": "public void waitUntil(long x) {\n\t\tboolean intStatus = Machine.interrupt().disable();\n\n\t\tlong wakeTime = Machine.timer().getTime() + x;\n\t\tpq.add(new TimerThread(KThread.currentThread(), wakeTime));\n\t\tKThread.currentThread().sleep();\n\t\t\n\t\tMachine.interrupt().restore(intStatus);\n\t}", "title": "" }, { "docid": "95ee424f813e111c723cc813b971ab53", "score": "0.52746356", "text": "public synchronized void waitPlay()\n {\n// if (duration == 0) return;\n while (state.get() == PlayerStates.READY_TO_PLAY) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "c5a18ab747b76f03cb31fba411e95894", "score": "0.52736413", "text": "private void onTimeout() {\n openLog();\n\n // Make sure thread priority is correct\n if (!Thread.currentThread().getName().equals(thread.getName())) {\n Thread.currentThread().setName(thread.getName());\n Thread.currentThread().setPriority(thread.getPriority());\n }\n\n // Perform our 'boot time' house keeping\n syncHarvestFiles();\n checkSystemConfig(); /* <<< Always last */\n\n closeLog();\n }", "title": "" }, { "docid": "11f983006a263296badb6ab55f1a4648", "score": "0.52712584", "text": "protected void checkTimeout () {\n\n // COMPLETE ME WITH FLOW CONTROL\n /**\n * If this is a sender\n */\n if(this.isThisSender == true && this.resendBuffer != null)\n {\n //the current time\n\n long currentTime = System.currentTimeMillis();\n\n //find if 1 second passed from the last sent\n\n if ( (currentTime - this.recentSendTime) >= 100 )\n {\n //take the frame to be sent from buffer\n\n Queue<Byte> frameToSend = this.resendBuffer;\n\n //resend the frame to receiver\n //and keep record of time again\n //as finishFrameSend IS NOT CALLED\n\n //System.out.println(\"RESENDING FROM SENDER\" + frameToSend);\n transmit(frameToSend);\n this.recentSendTime = System.currentTimeMillis();\n }\n }\n\n }", "title": "" }, { "docid": "8d5df0d3d65049d84ae7e3cf1eced8c9", "score": "0.5270555", "text": "private void waitForPublication() throws FailedException, InvalidKeyException {\n status(\"YouTube processing started\");\n\n while (true) {\n VideoEntry checked_entry = refreshEntry();\n YtPublicationState publication_state = checked_entry.getPublicationState();\n if (!checked_entry.isDraft()) {\n status(\"Published\");\n succeed(\"Video delivered: \" + getMediaPath());\n break;\n } else if (publication_state.getState() != YtPublicationState.State.PROCESSING) {\n log(publication_state.getDescription());\n status(publication_state.getDescription());\n throw new FailedException(getMediaPath() + \": \" + publication_state.getDescription());\n } else {\n try {\n Thread.sleep(POLL_MILLISECONDS);\n } catch (Exception except) {\n // Blank\n }\n }\n }\n }", "title": "" }, { "docid": "5667c606ad3a7314d58366d33b21955d", "score": "0.5269829", "text": "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\twhile(true) {\n\t\t\t\tThread.sleep(60000);\n\t\t\t\ta.notify(this.calculateBidEventAverageTime(),null); \n\t\t\t\t//if(cout ==0)AnalyticServerTest.wert(a);\n\t\t\t\t//cout++;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "6c6fb1fe45912887cd3c8365ce96ba32", "score": "0.52694505", "text": "private void waitForSnmpd() throws Exception {\n final ContainerAlias alias = ContainerAlias.SNMPD;\n if (!isEnabled(alias)) {\n return;\n }\n\n }", "title": "" }, { "docid": "9ddcba56748451162ef9f078f1b6e637", "score": "0.526737", "text": "public void run(){\n try {\n int i = mainMP3.currentPlayer.get(mainMP3.currentIndex).FIS.available(); //load amount of song left\n\n if(i <= 15000){\n Thread.sleep(3000);\n mainMP3.skipNext(); //if amount of song left is less than 1-2 seconds, skipNext\n }\n else if(i > 15000) {\n Thread.sleep(500); //otherwise, wait for 0.5 seconds\n }\n\n run(); //restart the listening thread\n\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n System.out.println(\"interrupted\");\n run(); //if something happens, try to restart itself\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"io\");\n run(); //if something happens, try to restart itself\n }\n }", "title": "" }, { "docid": "9ddcba56748451162ef9f078f1b6e637", "score": "0.526737", "text": "public void run(){\n try {\n int i = mainMP3.currentPlayer.get(mainMP3.currentIndex).FIS.available(); //load amount of song left\n\n if(i <= 15000){\n Thread.sleep(3000);\n mainMP3.skipNext(); //if amount of song left is less than 1-2 seconds, skipNext\n }\n else if(i > 15000) {\n Thread.sleep(500); //otherwise, wait for 0.5 seconds\n }\n\n run(); //restart the listening thread\n\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n System.out.println(\"interrupted\");\n run(); //if something happens, try to restart itself\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"io\");\n run(); //if something happens, try to restart itself\n }\n }", "title": "" }, { "docid": "b5609f2e2d94c886ce6afccad929fd60", "score": "0.52639467", "text": "@Override\n public void run () {\n while (hostessState == HostessStates.WAIT_FOR_NEXT_FLIGHT) { //main cycle where hostess is waiting for the arrival of a plane to start deboarding\n \t\n\t\t\tif(da.prepareForPassBoarding()) { // hostess sleeps for the next plane and then starts waiting for the passengers to enter the queue\n\t\t\t\tbreak; // if all the passenger have been checked then we break and end the life cycle\n\t\t\t}\n\t\t\tda.checkDocuments();\t\t\t // hostess is waken and then she calls the next passenger that is waiting in the queue to be checked\n\t\t\twhile (true) { \t\t\t\t\t // sub cycle while the plane can not fly\n\t\t\t\tif(da.waitForNextPassenger()) { // hostess now tests all the conditions to understand if she could send the next plane || needs to wait || needs to call the next passenger \n \tbreak;\t\t\t\t\t\t// if the fly conditions are validated then we break the sub cycle\n }\n\t\t\t\tda.checkDocuments();\t\t //calls another passenger (hostess is waken and then she ... )\n }\n\t\t\n pl.informPlaneReadyToTakeOff(); // hostess wakes the pilot and notifies that the plane is ready to fly\n da.waitForNextFlight(); //hostess prepares to wait for the next arrival\n }\n }", "title": "" }, { "docid": "eb3033215cf88009a8c6b348962a137c", "score": "0.5263223", "text": "public synchronized void waitUntilDone() {\n while (mIsDone == false) {\n try {\n wait();\n } catch (InterruptedException e) {\n setDone();\n return;\n }\n }\n }", "title": "" }, { "docid": "129f341c4be486f67cfdda05bf4e0d24", "score": "0.5259985", "text": "public boolean isWaiting();", "title": "" } ]
0a5e6c515eb22c5de433576d2a2427f2
Tests that the disk region statistics are updated correctly for persist backup regions.
[ { "docid": "db0591da8991c7515a11f34cd58359e6", "score": "0.8066627", "text": "@Test\n public void testBackupStatistics() {\n region = cache.<Integer, String>createRegionFactory(RegionShortcut.REPLICATE_PERSISTENT)\n .setScope(Scope.LOCAL).setDiskSynchronous(true).setDiskStoreName(diskStore.getName())\n .create(REGION_NAME + 2);\n diskRegion = ((InternalRegion) region).getDiskRegion();\n\n DiskRegionStats diskStats = diskRegion.getStats();\n\n assertEquals(0, diskStats.getWrites());\n assertEquals(0, diskStats.getNumEntriesInVM());\n assertEquals(0, diskStats.getReads());\n assertEquals(0, diskStats.getNumOverflowOnDisk());\n\n region.put(0, \"value\");\n\n assertEquals(1, diskStats.getWrites());\n assertEquals(1, diskStats.getNumEntriesInVM());\n assertEquals(0, diskStats.getReads());\n assertEquals(0, diskStats.getNumOverflowOnDisk());\n\n region.put(1, \"value\");\n\n assertEquals(2, diskStats.getWrites());\n assertEquals(2, diskStats.getNumEntriesInVM());\n assertEquals(0, diskStats.getReads());\n assertEquals(0, diskStats.getNumOverflowOnDisk());\n\n region.localDestroy(1);\n\n // destroy becomes a tombstone\n assertEquals(3, diskStats.getWrites());\n assertEquals(1, diskStats.getNumEntriesInVM());\n assertEquals(0, diskStats.getReads());\n\n region.put(2, \"value\");\n region.localDestroy(2);\n assertEquals(1, region.keySet().size());\n }", "title": "" } ]
[ { "docid": "48b410ebf9b8dd54fe232670d01f89bd", "score": "0.5975913", "text": "@Test\n public void testDiskRegionOverflow() {\n DiskRegionStats diskStats = diskRegion.getStats();\n EvictionCounters lruStats = getLRUStats(region);\n\n IntStream.range(0, MAX_ENTRIES + 1).forEach((i) -> region.put(i, \"value\"));\n\n assertEquals(1, diskStats.getWrites());\n assertEquals(0, diskStats.getReads());\n assertEquals(1, lruStats.getEvictions());\n assertEquals(1, diskStats.getNumOverflowOnDisk());\n assertEquals(MAX_ENTRIES, diskStats.getNumEntriesInVM());\n\n region.get(0);\n\n assertEquals(2, diskStats.getWrites());\n assertEquals(1, diskStats.getReads());\n assertEquals(2, lruStats.getEvictions());\n }", "title": "" }, { "docid": "838b23b31a07c65d5dab4f9a0dd21b9f", "score": "0.589686", "text": "@Test\n public void updateDiskSpaceOnReplicaRemovalTest() throws Exception {\n generateConfigs(true, false);\n MockDataNodeId localNode = clusterMap.getDataNodes().get(0);\n List<ReplicaId> localReplicas = clusterMap.getReplicaIds(localNode);\n ReplicaId oldReplica = localReplicas.get(0);\n MockClusterParticipant mockHelixParticipant = Mockito.spy(new MockClusterParticipant());\n doNothing().when(mockHelixParticipant).setPartitionDisabledState(anyString(), anyBoolean());\n StorageManager storageManager =\n createStorageManager(localNode, metricRegistry, Collections.singletonList(mockHelixParticipant));\n storageManager.start();\n // Get disk space before dropping the replica\n MockDiskId diskId = (MockDiskId) oldReplica.getDiskId();\n long originalSpace = diskId.getAvailableSpaceInBytes();\n storageManager.controlCompactionForBlobStore(oldReplica.getPartitionId(), false);\n storageManager.shutdownBlobStore(oldReplica.getPartitionId());\n mockHelixParticipant.onPartitionBecomeDroppedFromOffline(oldReplica.getPartitionId().toPathString());\n // Verify disk space is increased on removing replica\n assertEquals(\"Disk free space should be increased after removing replica\",\n originalSpace + oldReplica.getCapacityInBytes(), oldReplica.getDiskId().getAvailableSpaceInBytes());\n shutdownAndAssertStoresInaccessible(storageManager, localReplicas);\n }", "title": "" }, { "docid": "da90399c8aa4e22461717fb36e619608", "score": "0.58079916", "text": "public void testSnapshotStore() throws IOException {\n final IndexShard shard = newStartedShard(true);\n indexDoc(shard, \"_doc\", \"0\");\n flushShard(shard);\n\n final IndexShard newShard = reinitShard(shard);\n DiscoveryNode localNode = new DiscoveryNode(\"foo\", buildNewFakeTransportAddress(), emptyMap(), emptySet(), Version.CURRENT);\n\n Store.MetadataSnapshot snapshot = newShard.snapshotStoreMetadata();\n assertThat(snapshot.getSegmentsFile().name(), equalTo(\"segments_3\"));\n\n newShard.markAsRecovering(\"store\", new RecoveryState(newShard.routingEntry(), localNode, null));\n\n snapshot = newShard.snapshotStoreMetadata();\n assertThat(snapshot.getSegmentsFile().name(), equalTo(\"segments_3\"));\n\n assertTrue(recoverFromStore(newShard));\n\n snapshot = newShard.snapshotStoreMetadata();\n assertThat(snapshot.getSegmentsFile().name(), equalTo(\"segments_3\"));\n\n IndexShardTestCase.updateRoutingEntry(newShard, newShard.routingEntry().moveToStarted());\n\n snapshot = newShard.snapshotStoreMetadata();\n assertThat(snapshot.getSegmentsFile().name(), equalTo(\"segments_3\"));\n\n newShard.close(\"test\", false, false);\n\n snapshot = newShard.snapshotStoreMetadata();\n assertThat(snapshot.getSegmentsFile().name(), equalTo(\"segments_3\"));\n\n closeShards(newShard);\n }", "title": "" }, { "docid": "88fb2613e63de61f89b52b5a9a6dd598", "score": "0.57816106", "text": "@Test\n public void updateDiskSpaceOnReplicaAdditionTest() throws InterruptedException, StoreException {\n generateConfigs(true, false);\n MockDataNodeId localNode = clusterMap.getDataNodes().get(0);\n List<ReplicaId> localReplicas = clusterMap.getReplicaIds(localNode);\n MockClusterParticipant mockHelixParticipant = new MockClusterParticipant();\n StorageManager storageManager =\n createStorageManager(localNode, metricRegistry, Collections.singletonList(mockHelixParticipant));\n storageManager.start();\n PartitionId newPartition = clusterMap.createNewPartition(Collections.singletonList(localNode));\n // Get the replica that has been created for this new partition\n ReplicaId newReplica = newPartition.getReplicaIds()\n .stream()\n .filter(replicaId -> replicaId.getDataNodeId().equals(localNode))\n .findFirst()\n .get();\n // 1. Get disk space before adding the replica\n long diskSpaceBefore = newReplica.getDiskId().getAvailableSpaceInBytes();\n // 2. Induce state transition to add a replica\n mockHelixParticipant.onPartitionBecomeBootstrapFromOffline(newPartition.toPathString());\n // 3. Verify disk space is reduced after adding the replica\n assertEquals(\"Disk space should be reduced after replica addition\",\n diskSpaceBefore - newReplica.getCapacityInBytes(), newReplica.getDiskId().getAvailableSpaceInBytes());\n shutdownAndAssertStoresInaccessible(storageManager, localReplicas);\n }", "title": "" }, { "docid": "7dd3dd656918e32f03c4e1e023c3b0ab", "score": "0.56513506", "text": "@Test\n public void testDiskFailureHandler() throws Exception {\n String tempDirPath = getTempDir(\"StorageManagerTest-\");\n List<ZkInfo> zkInfoList = new ArrayList<>();\n String clusterName = \"StorageManagerTestCluster\";\n String dcName = \"DC0\";\n zkInfoList.add(new ZkInfo(tempDirPath, dcName, (byte) 0, 2199, true));\n String hardwareLayoutPath = tempDirPath + \"/hardwareLayoutTest.json\";\n String partitionLayoutPath = tempDirPath + \"/partitionLayoutTest.json\";\n String zkLayoutPath = tempDirPath + \"/zkLayoutPath.json\";\n String oldBaseMountPath = TestHardwareLayout.baseMountPath;\n long oldMinCapacity = MIN_REPLICA_CAPACITY_IN_BYTES;\n MIN_REPLICA_CAPACITY_IN_BYTES = 1024;\n TestHardwareLayout.baseMountPath = tempDirPath + \"/mnt\";\n TestHardwareLayout testHardwareLayout =\n new TestHardwareLayout(clusterName, 6, 100L * 1024 * 1024 * 1024, 6, 1, 18088, 20, false);\n TestPartitionLayout testPartitionLayout =\n new TestPartitionLayout(testHardwareLayout, 100, PartitionState.READ_WRITE, 1024, 3, null, 0);\n JSONObject zkJson = constructZkLayoutJSON(zkInfoList);\n Utils.writeJsonObjectToFile(zkJson, zkLayoutPath);\n Utils.writeJsonObjectToFile(testHardwareLayout.getHardwareLayout().toJSONObject(), hardwareLayoutPath);\n Utils.writeJsonObjectToFile(testPartitionLayout.getPartitionLayout().toJSONObject(), partitionLayoutPath);\n\n Properties props = new Properties();\n props.setProperty(\"clustermap.host.name\", \"localhost\");\n DataNodeId dataNodeId = testHardwareLayout.getRandomDataNodeFromDc(dcName);\n props.setProperty(\"clustermap.port\", String.valueOf(dataNodeId.getPort()));\n props.setProperty(\"clustermap.cluster.name\", clusterName);\n props.setProperty(\"clustermap.datacenter.name\", dcName);\n props.setProperty(\"clustermap.dcs.zk.connect.strings\", zkJson.toString(2));\n props.setProperty(\"clustermap.data.node.config.source.type\", DataNodeConfigSourceType.PROPERTY_STORE.name());\n props.setProperty(\"clustermap.enable.state.model.listener\", \"true\");\n props.setProperty(\"clustermap.update.datanode.info\", \"true\");\n props.setProperty(ClusterMapConfig.DISTRIBUTED_LOCK_LEASE_TIMEOUT_IN_MS, \"10000\");\n props.setProperty(StoreConfig.storeFailedDiskPercentageToTerminateName, \"90\");\n clusterMapConfig = new ClusterMapConfig(new VerifiableProperties(props));\n storeConfig = new StoreConfig(new VerifiableProperties(props));\n HelixBootstrapUpgradeUtil.bootstrapOrUpgrade(hardwareLayoutPath, partitionLayoutPath, zkLayoutPath, \"\", dcName, 100,\n false, false, new HelixAdminFactory(), false, ClusterMapConfig.AMBRY_STATE_MODEL_DEF, BootstrapCluster,\n DataNodeConfigSourceType.PROPERTY_STORE, false, 1000);\n\n String instanceName = ClusterMapUtils.getInstanceName(\"localhost\", clusterMapConfig.clusterMapPort);\n HelixParticipant helixParticipant = new HelixParticipant(clusterMapConfig, new HelixFactory(), metricRegistry,\n parseDcJsonAndPopulateDcInfo(clusterMapConfig.clusterMapDcsZkConnectStrings).get(\n clusterMapConfig.clusterMapDatacenterName).getZkConnectStrs().get(0), true);\n // Mock a state change listener to throw an exception\n PartitionStateChangeListener listener = mock(PartitionStateChangeListener.class);\n doThrow(new StateTransitionException(\"error\", StateTransitionException.TransitionErrorCode.BootstrapFailure)).when(\n listener).onPartitionBecomeBootstrapFromOffline(anyString());\n helixParticipant.registerPartitionStateChangeListener(StateModelListenerType.StatsManagerListener, listener);\n helixParticipant.participate(Collections.emptyList(), null, null);\n\n HelixAdmin helixAdmin = helixParticipant.getHelixAdmin();\n HelixClusterManager clusterMap =\n new HelixClusterManager(clusterMapConfig, instanceName, new HelixFactory(), metricRegistry);\n\n try {\n DataNodeId localNode = clusterMap.getDataNodeId(\"localhost\", clusterMapConfig.clusterMapPort);\n List<? extends ReplicaId> replicas = clusterMap.getReplicaIds(localNode);\n Map<DiskId, List<ReplicaId>> diskToReplicas = new HashMap<>();\n for (ReplicaId replica : replicas) {\n diskToReplicas.computeIfAbsent(replica.getDiskId(), disk -> new ArrayList<>()).add(replica);\n }\n // Create all mount paths\n for (DiskId diskId : diskToReplicas.keySet()) {\n File file = new File(diskId.getMountPath());\n if (!file.exists()) {\n assertTrue(file.mkdirs());\n file.deleteOnExit();\n }\n }\n StorageManager storageManager =\n new StorageManager(storeConfig, diskManagerConfig, Utils.newScheduler(1, false), metricRegistry,\n new MockIdFactory(), clusterMap, localNode, new DummyMessageStoreHardDelete(),\n Collections.singletonList(helixParticipant), SystemTime.getInstance(), new DummyMessageStoreRecovery(),\n new InMemAccountService(false, false));\n storageManager.start();\n // starting the storage manager won't start Disk failure handler right away, since there is a 10 minutes\n // delay to run the handler in a scheduler\n StorageManager.DiskFailureHandler handler = storageManager.new DiskFailureHandler();\n\n assertEquals(new ArrayList<>(storageManager.getDiskToDiskManager().keySet()), handler.getAllDisks());\n assertEquals(\"There shouldn't be any failed disk\", 0, handler.getFailedDisks().size());\n // Turn FULL_AUTO on this host\n String resourceName = helixAdmin.getResourcesInCluster(clusterName).get(0);\n IdealState idealState = helixAdmin.getResourceIdealState(clusterName, resourceName);\n InstanceConfig instanceConfig = helixAdmin.getInstanceConfig(clusterName, instanceName);\n final String instanceGroupTag = \"TAG_1000000\";\n idealState.setRebalanceMode(IdealState.RebalanceMode.FULL_AUTO);\n idealState.setInstanceGroupTag(instanceGroupTag);\n instanceConfig.addTag(instanceGroupTag);\n helixAdmin.setInstanceConfig(clusterName, instanceName, instanceConfig);\n helixAdmin.setResourceIdealState(clusterName, resourceName, idealState);\n Thread.sleep(500); // wait for clustermap to catch up\n assertTrue(clusterMap.isDataNodeInFullAutoMode(localNode));\n // Set every replicas to error state\n sendStateTransitionMessages(helixParticipant.getHelixManager(), \"10000\", replicas, \"OFFLINE\", \"BOOTSTRAP\");\n Thread.sleep(1000);\n\n long failureCountBefore = storageManager.getStoreMainMetrics().handleDiskFailureCount.getCount();\n // The case where there is no failed disk, running handler doesn't change anything.\n handler.run();\n assertEquals(failureCountBefore, storageManager.getStoreMainMetrics().handleDiskFailureCount.getCount());\n\n DiskId diskToFail = diskToReplicas.entrySet().iterator().next().getKey();\n List<ReplicaId> replicasOnFailedDisk = diskToReplicas.get(diskToFail);\n\n // The case where all but one replicas on the given disk are shutdown. Since the disk is not considered as failed,\n // running the handler doesn't change anything.\n for (int i = 0; i < replicasOnFailedDisk.size() - 1; i++) {\n storageManager.getStore(replicasOnFailedDisk.get(i).getPartitionId(), false).shutdown();\n }\n handler.run();\n assertEquals(failureCountBefore, storageManager.getStoreMainMetrics().handleDiskFailureCount.getCount());\n\n // The case where all replicas on this disk are down\n long successCount = storageManager.getStoreMainMetrics().handleDiskFailureSuccessCount.getCount();\n storageManager.getStore(replicasOnFailedDisk.get(replicasOnFailedDisk.size() - 1).getPartitionId(), false)\n .shutdown();\n verifyDiskFailureSuccess(storageManager, handler, helixAdmin, clusterMap, clusterName, localNode, diskToReplicas,\n diskToFail);\n\n // The case to run this again, since there is no new failed disk, running the handler again won't change anything.\n failureCountBefore = storageManager.getStoreMainMetrics().handleDiskFailureCount.getCount();\n successCount = storageManager.getStoreMainMetrics().handleDiskFailureSuccessCount.getCount();\n handler.run();\n assertEquals(failureCountBefore, storageManager.getStoreMainMetrics().handleDiskFailureCount.getCount());\n assertEquals(successCount, storageManager.getStoreMainMetrics().handleDiskFailureSuccessCount.getCount());\n\n // The case to fail another disk\n List<DiskId> healthyDisks = new ArrayList<>(diskToReplicas.keySet());\n healthyDisks.remove(diskToFail);\n diskToFail = healthyDisks.iterator().next();\n replicasOnFailedDisk = diskToReplicas.get(diskToFail);\n for (ReplicaId replica : replicasOnFailedDisk) {\n storageManager.getStore(replica.getPartitionId(), false).shutdown();\n }\n verifyDiskFailureSuccess(storageManager, handler, helixAdmin, clusterMap, clusterName, localNode, diskToReplicas,\n diskToFail);\n\n // The case that all the disks are down.\n AtomicBoolean invoked = new AtomicBoolean();\n storageManager.setTerminateCallback(() -> {\n invoked.set(true);\n });\n for (List<ReplicaId> listOfReplicas : diskToReplicas.values()) {\n for (ReplicaId replica : listOfReplicas) {\n storageManager.getStore(replica.getPartitionId(), false).shutdown();\n }\n }\n failureCountBefore = storageManager.getStoreMainMetrics().handleDiskFailureCount.getCount();\n handler.run();\n assertTrue(invoked.get());\n assertEquals(failureCountBefore + 1, storageManager.getStoreMainMetrics().handleDiskFailureCount.getCount());\n\n storageManager.setTerminateCallback(null);\n storageManager.shutdown();\n } finally {\n TestHardwareLayout.baseMountPath = oldBaseMountPath;\n MIN_REPLICA_CAPACITY_IN_BYTES = oldMinCapacity;\n try {\n Utils.deleteFileOrDirectory(new File(tempDirPath));\n clusterMap.close();\n helixParticipant.close();\n helixAdmin.dropCluster(clusterName);\n for (ZkInfo zkInfo : zkInfoList) {\n zkInfo.shutdown();\n }\n } catch (Exception e) {\n System.out.println(\"Fail to clean up all the components:\" + e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "600402ffd39c44e512ef56803929db05", "score": "0.56479603", "text": "@Test\n public void successfulStartupShutdownTest() throws Exception {\n MockDataNodeId dataNode = clusterMap.getDataNodes().get(0);\n List<ReplicaId> replicas = clusterMap.getReplicaIds(dataNode);\n StorageManager storageManager = createStorageManager(dataNode, metricRegistry, null);\n storageManager.start();\n assertEquals(\"There should be no unexpected partitions reported\", 0, getNumUnrecognizedPartitionsReported());\n checkStoreAccessibility(replicas, null, storageManager);\n Map<String, Counter> counters = metricRegistry.getCounters();\n assertEquals(0,\n getCounterValue(counters, DiskSpaceAllocator.class.getName(), \"DiskSpaceAllocatorInitFailureCount\"));\n assertEquals(0, getCounterValue(counters, DiskManager.class.getName(), \"TotalStoreStartFailures\"));\n assertEquals(0, getCounterValue(counters, DiskManager.class.getName(), \"DiskMountPathFailures\"));\n MockPartitionId invalidPartition =\n new MockPartitionId(Long.MAX_VALUE, MockClusterMap.DEFAULT_PARTITION_CLASS, Collections.emptyList(), 0);\n assertNull(\"Should not have found a store for an invalid partition.\",\n storageManager.getStore(invalidPartition, false));\n assertEquals(\"Compaction thread count is incorrect\", dataNode.getMountPaths().size(),\n TestUtils.numThreadsByThisName(CompactionManager.THREAD_NAME_PREFIX));\n verifyCompactionThreadCount(storageManager, dataNode.getMountPaths().size());\n shutdownAndAssertStoresInaccessible(storageManager, replicas);\n assertEquals(\"Compaction thread count is incorrect\", 0, storageManager.getCompactionThreadCount());\n assertEquals(0, getCounterValue(counters, DiskManager.class.getName(), \"TotalStoreShutdownFailures\"));\n }", "title": "" }, { "docid": "d392b5696e9394420ea5f27943033549", "score": "0.55842924", "text": "private void doBucketsSyncOnPrimaryLoss(TestType typeOfTest) {\n IgnoredException.addIgnoredException(\"killing member's ds\");\n IgnoredException.addIgnoredException(\"killing member's ds\");\n Host host = Host.getHost(0);\n VM vm0 = host.getVM(0);\n VM vm1 = host.getVM(1);\n VM vm2 = host.getVM(2);\n Set<VM> verifyVMs = new HashSet<>();\n\n final String name = getUniqueName() + \"Region\";\n\n verifyVMs.add(vm0);\n verifyVMs.add(vm1);\n verifyVMs.add(vm2);\n\n createRegion(vm0, name, typeOfTest);\n createRegion(vm1, name, typeOfTest);\n createRegion(vm2, name, typeOfTest);\n\n createEntry1(vm0);\n\n VM primaryOwner;\n if (isPrimaryForBucket0(vm0)) {\n primaryOwner = vm0;\n } else if (isPrimaryForBucket0(vm1)) {\n primaryOwner = vm1;\n } else {\n primaryOwner = vm2;\n }\n\n verifyVMs.remove(primaryOwner);\n\n // cause one of the VMs to throw away the next operation\n VM creatorVM = null;\n InternalDistributedMember primaryID = getId(primaryOwner);\n VersionSource primaryVersionID = getVersionID(primaryOwner);\n for (VM vm : verifyVMs) {\n creatorVM = vm;\n createEntry2(creatorVM, primaryID, primaryVersionID);\n break;\n }\n\n verifyVMs.remove(creatorVM);\n\n // Now we crash the primary bucket owner simulating death during distribution.\n // The backup buckets should perform a delta-GII for the lost member and\n // get back in sync\n DistributedTestUtils.crashDistributedSystem(primaryOwner);\n\n for (VM vm : verifyVMs) {\n verifySynchronized(vm, primaryID);\n }\n }", "title": "" }, { "docid": "cd6d71028b749fe780bbebac683b1e90", "score": "0.5532289", "text": "public void testZoneBalanced() {\n Map<String, Integer> nodesPerZone = new HashMap<>();\n nodesPerZone.put(\"zone_0\", 3);\n nodesPerZone.put(\"zone_1\", 3);\n createEmptyZoneAwareCluster(nodesPerZone);\n addIndices(\"index_\", 4, 5, 1);\n\n buildZoneAwareAllocationService();\n allocateAndCheckIndexShardHotSpots(false, 6);\n\n resetCluster();\n buildZoneAwareAllocationService();\n allocateAndCheckIndexShardHotSpots(false, 6);\n }", "title": "" }, { "docid": "ca7fd5c77c338b25f503fb9afd06cc79", "score": "0.55265707", "text": "private void updateUnpartitionedTableStats() throws CatalogException {\n // Just update the single partition if its #rows is stale.\n HdfsPartition oldPartition = Iterables.getOnlyElement(partitionMap_.values());\n if (oldPartition.getNumRows() != getNumRows()) {\n HdfsPartition.Builder partBuilder = new HdfsPartition.Builder(oldPartition)\n .setNumRows(getNumRows());\n updatePartition(partBuilder);\n }\n }", "title": "" }, { "docid": "7268d857ed7fc29f30baec2e8eb05658", "score": "0.55264926", "text": "@Test\n public void testStorageUpgrade() throws Exception {\n UpgradeTestsDataInitializer.verifyData(data);\n //Add more data to the new registry instance.\n UpgradeTestsDataInitializer.createMoreArtifacts(data);\n //Verify the new data.\n UpgradeTestsDataInitializer.verifyData(data);\n }", "title": "" }, { "docid": "832f2c72f5992c1321c98e83230c5146", "score": "0.5518124", "text": "public void testStatsOnRemoteStoreRestore() throws IOException {\n int dataNodeCount = client().admin().cluster().prepareHealth().get().getNumberOfDataNodes();\n createIndex(INDEX_NAME, remoteStoreIndexSettings(0, dataNodeCount));\n ensureGreen(INDEX_NAME);\n\n // Index some docs to ensure segments being uploaded to remote store\n indexDocs();\n refresh(INDEX_NAME);\n\n // Stop one data node to force the index into a red state\n internalCluster().stopRandomDataNode();\n ensureRed(INDEX_NAME);\n\n // Start another data node to fulfil the previously launched capacity\n internalCluster().startDataOnlyNode();\n\n // Restore index from remote store\n assertAcked(client().admin().indices().prepareClose(INDEX_NAME));\n client().admin()\n .cluster()\n .restoreRemoteStore(new RestoreRemoteStoreRequest().indices(INDEX_NAME).restoreAllShards(true), PlainActionFuture.newFuture());\n\n // Ensure that the index is green\n ensureGreen(INDEX_NAME);\n\n // Index some more docs to force segment uploads to remote store\n indexDocs();\n\n RemoteStoreStatsResponse remoteStoreStatsResponse = client().admin().cluster().prepareRemoteStoreStats(INDEX_NAME, \"0\").get();\n Arrays.stream(remoteStoreStatsResponse.getRemoteStoreStats()).forEach(statObject -> {\n RemoteSegmentTransferTracker.Stats segmentTracker = statObject.getSegmentStats();\n // Assert that we have both upload and download stats for the index\n assertTrue(\n segmentTracker.totalUploadsStarted > 0 && segmentTracker.totalUploadsSucceeded > 0 && segmentTracker.totalUploadsFailed == 0\n );\n assertTrue(\n segmentTracker.directoryFileTransferTrackerStats.transferredBytesStarted > 0\n && segmentTracker.directoryFileTransferTrackerStats.transferredBytesSucceeded > 0\n );\n });\n }", "title": "" }, { "docid": "7db085c45c05f03e7ec3779e36c8e0cd", "score": "0.5485557", "text": "@Test\n public void testVacuumingOneUnitOfDirt(){\n bucket = DirtBucket.getInstance();\n\n //Check that the bucket is empty\n assertThat(bucket.getCapacity(), equalTo(50));\n\n //Vacuum One unit of dirt\n bucket.vacuumDirt();\n\n //Check that capacity is one less\n assertThat(bucket.getCapacity(), equalTo(49));\n }", "title": "" }, { "docid": "c74bb8b2fa33b93eca0a2a273e6509a0", "score": "0.5468368", "text": "@Test\n\tpublic void regionDeBD(){\n\t\tEntityManager em = PerThreadEntityManagers.getEntityManager();\n\t\tlong id = 1;\n\t\tregion = em.find(Region.class,id);\n\t\tassertEquals(100000,region.poblacionTotal());\n\t}", "title": "" }, { "docid": "097466cde29b49952f0ae4f5331ff12f", "score": "0.5468318", "text": "public void testDownloadStatsCorrectnessSinglePrimaryMultipleReplicaShards() throws Exception {\n int dataNodeCount = client().admin().cluster().prepareHealth().get().getNumberOfDataNodes();\n createIndex(\n INDEX_NAME,\n Settings.builder()\n .put(remoteStoreIndexSettings(dataNodeCount - 1, 1))\n .put(IndexSettings.INDEX_REFRESH_INTERVAL_SETTING.getKey(), -1)\n .build()\n );\n ensureGreen(INDEX_NAME);\n\n // Manually invoke a refresh\n refresh(INDEX_NAME);\n\n // Get zero state values\n // Extract and assert zero state primary stats\n RemoteStoreStatsResponse zeroStateResponse = client().admin().cluster().prepareRemoteStoreStats(INDEX_NAME, \"0\").get();\n RemoteSegmentTransferTracker.Stats zeroStatePrimaryStats = Arrays.stream(zeroStateResponse.getRemoteStoreStats())\n .filter(remoteStoreStats -> remoteStoreStats.getShardRouting().primary())\n .collect(Collectors.toList())\n .get(0)\n .getSegmentStats();\n assertTrue(\n zeroStatePrimaryStats.totalUploadsStarted == zeroStatePrimaryStats.totalUploadsSucceeded\n && zeroStatePrimaryStats.totalUploadsSucceeded == 1\n );\n assertTrue(\n zeroStatePrimaryStats.uploadBytesStarted == zeroStatePrimaryStats.uploadBytesSucceeded\n && zeroStatePrimaryStats.uploadBytesSucceeded > 0\n );\n assertTrue(zeroStatePrimaryStats.totalUploadsFailed == 0 && zeroStatePrimaryStats.uploadBytesFailed == 0);\n\n // Extract and assert zero state replica stats\n List<RemoteStoreStats> zeroStateReplicaStats = Arrays.stream(zeroStateResponse.getRemoteStoreStats())\n .filter(remoteStoreStats -> !remoteStoreStats.getShardRouting().primary())\n .collect(Collectors.toList());\n zeroStateReplicaStats.forEach(stats -> {\n assertTrue(\n stats.getSegmentStats().directoryFileTransferTrackerStats.transferredBytesStarted == 0\n && stats.getSegmentStats().directoryFileTransferTrackerStats.transferredBytesSucceeded == 0\n );\n });\n\n int currentNodesInCluster = client().admin().cluster().prepareHealth().get().getNumberOfDataNodes();\n for (int i = 0; i < randomIntBetween(5, 10); i++) {\n indexSingleDoc(INDEX_NAME);\n // Running Flush & Refresh manually\n flushAndRefresh(INDEX_NAME);\n\n assertBusy(() -> {\n RemoteStoreStatsResponse response = client().admin().cluster().prepareRemoteStoreStats(INDEX_NAME, \"0\").get();\n assertEquals(currentNodesInCluster, response.getSuccessfulShards());\n long uploadsStarted = 0, uploadsSucceeded = 0, uploadsFailed = 0;\n long uploadBytesStarted = 0, uploadBytesSucceeded = 0, uploadBytesFailed = 0;\n List<Long> downloadBytesStarted = new ArrayList<>(), downloadBytesSucceeded = new ArrayList<>(), downloadBytesFailed =\n new ArrayList<>();\n\n // Assert that stats for primary shard and replica shard set are equal\n for (RemoteStoreStats eachStatsObject : response.getRemoteStoreStats()) {\n RemoteSegmentTransferTracker.Stats stats = eachStatsObject.getSegmentStats();\n if (eachStatsObject.getShardRouting().primary()) {\n uploadBytesStarted = stats.uploadBytesStarted;\n uploadBytesSucceeded = stats.uploadBytesSucceeded;\n uploadBytesFailed = stats.uploadBytesFailed;\n } else {\n downloadBytesStarted.add(stats.directoryFileTransferTrackerStats.transferredBytesStarted);\n downloadBytesSucceeded.add(stats.directoryFileTransferTrackerStats.transferredBytesSucceeded);\n downloadBytesFailed.add(stats.directoryFileTransferTrackerStats.transferredBytesFailed);\n }\n }\n\n assertEquals(0, uploadsFailed);\n assertEquals(0, uploadBytesFailed);\n for (int j = 0; j < response.getSuccessfulShards() - 1; j++) {\n assertTrue(uploadBytesStarted - zeroStatePrimaryStats.uploadBytesStarted > downloadBytesStarted.get(j));\n assertTrue(uploadBytesSucceeded - zeroStatePrimaryStats.uploadBytesSucceeded > downloadBytesSucceeded.get(j));\n assertEquals(0, (long) downloadBytesFailed.get(j));\n }\n }, 60, TimeUnit.SECONDS);\n }\n }", "title": "" }, { "docid": "89f315ebd493a30acb37bba04ac4dc94", "score": "0.54505134", "text": "@Test\n public void testMerge() throws Exception {\n LOG.info(\"Starting \" + name.getMethodName());\n final TableName tableName = TableName.valueOf(name.getMethodName());\n final Admin admin = TEST_UTIL.getAdmin();\n\n try {\n // Create table and load data.\n Table table = createTableAndLoadData(MASTER, tableName);\n AssignmentManager am = MASTER.getAssignmentManager();\n List<RegionInfo> regions = am.getRegionStates().getRegionsOfTable(tableName);\n // Fake offline one region\n RegionInfo a = regions.get(0);\n RegionInfo b = regions.get(1);\n am.unassign(b);\n am.offlineRegion(b);\n try {\n // Merge offline region. Region a is offline here\n FutureUtils.get(\n admin.mergeRegionsAsync(a.getEncodedNameAsBytes(), b.getEncodedNameAsBytes(), false));\n fail(\"Offline regions should not be able to merge\");\n } catch (DoNotRetryRegionException ie) {\n System.out.println(ie);\n assertTrue(ie instanceof MergeRegionException);\n }\n\n try {\n // Merge the same region: b and b.\n FutureUtils\n .get(admin.mergeRegionsAsync(b.getEncodedNameAsBytes(), b.getEncodedNameAsBytes(), true));\n fail(\"A region should not be able to merge with itself, even forcfully\");\n } catch (IOException ie) {\n assertTrue(\"Exception should mention regions not online\",\n StringUtils.stringifyException(ie).contains(\"region to itself\")\n && ie instanceof MergeRegionException);\n }\n\n try {\n // Merge unknown regions\n FutureUtils.get(admin.mergeRegionsAsync(Bytes.toBytes(\"-f1\"), Bytes.toBytes(\"-f2\"), true));\n fail(\"Unknown region could not be merged\");\n } catch (IOException ie) {\n assertTrue(\"UnknownRegionException should be thrown\", ie instanceof UnknownRegionException);\n }\n table.close();\n } finally {\n TEST_UTIL.deleteTable(tableName);\n }\n }", "title": "" }, { "docid": "430a43fa4f70d804dfe5c0b3cc7a3720", "score": "0.54404503", "text": "private void doTest(DistributedRegion region, EntryEventImpl event, int cnt) {\n verifyDistributeUpdate(region, event, cnt);\n\n // do the basicDestroy test\n verifyDistributeDestroy(region, event, cnt);\n\n // do the basicInvalidate test\n verifyDistributeInvalidate(region, event, cnt);\n\n // do the basicUpdateEntryVersion test\n verifyDistributeUpdateEntryVersion(region, event, cnt);\n }", "title": "" }, { "docid": "2e648b1784f9fc51c205a89ea4c054a4", "score": "0.5434768", "text": "@Test\n\tpublic void testMemoryAccessesAtRegionEnd1() {\n\t\t// Processor<ViserLine> proc = machine.getProc(P0);\n\n\t\tmachine.testCacheMemoryWrite(P0, 80L, 2, 6, T0);\n\t\tmachine.testCacheMemoryWrite(P0, 64L, 2, 23, T0);\n\n\t\tmachine.testProcessRegionBoundary(P0, T0, EventType.LOCK_ACQUIRE);\n\t}", "title": "" }, { "docid": "51c0dd0cd4a9e8de22c42eaf28754672", "score": "0.54341334", "text": "private void updateStorageBackupSlide(Communicator parsedTSV) {\n StorageBackupSlide storageBackupSlide = (StorageBackupSlide) UserSlideList.getUserSlide(\"Storage and Backup\");\n storageBackupSlide.setStartValues(parsedTSV.getQsampleType());\n }", "title": "" }, { "docid": "3b671631de4327f3dfedbb8a993e4df9", "score": "0.5411768", "text": "public void testStatsResponseAllShards() {\n createIndex(INDEX_NAME, remoteStoreIndexSettings(0, 3));\n ensureYellowAndNoInitializingShards(INDEX_NAME);\n ensureGreen(INDEX_NAME);\n\n indexDocs();\n\n // Step 2 - We find all the nodes that are present in the cluster. We make the remote store stats api call from\n // each of the node in the cluster and check that the response is coming as expected.\n ClusterState state = getClusterState();\n String node = state.nodes().getDataNodes().values().stream().map(DiscoveryNode::getName).findFirst().get();\n RemoteStoreStatsRequestBuilder remoteStoreStatsRequestBuilder = client(node).admin()\n .cluster()\n .prepareRemoteStoreStats(INDEX_NAME, null);\n RemoteStoreStatsResponse response = remoteStoreStatsRequestBuilder.get();\n assertEquals(3, response.getSuccessfulShards());\n assertTrue(response.getRemoteStoreStats() != null && response.getRemoteStoreStats().length == 3);\n RemoteSegmentTransferTracker.Stats segmentStats = response.getRemoteStoreStats()[0].getSegmentStats();\n validateSegmentUploadStats(segmentStats);\n assertEquals(0, segmentStats.directoryFileTransferTrackerStats.transferredBytesStarted);\n\n // Step 3 - Enable replicas on the existing indices and ensure that download\n // stats are being populated as well\n changeReplicaCountAndEnsureGreen(1);\n response = client(node).admin().cluster().prepareRemoteStoreStats(INDEX_NAME, null).get();\n assertEquals(6, response.getSuccessfulShards());\n assertTrue(response.getRemoteStoreStats() != null && response.getRemoteStoreStats().length == 6);\n for (RemoteStoreStats stat : response.getRemoteStoreStats()) {\n ShardRouting routing = stat.getShardRouting();\n validateShardRouting(routing);\n segmentStats = stat.getSegmentStats();\n if (routing.primary()) {\n validateSegmentUploadStats(segmentStats);\n assertEquals(0, segmentStats.directoryFileTransferTrackerStats.transferredBytesStarted);\n } else {\n validateSegmentDownloadStats(segmentStats);\n assertEquals(0, segmentStats.totalUploadsStarted);\n }\n }\n\n }", "title": "" }, { "docid": "ac311b4b643edba0212bd290b803fbba", "score": "0.53949", "text": "void snapshot() throws StorageException;", "title": "" }, { "docid": "c3f7aa8ae8559b02acb4fee0d3103d8f", "score": "0.5384287", "text": "@AfterClass\n\t\tpublic static void checkResults() {\n\t\t\tassertEquals(cacheBmpSizeIterationLoad, cacheBmpSizeBulkLoad);\n\t\t\tassertEquals(cacheFactsSizeIterationLoad, cacheFactsSizeBulkLoad);\n\t\t}", "title": "" }, { "docid": "438e6f5ad98887f77d30392081cdf4cb", "score": "0.53433716", "text": "public void testDownloadStatsCorrectnessSinglePrimarySingleReplica() throws Exception {\n createIndex(\n INDEX_NAME,\n Settings.builder().put(remoteStoreIndexSettings(1, 1)).put(IndexSettings.INDEX_REFRESH_INTERVAL_SETTING.getKey(), -1).build()\n );\n ensureGreen(INDEX_NAME);\n\n // Manually invoke a refresh\n refresh(INDEX_NAME);\n\n // Get zero state values\n // Extract and assert zero state primary stats\n RemoteStoreStatsResponse zeroStateResponse = client().admin().cluster().prepareRemoteStoreStats(INDEX_NAME, \"0\").get();\n RemoteSegmentTransferTracker.Stats zeroStatePrimaryStats = Arrays.stream(zeroStateResponse.getRemoteStoreStats())\n .filter(remoteStoreStats -> remoteStoreStats.getShardRouting().primary())\n .collect(Collectors.toList())\n .get(0)\n .getSegmentStats();\n assertTrue(\n zeroStatePrimaryStats.totalUploadsStarted == zeroStatePrimaryStats.totalUploadsSucceeded\n && zeroStatePrimaryStats.totalUploadsSucceeded == 1\n );\n assertTrue(\n zeroStatePrimaryStats.uploadBytesStarted == zeroStatePrimaryStats.uploadBytesSucceeded\n && zeroStatePrimaryStats.uploadBytesSucceeded > 0\n );\n assertTrue(zeroStatePrimaryStats.totalUploadsFailed == 0 && zeroStatePrimaryStats.uploadBytesFailed == 0);\n\n // Extract and assert zero state replica stats\n RemoteSegmentTransferTracker.Stats zeroStateReplicaStats = Arrays.stream(zeroStateResponse.getRemoteStoreStats())\n .filter(remoteStoreStats -> !remoteStoreStats.getShardRouting().primary())\n .collect(Collectors.toList())\n .get(0)\n .getSegmentStats();\n assertTrue(\n zeroStateReplicaStats.directoryFileTransferTrackerStats.transferredBytesStarted == 0\n && zeroStateReplicaStats.directoryFileTransferTrackerStats.transferredBytesSucceeded == 0\n );\n\n // Index documents\n for (int i = 1; i <= randomIntBetween(5, 10); i++) {\n indexSingleDoc(INDEX_NAME);\n // Running Flush & Refresh manually\n flushAndRefresh(INDEX_NAME);\n ensureGreen(INDEX_NAME);\n\n // Poll for RemoteStore Stats\n assertBusy(() -> {\n RemoteStoreStatsResponse response = client().admin().cluster().prepareRemoteStoreStats(INDEX_NAME, \"0\").get();\n // Iterate through the response and extract the relevant segment upload and download stats\n List<RemoteStoreStats> primaryStatsList = Arrays.stream(response.getRemoteStoreStats())\n .filter(remoteStoreStats -> remoteStoreStats.getShardRouting().primary())\n .collect(Collectors.toList());\n assertEquals(1, primaryStatsList.size());\n List<RemoteStoreStats> replicaStatsList = Arrays.stream(response.getRemoteStoreStats())\n .filter(remoteStoreStats -> !remoteStoreStats.getShardRouting().primary())\n .collect(Collectors.toList());\n assertEquals(1, replicaStatsList.size());\n RemoteSegmentTransferTracker.Stats primaryStats = primaryStatsList.get(0).getSegmentStats();\n RemoteSegmentTransferTracker.Stats replicaStats = replicaStatsList.get(0).getSegmentStats();\n // Assert Upload syncs - zero state uploads == download syncs\n assertTrue(primaryStats.totalUploadsStarted > 0);\n assertTrue(primaryStats.totalUploadsSucceeded > 0);\n assertTrue(\n replicaStats.directoryFileTransferTrackerStats.transferredBytesStarted > 0\n && primaryStats.uploadBytesStarted\n - zeroStatePrimaryStats.uploadBytesStarted >= replicaStats.directoryFileTransferTrackerStats.transferredBytesStarted\n );\n assertTrue(\n replicaStats.directoryFileTransferTrackerStats.transferredBytesSucceeded > 0\n && primaryStats.uploadBytesSucceeded\n - zeroStatePrimaryStats.uploadBytesSucceeded >= replicaStats.directoryFileTransferTrackerStats.transferredBytesSucceeded\n );\n // Assert zero failures\n assertEquals(0, primaryStats.uploadBytesFailed);\n assertEquals(0, replicaStats.directoryFileTransferTrackerStats.transferredBytesFailed);\n }, 60, TimeUnit.SECONDS);\n }\n }", "title": "" }, { "docid": "49a06f9a8147827feefe221431208cb6", "score": "0.53301287", "text": "@Test\n\tpublic void verifySnapshotUpdates() throws Exception {\n\n\t\tfinal AetherBasedResolver resolver = new AetherBasedResolver(\n\t\t\t\ttestConfig());\n\n\t\tLOG.info(\"init\");\n\n\t\tfinal long time0 = System.currentTimeMillis();\n\n\t\tLOG.info(\"first\");\n\t\tfinal long time1;\n\t\t{\n\t\t\tmavenDeploy();\n\n\t\t\tfinal File file = //\n\t\t\tresolver.resolveFile(GROUP, ARTIFACT, \"\", TYPE, VERSION);\n\n\t\t\ttime1 = file.lastModified();\n\t\t}\n\n\t\tLOG.info(\"second\");\n\t\tfinal long time2;\n\t\t{\n\t\t\tmavenDeploy();\n\n\t\t\tfinal File file = //\n\t\t\tresolver.resolveFile(GROUP, ARTIFACT, \"\", TYPE, VERSION);\n\n\t\t\ttime2 = file.lastModified();\n\t\t}\n\n\t\tLOG.info(\"verify\");\n\n\t\tassertTrue(time0 > 0);\n\t\tassertTrue(time1 > 0);\n\t\tassertTrue(time2 > 0);\n\n\t\tassertTrue(\"first is fresh\", time1 > time0);\n\t\tassertTrue(\"second is fresh\", time2 > time0);\n\n\t\tassertTrue(\"second after frirst\", time2 > time1);\n\n\t\tLOG.info(\"done\");\n\n\t}", "title": "" }, { "docid": "2c03ac5c66486d052937c140ed424e56", "score": "0.5320831", "text": "@Test\n public void checkBucketFullWhenBucketIsFull(){\n bucket = DirtBucket.getInstance();\n\n //Check that the bucket is empty\n assertThat(bucket.getCapacity(), equalTo(50));\n\n //Fill bucket until there is no capacity\n for (int i = 0; i < 50; i++){\n bucket.vacuumDirt();\n }\n\n //Check that the bucket is considered full\n assertThat(bucket.bucketFull(), is(true));\n }", "title": "" }, { "docid": "fce69192d849e621c9e19b14f7d4e9d0", "score": "0.5319402", "text": "@Test\n public void checkBucketFullWhenNotFull(){\n bucket = DirtBucket.getInstance();\n\n //Check that the bucket is empty\n assertThat(bucket.getCapacity(), equalTo(50));\n\n //Check that the bucket is not considered full\n assertFalse(bucket.bucketFull());\n }", "title": "" }, { "docid": "7d1c9aa1dfdd4e8f9123e0bf2bb37596", "score": "0.52944446", "text": "@Test\n public void testDestroy() {\n DiskRegionStats diskStats = diskRegion.getStats();\n EvictionCounters lruStats = getLRUStats(region);\n\n IntStream.range(0, MAX_ENTRIES + 1).forEach((i) -> region.put(i, \"value\"));\n assertEquals(0, diskStats.getRemoves());\n assertEquals(1, lruStats.getEvictions());\n\n // Destroying entries in memory should have no effect on the disk\n IntStream.range(1, MAX_ENTRIES + 1).forEach(region::destroy);\n assertEquals(0, diskStats.getRemoves());\n assertEquals(1, lruStats.getEvictions());\n\n // Destroying entry overflowed to disk should cause remove on disk\n region.destroy(0);\n assertEquals(1, diskStats.getRemoves());\n assertEquals(1, lruStats.getEvictions());\n assertEquals(0, region.keySet().size());\n }", "title": "" }, { "docid": "a596b3403ef9bcf6bdc18ed00bc9baaf", "score": "0.5289294", "text": "@Test\n public void replicaFromStandbyToInactiveTest() throws Exception {\n generateConfigs(true, false);\n MockDataNodeId localNode = clusterMap.getDataNodes().get(0);\n List<ReplicaId> localReplicas = clusterMap.getReplicaIds(localNode);\n MockClusterParticipant mockHelixParticipant = new MockClusterParticipant();\n StorageManager storageManager =\n createStorageManager(localNode, metricRegistry, Collections.singletonList(mockHelixParticipant));\n storageManager.start();\n // 1. get listeners from Helix participant and verify there is a storageManager listener.\n Map<StateModelListenerType, PartitionStateChangeListener> listeners =\n mockHelixParticipant.getPartitionStateChangeListeners();\n assertTrue(\"Should contain storage manager listener\",\n listeners.containsKey(StateModelListenerType.StorageManagerListener));\n // 2. not found replica should encounter exception\n try {\n mockHelixParticipant.onPartitionBecomeInactiveFromStandby(\"-1\");\n fail(\"should fail because replica is not found\");\n } catch (StateTransitionException e) {\n assertEquals(\"Error code doesn't match\", ReplicaNotFound, e.getErrorCode());\n }\n // 3. not found store should throw exception (induced by removing the store)\n ReplicaId replicaToRemove = localReplicas.get(localReplicas.size() - 1);\n storageManager.controlCompactionForBlobStore(replicaToRemove.getPartitionId(), false);\n storageManager.shutdownBlobStore(replicaToRemove.getPartitionId());\n storageManager.getDiskManager(replicaToRemove.getPartitionId()).removeBlobStore(replicaToRemove.getPartitionId());\n try {\n mockHelixParticipant.onPartitionBecomeInactiveFromStandby(replicaToRemove.getPartitionId().toPathString());\n fail(\"should fail because store is not found\");\n } catch (StateTransitionException e) {\n assertEquals(\"Error code doesn't match\", ReplicaNotFound, e.getErrorCode());\n }\n // 4. store not started exception\n ReplicaId localReplica = localReplicas.get(0);\n storageManager.shutdownBlobStore(localReplica.getPartitionId());\n try {\n mockHelixParticipant.onPartitionBecomeInactiveFromStandby(localReplica.getPartitionId().toPathString());\n fail(\"should fail because store is not started\");\n } catch (StateTransitionException e) {\n assertEquals(\"Error code doesn't match\", StoreNotStarted, e.getErrorCode());\n }\n storageManager.startBlobStore(localReplica.getPartitionId());\n // 5. store is disabled due to disk I/O error\n BlobStore localStore = (BlobStore) storageManager.getStore(localReplica.getPartitionId());\n localStore.setDisableState(true);\n try {\n mockHelixParticipant.onPartitionBecomeInactiveFromStandby(localReplica.getPartitionId().toPathString());\n fail(\"should fail because store is disabled\");\n } catch (StateTransitionException e) {\n assertEquals(\"Error code doesn't match\", ReplicaOperationFailure, e.getErrorCode());\n }\n localStore.setDisableState(false);\n // 6. success case (verify both replica's state and decommission file)\n mockHelixParticipant.onPartitionBecomeInactiveFromStandby(localReplica.getPartitionId().toPathString());\n assertEquals(\"local store state should be set to INACTIVE\", ReplicaState.INACTIVE,\n storageManager.getStore(localReplica.getPartitionId()).getCurrentState());\n File decommissionFile = new File(localReplica.getReplicaPath(), BlobStore.DECOMMISSION_FILE_NAME);\n assertTrue(\"Decommission file is not found in local replica's dir\", decommissionFile.exists());\n shutdownAndAssertStoresInaccessible(storageManager, localReplicas);\n\n // 7. mock disable compaction failure\n mockHelixParticipant = new MockClusterParticipant();\n MockStorageManager mockStorageManager =\n new MockStorageManager(localNode, Collections.singletonList(mockHelixParticipant));\n mockStorageManager.start();\n try {\n mockHelixParticipant.onPartitionBecomeInactiveFromStandby(localReplica.getPartitionId().toPathString());\n } catch (StateTransitionException e) {\n assertEquals(\"Error code doesn't match\", ReplicaNotFound, e.getErrorCode());\n } finally {\n shutdownAndAssertStoresInaccessible(mockStorageManager, localReplicas);\n }\n }", "title": "" }, { "docid": "6ad590a53bd3cc4738e230c1677246ca", "score": "0.52786064", "text": "@Test\r\n public void agentStatStatisticsTest() {\r\n HbaseColumnFamily.AgentStatStatistics agentStatStatistics = HbaseColumnFamily.AGENT_STAT_STATISTICS;\r\n Assert.assertTrue(Arrays.equals(HBaseTables.AGENT_STAT_CF_STATISTICS, agentStatStatistics.getName()));\r\n Assert.assertEquals(HBaseTables.AGENT_STAT_VER2_STR, agentStatStatistics.getTable().getName());\r\n Assert.assertEquals(HBaseTables.AGENT_STAT_TIMESPAN_MS, agentStatStatistics.TIMESPAN_MS);\r\n }", "title": "" }, { "docid": "8e3f53ba1e96593e824e9ddf9bd5bdb1", "score": "0.5261638", "text": "public void testReadSnapshotConcurrently() throws IOException, InterruptedException {\n IndexShard indexShard = newStartedShard();\n indexDoc(indexShard, \"_doc\", \"0\", \"{}\");\n if (randomBoolean()) {\n indexShard.refresh(\"test\");\n }\n indexDoc(indexShard, \"_doc\", \"1\", \"{}\");\n indexShard.flush(new FlushRequest());\n closeShards(indexShard);\n\n final IndexShard newShard = reinitShard(indexShard);\n Store.MetadataSnapshot storeFileMetadatas = newShard.snapshotStoreMetadata();\n assertTrue(\"at least 2 files, commit and data: \" + storeFileMetadatas.toString(), storeFileMetadatas.size() > 1);\n AtomicBoolean stop = new AtomicBoolean(false);\n CountDownLatch latch = new CountDownLatch(1);\n expectThrows(AlreadyClosedException.class, () -> newShard.getEngine()); // no engine\n Thread thread = new Thread(() -> {\n latch.countDown();\n while (stop.get() == false) {\n try {\n Store.MetadataSnapshot readMeta = newShard.snapshotStoreMetadata();\n assertEquals(0, storeFileMetadatas.recoveryDiff(readMeta).different.size());\n assertEquals(0, storeFileMetadatas.recoveryDiff(readMeta).missing.size());\n assertEquals(storeFileMetadatas.size(), storeFileMetadatas.recoveryDiff(readMeta).identical.size());\n } catch (IOException e) {\n throw new AssertionError(e);\n }\n }\n });\n thread.start();\n latch.await();\n\n int iters = iterations(10, 100);\n for (int i = 0; i < iters; i++) {\n newShard.store().cleanupAndVerify(\"test\", storeFileMetadatas);\n }\n assertTrue(stop.compareAndSet(false, true));\n thread.join();\n closeShards(newShard);\n }", "title": "" }, { "docid": "3484ca9009b1ba4fde052719cd7e26a4", "score": "0.5247342", "text": "@Test\n public void testVacuumingMultipleTimes(){\n bucket = DirtBucket.getInstance();\n\n //Check that the bucket is empty\n assertThat(bucket.getCapacity(), equalTo(50));\n\n //Make multiple cleaning operations\n for (int i = 0; i < 10; i++){\n bucket.vacuumDirt();\n }\n\n //Check that the capacity is 10 less\n assertThat(bucket.getCapacity(), equalTo(40));\n }", "title": "" }, { "docid": "7f6a459d31e07f81721c91ce8d1baad3", "score": "0.5232147", "text": "@Test\n public void skipSizeGlobally() {\n configurator.snapshots.setCheckFileMd5(false);\n\n // globally disable checking the file size\n configurator.snapshots.setCheckFileSize(false);\n\n // TEST1: One pair of files have different sizes, but we have disabled the check, so no\n // error will be thrown when comparing\n FileSystemSnapshot snapshot1 = new FileSystemSnapshot(\"snap1\");\n snapshot1.addDirectory(\"F1\", FILES_ROOT + \"size/sub-dir1\");\n snapshot1.takeSnapshot();\n\n FileSystemSnapshot snapshot2 = new FileSystemSnapshot(\"snap2\");\n snapshot2.addDirectory(\"F1\", FILES_ROOT + \"size/sub-dir2\");\n snapshot2.takeSnapshot();\n\n snapshot1.compare(snapshot2);\n\n // globally enable checking the file size\n configurator.snapshots.setCheckFileSize(true);\n\n // TEST2: Now we will do the check and error must be registered\n FileSystemSnapshot snapshot3 = new FileSystemSnapshot(\"snap1\");\n snapshot3.addDirectory(\"F1\", FILES_ROOT + \"size/sub-dir1\");\n snapshot3.takeSnapshot();\n\n FileSystemSnapshot snapshot4 = new FileSystemSnapshot(\"snap2\");\n snapshot4.addDirectory(\"F1\", FILES_ROOT + \"size/sub-dir2\");\n snapshot4.takeSnapshot();\n\n try {\n snapshot3.compare(snapshot4);\n thisShouldNotBeReached();\n } catch (FileSystemSnapshotException se) {\n verifyError(se, \".*Size: .*\");\n }\n }", "title": "" }, { "docid": "cdca43d25ada4d9fcb5c06fb009a657c", "score": "0.52316624", "text": "private void collectStorageStats(Status status) {\n try {\n ReadableStorage storage = getStorageClient();\n StringMap meta = new StringMap();\n meta.put(\"ALLOW_PRIVATE\", \"true\");\n QueryOptions opts = new QueryOptions(null, null, 0, 0, meta);\n\n long responseTime = System.currentTimeMillis();\n long timestamp = storage.getModificationTime(null);\n Record holdings = storage.getRecord(\"__holdings__\", opts);\n responseTime = System.currentTimeMillis() - responseTime;\n String datetime = dateFormat.format(new Date(timestamp));\n status.put(\"storage\", \"lastUpdate\", datetime);\n status.put(\"storage\", \"status\", \"OK\");\n status.put(\"storage\", \"responseTime\", Long.toString(responseTime));\n status.put(\"storage\", \"holdings\", holdings.getContentAsUTF8());\n } catch (IOException e) {\n status.put(\"storage\", \"status\", \"ERROR: \" + e.getMessage());\n }\n }", "title": "" }, { "docid": "1a155c993c005abfa37880d83b2ea1e3", "score": "0.5230983", "text": "private void populateDbMetricsAz(final IsilonAccessZone accessZone, IsilonApi isilonApi, StringMap dbMetrics) {\n\n long totalProvCap = 0L;\n long totalFsCount = 0L;\n String resumeToken = null;\n String zoneName = accessZone.getName();\n String baseDirPath = accessZone.getPath() + \"/\";\n\n // filesystems count & used Capacity\n IsilonList<IsilonSmartQuota> quotas = null;\n\n do {\n quotas = isilonApi.listQuotas(resumeToken, baseDirPath);\n\n if (quotas != null && !quotas.getList().isEmpty()) {\n for (IsilonSmartQuota quota : quotas.getList()) {\n\n totalProvCap = totalProvCap + quota.getUsagePhysical();\n totalFsCount++;\n }\n }\n resumeToken = quotas.getToken();\n\n } while (resumeToken != null);\n\n // create a list of access zone for which base dir is not same as system access zone.\n // we get all snapshot list at once. baseDirPaths list is used to\n // find snaphot belong to which access zone.\n List<String> baseDirPaths = null;\n if (accessZone.isSystem() == true) {\n List<IsilonAccessZone> isilonAccessZoneList = isilonApi.getAccessZones(resumeToken);\n baseDirPaths = new ArrayList<String>();\n for (IsilonAccessZone isiAccessZone : isilonAccessZoneList) {\n\n if (!baseDirPath.equals(IFS_ROOT + \"/\")) {\n baseDirPaths.add(isiAccessZone.getPath() + \"/\");\n }\n }\n }\n // snapshots count & snap capacity\n resumeToken = null;\n IsilonList<IsilonSnapshot> snapshots = null;\n do {\n snapshots = isilonApi.listSnapshots(resumeToken);\n if (snapshots != null && !snapshots.getList().isEmpty()) {\n\n if (!baseDirPath.equals(IFS_ROOT + \"/\")) {\n // if it is not system access zone then compare\n // with fs path with base dir path\n _log.info(\"access zone base directory path {}\", baseDirPath);\n for (IsilonSnapshot isilonSnap : snapshots.getList()) {\n if (isilonSnap.getPath().startsWith(baseDirPath)) {\n totalProvCap = totalProvCap + Long.valueOf(isilonSnap.getSize());\n totalFsCount++;\n }\n }\n } else {// process the snapshots for system access zone\n boolean snapSystem = true;\n for (IsilonSnapshot isilonSnap : snapshots.getList()) {\n snapSystem = true;\n // first check fs path with user defined AZ's paths\n if (baseDirPaths != null && !baseDirPaths.isEmpty()) {\n for (String basePath : baseDirPaths) {\n if (isilonSnap.getPath().startsWith(basePath)) {\n snapSystem = false;\n break;\n }\n }\n }\n\n // it then it is belongs to access zone with basedir same as system access zone.\n if (snapSystem) {\n totalProvCap = totalProvCap + Long.valueOf(isilonSnap.getSize());\n totalFsCount++;\n _log.info(\"Access zone base directory path: {}\", accessZone.getPath());\n\n }\n }\n }\n resumeToken = snapshots.getToken();\n }\n } while (resumeToken != null);\n\n if (totalProvCap > 0) {\n totalProvCap = (totalProvCap / KB_IN_BYTES);\n }\n _log.info(\"Total fs Count {} for access zone : {}\", String.valueOf(totalFsCount), accessZone.getName());\n _log.info(\"Total fs Capacity {} for access zone : {}\", String.valueOf(totalProvCap), accessZone.getName());\n\n // get total exports\n int nfsExportsCount = 0;\n int cifsSharesCount = 0;\n resumeToken = null;\n IsilonList<IsilonExport> isilonNfsExports = null;\n do {\n isilonNfsExports = isilonApi.listExports(resumeToken, zoneName);\n if (isilonNfsExports != null) {\n nfsExportsCount = nfsExportsCount + isilonNfsExports.size();\n resumeToken = isilonNfsExports.getToken();\n }\n } while (resumeToken != null);\n _log.info(\"Total NFS exports {} for access zone : {}\", String.valueOf(nfsExportsCount), accessZone.getName());\n\n // get cifs exports for given access zone\n resumeToken = null;\n IsilonList<IsilonSMBShare> isilonCifsExports = null;\n do {\n isilonCifsExports = isilonApi.listShares(resumeToken, zoneName);\n if (isilonCifsExports != null) {\n cifsSharesCount = cifsSharesCount + isilonCifsExports.size();\n resumeToken = isilonCifsExports.getToken();\n }\n } while (resumeToken != null);\n _log.info(\"Total CIFS sharess {} for access zone : {}\", String.valueOf(cifsSharesCount), accessZone.getName());\n\n if (dbMetrics == null) {\n dbMetrics = new StringMap();\n }\n // set total nfs and cifs exports for give AZ\n dbMetrics.put(MetricsKeys.totalNfsExports.name(), String.valueOf(nfsExportsCount));\n dbMetrics.put(MetricsKeys.totalCifsShares.name(), String.valueOf(cifsSharesCount));\n // set total fs objects and their sum of capacity for give AZ\n dbMetrics.put(MetricsKeys.storageObjects.name(), String.valueOf(totalFsCount));\n dbMetrics.put(MetricsKeys.usedStorageCapacity.name(), String.valueOf(totalProvCap));\n\n Long maxExports = MetricsKeys.getLong(MetricsKeys.maxNFSExports, dbMetrics) +\n MetricsKeys.getLong(MetricsKeys.maxCifsShares, dbMetrics);\n Long maxStorObjs = MetricsKeys.getLong(MetricsKeys.maxStorageObjects, dbMetrics);\n Long maxCapacity = MetricsKeys.getLong(MetricsKeys.maxStorageCapacity, dbMetrics);\n\n Long totalExports = Long.valueOf(nfsExportsCount + cifsSharesCount);\n // setting overLoad factor (true or false)\n String overLoaded = FALSE;\n if (totalExports >= maxExports || totalProvCap >= maxCapacity || totalFsCount >= maxStorObjs) {\n overLoaded = TRUE;\n }\n\n double percentageLoadExports = 0.0;\n // percentage calculator\n if (totalExports > 0.0) {\n percentageLoadExports = ((double) (totalExports) / maxExports) * 100;\n }\n double percentageLoadStorObj = ((double) (totalProvCap) / maxCapacity) * 100;\n double percentageLoad = (percentageLoadExports + percentageLoadStorObj) / 2;\n\n dbMetrics.put(MetricsKeys.percentLoad.name(), String.valueOf(percentageLoad));\n dbMetrics.put(MetricsKeys.overLoaded.name(), overLoaded);\n return;\n }", "title": "" }, { "docid": "5edfd38ccf9fcc4daeecd425267e2944", "score": "0.52083975", "text": "@Test\n public void testPartitionSizeEnabled() throws Throwable\n {\n populateTable(WARN_THRESHOLD);\n\n flush();\n listener.assertWarned(REDACTED_MESSAGE);\n listener.clear();\n\n compact();\n listener.assertWarned(REDACTED_MESSAGE);\n listener.clear();\n\n // Insert enough data to trigger the failure guardrail.\n populateTable(FAIL_THRESHOLD);\n\n flush();\n listener.assertFailed(REDACTED_MESSAGE);\n listener.clear();\n\n compact();\n listener.assertFailed(REDACTED_MESSAGE);\n listener.clear();\n\n // remove most of the data to be under the threshold again\n assertValid(\"DELETE FROM %s WHERE k = 1 AND c > 0\");\n\n flush();\n listener.assertNotWarned();\n listener.assertNotFailed();\n\n compact();\n listener.assertNotWarned();\n listener.assertNotFailed();\n listener.clear();\n }", "title": "" }, { "docid": "fb2eb6bc4caf554af01694b83edeb2de", "score": "0.5202048", "text": "@Test\n public void testSelectiveFlushAndWALinDataCompaction() throws IOException {\n conf.setLong(HREGION_MEMSTORE_FLUSH_SIZE, (300 * 1024));\n conf.setLong(HREGION_COLUMNFAMILY_FLUSH_SIZE_LOWER_BOUND_MIN, (75 * 1024));\n // set memstore to do data compaction and not to use the speculative scan\n conf.set(COMPACTING_MEMSTORE_TYPE_KEY, String.valueOf(EAGER));\n // Intialize the HRegion\n HRegion region = initHRegion(\"testSelectiveFlushAndWALinDataCompaction\", conf);\n verifyInMemoryFlushSize(region);\n // Add 1200 entries for CF1, 100 for CF2 and 50 for CF3\n for (int i = 1; i <= 1200; i++) {\n region.put(createPut(1, i));\n if (i <= 100) {\n region.put(createPut(2, i));\n if (i <= 50) {\n region.put(createPut(3, i));\n }\n }\n }\n // Now add more puts for CF2, so that we only flush CF2 to disk\n for (int i = 100; i < 2000; i++) {\n region.put(createPut(2, i));\n }\n // in this test check the non-composite snapshot - flashing only tail of the pipeline\n setCompositeSnapshot(false);\n setCompositeSnapshot(false);\n long totalMemstoreSize = region.getMemStoreDataSize();\n // Find the sizes of the memstores of each CF.\n MemStoreSize cf1MemstoreSizePhaseI = region.getStore(TestWalAndCompactingMemStoreFlush.FAMILY1).getMemStoreSize();\n MemStoreSize cf2MemstoreSizePhaseI = region.getStore(TestWalAndCompactingMemStoreFlush.FAMILY2).getMemStoreSize();\n MemStoreSize cf3MemstoreSizePhaseI = region.getStore(TestWalAndCompactingMemStoreFlush.FAMILY3).getMemStoreSize();\n // Some other sanity checks.\n Assert.assertTrue(((cf1MemstoreSizePhaseI.getDataSize()) > 0));\n Assert.assertTrue(((cf2MemstoreSizePhaseI.getDataSize()) > 0));\n Assert.assertTrue(((cf3MemstoreSizePhaseI.getDataSize()) > 0));\n // The total memstore size should be the same as the sum of the sizes of\n // memstores of CF1, CF2 and CF3.\n String msg = ((((((((\"totalMemstoreSize=\" + totalMemstoreSize) + \" DefaultMemStore.DEEP_OVERHEAD=\") + (DEEP_OVERHEAD)) + \" cf1MemstoreSizePhaseI=\") + cf1MemstoreSizePhaseI) + \" cf2MemstoreSizePhaseI=\") + cf2MemstoreSizePhaseI) + \" cf3MemstoreSizePhaseI=\") + cf3MemstoreSizePhaseI;\n Assert.assertEquals(msg, totalMemstoreSize, (((cf1MemstoreSizePhaseI.getDataSize()) + (cf2MemstoreSizePhaseI.getDataSize())) + (cf3MemstoreSizePhaseI.getDataSize())));\n // Flush!\n CompactingMemStore cms1 = ((CompactingMemStore) (((HStore) (region.getStore(TestWalAndCompactingMemStoreFlush.FAMILY1))).memstore));\n CompactingMemStore cms3 = ((CompactingMemStore) (((HStore) (region.getStore(TestWalAndCompactingMemStoreFlush.FAMILY3))).memstore));\n cms1.flushInMemory();\n cms3.flushInMemory();\n region.flush(false);\n MemStoreSize cf2MemstoreSizePhaseII = region.getStore(TestWalAndCompactingMemStoreFlush.FAMILY2).getMemStoreSize();\n long smallestSeqInRegionCurrentMemstorePhaseII = region.getWAL().getEarliestMemStoreSeqNum(region.getRegionInfo().getEncodedNameAsBytes());\n long smallestSeqCF1PhaseII = region.getOldestSeqIdOfStore(TestWalAndCompactingMemStoreFlush.FAMILY1);\n long smallestSeqCF2PhaseII = region.getOldestSeqIdOfStore(TestWalAndCompactingMemStoreFlush.FAMILY2);\n long smallestSeqCF3PhaseII = region.getOldestSeqIdOfStore(TestWalAndCompactingMemStoreFlush.FAMILY3);\n // CF2 should have been cleared\n Assert.assertEquals(0, cf2MemstoreSizePhaseII.getDataSize());\n Assert.assertEquals(DEEP_OVERHEAD, cf2MemstoreSizePhaseII.getHeapSize());\n String s = ((((((((\"\\n\\n----------------------------------\\n\" + \"Upon initial insert and flush, LSN of CF1 is:\") + smallestSeqCF1PhaseII) + \". LSN of CF2 is:\") + smallestSeqCF2PhaseII) + \". LSN of CF3 is:\") + smallestSeqCF3PhaseII) + \", smallestSeqInRegionCurrentMemstore:\") + smallestSeqInRegionCurrentMemstorePhaseII) + \"\\n\";\n // Add same entries to compact them later\n for (int i = 1; i <= 1200; i++) {\n region.put(createPut(1, i));\n if (i <= 100) {\n region.put(createPut(2, i));\n if (i <= 50) {\n region.put(createPut(3, i));\n }\n }\n }\n // Now add more puts for CF2, so that we only flush CF2 to disk\n for (int i = 100; i < 2000; i++) {\n region.put(createPut(2, i));\n }\n long smallestSeqInRegionCurrentMemstorePhaseIII = region.getWAL().getEarliestMemStoreSeqNum(region.getRegionInfo().getEncodedNameAsBytes());\n long smallestSeqCF1PhaseIII = region.getOldestSeqIdOfStore(TestWalAndCompactingMemStoreFlush.FAMILY1);\n long smallestSeqCF2PhaseIII = region.getOldestSeqIdOfStore(TestWalAndCompactingMemStoreFlush.FAMILY2);\n long smallestSeqCF3PhaseIII = region.getOldestSeqIdOfStore(TestWalAndCompactingMemStoreFlush.FAMILY3);\n s = (((((((((s + \"The smallest sequence in region WAL is: \") + smallestSeqInRegionCurrentMemstorePhaseIII) + \", the smallest sequence in CF1:\") + smallestSeqCF1PhaseIII) + \", \") + \"the smallest sequence in CF2:\") + smallestSeqCF2PhaseIII) + \", the smallest sequence in CF3:\") + smallestSeqCF3PhaseIII) + \"\\n\";\n // Flush!\n cms1 = ((CompactingMemStore) (((HStore) (region.getStore(TestWalAndCompactingMemStoreFlush.FAMILY1))).memstore));\n cms3 = ((CompactingMemStore) (((HStore) (region.getStore(TestWalAndCompactingMemStoreFlush.FAMILY3))).memstore));\n cms1.flushInMemory();\n cms3.flushInMemory();\n region.flush(false);\n long smallestSeqInRegionCurrentMemstorePhaseIV = region.getWAL().getEarliestMemStoreSeqNum(region.getRegionInfo().getEncodedNameAsBytes());\n long smallestSeqCF1PhaseIV = region.getOldestSeqIdOfStore(TestWalAndCompactingMemStoreFlush.FAMILY1);\n long smallestSeqCF2PhaseIV = region.getOldestSeqIdOfStore(TestWalAndCompactingMemStoreFlush.FAMILY2);\n long smallestSeqCF3PhaseIV = region.getOldestSeqIdOfStore(TestWalAndCompactingMemStoreFlush.FAMILY3);\n s = (((((((((s + \"The smallest sequence in region WAL is: \") + smallestSeqInRegionCurrentMemstorePhaseIV) + \", the smallest sequence in CF1:\") + smallestSeqCF1PhaseIV) + \", \") + \"the smallest sequence in CF2:\") + smallestSeqCF2PhaseIV) + \", the smallest sequence in CF3:\") + smallestSeqCF3PhaseIV) + \"\\n\";\n // now check that the LSN of the entire WAL, of CF1 and of CF3 has progressed due to compaction\n Assert.assertTrue(s, (smallestSeqInRegionCurrentMemstorePhaseIV > smallestSeqInRegionCurrentMemstorePhaseIII));\n Assert.assertTrue((smallestSeqCF1PhaseIV > smallestSeqCF1PhaseIII));\n Assert.assertTrue((smallestSeqCF3PhaseIV > smallestSeqCF3PhaseIII));\n HBaseTestingUtility.closeRegionAndWAL(region);\n }", "title": "" }, { "docid": "e43162dcca262db029c6bebe6bda5b71", "score": "0.51910794", "text": "@Test\n public void updateInstanceConfigSuccessTest() throws Exception {\n generateConfigs(true, true);\n MockDataNodeId localNode = clusterMap.getDataNodes().get(0);\n List<ReplicaId> localReplicas = clusterMap.getReplicaIds(localNode);\n MockClusterParticipant mockHelixParticipant = new MockClusterParticipant();\n StorageManager storageManager =\n createStorageManager(localNode, metricRegistry, Collections.singletonList(mockHelixParticipant));\n storageManager.start();\n // create a new partition and get its replica on local node\n PartitionId newPartition = clusterMap.createNewPartition(Collections.singletonList(localNode));\n ReplicaId newReplica = newPartition.getReplicaIds().get(0);\n // for updating instanceConfig test, we first add an empty InstanceConfig of current node\n String instanceName =\n ClusterMapUtils.getInstanceName(clusterMapConfig.clusterMapHostName, clusterMapConfig.clusterMapPort);\n InstanceConfig instanceConfig = new InstanceConfig(instanceName);\n instanceConfig.setHostName(localNode.getHostname());\n instanceConfig.setPort(Integer.toString(localNode.getPort()));\n // for current test, we initial InstanceConfig empty, non-empty case will be tested in HelixParticipantTest\n Map<String, Map<String, String>> diskInfos = new HashMap<>();\n instanceConfig.getRecord().setMapFields(diskInfos);\n HelixAdmin helixAdmin = mockHelixParticipant.getHelixAdmin();\n helixAdmin.addCluster(CLUSTER_NAME);\n helixAdmin.addInstance(CLUSTER_NAME, instanceConfig);\n // test success case\n mockHelixParticipant.onPartitionBecomeBootstrapFromOffline(newPartition.toPathString());\n instanceConfig = helixAdmin.getInstanceConfig(CLUSTER_NAME, instanceName);\n // verify that new replica info is present in InstanceConfig\n Map<String, Map<String, String>> mountPathToDiskInfos = instanceConfig.getRecord().getMapFields();\n Map<String, String> diskInfo = mountPathToDiskInfos.get(newReplica.getMountPath());\n String replicasStr = diskInfo.get(\"Replicas\");\n Set<String> partitionStrs = new HashSet<>();\n for (String replicaInfo : replicasStr.split(\",\")) {\n String[] infos = replicaInfo.split(\":\");\n partitionStrs.add(infos[0]);\n }\n assertTrue(\"New replica info is not found in InstanceConfig\", partitionStrs.contains(newPartition.toPathString()));\n shutdownAndAssertStoresInaccessible(storageManager, localReplicas);\n }", "title": "" }, { "docid": "d6d86d79048140afc93ceb7eb9c9ff8f", "score": "0.51843756", "text": "@BeforeMethod\n public void setUp() {\n final InMemoryRegionMaster master = new InMemoryRegionMaster();\n final MockUriInfo uriInfo = new MockUriInfo(true);\n _regionsResource = setUpResource(master, uriInfo);\n }", "title": "" }, { "docid": "2d3da4db384083c12d4fdb311341c88c", "score": "0.5163038", "text": "@Test\n public void testRecoveryOfSingleMemberFailure() throws Exception {\n localMaxMemory = 20;\n redundancy = 2;\n recoveryDelay = 0;\n\n // Create PR in all VMs\n createPartitionRegionsInAllVMs(uniqueName, 1, localMaxMemory, recoveryDelay, redundancy);\n\n // Create some buckets, pick one and get one of the members hosting it\n DistributedMember bucketHost = vms[0].invoke(() -> {\n PartitionedRegion region = (PartitionedRegion) getCache().getRegion(uniqueName + \"0\");\n\n // Create some buckets\n for (int k = 0; region.getRegionAdvisor().getBucketSet().size() < 2; k++) {\n assertThat(k).isLessThanOrEqualTo(region.getTotalNumberOfBuckets());\n region.put(k, k);\n }\n\n // Grab a bucket id\n int bucketId = region.getRegionAdvisor().getBucketSet().iterator().next();\n assertThat(bucketId).isNotNull();\n\n // Find a host for the bucket\n Set<InternalDistributedMember> bucketOwners =\n region.getRegionAdvisor().getBucketOwners(bucketId);\n assertThat(bucketOwners).hasSize(redundancy + 1);\n\n InternalDistributedMember bucketOwner = bucketOwners.iterator().next();\n assertThat(bucketOwner).isNotNull();\n return bucketOwner;\n });\n\n assertThat(bucketHost).isNotNull();\n\n // Disconnect the selected host\n Map<VM, Boolean> stillHasDS = invokeInEveryVM(() -> {\n if (getSystem().getDistributedMember().equals(bucketHost)) {\n disconnectFromDS();\n return FALSE;\n }\n return TRUE;\n });\n\n // Wait for each member to finish recovery of redundancy for the selected bucket\n int count = 0;\n for (int i = 0; i < 4; i++) {\n if (awaitRedundancyRecovery(stillHasDS, vms[i])) {\n count++;\n }\n }\n assertThat(count).isEqualTo(3);\n\n // Validate all buckets have proper redundancy\n for (int i = 0; i < 4; i++) {\n validateBucketRedundancy(stillHasDS, vms[i]);\n }\n }", "title": "" }, { "docid": "2509f8fea542144c796aa56bfa49697d", "score": "0.5162908", "text": "@Test\n public void mountPathNotFoundTest() throws Exception {\n MockDataNodeId dataNode = clusterMap.getDataNodes().get(0);\n List<ReplicaId> replicas = clusterMap.getReplicaIds(dataNode);\n List<String> mountPaths = dataNode.getMountPaths();\n String mountPathToDelete = mountPaths.get(RANDOM.nextInt(mountPaths.size()));\n int downReplicaCount = 0;\n for (ReplicaId replica : replicas) {\n if (replica.getMountPath().equals(mountPathToDelete)) {\n downReplicaCount++;\n }\n }\n Utils.deleteFileOrDirectory(new File(mountPathToDelete));\n StorageManager storageManager = createStorageManager(dataNode, metricRegistry, null);\n storageManager.start();\n assertEquals(\"There should be no unexpected partitions reported\", 0, getNumUnrecognizedPartitionsReported());\n Map<String, Counter> counters = metricRegistry.getCounters();\n assertEquals(\"DiskSpaceAllocator should not have failed to start.\", 0,\n getCounterValue(counters, DiskSpaceAllocator.class.getName(), \"DiskSpaceAllocatorInitFailureCount\"));\n assertEquals(\"Unexpected number of store start failures\", downReplicaCount,\n getCounterValue(counters, DiskManager.class.getName(), \"TotalStoreStartFailures\"));\n assertEquals(\"Expected 1 disk mount path failure\", 1,\n getCounterValue(counters, DiskManager.class.getName(), \"DiskMountPathFailures\"));\n assertEquals(\"There should be no unexpected partitions reported\", 0, getNumUnrecognizedPartitionsReported());\n checkStoreAccessibility(replicas, mountPathToDelete, storageManager);\n\n assertEquals(\"Compaction thread count is incorrect\", mountPaths.size() - 1,\n TestUtils.numThreadsByThisName(CompactionManager.THREAD_NAME_PREFIX));\n verifyCompactionThreadCount(storageManager, mountPaths.size() - 1);\n shutdownAndAssertStoresInaccessible(storageManager, replicas);\n assertEquals(\"Compaction thread count is incorrect\", 0, storageManager.getCompactionThreadCount());\n }", "title": "" }, { "docid": "b5ce14821a8b86416d5423644747689c", "score": "0.51575094", "text": "public void testStatsResponseFromLocalNode() {\n createIndex(INDEX_NAME, remoteStoreIndexSettings(0, 3));\n ensureYellowAndNoInitializingShards(INDEX_NAME);\n ensureGreen(INDEX_NAME);\n\n indexDocs();\n\n // Step 2 - We find a data node in the cluster. We make the remote store stats api call from\n // each of the data node in the cluster and check that only local shards are returned.\n ClusterState state = getClusterState();\n List<String> nodes = state.nodes().getDataNodes().values().stream().map(DiscoveryNode::getName).collect(Collectors.toList());\n for (String node : nodes) {\n RemoteStoreStatsRequestBuilder remoteStoreStatsRequestBuilder = client(node).admin()\n .cluster()\n .prepareRemoteStoreStats(INDEX_NAME, null);\n remoteStoreStatsRequestBuilder.setLocal(true);\n RemoteStoreStatsResponse response = remoteStoreStatsRequestBuilder.get();\n assertEquals(1, response.getSuccessfulShards());\n assertTrue(response.getRemoteStoreStats() != null && response.getRemoteStoreStats().length == 1);\n RemoteSegmentTransferTracker.Stats segmentStats = response.getRemoteStoreStats()[0].getSegmentStats();\n validateSegmentUploadStats(segmentStats);\n assertEquals(0, segmentStats.directoryFileTransferTrackerStats.transferredBytesStarted);\n }\n changeReplicaCountAndEnsureGreen(1);\n for (String node : nodes) {\n RemoteStoreStatsRequestBuilder remoteStoreStatsRequestBuilder = client(node).admin()\n .cluster()\n .prepareRemoteStoreStats(INDEX_NAME, null);\n remoteStoreStatsRequestBuilder.setLocal(true);\n RemoteStoreStatsResponse response = remoteStoreStatsRequestBuilder.get();\n assertTrue(response.getSuccessfulShards() > 0);\n assertTrue(response.getRemoteStoreStats() != null && response.getRemoteStoreStats().length != 0);\n for (RemoteStoreStats stat : response.getRemoteStoreStats()) {\n ShardRouting routing = stat.getShardRouting();\n validateShardRouting(routing);\n RemoteSegmentTransferTracker.Stats stats = stat.getSegmentStats();\n if (routing.primary()) {\n validateSegmentUploadStats(stats);\n assertEquals(0, stats.directoryFileTransferTrackerStats.transferredBytesStarted);\n } else {\n validateSegmentDownloadStats(stats);\n assertEquals(0, stats.totalUploadsStarted);\n }\n }\n }\n }", "title": "" }, { "docid": "19cc3af05794cd0252323ce08e5e1b68", "score": "0.5145698", "text": "@Test\n public void testEvictValueOnRegionWithEvictionAttributes() {\n region = cache.<Integer, String>createRegionFactory(RegionShortcut.REPLICATE_PERSISTENT)\n .setDiskSynchronous(true)\n .setDiskStoreName(diskStore.getName()).setEvictionAttributes(EvictionAttributes\n .createLRUEntryAttributes(MAX_ENTRIES, EvictionAction.OVERFLOW_TO_DISK))\n .create(REGION_NAME + 2);\n diskRegion = ((InternalRegion) region).getDiskRegion();\n\n IntStream.range(0, MAX_ENTRIES + 1).forEach((i) -> region.put(i, \"value\"));\n assertThatThrownBy(() -> ((LocalRegion) region).evictValue(3))\n .isInstanceOf(IllegalStateException.class);\n }", "title": "" }, { "docid": "d0f4d6e65d588eb08f98febdcb1ba175", "score": "0.5144258", "text": "@Test\n public void testExecuteOnKeysBackupOperation() {\n Config cfg = getConfig();\n cfg.getMapConfig(\"test\").setBackupCount(1);\n TestHazelcastInstanceFactory nodeFactory = createHazelcastInstanceFactory(2);\n HazelcastInstance instance1 = nodeFactory.newHazelcastInstance(cfg);\n HazelcastInstance instance2 = nodeFactory.newHazelcastInstance(cfg);\n\n IMap<String, TestData> map = instance1.getMap(\"test\");\n map.put(\"a\", new TestData(\"foo\", \"bar\"));\n map.put(\"b\", new TestData(\"foo\", \"bar\"));\n map.executeOnKeys(map.keySet(), new TestDeleteEntryProcessor());\n\n // the entry has been removed from the primary store but not the backup,\n // so let's kill the primary and execute the logging processor again\n HazelcastInstance newPrimary;\n String aMemberUiid = instance1.getPartitionService().getPartition(\"a\").getOwner().getUuid();\n if (aMemberUiid.equals(instance1.getCluster().getLocalMember().getUuid())) {\n instance1.shutdown();\n newPrimary = instance2;\n } else {\n instance2.shutdown();\n newPrimary = instance1;\n }\n\n // make sure there are no entries left\n IMap<String, TestData> map2 = newPrimary.getMap(\"test\");\n Map<String, Object> executedEntries = map2.executeOnEntries(new TestLoggingEntryProcessor());\n assertEquals(0, executedEntries.size());\n }", "title": "" }, { "docid": "d5ec505b65688acd959356e1616349ac", "score": "0.51380956", "text": "private long waitForBucketRecovery(VM vm2, final int numBuckets, final long begin) {\n Long elapsed = (Long) vm2.invoke(new SerializableCallable(\"putData\") {\n @Override\n public Object call() {\n Cache cache = getCache();\n PartitionedRegion region1 = (PartitionedRegion) cache.getRegion(\"region1\");\n while (System.currentTimeMillis() - begin < 30000) {\n int bucketsManaged = region1.getDataStore().getBucketsManaged();\n if (bucketsManaged == numBuckets) {\n break;\n } else {\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) { // TODO: don't catch InterruptedException -- let test\n // fail!\n e.printStackTrace();\n }\n }\n }\n assertEquals(\"Did not start managing the bucket within 30 seconds\", numBuckets,\n region1.getDataStore().getBucketsManaged());\n long elapsed = System.currentTimeMillis() - begin;\n return elapsed;\n }\n });\n return elapsed;\n }", "title": "" }, { "docid": "2b8f86e481e10601fa3fc3ca1e50c1ca", "score": "0.51323664", "text": "@Test\n public void backupNewNotEmptyTest() throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException {\n System.out.println(\"backupNewNotEmpty\");\n Field sizeField = mainpanel.getClass().getDeclaredField(\"_size\");\n sizeField.setAccessible(true);\n\n int size = (int) sizeField.get(mainpanel);\n\n Field BackupCell = mainpanel.getClass().getDeclaredField(\"_cells\");\n BackupCell.setAccessible(true);\n Cell[][] current_cells = (Cell[][]) BackupCell.get(mainpanel);\n mainpanel.backup();\n\n Field BackupCell2 = mainpanel.getClass().getDeclaredField(\"_cells\");\n BackupCell2.setAccessible(true);\n Cell[][] current_backup = (Cell[][]) BackupCell2.get(mainpanel);\n\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++) {\n if (current_cells[i][j].getAlive() != current_backup[i][j].getAlive()) {\n fail(\"backup didn't match\");\n }\n }\n }\n }", "title": "" }, { "docid": "2c143e385ccdcf4486bb1a1d2f709de3", "score": "0.5131384", "text": "public void testFindRegionHistoryOnly() {\n final String name = \"region name\";\n final RegionClassification classification = RegionClassification.INDEPENDENT_STATE;\n final ExternalIdBundle eids = ExternalIdBundle.of(ExternalId.of(\"eid1\", \"1\"), ExternalId.of(\"eid2\", \"a\"));\n final SimpleRegion region = new SimpleRegion();\n region.setExternalIdBundle(eids);\n region.setName(name);\n region.setClassification(classification);\n final RegionDocument document = new RegionDocument(region);\n final InMemoryRegionMaster master = new InMemoryRegionMaster();\n master.add(document);\n final UniqueId originalId = document.getUniqueId();\n // update the document id so that the history is used\n document.setUniqueId(UniqueId.of(InMemoryRegionMaster.DEFAULT_OID_SCHEME, \"new\"));\n final MockUriInfo uriInfo = new MockUriInfo(true);\n final WebRegionsResource resource = setUpResource(master, uriInfo);\n final WebRegionResource regionResource = resource.findRegion(originalId.toString());\n assertEquals(regionResource.data().getRegion(), document);\n }", "title": "" }, { "docid": "623059b926c6ba085e965c6521a0b8fb", "score": "0.51055366", "text": "@Test\n\tpublic void testMemoryAccessesAtRegionEnd2() {\n\t\tProcessor<ViserLine> proc = machine.getProc(P0);\n\n\t\tmachine.testCacheMemoryWrite(P0, 80L, 2, 6, T0);\n\t\tmachine.testCacheMemoryWrite(P0, 64L, 2, 23, T0);\n\n\t\tmachine.testCacheMemoryWrite(P0, 96L, 2, 6, T0);\n\t\tmachine.testCacheMemoryWrite(P0, 112L, 2, 23, T0);\n\t\tmachine.testCacheMemoryWrite(P0, 128L, 2, 23, T0);\n\t\t// +3 for data line and +2 for AIM line eviction\n\n\t\tSystem.out.println(proc.L1cache);\n\n\t\tmachine.testProcessRegionBoundary(P0, T0, EventType.LOCK_ACQUIRE);\n\t\t// This is not correct since the evicted lines are no longer in the private cache as well\n\t\t// assertEquals(20, proc.stats.pc_Memory64BytesAccesses.get(), 0);\n\t}", "title": "" }, { "docid": "10737536b12171fe8bd3b1fc8cda3e66", "score": "0.50979644", "text": "@Test\n public void testMergeAndRestartingMaster() throws Exception {\n final TableName tableName = TableName.valueOf(name.getMethodName());\n\n try {\n // Create table and load data.\n Table table = createTableAndLoadData(MASTER, tableName);\n\n try {\n MyMasterRpcServices.enabled.set(true);\n\n // Merge 1st and 2nd region\n mergeRegionsAndVerifyRegionNum(MASTER, tableName, 0, 1, INITIAL_REGION_NUM - 1);\n } finally {\n MyMasterRpcServices.enabled.set(false);\n }\n\n table.close();\n } finally {\n TEST_UTIL.deleteTable(tableName);\n }\n }", "title": "" }, { "docid": "25d6fe4aa5f898fdf19ea10217ec280a", "score": "0.5093246", "text": "public void testStatsOnShardRelocation() {\n createIndex(INDEX_NAME, remoteStoreIndexSettings(1, 1));\n ensureGreen(INDEX_NAME);\n // Index docs\n indexDocs();\n\n // Fetch current set of nodes in the cluster\n List<String> currentNodesInCluster = getClusterState().nodes()\n .getDataNodes()\n .values()\n .stream()\n .map(DiscoveryNode::getId)\n .collect(Collectors.toList());\n DiscoveryNode[] discoveryNodesForIndex = client().admin().cluster().prepareSearchShards(INDEX_NAME).get().getNodes();\n\n // Fetch nodes with shard copies of the created index\n List<String> nodeIdsWithShardCopies = new ArrayList<>();\n Arrays.stream(discoveryNodesForIndex).forEach(eachNode -> nodeIdsWithShardCopies.add(eachNode.getId()));\n\n // Fetch nodes which does not have any copies of the index\n List<String> nodeIdsWithoutShardCopy = currentNodesInCluster.stream()\n .filter(eachNode -> !nodeIdsWithShardCopies.contains(eachNode))\n .collect(Collectors.toList());\n assertEquals(1, nodeIdsWithoutShardCopy.size());\n\n // Manually reroute shard to a node which does not have any shard copy at present\n ShardRouting replicaShardRouting = getClusterState().routingTable()\n .index(INDEX_NAME)\n .shard(0)\n .assignedShards()\n .stream()\n .filter(shard -> !shard.primary())\n .collect(Collectors.toList())\n .get(0);\n String sourceNode = replicaShardRouting.currentNodeId();\n String destinationNode = nodeIdsWithoutShardCopy.get(0);\n relocateShard(0, sourceNode, destinationNode);\n RemoteStoreStats[] allShardsStats = client().admin().cluster().prepareRemoteStoreStats(INDEX_NAME, \"0\").get().getRemoteStoreStats();\n RemoteStoreStats replicaShardStat = Arrays.stream(allShardsStats)\n .filter(eachStat -> !eachStat.getShardRouting().primary())\n .collect(Collectors.toList())\n .get(0);\n\n // Assert that remote store stats reflect the new shard state\n assertEquals(ShardRoutingState.STARTED, replicaShardStat.getShardRouting().state());\n assertEquals(destinationNode, replicaShardStat.getShardRouting().currentNodeId());\n }", "title": "" }, { "docid": "4ba7e1d131126154b8d126367ad29db2", "score": "0.50929976", "text": "@Override\n protected boolean operateOnPartitionedRegion(ClusterDistributionManager dm, PartitionedRegion pr,\n long startTime) throws CacheException {\n if (pr == null || !pr.isInitialized()) {\n return false;\n }\n\n if (logger.isTraceEnabled(LogMarker.DM_VERBOSE)) {\n logger.trace(LogMarker.DM_VERBOSE, \"BucketBackupMessage operateOnRegion: {}\",\n pr.getFullPath());\n }\n PartitionedRegionDataStore ds = pr.getDataStore();\n if (ds != null) {\n pr.getRedundancyProvider().finishIncompleteBucketCreation(bucketId);\n } else {\n logger.warn(\"BucketBackupMessage: data store not configured for this member\");\n }\n pr.getPrStats().endPartitionMessagesProcessing(startTime);\n return false;\n }", "title": "" }, { "docid": "0dcc0531b896381b33f6d4a1df78c91e", "score": "0.5086157", "text": "@Test\n public void testExecuteOnKeysBackupOperationIndexed() {\n Config cfg = getConfig();\n cfg.getMapConfig(\"test\").setBackupCount(1).addMapIndexConfig(new MapIndexConfig(\"attr1\", false));\n TestHazelcastInstanceFactory nodeFactory = createHazelcastInstanceFactory(2);\n HazelcastInstance instance1 = nodeFactory.newHazelcastInstance(cfg);\n HazelcastInstance instance2 = nodeFactory.newHazelcastInstance(cfg);\n\n IMap<String, TestData> map = instance1.getMap(\"test\");\n map.put(\"a\", new TestData(\"foo\", \"bar\"));\n map.put(\"b\", new TestData(\"abc\", \"123\"));\n map.executeOnKeys(map.keySet(), new TestDeleteEntryProcessor());\n\n // the entry has been removed from the primary store but not the backup,\n // so let's kill the primary and execute the logging processor again\n HazelcastInstance newPrimary;\n String aMemberUiid = instance1.getPartitionService().getPartition(\"a\").getOwner().getUuid();\n if (aMemberUiid.equals(instance1.getCluster().getLocalMember().getUuid())) {\n instance1.shutdown();\n newPrimary = instance2;\n } else {\n instance2.shutdown();\n newPrimary = instance1;\n }\n\n // make sure there are no entries left\n IMap<String, TestData> map2 = newPrimary.getMap(\"test\");\n Map<String, Object> executedEntries = map2.executeOnEntries(new TestLoggingEntryProcessor());\n assertEquals(0, executedEntries.size());\n }", "title": "" }, { "docid": "6bfcad6c42631369545428218ff3f352", "score": "0.50724334", "text": "public void computeHdfsStatsForTesting() {\n Preconditions.checkState(fileMetadataStats_.numFiles == -1\n && fileMetadataStats_.totalFileBytes == -1);\n fileMetadataStats_.init();\n for (HdfsPartition partition: partitionMap_.values()) {\n fileMetadataStats_.numFiles += partition.getNumFileDescriptors();\n fileMetadataStats_.totalFileBytes += partition.getSize();\n }\n }", "title": "" }, { "docid": "1bba03c58ea06be14289d90260a72965", "score": "0.5051604", "text": "public void verifySeatingCapacity() {\n\t\t\n\t}", "title": "" }, { "docid": "6a88c2c119494cb6bf94973fd8c1f7bb", "score": "0.50509673", "text": "@Test\n public void testBlockLocation() throws Exception {\n // We need to start HBase to get HConstants.HBASE_DIR set in conf\n startMiniZKCluster();\n MiniHBaseCluster hbm = htu.startMiniHBaseCluster();\n conf = hbm.getConfiguration();\n // The \"/\" is mandatory, without it we've got a null pointer exception on the namenode\n final String fileName = \"/helloWorld\";\n Path p = new Path(fileName);\n final int repCount = 3;\n Assert.assertTrue((((short) (cluster.getDataNodes().size())) >= repCount));\n // Let's write the file\n FSDataOutputStream fop = dfs.create(p, ((short) (repCount)));\n final double toWrite = 875.5613;\n fop.writeDouble(toWrite);\n fop.close();\n for (int i = 0; i < 10; i++) {\n // The interceptor is not set in this test, so we get the raw list at this point\n LocatedBlocks l;\n final long max = (System.currentTimeMillis()) + 10000;\n do {\n l = TestBlockReorderBlockLocation.getNamenode(dfs.getClient()).getBlockLocations(fileName, 0, 1);\n Assert.assertNotNull(l.getLocatedBlocks());\n Assert.assertEquals(1, l.getLocatedBlocks().size());\n Assert.assertTrue((((\"Expecting \" + repCount) + \" , got \") + (l.get(0).getLocations().length)), ((System.currentTimeMillis()) < max));\n } while ((l.get(0).getLocations().length) != repCount );\n // Should be filtered, the name is different => The order won't change\n Object[] originalList = l.getLocatedBlocks().toArray();\n HFileSystem.ReorderWALBlocks lrb = new HFileSystem.ReorderWALBlocks();\n lrb.reorderBlocks(conf, l, fileName);\n Assert.assertArrayEquals(originalList, l.getLocatedBlocks().toArray());\n // Should be reordered, as we pretend to be a file name with a compliant stuff\n Assert.assertNotNull(conf.get(HBASE_DIR));\n Assert.assertFalse(conf.get(HBASE_DIR).isEmpty());\n String pseudoLogFile = ((((((conf.get(HBASE_DIR)) + \"/\") + (HConstants.HREGION_LOGDIR_NAME)) + \"/\") + (TestBlockReorderBlockLocation.host1)) + \",6977,6576\") + \"/mylogfile\";\n // Check that it will be possible to extract a ServerName from our construction\n Assert.assertNotNull((\"log= \" + pseudoLogFile), AbstractFSWALProvider.getServerNameFromWALDirectoryName(dfs.getConf(), pseudoLogFile));\n // And check we're doing the right reorder.\n lrb.reorderBlocks(conf, l, pseudoLogFile);\n Assert.assertEquals(TestBlockReorderBlockLocation.host1, l.get(0).getLocations()[2].getHostName());\n // Check again, it should remain the same.\n lrb.reorderBlocks(conf, l, pseudoLogFile);\n Assert.assertEquals(TestBlockReorderBlockLocation.host1, l.get(0).getLocations()[2].getHostName());\n }\n }", "title": "" }, { "docid": "d51b7c7dbbcdf0ea9743b8b79bd72fa1", "score": "0.5045277", "text": "@Test\n public void shouldAggregateStats() throws Exception {\n storeStats();\n\n // when aggregating stats\n long january = new DateTime(2012, 1, 1, 0, 0, 0, 0, DateTimeZone.UTC).getMillis();\n long october = new DateTime(2012, 10, 1, 0, 0, 0, 0, DateTimeZone.UTC).getMillis();\n Statistic stat = statisticRepository.aggregateStatistics(ROUTE_1, january, october);\n\n // then should be aggregated\n assertThat(stat.getRange()).isEqualTo(january);\n assertThat(stat.getElementId()).isEqualTo(ROUTE_1);\n assertThat(stat.getCompleted()).isEqualTo(10000);\n assertThat(stat.getFailed()).isEqualTo(270);\n assertThat(stat.getMin()).isEqualTo(30);\n assertThat(stat.getMax()).isEqualTo(450);\n assertThat(stat.getAverage()).isEqualTo((200 * 2000 + 150 * 8000) / 10000);\n }", "title": "" }, { "docid": "5b77c7a13eada9113bfcd92173938886", "score": "0.5040605", "text": "@Test\n public void testNoFaults() {\n DiskRegionStats diskStats = diskRegion.getStats();\n EvictionCounters lruStats = getLRUStats(region);\n\n IntStream.range(0, MAX_ENTRIES + 1).forEach((i) -> region.put(i, \"value\"));\n\n long firstEvictions = lruStats.getEvictions();\n long firstReads = diskStats.getReads();\n\n IntStream.range(1, MAX_ENTRIES + 1).forEach((key) -> {\n region.get(key);\n assertEquals(\"Key \" + key + \" caused an eviction\", firstEvictions, lruStats.getEvictions());\n assertEquals(\"Key \" + key + \" caused an eviction\", firstReads, diskStats.getReads());\n });\n }", "title": "" }, { "docid": "154dc477504e1ddabe36a76a4d0b8302", "score": "0.50394696", "text": "public void testStatsResponseFromAllNodes() {\n createIndex(INDEX_NAME, remoteStoreIndexSettings(0));\n ensureYellowAndNoInitializingShards(INDEX_NAME);\n ensureGreen(INDEX_NAME);\n\n indexDocs();\n\n // Step 2 - We find all the nodes that are present in the cluster. We make the remote store stats api call from\n // each of the node in the cluster and check that the response is coming as expected.\n ClusterState state = getClusterState();\n List<String> nodes = state.nodes().getNodes().values().stream().map(DiscoveryNode::getName).collect(Collectors.toList());\n String shardId = \"0\";\n for (String node : nodes) {\n RemoteStoreStatsResponse response = client(node).admin().cluster().prepareRemoteStoreStats(INDEX_NAME, shardId).get();\n assertTrue(response.getSuccessfulShards() > 0);\n assertTrue(response.getRemoteStoreStats() != null && response.getRemoteStoreStats().length != 0);\n final String indexShardId = String.format(Locale.ROOT, \"[%s][%s]\", INDEX_NAME, shardId);\n List<RemoteStoreStats> matches = Arrays.stream(response.getRemoteStoreStats())\n .filter(stat -> indexShardId.equals(stat.getSegmentStats().shardId.toString()))\n .collect(Collectors.toList());\n assertEquals(1, matches.size());\n RemoteSegmentTransferTracker.Stats stats = matches.get(0).getSegmentStats();\n validateSegmentUploadStats(stats);\n assertEquals(0, stats.directoryFileTransferTrackerStats.transferredBytesStarted);\n }\n\n // Step 3 - Enable replicas on the existing indices and ensure that download\n // stats are being populated as well\n changeReplicaCountAndEnsureGreen(1);\n for (String node : nodes) {\n RemoteStoreStatsResponse response = client(node).admin().cluster().prepareRemoteStoreStats(INDEX_NAME, shardId).get();\n assertTrue(response.getSuccessfulShards() > 0);\n assertTrue(response.getRemoteStoreStats() != null && response.getRemoteStoreStats().length != 0);\n final String indexShardId = String.format(Locale.ROOT, \"[%s][%s]\", INDEX_NAME, shardId);\n List<RemoteStoreStats> matches = Arrays.stream(response.getRemoteStoreStats())\n .filter(stat -> indexShardId.equals(stat.getSegmentStats().shardId.toString()))\n .collect(Collectors.toList());\n assertEquals(2, matches.size());\n for (RemoteStoreStats stat : matches) {\n ShardRouting routing = stat.getShardRouting();\n validateShardRouting(routing);\n RemoteSegmentTransferTracker.Stats stats = stat.getSegmentStats();\n if (routing.primary()) {\n validateSegmentUploadStats(stats);\n assertEquals(0, stats.directoryFileTransferTrackerStats.transferredBytesStarted);\n } else {\n validateSegmentDownloadStats(stats);\n assertEquals(0, stats.totalUploadsStarted);\n }\n }\n }\n }", "title": "" }, { "docid": "ffd2faea541987bfc70fb94cb4daef11", "score": "0.5026157", "text": "public void snapshot() {\n \t\t$ps.format(\"%f\\t%f\\t%d\\t%d\\t%d\\t%d\\n\",\n \t\t\t\tRTB.getUptime() / 1000F,\t\t// i'm a fan of seconds, believe it or not\n \t\t\t\t$cpumon.getTotalUsageNormalized(),\t// i assume you're going to graph this externally and so having a consistent 0..100 is a good thing? otherwise there's no guarantee you'd know for sure what the upper bound would be from this data alone if you never reached it.\n \t\t\t\t$memb_all.getHeapMemoryUsage().getUsed() / (1024*1024),\n \t\t\t\t$memb_young.getUsage().getUsed() / (1024*1024),\n \t\t\t\t$memb_survivor.getUsage().getUsed() / (1024*1024),\n \t\t\t\t$memb_old.getUsage().getUsed() / (1024*1024)\n \t\t);\n \t\t$ps.flush();\n \t}", "title": "" }, { "docid": "e48e72cd3dde50063c486a3625f650f7", "score": "0.5019001", "text": "void saveRegion(ProtectedRegion region);", "title": "" }, { "docid": "d933ced75eb246d6a1ef477b08357007", "score": "0.5013758", "text": "public void testReadSnapshotAndCheckIndexConcurrently() throws Exception {\n final boolean isPrimary = randomBoolean();\n IndexShard indexShard = newStartedShard(isPrimary);\n final long numDocs = between(10, 20);\n for (long i = 0; i < numDocs; i++) {\n indexDoc(indexShard, \"_doc\", Long.toString(i), \"{}\");\n if (randomBoolean()) {\n indexShard.refresh(\"test\");\n }\n }\n indexShard.flush(new FlushRequest());\n closeShards(indexShard);\n\n final ShardRouting shardRouting = ShardRoutingHelper.initWithSameId(\n indexShard.routingEntry(),\n isPrimary ? RecoverySource.ExistingStoreRecoverySource.INSTANCE : RecoverySource.PeerRecoverySource.INSTANCE\n );\n final IndexMetadata indexMetadata = IndexMetadata.builder(indexShard.indexSettings().getIndexMetadata())\n .settings(\n Settings.builder()\n .put(indexShard.indexSettings.getSettings())\n .put(IndexSettings.INDEX_CHECK_ON_STARTUP.getKey(), randomFrom(\"false\", \"true\", \"checksum\"))\n )\n .build();\n final IndexShard newShard = newShard(\n shardRouting,\n indexShard.shardPath(),\n indexMetadata,\n null,\n null,\n indexShard.engineFactory,\n indexShard.engineConfigFactory,\n indexShard.getGlobalCheckpointSyncer(),\n indexShard.getRetentionLeaseSyncer(),\n EMPTY_EVENT_LISTENER,\n null\n );\n\n Store.MetadataSnapshot storeFileMetadatas = newShard.snapshotStoreMetadata();\n assertTrue(\"at least 2 files, commit and data: \" + storeFileMetadatas.toString(), storeFileMetadatas.size() > 1);\n AtomicBoolean stop = new AtomicBoolean(false);\n CountDownLatch latch = new CountDownLatch(1);\n Thread snapshotter = new Thread(() -> {\n latch.countDown();\n while (stop.get() == false) {\n try {\n Store.MetadataSnapshot readMeta = newShard.snapshotStoreMetadata();\n assertThat(readMeta.getNumDocs(), equalTo(numDocs));\n assertThat(storeFileMetadatas.recoveryDiff(readMeta).different.size(), equalTo(0));\n assertThat(storeFileMetadatas.recoveryDiff(readMeta).missing.size(), equalTo(0));\n assertThat(storeFileMetadatas.recoveryDiff(readMeta).identical.size(), equalTo(storeFileMetadatas.size()));\n } catch (IOException e) {\n throw new AssertionError(e);\n }\n }\n });\n snapshotter.start();\n\n if (isPrimary) {\n newShard.markAsRecovering(\n \"store\",\n new RecoveryState(newShard.routingEntry(), getFakeDiscoNode(newShard.routingEntry().currentNodeId()), null)\n );\n } else {\n newShard.markAsRecovering(\n \"peer\",\n new RecoveryState(\n newShard.routingEntry(),\n getFakeDiscoNode(newShard.routingEntry().currentNodeId()),\n getFakeDiscoNode(newShard.routingEntry().currentNodeId())\n )\n );\n }\n int iters = iterations(5, 10);\n latch.await();\n for (int i = 0; i < iters; i++) {\n newShard.checkIndex();\n }\n assertTrue(stop.compareAndSet(false, true));\n snapshotter.join();\n closeShards(newShard);\n }", "title": "" }, { "docid": "a33961b8b06a12543dafb6992ad9c220", "score": "0.5011655", "text": "@Test public void testFailedFlushAborts()\n throws IOException, NodeExistsException, KeeperException {\n final Server server = new MockServer(HTU, false);\n final RegionServerServices rss = HTU.createMockRegionServerService();\n HTableDescriptor htd = TEST_HTD;\n final HRegionInfo hri =\n new HRegionInfo(htd.getTableName(), HConstants.EMPTY_END_ROW,\n HConstants.EMPTY_END_ROW);\n HRegion region = HTU.createLocalHRegion(hri, htd);\n try {\n assertNotNull(region);\n // Spy on the region so can throw exception when close is called.\n HRegion spy = Mockito.spy(region);\n final boolean abort = false;\n Mockito.when(spy.close(abort)).\n thenThrow(new IOException(\"Mocked failed close!\"));\n // The CloseRegionHandler will try to get an HRegion that corresponds\n // to the passed hri -- so insert the region into the online region Set.\n rss.addToOnlineRegions(spy);\n // Assert the Server is NOT stopped before we call close region.\n assertFalse(server.isStopped());\n\n ZkCoordinatedStateManager consensusProvider = new ZkCoordinatedStateManager();\n consensusProvider.initialize(server);\n consensusProvider.start();\n\n ZkCloseRegionCoordination.ZkCloseRegionDetails zkCrd =\n new ZkCloseRegionCoordination.ZkCloseRegionDetails();\n zkCrd.setPublishStatusInZk(false);\n zkCrd.setExpectedVersion(-1);\n\n CloseRegionHandler handler = new CloseRegionHandler(server, rss, hri, false,\n consensusProvider.getCloseRegionCoordination(), zkCrd);\n boolean throwable = false;\n try {\n handler.process();\n } catch (Throwable t) {\n throwable = true;\n } finally {\n assertTrue(throwable);\n // Abort calls stop so stopped flag should be set.\n assertTrue(server.isStopped());\n }\n } finally {\n HRegion.closeHRegion(region);\n }\n }", "title": "" }, { "docid": "9798ba66e6c64706fe067836dd516e9c", "score": "0.4971688", "text": "@Test\n public void zoneCompareAllTest() throws IOException {\n Map<String, Zone> oldScores = getZones(\"zones-all.2019-11-22.json\");\n Map<String, Zone> newScores = getZones(\"zones-all.2019-11-23.json\");\n \n int[] changed = new int[] { 0, 0 };\n \n newScores.values().stream().sorted(Comparator.comparing(zone -> zone.getRegion().getName() + \":\" + zone.getName())).forEach(zone -> {\n Zone oldZone = oldScores.get(zone.getName());\n if (oldZone != null && oldZone.getTakeoverPoints() != zone.getTakeoverPoints()) {\n if (zone.getRegion().getName().equals(\"Stockholm\")) {\n System.out.println(String.format(\"%16s - %3d +%1d -> %3d +%1d (%s)\", oldZone.getName(), oldZone.getTakeoverPoints(),\n oldZone.getPointsPerHour(), zone.getTakeoverPoints(), zone.getPointsPerHour(), zone.getRegion().getName()));\n changed[1] += 1;\n }\n changed[0] += 1;\n }\n });\n System.out.println(\"Changed total: \" + changed[0]);\n System.out.println(\"Changed Stockholm: \" + changed[1]);\n }", "title": "" }, { "docid": "a0cdcc6c43a4c615b43f439de659e12c", "score": "0.49708787", "text": "@Test\n public void testRedeploy() throws Exception {\n List<IgniteEx> grids = startGrids(3, false);\n\n // 2 services per node.\n grid(0).services().deploy(serviceCfg(MyServiceFactory.create(), 1, 0));\n\n awaitPartitionMapExchange();\n\n // Only same method metric count must persist across the cluster for the singleton.\n int expectedCnt = Arrays.stream(MyService.class.getDeclaredMethods()).map(Method::getName).collect(\n Collectors.toSet()).size();\n\n // Only same method metric count must persist across the cluster for the singleton.\n assertEquals(\"Only one metric registry can persist for one service instance\", expectedCnt,\n grids.stream().map(GridServiceMetricsTest::metricsCnt).mapToInt(Integer::intValue).sum());\n\n for (int i = 0; i < grids.size(); ++i) {\n if (metricsCnt(grid(i)) > 0) {\n stopGrid(i);\n\n awaitPartitionMapExchange();\n\n break;\n }\n }\n\n // Only same method metric count must persist across the cluster for the singleton.\n assertEquals(\"Only one metric registry can persist for one service instance\", expectedCnt,\n G.allGrids().stream().map(grid -> metricsCnt((IgniteEx)grid)).mapToInt(Integer::intValue).sum());\n }", "title": "" }, { "docid": "918444810d2e3fc473a4f74f71e52b75", "score": "0.4965857", "text": "@AfterClass\n public static void verify() throws Exception\n {\n DbVersions ver = h2consumer.getDbVersion();\n int maxVersion = DbVersions.UNINITIALIZED.version;\n for (DbVersions v : DbVersions.values())\n maxVersion = Math.max(maxVersion, v.version);\n assertEquals(maxVersion, ver.version);\n\n h2consumer.close();\n assertTrue(dbFileFull.exists());\n\n // Check if rows have been added.\n final JdbcDataSource ds = new org.h2.jdbcx.JdbcDataSource();\n ds.setURL(\"jdbc:h2:\" + dbFile.getAbsolutePath());\n ds.setUser(\"sa\");\n\n final Connection connection = ds.getConnection();\n\n ResultSet rs = connection.createStatement().executeQuery(\"SELECT COUNT(*) FROM TESTS\");\n assertTrue(rs.next());\n assertEquals(2, rs.getInt(1));\n\n rs = connection.createStatement().executeQuery(\"SELECT COUNT(*) FROM RUNS\");\n assertTrue(rs.next());\n assertEquals(1, rs.getInt(1));\n\n rs = connection.createStatement().executeQuery(\"SELECT CUSTOM_KEY FROM RUNS\");\n assertTrue(rs.next());\n assertEquals(CUSTOM_KEY_VALUE, rs.getString(1));\n\n connection.close();\n \n assertTrue(dbFileFull.delete());\n }", "title": "" }, { "docid": "931a4d3e94399e62241c8777d5d34109", "score": "0.49646705", "text": "@Test\n\tpublic void findBalancedPartition(){\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "f7e4bef4a7e4dddc6b32f4e3ea886bb7", "score": "0.49556795", "text": "com.google.bigtable.admin.v2.Backup.State getState();", "title": "" }, { "docid": "4149ac9a73ba01499500865bd7c3c438", "score": "0.4937261", "text": "@Test\n public void revertBlockCopyVolumeOperationsOnDeleteFailure() throws Exception{\n\n VolumeInfo srcData = Mockito.mock(VolumeInfo.class);\n VolumeInfo destData = Mockito.mock(VolumeInfo.class);\n Host host = Mockito.mock(Host.class);\n String srcVolumePath = \"bec0ba7700000007:vol-11-6aef-10ee\";\n String destVolumePath = \"01b332b300000007:vol-11-b9e2-10ee\";\n\n when(srcData.getId()).thenReturn(1L);\n when(srcData.getPoolId()).thenReturn(1L);\n when(destData.getId()).thenReturn(1L);\n\n when(srcData.getPath()).thenReturn(srcVolumePath);\n when(srcData.getFolder()).thenReturn(\"921c364500000007\");\n DataStore destStore = Mockito.mock(DataStore.class);\n when(destStore.getId()).thenReturn(2L);\n when(destData.getDataStore()).thenReturn(destStore);\n doNothing().when(scaleIOPrimaryDataStoreDriver).revokeAccess(any(), any(), any());\n\n ScaleIOGatewayClient client = Mockito.mock(ScaleIOGatewayClient.class);\n doReturn(client).when(scaleIOPrimaryDataStoreDriver)\n .getScaleIOClient(any());\n when(client.deleteVolume(any())).thenReturn(false);\n\n VolumeVO volume = new VolumeVO(\"root\", 1L, 1L, 1L, 1L, 1L, \"root\", \"root\", Storage.ProvisioningType.THIN, 1, null, null, \"root\", Volume.Type.ROOT);\n when(volumeDao.findById(1L)).thenReturn(volume);\n when(volumeDao.update(1L, volume)).thenReturn(true);\n\n scaleIOPrimaryDataStoreDriver.revertBlockCopyVolumeOperations(srcData, destData, host, destVolumePath);\n\n Assert.assertEquals(srcVolumePath, volume.get_iScsiName());\n Assert.assertEquals(srcVolumePath, volume.getPath());\n Assert.assertEquals(\"921c364500000007\", volume.getFolder());\n }", "title": "" }, { "docid": "e908f5dd3390e1ae9603e6d0cdbe256a", "score": "0.49345103", "text": "@Test(timeout=300000)\n public void test18() throws Throwable {\n WaitForCompletionPolicy waitForCompletionPolicy0 = new WaitForCompletionPolicy();\n Controller controller0 = new Controller(\"L\", 29, 29);\n BlobEscapedFilter blobEscapedFilter0 = new BlobEscapedFilter();\n VirtualDatabase virtualDatabase0 = new VirtualDatabase(controller0, \"L\", 29, false, 29, 29, (long) 29, 29, (AbstractBlobFilter) blobEscapedFilter0);\n RAIDb1_RR rAIDb1_RR0 = new RAIDb1_RR(virtualDatabase0, waitForCompletionPolicy0);\n TransactionMarkerMetaData transactionMarkerMetaData0 = new TransactionMarkerMetaData((long) 29, (long) 29, \"L\");\n LinkedList<ChronoLocalDate> linkedList0 = new LinkedList<ChronoLocalDate>();\n virtualDatabase0.setTotalOrderQueue(linkedList0);\n rAIDb1_RR0.releaseSavepoint(transactionMarkerMetaData0, \"L\");\n assertEquals(1, rAIDb1_RR0.getRAIDbLevel());\n }", "title": "" }, { "docid": "5455c8320a27f20f1cafb69a1c583ba8", "score": "0.49339196", "text": "private static boolean markRegionsOnline(final MasterProcedureEnv env, final TableName tableName)\n throws IOException {\n final AssignmentManager assignmentManager = env.getMasterServices().getAssignmentManager();\n final MasterServices masterServices = env.getMasterServices();\n final ServerManager serverManager = masterServices.getServerManager();\n boolean done = false;\n // Get the regions of this table. We're done when all listed\n // tables are onlined.\n List<Pair<HRegionInfo, ServerName>> tableRegionsAndLocations;\n\n if (TableName.META_TABLE_NAME.equals(tableName)) {\n tableRegionsAndLocations =\n new MetaTableLocator().getMetaRegionsAndLocations(masterServices.getZooKeeper());\n } else {\n tableRegionsAndLocations =\n MetaTableAccessor.getTableRegionsAndLocations(\n masterServices.getZooKeeper(), masterServices.getConnection(), tableName, true);\n }\n\n int countOfRegionsInTable = tableRegionsAndLocations.size();\n Map<HRegionInfo, ServerName> regionsToAssign =\n regionsToAssignWithServerName(env, tableRegionsAndLocations);\n\n // need to potentially create some regions for the replicas\n List<HRegionInfo> unrecordedReplicas =\n AssignmentManager.replicaRegionsNotRecordedInMeta(new HashSet<HRegionInfo>(\n regionsToAssign.keySet()), masterServices);\n Map<ServerName, List<HRegionInfo>> srvToUnassignedRegs =\n assignmentManager.getBalancer().roundRobinAssignment(unrecordedReplicas,\n serverManager.getOnlineServersList());\n if (srvToUnassignedRegs != null) {\n for (Map.Entry<ServerName, List<HRegionInfo>> entry : srvToUnassignedRegs.entrySet()) {\n for (HRegionInfo h : entry.getValue()) {\n regionsToAssign.put(h, entry.getKey());\n }\n }\n }\n\n int offlineRegionsCount = regionsToAssign.size();\n\n LOG.info(\"Table '\" + tableName + \"' has \" + countOfRegionsInTable + \" regions, of which \"\n + offlineRegionsCount + \" are offline.\");\n if (offlineRegionsCount == 0) {\n return true;\n }\n\n List<ServerName> onlineServers = serverManager.createDestinationServersList();\n Map<ServerName, List<HRegionInfo>> bulkPlan =\n env.getMasterServices().getAssignmentManager().getBalancer()\n .retainAssignment(regionsToAssign, onlineServers);\n if (bulkPlan != null) {\n LOG.info(\"Bulk assigning \" + offlineRegionsCount + \" region(s) across \" + bulkPlan.size()\n + \" server(s), retainAssignment=true\");\n\n BulkAssigner ba = new GeneralBulkAssigner(masterServices, bulkPlan, assignmentManager, true);\n try {\n if (ba.bulkAssign()) {\n done = true;\n }\n } catch (InterruptedException e) {\n LOG.warn(\"Enable operation was interrupted when enabling table '\" + tableName + \"'\");\n // Preserve the interrupt.\n Thread.currentThread().interrupt();\n }\n } else {\n LOG.info(\"Balancer was unable to find suitable servers for table \" + tableName\n + \", leaving unassigned\");\n }\n return done;\n }", "title": "" }, { "docid": "0133bd05e072df3819afe4e61f38eef0", "score": "0.49302447", "text": "@Test\n public void verifyBackups() throws Exception {\n Plugin initialTrileadAPI = new Plugin(\"trilead-api\", \"1.0.12\", null, null);\n File pluginArchive = new File(pluginsDir, initialTrileadAPI.getArchiveFileName());\n File pluginBackup = new File(pluginsDir, initialTrileadAPI.getBackupFileName());\n List<Plugin> requestedPlugins_1 = Collections.singletonList(initialTrileadAPI);\n PluginManager pluginManager = initPluginManager(\n configBuilder -> configBuilder.withPlugins(requestedPlugins_1).withDoDownload(true));\n pluginManager.start();\n assertPluginInstalled(initialTrileadAPI);\n assertFalse(pluginBackup.exists());\n\n\n // Second cycle, with plugin update and new plugin installation\n Plugin trileadAPI = new Plugin(\"trilead-api\", \"1.0.13\", null, null);\n List<Plugin> requestedPlugins_2 = Collections.singletonList(trileadAPI);\n PluginManager pluginManager2 = initPluginManager(\n configBuilder -> configBuilder.withPlugins(requestedPlugins_2).withDoDownload(true));\n pluginManager2.start();\n\n // Ensure that the plugins are actually in place and backup now exists\n assertPluginInstalled(trileadAPI);\n assertTrue(pluginBackup.exists());\n }", "title": "" }, { "docid": "9697bfc27d5f05cb85f858745966746c", "score": "0.49243146", "text": "@Test\n public void backupBeforeAfterTest() throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException {\n System.out.println(\"backupBeforeAfter\");\n\n Field BackupCell = mainpanel.getClass().getDeclaredField(\"_backupCells\");\n BackupCell.setAccessible(true);\n boolean[][] before = (boolean[][]) BackupCell.get(mainpanel);\n mainpanel.backup();\n boolean[][] after = (boolean[][]) BackupCell.get(mainpanel);\n assertNotEquals(before, after);\n\n }", "title": "" }, { "docid": "e6458de75978b2325b22ccdba164c7bb", "score": "0.4914315", "text": "@Test\n public void revertBlockCopyVolumeOperationsOnDeleteSuccess() throws Exception{\n\n VolumeInfo srcData = Mockito.mock(VolumeInfo.class);\n VolumeInfo destData = Mockito.mock(VolumeInfo.class);\n Host host = Mockito.mock(Host.class);\n String destVolumePath = \"01b332b300000007:vol-11-b9e2-10ee\";\n\n when(srcData.getId()).thenReturn(1L);\n when(srcData.getPoolId()).thenReturn(1L);\n when(destData.getId()).thenReturn(1L);\n\n when(srcData.getPath()).thenReturn(\"bec0ba7700000007:vol-11-6aef-10ee\");\n when(srcData.getFolder()).thenReturn(\"921c364500000007\");\n DataStore destStore = Mockito.mock(DataStore.class);\n when(destStore.getId()).thenReturn(2L);\n when(destData.getDataStore()).thenReturn(destStore);\n doNothing().when(scaleIOPrimaryDataStoreDriver)\n .revokeAccess(any(), any(), any());\n\n ScaleIOGatewayClient client = Mockito.mock(ScaleIOGatewayClient.class);\n doReturn(client).when(scaleIOPrimaryDataStoreDriver)\n .getScaleIOClient(any());\n when(client.deleteVolume(any())).thenReturn(true);\n\n VolumeVO volume = new VolumeVO(\"root\", 1L, 1L, 1L, 1L, 1L, \"root\", \"root\", Storage.ProvisioningType.THIN, 1, null, null, \"root\", Volume.Type.ROOT);\n when(volumeDao.findById(1L)).thenReturn(volume);\n when(volumeDao.update(1L, volume)).thenReturn(true);\n\n scaleIOPrimaryDataStoreDriver.revertBlockCopyVolumeOperations(srcData, destData, host, destVolumePath);\n\n Assert.assertEquals(\"bec0ba7700000007:vol-11-6aef-10ee\", volume.get_iScsiName());\n Assert.assertEquals(\"bec0ba7700000007:vol-11-6aef-10ee\", volume.getPath());\n Assert.assertEquals(\"921c364500000007\", volume.getFolder());\n }", "title": "" }, { "docid": "cbe1a7c8a689f5155eb61124596bb53f", "score": "0.49105355", "text": "@Test\n public void testSetMetadataStoreXmlVerifyVersionUpdate() throws Exception {\n final String newStoreXMLFilePrefix = \"updated.stores\";\n final String newStoreXMLFileSuffix = \"xml\";\n\n List<StoreDefinition> newStores = new ArrayList<StoreDefinition>();\n for(StoreDefinition storeDef: ClusterTestUtils.getZZZStoreDefsInMemory()) {\n StoreDefinitionBuilder sb = storeDefToBuilder(storeDef);\n Map<Integer, Integer> zrf = sb.getZoneReplicationFactor();\n Integer zone0RepFactor = zrf.get(0);\n zrf.remove(0);\n sb.setReplicationFactor(sb.getReplicationFactor() - zone0RepFactor);\n newStores.add(sb.build());\n }\n\n File newStoresXMLFolder = TestUtils.createTempDir();\n File newStoreXMLFile = File.createTempFile(newStoreXMLFilePrefix,\n newStoreXMLFileSuffix,\n newStoresXMLFolder);\n FileWriter fwriter = new FileWriter(newStoreXMLFile);\n fwriter.write(new StoreDefinitionsMapper().writeStoreList(newStores));\n fwriter.close();\n\n // check version\n String sysStoreName = SystemStoreConstants.SystemStoreName.voldsys$_metadata_version_persistence.name();\n ByteArray metadataKey = new ByteArray(ByteUtils.getBytes(SystemStoreConstants.VERSIONS_METADATA_KEY,\n \"utf-8\"));\n for(VoldemortServer vs: vservers.values()) {\n List<Versioned<byte[]>> result = vs.getStoreRepository()\n .getLocalStore(sysStoreName)\n .get(metadataKey, null);\n String versionInfo = new String(result.get(0).getValue());\n System.out.format(\"[INITIAL]Version values on node [%d] is: \\n %s\\n\",\n vs.getIdentityNode().getId(),\n versionInfo);\n\n Properties props = new Properties();\n props.load(new ByteArrayInputStream(versionInfo.getBytes()));\n for(StoreDefinition sd: oldStores) {\n if(!props.getProperty(sd.getName()).equals(\"0\")) {\n Assert.fail(\"Initial version of key [\" + sd.getName() + \"] on node [\"\n + vs.getIdentityNode().getId() + \"] is expected to be 0 but not\");\n }\n }\n if(!props.getProperty(\"cluster.xml\").equals(\"0\")) {\n Assert.fail(\"Final version of key [stores.xml] on node [\"\n + vs.getIdentityNode().getId()\n + \"] is expected to greater than 0 but not\");\n }\n }\n\n // update the stores xml\n VoldemortAdminTool.main(new String[] { \"--auto\", \"--set-metadata\",\n MetadataStore.STORES_KEY, \"--set-metadata-value\",\n newStoreXMLFile.getAbsolutePath(), \"--url\", bsURL });\n\n // Sleep for 10 seconds in order to let the versions to be propagated\n // properly\n try {\n Thread.sleep(10000);\n } catch(Exception e) {}\n\n // check version\n for(VoldemortServer vs: vservers.values()) {\n List<Versioned<byte[]>> result = vs.getStoreRepository()\n .getLocalStore(sysStoreName)\n .get(metadataKey, null);\n String versionInfo = new String(result.get(0).getValue());\n System.out.format(\"[FINAL]Version values on node [%d] is: \\n %s\\n\",\n vs.getIdentityNode().getId(),\n versionInfo);\n\n Properties props = new Properties();\n props.load(new ByteArrayInputStream(versionInfo.getBytes()));\n for(StoreDefinition sd: oldStores) {\n if(!(Long.parseLong(props.getProperty(sd.getName())) > 0)) {\n Assert.fail(\"Final version of key [\" + sd.getName() + \"] on node [\"\n + vs.getIdentityNode().getId()\n + \"] is expected to greater than 0 but not\");\n }\n }\n if(!(Long.parseLong(props.getProperty(\"stores.xml\")) > 0)) {\n Assert.fail(\"Final version of key [stores.xml] on node [\"\n + vs.getIdentityNode().getId()\n + \"] is expected to greater than 0 but not\");\n }\n }\n }", "title": "" }, { "docid": "f8667b9fe80ecdf6b0dd8e324bf690c0", "score": "0.4908862", "text": "@Test\n public void testStressFlushAndWALinIndexCompaction() throws IOException {\n // Set up the configuration\n conf.setLong(HREGION_MEMSTORE_FLUSH_SIZE, (600 * 1024));\n conf.setLong(HREGION_COLUMNFAMILY_FLUSH_SIZE_LOWER_BOUND_MIN, (200 * 1024));\n // set memstore to do data compaction and not to use the speculative scan\n conf.set(COMPACTING_MEMSTORE_TYPE_KEY, String.valueOf(BASIC));\n // Successfully initialize the HRegion\n HRegion region = initHRegion(\"testSelectiveFlushAndWALinDataCompaction\", conf);\n verifyInMemoryFlushSize(region);\n Thread[] threads = new Thread[25];\n for (int i = 0; i < (threads.length); i++) {\n int id = i * 10000;\n TestWalAndCompactingMemStoreFlush.ConcurrentPutRunnable runnable = new TestWalAndCompactingMemStoreFlush.ConcurrentPutRunnable(region, id);\n threads[i] = new Thread(runnable);\n threads[i].start();\n }\n Threads.sleep(10000);// let other threads start\n\n region.flush(true);// enforce flush of everything TO DISK while there are still ongoing puts\n\n Threads.sleep(10000);// let other threads continue\n\n region.flush(true);// enforce flush of everything TO DISK while there are still ongoing puts\n\n flushInMemory();\n flushInMemory();\n while (isMemStoreFlushingInMemory()) {\n Threads.sleep(10);\n } \n while (isMemStoreFlushingInMemory()) {\n Threads.sleep(10);\n } \n for (int i = 0; i < (threads.length); i++) {\n try {\n threads[i].join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "68cb23f587c7a1286989a3a938936732", "score": "0.49076948", "text": "public RegionAndUserBean transferRegionOwnership(\n RegionAndUserBean regionAndUser) throws DatastoreException {\n\n UserAccess userAccess = new UserAccess();\n RegionBean region = regionAndUser.getRegion();\n UserBean oldOwner = userAccess.getUserById(region.getOwnerId());\n UserBean newOwner = regionAndUser.getUser();\n\n long time = System.currentTimeMillis();\n\n if (newOwner.getRegions().contains(region.getRegionId())) {\n // this should never happen\n LOG.severe(newOwner.getUserId() + \" already owns region \" + region.getRegionId());\n //throw new IllegalStateException(newOwner.getUserId() + \" already owns region \" + region.getRegionId());\n }\n else {\n LOG.info(\"TRANSFER: oldOwner: \" + oldOwner.getUserId() + \" newOwner:\" + newOwner.getUserId()\n + \" region:\"+ region.getRegionId());\n userAccess.updateCreditsForUser(oldOwner);\n userAccess.updateCreditsForUser(newOwner);\n\n newOwner.getRegions().add(region.getRegionId());\n\n region.setOwnerId(newOwner.getUserId());\n region.setCost(region.getCost() * (1.0 + REGION_PCT_COST_INC));\n boolean removed = oldOwner.getRegions().remove(region.getRegionId());\n LOG.info(\"TRANSFER: \" + oldOwner + \" after removing \" + region.getRegionId());\n if (!removed) {\n String msg = \"Was not able to remove region \" + region.getRegionId() + \" from \" + oldOwner.getUserId()\n + \"with these regions: \" + oldOwner.getRegions();\n LOG.severe(msg);\n //throw new IllegalStateException(msg);\n }\n\n newOwner.setCredits(newOwner.getCredits() - region.getCost());\n oldOwner.setCredits(oldOwner.getCredits() + region.getCost());\n Date now = new Date();\n newOwner.setLastUpdated(now);\n oldOwner.setLastUpdated(now);\n\n // this should all happen as part of a single transaction (but it's not right now)\n userAccess.updateUser(oldOwner);\n userAccess.updateUser(newOwner);\n this.updateRegion(region);\n }\n\n long duration = System.currentTimeMillis() - time;\n String msg = \"time to transfer ownership = \" + duration + \"ms.\";\n LOG.info(msg);\n LOG.info(\"TRANSFER: Returning : \" + regionAndUser);\n\n return regionAndUser;\n }", "title": "" }, { "docid": "14d20cd04ed453c8ebeacb9065e1a378", "score": "0.4901811", "text": "@Test (timeout=300000)\n public void testTableAdminAndMetadata() throws Exception {\n AvroServer.HBaseImpl impl =\n new AvroServer.HBaseImpl(TEST_UTIL.getConfiguration());\n\n assertEquals(impl.listTables().size(), 0);\n\n ATableDescriptor tableA = new ATableDescriptor();\n tableA.name = tableAname;\n impl.createTable(tableA);\n assertEquals(impl.listTables().size(), 1);\n assertTrue(impl.isTableEnabled(tableAname));\n assertTrue(impl.tableExists(tableAname));\n\n ATableDescriptor tableB = new ATableDescriptor();\n tableB.name = tableBname;\n impl.createTable(tableB);\n assertEquals(impl.listTables().size(), 2);\n\n impl.disableTable(tableBname);\n assertFalse(impl.isTableEnabled(tableBname));\n\n impl.deleteTable(tableBname);\n assertEquals(impl.listTables().size(), 1);\n\n impl.disableTable(tableAname);\n assertFalse(impl.isTableEnabled(tableAname));\n\n long oldMaxFileSize = impl.describeTable(tableAname).maxFileSize;\n tableA.maxFileSize = 123456L;\n impl.modifyTable(tableAname, tableA);\n \n // It can take a while for the change to take effect. Wait here a while.\n while(impl.describeTable(tableAname).maxFileSize == oldMaxFileSize) {\n Threads.sleep(100);\n }\n\n assertTrue(impl.describeTable(tableAname).maxFileSize == 123456L);\n assertEquals(123456L, (long) impl.describeTable(tableAname).maxFileSize);\n/* DISABLED FOR NOW TILL WE HAVE BETTER DISABLE/ENABLE\n impl.enableTable(tableAname);\n assertTrue(impl.isTableEnabled(tableAname));\n \n impl.disableTable(tableAname);\n */\n impl.deleteTable(tableAname);\n }", "title": "" }, { "docid": "de8259a961f8510b74d8e4349f967cd0", "score": "0.49005955", "text": "@Test\n public void testDontDeleteIfDirty() throws Exception\n {\n Mutation rm = new Mutation(KEYSPACE1, bytes(\"k\"));\n rm.add(CF1, Util.cellname(\"c1\"), ByteBuffer.allocate(DatabaseDescriptor.getCommitLogSegmentSize()/4), 0);\n\n // Adding it 5 times\n CommitLog.instance.add(rm);\n CommitLog.instance.add(rm);\n CommitLog.instance.add(rm);\n CommitLog.instance.add(rm);\n CommitLog.instance.add(rm);\n\n // Adding new mutation on another CF\n Mutation rm2 = new Mutation(KEYSPACE1, bytes(\"k\"));\n rm2.add(CF2, Util.cellname(\"c1\"), ByteBuffer.allocate(4), 0);\n CommitLog.instance.add(rm2);\n\n assert CommitLog.instance.activeSegments() == 2 : \"Expecting 2 segments, got \" + CommitLog.instance.activeSegments();\n\n UUID cfid2 = rm2.getColumnFamilyIds().iterator().next();\n CommitLog.instance.discardCompletedSegments(cfid2, CommitLog.instance.getContext());\n\n // Assert we still have both our segment\n assert CommitLog.instance.activeSegments() == 2 : \"Expecting 2 segments, got \" + CommitLog.instance.activeSegments();\n }", "title": "" }, { "docid": "1fd44306225b32da06c1ce9b0e10992e", "score": "0.4894871", "text": "@Test\n public void testSnapshotSupportConfiguration() throws Exception {\n // No configuration (no cleaners, not enabled): snapshot feature disabled\n Configuration conf = new Configuration();\n SnapshotManager manager = getNewManager(conf);\n assertFalse(\"Snapshot should be disabled with no configuration\", isSnapshotSupported(manager));\n\n // force snapshot feature to be enabled\n conf = new Configuration();\n conf.setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, true);\n manager = getNewManager(conf);\n assertTrue(\"Snapshot should be enabled\", isSnapshotSupported(manager));\n\n // force snapshot feature to be disabled\n conf = new Configuration();\n conf.setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, false);\n manager = getNewManager(conf);\n assertFalse(\"Snapshot should be disabled\", isSnapshotSupported(manager));\n\n // force snapshot feature to be disabled, even if cleaners are present\n conf = new Configuration();\n conf.setStrings(HFileCleaner.MASTER_HFILE_CLEANER_PLUGINS,\n SnapshotHFileCleaner.class.getName(), HFileLinkCleaner.class.getName());\n conf.set(HConstants.HBASE_MASTER_LOGCLEANER_PLUGINS, SnapshotLogCleaner.class.getName());\n conf.setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, false);\n manager = getNewManager(conf);\n assertFalse(\"Snapshot should be disabled\", isSnapshotSupported(manager));\n\n // cleaners are present, but missing snapshot enabled property\n conf = new Configuration();\n conf.setStrings(HFileCleaner.MASTER_HFILE_CLEANER_PLUGINS,\n SnapshotHFileCleaner.class.getName(), HFileLinkCleaner.class.getName());\n conf.set(HConstants.HBASE_MASTER_LOGCLEANER_PLUGINS, SnapshotLogCleaner.class.getName());\n manager = getNewManager(conf);\n assertTrue(\"Snapshot should be enabled, because cleaners are present\",\n isSnapshotSupported(manager));\n\n // Create a \"test snapshot\"\n Path rootDir = UTIL.getDataTestDir();\n Path testSnapshotDir = SnapshotDescriptionUtils.getCompletedSnapshotDir(\n \"testSnapshotSupportConfiguration\", rootDir);\n fs.mkdirs(testSnapshotDir);\n try {\n // force snapshot feature to be disabled, but snapshots are present\n conf = new Configuration();\n conf.setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, false);\n manager = getNewManager(conf);\n fail(\"Master should not start when snapshot is disabled, but snapshots are present\");\n } catch (UnsupportedOperationException e) {\n // expected\n } finally {\n fs.delete(testSnapshotDir, true);\n }\n }", "title": "" }, { "docid": "f81c18dcebd70d8c9aa5cd1eead23a62", "score": "0.4883804", "text": "@Test\n public void replicaFromOfflineToBootstrapTest() throws Exception {\n generateConfigs(true, false);\n MockDataNodeId localNode = clusterMap.getDataNodes().get(0);\n List<PartitionId> partitionIds = clusterMap.getAllPartitionIds(null);\n List<ReplicaId> localReplicas = clusterMap.getReplicaIds(localNode);\n MockClusterParticipant mockHelixParticipant = new MockClusterParticipant();\n StorageManager storageManager =\n createStorageManager(localNode, metricRegistry, Collections.singletonList(mockHelixParticipant));\n storageManager.start();\n // 1. get listeners from Helix participant and verify there is a storageManager listener.\n Map<StateModelListenerType, PartitionStateChangeListener> listeners =\n mockHelixParticipant.getPartitionStateChangeListeners();\n assertTrue(\"Should contain storage manager listener\",\n listeners.containsKey(StateModelListenerType.StorageManagerListener));\n // 2. if new bootstrap replica is not found, there should be an exception\n try {\n mockHelixParticipant.onPartitionBecomeBootstrapFromOffline(String.valueOf(partitionIds.size() + 1));\n fail(\"should fail due to bootstrap replica not found\");\n } catch (StateTransitionException e) {\n assertEquals(\"Error code doesn't match\", ReplicaNotFound, e.getErrorCode());\n }\n\n // 3. test regular store didn't start up (which triggers StoreNotStarted exception)\n ReplicaId replicaId = localReplicas.get(0);\n Store localStore = storageManager.getStore(replicaId.getPartitionId(), true);\n localStore.shutdown();\n try {\n mockHelixParticipant.onPartitionBecomeBootstrapFromOffline(replicaId.getPartitionId().toPathString());\n fail(\"should fail due to store not started\");\n } catch (StateTransitionException e) {\n assertEquals(\"Error code doesn't match\", StoreNotStarted, e.getErrorCode());\n }\n localStore.start();\n\n // 4. test both failure and success cases regarding new replica addition\n PartitionId newPartition = clusterMap.createNewPartition(Collections.singletonList(localNode));\n assertNull(\"There should not be any store associated with new partition\",\n storageManager.getStore(newPartition, true));\n // find an existing replica that shares disk with new replica\n ReplicaId newReplica = newPartition.getReplicaIds().get(0);\n ReplicaId replicaOnSameDisk =\n localReplicas.stream().filter(r -> r.getDiskId().equals(newReplica.getDiskId())).findFirst().get();\n // test add new store failure by shutting down target diskManager\n storageManager.getDiskManager(replicaOnSameDisk.getPartitionId()).shutdown();\n try {\n mockHelixParticipant.onPartitionBecomeBootstrapFromOffline(newPartition.toPathString());\n fail(\"should fail due to disk is down\");\n } catch (StateTransitionException e) {\n assertEquals(\"Error code doesn't match\", ReplicaOperationFailure, e.getErrorCode());\n }\n // restart disk manager to test case where new replica(store) is successfully added into StorageManager\n storageManager.getDiskManager(replicaOnSameDisk.getPartitionId()).start();\n mockHelixParticipant.onPartitionBecomeBootstrapFromOffline(newPartition.toPathString());\n BlobStore newAddedStore = (BlobStore) storageManager.getStore(newPartition);\n assertNotNull(\"There should be a started store associated with new partition\", newAddedStore);\n\n // 5. verify that new added store has bootstrap file\n assertTrue(\"There should be a bootstrap file indicating store is in BOOTSTRAP state\",\n newAddedStore.isBootstrapInProgress());\n assertEquals(\"The store's current state should be BOOTSTRAP\", ReplicaState.BOOTSTRAP,\n newAddedStore.getCurrentState());\n\n // 6. test that state transition should succeed for existing non-empty replicas (we write some data into store beforehand)\n MockId id = new MockId(TestUtils.getRandomString(MOCK_ID_STRING_LENGTH), Utils.getRandomShort(TestUtils.RANDOM),\n Utils.getRandomShort(TestUtils.RANDOM));\n MessageInfo info =\n new MessageInfo(id, PUT_RECORD_SIZE, id.getAccountId(), id.getContainerId(), Utils.Infinite_Time);\n MessageWriteSet writeSet = new MockMessageWriteSet(Collections.singletonList(info),\n Collections.singletonList(ByteBuffer.allocate(PUT_RECORD_SIZE)));\n Store storeToWrite = storageManager.getStore(localReplicas.get(1).getPartitionId());\n storeToWrite.put(writeSet);\n mockHelixParticipant.onPartitionBecomeBootstrapFromOffline(localReplicas.get(1).getPartitionId().toPathString());\n assertFalse(\"There should not be any bootstrap file for existing non-empty store\",\n storeToWrite.isBootstrapInProgress());\n assertEquals(\"The store's current state should be BOOTSTRAP\", ReplicaState.BOOTSTRAP,\n storeToWrite.getCurrentState());\n\n // 7. test that for new created (empty) store, state transition puts it into BOOTSTRAP state\n mockHelixParticipant.onPartitionBecomeBootstrapFromOffline(localReplicas.get(0).getPartitionId().toPathString());\n assertTrue(\"There should be a bootstrap file because store is empty and probably recreated\",\n localStore.isBootstrapInProgress());\n assertEquals(\"The store's current state should be BOOTSTRAP\", ReplicaState.BOOTSTRAP, localStore.getCurrentState());\n\n // 8. test that when an existing store is already leader or standby, state transition is not going to change it\n // back to BOOTSTRAP\n storageManager.getStore(localReplicas.get(0).getPartitionId()).setCurrentState(ReplicaState.STANDBY);\n mockHelixParticipant.onPartitionBecomeBootstrapFromOffline(localReplicas.get(0).getPartitionId().toPathString());\n assertEquals(\"The store's current state should be STANDBY\", ReplicaState.STANDBY, localStore.getCurrentState());\n storageManager.getStore(localReplicas.get(0).getPartitionId()).setCurrentState(ReplicaState.LEADER);\n mockHelixParticipant.onPartitionBecomeBootstrapFromOffline(localReplicas.get(0).getPartitionId().toPathString());\n assertEquals(\"The store's current state should be LEADER\", ReplicaState.LEADER, localStore.getCurrentState());\n\n shutdownAndAssertStoresInaccessible(storageManager, localReplicas);\n }", "title": "" }, { "docid": "6018b8d4e3caac972386422b9017dd0b", "score": "0.48828664", "text": "@Test\n public void residualDirDeletionTest() throws Exception {\n MockDataNodeId localNode = clusterMap.getDataNodes().get(0);\n List<ReplicaId> replicas = clusterMap.getReplicaIds(localNode);\n MockClusterParticipant mockHelixParticipant = Mockito.spy(new MockClusterParticipant());\n doNothing().when(mockHelixParticipant).setPartitionDisabledState(anyString(), anyBoolean());\n // create an extra store dir at one of the mount paths\n String mountPath = replicas.get(0).getMountPath();\n String extraPartitionName = \"1000\";\n File extraStoreDir = new File(mountPath, extraPartitionName);\n assertTrue(\"Can't create an extra store dir\", extraStoreDir.mkdir());\n StorageManager storageManager =\n createStorageManager(localNode, metricRegistry, Collections.singletonList(mockHelixParticipant));\n storageManager.start();\n // failure case: IOException when deleting store dir\n File invalidDir = new File(extraStoreDir.getAbsolutePath(), \"invalidDir\");\n invalidDir.deleteOnExit();\n assertTrue(\"Couldn't create dir within store dir\", invalidDir.mkdir());\n assertTrue(\"Could not make unreadable\", invalidDir.setReadable(false));\n try {\n mockHelixParticipant.onPartitionBecomeDroppedFromOffline(extraPartitionName);\n fail(\"should fail because there is IOException when deleting store dir\");\n } catch (StateTransitionException e) {\n assertEquals(\"Error code is not expected\", ReplicaOperationFailure, e.getErrorCode());\n }\n assertTrue(\"Could not make readable\", invalidDir.setReadable(true));\n // trigger OFFLINE -> DROPPED transition on extra partition. Storage manager should delete residual store dir.\n mockHelixParticipant.onPartitionBecomeDroppedFromOffline(extraPartitionName);\n verify(mockHelixParticipant).setPartitionDisabledState(extraPartitionName, false);\n assertFalse(\"Extra store dir should not exist\", extraStoreDir.exists());\n shutdownAndAssertStoresInaccessible(storageManager, replicas);\n }", "title": "" }, { "docid": "f342b65e6bec42d74ad5603553d81590", "score": "0.48744798", "text": "private void markRegionsOfflineDuringRecovery(final MasterProcedureEnv env) {\n try {\n // This is a best effort attempt. We will move on even it does not succeed. We will retry\n // several times until we giving up.\n DisableTableProcedure.markRegionsOffline(env, tableName, true);\n } catch (Exception e) {\n LOG.debug(\"Failed to offline all regions of table \" + tableName + \". Ignoring\", e);\n }\n }", "title": "" }, { "docid": "d5923155f74834cd9422935195d5ac8f", "score": "0.4868855", "text": "@Test\n public void testListSegmentsCommand() throws Exception {\n int instanceId = 0;\n int bookieCount = 3;\n int containerCount = 1;\n @Cleanup\n PravegaRunner pravegaRunner = new PravegaRunner(bookieCount, containerCount);\n pravegaRunner.startBookKeeperRunner(instanceId);\n pravegaRunner.startControllerAndSegmentStore(this.storageFactory, null);\n String streamName = \"testListSegmentsCommand\";\n\n TestUtils.createScopeStream(pravegaRunner.getControllerRunner().getController(), SCOPE, streamName, config);\n try (val clientRunner = new ClientRunner(pravegaRunner.getControllerRunner())) {\n // Write events to the streams.\n TestUtils.writeEvents(streamName, clientRunner.getClientFactory());\n }\n pravegaRunner.shutDownControllerRunner(); // Shut down the controller\n\n // Flush all Tier 1 to LTS\n ServiceBuilder.ComponentSetup componentSetup = new ServiceBuilder.ComponentSetup(pravegaRunner.getSegmentStoreRunner().getServiceBuilder());\n for (int containerId = 0; containerId < containerCount; containerId++) {\n componentSetup.getContainerRegistry().getContainer(containerId).flushToStorage(TIMEOUT).join();\n }\n\n pravegaRunner.shutDownSegmentStoreRunner(); // Shutdown SegmentStore\n pravegaRunner.shutDownBookKeeperRunner(); // Shutdown BookKeeper & ZooKeeper\n\n // set pravega properties for the test\n STATE.set(new AdminCommandState());\n Properties pravegaProperties = new Properties();\n pravegaProperties.setProperty(\"pravegaservice.container.count\", \"1\");\n pravegaProperties.setProperty(\"pravegaservice.storage.impl.name\", \"FILESYSTEM\");\n pravegaProperties.setProperty(\"pravegaservice.storage.layout\", \"ROLLING_STORAGE\");\n pravegaProperties.setProperty(\"filesystem.root\", this.baseDir.getAbsolutePath());\n STATE.get().getConfigBuilder().include(pravegaProperties);\n\n // Execute the command for list segments\n TestUtils.executeCommand(\"data-recovery list-segments \" + this.logsDir.getAbsolutePath(), STATE.get());\n // There should be a csv file created for storing segments in Container 0\n Assert.assertTrue(new File(this.logsDir.getAbsolutePath(), \"Container_0.csv\").exists());\n // Check if the file has segments listed in it\n Path path = Paths.get(this.logsDir.getAbsolutePath() + \"/Container_0.csv\");\n long lines = Files.lines(path).count();\n AssertExtensions.assertGreaterThan(\"There should be at least one segment.\", 1, lines);\n Assert.assertNotNull(StorageListSegmentsCommand.descriptor());\n }", "title": "" }, { "docid": "3333ee95094198a39f628ce1ffb57e29", "score": "0.48668405", "text": "@Test\n public void scheduleAndControlCompactionTest() throws Exception {\n MockDataNodeId dataNode = clusterMap.getDataNodes().get(0);\n List<ReplicaId> replicas = clusterMap.getReplicaIds(dataNode);\n List<MockDataNodeId> dataNodes = new ArrayList<>();\n dataNodes.add(dataNode);\n MockPartitionId invalidPartition =\n new MockPartitionId(Long.MAX_VALUE, MockClusterMap.DEFAULT_PARTITION_CLASS, dataNodes, 0);\n List<? extends ReplicaId> invalidPartitionReplicas = invalidPartition.getReplicaIds();\n StorageManager storageManager = createStorageManager(dataNode, metricRegistry, null);\n storageManager.start();\n assertEquals(\"There should be 1 unexpected partition reported\", 1, getNumUnrecognizedPartitionsReported());\n // add invalid replica id\n replicas.add(invalidPartitionReplicas.get(0));\n for (int i = 0; i < replicas.size(); i++) {\n ReplicaId replica = replicas.get(i);\n PartitionId id = replica.getPartitionId();\n if (i == replicas.size() - 1) {\n assertFalse(\"Schedule compaction should fail\", storageManager.scheduleNextForCompaction(id));\n assertFalse(\"Disable compaction should fail\", storageManager.controlCompactionForBlobStore(id, false));\n assertFalse(\"Enable compaction should fail\", storageManager.controlCompactionForBlobStore(id, true));\n } else {\n assertTrue(\"Enable compaction should succeed\", storageManager.controlCompactionForBlobStore(id, true));\n assertTrue(\"Schedule compaction should succeed\", storageManager.scheduleNextForCompaction(id));\n }\n }\n ReplicaId replica = replicas.get(0);\n PartitionId id = replica.getPartitionId();\n assertTrue(\"Disable compaction should succeed\", storageManager.controlCompactionForBlobStore(id, false));\n assertFalse(\"Schedule compaction should fail\", storageManager.scheduleNextForCompaction(id));\n assertTrue(\"Enable compaction should succeed\", storageManager.controlCompactionForBlobStore(id, true));\n assertTrue(\"Schedule compaction should succeed\", storageManager.scheduleNextForCompaction(id));\n\n replica = replicas.get(1);\n id = replica.getPartitionId();\n assertTrue(\"Schedule compaction should succeed\", storageManager.scheduleNextForCompaction(id));\n replicas.remove(replicas.size() - 1);\n shutdownAndAssertStoresInaccessible(storageManager, replicas);\n }", "title": "" }, { "docid": "f92ad9e50859c527394c1b7cd9a80f20", "score": "0.48644862", "text": "@Test\n public void skipModificationTimeGlobally() {\n configurator.snapshots.setCheckModificationTime(false);\n\n // TEST1: One pair of files have different modification times, but we have disabled the check, so no\n // error will be thrown when comparing\n FileSystemSnapshot snapshot1 = new FileSystemSnapshot(\"snap1\");\n snapshot1.addDirectory(\"F1\", FILES_ROOT + \"modification_time/sub-dir1\");\n snapshot1.takeSnapshot();\n\n FileSystemSnapshot snapshot2 = new FileSystemSnapshot(\"snap2\");\n snapshot2.addDirectory(\"F1\", FILES_ROOT + \"modification_time/sub-dir2\");\n snapshot2.takeSnapshot();\n\n snapshot1.compare(snapshot2);\n\n // globally enable checking the modification time\n configurator.snapshots.setCheckModificationTime(true);\n\n // TEST2: Now we will do the check and error must be registered\n FileSystemSnapshot snapshot3 = new FileSystemSnapshot(\"snap1\");\n snapshot3.addDirectory(\"F1\", FILES_ROOT + \"modification_time/sub-dir1\");\n snapshot3.takeSnapshot();\n\n FileSystemSnapshot snapshot4 = new FileSystemSnapshot(\"snap2\");\n snapshot4.addDirectory(\"F1\", FILES_ROOT + \"modification_time/sub-dir2\");\n snapshot4.takeSnapshot();\n\n try {\n snapshot3.compare(snapshot4);\n thisShouldNotBeReached();\n } catch (FileSystemSnapshotException se) {\n verifyError(se, \".*Modification time: .*\");\n }\n }", "title": "" }, { "docid": "b256f4a0de422b642196ec372d680736", "score": "0.4862354", "text": "@Test\n public void testReadWrite() throws IOException {\n copyResourceToFile(\"/configurationStore/minimal.json\", testFile);\n ConfigurationStore configStore = new ConfigurationStoreImpl(testFile);\n ConfigurationSegment snapshot = configStore.getSnapshotOfRootSegment();\n configStore.update(snapshot);\n }", "title": "" }, { "docid": "292763842332a69e122d8176e683248d", "score": "0.48556384", "text": "public void testZoneUnbalanced() {\n Map<String, Integer> nodesPerZone = new HashMap<>();\n nodesPerZone.put(\"zone_0\", 5);\n nodesPerZone.put(\"zone_1\", 1);\n createEmptyZoneAwareCluster(nodesPerZone);\n addIndices(\"index_\", 1, 5, 1);\n updateInitialCluster();\n\n buildZoneAwareAllocationService();\n clusterState = allocateShardsAndBalance(clusterState);\n assertForIndexShardHotSpots(true, 6);\n assertTrue(clusterState.getRoutingTable().shardsWithState(UNASSIGNED).isEmpty());\n\n resetCluster();\n buildZoneAwareAllocationService();\n clusterState = allocateShardsAndBalance(clusterState);\n assertForIndexShardHotSpots(true, 6);\n assertTrue(clusterState.getRoutingTable().shardsWithState(UNASSIGNED).isEmpty());\n }", "title": "" }, { "docid": "ba5c0dd3d8c8e7805dc18e721cdbb31e", "score": "0.4852013", "text": "long evictRegion(CacheRegion region) throws CacheRepositoryException;", "title": "" }, { "docid": "0f2a340c066b1487dad75fa34b7153f0", "score": "0.48515016", "text": "private void assertMarkerFilesForDowngrade(HoodieTable table, HoodieInstant commitInstant, boolean assertExists) throws IOException {\n WriteMarkers writeMarkers = WriteMarkersFactory.get(getConfig().getMarkersType(), table, commitInstant.getTimestamp());\n if (assertExists) {\n assertTrue(writeMarkers.doesMarkerDirExist());\n assertEquals(0, getTimelineServerBasedMarkerFileCount(table.getMetaClient().getMarkerFolderPath(commitInstant.getTimestamp()),\n table.getMetaClient().getFs()));\n } else {\n assertFalse(writeMarkers.doesMarkerDirExist());\n }\n }", "title": "" }, { "docid": "7bb448dc8d8c522faf915c4966aefafb", "score": "0.48437944", "text": "@Test\n public void testTrackAllocationsImmediatelyCreatesInfoData() {\n MemoryRequest memoryRequest = MemoryRequest\n .newBuilder().setSession(TEST_SESSION).setStartTime(0).setEndTime(Long.MAX_VALUE).build();\n MemoryData expectedData = MemoryData.getDefaultInstance();\n StreamObserver<MemoryData> memoryDataObserver = mock(StreamObserver.class);\n myMemoryService.getData(memoryRequest, memoryDataObserver);\n validateResponse(memoryDataObserver, expectedData);\n\n // Enable allocation tracking.\n myFakeMemoryService.setTrackAllocationsInfo(IN_PROGRESS_LEGACY_ALLOCATION_INFO);\n TrackAllocationsRequest request = TrackAllocationsRequest.newBuilder().setSession(TEST_SESSION).setEnabled(true).build();\n TrackAllocationsResponse trackAllocationsExpected = TrackAllocationsResponse\n .newBuilder().setStatus(TrackStatus.newBuilder().setStatus(Status.SUCCESS)).setInfo(IN_PROGRESS_LEGACY_ALLOCATION_INFO).build();\n StreamObserver<TrackAllocationsResponse> trackAllocationsObserver = mock(StreamObserver.class);\n myMemoryService.trackAllocations(request, trackAllocationsObserver);\n validateResponse(trackAllocationsObserver, trackAllocationsExpected);\n\n // Tests that the AllocationsInfo exists without having to poll.\n expectedData = MemoryData.newBuilder().addAllocationsInfo(IN_PROGRESS_LEGACY_ALLOCATION_INFO).build();\n memoryDataObserver = mock(StreamObserver.class);\n myMemoryService.getData(memoryRequest, memoryDataObserver);\n validateResponse(memoryDataObserver, expectedData);\n }", "title": "" }, { "docid": "8cac722882cc170b9174a4a2ec517002", "score": "0.48339295", "text": "@Test ( groups = { \"CHDiskCapacity\" })\n\tpublic void TC9908() throws Exception {\n\t\trun_test();\n\t}", "title": "" }, { "docid": "a668d0518eaba253ed8253725553e505", "score": "0.4832379", "text": "@Test(timeout=300000)\n public void test12() throws Throwable {\n WaitForCompletionPolicy waitForCompletionPolicy0 = new WaitForCompletionPolicy();\n Controller controller0 = new Controller(\"L\", 29, 29);\n BlobEscapedFilter blobEscapedFilter0 = new BlobEscapedFilter();\n VirtualDatabase virtualDatabase0 = new VirtualDatabase(controller0, \"L\", 29, false, 29, 29, (long) 29, 29, (AbstractBlobFilter) blobEscapedFilter0);\n TransactionMarkerMetaData transactionMarkerMetaData0 = new TransactionMarkerMetaData((long) 29, (long) 29, \"L\");\n LinkedList<ChronoLocalDate> linkedList0 = new LinkedList<ChronoLocalDate>();\n virtualDatabase0.setTotalOrderQueue(linkedList0);\n RAIDb1_WRR rAIDb1_WRR0 = new RAIDb1_WRR(virtualDatabase0, waitForCompletionPolicy0);\n rAIDb1_WRR0.commit(transactionMarkerMetaData0);\n assertEquals(\"loadbalancer\", rAIDb1_WRR0.getAssociatedString());\n }", "title": "" }, { "docid": "5d4c7ded5b3bc46efb630e407f29bb15", "score": "0.4830536", "text": "@Test\n public void testFileCreationSimple2() throws IOException, SQLException {\n\n dfs.mkdirs(new Path(\"/d1\"));\n\n Data oldData = getData();\n\n boolean isSnapShottingSuccess = dfs.takeRootLevelSnapshot(\"Admin\");\n\n if (!isSnapShottingSuccess) {\n throw new IOException(\"Taking Snapshot at root failed\");\n } else {\n System.out.println(\"Snapshotting was success\");\n }\n\n Path p1 = new Path(\"/d1/f2\");\n\n int blocks = 1;\n FSDataOutputStream out = dfs.create(p1);\n\n int i = 0;\n for (; i < blocks; i++) {\n out.write(i);\n }\n out.close();\n dfs.rollBack(\"Admin\");\n\n Data newData = getData();\n boolean validity = newData.equals(oldData);\n assertTrue(validity);\n }", "title": "" }, { "docid": "410fc10518a5ea3ffe42a1f4127b1fae", "score": "0.48291048", "text": "@BeforeClass public static void beforeAllTests() throws Exception {\n TEST_UTIL.getConfiguration().setInt(\"hbase.regions.percheckin\", 2);\n // Start a cluster of two regionservers.\n TEST_UTIL.startMiniCluster(2);\n // Create a table of three families. This will assign a region.\n TEST_UTIL.createTable(TABLENAME, FAMILIES);\n HTable t = new HTable(TEST_UTIL.getConfiguration(), TABLENAME);\n int countOfRegions = TEST_UTIL.createMultiRegions(t, FAMILIES[0]);\n TEST_UTIL.waitUntilAllRegionsAssigned(countOfRegions);\n HTable table = new HTable(TEST_UTIL.getConfiguration(), TABLENAME);\n TEST_UTIL.loadTable(table, FAMILIES[0]);\n table.close();\n }", "title": "" }, { "docid": "fe3db30ff2fd9c5eddd798d995bb81eb", "score": "0.4828739", "text": "@Test\n public void deleteSourceVolumeSuccessScenarioAfterSuccessfulBlockCopy() throws Exception {\n\n VolumeInfo srcData = Mockito.mock(VolumeInfo.class);\n Host host = Mockito.mock(Host.class);\n String srcVolumePath = \"bec0ba7700000007:vol-11-6aef-10ee\";\n\n DataStore srcStore = Mockito.mock(DataStore.class);\n DataTO volumeTO = Mockito.mock(DataTO.class);\n when(srcData.getDataStore()).thenReturn(srcStore);\n when(srcData.getTO()).thenReturn(volumeTO);\n when(volumeTO.getPath()).thenReturn(srcVolumePath);\n doNothing().when(scaleIOPrimaryDataStoreDriver).revokeVolumeAccess(any(), any(), any());\n\n ScaleIOGatewayClient client = Mockito.mock(ScaleIOGatewayClient.class);\n doReturn(client).when(scaleIOPrimaryDataStoreDriver)\n .getScaleIOClient(any());\n when(client.deleteVolume(any())).thenReturn(true);\n\n scaleIOPrimaryDataStoreDriver.deleteSourceVolumeAfterSuccessfulBlockCopy(srcData, host);\n }", "title": "" }, { "docid": "a5b03aee3689fedaa4d7173aa88e3f84", "score": "0.48269874", "text": "@Test\n public void deleteSourceVolumeFailureScenarioAfterSuccessfulBlockCopy() throws Exception {\n\n VolumeInfo srcData = Mockito.mock(VolumeInfo.class);\n Host host = Mockito.mock(Host.class);\n when(host.getId()).thenReturn(1L);\n String srcVolumePath = \"bec0ba7700000007:vol-11-6aef-10ee\";\n\n DataStore srcStore = Mockito.mock(DataStore.class);\n when(srcStore.getId()).thenReturn(1L);\n DataTO volumeTO = Mockito.mock(DataTO.class);\n when(srcData.getDataStore()).thenReturn(srcStore);\n when(srcData.getTO()).thenReturn(volumeTO);\n when(volumeTO.getPath()).thenReturn(srcVolumePath);\n String sdcId = \"7332760565f6340f\";\n doReturn(sdcId).when(scaleIOPrimaryDataStoreDriver).getConnectedSdc(1L, 1L);\n\n ScaleIOGatewayClient client = Mockito.mock(ScaleIOGatewayClient.class);\n doReturn(client).when(scaleIOPrimaryDataStoreDriver)\n .getScaleIOClient(any());\n doReturn(true).when(client).unmapVolumeFromSdc(any(), any());\n when(client.deleteVolume(any())).thenReturn(false);\n\n scaleIOPrimaryDataStoreDriver.deleteSourceVolumeAfterSuccessfulBlockCopy(srcData, host);\n }", "title": "" }, { "docid": "27cd32cf4be12472e3dad74d46473043", "score": "0.48175654", "text": "@Test\n\tpublic void SaveAndFindRecipesByServingCapacityTest() {\n\t\tRecipeEntity newRecipe = TestUtil.buildSampleRecipeEntity(105,\"White Rice\",\"vg\",30);\n\t\t//Save new recipe to repository\n\t\trepo.save(newRecipe);\n\t\t\n\t\t//Retrieve recipes based on creation date and time\n\t\tList<RecipeEntity> recipeEntities = repo.findRecipesByServingCapacity(30);\n\t\t\n\t\t//Validate there's exactly one recipe returned from repository\n\t\tassertThat(recipeEntities).as(\"Recipes do not contain exactly 1 recipe as expected\")\n\t\t\t .hasSize(1);\n\t\t\n\t\t//validate both recipes are having same serving capacity value\n\t\tassertThat(recipeEntities).extracting(recipe -> recipe.getServingCapacity())\n .as(\"Saved recipe and retrieved recipe have different serving capacity\")\n .contains(newRecipe.getServingCapacity());\n\t}", "title": "" }, { "docid": "6baffebbdc5c2a5ec8f2dbe26b4f5890", "score": "0.48166296", "text": "@Test\r\n\tvoid bankBalanceTest() {\r\n\t\tDon.updateBankBalance(-100);\r\n\t\tDon.updateBankBalance(200);\r\n\t\tassertEquals(1300, Don.getBankBalance());\r\n\t}", "title": "" }, { "docid": "fbb5a71951c8d260207adf63e5d7fb62", "score": "0.48032275", "text": "private void validateBucketRedundancy(Map<VM, Boolean> stillHasDS, VM vm) {\n if (stillHasDS.get(vm)) {\n vm.invoke(() -> {\n PartitionedRegion pr = (PartitionedRegion) getCache().getRegion(uniqueName + \"0\");\n for (int bucketId : pr.getRegionAdvisor().getBucketSet()) {\n assertThatBucketHasRedundantCopies(pr, bucketId);\n }\n });\n }\n\n }", "title": "" }, { "docid": "56e097eca7e01400e6bb5a1b62c121e6", "score": "0.4787068", "text": "@Test\n public void test() throws Exception {\n TableName tableName = TableName.valueOf(\"whatever\");\n UTIL.createTable(tableName, Bytes.toBytes(\"family\"));\n UTIL.waitTableAvailable(tableName);\n HRegionServer rs = UTIL.getMiniHBaseCluster().getRegionServer(0);\n Path walDir = new Path(rs.getWALRootDir(),\n AbstractFSWALProvider.getWALDirectoryName(rs.getServerName().toString()));\n // we should have meta wal files.\n assertTrue(\n rs.getWALFileSystem().listStatus(walDir, AbstractFSWALProvider::isMetaFile).length > 0);\n }", "title": "" }, { "docid": "411483b5d660de61b75f83718924c97c", "score": "0.47797498", "text": "@Test\n public void testFileCreationSimple3() throws IOException, SQLException {\n\n //Create a new file in the directory d1\n Path p1 = new Path(\"/d1/f2\");\n //Write data into the file.\n int blocks = 1;\n FSDataOutputStream out = dfs.create(p1);\n int i = 0;\n for (; i < blocks; i++) {\n out.write(i);\n }\n out.close();\n\n Data dataBeforeSnapshot = getData();\n //Take root level snapshot\n boolean isSnapShottingSuccess = dfs.takeRootLevelSnapshot(\"Admin\");\n\n if (!isSnapShottingSuccess) {\n throw new IOException(\"Taking Snapshot at root failed\");\n } else {\n System.out.println(\"Snapshotting was success\");\n }\n\n //Over-write the file f2.\n blocks = 1;\n out = dfs.create(p1);\n i = 0;\n for (; i < blocks; i++) {\n out.write(i);\n }\n out.close();\n\n dfs.rollBack(\"Admin\");\n\n Data dataAfterRollBack = getData();\n boolean validity = dataBeforeSnapshot.equals(dataAfterRollBack);\n assertTrue(validity);\n }", "title": "" }, { "docid": "018e73ea8e647a89797bcb3177320525", "score": "0.47751358", "text": "@Test\n public void testInvalidDirectoryUpdating() {\n List<FileMetadata> testList = new ArrayList<>();\n int numInput = 6;\n String[] inputFiles = {\n \"part-001.avro\",\n \"part-002.avro\",\n \"part-003.avro\",\n \"part-005.avro\",\n \"part-004.avro\",\n \"part-006.avro\"};\n long[] fileLength = {150582, 138132, 214005, 205738, 158273, 982345};\n for (int i = 0; i < numInput; i++) {\n testList.add(new FileMetadata(inputFiles[i], fileLength[i]));\n }\n String whiteList = \".*\";\n String blackList = \"\";\n String groupPattern = \"\";\n int expectedNumPartition = 6;\n int[][] expectedPartitioning = {{0}, {1}, {2}, {3}, {4}, {5}};\n\n DirectoryPartitioner directoryPartitioner =\n new DirectoryPartitioner(whiteList, blackList, groupPattern, new TestFileSystemAdapter(testList));\n Map<Partition, SystemStreamPartitionMetadata> metadataMap = directoryPartitioner.getPartitionMetadataMap(\"hdfs\", null);\n Assert.assertEquals(expectedNumPartition, metadataMap.size());\n Map<Partition, List<String>> descriporMap = directoryPartitioner.getPartitionDescriptor(\"hdfs\");\n verifyPartitionDescriptor(inputFiles, expectedPartitioning, expectedNumPartition, descriporMap);\n\n String[] updatedInputFiles = {\n \"part-001.avro\",\n \"part-002.avro\",\n \"part-003.avro\",\n \"part-005.avro\",\n \"part-007.avro\", // remove part-004 and replace it with 007\n \"part-006.avro\"};\n long[] updatedFileLength = {150582, 138132, 214005, 205738, 158273, 982345};\n testList.clear();\n for (int i = 0; i < numInput; i++) {\n testList.add(new FileMetadata(updatedInputFiles[i], updatedFileLength[i]));\n }\n directoryPartitioner =\n new DirectoryPartitioner(whiteList, blackList, groupPattern, new TestFileSystemAdapter(testList));\n try {\n directoryPartitioner.getPartitionMetadataMap(\"hdfs\", descriporMap);\n Assert.fail(\"Expect exception thrown from getting metadata. Should not reach this point.\");\n } catch (SamzaException e) {\n // expect exception to be thrown\n }\n }", "title": "" } ]
9d8849085131a7b02e2c1fc78e3aff98
This method was generated by MyBatis Generator. This method returns the value of the database column product_coment.update_time
[ { "docid": "977f02a3e8a1826c5723aba24f0fa78a", "score": "0.66893566", "text": "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "title": "" } ]
[ { "docid": "9a438c941c50abbf5cb125f5cdd751ac", "score": "0.74156326", "text": "public Date getUpdate_time() {\n return update_time;\n }", "title": "" }, { "docid": "b779a8a4b0bb32d3ea7d5cb31e7e6428", "score": "0.7365023", "text": "public Integer getUpdatetime() {\n return updatetime;\n }", "title": "" }, { "docid": "1225f49abf3420f490f38c62bd5a8d6d", "score": "0.7284381", "text": "public Date getUpdatetime() {\n return updatetime;\n }", "title": "" }, { "docid": "1225f49abf3420f490f38c62bd5a8d6d", "score": "0.7284381", "text": "public Date getUpdatetime() {\n return updatetime;\n }", "title": "" }, { "docid": "1225f49abf3420f490f38c62bd5a8d6d", "score": "0.7284381", "text": "public Date getUpdatetime() {\n return updatetime;\n }", "title": "" }, { "docid": "1225f49abf3420f490f38c62bd5a8d6d", "score": "0.7284381", "text": "public Date getUpdatetime() {\n return updatetime;\n }", "title": "" }, { "docid": "1225f49abf3420f490f38c62bd5a8d6d", "score": "0.7284381", "text": "public Date getUpdatetime() {\n return updatetime;\n }", "title": "" }, { "docid": "9d26a9df2a118ec54178028a07f73659", "score": "0.7259789", "text": "public String getUpdatetime() {\r\n return updatetime;\r\n }", "title": "" }, { "docid": "ba002f966d9fa7049bd022f2327b88b3", "score": "0.70528996", "text": "public Date getTimeUpdate() {\n return timeUpdate;\n }", "title": "" }, { "docid": "763a24e1b20a7220ac0161b81eee1080", "score": "0.6984283", "text": "public Timestamp getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "b4bc344b3142558d36b82364570199e5", "score": "0.6938722", "text": "public Timestamp getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "b4bc344b3142558d36b82364570199e5", "score": "0.6938722", "text": "public Timestamp getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "e6609c3bd1b99bae0d750b74446854f5", "score": "0.6824879", "text": "public Date getUpdatedTime() {\n\t\treturn updatedTime;\n\t}", "title": "" }, { "docid": "7dda5e6d3bfe223c5225415c966be2f8", "score": "0.680505", "text": "public String getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "c9c13ae20e60bcf31f8f84847f7c0214", "score": "0.67962754", "text": "public long getUpdateTimeStamp() {\n return updateTimeStamp;\n }", "title": "" }, { "docid": "8d0f019ed90e7b8b6dc24e76ce8e266a", "score": "0.6775216", "text": "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "8d0f019ed90e7b8b6dc24e76ce8e266a", "score": "0.6775216", "text": "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "8d0f019ed90e7b8b6dc24e76ce8e266a", "score": "0.6775216", "text": "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "8d0f019ed90e7b8b6dc24e76ce8e266a", "score": "0.6775216", "text": "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "8d0f019ed90e7b8b6dc24e76ce8e266a", "score": "0.6775216", "text": "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "8d0f019ed90e7b8b6dc24e76ce8e266a", "score": "0.6775216", "text": "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "205171085e2a3695b8d169f2793957a1", "score": "0.67749125", "text": "public String getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "205171085e2a3695b8d169f2793957a1", "score": "0.67749125", "text": "public String getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "205171085e2a3695b8d169f2793957a1", "score": "0.67749125", "text": "public String getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "205171085e2a3695b8d169f2793957a1", "score": "0.67749125", "text": "public String getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "205171085e2a3695b8d169f2793957a1", "score": "0.67749125", "text": "public String getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "205171085e2a3695b8d169f2793957a1", "score": "0.67749125", "text": "public String getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "205171085e2a3695b8d169f2793957a1", "score": "0.67749125", "text": "public String getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "205171085e2a3695b8d169f2793957a1", "score": "0.67749125", "text": "public String getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "17e14dbedb18c9224fb9e9e9b647c1e1", "score": "0.6759397", "text": "public Date getUpdatedTime() {\r\n return StringUtils.toDate(updatedTime);\r\n }", "title": "" }, { "docid": "8d7ab188c3e8b8f5ce2123d76334e023", "score": "0.67498976", "text": "public Date getUpdateTime()\n/* */ {\n/* 251 */ return this.updateTime;\n/* */ }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.67342013", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "48ca5c9f2d5dc5e44ea482c6c67de3e2", "score": "0.6715695", "text": "public Date getUpdateTime() {\r\n\t\treturn updateTime;\r\n\t}", "title": "" }, { "docid": "69b9a54ec046344ef36d3551eba6a9ec", "score": "0.670045", "text": "public Date getUpdatedatetime() {\n return updatedatetime;\n }", "title": "" }, { "docid": "fad82ab634fb1de0cb1606b34fec9e09", "score": "0.66652775", "text": "public Date getUpdateTime()\n/* */ {\n/* 221 */ return this.updateTime;\n/* */ }", "title": "" }, { "docid": "2d2a3c4dbb8851767e1e9b348022e913", "score": "0.6661969", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getUpdateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get());\n }", "title": "" }, { "docid": "2d2a3c4dbb8851767e1e9b348022e913", "score": "0.6661969", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getUpdateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get());\n }", "title": "" }, { "docid": "2d2a3c4dbb8851767e1e9b348022e913", "score": "0.6661969", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getUpdateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get());\n }", "title": "" }, { "docid": "14cf842c34e83cc1f963bd143a5c8f49", "score": "0.66575295", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getUpdateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get());\n }", "title": "" }, { "docid": "14cf842c34e83cc1f963bd143a5c8f49", "score": "0.66575295", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getUpdateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(UPDATETIME_PROP.get());\n }", "title": "" }, { "docid": "f655c9737fb116e317588b36020d2faf", "score": "0.6653522", "text": "@java.lang.Override\n public com.google.protobuf.Timestamp getUpdateTime() {\n return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;\n }", "title": "" }, { "docid": "7f4bc757cf8021380b52d25c5eff9e0a", "score": "0.66395926", "text": "public Timestamp getUpdated();", "title": "" }, { "docid": "7f4bc757cf8021380b52d25c5eff9e0a", "score": "0.66395926", "text": "public Timestamp getUpdated();", "title": "" }, { "docid": "7f4bc757cf8021380b52d25c5eff9e0a", "score": "0.66395926", "text": "public Timestamp getUpdated();", "title": "" }, { "docid": "7f4bc757cf8021380b52d25c5eff9e0a", "score": "0.66395926", "text": "public Timestamp getUpdated();", "title": "" }, { "docid": "7f4bc757cf8021380b52d25c5eff9e0a", "score": "0.66395926", "text": "public Timestamp getUpdated();", "title": "" }, { "docid": "7f4bc757cf8021380b52d25c5eff9e0a", "score": "0.66395926", "text": "public Timestamp getUpdated();", "title": "" }, { "docid": "6bfcb85eefc868dc6d307abb677c161a", "score": "0.6637386", "text": "public java.sql.Timestamp getUpdated() {\n return updated;\n }", "title": "" }, { "docid": "d6e4b22cf6989cb736d4406228af301c", "score": "0.6625881", "text": "@java.lang.Override\n public int getUpdateTime() {\n return updateTime_;\n }", "title": "" }, { "docid": "c6ff7524ce75cf58f7b25c5bb285db15", "score": "0.6612873", "text": "public String getUpdateTime() {\n return this.UpdateTime;\n }", "title": "" }, { "docid": "ecd1a966f424aade2483cf0b25f1ef33", "score": "0.66078246", "text": "@java.lang.Override\n public int getUpdateTime() {\n return updateTime_;\n }", "title": "" }, { "docid": "cc863debabc901cfdfc880840460b54e", "score": "0.66001844", "text": "public final long getUpdateTime()\r\n {\r\n return _updateTimestamp;\r\n }", "title": "" }, { "docid": "7122cb03e48cc08f71343508c45ee113", "score": "0.6504815", "text": "@ApiModelProperty(value = \"更新时间\")\n\tpublic Date getRowUpdateTime() {\n\t\treturn rowUpdateTime;\n\t}", "title": "" }, { "docid": "7122cb03e48cc08f71343508c45ee113", "score": "0.6504815", "text": "@ApiModelProperty(value = \"更新时间\")\n\tpublic Date getRowUpdateTime() {\n\t\treturn rowUpdateTime;\n\t}", "title": "" } ]
6fb547ae07a66999e7fbb388139d3efb
Gets the IDs of all categories with the given name.
[ { "docid": "e1b35e2326f86f53510c72a467103631", "score": "0.7422699", "text": "private ArrayList<Integer> getCategoryIdByName(SQLiteDatabase db, String categoryName) {\n ArrayList<Integer> categoryIds = null;\n Cursor cursor = null;\n try {\n cursor = db.rawQuery(\"SELECT \" + COLUMN_CATEGORY_ID +\n \" FROM \" + getTableName() +\n \" WHERE \" + COLUMN_CATEGORY_TEXT + \" = \\\"\" + categoryName + \"\\\"\",\n null);\n if (cursor != null && cursor.moveToFirst()) {\n categoryIds = new ArrayList<>();\n while (!cursor.isAfterLast()) {\n categoryIds.add(cursor.getInt(cursor.getColumnIndex(COLUMN_CATEGORY_ID)));\n cursor.moveToNext();\n }\n }\n } catch (Exception e) {\n Log.e(TAG, \"Querying categories\");\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n return categoryIds;\n }", "title": "" } ]
[ { "docid": "42bb69257db663817fd3b6c82012f164", "score": "0.6970815", "text": "@Override\n\tpublic List<Category> findByName(String name) {\n\t\treturn cR.findByName(name);\n\t}", "title": "" }, { "docid": "c68738c04e71146c975d91d87f403ccb", "score": "0.649136", "text": "@Override\n\tpublic List<Category> findByNameLikeIgnoreCase(String name) {\n\t\treturn cR.findByNameLikeIgnoreCase(name);\n\t}", "title": "" }, { "docid": "145afe881c5684b1e80f4edb7bd79e43", "score": "0.6404255", "text": "java.util.List<java.lang.String>\n getCategoryIdList();", "title": "" }, { "docid": "f820f1a32169c71265bbc00f9b003adc", "score": "0.6373924", "text": "@Transactional(propagation = Propagation.REQUIRED, readOnly = true) \t\r\n\tpublic List<Category> SearchCategoryByName(String name) {\n\t\t return iCatDAO.searchCategorysByName(name); \r\n\t}", "title": "" }, { "docid": "8d8d631688a28628446b5c1b77c02df9", "score": "0.628478", "text": "List<Category> getByName(final List<Category> categories);", "title": "" }, { "docid": "7d0bda7a420ee9b821fd0132c4418258", "score": "0.619278", "text": "public List<String> getAllCategories(String counterName,\n NetworkLayer layer);", "title": "" }, { "docid": "04a2f3147c6e5c894320d057985a01f3", "score": "0.6041667", "text": "public List<Category> getCategories() {\r\n\t\tList<Category> categories = new ArrayList<Category>();\r\n\t\tCursor cursor = database.query(dbHelper.CATEGORIES_TABLE,\r\n\t\t\t\tcategoryAllColumns,\r\n\t\t\t\tnull,\r\n\t\t\t\tnull,\r\n\t\t\t\tnull,\r\n\t\t\t\tnull,\r\n\t\t\t\tnull);\r\n\t\tcursor.moveToFirst();\r\n\t\twhile (!cursor.isAfterLast()) {\r\n\t\t\tCategory category = new Category();\r\n\t\t\tcategory.setId(cursor.getInt(0));\r\n\t\t\tcategory.setTitle(cursor.getString(1));\r\n\t\t\tcategory.setDrawable(cursor.getInt(2));\r\n\t\t\tcategories.add(category);\r\n\t\t\tcursor.moveToNext();\r\n\t\t}\r\n\t\tcursor.close();\r\n\t\treturn categories;\r\n\t}", "title": "" }, { "docid": "9f7804cfcf5eb82efa9236b91e5895d1", "score": "0.6019364", "text": "public List getCategories() {\n List<String> categoryList = new ArrayList<>();\n for (String cat : this.categories.values()) {\n categoryList.add(cat);\n }\n return categoryList;\n }", "title": "" }, { "docid": "5a591c8c1e0441b01035da62e3396361", "score": "0.60019046", "text": "public Set<String> getCoursesOf(String name) {\r\n\t\tif (root == null) return new HashSet<String>();\r\n\t\tSet<String> courses = getCoursesHelper(name, root);\r\n\t\tif (courses==null) return new HashSet<String>();\r\n\t\treturn courses;\r\n\t}", "title": "" }, { "docid": "dbd864b73516dc8527b376e6ccaa8c8c", "score": "0.5951635", "text": "public ArrayList<String> getAllCategories() {\n return dbms.getCategories();\n }", "title": "" }, { "docid": "592605a1d6ae80ef8a97b7680ebd99e1", "score": "0.59465945", "text": "public List<Category> getAllNameCategory() {\n List<Category> list = new ArrayList<>();\n String query = \"select top(8) * from Category\";\n try {\n conn = new DBContext().getConnection();// mo ket noi sql\n ps = conn.prepareStatement(query);\n rs = ps.executeQuery();\n while (rs.next()) {\n list.add(new Category(\n rs.getInt(1),\n rs.getString(2)));\n }\n } catch (Exception e) {\n }\n return list;\n }", "title": "" }, { "docid": "26bbcf76e36cdfc0848e7a1c2e2e6b83", "score": "0.5938734", "text": "public List<Category> getAllCategories() {\n\t\tQuery query = entityManager.createNamedQuery(\"Category.findAllCategories\");\n\n\t\t// Perform Query\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Category> result = query.getResultList();\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "e04918634f0bec765d4cf98d260b2fec", "score": "0.59283715", "text": "Set<String> getCategories();", "title": "" }, { "docid": "c5ee0786671b68e66c89ccabc185c3e3", "score": "0.5907064", "text": "public List<Category> getAllCategory()\n\t{\n\t\tList<Category> categoryList=new ArrayList<Category>();\n\t\ttry \n\t\t{\n\t\t\t//executes the query\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(Query.getAllCategory);\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t//stores the result into list\n\t\t\twhile(resultSet.next())\n\t\t\t{\n\t\t\t\tCategory category = new Category(resultSet.getInt(\"id\"), resultSet.getString(\"name\"));\n\t\t\t\tcategoryList.add(category);\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn categoryList;\n\t}", "title": "" }, { "docid": "33202abee9f96ae9a1be23462eec58ae", "score": "0.58673733", "text": "public List<Category> findAllCategory() {\n\t\tCategoryDao category = new CategoryDao();\n\n\t\tList<Category> list = null;\n\t\ttry {\n\t\t\tlist = category.findAllCategory();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "9a22a4b675d588ee92cb7818ef0358f9", "score": "0.5853974", "text": "List<Category> getAllCategories();", "title": "" }, { "docid": "01092a0f835a4df94d6ba4dd64364098", "score": "0.58417225", "text": "public List<Category> getCategories() {\r\n\t\tString sql = \"SELECT c.\" + Category.DbField.ID + \",c.\" + Category.DbField.NAME + \",c.\"\r\n\t\t\t\t+ Category.DbField.IMAGE_NAME + \",p.\" + Category.DbField.ID + \",p.\" + Category.DbField.NAME\r\n\t\t\t\t+ \" from CATEGORY c left outer join CATEGORY p on c.\" + Category.DbField.PARENT + \"=p.\"\r\n\t\t\t\t+ Category.DbField.ID + \" order by c.\" + Category.DbField.NAME + \" asc\";\r\n\t\tCursor cursor = getDatabase().rawQuery(sql, new String[] {});\r\n\t\tArrayList<Category> result = new ArrayList<Category>();\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\tdo {\r\n\t\t\t\tCategory a = new Category(cursor.getString(0));\r\n\t\t\t\ta.setName(cursor.getString(1));\r\n\t\t\t\ta.setImage(cursor.getString(2));\r\n\t\t\t\tString pId = cursor.getString(3);\r\n\t\t\t\tif (pId != null) {\r\n\t\t\t\t\tCategory p = new Category(pId);\r\n\t\t\t\t\tp.setName(cursor.getString(4));\r\n\t\t\t\t\ta.setParent(p);\r\n\t\t\t\t}\r\n\t\t\t\tresult.add(a);\r\n\t\t\t} while (cursor.moveToNext());\r\n\t\t}\r\n\t\tcursor.close();\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "53971160ff59181cdf2bb9077266b5e4", "score": "0.5833947", "text": "public List<CategoryEntry> getCategories()\n \t{\n \t\tList<CategoryEntry> entries = new ArrayList<CategoryEntry>();\n \t\t\n \t\tCursor cursor;\n \t\tcursor = database.query(BudgetDatabase.TABLE_CATEGORIES,allColumnsCategories,null,null,null,null,null);\n \t\tcursor.moveToFirst();\n \t\twhile(!cursor.isAfterLast())\n \t\t{\n \t\t\tentries.add(new CategoryEntry(cursor.getLong(0),cursor.getString(1),cursor.getInt(2),cursor.getLong(3)));\n \t\t\tcursor.moveToNext();\n \t\t}\n \t\tcursor.close();\n \t\treturn entries;\n \t}", "title": "" }, { "docid": "21683bd850af5714221f0affe5e1904e", "score": "0.58232975", "text": "List<Category> getCategories();", "title": "" }, { "docid": "21683bd850af5714221f0affe5e1904e", "score": "0.58232975", "text": "List<Category> getCategories();", "title": "" }, { "docid": "cd95426fac0f05702655cf02f6ea9af0", "score": "0.5803088", "text": "@Override\n\tpublic List<Category> getAllCategories() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// create a query\n\t\tQuery<Category> query = currentSession.createQuery(\"from Category order by name asc\", Category.class);\n\t\t\n\t\t// execute the query\n\t\tList<Category> listCategory = query.getResultList();\n\t\t\n\t\treturn listCategory;\n\t}", "title": "" }, { "docid": "e70b27216bbdc03cdb86e14871f021c3", "score": "0.5800116", "text": "public static long[] getCategories(final List<String> categories, final long groupId,\n final long runAsUser) {\n final long[] assetCategoryIds = new long[categories.size()];\n\n for (int i = 0; i < categories.size(); ++i) {\n final String name = categories.get(i);\n\n AssetTag assetTag = null;\n try {\n assetTag = AssetTagLocalServiceUtil.getTag(groupId, name);\n } catch (final NoSuchTagException e) {\n try {\n assetTag = AssetTagLocalServiceUtil.addTag(runAsUser, groupId, name, new ServiceContext());\n } catch (PortalException | SystemException e1) {\n LOG.error(\"Category \" + name + \" not found! \", e1);\n }\n } catch (PortalException | SystemException e) {\n LOG.error(\"Category \" + name + \" not found! \", e);\n }\n\n assetCategoryIds[i] = assetTag.getTagId();\n }\n return assetCategoryIds;\n }", "title": "" }, { "docid": "0b564fe5eb369597e18456a1de68d193", "score": "0.57913464", "text": "List<Category> getCategoriesByNamePart(String namePart);", "title": "" }, { "docid": "273a48c285f61aed153dee1ae422f1c9", "score": "0.5782667", "text": "public Set<String> findAllCategories() {\n\t\tList<String> categoryList = em.createQuery(\"SELECT DISTINCT category FROM Food\", String.class)\n\t\t\t\t.getResultList();\n\t\t// Convert the List to a Set.\n\t\treturn new TreeSet<>(categoryList);\n\t}", "title": "" }, { "docid": "df1fb2a0c0e7cabe4680414405d81277", "score": "0.5776596", "text": "public List<Category> findAllCategory() {\n\t\tProductDao dao=new ProductDao();\r\n\t\tList<Category> categoryList = null;\r\n\t\ttry {\r\n\t\t\tcategoryList = dao.findAllCategory();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn categoryList;\r\n\t}", "title": "" }, { "docid": "700848a301dd244b162bc88a385f7cdb", "score": "0.57524234", "text": "public Cursor getCATEGORIES() {\n // Seleccionamos todas las filas de la tabla 'categorias'\n return getWritableDatabase().rawQuery(\n \"select rowid _id, * from \" + DBScripts.CATEGORY_TABLE_NAME, null);\n }", "title": "" }, { "docid": "d9af39c4ecfd7947bd69f70018f90e5f", "score": "0.574781", "text": "private void getCategories() {\n CategoryDAO categoryDAO = db.categoryDAO();\n List<Category> categories = categoryDAO.getAll();\n for (int i = 0; i < categories.size(); i++){\n categoriesArr.add(categories.get(i).word);\n }\n }", "title": "" }, { "docid": "5fa863568653453bdbf90eb1f92ed8e5", "score": "0.5737586", "text": "java.util.List<java.lang.String>\n getCategoriesList();", "title": "" }, { "docid": "0aff4697c9ff178c358dcb7aab6bf63a", "score": "0.5710488", "text": "public static List<Category> getAllCategories(int sessionId) {\n\t\tList<Category> categories = new ArrayList<>();\n\t\t\n\t\tString sql = \"SELECT * FROM categories WHERE id IN \" +\n \"(SELECT categories FROM categorySessions WHERE session = ?)\";\n\t\tConnection conn = connect();\n\t\ttry {\n\t\t PreparedStatement pstmt = conn.prepareStatement(sql);\n\t\t pstmt.setInt(1, sessionId);\n\t\t\tResultSet rs = pstmt.executeQuery();\n\t while (rs.next()) {\n\t categories.add(new Category(rs.getInt(\"id\"), rs.getString(\"name\")));\n\t }\n\t return categories;\n\t } catch (SQLException e) {\n\t System.out.println(e.getMessage());\n\t } finally {\n if (conn != null) {\n try {\n conn.close();\n } catch (SQLException e) {\n }\n }\n }\n\t\treturn null;\n\t}", "title": "" }, { "docid": "66e65e078bd0d159f2964fd94b42f612", "score": "0.5706382", "text": "public void setCategories_Name(String categories_name)\r\n\t{\r\n\t\tthis.categories_name = categories_name;\r\n\t}", "title": "" }, { "docid": "381518c96af2723d27bd1ca8e3d78630", "score": "0.5700393", "text": "public String getCategoryIdName() {\n return categoryIdName;\n }", "title": "" }, { "docid": "b65b5b482e1f93431d170097c6667c75", "score": "0.5696135", "text": "public List<Categoria> getCategoriaFindAll() {\n return em.createNamedQuery(\"Categoria.findAll\").getResultList();\n }", "title": "" }, { "docid": "8094402a6ba67293fa0e876bd9a382a5", "score": "0.56912065", "text": "public List<Category> getAllCategories() {\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tString sql;\n\t\tconn = DBConnection.getConnecton();\n\t\tsql = \"select productCategory from category\";\n\t\tcategories = new ArrayList<Category>();\n\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tCategory c = new Category(rs.getString(\"productCategory\"));\n\t\t\t\tcategories.add(c);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (rs != null) {\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tif (ps != null) {\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\n\t\t}\n\t\treturn categories;\n\t}", "title": "" }, { "docid": "4e28c3c13d516c8582e7ee9f62a99cff", "score": "0.56766087", "text": "private static Map<Integer, String> getCategories() {\n\t Map<Integer, String> c = new HashMap<>();\n\t String sql = \"SELECT * FROM categories;\";\n\t Connection conn = connect();\n\t try {\n\t PreparedStatement pstmt = conn.prepareStatement(sql);\n\t ResultSet result = pstmt.executeQuery();\n\t while (result.next()) {\n\t int id = result.getInt(\"id\");\n\t String description = result.getString(\"name\");\n\t c.put(id, description);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n if (conn != null) {\n try {\n conn.close();\n } catch (SQLException e) {\n }\n }\n }\n return c;\n }", "title": "" }, { "docid": "0a88804dfa5eb717efc407c63ecc6421", "score": "0.5670526", "text": "@GetMapping(\"/categories\")\n public Collection<Category> getAllCategories() {\n return categoryRepository.findAll(); // equivalent to: SELECT * FROM category\n // specifically: select category0_.id as id1_0_, category0_.name as name2_0_ from category category0_\n }", "title": "" }, { "docid": "eabce5da66361cf9d7969b1f97aa1957", "score": "0.56583375", "text": "public int getCategoryId(Context context, String categoryName) {\n int catId = Constants.DEFAULT_CAT_ID;\n DbHelper dbHelper = new DbHelper(context);\n final SQLiteDatabase db = dbHelper.getWritableDatabase();\n if (db != null) {\n catId = getCategoryIdByName(db, categoryName).get(0);\n } else {\n Log.e(TAG, \"Null database\");\n }\n dbHelper.close();\n return catId;\n }", "title": "" }, { "docid": "5b73b4acaccd8ac27a17a14128e421b7", "score": "0.56418025", "text": "public Category getByName(String name) {\n\t\treturn categoryRepository.findByName(name);\n\t}", "title": "" }, { "docid": "1577437b5d2af2527da3e300be9cea93", "score": "0.56399655", "text": "List<SyndCategory> getCategories();", "title": "" }, { "docid": "1b7ae5e9ab9fe7804cacfdf5598d9488", "score": "0.56200683", "text": "@Override\n\tpublic List<Category> getCategorys() {\n\t\treturn categoryDao.getCategorys();\n\t}", "title": "" }, { "docid": "5d2389ceec49440cdaac87d1581ae5aa", "score": "0.56081396", "text": "public List<Data> findCategories();", "title": "" }, { "docid": "b09995a9e9d682a49c006c498d689349", "score": "0.55880123", "text": "public abstract long getCategoryIDFromCategoryName(final String categoryName);", "title": "" }, { "docid": "f5706085b0f2b5891ff95e93354dd52e", "score": "0.55541235", "text": "public List getCategories() {\n return categoryManager.getCategories();\n }", "title": "" }, { "docid": "c784bffdb482198ab7fbb35e14827f0c", "score": "0.55449575", "text": "@Override\r\n\tpublic List<Category> findAllCategories() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4f9651b58d04454a534418c7ed8cfc68", "score": "0.5526581", "text": "public List<Category> findAllCategories(Connection conn) throws DAOException;", "title": "" }, { "docid": "1b3dba645d2ac1a324e7f3fe9dc4194c", "score": "0.5523626", "text": "public List<ItemCategory> getAllItemCategories();", "title": "" }, { "docid": "5d004ea48c20cbf1d46abb7ce5a45899", "score": "0.5519545", "text": "@Override\n public Category getCategory(String name) throws IOException {\n String formattedName = String.format(\"%-\" + CATEGORYNAMESIZE + \"s\", name);\n try (RandomAccessFile raf = new RandomAccessFile(new File(LOCAL_CATEGORY_PATH), \"r\")) {\n while (raf.getFilePointer() < raf.length()) {\n int categoryId = raf.readInt();\n StringBuilder categoryName = new StringBuilder();\n for (int i = 0; i < CATEGORYNAMESIZE; i++) {\n categoryName.append(raf.readChar());\n }\n if (categoryName.toString().equals(formattedName))\n return new Category(categoryId, categoryName.toString());\n }\n return null;\n }\n }", "title": "" }, { "docid": "816a7cb9384bea42c9d44a7ab2472a03", "score": "0.55183226", "text": "@GetMapping(\"/namesList\")\n public ResponseEntity<List<CategoryIdAndName>> getListOfCategoriesNameAndId() {\n return ResponseEntity.status(HttpStatus.OK)\n .body(categoryService.getCategoryNameAndId());\n }", "title": "" }, { "docid": "5692a96f677b91420aa566586b1f05c3", "score": "0.55152875", "text": "public ArrayList<SaveData> getCategories(String userName)\n\t{\n\t\tString sql = \"SELECT DISTINCT category FROM links WHERE userID = \\\"\" + userName + \"\\\" ORDER BY category ASC;\";\n\t\tResultSet rs = executeSelectSQL(sql);\n\t\tArrayList<SaveData> ls = new ArrayList<SaveData>();\n\t\ttry\n\t\t{\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tSaveData sd = new SaveData();\n\t\t\t\t//sd.setBookmark(rs.getString(\"link\"));\n\t\t\t\tsd.setCategory(rs.getString(\"category\"));\n\t\t\t\tsd.setId(userName);\n\t\t\t\t//sd.setPublic(rs.getBoolean(\"public\"));\n\t\t\t\t//ls.add(rs.getString(\"link\"));\n\t\t\t\tls.add(sd);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception E)\n\t\t{\n\t\t\tE.printStackTrace();\n\t\t}\n\t\treturn ls;\n\t}", "title": "" }, { "docid": "db5b71480e4ec7351f9a542b2c1bc218", "score": "0.55031514", "text": "public void addCategoryList(String name) {\n categories.add(new Category(name));\n }", "title": "" }, { "docid": "f709002ba4c0e1022e6035afbde36364", "score": "0.5489504", "text": "@Override\n\t\tpublic List<String> getAllCategory()\n\t\t{\n\t\t\tList<String> categories=new ArrayList<>();\n\t\t\ttry {\n\t\t\t\tResultSet rs=getAllAssetTypes.executeQuery();\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tcategories.add(rs.getString(1));\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn categories;\n\t\t}", "title": "" }, { "docid": "7c0f1fe3c4b166ef2eb6a49b3d053608", "score": "0.5489503", "text": "@Override\n\tpublic List<CMSCategory> findAllex() {\n\t\treturn cms_CategoryDao.findAll();\n\t}", "title": "" }, { "docid": "c942244f27768ecdad8f42dd4f7be6d8", "score": "0.54877067", "text": "@Override\r\n\t\tpublic List<Category> getAllCategory() {\n\t\t\treturn dao.getAllCategory();\r\n\t\t}", "title": "" }, { "docid": "6a2e66630b7b3e5daca38b1a3ee0017d", "score": "0.54763764", "text": "Collection<Category> getAllCategory();", "title": "" }, { "docid": "f0dce85c5f7a344072ebfade777c9611", "score": "0.5475997", "text": "public static TypeDictionaryDicoCapaciteGenieCategorie getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tTypeDictionaryDicoCapaciteGenieCategorie 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}", "title": "" }, { "docid": "df7d6916e03360cfdf8926cad77e8906", "score": "0.5461354", "text": "public Category(String name) {\n\t\tthis.id = IdFactory.getInstance().getNewId(this);\n\t\tthis.name = name;\n\t\tdiscs = new ArrayList<>();\n\t}", "title": "" }, { "docid": "636bc6989ab2df74db31dae6dc205b26", "score": "0.5461189", "text": "public List<String> getCategories() {\n return categories;\n }", "title": "" }, { "docid": "7beb86e7d7c694e7b7c150d216c6cec6", "score": "0.54565215", "text": "public List<Category> getCategories() {\n return lessons.parallelStream().map(Lesson::getCategory).distinct().sorted().toList();\n }", "title": "" }, { "docid": "4b6f8b3b7db339f2d898d2552cc2c1c1", "score": "0.5439322", "text": "public List<String> marketplace_getCategories() throws FacebookException, IOException;", "title": "" }, { "docid": "4c4830f5a14aea9c21f900b2535e5f29", "score": "0.5429911", "text": "public static List<SWGCategory> getCategories() {\r\n return categories;\r\n }", "title": "" }, { "docid": "21d23738ebbdea8aa8ce1255fc506ad2", "score": "0.5429518", "text": "@Override\n\tpublic List<Category> getAllCategory() {\n\t\treturn catDAO.getAllCategory();\n\t}", "title": "" }, { "docid": "c9ccbb823cece593bc9c5c3da68bece6", "score": "0.5420994", "text": "public List<String> getProductsForCategory(String categoryName){\n \tList<String> productsForCategory = new ArrayList<>();\n \tfor(Product p : products.values()) {\n\t\t\tif(p.getCategoryName() == categoryName) {\n\t\t\t\tproductsForCategory.add(p.getName());\n\t\t\t}\n \t}\n return productsForCategory.stream()\n \t\t.sorted()\n \t\t.collect(Collectors.toList());\n }", "title": "" }, { "docid": "ce35b6f9604fa5721ba4d1a1ac3d106f", "score": "0.5406053", "text": "public List<Category> getAllCategory() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a68a5f64c40595f50eb0406fad02a3ef", "score": "0.5385994", "text": "public List getCategories() {\n return Collections.unmodifiableList(new ArrayList(categories));\n }", "title": "" }, { "docid": "252fe837e4e6975e5be981021649aead", "score": "0.53856254", "text": "public java.lang.String getCategories(int index) {\n return categories_.get(index);\n }", "title": "" }, { "docid": "a7489a81348246f31b55e9f04b9fbe89", "score": "0.5383039", "text": "public java.lang.String getCategories(int index) {\n return categories_.get(index);\n }", "title": "" }, { "docid": "83c492ef934e61be0d7162c0a6c62d0e", "score": "0.5380465", "text": "@Override\n\tpublic List<Category> getAllCategories() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e693b25efd001f40666c97b512fe1bb2", "score": "0.5377748", "text": "public gw.entity.TypeKey[] getCategories() {\n return _typeKeyImplManager.getTypeKeyImpl().getCategories();\n }", "title": "" }, { "docid": "e693b25efd001f40666c97b512fe1bb2", "score": "0.5377748", "text": "public gw.entity.TypeKey[] getCategories() {\n return _typeKeyImplManager.getTypeKeyImpl().getCategories();\n }", "title": "" }, { "docid": "e693b25efd001f40666c97b512fe1bb2", "score": "0.5377748", "text": "public gw.entity.TypeKey[] getCategories() {\n return _typeKeyImplManager.getTypeKeyImpl().getCategories();\n }", "title": "" }, { "docid": "94b9000d41a7c694e75d260c431ac873", "score": "0.5356159", "text": "public java.util.List<java.lang.String>\n getCategoriesList() {\n return categories_;\n }", "title": "" }, { "docid": "739a9984a6dc5c9404cc640ec2bce733", "score": "0.53531337", "text": "@GetMapping(value=\"/rave/categories\")\n\tpublic List<Category> getAllCategories(){\n\t\treturn raveService.getAllCategories();\n\t}", "title": "" }, { "docid": "4af613b09192e2bdfe4c82bd28870435", "score": "0.5344747", "text": "public java.util.List<java.lang.String>\n getCategoriesList() {\n return java.util.Collections.unmodifiableList(categories_);\n }", "title": "" }, { "docid": "24c80b0bc22be8aad994106327da4b83", "score": "0.5343566", "text": "public ArrayList<Categorie> getAllCats(){\n String url =Api.url+\"allcat\";\n req.setUrl(url);\n req.setPost(false);\n req.addResponseListener(new ActionListener<NetworkEvent>() {\n @Override\n public void actionPerformed(NetworkEvent evt) {\n cats = parseCats(new String(req.getResponseData()));\n req.removeResponseListener(this);\n }\n });\n NetworkManager.getInstance().addToQueueAndWait(req);\n return cats;\n }", "title": "" }, { "docid": "6784e41ab0224945f277930c694d85aa", "score": "0.5333588", "text": "@Override\r\n\tpublic List<Categorie> getAllCategorie() {\n\t\tString req = \"SELECT cat FROM Categorie cat\";\r\n\r\n\t\tQuery query = em.createQuery(req);\r\n\r\n\t\tList<Categorie> listeCat = query.getResultList();\r\n\r\n\t\treturn listeCat;\r\n\r\n\t}", "title": "" }, { "docid": "897207e313cdbe1d65a947fd381201c7", "score": "0.5325611", "text": "java.lang.String getCategories(int index);", "title": "" }, { "docid": "5b52e2dda8001cebf4decaeca8097195", "score": "0.53239936", "text": "public List getCategories() {\n/* 4453 */ List result = null;\n/* 4454 */ if (getDataset() != null) {\n/* 4455 */ result = Collections.unmodifiableList(getDataset().getColumnKeys());\n/* */ }\n/* 4457 */ return result;\n/* */ }", "title": "" }, { "docid": "d4514c1ed182e4f58da4c0622d55dec5", "score": "0.53167206", "text": "public List<CtcCategory> getCategories() {\r\n\r\n if(categories == null || categories.isEmpty()){\r\n categories = new ArrayList<CtcCategory>();\r\n if(caaersRuleSet.getStudy() != null){\r\n Ctc ctc = caaersRuleSet.getStudy().getAeTerminology().getCtcVersion();\r\n for(CtcCategory c : ctc.getCategories()){\r\n CtcCategory ctcCategory = new CtcCategory();\r\n ctcCategory.setName(c.getName());\r\n ctcCategory.setId(c.getId());\r\n categories.add(ctcCategory);\r\n }\r\n }\r\n }\r\n return categories;\r\n }", "title": "" }, { "docid": "77e5cb3ef6503c8d75f22389568232a5", "score": "0.5315393", "text": "@Override\n\tpublic Categorie getCategoryByName(String categoryName) {\n\t\tSystem.out.println(em);\n\t\treturn (Categorie) em.createNamedQuery(\"Category.findByCategoryName\").setParameter(\"categoryName\", categoryName).getSingleResult();\n \n\t}", "title": "" }, { "docid": "8281aa0550dfb193fc2e08e15737719d", "score": "0.5310682", "text": "@Override\n public List<Category> listAll() {\n List<Category> rootCategories = categoryRepo.findRootCategories(Sort.by(\"name\").ascending());\n\n return listHierarchicalCategories(rootCategories, \"asc\");\n }", "title": "" }, { "docid": "86cc8d8b7ab1d347bd268faf2ec379db", "score": "0.5297271", "text": "@Override\n\tpublic Collection<Categorie> getCategoryList() {\n\t\treturn (Collection<Categorie>) em.createNamedQuery(\"Category.findAll\").getResultList();\n\t}", "title": "" }, { "docid": "8b9da2ae57936a45043960cefa64ff66", "score": "0.52968085", "text": "public List getCategories()\n\t{\t\t\n\t\t//first, iterate through the list and remove blank lines\n\t\tfor (int i=0; i < categories.size(); i++)\n\t\t{\n\t\t\tObject obj = categories.get(i);\n\t\t\tif(!(obj instanceof Category)){\n\t\t\t\tcategories.remove(i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tCategory cat = (Category)categories.get(i);\n\t\t\tint assignmentCount = 0;\n\t\t\tif(cat.getAssignmentList() != null){\n\t\t\t\tassignmentCount = cat.getAssignmentList().size();\n\t\t\t}\n\t\t\tcat.setAssignmentCount(assignmentCount);\n\t\t\tif (cat.getName() == null || cat.getName().trim().length() == 0)\n\t\t\t{\n\t\t\t\tif (cat.getId() != null) \n\t\t\t\t{\n\t\t\t\t\t// this will take care of instances where user just deleted cat name\n\t\t\t\t\t// instead of hitting \"remove\"\n\t\t\t\t\tcategoriesToRemove.add(cat.getId());\n\t\t\t\t}\n\t\t\t\tcategories.remove(cat);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\t// always display 5 blank entries for new categories\n\t\tfor (int i=0; i < NUM_EXTRA_CAT_ENTRIES; i++)\n\t\t{\n\t\t\tCategory blankCat = new Category();\n\t\t\tcategories.add(blankCat);\n\t\t}\n\n\t\treturn categories;\n\t}", "title": "" }, { "docid": "9084f1c14bb6d85dd11b26c6d511044d", "score": "0.5295001", "text": "public String getCategories_Name()\r\n\t{\t\t\r\n\t\t//FIXME should we auto-load based on getCategories()?\t\r\n\t\tif(categories != null) {\r\n\t\t\treturn categories.getName();\r\n\t\t} else {\r\n\t\t\treturn categories_name;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e0627c5ca2b300186a581d9ebb2da14d", "score": "0.5283539", "text": "public static Set<Category.EnumType> getCategories() {\n ExceptionCategoryFilter currentInstance = CURRENT_INSTANCE.get();\n if (currentInstance == null) {\n throw new IllegalStateException(\"Cannot set new categories to filter since filter not yet initialized\");\n }\n\n return currentInstance.categoriesAndName.categories;\n }", "title": "" }, { "docid": "69187b57dac31aa3e57a13de5a9ff9a0", "score": "0.5268208", "text": "public ArrayList<CategoryDTO> getCategories() {\n return categoryDAO.getCategories();\n }", "title": "" }, { "docid": "2ab988f8dca9f290f0cc24cb7de5cae3", "score": "0.52659655", "text": "public ArrayList<Category> getCategories()\n\t\t\tthrows OAuthMessageSignerException,\n\t\t\tOAuthExpectationFailedException, OAuthCommunicationException,\n\t\t\tFlattrServerResponseException, FlattrRestException, IOException {\n\t\treturn Category.buildCategories(getResourceInputStream(API_PATH_PREFIX\n\t\t\t\t+ \"feed/categories\"));\n\t}", "title": "" }, { "docid": "8ffddb4f776e97f14bb6a242aa3f5c03", "score": "0.52646214", "text": "@Override\r\n\tpublic List<Category> list() {\n\t\treturn categories;\r\n\t}", "title": "" }, { "docid": "8ffddb4f776e97f14bb6a242aa3f5c03", "score": "0.52646214", "text": "@Override\r\n\tpublic List<Category> list() {\n\t\treturn categories;\r\n\t}", "title": "" }, { "docid": "8ffddb4f776e97f14bb6a242aa3f5c03", "score": "0.52646214", "text": "@Override\r\n\tpublic List<Category> list() {\n\t\treturn categories;\r\n\t}", "title": "" }, { "docid": "dadc8c2060dafaf7ae1dd5e3bd1acd60", "score": "0.526146", "text": "public List<String> getCategories() { // get list of unique categories\n Set<String> rows = matrix.keySet(); // category rows (gold)\n Set<String> columns = matrix.values().stream() // category columns (system)\n .map(Map::keySet)\n .flatMap(Collection::stream)\n .collect(Collectors.toSet());\n return Sets.union(rows, columns).stream() // all known categories\n .sorted()\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "c63ac39541f3e22ecc8ecddf1ab2812a", "score": "0.5261006", "text": "public com.google.protobuf.ByteString\n getCategoriesBytes(int index) {\n return categories_.getByteString(index);\n }", "title": "" }, { "docid": "7c1caf6db3c569f33787fff8027ef7de", "score": "0.5257983", "text": "public List<String> marketplace_getSubCategories() throws FacebookException, IOException;", "title": "" }, { "docid": "1c7936d679d6f887f62f78b267ed4394", "score": "0.52489376", "text": "@GetMapping\n @Operation(summary = \"Retrieve all account categories\")\n public List<AccountCategory> findAllAccountCategories() {\n return accountCategoryService.findAllAccountCategories();\n }", "title": "" }, { "docid": "6aff8c7dbedd71e1b5f277734d5280f8", "score": "0.52439487", "text": "public List<Category> searchCategory() {\n\t\tList<Category> categoryList = categoryMapper.selectByExample(null);\r\n\t\treturn categoryList;\r\n\t}", "title": "" }, { "docid": "1b4f55e0a6eb59b784f482eff3a889c2", "score": "0.52430516", "text": "public List<Categoria> getCategoriaFindByID(BigDecimal id) {\n return em.createNamedQuery(\"Categoria.findByID\").setParameter(\"id\", id).getResultList();\n }", "title": "" }, { "docid": "6b90dec3547cc7edd553d1a3ddf0238a", "score": "0.52354985", "text": "@Override\n\tpublic List<Category> getByPath(String path) {\n\t\tResponseEntity<Category[]> responseCategories = restTemplate.getForEntity(UrlUtil.CATE_REST + \"/path/\" + path,\n\t\t\t\tCategory[].class);\n\n\t\treturn Arrays.asList(responseCategories.getBody());\n\t}", "title": "" }, { "docid": "ee55cfaaa4936db372a908b96f0091b7", "score": "0.52256167", "text": "@Override\n public List<CharSequence> categories() {\n return protoPage\n .getCategoriesList()\n .stream()\n .map(CharSequence.class::cast)\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "1619c1b7f09c23fe2cb60a8d5717bb33", "score": "0.52155614", "text": "public com.google.protobuf.ByteString\n getCategoriesBytes(int index) {\n return categories_.getByteString(index);\n }", "title": "" }, { "docid": "f5ea29d2e35198aa4a30220ab2befb9e", "score": "0.5215148", "text": "@Override\n\t@Transactional(readOnly = true)\n\tpublic List<Category> list() {\n\t\treturn cR.findAll(Sort.by(Sort.Direction.DESC, \"nameCategory\"));\n\t}", "title": "" }, { "docid": "c3d68486926cc5a68f6e26d81c0979c5", "score": "0.5210481", "text": "public List<Categoria> findAllCategorias() throws Exception;", "title": "" }, { "docid": "fded6c3d25f6c4b7ed52878d6ff70133", "score": "0.5203314", "text": "int getCategoryIdCount();", "title": "" } ]
3a74268ea5c366261c2bd323501a53f9
Override this to provide the UI that goes into the presentation. This works somewhat like a fragment's onCreateView().
[ { "docid": "359a8b9f2a67439d18cf7773f74735c1", "score": "0.0", "text": "protected abstract View buildPresoView(Context ctxt,\n LayoutInflater inflater);", "title": "" } ]
[ { "docid": "27413e48317b59f56111430c50228fa5", "score": "0.7119263", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_new_medical, container, false);\n ButterKnife.bind(this, view);\n initUI(view);\n return view;\n }", "title": "" }, { "docid": "58d12497f0305d3527737fc42b716aec", "score": "0.70882154", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_text, container, false);\n MyPresenter myPresenter = new MyPresenter(this);\n myPresenter.startPresText();\n initView(view);\n return view;\n }", "title": "" }, { "docid": "78635676e1c61cfcb4545921b055ea14", "score": "0.6934483", "text": "public ApplicationUI() {\n initializeControls();\n layoutControls();\n addEventHandlers();\n addValueChangeListeners();\n addBindings();\n\n presenter = new Presenter(this);\n }", "title": "" }, { "docid": "38933a1309f00b09fb972a89f1f891c8", "score": "0.681675", "text": "@Override\r\n\tpublic void onViewCreated(View view, Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\r\n\t\tinitUI();\r\n\t}", "title": "" }, { "docid": "ef3d9535158b21df0e51ff744e4a6736", "score": "0.68121535", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n inflatedView = inflater.inflate(R.layout.fragment_screen_slide_page, container, false);\n return inflatedView;\n }", "title": "" }, { "docid": "89d8e572c20966e7657d300c69449288", "score": "0.68056774", "text": "public abstract void initView();", "title": "" }, { "docid": "9da8cd123e516b3de0ef8e61bbc67866", "score": "0.6786188", "text": "@Override\n protected void initView() {\n }", "title": "" }, { "docid": "50b083cf49ecc76205401b600bef1ff6", "score": "0.678453", "text": "@Override\n public View onCreateView(final LayoutInflater inflater, final ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_page1, container, false);\n new slideUp(this, view);\n return view;\n }", "title": "" }, { "docid": "ef597f4e2e257d394c0802854f5d4e58", "score": "0.67422104", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_publish_act, container, false);\n ButterKnife.bind(this , view);\n presenter = new CreditDetailPresenter();\n presenter.init(this);\n return view;\n }", "title": "" }, { "docid": "a767b16bdf5b4fa039a7f604e4ed2d98", "score": "0.6728605", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_song_detail, container, false);\n setupUI(view);\n return view;\n }", "title": "" }, { "docid": "95f0d62f16d68329bc4f9d2f6961aa6f", "score": "0.67189765", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_flickr, container, false);\n ButterKnife.bind(this, view);\n setupUI();\n getContent();\n return view;\n }", "title": "" }, { "docid": "fec3d8bc8a664c424a3492feb126b42f", "score": "0.6707197", "text": "protected abstract void onCreateView();", "title": "" }, { "docid": "99cff9aa2623432d7aee60cefeafa630", "score": "0.6703121", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.card_note_fragment, container, false);\n ButterKnife.bind(this, view);\n if (events == null) {\n if (presenter!=null){\n presenter.subscribe();\n }\n } else {\n showCardNote(events);\n setLoadingIndicator(false);\n }\n return view;\n }", "title": "" }, { "docid": "bb76d05f3e3f3cace7be95a902ba5add", "score": "0.6701696", "text": "private void setupView()\n {\n \n }", "title": "" }, { "docid": "122b3eed7d5e4722bbfb13d8c806ce3a", "score": "0.6699027", "text": "protected abstract void initViews();", "title": "" }, { "docid": "122b3eed7d5e4722bbfb13d8c806ce3a", "score": "0.6699027", "text": "protected abstract void initViews();", "title": "" }, { "docid": "a8f0d3b0d9c4d764a10a3668c0c9e499", "score": "0.6698841", "text": "@Override\n protected void initView() {\n\n }", "title": "" }, { "docid": "322d82fac79d9902511fa3aaa59d274b", "score": "0.6692544", "text": "protected abstract View initView(LayoutInflater inflater, ViewGroup container);", "title": "" }, { "docid": "a0d54b03724e9512c9c9f519deca9242", "score": "0.6665902", "text": "@Override\n\tpublic void initUI(View view) {\n\n\t}", "title": "" }, { "docid": "7053fa6608e4b38416f9d9bd5948ccf5", "score": "0.66569096", "text": "@Override\n\tpublic void initView() {\n\t\tsuper.initView();\n\t}", "title": "" }, { "docid": "1063b23b5a67e499e8ba2e968acda6cb", "score": "0.665665", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.drawerlayout_page, null, false);\n setupUI(rootView);\n return rootView;\n }", "title": "" }, { "docid": "58bf1843fa2a53a8b857d3e5b78e8fc3", "score": "0.6655446", "text": "@Override\n public void initView() {\n }", "title": "" }, { "docid": "58bf1843fa2a53a8b857d3e5b78e8fc3", "score": "0.6655446", "text": "@Override\n public void initView() {\n }", "title": "" }, { "docid": "5032cd1225506b635797727ae5940270", "score": "0.6651472", "text": "@Override\r\n\t\tprotected void initView() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "1803f9ea0a4b981a54898b069d1c7f85", "score": "0.66476285", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tif (root == null)\n\t\t{\n\t\t\tBundle intentBundle = getArguments();\n\t\t\tprojectId = intentBundle.getInt(ScreenProvider.KEY_ID);\n\t\t\t\n\t\t\troot = inflater.inflate(R.layout.layout_project_screenflow_design, null);\n\t\t\trelativeRoot = (RelativeLayout) root;\n\t\t\tScreenFlowScreensFragment.setOnScreenRequestedListener(this);\n\t\t\tdesignArea = (RelativeLayout) root.findViewById(R.id.screenflow_area);\n\t\t\tdesignArea.setOnDragListener(this);\n\t\t}\n\t\t\n\t\treturn root; \n\t}", "title": "" }, { "docid": "d0904b2cbbf5dbe82b42fb59efe65b9f", "score": "0.6646979", "text": "@Override\n protected void createViews() {\n appView.getView().setId(View.generateViewId());\n appView.getView().setLayoutParams(new FrameLayout.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT,\n ViewGroup.LayoutParams.MATCH_PARENT));\n\n viewAnimator = new ViewAnimator(this);\n surfaceView = new SurfaceView(this);\n surfaceView.setLayoutParams(new FrameLayout.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT,\n ViewGroup.LayoutParams.MATCH_PARENT));\n\n viewAnimator.addView(appView.getView());\n viewAnimator.addView(surfaceView);\n setContentView(viewAnimator);\n\n if (preferences.contains(\"BackgroundColor\")) {\n int backgroundColor = preferences.getInteger(\"BackgroundColor\", Color.BLACK);\n // Background of activity:\n appView.getView().setBackgroundColor(backgroundColor);\n }\n\n appView.getView().requestFocusFromTouch();\n }", "title": "" }, { "docid": "238abd3813a4cb8c064cf7d63a175747", "score": "0.66461", "text": "protected void initView() {\n }", "title": "" }, { "docid": "e5223c548ca0d178a4837ff3ceb8b8d7", "score": "0.66351175", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_task_detail, container, false);\n setupUI(view);\n return view;\n }", "title": "" }, { "docid": "d072498cdff7399936ffd09e4f1bd7ab", "score": "0.6613999", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.include_page_play, null);\n return view;\n }", "title": "" }, { "docid": "f37765628d9847c9baadccabf824aacf", "score": "0.6602808", "text": "protected abstract void setupView(View view);", "title": "" }, { "docid": "f04d32ce40b072f660fc0e313af5c0fd", "score": "0.65969753", "text": "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_movie, container, false);\n initUI(view);\n return view;\n }", "title": "" }, { "docid": "a30326234fe86a6ab13612b762a2819b", "score": "0.6596369", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_public, container, false);\n initView();\n initData();\n return view;\n }", "title": "" }, { "docid": "45ceafd7109417de7efd3a6296a8289b", "score": "0.6594186", "text": "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "title": "" }, { "docid": "69f17810672c5e9206c72b754f85fd75", "score": "0.6550482", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_product, container, false);\n ButterKnife.bind(this, view);\n stateLayout= (StateLayout) view.findViewById(R.id.stateLayout);\n stateLayout.setViewSwitchAnimProvider(new FadeViewAnimProvider());\n initViewTitle();\n initRecyclView();\n setListener();\n\n return view;\n }", "title": "" }, { "docid": "44811e389a63b471a37653cf4bc2bd64", "score": "0.65492976", "text": "@Override\n\tprotected void initView() {\n\t\t\n\t}", "title": "" }, { "docid": "f214f78fa9a60cde11378a99496fb48c", "score": "0.65394425", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_week_commission, container, false);\r\n ButterKnife.bind(this, view);\r\n initWidger();\r\n initCalendar();\r\n next.setOnClickListener(this);\r\n previous.setOnClickListener(this);\r\n return view;\r\n }", "title": "" }, { "docid": "eec2fbdca36b88c22dd7f2d66a25dad8", "score": "0.6536256", "text": "@Override\n void createView() {}", "title": "" }, { "docid": "a63a8c4c419301c08b42e2f3a8bf8e1c", "score": "0.6529379", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_win, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n return view;\n }", "title": "" }, { "docid": "d9d97e95568294e946697ba91d08be44", "score": "0.65292746", "text": "void initPresenter(View view);", "title": "" }, { "docid": "1313ecc264905b530b3fe1d4fcaf2f8d", "score": "0.6520748", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_gallery,container,false);\n getActivityComponent().inject(this);\n // Attach AboutFragment to V in presenter that depends on presenters template V.\n mPresenter.onAttach(this);\n\n return view;\n }", "title": "" }, { "docid": "2d59269ef6a546f32de9150383307931", "score": "0.65183204", "text": "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_sections, container, false);\n unbinder = ButterKnife.bind(this, view);\n init(view);\n return view;\n }", "title": "" }, { "docid": "ec3e791b3819e36aedcccd440c4ed337", "score": "0.6515738", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_following, container, false);\n ButterKnife.bind(this, view);\n initData();\n EventBus.getDefault().register(this);\n return view;\n }", "title": "" }, { "docid": "5b8f7bf95f5848197f86362bf3d459b9", "score": "0.65149313", "text": "@Override\n protected void initView(View view) {\n }", "title": "" }, { "docid": "5b8f7bf95f5848197f86362bf3d459b9", "score": "0.65149313", "text": "@Override\n protected void initView(View view) {\n }", "title": "" }, { "docid": "aeff694ad0a44762be08dfbc4426e277", "score": "0.6509413", "text": "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_instructions, container, false);\n ButterKnife.bind(this, view);\n setInstructionsa(instructions);\n setTitle(title);\n setPlayerVisible(showPlayer, videoUrl, thumbnailUrl, playerPos, playerWin, playWhenReady);\n showNextButton(showNextButton);\n return view;\n }", "title": "" }, { "docid": "070ef4a8b949ab0daba3ddd983687dfe", "score": "0.6503224", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {\n\n if (User.getUserInstance().getUserType() == User.UserType.TECHNICIAN) { // User type technician .\n mainView = inflater.inflate(R.layout.fragment_technician_operate, container, false);\n ButterKnife.bind(this, mainView);\n technicianViewInit();\n hygieneViewInit();\n standByViewInit();\n setHygieneText();\n setStandByText();\n hideStandByLastActivation();\n setPresenter();\n setAdapter();\n technicianViewsSetListeners();\n setDefaultValueForViews();\n\n\n } else { // User type cleaner .\n mainView = inflater.inflate(R.layout.cleaner_operate_screen, container, false);\n\n setPresenter();\n cleanerViewInit();\n cleanerViewsSetListeners();\n\n }\n\n\n return mainView;\n\n }", "title": "" }, { "docid": "3cdc33f87328781cdcea7fa58cbb3100", "score": "0.65016073", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tx.view().inject(this);\n\t\tinitView();\n\t}", "title": "" }, { "docid": "73dba46679e273eb82023e2b0d7804c9", "score": "0.64999145", "text": "@Override\n\tpublic void initView() {\n\t\n\n\t}", "title": "" }, { "docid": "aa303b1e0ce6302c0e5ee19436dbe791", "score": "0.64995444", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_mine_paint, container, false);\n unbinder = ButterKnife.bind(this, v);\n\n initView(v);\n setListener();\n return v;\n }", "title": "" }, { "docid": "81a86c3389671d2c45b11fe42765e880", "score": "0.648992", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_playlist, container, false);\n ButterKnife.bind(this, v);\n mContext = v.getContext();\n handle();\n return v;\n }", "title": "" }, { "docid": "2184880e9267020233fbb03e637ca7e0", "score": "0.64836776", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_scene, container, false);\n ButterKnife.bind(this, view);\n operateView();\n return view;\n }", "title": "" }, { "docid": "5249624c9fe5bb97ecd9b6d12ac086be", "score": "0.6481914", "text": "private void initView() {\n\n }", "title": "" }, { "docid": "19ee1f90932044f580c2e15aadec1445", "score": "0.64768034", "text": "@Override\n\tpublic void showUI()\n\t{\n\t\t// TODO: Load the view object into the activity\n\t\t\n\t\t//code that handles the closing of the application\n\t\t\n\t}", "title": "" }, { "docid": "cb093e0422a7df7bfcb930f6663567ac", "score": "0.6458341", "text": "abstract protected void createView();", "title": "" }, { "docid": "3b5c16a5782bf9c0376ea56abb283dd1", "score": "0.64566094", "text": "@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.viewconsumer, container, false);\n configureInitialPage(view);\n return view;\n }", "title": "" }, { "docid": "d9f2cf7830b6716ac0ddf1f48516cd09", "score": "0.6453943", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return initializeView(inflater, container);\n }", "title": "" }, { "docid": "0a444f28e7541f40d11f1ff3815507c2", "score": "0.64526254", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_simple_present1, container, false);\n\n initViews();\n\n mSpannableStringExplain();\n mSpannableStringExample2();\n mSpannableStringExample3();\n\n\n\n return view;\n }", "title": "" }, { "docid": "e20c2ad761e42d0bbb0859b28af0f51c", "score": "0.6451841", "text": "protected void initView() {\n\t\tView btnRet = getView().findViewById(R.id.title_turn_return);\n\t\tif (btnRet != null) {\n\t\t\tbtnRet.setOnClickListener(this);\n\t\t}\n//\t\ttitle = (TextView) getView().findViewById(R.id.text_title);\n\t\ttitle = (TextView) getView().findViewById(R.id.title_content);\n\t\tif (title != null) {\n\t\t\ttitle.setText(getIntentTitle(getActivity().getIntent()));\n\t\t}\n\t\tsetUrl(getIntentUrl(getActivity().getIntent()));\n\t\thostUrl = url;\n\t\tinitWebView();\n\t}", "title": "" }, { "docid": "c8f6f70adcd4372edc64d05caf96b021", "score": "0.6448376", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_public, container, false);\n initView(inflate);\n return inflate;\n }", "title": "" }, { "docid": "a7f85057eb5fd73aae51cedba62f470a", "score": "0.6446676", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_projects, container, false);\n\n ButterKnife.bind(this, view);\n\n initComponents();\n presenter.loadCategories();\n return view;\n }", "title": "" }, { "docid": "7d1a25fe6850172e33ba7fba3fe20ba0", "score": "0.6445235", "text": "public interface IPresenter {\n\n // invoke before setContentView,\n // handle some configuration\n void create(Bundle savedInstanceState);\n\n // invoke after setContentView\n // handle some loading work\n void created(Bundle savedInstanceState);\n\n // invoke at the end of onCreate\n // do some optional work\n void prepared(Bundle savedInstanceState);\n\n void start();\n\n void stop();\n\n void destroy();\n\n IView getIView();\n}", "title": "" }, { "docid": "cf0c552c955fcbd028f7d0fded02611c", "score": "0.64379674", "text": "public abstract void buildView();", "title": "" }, { "docid": "65c9b0492ca55e0f76c8b6ec89a5a649", "score": "0.6428453", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n EventBus.getDefault().register(this);\n View v = inflater.inflate(R.layout.fragment_criminal_detail, container, false);\n textviewTitle = v.findViewById(R.id.TextDetail);\n imageDetail = v.findViewById(R.id.ImageDetail);\n Warning = v.findViewById(R.id.Warning);\n return v;\n }", "title": "" }, { "docid": "b6047a2e83d672b23abb1a991f26916e", "score": "0.640608", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return x.view().inject(this, inflater, container);\n }", "title": "" }, { "docid": "9bcf8431b43312cf5c8a9d6d48b31090", "score": "0.63951087", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mine, container, false);\n initView(view);\n getUserInfo();\n ButterKnife.bind(this, view);\n return view;\n }", "title": "" }, { "docid": "5f60628b4d1ffd21fdb6baf727c78039", "score": "0.63813657", "text": "private void initView() {\n\t\t\n\t}", "title": "" }, { "docid": "bff21a6f68dc7cb1910120ae6db4902e", "score": "0.63811904", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.layout_dialog_capture_period, container, false);\n ButterKnife.bind(this, view);\n return view;\n }", "title": "" }, { "docid": "c9b847247d80af75f1760ca29813c62a", "score": "0.6372757", "text": "private void initialiseUI() {\r\n\t\trelativeHeader = (RelativeLayout) findViewById(R.id.relativeHeader);\r\n\t\tmWebView = (WebView) findViewById(R.id.webView);\r\n\t\tmProgressRelLayout = (RelativeLayout) findViewById(R.id.progressDialog);\r\n\t\theadermanager = new HeaderManager(ImageActivityNew.this, \"Notification\");\r\n\t\theadermanager.getHeader(relativeHeader, 0);\r\n\t\tback = headermanager.getLeftButton();\r\n\t\theadermanager.setButtonLeftSelector(R.drawable.back,\r\n\t\t\t\tR.drawable.back);\r\n\t\tback.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tAppUtils.hideKeyBoard(mContext);\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\t\t});\r\n\t\thome = headermanager.getLogoButton();\r\n\t\thome.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent in = new Intent(mContext, HomeListAppCompatActivity.class);\r\n\t\t\t\tin.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\t\t\tstartActivity(in);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "93212677f978fbb428cd40e55f832047", "score": "0.63650143", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragment_custom_app, container, false);\n initInstances(v);\n init(v);\n showCategorizedApp();\n\n return v;\n }", "title": "" }, { "docid": "c6113757a60247ed81047eea181d9886", "score": "0.6363025", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_studies, container, false);\n initialiseViews(view);\n addEventHandlers();\n\n return view;\n }", "title": "" }, { "docid": "9deace2784c2fffb07bbe9f043d7afe8", "score": "0.63599324", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_fragment_main, container, false);\n initInstance(view);\n return view;\n }", "title": "" }, { "docid": "ae2a9000f6da2f5f55235bdbd786cac9", "score": "0.63571733", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_trending_mirror, container, false);\n\n initUI(view);\n setInitialData();\n\n\n return view;\n }", "title": "" }, { "docid": "a7ae150370e9d7995702682507a5953d", "score": "0.63564014", "text": "@Override\n\tprotected BaseDisplay createDisplay() {\n\t\tPollView view = new PollView();\n//\t\tview.setPresenter(this);\n\t\treturn view;\n\t\t\n\t}", "title": "" }, { "docid": "903fdb65954d519aad066a2451dc85ff", "score": "0.63527226", "text": "private View createView() {\n\t\tLayoutInflater layoutInflater = LayoutInflater.from(getActivity());\r\n\t\tScrollView resultView = (ScrollView) layoutInflater.inflate(\r\n\t\t\t\tR.layout.filpper_view, null);\r\n\t\tcalendarView = (CalendarPickerView) resultView\r\n\t\t\t\t.findViewById(R.id.calendar_view);\r\n\r\n\t\treturn resultView;\r\n\r\n\t}", "title": "" }, { "docid": "7a4dac0ce10e0c26a69ff48770323e1d", "score": "0.6352356", "text": "@Override\n public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n\n mPresenter.onAttach(this);\n }", "title": "" }, { "docid": "1204f1bb96bb8fbc961e5b58be9b022d", "score": "0.6348921", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n initialise(view);\n\n setListener();\n registerPopUp(this);\n prefManager = new PrefManager(getActivity());\n try {\n pinfo = getActivity().getPackageManager().getPackageInfo(getActivity().getPackageName(), 0);\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n }\n mAdapter = new DashboardRowAdapter(DashboardFragment.this);\n this.rvHome.setAdapter(mAdapter);\n //new MasterController(getActivity()).getConstants(this);\n return view;\n }", "title": "" }, { "docid": "5348de770c022c7a2c4bfcc5cae50020", "score": "0.6341686", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n view = inflater.inflate(R.layout.fragment_view_family_details, container, false);\n\n init();\n\n\n AsyncTaskRunner runner = new AsyncTaskRunner();\n runner.execute(\"getDetails\");\n return view;\n }", "title": "" }, { "docid": "38a164b36bf0b20e571c929c379d997b", "score": "0.6341214", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_upcoming_movie, container, false);\n ButterKnife.bind(this, view);\n context = getContext();\n mApiService = UtilsApi.getAPIService(context);\n upcomingMoviePresenter = new UpcomingMoviePresenter(context, mApiService, this);\n\n initView();\n\n if (savedInstanceState == null) {\n upcomingMoviePresenter.doMovieUpcoming();\n } else {\n movies = savedInstanceState.getParcelableArrayList(KEY_MOVIES_UPCOMING);\n upcomingMovieAdapter.setMovieResult(movies);\n listMovie.setAdapter(upcomingMovieAdapter);\n swipeRefreshLayout.setRefreshing(false);\n }\n\n return view;\n }", "title": "" }, { "docid": "a57f0455a5f59efc71549dc3e0a70537", "score": "0.6341141", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mix_and_match, container, false);\n displayGridView(view);\n presentButtonClick(view);\n return view;\n }", "title": "" }, { "docid": "a049fbb15fac9481886c506b571142d1", "score": "0.63390744", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n View rootView = inflater.inflate(R.layout.fragment_detail_yocto_meteo, container, false);\n setupUI(rootView);\n return rootView;\n }", "title": "" }, { "docid": "3a8318d925a33e0aa66c3ea962e69c7d", "score": "0.6338602", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_main, container, false);\n mTextView = (TextView) mView.findViewById(R.id.display);\n mButton = (Button) mView.findViewById(R.id.show_button);\n mCoordinatorLayout = (CoordinatorLayout) mView.findViewById(R.id.cl);\n showBottomSheet();\n mButton.setOnClickListener(this);\n LinearLayoutCompat layoutCompat = (LinearLayoutCompat) mView.findViewById(R.id.bottom_sheet_selection_1);\n LinearLayoutCompat layoutCompat2 = (LinearLayoutCompat) mView.findViewById(R.id.bottom_sheet_selection_2);\n LinearLayoutCompat layoutCompat3 = (LinearLayoutCompat) mView.findViewById(R.id.bottom_sheet_selection_3);\n LinearLayoutCompat layoutCompat4 = (LinearLayoutCompat) mView.findViewById(R.id.bottom_sheet_selection_4);\n LinearLayoutCompat layoutCompat5 = (LinearLayoutCompat) mView.findViewById(R.id.bottom_sheet_selection_5);\n layoutCompat.setOnClickListener(this);\n layoutCompat2.setOnClickListener(this);\n layoutCompat3.setOnClickListener(this);\n layoutCompat4.setOnClickListener(this);\n layoutCompat5.setOnClickListener(this);\n return mView;\n }", "title": "" }, { "docid": "686c785f05c5f70fb46006ff070717a3", "score": "0.63285387", "text": "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tsuper.onCreateView(inflater, container, savedInstanceState);\r\n\t\tinitView();\r\n\t\tsetContentView(inflater, mContentViewResID);\r\n\t\treturn mContentView;\r\n\t}", "title": "" }, { "docid": "edf6e20aea289598fb9f864cd0e931bc", "score": "0.63272005", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {\n initializeSuper(R.layout.new_questionnaire_layout, true, new QuestionnaireOverviewFragment(), inflater, container);\n return view;\n }", "title": "" }, { "docid": "a6d6812cc8228b7d1cb3ec970d856822", "score": "0.6324383", "text": "@Override\n public void onStart(){\n super.onStart();\n // Apply any required UI change now that the Fragment is visible.\n }", "title": "" }, { "docid": "71d70499033454de62a8589958c04e57", "score": "0.631857", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_personal, container, false);\n ButterKnife.inject(this, root);\n init();\n return root;\n }", "title": "" }, { "docid": "ff39520a0671bcef4dba56747314f144", "score": "0.6318042", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate( R.layout.fragment_project_edit_gb, container, false);\n\n\n //Wire up the UI widgets so they can handle events later\n wireWidgets(v);\n\n wireSpinners(v);\n\n // TODO: 6/30/2017 make this the list of points, not the list of pictures\n //initializeRecyclerView(v);\n\n\n //If we had any arguments passed, update the screen with them\n initializeUI(v);\n\n setProjectSavedFlags();\n //If this is the first time through, there wont be a savedInstanceState\n mProjectFirstTime = (savedInstanceState == null);\n\n return v;\n }", "title": "" }, { "docid": "7457361146394335e286e9ac4754017a", "score": "0.6316823", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = View.inflate(mContext, R.layout.fragment_main_commonframe, null);\n\n unbinder = ButterKnife.bind(this, view);\n return view;\n }", "title": "" }, { "docid": "b6eb35b513832a5ab716ac0b2c9d3951", "score": "0.63162893", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_blank2, container, false);\n unbinder = ButterKnife.bind(this, view);\n inView(view);\n return view;\n }", "title": "" }, { "docid": "715ebf3432b49d71f1935c6ad414ef3c", "score": "0.6304281", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_completedwork, container, false);\n init(view);\n Load();\n return view;\n }", "title": "" }, { "docid": "28492e2353be05c40419adc710e1f1c8", "score": "0.63041764", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_home, container, false);\n setRetainInstance(true);\n handler = new Handler(new Handler.Callback() {\n @Override\n public boolean handleMessage(Message msg) {\n switch (msg.what)\n {\n case Utility.SHOW_PROGRESS:\n animateShowProgress();\n break;\n\n case Utility.NO_RESULT:\n animateNoResult();\n break;\n\n case Utility.HIDE_PROGRESS:\n animateShowList();\n break;\n\n default:\n //Do nothing\n\n }\n return true;\n }\n });\n return view;\n }", "title": "" }, { "docid": "c9c55796c4d809b03dde267da7ec7810", "score": "0.6300316", "text": "public interface MainView {\n void initializeViews();\n}", "title": "" }, { "docid": "5fcb9498523c8927fa32b05e507ce99a", "score": "0.62928843", "text": "private void initUI() {\n tv_saying = (TextView) view.findViewById(R.id.tv_saying_random);\n tv_saying.setTypeface(Typeface.createFromAsset(getContext().getAssets(), getContext().getString(R.string.font_path)));\n\n this.iv_fav = (ImageView) view.findViewById(R.id.iv_favorite);\n this.iv_share = (ImageView) view.findViewById(R.id.iv_share);\n this.fab = (FloatingActionButton) view.findViewById(R.id.fab_random_sayings);\n\n this.iv_fav.setOnClickListener(this);\n this.iv_share.setOnClickListener(this);\n this.fab.setOnClickListener(this);\n\n animateFab();\n }", "title": "" }, { "docid": "748e86339881ff114e1a5c56df7801c5", "score": "0.6286606", "text": "@Override\n\tprotected void initView(LayoutInflater inflater, ViewGroup container) {\n\t\tsetBaseView(inflater.inflate(R.layout.leftmenu, container,false));\n\t\tweatherControl = new WeatherControlImpl(this);\n\t}", "title": "" }, { "docid": "3a45af629ec55397c61cce290962afd2", "score": "0.62843555", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.hospitals_fragments, container, false);\n context=v.getContext();\n ButterKnife.bind(this, v);\n Api.getInstance().downloadHospitals(this);\n return v;\n }", "title": "" }, { "docid": "5e610e1a5805952521366654c0ea98f5", "score": "0.6284065", "text": "void onBasedViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState);", "title": "" }, { "docid": "1c8d74875f8e034d799ba8ccd7a40c6e", "score": "0.6279488", "text": "@Override\r\n\tpublic View initView() {\n\t\tView root = View.inflate(mainActivity, R.layout.fragment_content_view, null);\r\n\t\t\r\n\t\t//xUtils 的动态注入View\r\n\t\tViewUtils.inject(this, root);//这样就不用写findViewById();了.到这里就有iew主键了\r\n\t\t\r\n\t\treturn root;\r\n\t}", "title": "" }, { "docid": "3a5122f6d3a1ed9977d0972e5e472a8d", "score": "0.627871", "text": "private void initMealView() {\n\t\tcontext = this;\n\t\tactivity = this;\n\t\tmealView = new MealView(context, activity);\n\t}", "title": "" }, { "docid": "f7840393d2a0b3b3a127d3ed7d328c59", "score": "0.62773687", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_meeting_request, container, false);\n morphingButton = (MorphingButton) view.findViewById(R.id.morph_sendBtn_id);\n setUpFields(view); // binding\n dateAndtimebuttonHandler(); // do event when clicked\n sendRequestHandler();\n updateUi();\n return view;\n }", "title": "" }, { "docid": "0226b73a9d8ad31846b23c0140a18505", "score": "0.6275064", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_purchaseinvocieopening, container, false);\r\n unbinder = ButterKnife.bind(this, view);\r\n initComponents(view);\r\n return view;\r\n }", "title": "" }, { "docid": "9a76fc8322f8aa39338e14000a8c4497", "score": "0.6274559", "text": "protected abstract View constructView();", "title": "" }, { "docid": "384b5b0ef99cf7d0135eb5a93381a875", "score": "0.6273772", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View mView = inflater.inflate(R.layout.fragment_schedule, container, false);\n mWeekView = (WeekView) mView.findViewById(R.id.weekView);\n mWeekView.goToHour(9);\n mWeekView.setOnEventClickListener(this);\n mWeekView.setMonthChangeListener(this);\n mWeekView.setEmptyViewLongPressListener(this);\n setupDateTimeInterpreter(false);\n setHasOptionsMenu(true);\n\n return mView;\n }", "title": "" } ]