query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
sequencelengths
19
20
metadata
dict
Mark a queued packet as having been acknowledged. Will remove from sending queue.
public void markPacketAsAcked(INetworkDevice inDevice, byte inAckNum) { NetAddress deviceAddr = inDevice.getAddress(); mLastDeviceAckId.put(deviceAddr, inAckNum); mDeviceSendWithoutAckCount.put(deviceAddr, 0); }
[ "public void confirmSent() {\n\t\tthis.acknowledged = true;\n\t\tthis.timer.killThread();\n\t}", "public void markDelivered() {\n mResponseDelivered = true;\n }", "public void ack(){\n gfh.getCurrent().ack(this.player);\n }", "public void ack() throws AckFailedException {\n\n if (null != lastSentMessage)\n ack(lastSentMessage.getHeaders().get(\n Stomp.Headers.Message.MESSAGE_ID), lastSentMessage\n .getHeaders().get(\"connection-id\"));\n else {\n log.warn(\"WARNING: Unidentified ack message. This may happen in case client sends ack before receiving the message, ignoring ...\");\n }\n }", "void acked(boolean timedOutMessage);", "public void ack() {\n if (session().state().active()) {\n session().publish(\"ack\", commit.operation());\n }\n }", "void ack() {\n this.ackTimeoutRegistry.clear( Topic.RPC, Actions.REQUEST, this.uid );\n }", "private void sendPendingAcks()\r\n\t{\r\n\t\tsynchronized (_PendingAcks)\r\n\t\t{\r\n\t\t\tif (_PendingAcks.size() > 0)\r\n\t\t\t{\r\n\t\t\t\tPacketAckPacket acks = new PacketAckPacket();\r\n\t\t\t\tacks.ID = new int[_PendingAcks.size()];\r\n\t\t\t\tacks.getHeader().setReliable(false);\r\n\t\t\t\tint i = 0;\r\n\t\t\t\tIterator<Integer> iter = _PendingAcks.iterator();\r\n\t\t\t\twhile (iter.hasNext())\r\n\t\t\t\t{\r\n\t\t\t\t\tacks.ID[i++] = iter.next();\r\n\t\t\t\t}\r\n\t\t\t\t_PendingAcks.clear();\r\n\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tsendPacket(acks);\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t{\r\n\t\t\t\t\tLogger.Log(\"Exception when sending Ack packet\", Logger.LogLevel.Error, _Client, ex);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void ackReceived(long messageID) throws AndesException;", "public void delivered(){\n this.state=State.DELIVERED;\n }", "public void tickQueue() {\n if (packetQueue.isEmpty()) {\n return;\n }\n\n Packet packet = packetQueue.poll();\n handle(packet);\n }", "public void requeue() {\n\t\tenqueue(queue.removeFirst());\n\t}", "private void sendWithoutResend(Packet packet) {\n SimulationLogger.increaseStatisticCounter(\"TCP_ACK_PACKETS_SENT\");\n transportLayer.send(packet);\n }", "public void queuePacket(Packet packet) {\n packetQueue.add(packet);\n }", "public void verifyReceivedQueueMessageAcknowledged(String nameOfQueue, int indexOfMessage)\n {\n checkQueueByName(nameOfQueue);\n List messageList = getReceivedMessageListFromQueue(nameOfQueue);\n if(indexOfMessage >= messageList.size())\n {\n throw new VerifyFailedException(\"Queue \" + nameOfQueue + \" received only \" + messageList.size() + \" messages\");\n }\n MockMessage message = (MockMessage)messageList.get(indexOfMessage);\n if(!message.isAcknowledged())\n {\n throw new VerifyFailedException(\"Message \" + indexOfMessage + \" of queue \" + nameOfQueue + \" is not acknowledged\");\n }\n }", "public ObjectOutputStream popPending() {\r\n\t\t\treturn pendingAck.remove(0);\r\n\t\t}", "public void markIdle() {\r\n IdleListener<E> listener = idleListener;\r\n if(listener != null) {\r\n listener.beforeIdle(this);\r\n }\r\n status = QueueStatus.IDLE;\r\n }", "public synchronized void processACK(Segment seg) throws InterruptedException{\n\n System.out.println(\"received ack# \" + seg.getSeqNum());\n\n if(que.element().getSeqNum() <= seg.getSeqNum()) {\n\n ParentTimer.cancelTimer();\n\n while(que.element() != null && que.element().getSeqNum() < seg.getSeqNum())\n que.remove();\n\n if(!que.isEmpty())\n ParentTimer.setTimer();\n }\n }", "protected void incMsgDelivered() {\n\t\tengine.incMsgDelivered();\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clear all the files created using tesing.
private void clearFiles() { File file = new File("test_files/upload"); File[] files = file.listFiles(); for (File delFile : files) { delFile.delete(); } }
[ "public static void clearTemps() {\n\t\tclearTemps(System.getProperty(\"java.io.tmpdir\") + Engine.ID);\n\t}", "private void clearFiles() {\r\n File file = new File(\"test_files/upload\");\r\n File[] files = file.listFiles();\r\n for (File delFile : files) {\r\n delFile.delete();\r\n }\r\n file = new File(\"test_files/stress.jar\");\r\n file.delete();\r\n }", "public static synchronized void clear() {\n files.clear();\n save();\n }", "public void deleteAll() {\r\n this.fileText = \"\";\r\n }", "@Override\n public void clearAll() {\n File target = new File(\"saves/users\");\n if (!target.exists()) return;\n File[] files = target.listFiles();\n for (File file: files) {\n file.delete();\n }\n }", "private void cleanup() {\n\t\tSet<String> keySet = TEMP_FILES.keySet();\n\t\tIterator<String> iterator = keySet.iterator();\n\t\tPath path;\n\t\twhile (iterator.hasNext()) {\n\t\t\tpath = TEMP_FILES.get(iterator.next());\n\t\t\ttry {\n\t\t\t\tFiles.delete(path);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Can't delete the temp folder:\");\n\t\t\t\tSystem.err.println(path.toString());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "protected static void cleanUp() {\n\t\tFile[] files = getTempDir().listFiles(new FileFilter() {\n\t\t\t@Override\n\t\t\tpublic boolean accept(File file) {\n\t\t\t\tif (file.isDirectory()\n\t\t\t\t\t\t&& file.getName().startsWith(TempTools.class.getName())) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t});\n\t\tif (files == null) {\n\t\t\treturn;\n\t\t}\n\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\tcleanUpTempDir(files[i]);\n\t\t}\n\t}", "void clearGeneratedTempFileMask() {\n generatedTempFiles = 0;\n }", "public void clear() {\n File[] files = cacheDir.listFiles();\n for (File f : files)\n f.delete();\n }", "private void cleanUp() throws FileNotFoundException, IOException {\n \t\t\tif(interactive)\n \t\t\t\treturn;\n \t\t\tFile dir=TestData.file(this, \"overview/\");\n \t\t\tFile[] files = dir.listFiles(\n \t\t\t\t\t(FilenameFilter)FileFilterUtils.notFileFilter(\n \t\t\t\t\t\t\tFileFilterUtils.orFileFilter(\n \t\t\t\t\t\t\t\t\tFileFilterUtils.orFileFilter(\n \t\t\t\t\t\t\t\t\t\t\tFileFilterUtils.suffixFileFilter(\"tif\"),\n \t\t\t\t\t\t\t\t\t\t\tFileFilterUtils.suffixFileFilter(\"aux\")\n \t\t\t\t\t\t\t\t\t),\n \t\t\t\t\t\t\t\t\tFileFilterUtils.nameFileFilter(\"datastore.properties\")\n \t\t\t\t\t\t\t)\n \t\t\t\t\t)\n \t\t\t);\n \t\t\tfor(File file:files){\n \t\t\t\tfile.delete();\n \t\t\t}\n \t\t\t\n \t\t\tdir=TestData.file(this, \"rgba/\");\n \t\t\tfiles = dir.listFiles((FilenameFilter)FileFilterUtils.notFileFilter(\n \t\t\t\t\tFileFilterUtils.orFileFilter(\n \t\t\t\t\t\t\tFileFilterUtils.notFileFilter(FileFilterUtils.suffixFileFilter(\"png\")),\n \t\t\t\t\t\t\tFileFilterUtils.notFileFilter(FileFilterUtils.suffixFileFilter(\"wld\"))\n \t\t\t\t\t)));\n \t\t\tfor(File file:files){\n \t\t\t\tfile.delete();\n \t\t\t}\n \t}", "public void clear() {\n File[] files = cacheDir.listFiles();\n if(files==null)\n return;\n for(File f:files)\n f.delete();\n }", "private void emptyTestDirectory() {\n // Delete the files in the /tmp/QVCSTestFiles directory.\n File tempDirectory = new File(TestHelper.buildTestDirectoryName(TEST_SUBDIRECTORY));\n File[] files = tempDirectory.listFiles();\n if (files != null) {\n for (File file : files) {\n if (file.isDirectory()) {\n File[] subFiles = file.listFiles();\n for (File subFile : subFiles) {\n if (subFile.isDirectory()) {\n File[] subSubFiles = subFile.listFiles();\n for (File subSubFile : subSubFiles) {\n subSubFile.delete();\n }\n }\n subFile.delete();\n }\n }\n file.delete();\n }\n }\n }", "public void clear() {\n recordedFiles.forEach(RecordedFile::delete);\n recordedFiles.clear();\n crashRecordedFiles.clear();\n }", "@AfterClass\n public static void teardown() {\n logger.info(\"teardown: remove the temporary directory\");\n\n // the assumption is that we only have one level of temporary files\n for (File file : directory.listFiles()) {\n file.delete();\n }\n directory.delete();\n }", "private void cleanupTestFilesStructure() {\r\n testLoadFile.delete();\r\n testPurgeFile.delete();\r\n testLoadDirectory.delete();\r\n File[] files = testArchiveDir.listFiles();\r\n if (files != null)\r\n for (File file : files) {\r\n file.delete();\r\n }\r\n testArchiveDir.delete();\r\n }", "public static void clearStage() {\n File addDir = Utils.join(\".gitlet\", \"stagingarea\", \"toAdd\");\n File[] dirList = addDir.listFiles();\n for (File each : dirList) {\n File tempFile = Utils.join(addDir, each.getName());\n tempFile.delete();\n }\n }", "public static void clearFile() {\n if (data.delete())\n data = new File(\"statistics.data\");\n }", "public final void clearTempos(){\n\t\tthis.asVoltas.clear();\n\t}", "public void teardown() {\r\n deleteImages();\r\n deleteWorkingDir();\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Enable Left & Right Unlinking. It will also disable sequential mode and multithread evaluation as these are incompatible with L&R unlinking.
public void setLRUnlinkingEnabled(boolean enabled) { checkCanChange(); // throws an exception if a change isn't possible; this.lrUnlinkingEnabled = enabled; if (enabled && isSequential()) { throw new IllegalArgumentException( "Sequential mode cannot be used when Left & Right Unlinking is enabled."); } if (enabled && isMultithreadEvaluation()) { throw new IllegalArgumentException( "Multithread evaluation cannot be used when Left & Right Unlinking is enabled."); } }
[ "public static void disable() {\n if (lock.compareAndSet(false, true)) {\n\n RxJavaPlugins.setOnCompletableAssembly(null);\n RxJavaPlugins.setOnSingleAssembly(null);\n RxJavaPlugins.setOnMaybeAssembly(null);\n\n RxJavaPlugins.setOnObservableAssembly(null);\n RxJavaPlugins.setOnFlowableAssembly(null);\n RxJavaPlugins.setOnConnectableObservableAssembly(null);\n RxJavaPlugins.setOnConnectableFlowableAssembly(null);\n\n RxJavaPlugins.setOnParallelAssembly(null);\n\n lock.set(false);\n }\n }", "void tunnelEnableDualMode(boolean enable);", "public native static void enableIRLasers(Object oper1, boolean oper2);", "void disableMotor();", "public void toggleEnabled() {\n enabled = !enabled;\n }", "public void unsetEnabled()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ENABLED$6);\n }\n }", "public void disableLocking() {\n this.lockContext = new DummyLockContext();\n }", "public void turnOFFRadion() {\n radio.setSwitchStatus(false);\n }", "void disableMod();", "protected void mutateDisableLink() {\n\t\tGene g = getRandomGene();\n\t\tg.enabled = false;\n\n\t\tif (Braincraft.gatherStats)\n\t\t\tBraincraft.genetics.add(\"link disable mutation \" + ID + \" \"\n\t\t\t\t\t+ g.innovation);\n\t}", "private void disable() {\n logger.warning(\"disabling myself\");\n disabled = true;\n statusManager = null;\n pollInterval = LONG_DELAY; // Check this often on whether to terminate\n }", "public void disable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Coast);\n }", "public void turnOff() {\n\t\ttry {\n\n\t\t\tThread thr = new Thread(new Runnable() {\n\n\t\t\t\t/*\n\t\t\t\t * (non-Javadoc)\n\t\t\t\t * \n\t\t\t\t * @see java.lang.Runnable#run()\n\t\t\t\t */\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\treaderModuleManagerInterface.turnReaderOff();\n\t\t\t\t\t\trunning = false;\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tlogger.error(\"Problem turning on gate: \" + e);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t});\n\t\t\tthr.run();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfor (VisualEntity entity : children) {\n\t\t\t((AntennaFieldEntity) entity).turnOff();\n\t\t}\n\t}", "public void disable() {\n\t\tdriveMotor.disableControl();\n\t}", "public void lockReverseAll() {\n\t\treverseAll = true;\n\t}", "public void toggleEnable();", "@Override\r\npublic void disable() {\r\n super.disable(); // Shut down the PID loop\r\n driveMotor.disable(); // Shut down the driving motor\r\n}", "protected abstract void disable();", "public void disable();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__DefCore__NumcoreAssignment_4" $ANTLR start "rule__RTCTL__OpAssignment_0_0" InternalDsl.g:37499:1: rule__RTCTL__OpAssignment_0_0 : ( ( '(' ) ) ;
public final void rule__RTCTL__OpAssignment_0_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDsl.g:37503:1: ( ( ( '(' ) ) ) // InternalDsl.g:37504:2: ( ( '(' ) ) { // InternalDsl.g:37504:2: ( ( '(' ) ) // InternalDsl.g:37505:3: ( '(' ) { if ( state.backtracking==0 ) { before(grammarAccess.getRTCTLAccess().getOpLeftParenthesisKeyword_0_0_0()); } // InternalDsl.g:37506:3: ( '(' ) // InternalDsl.g:37507:4: '(' { if ( state.backtracking==0 ) { before(grammarAccess.getRTCTLAccess().getOpLeftParenthesisKeyword_0_0_0()); } match(input,61,FOLLOW_2); if (state.failed) return ; if ( state.backtracking==0 ) { after(grammarAccess.getRTCTLAccess().getOpLeftParenthesisKeyword_0_0_0()); } } if ( state.backtracking==0 ) { after(grammarAccess.getRTCTLAccess().getOpLeftParenthesisKeyword_0_0_0()); } } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__RTCTL__Group_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:17541:1: ( ( ( rule__RTCTL__OpAssignment_0_0 ) ) )\n // InternalDsl.g:17542:1: ( ( rule__RTCTL__OpAssignment_0_0 ) )\n {\n // InternalDsl.g:17542:1: ( ( rule__RTCTL__OpAssignment_0_0 ) )\n // InternalDsl.g:17543:2: ( rule__RTCTL__OpAssignment_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_0_0()); \n }\n // InternalDsl.g:17544:2: ( rule__RTCTL__OpAssignment_0_0 )\n // InternalDsl.g:17544:3: rule__RTCTL__OpAssignment_0_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_0_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:17622:1: ( ( ( rule__RTCTL__OpAssignment_1_0 ) ) )\n // InternalDsl.g:17623:1: ( ( rule__RTCTL__OpAssignment_1_0 ) )\n {\n // InternalDsl.g:17623:1: ( ( rule__RTCTL__OpAssignment_1_0 ) )\n // InternalDsl.g:17624:2: ( rule__RTCTL__OpAssignment_1_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_1_0()); \n }\n // InternalDsl.g:17625:2: ( rule__RTCTL__OpAssignment_1_0 )\n // InternalDsl.g:17625:3: rule__RTCTL__OpAssignment_1_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_1_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_4__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:17838:1: ( ( ( rule__RTCTL__OpAssignment_4_0 ) ) )\n // InternalDsl.g:17839:1: ( ( rule__RTCTL__OpAssignment_4_0 ) )\n {\n // InternalDsl.g:17839:1: ( ( rule__RTCTL__OpAssignment_4_0 ) )\n // InternalDsl.g:17840:2: ( rule__RTCTL__OpAssignment_4_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_4_0()); \n }\n // InternalDsl.g:17841:2: ( rule__RTCTL__OpAssignment_4_0 )\n // InternalDsl.g:17841:3: rule__RTCTL__OpAssignment_4_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_4_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_4_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Term__Group_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2900:1: ( ( ( rule__Term__OpAssignment_1_0 ) ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2901:1: ( ( rule__Term__OpAssignment_1_0 ) )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2901:1: ( ( rule__Term__OpAssignment_1_0 ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2902:1: ( rule__Term__OpAssignment_1_0 )\r\n {\r\n before(grammarAccess.getTermAccess().getOpAssignment_1_0()); \r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2903:1: ( rule__Term__OpAssignment_1_0 )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2903:2: rule__Term__OpAssignment_1_0\r\n {\r\n pushFollow(FOLLOW_rule__Term__OpAssignment_1_0_in_rule__Term__Group_1__0__Impl6021);\r\n rule__Term__OpAssignment_1_0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getTermAccess().getOpAssignment_1_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__RTCTL__Group_10__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:18270:1: ( ( ( rule__RTCTL__OpAssignment_10_0 ) ) )\n // InternalDsl.g:18271:1: ( ( rule__RTCTL__OpAssignment_10_0 ) )\n {\n // InternalDsl.g:18271:1: ( ( rule__RTCTL__OpAssignment_10_0 ) )\n // InternalDsl.g:18272:2: ( rule__RTCTL__OpAssignment_10_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_10_0()); \n }\n // InternalDsl.g:18273:2: ( rule__RTCTL__OpAssignment_10_0 )\n // InternalDsl.g:18273:3: rule__RTCTL__OpAssignment_10_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_10_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_10_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:17676:1: ( ( ( rule__RTCTL__OpAssignment_2_0 ) ) )\n // InternalDsl.g:17677:1: ( ( rule__RTCTL__OpAssignment_2_0 ) )\n {\n // InternalDsl.g:17677:1: ( ( rule__RTCTL__OpAssignment_2_0 ) )\n // InternalDsl.g:17678:2: ( rule__RTCTL__OpAssignment_2_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_2_0()); \n }\n // InternalDsl.g:17679:2: ( rule__RTCTL__OpAssignment_2_0 )\n // InternalDsl.g:17679:3: rule__RTCTL__OpAssignment_2_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_2_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__OpAssignment_4_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:37669:1: ( ( ( 'AX' ) ) )\n // InternalDsl.g:37670:2: ( ( 'AX' ) )\n {\n // InternalDsl.g:37670:2: ( ( 'AX' ) )\n // InternalDsl.g:37671:3: ( 'AX' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAXKeyword_4_0_0()); \n }\n // InternalDsl.g:37672:3: ( 'AX' )\n // InternalDsl.g:37673:4: 'AX'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAXKeyword_4_0_0()); \n }\n match(input,189,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAXKeyword_4_0_0()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAXKeyword_4_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__OpAssignment_6_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:37752:1: ( ( ( 'AG' ) ) )\n // InternalDsl.g:37753:2: ( ( 'AG' ) )\n {\n // InternalDsl.g:37753:2: ( ( 'AG' ) )\n // InternalDsl.g:37754:3: ( 'AG' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAGKeyword_6_0_0()); \n }\n // InternalDsl.g:37755:3: ( 'AG' )\n // InternalDsl.g:37756:4: 'AG'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAGKeyword_6_0_0()); \n }\n match(input,191,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAGKeyword_6_0_0()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAGKeyword_6_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__OpAssignment_9_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:37884:1: ( ( ( 'EG' ) ) )\n // InternalDsl.g:37885:2: ( ( 'EG' ) )\n {\n // InternalDsl.g:37885:2: ( ( 'EG' ) )\n // InternalDsl.g:37886:3: ( 'EG' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpEGKeyword_9_0_0()); \n }\n // InternalDsl.g:37887:3: ( 'EG' )\n // InternalDsl.g:37888:4: 'EG'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpEGKeyword_9_0_0()); \n }\n match(input,194,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpEGKeyword_9_0_0()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpEGKeyword_9_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_11__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:18378:1: ( ( ( rule__RTCTL__OpAssignment_11_0 ) ) )\n // InternalDsl.g:18379:1: ( ( rule__RTCTL__OpAssignment_11_0 ) )\n {\n // InternalDsl.g:18379:1: ( ( rule__RTCTL__OpAssignment_11_0 ) )\n // InternalDsl.g:18380:2: ( rule__RTCTL__OpAssignment_11_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_11_0()); \n }\n // InternalDsl.g:18381:2: ( rule__RTCTL__OpAssignment_11_0 )\n // InternalDsl.g:18381:3: rule__RTCTL__OpAssignment_11_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_11_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_11_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_9__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:18189:1: ( ( ( rule__RTCTL__OpAssignment_9_0 ) ) )\n // InternalDsl.g:18190:1: ( ( rule__RTCTL__OpAssignment_9_0 ) )\n {\n // InternalDsl.g:18190:1: ( ( rule__RTCTL__OpAssignment_9_0 ) )\n // InternalDsl.g:18191:2: ( rule__RTCTL__OpAssignment_9_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_9_0()); \n }\n // InternalDsl.g:18192:2: ( rule__RTCTL__OpAssignment_9_0 )\n // InternalDsl.g:18192:3: rule__RTCTL__OpAssignment_9_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_9_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_9_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__OpAssignment_7_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:37801:1: ( ( ( 'EX' ) ) )\n // InternalDsl.g:37802:2: ( ( 'EX' ) )\n {\n // InternalDsl.g:37802:2: ( ( 'EX' ) )\n // InternalDsl.g:37803:3: ( 'EX' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpEXKeyword_7_0_0()); \n }\n // InternalDsl.g:37804:3: ( 'EX' )\n // InternalDsl.g:37805:4: 'EX'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpEXKeyword_7_0_0()); \n }\n match(input,192,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpEXKeyword_7_0_0()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpEXKeyword_7_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_6__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:17973:1: ( ( ( rule__RTCTL__OpAssignment_6_0 ) ) )\n // InternalDsl.g:17974:1: ( ( rule__RTCTL__OpAssignment_6_0 ) )\n {\n // InternalDsl.g:17974:1: ( ( rule__RTCTL__OpAssignment_6_0 ) )\n // InternalDsl.g:17975:2: ( rule__RTCTL__OpAssignment_6_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_6_0()); \n }\n // InternalDsl.g:17976:2: ( rule__RTCTL__OpAssignment_6_0 )\n // InternalDsl.g:17976:3: rule__RTCTL__OpAssignment_6_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_6_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_6_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__TerminalExpression__OpAssignment_0_1() throws RecognitionException {\n int rule__TerminalExpression__OpAssignment_0_1_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 1186) ) { return ; }\n // InternalGaml.g:19800:1: ( ( RULE_INTEGER ) )\n // InternalGaml.g:19801:1: ( RULE_INTEGER )\n {\n // InternalGaml.g:19801:1: ( RULE_INTEGER )\n // InternalGaml.g:19802:1: RULE_INTEGER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getTerminalExpressionAccess().getOpINTEGERTerminalRuleCall_0_1_0()); \n }\n match(input,RULE_INTEGER,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getTerminalExpressionAccess().getOpINTEGERTerminalRuleCall_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 1186, rule__TerminalExpression__OpAssignment_0_1_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_7__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:18054:1: ( ( ( rule__RTCTL__OpAssignment_7_0 ) ) )\n // InternalDsl.g:18055:1: ( ( rule__RTCTL__OpAssignment_7_0 ) )\n {\n // InternalDsl.g:18055:1: ( ( rule__RTCTL__OpAssignment_7_0 ) )\n // InternalDsl.g:18056:2: ( rule__RTCTL__OpAssignment_7_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_7_0()); \n }\n // InternalDsl.g:18057:2: ( rule__RTCTL__OpAssignment_7_0 )\n // InternalDsl.g:18057:3: rule__RTCTL__OpAssignment_7_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_7_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_7_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_8__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:18108:1: ( ( ( rule__RTCTL__OpAssignment_8_0 ) ) )\n // InternalDsl.g:18109:1: ( ( rule__RTCTL__OpAssignment_8_0 ) )\n {\n // InternalDsl.g:18109:1: ( ( rule__RTCTL__OpAssignment_8_0 ) )\n // InternalDsl.g:18110:2: ( rule__RTCTL__OpAssignment_8_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_8_0()); \n }\n // InternalDsl.g:18111:2: ( rule__RTCTL__OpAssignment_8_0 )\n // InternalDsl.g:18111:3: rule__RTCTL__OpAssignment_8_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_8_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_8_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__Group_3__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:17757:1: ( ( ( rule__RTCTL__OpAssignment_3_0 ) ) )\n // InternalDsl.g:17758:1: ( ( rule__RTCTL__OpAssignment_3_0 ) )\n {\n // InternalDsl.g:17758:1: ( ( rule__RTCTL__OpAssignment_3_0 ) )\n // InternalDsl.g:17759:2: ( rule__RTCTL__OpAssignment_3_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpAssignment_3_0()); \n }\n // InternalDsl.g:17760:2: ( rule__RTCTL__OpAssignment_3_0 )\n // InternalDsl.g:17760:3: rule__RTCTL__OpAssignment_3_0\n {\n pushFollow(FOLLOW_2);\n rule__RTCTL__OpAssignment_3_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpAssignment_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__UnaryExpr__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMGPL.g:4322:1: ( ( ( rule__UnaryExpr__OpAssignment_0 ) ) )\n // InternalMGPL.g:4323:1: ( ( rule__UnaryExpr__OpAssignment_0 ) )\n {\n // InternalMGPL.g:4323:1: ( ( rule__UnaryExpr__OpAssignment_0 ) )\n // InternalMGPL.g:4324:2: ( rule__UnaryExpr__OpAssignment_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryExprAccess().getOpAssignment_0()); \n }\n // InternalMGPL.g:4325:2: ( rule__UnaryExpr__OpAssignment_0 )\n // InternalMGPL.g:4325:3: rule__UnaryExpr__OpAssignment_0\n {\n pushFollow(FOLLOW_2);\n rule__UnaryExpr__OpAssignment_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryExprAccess().getOpAssignment_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__RTCTL__OpAssignment_2_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:37571:1: ( ( ( 'or' ) ) )\n // InternalDsl.g:37572:2: ( ( 'or' ) )\n {\n // InternalDsl.g:37572:2: ( ( 'or' ) )\n // InternalDsl.g:37573:3: ( 'or' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpOrKeyword_2_0_0()); \n }\n // InternalDsl.g:37574:3: ( 'or' )\n // InternalDsl.g:37575:4: 'or'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRTCTLAccess().getOpOrKeyword_2_0_0()); \n }\n match(input,187,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpOrKeyword_2_0_0()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRTCTLAccess().getOpOrKeyword_2_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 27 / 2 covered goals: 1 org.apache.commons.collections4.IteratorUtils.getIterator(Ljava/lang/Object;)Ljava/util/Iterator;: I3 Branch 24 IFNONNULL L1049 false 2 org.apache.commons.collections4.IteratorUtils.emptyIterator()Lorg/apache/commons/collections4/ResettableIterator;: rootBranch
@Test public void test27() throws Throwable { fr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1348,"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test27"); IIOMetadataNode iIOMetadataNode0 = new IIOMetadataNode(""); iIOMetadataNode0.getNodeValue(); Iterator<?> iterator0 = IteratorUtils.getIterator((Object) null); assertEquals(false, iterator0.hasNext()); }
[ "@Test\n public void test4() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1350,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test4\");\n OrderedIterator<Object> orderedIterator0 = IteratorUtils.emptyOrderedIterator();\n assertEquals(false, orderedIterator0.hasNext());\n }", "@Test\n public void test17() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1337,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test17\");\n LinkedHashSet<Object> linkedHashSet0 = new LinkedHashSet<Object>();\n ResettableIterator<Object> resettableIterator0 = IteratorUtils.loopingIterator((Collection<?>) linkedHashSet0);\n assertEquals(false, resettableIterator0.hasNext());\n }", "@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1328,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test0\");\n HashMap<String, StringTokenizer>[] hashMapArray0 = (HashMap<String, StringTokenizer>[]) Array.newInstance(HashMap.class, 3);\n ObjectArrayListIterator<HashMap<String, StringTokenizer>> objectArrayListIterator0 = new ObjectArrayListIterator<HashMap<String, StringTokenizer>>(hashMapArray0, 0, 0);\n List<HashMap<String, StringTokenizer>> list0 = IteratorUtils.toList((Iterator<? extends HashMap<String, StringTokenizer>>) objectArrayListIterator0);\n LoopingListIterator<HashMap<String, StringTokenizer>> loopingListIterator0 = new LoopingListIterator<HashMap<String, StringTokenizer>>(list0);\n ListIterator<HashMap<String, StringTokenizer>> listIterator0 = IteratorUtils.unmodifiableListIterator((ListIterator<HashMap<String, StringTokenizer>>) loopingListIterator0);\n assertEquals(false, listIterator0.hasPrevious());\n }", "@Test\n public void test26() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1347,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test26\");\n ResettableListIterator<StringTokenizer> resettableListIterator0 = IteratorUtils.emptyListIterator();\n // Undeclared exception!\n try {\n IteratorUtils.toList((Iterator<? extends StringTokenizer>) resettableListIterator0, 0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Estimated size must be greater than 0\n //\n }\n }", "@Test\n public void test8() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1354,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test8\");\n Integer[] integerArray0 = new Integer[9];\n ResettableListIterator<Integer> resettableListIterator0 = IteratorUtils.arrayListIterator(integerArray0);\n assertEquals(true, resettableListIterator0.hasNext());\n }", "@Test\n public void test3() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(547,\"org.apache.commons.collections4.iterators.IteratorIterableEvoSuiteTest.test3\");\n HashMap<Integer, Object> hashMap0 = new HashMap<Integer, Object>();\n EntrySetMapIterator<Integer, Object> entrySetMapIterator0 = new EntrySetMapIterator<Integer, Object>((Map<Integer, Object>) hashMap0);\n IteratorIterable<Object> iteratorIterable0 = new IteratorIterable<Object>((Iterator<?>) entrySetMapIterator0);\n Iterator<Object> iterator0 = iteratorIterable0.iterator();\n assertEquals(false, iterator0.hasNext());\n }", "@Test\n public void test1() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(545,\"org.apache.commons.collections4.iterators.IteratorIterableEvoSuiteTest.test1\");\n IteratorIterable<Object> iteratorIterable0 = null;\n try {\n iteratorIterable0 = new IteratorIterable<Object>((Iterator<?>) null, true);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Iterator must not be null\n //\n }\n }", "@Test\n public void test2() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(546,\"org.apache.commons.collections4.iterators.IteratorIterableEvoSuiteTest.test2\");\n IteratorIterable<Object> iteratorIterable0 = new IteratorIterable<Object>((Iterator<?>) null);\n Iterator<Object> iterator0 = iteratorIterable0.iterator();\n assertNotNull(iterator0);\n }", "@Test\n public void test19() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1339,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test19\");\n IIOMetadataNode iIOMetadataNode0 = new IIOMetadataNode(\"\");\n NodeListIterator nodeListIterator0 = IteratorUtils.nodeListIterator((NodeList) iIOMetadataNode0);\n assertEquals(false, nodeListIterator0.hasNext());\n }", "@Test\n public void test12() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1332,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test12\");\n MapIterator<Class<StringTokenizer>, StringTokenizer> mapIterator0 = IteratorUtils.emptyMapIterator();\n MapIterator<Class<StringTokenizer>, StringTokenizer> mapIterator1 = IteratorUtils.unmodifiableMapIterator(mapIterator0);\n assertNotSame(mapIterator1, mapIterator0);\n }", "@Test\n public void test24() throws Throwable {\n // Undeclared exception!\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1345,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test24\");\n try {\n IteratorUtils.toListIterator((Iterator<? extends Properties>) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Iterator must not be null\n //\n }\n }", "@Test\n public void test10() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1330,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test10\");\n HashMap<String, StringTokenizer>[] hashMapArray0 = (HashMap<String, StringTokenizer>[]) Array.newInstance(HashMap.class, 3);\n ObjectArrayListIterator<HashMap<String, StringTokenizer>> objectArrayListIterator0 = new ObjectArrayListIterator<HashMap<String, StringTokenizer>>(hashMapArray0, 0, 0);\n Iterator<HashMap<String, StringTokenizer>> iterator0 = IteratorUtils.unmodifiableIterator((Iterator<HashMap<String, StringTokenizer>>) objectArrayListIterator0);\n assertEquals(false, iterator0.hasNext());\n }", "@Test\n public void test1() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(602,\"org.apache.commons.collections4.iterators.ObjectGraphIteratorEvoSuiteTest.test1\");\n ObjectGraphIterator<Object> objectGraphIterator0 = new ObjectGraphIterator<Object>((Iterator<?>) null);\n ObjectGraphIterator<Object> objectGraphIterator1 = new ObjectGraphIterator<Object>((Iterator<?>) objectGraphIterator0);\n boolean boolean0 = objectGraphIterator1.hasNext();\n assertEquals(false, boolean0);\n }", "@Test\n public void test18() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1338,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test18\");\n LinkedList<Integer> linkedList0 = new LinkedList<Integer>();\n ResettableListIterator<Integer> resettableListIterator0 = IteratorUtils.loopingListIterator((List<Integer>) linkedList0);\n assertEquals(false, resettableListIterator0.hasPrevious());\n }", "@Test\n public void test23() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1344,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test23\");\n OrderedMapIterator<Class<StringTokenizer>, Properties> orderedMapIterator0 = IteratorUtils.emptyOrderedMapIterator();\n AbstractOrderedMapIteratorDecorator<Class<StringTokenizer>, Properties> abstractOrderedMapIteratorDecorator0 = new AbstractOrderedMapIteratorDecorator<Class<StringTokenizer>, Properties>(orderedMapIterator0);\n Iterable<Object> iterable0 = IteratorUtils.asMultipleUseIterable((Iterator<?>) abstractOrderedMapIteratorDecorator0);\n assertNotNull(iterable0);\n }", "@Test\n public void test6() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1352,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test6\");\n LinkedList<String> linkedList0 = new LinkedList<String>();\n SingletonListIterator<LinkedList<String>> singletonListIterator0 = new SingletonListIterator<LinkedList<String>>(linkedList0);\n Iterator<Object> iterator0 = IteratorUtils.peekingIterator((Iterator<?>) singletonListIterator0);\n assertEquals(true, iterator0.hasNext());\n }", "@Test\n public void test3() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1349,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test3\");\n ListIterator<String> listIterator0 = IteratorUtils.singletonListIterator(\"Predicate must not be null\");\n assertEquals(-1, listIterator0.previousIndex());\n }", "@Test\n public void test21() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1342,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test21\");\n SingletonListIterator<String> singletonListIterator0 = new SingletonListIterator<String>(\"\");\n Enumeration<String> enumeration0 = IteratorUtils.asEnumeration((Iterator<? extends String>) singletonListIterator0);\n Iterator<String> iterator0 = IteratorUtils.asIterator((Enumeration<? extends String>) enumeration0);\n assertEquals(true, iterator0.hasNext());\n }", "@Test\n public void test11() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1331,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test11\");\n Properties[] propertiesArray0 = new Properties[2];\n ResettableListIterator<Properties> resettableListIterator0 = IteratorUtils.arrayListIterator(propertiesArray0, 0, 0);\n assertNotNull(resettableListIterator0);\n assertEquals(false, resettableListIterator0.hasNext());\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the bean property name of the feature associated with this binding.
public String getPropertyName() { final StringBuffer buf = new StringBuffer(); final EStructuralFeature[] path = featurePath.getFeaturePath(); for (int i = 0; i < path.length; i++) { buf.append(path[i].getName()); if (i+1 < path.length) { buf.append("."); } } return buf.toString(); }
[ "public String getName() {\n return propertyDescriptor.getName();\n }", "public default String beanName() {\r\n return beanType().getName();\r\n }", "public String getFeatureName() {\n return featureName;\n }", "public String getFeatureName() {\n if (featureName == null) {\n String className = this.getClass().getName();\n\n className = className.substring(className.lastIndexOf('.') + 1);\n className = className.replace(\"StepDefinition\", \"\");\n\n className = StringUtils.snakecase(className);\n\n setFeatureName(className);\n }\n\n return featureName;\n }", "private String getFeatureFieldName(FeatureImpl feature) {\n return feature.getShortName();\n }", "public String getName() {\r\n\t\treturn featurename;\r\n\t}", "@Schema(description = \"The name of the application property.\")\n public String getName() {\n return name;\n }", "@Override\n\t@NonNull\n\tpublic String getBeanName() {\n\t\treturn String.valueOf(super.getBeanName());\n\t}", "public String getBeanName() {\n\t\treturn this.getClass().getSimpleName();\n\t}", "public boolean getPropertyAsFeature(String featureName);", "public String getPropName() {\n\t\treturn propName;\n\t}", "String getPropertyName();", "public String getProperty() {\n return property;\n }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public StringProperty getName() {\n return person.getName();\n }", "public String namePropertiesName() {\n return this.namePropertiesName;\n }", "public com.flexnet.opsembedded.webservices.SimpleQueryType getFeatureName() {\n return featureName;\n }", "@Override\n public String getFQPropertyName() {\n return fqn + name();\n }", "public String getKey_property_name() {\n return key_property_name;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds an evaluator definition class to the registry using the evaluator class name. The class will be loaded and the corresponting evaluator ID will be added to the registry. In case there exists an implementation for that ID already, the new implementation will replace the previous one.
public void addEvaluatorDefinition(String className) { this.evaluatorRegistry.addEvaluatorDefinition( className ); }
[ "public void registerEvaluator(String name, Evaluator evaluator);", "public void addEvaluatorDefinition(EvaluatorDefinition def) {\r\n this.evaluatorRegistry.addEvaluatorDefinition( def );\r\n }", "public <K extends Expression> EvaluationManager map(Class<K> clazz, Evaluator<K> evaluator) {\n evaluators.put(clazz, evaluator);\n return this;\n }", "public void setClass (String name, com.rivescript.ObjectMacro impl);", "public void add(Evaluation evaluation){\r\n evaluations.add(evaluation);\r\n }", "public void addProvider(EvaluatorProvider provider) {\n\t\tregistry.add(provider);\n\t}", "public void addEvaluator(SimilarityEvaluator to_add) {\n evaluators_.put(to_add.getLabel(), to_add);\n }", "void register(String name, ClassLoader classLoader, int identification, LoadedTypeInitializer loadedTypeInitializer);", "public static void register(String type, String implClass) {\n try {\n registerInterfaceImplClass(type, Class.forName(implClass));\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "public interface JavaEvaluator extends Evaluators {\n}", "public interface LibraryEvaluatorLoader {\n\t/**\n\t * Obtains the library evaluator of the given name.\n\t * \n\t * @param name\n\t * The name of the library whose evaluator is to be obtained.\n\t * @param primaryEvaluator\n\t * The CIVL evaluator of the system.\n\t * @param modelFacotry\n\t * The model factory of the system.\n\t * @param symbolicUtil\n\t * The symbolic utility for manipulations of symbolic\n\t * expressions.\n\t * @return The library evaluator of the given name.\n\t * @throws LibraryLoaderException\n\t * If the library evaluator of the given name cannot be found.\n\t */\n\tLibraryEvaluator getLibraryEvaluator(String name,\n\t\t\tEvaluator primaryEvaluator, ModelFactory modelFacotry,\n\t\t\tSymbolicUtility symbolicUtil) throws LibraryLoaderException;\n}", "public void\n\tadd( Class theClass, Stringifier stringifier )\n\t{\n\t\tmLookup.remove( theClass );\n\t\tmLookup.put( theClass, stringifier );\n\t}", "public void addEvalSet(ClassifierDataSet dataSet) {\n if(!this.evalSets.contains(dataSet)){\n this.evalSets.add(dataSet);\n notifyObservers();\n }\n }", "void addEvaluation(Evaluation eval) {\n queriesEvaluations.add(eval);\n }", "public static void register(Class<?> type, String implClass) throws ClassNotFoundException {\n registerInterfaceImplClass(type.getName(), Class.forName(implClass));\n }", "private static RegistryImpl findRegistryImpl(String classname) \n throws ContentHandlerException\n {\n synchronized (mutex) {\n RegistryImpl impl = \n RegistryImpl.getRegistryImpl(classname, classSecurityToken);\n // Make sure there is a Registry; \n if (impl.getRegistry() == null) {\n impl.setRegistry(new Registry(impl));\n }\n return impl;\n }\n }", "Modification addClass(ClassLocator location,String className);", "void registerHandler(IClassificationHandler handler);", "public synchronized void register(Class<? extends D4DSP> klass, boolean last) {\n // is this already defined?\n if (registered(klass))\n return;\n if (last)\n registry.add(new Registration(klass));\n else\n registry.add(0, new Registration(klass));\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper menu for gamemode selection
private String gamemodeMenu(JSONObject base, ArrayList<String> gameModes) { while(true) { JSONObject opt = new JSONObject(); opt.put("value", base.getString("gamemode")); opt.put("options", gameModes); String input = ""; try{ visual.renderSettings(opt, "GameMode"); visual.renderMessage("write back to go back"); input = visual.getInput(); if (gameModes.contains(input)) { return input; } else if(input.equals("back")) { return null; } } catch (Exception e) { } } }
[ "private void doMenuSelection() {\n switch (gameMode) {\n case PAUSED:\n switch(this.pauseMenuSelection) {\n case RESTART:\n CONVERSATION.clear();\n gameMode = GAME_MODE.RUNNING;\n loadLevel(1);\n break;\n case CONTINUE:\n if(CONVERSATION.isEmpty()) gameMode = GAME_MODE.RUNNING;\n else gameMode = GAME_MODE.TALKING;\n break;\n default: break;\n }\n break;\n case START_MENU:\n switch(this.startMenuSelection) {\n case START_GAME:\n gameMode = GAME_MODE.RUNNING;\n loadLevel(1);\n break;\n case EXIT:\n System.exit(0);\n break;\n default: break;\n }\n break;\n default: break;\n }\n }", "public void gameSelectionOption() {\n Display.showMessage(\"\\nChoose a Casino Game!: \");\n Display.showMessage(\"1: To play Black Jack\");\n Display.showMessage(\"2: To play Sic Bo\");\n Display.showMessage(\"3: To play Slots\");\n Display.showMessage(\"4: To play Quick Words\");\n Display.showMessage(\"5: To play Roulette\");\n Display.showMessage(\"6: To exit\");\n }", "void activateGameMode(GameMode gameMode);", "public void initGameModeChoice() {\n\t\tWorld.clear();\n\t\tstate = STATE.MENU;\n\t\tinitBackground();\n\t\tWorld.add(new Logo(Screen.getCenterX() - Logo.WIDTH / 2, Screen\n\t\t\t\t.getHeight() * 3 / 4 - Logo.HEIGHT / 2));\n\t\tWorld.add(new SinglePlayerButton(Screen.getCenterX()\n\t\t\t\t- StartButton.WIDTH / 2, Screen.getHeight() * 3 / 8\n\t\t\t\t- StartButton.HEIGHT / 2, this));\n\t\tWorld.add(new MultiPlayerButton(Screen.getCenterX() - StartButton.WIDTH\n\t\t\t\t/ 2, Screen.getHeight() * 2 / 8 - StartButton.HEIGHT / 2, this));\n\t\tWorld.add(new TextStatic(footerText, Screen.getCenterX()\n\t\t\t\t- footerText.length() * Sprite.CHAR_WIDTH / 2,\n\t\t\t\tSprite.CHAR_HEIGHT, Color.yellow));\n\n\t}", "int mainMenu(Engine eng)\n {\n boolean selected = false;\n int hover = 0;\n String screen;\n \n // keep changing hover state while user didn't press select key\n while (!selected)\n {\n // there's 3 hover states\n // 0 = hover on play\n // 1 = hover on scores\n // 2 = hover on exit\n \n // only up & down key used to navigate.\n // the hover states can loop back to top or\n // bottom of the hoverable list\n if (eng.up == 1)\n {\n eng.up = 2;\n hover = (hover == 0) ? 2 : hover - 1;\n }\n \n else if (eng.down == 1)\n {\n eng.down = 2;\n hover = (hover == 2) ? 0 : hover + 1;\n }\n \n // check if select key pressed\n else if (eng.select == 1)\n {\n eng.select = 2;\n selected = true;\n }\n \n // update the screen String\n screen = \"<html>\";\n screen += \"DUNGEON EXPLORER<br/><br/>\";\n screen += \"Collect coins($)<br/>\";\n screen += \"Avoid Ghost(#)<br/>\";\n screen += \"Exit Dungeon(&gt;)<br/><br/>\";\n \n switch (hover)\n {\n case 0:\n screen += \"@ Play Game<br/>\";\n screen += \"- Scores<br/>\";\n screen += \"- Exit<br/>\";\n break;\n case 1:\n screen += \"- Play Game<br/>\";\n screen += \"@ Scores<br/>\";\n screen += \"- Exit<br/>\";\n break;\n case 2:\n screen += \"- Play Game<br/>\";\n screen += \"- Scores<br/>\";\n screen += \"@ Exit<br/>\";\n break;\n default:\n screen += \"<bold>ERROR</bold><br/>\";\n }\n \n screen += \"</html>\";\n \n // set screen string as updated display\n eng.txt.setText(screen);\n }\n \n // return the current hovered state\n // determines the mode selected\n return hover;\n }", "private void __selectMode(Gamemode mode) throws IOException {\n Game game = new Game(mode);\n MainApp.setGameState(game);\n MainApp.setRoot(Views.TOPIC);\n }", "private static void showMenu() {\n// String used to store user inputs\n String input;\n \n// Display menu options to player for game types. \n System.out.println(\"Please choose your gametype:\");\n System.out.println(\"\\t1. Suits\");\n System.out.println(\"\\t2. Sabacc\");\n System.out.print(\"Choice: \");\n \n// Get user input for menu selection, loop while it's invalid\n do {\n input = keyboard.nextLine();\n } while (!input.toUpperCase().equals(\"SUITS\") &&\n !input.toUpperCase().equals(\"SABACC\") &&\n !input.equals(\"1\") && !input.equals(\"2\"));\n \n// Switch statement would be a better choice here if there were more game\n// types, used a simple if / else if statement because there are only two\n// game types at the moment.\n// Set the game type in Suit class and then call the appropriate method\n// from GameApp to run the game.\n if (input.toUpperCase().equals(\"1\") ||\n input.toUpperCase().equals(\"SUITS\")) {\n Suit.setGameType(Suit.GameType.SUITS);\n suitsGame();\n }\n else if (input.toUpperCase().equals(\"2\") ||\n input.toUpperCase().equals(\"SABACC\")) {\n Suit.setGameType(Suit.GameType.SABACC);\n sabaccGame();\n }\n }", "private void optionSelected(MenuActionDataItem action){\n \t\tString systemAction = action.getSystemAction();\n \t\tif(!systemAction.equals(\"\")){\n \t\t\t\n \t\t\tif(systemAction.equals(\"back\")){\n \t\t\t\tonBackPressed();\n \t\t\t}else if(systemAction.equals(\"home\")){\n \t\t\t\tIntent launchHome = new Intent(this, CoverActivity.class);\t\n \t\t\t\tstartActivity(launchHome);\n \t\t\t}else if(systemAction.equals(\"tts\")){\n \t\t\t\ttextToSearch();\n \t\t\t}else if(systemAction.equals(\"search\")){\n \t\t\t\tshowSearch();\n \t\t\t}else if(systemAction.equals(\"share\")){\n \t\t\t\tshowShare();\n \t\t\t}else if(systemAction.equals(\"map\")){\n \t\t\t\tshowMap();\n \t\t\t}else\n \t\t\t\tLog.e(\"CreateMenus\", \"No se encuentra el el tipo de menu: \" + systemAction);\n \t\t\t\n \t\t}else{\n \t\t\tNextLevel nextLevel = action.getNextLevel();\n \t\t\tshowNextLevel(this, nextLevel);\n \t\t\t\n \t\t}\n \t\t\n \t}", "public static void executionMenu(){\n\t int selectedchoice = 0;\n\t int numchoices = 3;\n\t boolean enterselected = false;\n\t boolean haschanged = false;\n\t \n\t writeToScreen(\"Select Execution Mode\",0);\n\n\t switch (selectedchoice){\n\t case 0:\n\t writeToScreen(\"1. Standard Exc.\", 1);\n \t break;\n \t case 1:\n\t writeToScreen(\"2. Test +BT\", 1);\n \t break;\n\t case 2:\n \t writeToScreen(\"3. Test -BT\", 1);\n \t break;\n\t }\n\t \n\t while (enterselected == false){\n\t //enumerates the list item when the right button is pressed\n\t if (button_right.isPressed()){\n\t\t if(selectedchoice < (numchoices -1)){\n\t\t ++selectedchoice;\n\t\t } else {\n\t\t selectedchoice = 0;\n\t\t }\n\t\t haschanged = true;\n\t }\n\t \n\t //denumerates the list item when the left button is pressed\n\t if (button_left.isPressed()){\n\t\t if(selectedchoice > 0){\n\t\t --selectedchoice;\n\t\t } else {\n\t\t selectedchoice = (numchoices - 1);\n\t\t }\n\t\t haschanged = true;\n\t }\n\n\t //deals with the enter key being pressed\n\t if (button_enter.isPressed()){\n\t\t enterselected = true;\n\t }\n\n\t //if the menu item has been changed this updates the screen\n\t if (haschanged == true){\n\t\t switch (selectedchoice){\n\t\t case 0:\n\t\t writeToScreen(\"1. Standard Exc.\", 1);\n\t\t break;\n\t\t case 1:\n\t\t writeToScreen(\"2. Test +BT\", 1);\n\t\t break;\n\t\t case 2:\n\t\t writeToScreen(\"3. Test -BT\", 1);\n\t\t break;\n\t\t }\n\t }\n\t \n\t haschanged = false;\n\t }\n\n\t //executes the relevant routines based on selection\n\t switch (selectedchoice){\n\t case 0:\n\t writeToScreen(\"1. Standard Exc.\", 0);\n\t writeToScreen(\"\",1);\n\t execMode = 0;\n\t executeStandard();\n\t break;\n\t case 1:\n\t writeToScreen(\"2. Test +BT\", 0);\n\t writeToScreen(\"\",1);\n\t execMode = 1;\n\t executeTestPlusBT();\n\t break;\n\t case 2:\n\t writeToScreen(\"3. Test -BT\", 1);\n\t writeToScreen(\"\",1);\n\t execMode = 2;\n\t executeTestMinBT();\n\t break;\n\t }\n }", "private void submenuNewGame(){\r\n\r\n clearScreen();\r\n System.out.println(\"WelcomePage/Play/NewGame\"+\"\\n\");\r\n\r\n System.out.println(\"Do you want to play alone or in pairs ?\");\r\n System.out.println(\"Please enter \\\"One\\\" or \\\"Two\\\" according to your desires : \");\r\n String select = sc.nextLine();\r\n\r\n while(!select.equals(\"One\") && !select.equals(\"Two\")){\r\n System.out.println(\"Please enter your choice by writing \\\"One\\\" or \\\"Two\\\" \");\r\n select = sc.nextLine();\r\n }\r\n\r\n if(select.equals(\"One\")){\r\n System.out.println(\"\\nPlease enter your name: \");\r\n this.namePlayer1 = sc.nextLine();\r\n while (this.namePlayer1.equalsIgnoreCase(\"bot\")){\r\n System.out.println(\"Sorry, this name is forbidden, choose another please.\");\r\n this.namePlayer1 = sc.nextLine();\r\n }\r\n this.namePlayer2 = \"bot\";\r\n this.mode = Mode.HA;\r\n }else if(select.equals(\"Two\")){\r\n System.out.println(\"\\nPlease enter the name of the first player: \");\r\n this.namePlayer1 = sc.nextLine();\r\n System.out.println(\"\\nPlease enter the name of the second player: \");\r\n this.namePlayer2 = sc.nextLine();\r\n this.mode = Mode.HH;\r\n }\r\n\r\n Game game = new Game(this.namePlayer1,this.namePlayer2,this.mode,this.option);\r\n game.start();\r\n\r\n System.out.println(\"\\nPress a key on your keyboard to return to the main menu\");\r\n sc.nextLine();\r\n\r\n printFirstMenu();\r\n }", "@Nullable String getSubGameMode();", "GameMode getGameMode();", "public void printGameModeMessage() {\n\t\tgameInterface.println(\"[Tartan Adventure]\");\n\t\tgameInterface.println(\"\");\n\t\tgameInterface.println(\"Room Escape\");\n\t\tgameInterface.println(\"\");\n\t\tgameInterface.println(\"Select the game mode\");\n\t\tgameInterface.println(\"> 1 Local mode\");\n\t\tgameInterface.println(\"> 2 Network mode\");\n\t\tgameInterface.println(\"> help What are local mode and network mode?\");\n\t\tgameInterface.println(\"> exit The game will be terminated.\");\n\t}", "private void roomTypeMenu() {\n\t\tSystem.out.println(\"\\n+-------------------+\");\n\t\tSystem.out.println(\"| Select room type: |\");\n\t\tSystem.out.println(\"| 1. Single |\");\n\t\tSystem.out.println(\"| 2. Standard |\");\n\t\tSystem.out.println(\"| 3. VIP Suite |\");\n\t\tSystem.out.println(\"| 4. Deluxe |\");\n\t\tSystem.out.println(\"+-------------------+\");\n\t\tSystem.out.print(\"Enter choice: \");\n\t}", "@Override\n protected void inputBasicMode()\n {\n int l = 1;\n\n terminal.addTextInput(\"Scegli un bersaglio:\");\n\n for (ColorId a:playersBasicMode)\n {\n terminal.addOptionInput(l + \":\" + a);\n l++;\n }\n\n int chose = terminal.inputInt(1, l - 1);\n\n targetBasicMode = playersBasicMode.get(chose -1);\n }", "private void gameMode(int mode) {\r\n\t\tif(mode == 1) {\r\n\t\t\t//PVP\r\n\t\t\tPVP();\r\n\t\t}else{\r\n\t\t\t//PVE\r\n\t\t\tPVE();\r\n\t\t}\r\n\t\t\r\n\t}", "private void showMenu() {\n int selected = INVALID;\n \n // Welcome the user appropriately\n System.out.println(getUserWelcome()+\" \"+user.getFullName()+\"!\");\n \n do {\n switch(mode) {\n case MENU:\n selected = showMainMenu();\n if (selected > 0) {\n // Admin can use both modes, Clien can use only one\n if (selected == 1 || user.isAdmin()) {\n mode = selected; // Assuming Modes match Menu items\n } else {\n System.out.println(\"No access rights!\");\n }\n selected = INVALID; // to stop being executed\n }\n break;\n case CLIENT:\n selected = showClientMenu();\n if (selected == 0 && startMode == MENU) {\n mode = MENU;\n selected = INVALID;\n }\n break;\n case ADMIN:\n selected = showAdminMenu();\n if (selected == 0 && startMode == MENU) {\n mode = MENU;\n selected = INVALID;\n } else {\n // Admin operations ids start from 101\n selected += 100;\n }\n break;\n default:\n System.out.println(\"UNEXPECTED VALUE \"+mode);\n System.exit(0);\n break;\n }\n if (selected > 0) {\n executeSelection(selected);\n }\n } while (selected != 0);\n \n System.out.println(\"Goodbye \"+user.getFirstName()+\"!\");\n }", "private void gameMenu(String name) {\r\n System.out.println(\"Hello \" + name + \". Please choose a game, or -1 to quit: \");\r\n System.out.println(\"1: Lottery\");\r\n System.out.println(\"2: Coin flip\");\r\n System.out.println(\"3: Rock Paper Scissors\");\r\n }", "public void inputMainMenuOption() {\n\t\tint choice = TextIO.getlnInt();\n\t\tif (choice >= 1 || choice <= 7) { \n\t\t\tthis.setMenu(choice);\n\t\t} else {\n\t\t\tMenus.DisplayMainMenu();\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a new Graph with the same nodes as this Graph but the edges are all Trace objects.
public Graph<N, Object> toTrace() { Graph<N, Object> trace = new Graph<N, Object>(); for (Trace<N> t : this.getMap().keySet()) { trace.add(t); } return trace; }
[ "public Graph copy();", "@Override\n public Graph clone ()\n {\n return new Graph (adj.clone (), label.clone (), inverse);\n }", "@Override\n public Object clone()\n {\n try {\n MutableGraphAdapter<V> newGraph = TypeUtil.uncheckedCast(super.clone());\n\n newGraph.unmodifiableVertexSet = null;\n newGraph.unmodifiableEdgeSet = null;\n newGraph.graph = Graphs.copyOf(this.graph);\n\n return newGraph;\n } catch (CloneNotSupportedException e) {\n e.printStackTrace();\n throw new RuntimeException();\n }\n }", "@Override\n\tpublic weighted_graph copy() {\n\t\tweighted_graph newGraph = new WGraph_DS();\n\t\tfor(node_info cur : graph.getV()) {\n\t\t\tnewGraph.addNode(cur.getKey());\n\t\t}\n\t\t\n\t\tfor(node_info run : graph.getV()) {\n\t\t\tfor(node_info node : ((WGraph_DS)graph).getV(run.getKey())) {\n\t\t\t\tif(!newGraph.hasEdge(run.getKey(), node.getKey()))\n\t\t\t\t\tnewGraph.connect(run.getKey(), node.getKey(), graph.getEdge(run.getKey(), node.getKey()));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn newGraph;\n\t}", "@Override\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS(this.ga);//create the copy graph via copy constructor\n return copy;\n }", "protected OrderEquivalenceGraph deepCopyGraph() {\n return deepCopyGraph(graph);\n }", "public weighted_graph copy();", "public Graph(Graph copy) {\n Map<Node, Node> map = new HashMap<>(nodeList.size());\n\n for (Node node : copy) {\n Node newNode = new Node(node);\n map.put(node, newNode);\n add(newNode);\n }\n\n for (Node node : copy) {\n Node tail = map.get(node);\n\n for (Node borrower : node) {\n Node head = map.get(borrower);\n tail.connectToBorrower(head);\n tail.setWeightTo(head, node.getWeightTo(borrower));\n }\n }\n\n this.edgeAmount = copy.edgeAmount;\n }", "@Override\n\tpublic weighted_graph copy() {\n\t\tWGraph_DS copy = new WGraph_DS(this.graph);\n\n return copy;\n \t\n\t\n\t}", "@Override\n public Graph createGraph()\n { return createGraph( freshGraphName(), false ); }", "public Graph subGraph(final Collection<Node> nodeSet) {\n final Graph newG = new Graph();\n newG.metrics = null;\n \n for(Attributes a : this.getAllAttributes())\n newG.addAttributes(a);\n for(EdgeType et : this.getEdgeTypes())\n newG.addEdgeType(et);\n \n final Map<Node,Node> map = new HashMap<Node,Node>();\n \n for(final Node n : nodeSet)\n {\n final NodeTypeHolder nth = newG.ntMap.get(n.getAttributes().getName());\n final Node newN = n.copy(nth.numNodes());\n final String nodeName = newN.getName();\n nth.nodeMap.put(nodeName, newN);\n map.put(n,newN);\n }\n for(final Map.Entry<Node,Node> pair : map.entrySet())\n {\n for(final Edge e : pair.getKey().getEdges())\n {\n final Node dst = map.get(e.getDest());\n if(dst != null) {\n newG.addEdge(e.getEdgeType(),pair.getValue(),dst,e.getWeight());\n }\n }\n }\n \n return newG;\n }", "public static Graph createUndirectedGraph() {\n return new Graph(false);\n }", "public FramedGraph<TinkerGraph> newGraph() {\r\n final TinkerGraph baseGraph = new TinkerGraph();\r\n final FramedGraphFactory factory = new FramedGraphFactory(\r\n new GremlinGroovyModule(), new JavaHandlerModule(),\r\n Statics.module());\r\n return factory.create(baseGraph);\r\n }", "public static Graph createDirectedGraph() {\n return new Graph(true);\n }", "@Override\n public directed_weighted_graph copy() {\n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(G);\n oos.flush();\n oos.close();\n bos.close();\n byte[] byteData = bos.toByteArray();\n\n ByteArrayInputStream bis = new ByteArrayInputStream(byteData);\n return (directed_weighted_graph) (new ObjectInputStream(bis).readObject());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public Graph(Graph G) {\n this(G.V(), G.directed);\n this.E = G.E();\n for (int v = 0; v < G.V(); v++) {\n // reverse so that adjacency list is in same order as original\n Stack<Integer> reverse = new Stack<Integer>();\n for (int w : G.adj.get(v)) {\n reverse.push(w);\n }\n for (int w : reverse) {\n adj.get(v).add(w);\n }\n }\n }", "@Override\n public Collection<? extends IGraph> getGraphs() {\n\n return new LinkedList<>(\n Collections.unmodifiableCollection(this.graphMap.values()));\n }", "public GraphWrapper() {\r\n\t\tgraph = new Graph<String, String>();\r\n\t}", "public Vertex copy() {\n\t\tArrayList<Vertex> oldneighbors = new ArrayList<Vertex>(neighbors.size());\n\t\tfor (Vertex n: neighbors) {\n\t\t\toldneighbors.add(n);\n\t\t}\n\t\treturn new Vertex(this.dir.copy(), this.mag, oldneighbors, lower);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Define o valor do atributo tamanho.
public void setTamanho(Long tamanho) { this.tamanho = tamanho; }
[ "public void setTamanhoDeposito(int tamanhoDeposito){this.tamanhoDeposito = tamanhoDeposito;}", "void setNilMaxLength();", "public void setLength(int value) {\r\n this.length = value;\r\n }", "public void setTamanhoMaximo(String tamanhoMaximo) {\r\n\t\tthis.tamanhoMaximo = tamanhoMaximo;\r\n\t}", "public void setLength(long length);", "public void setTotalLength(int totalLength);", "public void setTamanhoMinimo(String tamanhoMinimo) {\r\n\t\tthis.tamanhoMinimo = tamanhoMinimo;\r\n\t}", "void setMaxLength(int maxLength);", "private String setFieldLength(JSONObject field, String fieldType) {\n if (field.has(\"dsaLength\"))\n fieldType += \"(\" + field.get(\"dsaLength\") + \")\";\n else {\n // if length is not specified set default length for varchar datatype\n if (fieldType.equalsIgnoreCase(\"varchar\")) fieldType += \"(\" + Constant.VARCHAR_DEFAULT_LENGTH + \")\";\n if (fieldType.equalsIgnoreCase(\"date\")) fieldType += \"(\" + Constant.DATE_DEFAULT_LENGTH + \")\";\n if (fieldType.equalsIgnoreCase(\"datetime\")) fieldType += \"(\" + Constant.DATETIME_DEFAULT_LENGTH + \")\";\n }\n\n return fieldType;\n }", "public int getTamanhoProntuario(){\n int tamanho = 0;\n try{\n byte[] getBytes = this.anotacoes.getBytes(\"UTF-8\");\n tamanho = 56 + getBytes.length + 2*(this.tamanhoAnotacao - this.anotacoes.length()) + 2;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return(tamanho);\n }", "void setMaxLength( int maxLength );", "void setMaxCharSize(int value);", "public void setAtributo(String atributo){\n \n this.atributo = atributo;\n }", "public void setLength(long length) { \n this.length = length; \n }", "@DISPID(18) //= 0x12. The runtime will prefer the VTID if present\n @VTID(40)\n int fieldSize();", "public void setFieldLength(int fieldLength)\n\t{\n\t\tthis.fieldLength = fieldLength;\n\t}", "public final String getSizeAttribute() {\n return getAttributeValue(\"size\");\n }", "protected int defaultNumAttributes() {\n return 10;\n }", "public void setLength(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface to implement a writable packet.
public interface WritablePacket extends Packet { /** * Write this packet to the buffer. * * @param buffer the buffer. * @return true if writing was successful. */ boolean write(@NotNull ByteBuffer buffer); /** * Return an expected data length of this packet or -1. * * @return expected data length of this packet or -1. */ default int getExpectedLength() { return -1; } /** * Write 1 byte to the buffer. * * @param buffer the buffer. * @param value the value. */ default void writeByte(@NotNull ByteBuffer buffer, int value) { buffer.put((byte) value); } /** * Write 2 bytes to the buffer. * * @param buffer the buffer. * @param value the value. */ default void writeChar(@NotNull ByteBuffer buffer, char value) { buffer.putChar(value); } /** * Write 2 bytes to the buffer. * * @param buffer the buffer. * @param value the value. */ default void writeChar(@NotNull final ByteBuffer buffer, final int value) { buffer.putChar((char) value); } /** * Write 4 bytes to the buffer. * * @param buffer the buffer. * @param value the value. */ default void writeFloat(@NotNull ByteBuffer buffer, float value) { buffer.putFloat(value); } /** * Write 4 bytes to the buffer. * * @param buffer the buffer. * @param value the value. */ default void writeInt(@NotNull ByteBuffer buffer, int value) { buffer.putInt(value); } /** * Write 8 bytes to the buffer. * * @param buffer the buffer. * @param value the value. */ default void writeLong(@NotNull ByteBuffer buffer, long value) { buffer.putLong(value); } /** * Writes 2 bytes to the buffer. * * @param buffer the buffer. * @param value the value for writing. */ default void writeShort(@NotNull ByteBuffer buffer, int value) { buffer.putShort((short) value); } /** * Writes the string to the buffer. * * @param buffer the buffer. * @param string the string for writing. */ default void writeString(@NotNull ByteBuffer buffer, @NotNull String string) { try { writeInt(buffer, string.length()); for (int i = 0, length = string.length(); i < length; i++) { buffer.putChar(string.charAt(i)); } } catch (BufferOverflowException ex) { LoggerManager.getLogger(WritablePacket.class) .error("Cannot write a string to buffer because the string is too long." + " String length: " + string.length() + ", buffer: " + buffer); throw ex; } } /** * Write a data buffer to packet buffer. * * @param buffer thr packet buffer. * @param data the data buffer. */ default void writeBuffer(@NotNull ByteBuffer buffer, @NotNull ByteBuffer data) { buffer.put(data.array(), data.position(), data.limit()); } }
[ "public abstract void writePacket(byte[] packet) throws IOException;", "public interface PacketHandler{\n\t\tvoid send(byte[] data);\n\t}", "public void writePacket(DataOutputStream dataOutputStream) throws IOException;", "void write(PacketConnection connection);", "public interface Packet {\n /**\n * Read body from byte buffer\n * @param bb \n * @throws java.lang.Exception \n */\n void readBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Write body to byte buffer\n * @param bb \n * @param context \n * @throws java.lang.Exception \n */\n void writeBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Calculate and return body size in bytes\n * @param context\n * @return \n */\n int calculateBodyLength(TranscoderContext context);\n \n /**\n * Calculate and set field with body length\n * @param context\n */\n void calculateAndSetBodyLength(TranscoderContext context);\n \n /**\n * Get body length from field\n * @return \n */\n int getBodyLength();\n\n /**\n * Get sequence number field value\n * @return \n */\n int getSequenceNumber();\n \n /**\n * Set sequence number field value\n * @param sequenceNumber \n */\n void setSequenceNumber(int sequenceNumber); \n}", "@Override\n public void encode(ChannelHandlerContext ctx, Packet in, ByteBuf out) throws Exception {\n out.writeInt(in.getId()); // Write packet id\n in.write(out); // Encode the packet.\n }", "public void sendPacket(Packet p);", "public interface RSPacketBuffer extends RSBuffer {\n\n\tvoid invokeWriteHeader(int var0);\n}", "public interface PacketHandlerInterface {\n\n /**\n * Return the protocol name\n *\n * @return String\n */\n public String getProtocolName();\n \n /**\n * Return the number of bytes available for reading without blocking\n * \n * @return int\n * @exception IOException\n */\n public int availableBytes()\n \tthrows IOException;\n \n /**\n * Read a packet of data\n * \n * @param pkt byte[]\n * @param offset int\n * @param maxLen int\n * @return int\n * @exception IOException\n */\n public int readPacket(byte[] pkt, int offset, int maxLen)\n \tthrows IOException;\n \n /**\n * Write a packet of data\n * \n * @param pkt byte[]\n * @param offset int\n * @param len int\n * @exception IOException\n */\n public void writePacket(byte[] pkt, int offset, int len)\n \tthrows IOException;\n \n /**\n * Close the packet handler\n */\n public void closePacketHandler();\n}", "private void write(MosesPacket packet) {\n try {\n if (mainSocket != null && mainSocket.isConnected()) {\n /* Write packet object's bytes to TCP/IP output buffer */\n //System.out.println(\"\" + packet.getBytes());\n System.out.println(Integer.toHexString(packet.getBytes()[0]));\n mainSocket.getOutputStream().write(packet.getBytes());\n\n /* Write packet object's string from to 'Sent Packets' text area */\n textAreaSent.append((new Date()).toLocaleString() + \":\\n\"\n + packet.toString() + \"\\n\");\n textAreaSent.setCaretPosition(textAreaSent.getDocument().getLength());\n } else {\n JOptionPane.showMessageDialog(this,\n \"Can't send packet, no active connection!\",\n \"Packet Write Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(this,\n \"Can't send packet, IO Exception!\",\n \"Packet Write Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n }", "@Override\n public void writeTo(DataOutput dout) throws IOException {\n\n if (!isHeadless()) {\n dout.writeShort(getTransactionID());\n dout.writeShort(getProtocolID());\n dout.writeShort(getDataLength());\n }\n dout.writeByte(getUnitID());\n dout.writeByte(getFunctionCode());\n writeData(dout);\n }", "public Write getWrite();", "public void send(Packet packet);", "public interface PacketHandler {\r\n\r\n public void handlePacket(Player player, byte[] packet);\r\n\r\n public int getPacketID();\r\n\r\n}", "interface DmaRequestWrite extends DmaRequest\n{\n\t/**\n\t * Read a byte from the peripheral\n\t */\n\tpublic int getDmaValue();\n}", "public interface MemoryWriteHandler {\r\n\r\n\t/**\r\n\t * Writes a write to the specified address, doing any special\r\n\t * handling if necessary.\r\n\t *\r\n\t * @param address The address to write to.\r\n\t * @param b The byte to write.\r\n\t */\r\n\tvoid write(int address, int b);\r\n\r\n}", "public void write(PacketWriter writer) {\n\t\twriter\t.writeInt(mDrive.ordinal())\n\t\t\t\t.writeInt(mShipType)\n\t\t\t\t.writeFloat(mAccentColor)\n\t\t\t\t.writeBytes(mHasName.toByteArray(4));\n\n\t\tif (mHasName.getBooleanValue()) {\n\t\t\twriter.writeString(mName);\n\t\t}\n\t}", "Write createWrite();", "public abstract void writeData(DataOutput dout) throws IOException;" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to create Right Hand side Nav bar in CQL Workspace.
private void buildLeftHandNavNar() { setCurrentSelectedDefinitionObjId(null); setCurrentSelectedParamerterObjId(null); setCurrentSelectedFunctionObjId(null); getFunctionArgumentList().clear(); getFunctionArgNameMap().clear(); rightHandNavPanel.clear(); NavPills navPills = new NavPills(); navPills.setStacked(true); generalInformation = new AnchorListItem(); //includeLibrary = new AnchorListItem(); parameterLibrary = new AnchorListItem(); definitionLibrary = new AnchorListItem(); functionLibrary = new AnchorListItem(); viewCQL = new AnchorListItem(); generalInformation.setIcon(IconType.INFO); generalInformation.setText("General Information"); generalInformation.setTitle("General Information"); generalInformation.setActive(true); //includeLibrary.setIcon(IconType.INFO); //includeLibrary.setText("Inlude library"); //includeLibrary.setTitle("Inlude library"); //includeLibrary.setActive(true); parameterLibrary.setIcon(IconType.PENCIL); parameterLibrary.setTitle("Parameter"); paramBadge.setText("" + viewParameterList.size()); Anchor paramAnchor = (Anchor) (parameterLibrary.getWidget(0)); // Double Click causing issues.So Event is not propogated paramAnchor.addDoubleClickHandler(new DoubleClickHandler() { @Override public void onDoubleClick(DoubleClickEvent event) { // TODO Auto-generated method stub event.stopPropagation(); } }); paramLabel.setStyleName("transparentLabel"); paramAnchor.add(paramLabel); paramBadge.setPull(Pull.RIGHT); //paramBadge.setMarginLeft(45); paramAnchor.add(paramBadge); paramAnchor.setDataParent("#navGroup"); paramAnchor.setDataToggle(Toggle.COLLAPSE); parameterLibrary.setHref("#collapseParameter"); parameterLibrary.add(paramCollapse); definitionLibrary.setIcon(IconType.PENCIL); definitionLibrary.setTitle("Define"); defineBadge.setText("" + viewDefinitions.size()); Anchor defineAnchor = (Anchor) (definitionLibrary.getWidget(0)); // Double Click causing issues.So Event is not propogated defineAnchor.addDoubleClickHandler(new DoubleClickHandler() { @Override public void onDoubleClick(DoubleClickEvent event) { // TODO Auto-generated method stub event.stopPropagation(); } }); defineLabel.setStyleName("transparentLabel"); defineAnchor.add(defineLabel); defineBadge.setPull(Pull.RIGHT); //defineBadge.setMarginLeft(52); defineAnchor.add(defineBadge); defineAnchor.setDataParent("#navGroup"); definitionLibrary.setDataToggle(Toggle.COLLAPSE); definitionLibrary.setHref("#collapseDefine"); definitionLibrary.add(defineCollapse); functionLibrary.setIcon(IconType.PENCIL); /* functionLibrary.setText("Functions"); */ functionLibrary.setTitle("Functions"); functionBadge.setText("" + viewFunctions.size()); Anchor funcAnchor = (Anchor) (functionLibrary.getWidget(0)); // Double Click causing issues.So Event is not propogated funcAnchor.addDoubleClickHandler(new DoubleClickHandler() { @Override public void onDoubleClick(DoubleClickEvent event) { // TODO Auto-generated method stub event.stopPropagation(); } }); functionLibLabel.setStyleName("transparentLabel"); funcAnchor.add(functionLibLabel); functionBadge.setPull(Pull.RIGHT); //functionBadge.setMarginLeft(57); funcAnchor.add(functionBadge); funcAnchor.setDataParent("#navGroup"); functionLibrary.setDataToggle(Toggle.COLLAPSE); functionLibrary.setHref("#collapseFunction"); functionLibrary.add(functionCollapse); viewCQL.setIcon(IconType.BOOK); viewCQL.setText("View CQL"); viewCQL.setTitle("View CQL"); navPills.add(generalInformation); //snavPills.add(includeLibrary); navPills.add(parameterLibrary); navPills.add(definitionLibrary); navPills.add(functionLibrary); navPills.add(viewCQL); navPills.setWidth("200px"); messagePanel.add(successMessageAlert); messagePanel.add(warningMessageAlert); messagePanel.add(errorMessageAlert); messagePanel.add(warningConfirmationMessageAlert); messagePanel.add(globalWarningConfirmationMessageAlert); messagePanel.add(deleteConfirmationMessgeAlert); // rightHandNavPanel.add(messagePanel); rightHandNavPanel.add(navPills); }
[ "public VerticalPanel getRightHandNavPanel() {\n\t\treturn rightHandNavPanel;\n\t}", "@Override\n\tpublic JComponent getSideBar() {\n\t\tif (sideBar == null) {\n\t\t\tsideBar = new MacroBeanShellPanel(uiController);\n\t\t}\n\t\treturn sideBar;\n\t}", "public JMenuBar myBar() {\n // menu bar\n JMenuBar menuBar = new JMenuBar();\n JMenu gameMenu = new JMenu(\"Cluedo\");\n menuBar.add(gameMenu);\n\n JMenuItem restart = new JMenuItem(\"Restart\");\n restart.addActionListener(\n (ActionEvent e) -> restartGame());\n\n JMenuItem exit = new JMenuItem(\"Exit\");\n exit.addActionListener(\n (ActionEvent e) -> close_window());\n\n // gameMenu.add(restart);\n gameMenu.add(exit);\n return menuBar;\n }", "public NavigationBar CreateNavigationBar(Site siteIn)\n {\n NavigationBar nb = new NavigationBar();\n \n //Creates hashmap to contain html for links to each page on the site\n HashMap<String, String> links = new HashMap<>();\n //Populates the links hashmap with the page name as the Key and the html for the link as the Value\n for(Map.Entry<String, Templates> pagesEntry : siteIn.getPages().entrySet())\n {\n String pageName = pagesEntry.getKey();\n links.put(pageName, \"<li><a href=\\\"\" + pageName + \".html\\\">\" + pageName + \"</a></li>\");\n }\n \n //Passes the links hashmap into the navigation bar class and calls the function in the class to generate the navaigation bar\n nb.setLinks(links);\n nb.GenerateHtml();\n nb.GenerateCss();\n \n //Return the now completed navigation bar\n return nb;\n \n }", "private void createNavBar(){\n\t\tpanelNavBar.setOpaque(true);\n\t\tpanelNavBar.setBackground(new Color(77, 182, 172));\n\t\t\n\t\t/** Handles the nav bar buttons key presses */\n\t\tnavBar.btnCalendar.addActionListener(this);\n\t\tnavBar.btnCustomers.addActionListener(this);\n\t\tnavBar.btnPColorData.addActionListener(this);\n\t\tnavBar.btnPTests.addActionListener(this);\n\t\t\n\t\t/** Adds the widgets to the main panelNavBar JPanel */\n\t\tpanelNavBar.add(navBar.btnCalendar);\n\t\tpanelNavBar.add(navBar.btnCustomers);\n\t\tpanelNavBar.add(navBar.btnPColorData);\n\t\tpanelNavBar.add(navBar.btnPTests);\n\t}", "private void addWorkspaceMenu() {\n\t\twsMenu = new MenuButton(labelResources.getString(\"load\"),null);\n\t\tif(wsCount!=0) {\n\t\t\tfor(Integer i:wsMap.keySet()) {\n\t\t\t\twsMenu.getItems().add(createMenuItem(labelResources.getString(\"ws\") + \" \"+ i.toString(),e->loadWorkspace(wsMap.get(i))));\n\t\t\t}\n\t\t}\n\t\tmenuList.add(wsMenu);\n\n\t}", "private AnchorPane right() {\n right.setId(\"right\");\n right.setCursor(Cursor.E_RESIZE);\n right.setMinWidth(3D);\n AnchorPane.setTopAnchor(right, 22D);\n AnchorPane.setRightAnchor(right, 0D);\n AnchorPane.setBottomAnchor(right, 22D);\n bars(right);\n return right;\n }", "public void generateMenu(){\n\t\tmenuBar = new JMenuBar();\n\n\t\tJMenu file = new JMenu(\"File\");\n\t\tJMenu tools = new JMenu(\"Tools\");\n\t\tJMenu help = new JMenu(\"Help\");\n\n\t\tJMenuItem open = new JMenuItem(\"Open \");\n\t\tJMenuItem save = new JMenuItem(\"Save \");\n\t\tJMenuItem exit = new JMenuItem(\"Exit \");\n\t\tJMenuItem preferences = new JMenuItem(\"Preferences \");\n\t\tJMenuItem about = new JMenuItem(\"About \");\n\n\n\t\tfile.add(open);\n\t\tfile.add(save);\n\t\tfile.addSeparator();\n\t\tfile.add(exit);\n\t\ttools.add(preferences);\n\t\thelp.add(about);\n\n\t\tmenuBar.add(file);\n\t\tmenuBar.add(tools);\n\t\tmenuBar.add(help);\n\t}", "public JMenuBar createNslmMenuBar() {\n\tJMenuItem mi;\n\tJMenu fileMenu;\n\tJMenu helpMenu;\n\tJMenuBar myMenuBar = null;\n\n\t//System.out.println(\"Debug:NslmEditorFrame:createNslmMenuBar 1\");\n\tmyMenuBar = new JMenuBar();\n\t//myMenuBar.setBorder(new BevelBorder(BevelBorder.RAISED));\n\n\tfileMenu = new JMenu(\"File\");\n\t\n\tfileMenu.add(mi=new JMenuItem(\"New\"));\n\tmi.addActionListener(this);\n\tfileMenu.add(mi=new JMenuItem(\"Open\"));\n\tmi.addActionListener(this);\n\tfileMenu.add(mi=new JMenuItem(\"Save\"));\n\tmi.addActionListener(this);\n\tfileMenu.add(mi=new JMenuItem(\"Save as\"));\n\tmi.addActionListener(this);\n\tfileMenu.add(mi=new JMenuItem(\"Close\"));\n\tmi.addActionListener(this);\n\tfileMenu.addSeparator();\n\tfileMenu.add(mi=new JMenuItem(\"Export NSLM\"));\n\tmi.addActionListener(this);\n\tfileMenu.add(mi=new JMenuItem(\"View NSLM\"));\n\tmi.addActionListener(this);\n\tfileMenu.add(mi=new JMenuItem(\"Import NSLM\"));\n\tmi.addActionListener(this);\n\tfileMenu.addSeparator();\n\tfileMenu.add(mi=new JMenuItem(\"Print\"));\n\tmi.addActionListener(this);\n\tfileMenu.addSeparator();\n\tfileMenu.add(mi=new JMenuItem(\"Close NSLM Editor\"));\n\tmi.addActionListener(this);\n\n\tmyMenuBar.add(fileMenu);\n\n\n\thelpMenu = new JMenu(\"Help\");\n\thelpMenu.addActionListener(this);\n\thelpMenu.add(mi=new JMenuItem(\"Help\"));\n\tmi.addActionListener(this);\n\n\tmyMenuBar.add(helpMenu);\n\t//myMenuBar.setHelpMenu(helpMenu); 1.3 does not have yet\n\t//System.out.println(\"Debug:NslmEditorFrame:createNslmMenuBar 2\");\n\n\treturn(myMenuBar);\n }", "Navigation createNavigation();", "public void createMenuBar() {\r\n\t\taddMenuItems();\r\n\t\tshell.setMenuBar(myMenu);\r\n\t}", "public SideBar getSideBar() {\n\t\treturn this;\n\t}", "public NavMenu getNavMenu();", "public RightDetailPane() {\r\n initComponents();\r\n addPages();\r\n QWinFrame.getQWinFrame().setRightDetailPane(this);\r\n }", "private JMenuBar getGraphMenuBar(){\n if (this.menuBarGraph == null){\n this.menuBarGraph = new JMenuBar();\n this.menuBarGraph.setLayout( null);\n this.menuBarGraph.setName(\"menuBarGraph\");\n this.menuBarGraph.setSize(this.getWidth(), DataProcessToolPanel.MENU_BAR_HEIGHT);\n this.menuBarGraph.setPreferredSize(this.menuBarGraph.getSize());\n menuBarGraph.add(getMenuItemParam());\n if (visualization.getType().getCode() == DataConstants.VIS_GRAPH){\n menuBarGraph.add(getMenuItemMove());\n menuBarGraph.add(getMenuItemAutoScale());\n menuBarGraph.add(getMenuItemUnZoom());\n menuBarGraph.add(getSepV1());\n menuBarGraph.add(getMenuItemFunction());\n }\n }\n return this.menuBarGraph;\n }", "private JMenuBar createMenuBar()\n {\n final JMenuBar bar = new JMenuBar();\n final JMenu help = createHelpMenu(); \n final JMenu options = createOptionsMenu();\n \n bar.add(help);\n bar.add(options);\n \n return bar;\n }", "public static void setSideBarOnRight(boolean on) { cacheSideBarOnRight.setBoolean(on); }", "public void initNavigationBar() {\n navigationBar = new JPanel();\n navigationBar.setBackground(new Color(199, 0, 0));\n navigationBar.setLayout(new FlowLayout());\n navigationBar.setPreferredSize(new Dimension(buttonHeight + 10, buttonHeight + 10));\n navigationBar.setBorder(BorderFactory.createBevelBorder(0));\n\n initMarketButton();\n initProdCardButton();\n initReserveButton();\n initPlayerMenu();\n\n this.navigationBar.add(marketButton);\n this.navigationBar.add(prodCardButton);\n this.navigationBar.add(reserveButton);\n this.navigationBar.add(menuPanel);\n\n }", "private void addToWorkspaceMenu() {\n\t\tint i = wsCount;\n\t\twsMenu.getItems().add(createMenuItem(labelResources.getString(\"ws\") + \" \"+ wsCount,e->loadWorkspace(wsMap.get(i))));\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if this verification script is from a multi signature account.
public boolean isMultiSigScript() { if (script.length < 42) { return false; } try { BinaryReader reader = new BinaryReader(this.script); int n = reader.readPushInteger(); // Signing Threshold (n of m) if (n < 1 || n > NeoConstants.MAX_PUBLIC_KEYS_PER_MULTISIG_ACCOUNT) { return false; } int m = 0; // Number of participating keys while (reader.readByte() == OpCode.PUSHDATA1.getCode()) { // Position at PUSHDATA1 + (1 byte data size + 33 bytes + 1 byte to make sure script does not end // after the key. if (script.length <= reader.getPosition() + 35) { return false; } // Byte after PUSHDATA1 must have value 33 for 33 bytes of public key data. if (reader.readByte() != 33) { return false; } reader.readEncodedECPoint(); m++; // Mark the current position to be able to reset the last readBytes() which is not a PUSHDATA1 anymore. reader.mark(0); } if (n > m || m > MAX_PUBLIC_KEYS_PER_MULTISIG_ACCOUNT) { return false; } reader.reset(); // Reset the last performed readBytes() from the while loop. int alsoM = reader.readPushInteger(); if (m != alsoM) { return false; } if (reader.readByte() != OpCode.SYSCALL.getCode()) { return false; } byte[] interopServiceCode = new byte[4]; reader.read(interopServiceCode, 0, 4); if (!toHexStringNoPrefix(interopServiceCode).equals(InteropService.SYSTEM_CRYPTO_CHECKMULTISIG.getHash())) { return false; } } catch (DeserializationException | IOException e) { return false; } return true; }
[ "public boolean canAddThreePid() {\n return (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY))\n || (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN));\n }", "public boolean isSingleSigScript() {\n if (script.length != 40) {\n return false;\n }\n String interopService = toHexStringNoPrefix(ArrayUtils.getLastNBytes(script, 4));\n return script[0] == OpCode.PUSHDATA1.getCode() &&\n script[1] == 33 && // 33 bytes of public key\n script[35] == OpCode.SYSCALL.getCode() &&\n interopService.equals(InteropService.SYSTEM_CRYPTO_CHECKSIG.getHash());\n }", "private boolean isMultiSIM(final Context ctx, final AuxiliaryService auxService)\r\n {\r\n return auxService != null \r\n && auxService.getType() == AuxiliaryServiceTypeEnum.MultiSIM\r\n && LicensingSupportHelper.get(ctx).isLicensed(ctx, CoreCrmLicenseConstants.MULTI_SIM_LICENSE);\r\n }", "public boolean hasSupportsMultiPayToken() {\n return genClient.cacheHasKey(CacheKey.supportsMultiPayToken);\n }", "boolean isSingleSignOnSupported();", "@Override\n public boolean verifySignature(byte[] signature) {\n try {\n Element[] sig = derDecode(signature);\n CL04SignPublicPairingKeySerParameter pk = (CL04SignPublicPairingKeySerParameter) pairingKeySerParameter;\n Pairing pairing = PairingFactory.getPairing(pairingKeySerParameter.getParameters());\n Element a = sig[0];\n Element b = sig[1];\n Element c = sig[2];\n List<Element> A = IntStream.range(3, 3 + messages.size()).mapToObj(i -> sig[i]).collect(Collectors.toList());\n List<Element> B = IntStream.range(3 + messages.size(), 3 + 2 * messages.size()).mapToObj(i -> sig[i]).collect(Collectors.toList());\n return aFormedCorrectly(pairing, a, A, pk) && bFormedCorrectly(pairing, a, b, A, B, pk) && cFormedCorrectly(pairing, a, b, c, B, pk);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return false;\n\n }", "private boolean checkSignatures(Transaction tx) {\n boolean isValid = false;\n int i = 0;\n for (Transaction.Input txInput : tx.getInputs()) {\n if (txInput.outputIndex >= 0 && txInput.prevTxHash.length > 0) {\n UTXO utxo = new UTXO(txInput.prevTxHash, txInput.outputIndex);\n if (utxoPool.contains(utxo)) {\n if (utxoPool.getTxOutput(utxo) != null) {\n Transaction.Output tOutput = utxoPool.getTxOutput(utxo);\n if (tOutput.address != null) {\n PublicKey publicKey = tOutput.address;\n if (tx.getRawDataToSign(i) != null) {\n byte[] message = tx.getRawDataToSign(i);\n byte[] signature = txInput.signature;\n if (publicKey != null && message != null && signature != null && message.length > 0\n && signature.length > 0) {\n isValid = Crypto.verifySignature(publicKey, message, signature);\n if (!isValid) {\n return false;\n }\n } else {\n return false;\n }\n } else {\n return false;\n }\n } else {\n return false;\n }\n } else {\n return false;\n }\n } else {\n return false;\n }\n i++;\n } else {\n return false;\n }\n }\n return true;\n }", "public static boolean bls_verify_multiple(\n List<BLSPublicKey> pubkeys,\n List<Bytes32> messageHashes,\n BLSSignature aggregateSignature,\n Bytes domain) {\n try {\n List<Bytes> messageHashesAsBytes =\n messageHashes.stream().map(x -> Bytes.wrap(x)).collect(Collectors.toList());\n return aggregateSignature.checkSignature(pubkeys, messageHashesAsBytes, domain);\n } catch (RuntimeException e) {\n return false;\n }\n }", "public static boolean isMultiTenant(Class clazz) {\n Class<?>[] allInterfacesForClass = org.springframework.util.ClassUtils.getAllInterfacesForClass(clazz);\n for (Class anInterface : allInterfacesForClass) {\n if(anInterface.getSimpleName().equals(\"MultiTenant\")) {\n return true;\n }\n }\n return false;\n }", "protected boolean isMom2(final Context ctx, final Subscriber subscriber, final AuxiliaryServiceSelection selection)\r\n {\r\n Account account = null;\r\n Account rootAccount = null;\r\n try\r\n {\r\n if (subscriber.getBAN().length() != 0)\r\n {\r\n account = AccountSupport.getAccount(ctx, subscriber.getBAN());\r\n rootAccount = account.getRootAccount(ctx);\r\n }\r\n else\r\n {\r\n account = (Account) ctx.get(Account.class);\r\n rootAccount = account.getRootAccount(ctx);\r\n }\r\n // 2006-02-24: Changed to isMom (includes VPN and ICM), since both\r\n // VPN and ICM share the same functionality\r\n\r\n if (account.isMom(ctx) || rootAccount.isMom(ctx))\r\n {\r\n Subscriber vpnSubscriber = null;\r\n final String vpnMsisdn = account.getVpnMSISDN();\r\n\r\n if (vpnMsisdn != null && vpnMsisdn.trim().length() > 0)\r\n {\r\n vpnSubscriber = SubscriberSupport.lookupSubscriberForMSISDN(ctx, vpnMsisdn);\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n if (subscriber.getMSISDN().equals(vpnMsisdn))\r\n {\r\n return true;\r\n }\r\n if (subscriber.getMSISDN().equals(rootAccount.getVpnMSISDN()))\r\n {\r\n return true;\r\n }\r\n\r\n SubscriberAuxiliaryService subAux = null;\r\n if (vpnSubscriber != null)\r\n {\r\n subAux = SubscriberAuxiliaryServiceSupport.getSubscriberAuxiliaryServicesBySubIdAndSvcId(ctx,\r\n vpnSubscriber.getId(), selection.getSelectionIdentifier());\r\n }\r\n\r\n if (subAux != null)\r\n {\r\n return true;\r\n }\r\n }\r\n }\r\n catch (final Exception e)\r\n {\r\n return false;\r\n }\r\n return false;\r\n }", "public boolean isValidAccountSelected() {\r\n AccountInfo info = AwsToolkitCore.getDefault().getAccountManager().getAccountInfo(getSelectedAccountId());\r\n return (info != null && info.isValid());\r\n }", "boolean hasUnionidAccountid();", "boolean hasAuthAccountFlags();", "boolean hasRemoteauth();", "boolean hasMultisig();", "public boolean verifiySignature() {\n\t\tString data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value);\n\t\treturn StringUtil.verifyECDSASig(sender, data, signature);\n\t}", "private boolean isMultipleImages() {\r\n final Enumeration<String> names = userInterface.getRegisteredImageNames();\r\n boolean createDialog = false;\r\n\r\n // Add images from user interface that have the same exact dimensionality\r\n while (names.hasMoreElements()) {\r\n final String name = names.nextElement();\r\n\r\n if ( !imageA.getImageName().equals(name)) {\r\n createDialog = true;\r\n\r\n if ( (imageB != null) && imageB.getImageName().equals(name)) {\r\n createDialog = false;\r\n }\r\n }\r\n }\r\n\r\n return createDialog;\r\n }", "private boolean checkJarsigner(){\n\t\tCommando commando = new Commando();\n\t\tString cmd = \"jarsigner -h\";\n\t\tint result = commando.executeProcessListPrintOP(cmd, false);\n\t\tif (result == 0)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "private boolean checkIfTransactionIsPossible(Account sender, Account receiver){\n if ((sender.getType() == Account.TypeEnum.SAVING) || (receiver.getType() == Account.TypeEnum.SAVING) ){\n // one cannot directly transfer from a savings account to an account that is not of the same customer\n if (sender.getOwnerId() == receiver.getOwnerId()) {\n if (!sender.getIBAN().equals(receiver.getIBAN())) {\n return true;\n } else {\n throw new IllegalArgumentException(\"Accounts sender and receiver cannot be the same account\");\n }\n } else {\n throw new IllegalArgumentException(\"Saving Accounts sender or receiver cannot belong to different customers\");\n }\n }\n //if senderAccount is Checking, can send money to other checking account or his own saving account\n else if(sender.getType() == Account.TypeEnum.CHECKING){\n if (!sender.getIBAN().equals(receiver.getIBAN())) {\n return true;\n } else {\n throw new IllegalArgumentException(\"Accounts sender and receiver cannot be the same account\");\n }\n }\n return false;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the squareFootage value for this Account.
public void setSquareFootage(java.lang.String squareFootage) { this.squareFootage = squareFootage; }
[ "public void setSquare(Square square) {\n this.square = square;\n }", "public void setSquareFeet(double squareFeet) {\n\t\tthis.squareFeet = squareFeet;\n\t}", "protected void setSquareType(SquareType squareType){\n this.squareType = squareType;\n }", "public java.lang.String getSquareFootage() {\n return squareFootage;\n }", "public void setOverallSquare(String overallSquare) {\n this.overallSquare = overallSquare;\n }", "public void setSquareType(SquareType squareType) {\n\t\tthis.squareType = squareType;\n\t}", "public void setCostPerSquareFoot(double cost) {\n\t\tthis.costPerSquareFoot = cost;\n\t}", "public int getSquareNumber() {\n\t\treturn squareNumber;\n\t}", "public void setBTHighScore50(int s)\n\t{\n\t\tbattletowerHighscoreLvl50 = s;\n\t}", "public void setSquare(int position, Square newSquare) {\n\t\t// Do not change the type of the first or last square!\n\t\tassert !this.getSquare(position).isLastSquare()\n\t\t\t\t&& !this.getSquare(position).isFirstSquare();\n\t\tthis.initSquare(position, newSquare);\n\t\tassert invariant();\n\t}", "public void setmSabotage(int mSabotage) {\n\t\tthis.mSabotage = mSabotage;\n\t}", "public void setSquare(Square cell) {\n\t\tcells[cell.getRow()][cell.getColumn()] = cell; \n\t}", "public void setSquares(Square[][] squares)\r\n {\r\n theSquares = squares;\r\n }", "public void setSquare(int row, int col, int value) {\n Pair<Integer, Integer> pos = new Pair<Integer, Integer>(row, col);\n Square s = getSquare(pos);\n s.update(value);\n }", "public void setSquare(int x, int y, int state);", "public void setSquareId(long squareId) {\n\t\tthis.squareId = squareId;\n\t}", "public void setHourlyRate (double hourlyRate) {\r\n // if hourlyRate is negative, hourlyRate is 0\r\n if (hourlyRate < 0) {\r\n this.hourlyRate = 0;\r\n }\r\n else {\r\n this.hourlyRate = hourlyRate;\r\n }\r\n // calls calculateSalary to update the salary once hourlyRate is changed\r\n calculateSalary();\r\n }", "public void setSquare(String value, int x, int y)\n {\n try\n {\n byte number = Byte.parseByte(value);\n mBoard.setCell(x, y, number);\n }\n catch (Exception ex)\n {\n Logger.debug(ex);\n }\n }", "public void setTotalSquareFeet(double totalSquareFeet) {\n\t\tthis.totalSquareFeet = totalSquareFeet;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get all the relations from the specific word outputs two lists, first gives relation words, second relation names
public Map<Integer, String> GetRelations(int wordIndx) { Map<Integer, String> wordRelMap = new HashMap<Integer, String>(); List<SemanticGraphEdge> it = m_dependencyTree.edgeListSorted(); String relWord = ""; for(int i = 0;i < it.size(); i++) { SemanticGraphEdge edge = it.get(i); if(edge.getDependent().originalText().equalsIgnoreCase(m_questWords.get(wordIndx))) { relWord = edge.getGovernor().originalText(); String relation = edge.getRelation().getShortName(); Integer indx = GetWordIndex(relWord); wordRelMap.put(indx, relation); break; } if(edge.getGovernor().originalText().equalsIgnoreCase(m_questWords.get(wordIndx))) { relWord = edge.getGovernor().originalText(); String relation = edge.getRelation().getShortName(); Integer indx = GetWordIndex(relWord); wordRelMap.put(indx, relation); break; } } return wordRelMap; }
[ "public String[] listRelations();", "public ArrayList<Relation> extractRelations(LexicalizedParser lp) {\n \t\tBreakIterator iterator = BreakIterator.getSentenceInstance(Locale.US);\n \t\titerator.setText(body);\n \t\tint start = iterator.first();\n \t\tfor (int end = iterator.next();\n \t\t\t\tend != BreakIterator.DONE;\n \t\t\t\tstart = end, end = iterator.next()) {\n \t\t\t/* list of NP in the sentence */\n \t\t\tArrayList<Tree> NPList;\n \t\t\t/* two NP will be used to extract relations */\n \t\t\tTree e1, e2;\n \t\t\tint e1Index, e2Index;\n \t\t\t\n \t\t\t// parse sentence\n\t\t\tString sentence = \"Jaguar, the luxury auto maker sold 1,214 cars in the U.S.A. when Tom sat on the chair\";\n//\t\t\tString sentence = body.substring(start,end);\n \t\t\tString nerSentence = Processor.ner.runNER(sentence);\n \t\t\tString taggedSentence = Processor.tagger.tagSentence(sentence);\n \t\t\tTree parse = lp.apply(sentence);\n \t\t\t\n \t\t\t// generateNPList\n \t\t\tNPList = generateNPList(parse);\n \n \t\t\t// walk through NP list, select all e1 & e2 paris and construct relations\n \t\t\tif (NPList.size() < 2) \n \t\t\t\tcontinue;\n \t\t\tfor (e1Index = 0; e1Index < NPList.size() - 1; ++e1Index) {\n \t\t\t\tfor (e2Index = e1Index + 1; e2Index < NPList.size(); ++e2Index) {\n \t\t\t\t\tTree NP1 = NPList.get(e1Index);\n \t\t\t\t\tTree NP2 = NPList.get(e2Index);\n \t\t\t\t\t// we only compare NPs that have same depth\n \t\t\t\t\tif (NP1.depth() != NP2.depth()) \n \t\t\t\t\t\tcontinue;\n \t\t\t\t\trelations.add(new Relation(url, NP1, NP2, sentence, taggedSentence, nerSentence, \n \t\t\t\t\t\t\tparse, (e2Index - e1Index), true));\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn relations;\n \t}", "public List<String> getRelatedWords(String word) throws IOException {\n List<String> result = new ArrayList<String>();\n IDictionary dict = new Dictionary(new File(WORDNET_LOCATION));\n try {\n dict.open();\n IStemmer stemmer = new WordnetStemmer(dict);\n for (POS pos : EnumSet.of(POS.ADJECTIVE, POS.ADVERB, POS.NOUN, POS.VERB)) {\n List<String> resultForPos = new ArrayList<String>();\n List<String> stems = new ArrayList<String>();\n stems.add(word);\n for (String stem : stemmer.findStems(word, pos)) {\n if (!stems.contains(stem))\n stems.add(stem);\n }\n for (String stem : stems) {\n if (!resultForPos.contains(stem)) {\n resultForPos.add(stem);\n IIndexWord idxWord = dict.getIndexWord(stem, pos);\n if (idxWord == null) continue;\n List<IWordID> wordIDs = idxWord.getWordIDs();\n if (wordIDs == null) continue;\n IWordID wordID = wordIDs.get(0);\n IWord iword = dict.getWord(wordID);\n \n ISynset synonyms = iword.getSynset();\n List<IWord> iRelatedWords = synonyms.getWords();\n if (iRelatedWords != null) {\n for (IWord iRelatedWord : iRelatedWords) {\n String relatedWord = iRelatedWord.getLemma();\n if (!resultForPos.contains(relatedWord))\n resultForPos.add(relatedWord);\n }\n }\n \n List<ISynsetID> hypernymIDs = synonyms.getRelatedSynsets();\n if (hypernymIDs != null) {\n for (ISynsetID relatedSynsetID : hypernymIDs) {\n ISynset relatedSynset = dict.getSynset(relatedSynsetID);\n if (relatedSynset != null) {\n iRelatedWords = relatedSynset.getWords();\n if (iRelatedWords != null) {\n for (IWord iRelatedWord : iRelatedWords) {\n String relatedWord = iRelatedWord.getLemma();\n if (!resultForPos.contains(relatedWord))\n resultForPos.add(relatedWord);\n }\n }\n }\n }\n }\n }\n }\n for (String relatedWord : resultForPos) {\n if (relatedWord.length() > 3\n && !relatedWord.contains(\"-\")\n && !result.contains(relatedWord)) {\n // TODO: Hack alert!\n // The - check is to prevent lucene from interpreting hyphenated words as negative search terms\n // Fix!\n result.add(relatedWord);\n }\n }\n }\n } finally {\n dict.close();\n }\n return result;\n }", "private static Set<LinkedList<ISynset>> findRelationalTrees(String word, Function<ISynset, Set<ISynset>> relationFunction) {\n List<IWordID> wordIDs = dictionary.getIndexWord(word, POS.NOUN).getWordIDs();\n //Conisdering only the first synset.\n wordIDs = Collections.singletonList(wordIDs.iterator().next());\n return wordIDs.stream()\n .map(wordID -> dictionary.getWord(wordID).getSynset())\n .flatMap(synset -> findRelationalTrees(synset, relationFunction).stream())\n .collect(Collectors.toSet());\n }", "public ArrayList<Relation> extractRelations(LexicalizedParser lp) {\n\t\tBreakIterator iterator = BreakIterator.getSentenceInstance(Locale.US);\n\t\titerator.setText(body);\n\t\tint start = iterator.first();\n\t\tint sentenceCounter = 0;\n\t\tfor (int end = iterator.next();\n\t\t\t\tend != BreakIterator.DONE;\n\t\t\t\tstart = end, end = iterator.next()) {\n\t\t\tsentenceCounter++;\n\t\t\t/* list of NP in the sentence */\n\t\t\tArrayList<Tree> NPList;\n\t\t\t/* two NP will be used to extract relations */\n\t\t\tTree e1, e2;\n\t\t\tint e1Index, e2Index;\n\t\t\t\n\t\t\t// parse sentence\n\t\t\tString sentence = body.substring(start,end);\n\t\t\tString nerSentence = Processor.ner.runNER(sentence);\n\t\t\tString taggedSentence = Processor.tagger.tagSentence(sentence);\n\t\t\tTree parse = lp.apply(sentence);\n\t\t\t\n\t\t\t// generateNPList\n\t\t\tNPList = generateNPList(parse);\n\n\t\t\t// walk through NP list, select all e1 & e2 paris and construct relations\n\t\t\tif (NPList.size() < 2) \n\t\t\t\tcontinue;\n\t\t\tfor (e1Index = 0; e1Index < NPList.size() - 1; ++e1Index) {\n\t\t\t\tfor (e2Index = e1Index + 1; e2Index < NPList.size(); ++e2Index) {\n\t\t\t\t\tTree NP1 = NPList.get(e1Index);\n\t\t\t\t\tTree NP2 = NPList.get(e2Index);\n\t\t\t\t\t/* If enable export flag is set, then processor is in mode of\n\t\t\t\t\t * reading in predicated labeling file and export records into DB\n\t\t\t\t\t * Otherwise, processor is in mode of labeling itself using set of\n\t\t\t\t\t * rules and output the result to file for training.\n\t\t\t\t\t */\n\t\t\t\t\tboolean mode = !Processor.enableExport;\n\t\t\t\t\trelations.add(new Relation(url, NP1, NP2, sentence, taggedSentence, nerSentence, \n\t\t\t\t\t\t\tparse, (e2Index - e1Index), mode));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"There're \" + sentenceCounter + \" number of sentences in article \" + url);\n\t\treturn relations;\n\t}", "public static ArrayList<Person> mapRelations(Person target,String relation){\n ArrayList<Person> result = new ArrayList<Person>();\n switch(relation){\n case Relationship.MOTHER:\n Person mum = target.getMother();\n result.add(mum);\n break;\n\n case Relationship.FATHER:\n Person father = target.getFather();\n result.add(father);\n break;\n\n case Relationship.SON: \n result = target.getSon(); \n break;\n\n case Relationship.DAUGHTER:\n result = target.getDaughter();\n break; \n \n case Relationship.CHILDREN:\n result = target.getChildren();\n break;\n \n case Relationship.COUSINS:\n result = NoneDirectRelationHandler.getCousin(target);\n break;\n\n case Relationship.BROTHER:\n result = NoneDirectRelationHandler.getBrother(target);\n break;\n \n case Relationship.SISTER:\n result = NoneDirectRelationHandler.getSister(target);\n break;\n\n case Relationship.PATERNAL_UNCLE:\n result = NoneDirectRelationHandler.getPaternalUncle(target);\n break;\n\n case Relationship.PATERNAL_AUNT:\n result = NoneDirectRelationHandler.getPaternalAunt(target);\n break;\n\n case Relationship.MATERNAL_UNCLE:\n result = NoneDirectRelationHandler.getMaternalUncle(target);\n break;\n\n case Relationship.MATERNAL_AUNT:\n result = NoneDirectRelationHandler.getMaternalAunt(target);\n break;\n \n case Relationship.SISTER_IN_LAW:\n result = NoneDirectRelationHandler.getSisterInLaw(target);\n break;\n\n case Relationship.BROTHER_IN_LAW:\n result = NoneDirectRelationHandler.getBrotherInLaw(target);\n break;\n\n case Relationship.GRAND_DAUGHTER:\n result = NoneDirectRelationHandler.getGrandDaughter(target);\n break;\n\n case Relationship.GRAND_SON:\n result = NoneDirectRelationHandler.getGrandSon(target);\n break;\n\n default:\n //TBD: throw error: no relations match \n break;\n\n }\n return result;\n }", "public abstract Vector<String> getRelated(String id, String relation);", "private String relationGenerator(ArrayList<Verb> candidateRelation){\n String relation = candidateRelation.get(0).token;\n if(candidateRelation.size()>=3){\n if(isBe(candidateRelation.get(0).token) && isAdv(candidateRelation.get(1).type)\n && isVerb(candidateRelation.get(2).type)){\n relation += \" \" + candidateRelation.get(1).token + \" \" + candidateRelation.get(2).token;\n }else if(isBe(candidateRelation.get(0).token) && isPast(candidateRelation.get(1).type)){\n relation += \" \" + candidateRelation.get(1).token;\n }else if(isHave(candidateRelation.get(0).token) && isPast(candidateRelation.get(1).type)){\n relation += \" \" + candidateRelation.get(1).token;\n }\n }\n return relation;\n }", "private List<Relation> parse_relations()\n {\n return UmlUtil.pickup_relation(elements)\n .stream()\n .map(e -> (RelationElement) e)\n .map(this::parse_relation)\n .collect(Collectors.toList());\n }", "amdocs.iam.pd.webservices.productrelations.productlistinput.Relations getRelations();", "String queryBridgeWords(String word1, String word2) {\n if (!(graph.containsKey(word1) && graph.containsKey(word2))) {\n return \"\"; \n }\n String ret = \"\";\n PointInf value;\n PointInf bridge;\n value = graph.get(word1);\n for (final String ele : value.adj) {\n bridge = graph.get(ele);\n for (final String des : bridge.adj) {\n if (des.equalsIgnoreCase(word2)) {\n ret = ret.equals(\"\") ? ele : ret + \" \" + ele;\n }\n }\n }\n if (ret.equals(\"\")) {\n return \" \";\n }\n return ret;\n }", "public ArrayList<String> findRelations(String node1, String node2){\n //find all the relationships in the direction of node 1 to node 2\n ArrayList<String> relations = new ArrayList<String>();\n for(HashMap<String, String> r : this.relations){\n if(r.get(\"~node1~\").equals(node1) && r.get(\"~node2~\").equals(node2)){\n relations.add(r.get(\"~relation~\"));\n }\n }\n return relations;\n }", "public static Set<String> getRelatedText(String text, String lemmatizedText, DerivBaseResource derivBaseResource, \r\n\t\t\tGermaNetWrapper germaNetWrapper, List<GermaNetRelation> germaNetRelations, GermanWordSplitter splitter, boolean mapNegation) \r\n\t\t\t\t\tthrows LexicalResourceException{\r\n\t\t\r\n\t\tSet<String> permutations = new HashSet<String>();\r\n\t\tList<String> textTokens = Arrays.asList(text.split(\"\\\\s+\")); //add original text tokens \r\n\t\tList<String> textLemmas = Arrays.asList(lemmatizedText.split(\"\\\\s+\"));\r\n\t\t\r\n\t\tif(textTokens.size() >=1 || textTokens.size() <=2){\r\n\t\t\t//case single token fragments\r\n\t\t\tif(textTokens.size() == 1 && textLemmas.size() == 1) {\r\n\t\t\t\tString tokenText = textTokens.get(0);\r\n\t\t\t\tString [] lemmas = getLemmas(textLemmas.get(0));\r\n\t\t\t\tfor(String lemma : lemmas){\r\n\t\t\t\t\tpermutations.addAll(getRelatedLemmas(lemma, derivBaseResource, germaNetWrapper, germaNetRelations, splitter, mapNegation));\r\n\t\t\t\t}\r\n\t\t\t\tpermutations.add(tokenText);\r\n\t\t\t\tpermutations.add(tokenText.toLowerCase());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//case two token fragments\r\n\t\t\telse if(textTokens.size() == 2 && textLemmas.size() == 2) {\r\n\t\t\t\t//TODO: deal with missing decomposition lemma\r\n\t\t\t\tSet<String> extendedToken_1 = new HashSet<String>();\r\n\t\t\t\tSet<String> extendedToken_2 = new HashSet<String>();\r\n\t\t\t\t\r\n\t\t\t\tfor (int i=0; i < textLemmas.size(); i++){\r\n\t\t\t\t\t//extend first and second token of dependency relation by related lemmas\r\n\t\t\t\t\tString [] lemmas = getLemmas(textLemmas.get(i));\r\n\t\t\t\t\tfor(String lemma : lemmas){\r\n\t\t\t\t\t\tif(i==0){\r\n\t\t\t\t\t\t\textendedToken_1.addAll(getRelatedLemmas(lemma, derivBaseResource, germaNetWrapper, germaNetRelations, splitter, mapNegation));\r\n\t\t\t\t\t\t\textendedToken_1.add(textTokens.get(0).toLowerCase());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(i==1){\r\n\t\t\t\t\t\t\textendedToken_2.addAll(getRelatedLemmas(lemma, derivBaseResource, germaNetWrapper, germaNetRelations, splitter, mapNegation));\r\n\t\t\t\t\t\t\textendedToken_2.add(textTokens.get(1).toLowerCase());\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\t\r\n\t\t\t\tpermutations = getPermutations(extendedToken_1, extendedToken_2, true);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tlogger.error(\"Can't get related text if the number of tokens in the input text differ from the number of tokens in the lemmatized form of the input\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlogger.error(\"Can't get related text for an input text having no or more than two tokens\");\r\n\t\t}\r\n\t\t\r\n\t\treturn permutations;\r\n\t}", "private List<TermModel> getMatchingTermModels(GdlTerm term,\r\n\t\t\tGdlRelation relation) {\r\n\t\tList<TermModel> matches = new ArrayList<TermModel>();\r\n\t\t//Walk through the form and relation together\r\n\t\tString sentenceName = relation.getName().getValue();\r\n\t\tList<TermModel> bodyModel = sentences.get(sentenceName);\r\n\t\tList<GdlTerm> body = relation.getBody();\r\n\t\tgetMatchingTermModels(body, bodyModel, term, matches);\r\n\t\treturn matches;\r\n\t}", "public WordRelation getRelation(LexicalChain l, String noun, boolean checkMed) {\n WordRelation ret = new WordRelation();\n ret.relation = WordRelation.NO_RELATION;\n for (Word w : l.word) {\n //Exact match is a string relation.\n if(w.getLexicon().equalsIgnoreCase(noun)) {\n ret.relation = WordRelation.STRONG_RELATION;\n ret.src = w;\n ret.dest = w;\n break;\n }\n // else it is a Wordnet word and is it a synonym or hyponym of LCs (medium relation)\n else if(w.getID()!=null && checkMed){\n Word wrel = isMediumRel(noun, w) ;\n if(wrel!=null) {\n ret.relation = WordRelation.MED_RELATION;\n ret.src = w;\n ret.dest = wrel;\n break;\n }\n }\n }\n return ret;\n }", "String findRelation(String person1, String person2);", "public static String extractTokens(KSuccessorRelation<NetSystem, Node> rel) {\n\t\t\n\t\tString tokens = \"\";\n\t\tfor (Node[] pair : rel.getSuccessorPairs()) {\n\t\t\t\n\t\t\tString l1 = pair[0].getLabel();\n\t\t\tString l2 = pair[1].getLabel();\n\t\t\t\n\t\t\tif (NodeAlignment.isValidLabel(l1) && NodeAlignment.isValidLabel(l2)) {\n\t\t\t\ttokens += join(processLabel(l1),WORD_SEPARATOR) + \n\t\t\t\t\t\t RELATION_SYMBOL + \n\t\t\t\t\t\t join(processLabel(l2),WORD_SEPARATOR) + \n\t\t\t\t\t\t WHITESPACE;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// no relations have been found (because the query contained only single activities)\n\t\t//if (tokens.isEmpty()) {\n\t\t\tfor (Node n : rel.getEntities()) {\n\t\t\t\tString l = n.getLabel();\n\t\t\t\tif (NodeAlignment.isValidLabel(l)) {\n\t\t\t\t\ttokens += join(processLabel(l), WORD_SEPARATOR) + WHITESPACE;\n\t\t\t\t}\n\t\t\t}\n\t\t//}\n\t\t\n\t\treturn tokens;\n\t}", "public Set<String> hyponyms(String word) {\n Set<Integer> synIDs = new TreeSet<Integer>();\n Set<Integer> synKeys = synsetMap.keySet();\n for (Integer id : synKeys) {\n if (synsetMap.get(id).contains(word)) {\n synIDs.add(id);\n }\n }\n Set<Integer> hypIDs = GraphHelper.descendants(g, synIDs);\n Set<String> result = new TreeSet<String>();\n\n for (Integer i : hypIDs) {\n ArrayList<String> al = synsetMap.get(i);\n result.addAll(al);\n }\n return result;\n }", "public List<Word> getRelatedWordsOtherLanguage() {\n if (this._relatedOppositeLanguage == null) {\n this._relatedOppositeLanguage = MainActivity.db.getRelatedWordsByIdAndLanguage(this._id, this.getOppositeLanguage());\n }\n return this._relatedOppositeLanguage;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unsets the "Longitude" element
void unsetLongitude();
[ "void unsetLatitude();", "void removeHasLongitude(Object oldHasLongitude);", "public void unsetLocation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(LOCATION$18, 0);\n }\n }", "public void unsetLocation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(LOCATION$16);\n }\n }", "void setNilGeoCoordinate();", "public void setLongitude(double aLongitude) {\r\n longitude = aLongitude;\r\n }", "@Test\n public void testSetLongitude() {\n \n assertEquals(0.0f, o2.getLatitude(), 0.0);\n o2.setLongitude(0.2f);\n assertEquals(0.2f, o2.getLongitude(), 0.0);\n }", "void setLongitude(double longitude);", "public void setLongitude(double value) {\n longitude = value;\n }", "void xsetLongitude(org.apache.xmlbeans.XmlDouble longitude);", "public void setLongitude(double longitude)\n {\n this.longitude = longitude;\n }", "void unsetLocation();", "@Override\n\tpublic void setLongitude(double Longitude) {\n\t\t_locMstLocation.setLongitude(Longitude);\n\t}", "private void setLongitude(double longitude) {\r\n\t\tthis.longitude = longitude;\r\n\t}", "public void resetLocation()\r\n {\r\n locations.clear();\r\n }", "public void unsetLocationValue() throws JNCException {\n delete(\"location\");\n }", "public com.babbler.ws.io.avro.model.BabbleValue.Builder clearLocation() {\n location = null;\n fieldSetFlags()[3] = false;\n return this;\n }", "void unsetAltitude();", "public void unsetCoordGeomRefs()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(COORDGEOMREFS$34);\r\n }\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new LogEventoPresupuestoDao with an attached configuration
@Autowired public LogEventoPresupuestoDao(Configuration configuration) { super(LogEventoPresupuesto.LOG_EVENTO_PRESUPUESTO, matera.jooq.tables.pojos.LogEventoPresupuesto.class, configuration); }
[ "public LogEventoPresupuestoDao() {\n\t\tsuper(LogEventoPresupuesto.LOG_EVENTO_PRESUPUESTO, matera.jooq.tables.pojos.LogEventoPresupuesto.class);\n\t}", "@Autowired\n\tpublic PresupuestoDao(Configuration configuration) {\n\t\tsuper(Presupuesto.PRESUPUESTO, matera.jooq.tables.pojos.Presupuesto.class, configuration);\n\t}", "public HibernateServiceProcessLogDao() {\n\t\tsuper();\n\t}", "public ETLLogDAOImpl() {\r\n this(new Configuration());\r\n }", "public EventDao(org.jooq.Configuration configuration) {\n\t\tsuper(de.piratenpartei.berlin.ldadmin.dbaccess.generated.tables.Event.EVENT, de.piratenpartei.berlin.ldadmin.dbaccess.generated.tables.pojos.Event.class, configuration);\n\t}", "public ClanEventPersistentConfigDao(Configuration configuration) {\n\t\tsuper(ClanEventPersistentConfig.CLAN_EVENT_PERSISTENT_CONFIG, ClanEventPersistentConfigPojo.class, configuration);\n\t}", "public LogEmailSendrecordDao(Configuration configuration) {\n super(LogEmailSendrecord.LOG_EMAIL_SENDRECORD, com.moseeker.baseorm.db.logdb.tables.pojos.LogEmailSendrecord.class, configuration);\n }", "@Autowired\n public PostDao(Configuration configuration) {\n super(Post.POST, com.jic.tnw.db.mysql.tables.pojos.Post.class, configuration);\n }", "public PersistentLogEventListener() {\n\t\tthis(new EventDAO());\n\t}", "public ClanEventPersistentConfigDao() {\n\t\tsuper(ClanEventPersistentConfig.CLAN_EVENT_PERSISTENT_CONFIG, ClanEventPersistentConfigPojo.class);\n\t}", "public ConnectorSyncPageLogDao(Configuration configuration) {\n\t\tsuper(ConnectorSyncPageLog.CONNECTOR_SYNC_PAGE_LOG, org.nazymko.th.parser.autodao.tables.pojos.ConnectorSyncPageLog.class, configuration);\n\t}", "public HibernateServiceProcessLogDao(SessionFactory factory) {\n\t\tsuper(factory);\n\t}", "public UserPrivateChatPostDao(Configuration configuration) {\n\t\tsuper(UserPrivateChatPost.USER_PRIVATE_CHAT_POST, UserPrivateChatPostPojo.class, configuration);\n\t}", "@Autowired\n public TaskDefNotificationDao(Configuration configuration) {\n super(TaskDefNotification.TASK_DEF_NOTIFICATION, cn.com.ho.workflow.infrastructure.db.tables.pojos.TaskDefNotification.class, configuration);\n }", "@Autowired\n\tpublic ProductoDao(Configuration configuration) {\n\t\tsuper(Producto.PRODUCTO, matera.jooq.tables.pojos.Producto.class, configuration);\n\t}", "@Autowired\n public ActHiAttachmentDao(Configuration configuration) {\n super(ActHiAttachment.ACT_HI_ATTACHMENT, cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment.class, configuration);\n }", "public PostDao() {\n\t}", "public AlarmMessageDao(Configuration configuration) {\n super(AlarmMessage.ALARM_MESSAGE, jooq.data.tables.pojos.AlarmMessage.class, configuration);\n }", "public AuditDAOHibernate() {\r\n super();\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the size, in bytes, of the field 'addr'
public static int size_addr() { return (16 / 8); }
[ "public String getAddressSize() {\n\t\treturn id[2];\n\t}", "public static int getAddressSize() {\n\t\treturn Unsafe.get().addressSize();\n\t}", "public static BigInteger addressSize() {\n\t\tMessageDigest md = null;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// get the digest length\n\t\tint lengde = md.getDigestLength();\n\t\t\n\t\t// compute the number of bits = digest length * 8\n\t\tint bits = lengde * 8;\n\t\t\n\t\t// compute the address size = 2 ^ number of bits\n\t\tBigInteger adrStr = BigInteger.valueOf(2).pow(bits);\n\n\t\t// return the address size\n\t\t\n\t\treturn adrStr;\n\t}", "public int getAddressSize() {\n return targetPlatformAddressByteSize;\n }", "public static int sizeBits_addr() {\n return 16;\n }", "public int CommandAddressSize(){\r\n return CommandAddr.length;\r\n }", "public static int size_link_route_addr() {\n return (16 / 8);\n }", "int sizeOfAddressLineArray();", "public Integer getSize() {\r\n if (obj != null) {\r\n return obj.getPayload().length;\r\n }\r\n else { \r\n return getInteger(\"size\"); \r\n }\r\n }", "@MavlinkFieldInfo(\n position = 2,\n unitSize = 4,\n description = \"total data size (set on ACK only).\"\n )\n public final long size() {\n return this.size;\n }", "public int sizeOfLocationAddressArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(LOCATIONADDRESS$12);\r\n }\r\n }", "int sizeOfPhysicalAddressArray();", "public int getDomainSize() {\n return domain.getSize();\n }", "@DISPID(18) //= 0x12. The runtime will prefer the VTID if present\n @VTID(40)\n int fieldSize();", "int getDataSize();", "public long getSize() {\n // a char is two bytes\n int size = (key.length() * 2) + 4;\n\n if (id != null) {\n size += ((id.length() * 2) + 4);\n }\n\n if (content != null) {\n if (content.getClass() == String.class) {\n size += ((content.toString().length() * 2) + 4);\n } else if (content instanceof CacheContent) {\n size += ((CacheContent) content).getSize();\n } else {\n return -1;\n }\n\n //add created, lastUpdate, and wasFlushed field sizes (1, 8, and 8)\n return size + 17;\n } else {\n return -1;\n }\n }", "public int size() {\n return bytes.length;\n }", "public int sizeInBytes() {\n\t\tint Ibits = this.id.encode(null).getSizeBits();\n\t\tint Ebits = this.event.encode(null).getSizeBits();\n\t\treturn (int) ((Ibits + Ebits + 4) / 8);\n\t}", "public static int size_sourceAddress() {\n return (16 / 8);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method hadles the OK button response to the InadequatePermissionsDialog. We dismiss the dialog and shut down the application as it is useless without any location permissions.
private void handleCloseInadequatePermissionsDialog () { inadequatePermissionsDialog = null; finish (); }
[ "public void showLocationDeniedDialog(){\n // Display the dialog.\n AlertDialog dialog = new AlertDialog.Builder(this)\n .setTitle(\"Permission to access current location denied\")\n .show();\n }", "private void requestLocationPermission() {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n\n new AlertDialog.Builder(this)\n .setTitle(\"Permission needed\")\n .setMessage(\"Location Permission is needed to show your current location on the map\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(ScavengerHunt.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 2);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Toast.makeText(ScavengerHunt.this, \"Location Permission is needed to update the map\", Toast.LENGTH_SHORT).show();\n }\n })\n .create()\n .show();\n\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 2);\n }\n }", "public void onClick$btnOK() {\n Listitem item = lstLocation.getSelectedItem();\n Location location = item == null ? null : (Location) item.getValue();\n \n if (location != null) {\n LocationContext.changeLocation(location);\n close();\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(getActivity(), new String[]{permisson}, requestCode);\n // Do not finish the Activity while requesting permission.\n mFinishActivity = false;\n showToast = false;\n }", "private AlertDialog createPermissionDialog(){\n AlertDialog.Builder permissionDialogBuilder = new AlertDialog.Builder(this);\n permissionDialogBuilder.setTitle(\"Permission Required\");\n permissionDialogBuilder.setMessage(\"Location permission is required to start a new workout session\");\n\n permissionDialogBuilder.setPositiveButton(\"Okay\", new DialogInterface.OnClickListener(){\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n\n return permissionDialogBuilder.create();\n }", "private void fineLocationPermissionGranted() {\n //UtilityService.removeGeofences(getApplicationContext());\n //UtilityService.addGeofences(getApplicationContext());\n //UtilityService.requestLocation(getApplicationContext());\n }", "private void showPermissionDeniedDialog() {\n new AlertDialog.Builder(this)\n .setTitle(\"提示\")\n .setMessage(\"当前程序运行缺少必要的权限,请前往设置开启\")\n .setNegativeButton(\"取消\", null)\n .setPositiveButton(\"去开启\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n jumpToSetting();\n }\n })\n .setCancelable(false)\n .create()\n .show();\n }", "private void updateLocationUI() {\n if (map == null) {\n return;\n }\n try {\n if (locationPermissionGranted) {\n map.setMyLocationEnabled(true);\n map.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n map.setMyLocationEnabled(false);\n map.getUiSettings().setMyLocationButtonEnabled(false);\n lastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "private void showGrantPermissionDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Stop!\")\n .setMessage(\"You must grant all the permissions request otherwise you can't use this feature.\")\n .setCancelable(false)\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int i) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_CODE) {\n /** if so check once again if we have permission */\n if (Settings.canDrawOverlays(this)) {\n // continue here - permission was granted\n } else {\n Toast.makeText(this, \"권한획득에 실패하여 어플리케이션을 종료합니다.\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }\n }", "private void showDialogExplainingWhyPermissionNeeded(){}", "private void updateLocationUI() {\r\n if (map == null) {\r\n return;\r\n }\r\n try {\r\n if (locationPermissionGranted) {\r\n map.setMyLocationEnabled(true);\r\n map.getUiSettings().setMyLocationButtonEnabled(true);\r\n } else {\r\n map.setMyLocationEnabled(false);\r\n map.getUiSettings().setMyLocationButtonEnabled(false);\r\n }\r\n } catch (SecurityException e) {\r\n Log.e(\"Exception: %s\", e.getMessage());\r\n }\r\n }", "public void Confirm(){\n new AlertDialog.Builder(MapsActivity.this)\n .setTitle(\"Confirm Location\")\n .setMessage(\"Are you sure about this location?\")\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // continue with delete\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }", "private void updateLocationUI() {\r\n if (mMap == null) {\r\n return;\r\n }\r\n try {\r\n if (mLocationPermissionGranted) {\r\n mMap.setMyLocationEnabled(true);\r\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\r\n } else {\r\n mMap.setMyLocationEnabled(false);\r\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\r\n mLastKnownLocation = null;\r\n getLocationPermission();\r\n }\r\n } catch (SecurityException e) {\r\n Log.e(\"Exception: %s\", e.getMessage());\r\n }\r\n }", "private void askLocationPermission() {\n if(ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED)\n {\n if(ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION)){\n ActivityCompat.requestPermissions(this, new String[] {Manifest.permission.ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n }else{\n ActivityCompat.requestPermissions(this, new String[] {Manifest.permission.ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n }\n }\n }", "private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n try {\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }", "private void showRequestPermissionsInfoAlertDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.permission_alert_dialog_title);\n builder.setMessage(R.string.permission_dialog_message);\n builder.setPositiveButton(R.string.action_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n requestReadAndSendSmsPermission();\n }\n });\n builder.show();\n }", "private void displayLocationSettingsAlert() {\n\t\tnew AlertDialog.Builder(this)\n\n\t\t.setTitle(\"Location is turned off!\")\n\t\t.setMessage(\"Would you like to go to location settings to turn location on? (Recommended)\")\n\t\t.setPositiveButton(\"YES\", new DialogInterface.OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t//send user to settings/location to be able to turn on\n\t\t\t\tIntent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t})\n\t\t.setNegativeButton(\"No\", null)\n\t\t.setCancelable(true)\n\t\t.show();\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the vibrator state has changed.
void onVibratorStateChanged(boolean isVibrating);
[ "@SystemApi\n public interface OnVibratorStateChangedListener {\n /**\n * Called when the vibrator state has changed.\n *\n * @param isVibrating If true, the vibrator has started vibrating. If false,\n * it's stopped vibrating.\n */\n void onVibratorStateChanged(boolean isVibrating);\n }", "protected void onVibrate() {\n if (mAudioManager.getRingerModeInternal() != AudioManager.RINGER_MODE_VIBRATE) {\n return;\n }\n if (mVibrator != null) {\n mVibrator.vibrate(VIBRATE_DURATION, VIBRATION_ATTRIBUTES);\n }\n }", "static void vibrate() {\n String currentState = SettingDetail.settingDetails.get(VIBRATION_SETTING).getCurrentState();\n int ringerMode = audioManager.getRingerMode();\n if (currentState.equals(context.getString(R.string.enabled))\n || (currentState.equals(context.getString(R.string.followSystem))\n && (ringerMode == AudioManager.RINGER_MODE_NORMAL || ringerMode == AudioManager.RINGER_MODE_VIBRATE))) {\n vibrator.vibrate(VibrationEffect.createOneShot(100, VibrationEffect.DEFAULT_AMPLITUDE));\n }\n }", "public abstract boolean hasVibrator();", "@Override\n public void stateChanged() {\n this.pitch = sensorHandler.getPitch();\n this.roll = sensorHandler.getRoll();\n this.update();\n }", "public void vibrate() {\n if ((deltaX > vibrateThreshold) || (deltaY > vibrateThreshold) || (deltaZ > vibrateThreshold)) {\n v.vibrate(50);\n status = true;\n } else {\n status = false;\n }\n }", "@SystemApi\n @RequiresPermission(android.Manifest.permission.ACCESS_VIBRATOR_STATE)\n public void addVibratorStateListener(@NonNull OnVibratorStateChangedListener listener) {\n }", "@SuppressLint(\"MissingPermission\")\n protected void vibrate() {\n if (ContextCompat.checkSelfPermission(getContext(), Manifest.permission.VIBRATE)\n == PackageManager.PERMISSION_GRANTED && vibratingEnabled) {\n vibrator.vibrate(VIBRATION_DURATION);\n }\n }", "void onVibratorsReleased();", "@SystemApi\n @RequiresPermission(android.Manifest.permission.ACCESS_VIBRATOR_STATE)\n public void addVibratorStateListener(\n @NonNull @CallbackExecutor Executor executor,\n @NonNull OnVibratorStateChangedListener listener) {\n }", "private void VibrateButton(){\n\t\t\n\t\tvbrate = (Vibrator)PurchaseTicket.this.getSystemService(Context.VIBRATOR_SERVICE);\n\t\tvbrate.vibrate(100);\n\t}", "@Override\n public void onRmsChanged(float rmsdB) {\n }", "void onVibrationCompleted(long vibrationId, Vibration.Status status);", "@Override\n public void onRmsChanged(float rmsdB) {\n }", "@Override\n\tpublic void onRmsChanged(float rmsdB) {\n\t}", "private void startVibrate() {\n // is there a GATT (the generic Attributes service structure)\n if (bluetoothGatt != null) {\n //get the characteristic value (vibrate) from the service\n BluetoothGattCharacteristic bchar = bluetoothGatt\n .getService(CustomBluetoothProfile.AlertNotification.service)\n .getCharacteristic(CustomBluetoothProfile.AlertNotification.alertCharacteristic);\n // is not vibrating\n if (!vibrate) {\n //get and store the value red on the characteristic (vibrate)\n bchar.setValue(new byte[]{2});\n //is the value on the characteristic been written (vibrate)\n if (!bluetoothGatt.writeCharacteristic(bchar)) {\n Toast.makeText(this, \"Failed start vibrate\", Toast.LENGTH_SHORT).show();\n } else {\n //is vibrating so change the flag\n vibrate = true;\n //change information for the user know the new state\n btnStartVibrate.setText(\"Found/Stop Vibrate\");\n }\n } else {\n //is vibrating\n //get and store the value red on the characteristic (vibrate)\n bchar.setValue(new byte[]{0});\n //is the value on the characteristic been written (vibrate)\n if (!bluetoothGatt.writeCharacteristic(bchar)) {\n Toast.makeText(this, \"Failed stop vibrate\", Toast.LENGTH_SHORT).show();\n } else {\n //is vibrating so change the flag\n vibrate = false;\n //change information for the user know the new state\n btnStartVibrate.setText(\"Find/Start Vibrate\");\n }\n }\n }\n }", "private void vibrate(){\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n vibrator.vibrate(VibrationEffect.createOneShot(150,VibrationEffect.DEFAULT_AMPLITUDE));\n }else{\n //deprecated in API 26\n vibrator.vibrate(150);\n }\n }", "@Override\n\t\tpublic void onRmsChanged(float rmsdB) {\n\t\t}", "public void alarmsChanged();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When one philosopher is done talking stuff, others can feel free to start talking.
public synchronized void endTalk() { //when a philosopher has finished talking, he should signal that he is finished talking so that a //philosopher waiting to speak can begin talking. notify(); System.out.println("Other philosophers are now free to express their thoughts."); }
[ "public void talk() {\n //Task 1: Implementation of talk()\n System.out.println(\"Philosopher \" + getTID() + \" has started talking.\");\n yield();\n saySomething();\n yield();\n System.out.println(\"Philosopher \" + getTID() + \" is done talking\");\n }", "public void talk() {\n\n\t}", "@Override\n public void entertainTheGuests() {\n ((Broker)Thread.currentThread()).setBrokerState(BrokerState.PLAYING_HOST_AT_THE_BAR);\n MessageType mt = MessageType.valueOf(new Object(){}.getClass().getEnclosingMethod().getName());\n communicate(new Message(mt));\n }", "@Override\n\tpublic void speak() {\n\t\tSystem.out.println(\"This Goose speaks\");\n\t}", "public void speak() {\r\n\t\tSystem.out.print(\"This Goose speaks\");\r\n\t}", "public void think() {\n //Task 1: Implementation of think()\n try {\n System.out.println(\"Philosopher \" + getTID() + \" has started thinking.\");\n yield();\n sleep((long) (Math.random() * TIME_TO_WASTE));\n yield();\n System.out.println(\"Philosopher \" + getTID() + \" is done thinking.\");\n } catch (InterruptedException e) {\n System.err.println(\"Philosopher.think():\");\n DiningPhilosophers.reportException(e);\n System.exit(1);\n }\n }", "public void speak() {\r\n\t\tSystem.out.print(\"This Tiger speaks\");\r\n\t}", "public void eat(Philosopher philosopher) {\n\t\ttry {\n\t\t\tlock.lock();\n\t\t\t/**\n\t\t\t * If the resource in not enough,let philosopher wait.\n\t\t\t */\n\t\t\twhile (philosopher.isEat() || !philosopher.isCanEat(chopsticks)) {\n\t\t\t\twait();\n\t\t\t}\n\t\t\tphilosopher.eat(chopsticks);\n\t\t\tphilosopher.setEat(true);\n//\t\t\tThread.sleep(40);\n\t\t\tphilosopher.finishEat(chopsticks);\n\t\t\tnotify();\n\t\t} catch (Exception e) {\n\t\t} finally {\n\t\t\tlock.unlock();\n\t\t}\n\t}", "static private void TalkTo() {\n if (BSChristiansen.getCurrentRoom() == currentRoom) {\n System.out.println(BSChristiansen.getDescription() + \", yet he still gives you good advice:\\n\");\n System.out.println(BSChristiansen.getDialog(0));\n System.out.println(\"\");\n woundedSurvivor();\n } else if (mysteriousCrab.getCurrentRoom() == currentRoom && inventory.getInventory().containsKey(\"Shroom\")) {\n System.out.println(mysteriousCrab.getDescription() + \"\\n\" + mysteriousCrab.getDialog(0));\n } else {\n System.out.println(\"There is nobody to communicate with in this Room\");\n }\n\n }", "@Override\n public void speak() {\n System.out.println(\"I'm an Aardvark, I make grunting sounds most of the time.\");\n }", "@Override\n public void speak(String message, Human to) {\n System.out.print(\"< Waiter \");\n super.speak(message, to);\n }", "public void speak() {\r\n\t\tSystem.out.print(\"This animal speaks\");\r\n\t}", "public void handleIntroductions(MOB speaker, MOB me, String said);", "@Override\n public synchronized void proceedToPaddock(){\n ((HorseJockey)Thread.currentThread()).setHorseJockeyState(HorseJockeyState.AT_THE_PADDOCK);\n \n this.races.addNHorsesInPaddock();\n \n if (this.races.allNHorsesInPaddock()){\n this.races.setProceedToPaddock(true);\n notifyAll();\n }\n }", "public void sendMessageToAllSpeakers() {\n sendMessageToAllTool(\"Speaker\");\n }", "public void greet() {\n\t\tupdate(\"start\", \"greet\");\n\t\t\n\t\t//TODO greet using sound and having an action during or after the sound\n\t\t\n\t\t/**\n\t\t * Ideally\n\t\t * while (robot.playSound(\"hello\");\n\t\t * {\n\t\t * \t\t[Waves Arm Here];\n\t\t * }\n\t\t */\n\t\tplayVideo(\"hello\");\n\t\t\n\t\tupdate(\"end\", \"greet\");\n\t}", "public void speak(){\n System.out.println(\"Smile and wave boys. Smile and wave.\");\n }", "public void speak(){\n System.out.println(\"Shark bait oooh ha haa!\");\n }", "@Override\n public void summonHorsesToPaddock(){\n rl.lock();\n try{\n System.out.println(\"B : Trying to summon horse...\");\n //change broker state\n// MyThreadBroker broker = (MyThreadBroker) Thread.currentThread();\n// broker.broker_states = MyThreadBroker.Broker_States.ANNOUNCING_NEXT_RACE;\n //change log\n log.setBrokerState(MyThreadBroker.Broker_States.ANNOUNCING_NEXT_RACE);\n log.changeLog();\n keep_waiting = false;\n stable_horses.signal(); \n }finally{\n rl.unlock();\n }\n \n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of setPer_direccion method, of class Persona.
@Test public void testSetPer_direccion() { System.out.println("setPer_direccion"); String per_direccion = ""; Persona instance = null; instance.setPer_direccion(per_direccion); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
[ "@Test\n public void testGetPer_direccion() {\n System.out.println(\"getPer_direccion\");\n Persona instance = null;\n String expResult = \"\";\n String result = instance.getPer_direccion();\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 }", "@Test\r\n public void testSetDireccion() {\r\n System.out.println(\"setDireccion\");\r\n String direccion = \"\";\r\n Usuario instance = new Usuario();\r\n instance.setDireccion(direccion);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "public void setDireccion(String direccion);", "@Test\n public void testSetDireccion() {\n System.out.println(\"setDireccion\");\n String direccion = \"\";\n Usuario instance = new Usuario();\n instance.setDireccion(direccion);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void setDireccion(String aDireccion) {\n direccion = aDireccion;\n }", "public void actualizar_direccion (String direccion){\r\n this.direccion = direccion;\r\n }", "public void setDireccion(String direccion) {\n this.direccion = direccion;\n }", "public void testDecisionEnPasillosSeguirDerecho(){\r\n\t\tdireccionActual = Direccion.ABAJO;\r\n\t\tDireccion futura = cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, uno, direccionActual);\r\n\t\tassertEquals(futura,Direccion.ABAJO);\r\n\r\n\t\tdireccionActual = Direccion.ARRIBA;\r\n\t\tfutura = cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, cuatro, direccionActual);\r\n\t\tassertEquals(futura,Direccion.ARRIBA);\r\n\r\n\t\tdireccionActual = Direccion.IZQUIERDA;\r\n\t\tfutura = cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, nueve, direccionActual);\r\n\t\tassertEquals(Direccion.IZQUIERDA,futura);\t\t\r\n\t}", "public void setDireccion(String direccion){\n if(direccion == null){\n throw new IllegalArgumentException(\"Direccion de domicilio igual a null\");\n }\n this.direccion = direccion;\n }", "@Test\n public void testSetDirecc() {\n System.out.println(\"setDirecc\");\n String direcc = \"\";\n DatosProveedor1 instance = new DatosProveedor1();\n instance.setDirecc(direcc);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void setDireccionpuntaten(java.lang.String newDireccionpuntaten);", "@Override\n\tpublic void setDirezione(long direzione) {\n\t\t_autorizzazioneDir.setDirezione(direzione);\n\t}", "public void setDiretorio(String diretorio) {\n\t\tthis.diretorio = diretorio;\n\t}", "@Test\n public void testSetPer_telefono() {\n System.out.println(\"setPer_telefono\");\n String per_telefono = \"\";\n Persona instance = null;\n instance.setPer_telefono(per_telefono);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "private void modificarPersona(PersonaDTO persona, Set<TelefonoDTO> telefonos, Set<DireccionDTO> direcciones,\n\t\t\tSet<CorreoElectronicoDTO> correos) throws CustomValidationException, CustomErrorException, Exception {\n\t\t//Recuperamos la persona\n\t\t//Verificamos cambio de DNI\n\t\tif (persona.getIdPersona() == null) {throw new CustomErrorException(CustomErrorException.ID_INEXISTENTE_PARA_MODIFICAR,this.getClass().getSimpleName());}\n\t\t\n\t\tPersonaDTO personaPersistente = obtenerPersona(persona.getIdPersona());\n\t\tif (!personaPersistente.getNroDni().equals(persona.getNroDni())) {\n\t\t\tif (gPersona.existePersonaPorDNI(persona.getNroDni())) {\n\t\t\t\tthrow new CustomValidationException(CustomValidationException.DNI_REPETIDO);\n\t\t\t};\n\t\t}\n\t\t\n\t\tSet<TelefonoDTO> nuevosTelefonos = new HashSet<TelefonoDTO>();\n\t\teliminarBorrados(telefonos,personaPersistente.getTelefonos());\n\t\tnuevosTelefonos.addAll(agregarNuevos(telefonos));\n\t\t//vuelvo a setear la lista en persona\n\t\tpersona.setTelefonos(null);\n\t\tSet <TelefonoDTO> telefonosPersona = new HashSet<TelefonoDTO>();\n\t\ttelefonosPersona.addAll(nuevosTelefonos);\n\t\tpersona.setTelefonos(telefonosPersona);\n\t\t\n\t\tSet<DireccionDTO> nuevasDirecciones = new HashSet<DireccionDTO>();\n\t\teliminarBorrados(direcciones, personaPersistente.getDirecciones());\n\t\tnuevasDirecciones.addAll(agregarNuevos(direcciones));\n\t\tpersona.setDirecciones(null);\n\t\tSet<DireccionDTO> direccionesPersona = new HashSet<DireccionDTO>();\n\t\tdireccionesPersona.addAll(nuevasDirecciones);\n\t\tpersona.setDirecciones(direccionesPersona); \n\t\t\n\t\tSet<CorreoElectronicoDTO> nuevosCorreos = new HashSet<CorreoElectronicoDTO>();\n\t\teliminarBorrados(correos, personaPersistente.getCorreos());\n\t\tnuevosCorreos.addAll(agregarNuevos(correos));\n\t\t//vuelvo a setear la lista en persona\n\t\tpersona.setCorreos(null);\n\t\tSet<CorreoElectronicoDTO> correosPersona = new HashSet<CorreoElectronicoDTO>();\n\t\tcorreosPersona.addAll(nuevosCorreos);\n\t\tpersona.setCorreos(correosPersona); \n\t\t\n\t\t// Llamo a modify para cerrar la operación;\n\t\tfor (TelefonoDTO t: telefonos) {\n\t\t\tt.setIdTelefono(modificarTelefono(Converter.toEntity(t))); \n\t\t}\n\t\t\n\t\tfor (DireccionDTO d: direcciones) {\n\t\t\td.setIdDireccion(modificarDireccion(Converter.toEntity(d)));\n\t\t}\n\t\t\n\t\tfor (CorreoElectronicoDTO c: correos) {\n\t\t\tc.setIdCorreoElectronico(modificarCorreoElectronico(Converter.toEntity(c)));\n\t\t}\n\t\t\n\t\tgPersona.modify(Converter.toEntity(persona));\n\t\t\n\t}", "@Test\n public void testSetPer_nombre() {\n System.out.println(\"setPer_nombre\");\n String per_nombre = \"\";\n Persona instance = null;\n instance.setPer_nombre(per_nombre);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public boolean isSetDireccion() {\n return this.direccion != null;\n }", "@Test\r\n public void testGetDireccion() {\r\n System.out.println(\"getDireccion\");\r\n Usuario instance = new Usuario();\r\n String expResult = null;\r\n String result = instance.getDireccion();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Test\n public void testGetDireccion() {\n System.out.println(\"getDireccion\");\n Usuario instance = new Usuario();\n String expResult = \"\";\n String result = instance.getDireccion();\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 }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XMemberFeatureCall__Group_1_1_0_0__1" $ANTLR start "rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl" InternalDroneScript.g:8476:1: rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl : ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) ;
public final void rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDroneScript.g:8480:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) ) // InternalDroneScript.g:8481:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) { // InternalDroneScript.g:8481:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) // InternalDroneScript.g:8482:2: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) { if ( state.backtracking==0 ) { before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); } // InternalDroneScript.g:8483:2: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) // InternalDroneScript.g:8483:3: rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 { pushFollow(FOLLOW_2); rule__XMemberFeatureCall__Alternatives_1_1_0_0_1(); state._fsp--; if (state.failed) return ; } if ( state.backtracking==0 ) { after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); } } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__XMemberFeatureCall__Group_1_1_3__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8554:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8555:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8555:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8556:1: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8557:1: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )?\n int alt68=2;\n int LA68_0 = input.LA(1);\n\n if ( ((LA68_0>=RULE_ID && LA68_0<=RULE_STRING)||LA68_0==26||LA68_0==30||(LA68_0>=34 && LA68_0<=35)||LA68_0==40||(LA68_0>=42 && LA68_0<=48)||LA68_0==56||(LA68_0>=60 && LA68_0<=61)||LA68_0==64||LA68_0==66||(LA68_0>=70 && LA68_0<=78)||LA68_0==85||LA68_0==87) ) {\n alt68=1;\n }\n switch (alt68) {\n case 1 :\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8557:2: rule__XMemberFeatureCall__Alternatives_1_1_3_1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_1_3_1_in_rule__XMemberFeatureCall__Group_1_1_3__1__Impl17606);\n rule__XMemberFeatureCall__Alternatives_1_1_3_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7994:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7995:1: ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7995:1: ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7996:1: ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_0_0_0_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7997:1: ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7997:2: rule__XMemberFeatureCall__Alternatives_1_0_0_0_1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_0_0_0_1_in_rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl16498);\n rule__XMemberFeatureCall__Alternatives_1_0_0_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_0_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:8211:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) ) )\r\n // InternalDroneScript.g:8212:1: ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) )\r\n {\r\n // InternalDroneScript.g:8212:1: ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) )\r\n // InternalDroneScript.g:8213:2: ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_0_0_0_1()); \r\n }\r\n // InternalDroneScript.g:8214:2: ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 )\r\n // InternalDroneScript.g:8214:3: rule__XMemberFeatureCall__Alternatives_1_0_0_0_1\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XMemberFeatureCall__Alternatives_1_0_0_0_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_0_0_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8302:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8303:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8303:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8304:1: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8305:1: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:8305:2: rule__XMemberFeatureCall__Alternatives_1_1_0_0_1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_1_0_0_1_in_rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl17109);\n rule__XMemberFeatureCall__Alternatives_1_1_0_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMemberFeatureCall__Group_1_1_3__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:20242:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:20243:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:20243:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:20244:1: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:20245:1: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )?\r\n int alt148=2;\r\n int LA148_0 = input.LA(1);\r\n\r\n if ( ((LA148_0>=RULE_ID && LA148_0<=RULE_STRING)||LA148_0==51||(LA148_0>=54 && LA148_0<=55)||LA148_0==60||(LA148_0>=63 && LA148_0<=64)||LA148_0==67||LA148_0==80||LA148_0==135||(LA148_0>=138 && LA148_0<=139)||LA148_0==141||(LA148_0>=144 && LA148_0<=146)||(LA148_0>=148 && LA148_0<=153)||LA148_0==162||LA148_0==164) ) {\r\n alt148=1;\r\n }\r\n switch (alt148) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:20245:2: rule__XMemberFeatureCall__Alternatives_1_1_3_1\r\n {\r\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_1_3_1_in_rule__XMemberFeatureCall__Group_1_1_3__1__Impl40908);\r\n rule__XMemberFeatureCall__Alternatives_1_1_3_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XMemberFeatureCall__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7839:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1 )* ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7840:1: ( ( rule__XMemberFeatureCall__Alternatives_1 )* )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7840:1: ( ( rule__XMemberFeatureCall__Alternatives_1 )* )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7841:1: ( rule__XMemberFeatureCall__Alternatives_1 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7842:1: ( rule__XMemberFeatureCall__Alternatives_1 )*\n loop63:\n do {\n int alt63=2;\n switch ( input.LA(1) ) {\n case 16:\n {\n int LA63_2 = input.LA(2);\n\n if ( (synpred105_InternalGuiceModules()) ) {\n alt63=1;\n }\n\n\n }\n break;\n case 83:\n {\n int LA63_3 = input.LA(2);\n\n if ( (synpred105_InternalGuiceModules()) ) {\n alt63=1;\n }\n\n\n }\n break;\n case 84:\n {\n int LA63_4 = input.LA(2);\n\n if ( (synpred105_InternalGuiceModules()) ) {\n alt63=1;\n }\n\n\n }\n break;\n\n }\n\n switch (alt63) {\n \tcase 1 :\n \t // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7842:2: rule__XMemberFeatureCall__Alternatives_1\n \t {\n \t pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_in_rule__XMemberFeatureCall__Group__1__Impl16192);\n \t rule__XMemberFeatureCall__Alternatives_1();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop63;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:19990:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:19991:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:19991:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:19992:1: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:19993:1: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:19993:2: rule__XMemberFeatureCall__Alternatives_1_1_0_0_1\r\n {\r\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_1_0_0_1_in_rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl40411);\r\n rule__XMemberFeatureCall__Alternatives_1_1_0_0_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6388:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6389:1: ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6389:1: ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6390:1: ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_0_0_0_1()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6391:1: ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6391:2: rule__XMemberFeatureCall__Alternatives_1_0_0_0_1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_0_0_0_1_in_rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl13244);\n rule__XMemberFeatureCall__Alternatives_1_0_0_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_0_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:6016:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:6017:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:6017:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:6018:1: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:6019:1: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:6019:2: rule__XMemberFeatureCall__Alternatives_1_1_0_0_1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_1_0_0_1_in_rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl12305);\n rule__XMemberFeatureCall__Alternatives_1_1_0_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMemberFeatureCall__Group_1_1_3__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6948:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6949:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6949:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6950:1: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6951:1: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )?\n int alt55=2;\n int LA55_0 = input.LA(1);\n\n if ( ((LA55_0>=RULE_ID && LA55_0<=RULE_STRING)||LA55_0==25||LA55_0==29||(LA55_0>=33 && LA55_0<=34)||LA55_0==39||(LA55_0>=42 && LA55_0<=47)||(LA55_0>=54 && LA55_0<=55)||LA55_0==57||(LA55_0>=60 && LA55_0<=61)||LA55_0==63||(LA55_0>=67 && LA55_0<=75)||LA55_0==82||LA55_0==84) ) {\n alt55=1;\n }\n switch (alt55) {\n case 1 :\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6951:2: rule__XMemberFeatureCall__Alternatives_1_1_3_1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_1_3_1_in_rule__XMemberFeatureCall__Group_1_1_3__1__Impl14352);\n rule__XMemberFeatureCall__Alternatives_1_1_3_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMemberFeatureCall__Alternatives_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4404:1: ( ( ( rule__XMemberFeatureCall__Group_1_0__0 ) ) | ( ( rule__XMemberFeatureCall__Group_1_1__0 ) ) )\r\n int alt23=2;\r\n int LA23_0 = input.LA(1);\r\n\r\n if ( (LA23_0==61) ) {\r\n int LA23_1 = input.LA(2);\r\n\r\n if ( (LA23_1==51) ) {\r\n alt23=2;\r\n }\r\n else if ( (LA23_1==RULE_ID) ) {\r\n int LA23_3 = input.LA(3);\r\n\r\n if ( (LA23_3==EOF||(LA23_3>=RULE_ID && LA23_3<=RULE_STRING)||(LA23_3>=14 && LA23_3<=16)||(LA23_3>=46 && LA23_3<=64)||(LA23_3>=67 && LA23_3<=68)||LA23_3==74||LA23_3==80||(LA23_3>=131 && LA23_3<=146)||(LA23_3>=148 && LA23_3<=155)||(LA23_3>=160 && LA23_3<=161)||(LA23_3>=163 && LA23_3<=164)) ) {\r\n alt23=2;\r\n }\r\n else if ( (LA23_3==13) ) {\r\n alt23=1;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 23, 3, input);\r\n\r\n throw nvae;\r\n }\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 23, 1, input);\r\n\r\n throw nvae;\r\n }\r\n }\r\n else if ( ((LA23_0>=160 && LA23_0<=161)) ) {\r\n alt23=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 23, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt23) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4405:1: ( ( rule__XMemberFeatureCall__Group_1_0__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4405:1: ( ( rule__XMemberFeatureCall__Group_1_0__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4406:1: ( rule__XMemberFeatureCall__Group_1_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4407:1: ( rule__XMemberFeatureCall__Group_1_0__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4407:2: rule__XMemberFeatureCall__Group_1_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0__0_in_rule__XMemberFeatureCall__Alternatives_19481);\r\n rule__XMemberFeatureCall__Group_1_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4411:6: ( ( rule__XMemberFeatureCall__Group_1_1__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4411:6: ( ( rule__XMemberFeatureCall__Group_1_1__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4412:1: ( rule__XMemberFeatureCall__Group_1_1__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4413:1: ( rule__XMemberFeatureCall__Group_1_1__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:4413:2: rule__XMemberFeatureCall__Group_1_1__0\r\n {\r\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__0_in_rule__XMemberFeatureCall__Alternatives_19499);\r\n rule__XMemberFeatureCall__Group_1_1__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XMemberFeatureCall__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6233:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1 )* ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6234:1: ( ( rule__XMemberFeatureCall__Alternatives_1 )* )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6234:1: ( ( rule__XMemberFeatureCall__Alternatives_1 )* )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6235:1: ( rule__XMemberFeatureCall__Alternatives_1 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6236:1: ( rule__XMemberFeatureCall__Alternatives_1 )*\n loop50:\n do {\n int alt50=2;\n switch ( input.LA(1) ) {\n case 40:\n {\n int LA50_2 = input.LA(2);\n\n if ( (synpred86_InternalHelloXcore()) ) {\n alt50=1;\n }\n\n\n }\n break;\n case 80:\n {\n int LA50_3 = input.LA(2);\n\n if ( (synpred86_InternalHelloXcore()) ) {\n alt50=1;\n }\n\n\n }\n break;\n case 81:\n {\n int LA50_4 = input.LA(2);\n\n if ( (synpred86_InternalHelloXcore()) ) {\n alt50=1;\n }\n\n\n }\n break;\n\n }\n\n switch (alt50) {\n \tcase 1 :\n \t // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:6236:2: rule__XMemberFeatureCall__Alternatives_1\n \t {\n \t pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_in_rule__XMemberFeatureCall__Group__1__Impl12938);\n \t rule__XMemberFeatureCall__Alternatives_1();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop50;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMemberFeatureCall__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:8075:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1 )* ) )\r\n // InternalDroneScript.g:8076:1: ( ( rule__XMemberFeatureCall__Alternatives_1 )* )\r\n {\r\n // InternalDroneScript.g:8076:1: ( ( rule__XMemberFeatureCall__Alternatives_1 )* )\r\n // InternalDroneScript.g:8077:2: ( rule__XMemberFeatureCall__Alternatives_1 )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1()); \r\n }\r\n // InternalDroneScript.g:8078:2: ( rule__XMemberFeatureCall__Alternatives_1 )*\r\n loop65:\r\n do {\r\n int alt65=2;\r\n switch ( input.LA(1) ) {\r\n case 43:\r\n {\r\n int LA65_2 = input.LA(2);\r\n\r\n if ( (synpred114_InternalDroneScript()) ) {\r\n alt65=1;\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 95:\r\n {\r\n int LA65_3 = input.LA(2);\r\n\r\n if ( (synpred114_InternalDroneScript()) ) {\r\n alt65=1;\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 96:\r\n {\r\n int LA65_4 = input.LA(2);\r\n\r\n if ( (synpred114_InternalDroneScript()) ) {\r\n alt65=1;\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n switch (alt65) {\r\n \tcase 1 :\r\n \t // InternalDroneScript.g:8078:3: rule__XMemberFeatureCall__Alternatives_1\r\n \t {\r\n \t pushFollow(FOLLOW_57);\r\n \t rule__XMemberFeatureCall__Alternatives_1();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return ;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop65;\r\n }\r\n } while (true);\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XMemberFeatureCall__Group_1_1_3__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:6268:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:6269:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:6269:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:6270:1: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:6271:1: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )?\n int alt42=2;\n int LA42_0 = input.LA(1);\n\n if ( ((LA42_0>=RULE_ID && LA42_0<=RULE_STRING)||LA42_0==20||(LA42_0>=23 && LA42_0<=24)||LA42_0==29||(LA42_0>=31 && LA42_0<=32)||LA42_0==35||(LA42_0>=41 && LA42_0<=42)||(LA42_0>=44 && LA42_0<=45)||LA42_0==47||(LA42_0>=51 && LA42_0<=53)||(LA42_0>=55 && LA42_0<=60)||LA42_0==63||LA42_0==69) ) {\n alt42=1;\n }\n switch (alt42) {\n case 1 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:6271:2: rule__XMemberFeatureCall__Alternatives_1_1_3_1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_1_3_1_in_rule__XMemberFeatureCall__Group_1_1_3__1__Impl12802);\n rule__XMemberFeatureCall__Alternatives_1_1_3_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7405:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7406:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7406:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7407:1: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7408:1: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7408:2: rule__XMemberFeatureCall__Alternatives_1_1_0_0_1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_1_0_0_1_in_rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl15296);\n rule__XMemberFeatureCall__Alternatives_1_1_0_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMemberFeatureCall__Group_1_1_3__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7657:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7658:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7658:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7659:1: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7660:1: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )?\n int alt62=2;\n int LA62_0 = input.LA(1);\n\n if ( ((LA62_0>=RULE_ID && LA62_0<=RULE_STRING)||LA62_0==25||LA62_0==29||(LA62_0>=33 && LA62_0<=34)||LA62_0==39||(LA62_0>=42 && LA62_0<=47)||LA62_0==49||LA62_0==52||(LA62_0>=56 && LA62_0<=57)||LA62_0==60||LA62_0==62||(LA62_0>=66 && LA62_0<=74)||LA62_0==81||LA62_0==83) ) {\n alt62=1;\n }\n switch (alt62) {\n case 1 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7660:2: rule__XMemberFeatureCall__Alternatives_1_1_3_1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_1_3_1_in_rule__XMemberFeatureCall__Group_1_1_3__1__Impl15793);\n rule__XMemberFeatureCall__Alternatives_1_1_3_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XMemberFeatureCall__Group_1_1_3__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10806:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10807:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10807:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10808:1: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10809:1: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )?\r\n int alt85=2;\r\n int LA85_0 = input.LA(1);\r\n\r\n if ( ((LA85_0>=RULE_ID && LA85_0<=RULE_INT)||LA85_0==20||(LA85_0>=23 && LA85_0<=24)||LA85_0==29||(LA85_0>=32 && LA85_0<=33)||LA85_0==43||LA85_0==45||LA85_0==50||(LA85_0>=57 && LA85_0<=58)||LA85_0==61||LA85_0==68||LA85_0==70||(LA85_0>=74 && LA85_0<=75)||(LA85_0>=77 && LA85_0<=82)||LA85_0==85||LA85_0==92||LA85_0==94) ) {\r\n alt85=1;\r\n }\r\n switch (alt85) {\r\n case 1 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10809:2: rule__XMemberFeatureCall__Alternatives_1_1_3_1\r\n {\r\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_1_3_1_in_rule__XMemberFeatureCall__Group_1_1_3__1__Impl22006);\r\n rule__XMemberFeatureCall__Alternatives_1_1_3_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10554:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10555:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10555:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10556:1: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10557:1: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10557:2: rule__XMemberFeatureCall__Alternatives_1_1_0_0_1\r\n {\r\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_1_0_0_1_in_rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl21509);\r\n rule__XMemberFeatureCall__Alternatives_1_1_0_0_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7097:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7098:1: ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7098:1: ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7099:1: ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_0_0_0_1()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7100:1: ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:7100:2: rule__XMemberFeatureCall__Alternatives_1_0_0_0_1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_0_0_0_1_in_rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl14685);\n rule__XMemberFeatureCall__Alternatives_1_0_0_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_0_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculates the cost of this tile being placed before another given tile. The cost is the difference between this tile's c and the next tile's a plus the difference between this tile's d and the next tile's b.
public double penaltyIfNextTile(Tile other) { return Math.abs(other.a-c)+Math.abs(other.b-d); }
[ "public int getCost(Tile<T> n1, Tile<T> n2);", "@Override\n\t\tpublic int compare(Board board1, Board board2){\n\t\t\tint board1Cost = board1.getDepth() + board1.misPlacedTiles();\n\t\t\tint board2Cost = board2.getDepth() + board2.misPlacedTiles();\n\t\t\treturn board1Cost - board2Cost;\n\t\t}", "@Override\n\t\tpublic int compare(Board board1, Board board2) {\n\t\t\tint board1Cost = board1.getDepth() + board1.estimatedCost();\n\t\t\tint board2Cost = board2.getDepth() + board2.estimatedCost(); \n\t\t\treturn board1Cost - board2Cost;\n\t\t}", "float getInsertionCost();", "@Override\n public int compare(TuplePathCost tpc1, TuplePathCost tpc2) {\n if (tpc1.getCost().compareTo(tpc2.getCost()) < 0) return -1;\n // else if (tpc1.getCost() < tpc2.getCost()) return - 1;\n else if (tpc1.getCost().compareTo(tpc2.getCost()) > 0) return 1;\n else return 0;\n }", "public static Integer duplicate_link_cost(link_cost lc1, link_cost lc2){\n\t\tif(lc1.getCost() == lc2.getCost() && lc1.getLink() == lc2.getLink()) {\n\t\t\treturn lc2.getCost();\n\t\t}\n\t\treturn -1;\n\t}", "public int compareZMin(Path3D path2)\n{\n double z0 = getZMin(), z1 = path2.getZMin();\n return z0<z1? ORDER_BACK_TO_FRONT : z1<z0? ORDER_FRONT_TO_BACK : 0;\n}", "private static RayTraceTargetResult min(Location start, RayTraceTargetResult r1, RayTraceTargetResult r2) {\n if (r1 != null && r2 != null) {\n // Return closer collision\n double r1Dist = r1.getRayTraceResult().getHitPosition().distanceSquared(start.toVector());\n double r2Dist = r2.getRayTraceResult().getHitPosition().distanceSquared(start.toVector());\n return r1Dist < r2Dist ? r1 : r2;\n } else if (r1 != null) {\n return r1;\n } else if (r2 != null){\n return r2;\n } else {\n return null;\n }\n }", "public int compareTo(VertexInfo other) {\n return this.cost - other.getCost();\n }", "@Override\r\n\tpublic int compareTo(Node other) {\r\n\t\tfloat f = cost + heuristic;\r\n\t\tfloat otherF = other.cost + other.heuristic;\r\n\t\tif(f < otherF) return -1;\r\n\t\telse if(f > otherF) return 1;\r\n\t\telse return 0;\r\n\t}", "public CState getMin(CState a, CState b) {\r\n\t\tif (a.compareTo(b) < 0) {\r\n\t\t\treturn a;\r\n\t\t} else {\r\n\t\t\treturn b;\r\n\t\t}\r\n\t}", "public int minCostDP(int[][] costs) {\n if (costs.length == 0) return 0;\n int[] workRow = new int[numColors]; //an array for some background work\n int[] prevRow = new int[numColors]; //an array that tracks min costs so far per the color choices\n int currentRow = costs.length - 1;\n //copy the last costs to prev array and thereafter start from second last row\n System.arraycopy(costs[currentRow], 0, prevRow, 0, costs[currentRow].length);\n while (currentRow > 0) {\n currentRow--;\n //for each color calculate the min cost thus far\n workRow[0] = costs[currentRow][0] + Math.min(prevRow[1], prevRow[2]);\n workRow[1] = costs[currentRow][1] + Math.min(prevRow[0], prevRow[2]);\n workRow[2] = costs[currentRow][2] + Math.min(prevRow[0], prevRow[1]);\n //copy working array to previous array\n System.arraycopy(workRow, 0, prevRow, 0, workRow.length);\n }\n //the total cost so far per color choice is available in the prevRow\n //pick the min cost in the array\n return Math.min(Math.min(prevRow[0], prevRow[1]), prevRow[2]);\n }", "private BigDecimal simulateExchangeSiblings(Node first, Node second) {\n\n DistanceMatrix distances = DistanceMatrix.getInstance();\n Route route = first.getRoute();\n\n int firstIndex = route.getNodeList().indexOf(first);\n int secondIndex = route.getNodeList().indexOf(second);\n BigDecimal actualDistanceFirst = new BigDecimal(0);\n\n Node actual;\n Node next;\n\n //Calculate new virtual objective function value given by the virtual exchange\n for (int index = 0; index < route.getNodeList().size() - 1; index++) {\n actual = route.getNodeList().get(index);\n next = route.getNodeList().get(index + 1);\n if (index == firstIndex) actual = route.getNodeList().get(secondIndex);\n if (index == secondIndex) actual = route.getNodeList().get(firstIndex);\n\n if (index + 1 == firstIndex) next = route.getNodeList().get(secondIndex);\n if (index + 1 == secondIndex) next = route.getNodeList().get(firstIndex);\n\n actualDistanceFirst = actualDistanceFirst.add(distances.getDistance(actual, next));\n\n }\n\n return actualDistanceFirst;\n\n\n }", "private static double calculatePTTileCost(double surfaceToCover, double priceforsTile,double sTileEdge) {\n\t\tTile ptTypeTile = new PTTile(priceforsTile, sTileEdge);\n\t return ptTypeTile.calculatePrice(surfaceToCover, priceforsTile); \n\t}", "public static State min(State a, State b){\n return a.score <= b.score ? a: b;\n }", "@Override\n\t\tprotected boolean lessThan(final Entry hitA, final Entry hitB) {\n\t\t\tassert hitA != hitB;\n\t\t\tassert hitA.mSlot != hitB.mSlot;\n\n\t\t\tfinal int c = mOneReverseMul * mFirstComparator.compare(hitA.mSlot, hitB.mSlot);\n\t\t\tif (c != 0) \n\t\t\t\treturn c > 0;\n\n\t\t\t\t// avoid random sort order that could lead to duplicates (bug #31241):\n\t\t\t\treturn hitA.getDoc() > hitB.getDoc();\n\t\t}", "public int compare(Vertex<V> v1, Vertex<V> v2) {\n\n\t\t\treturn v1.cost() - v2.cost();\n\t\t}", "@Override\n public int compareTo(Vertex other) {\n return Integer.compare(this.cost, other.cost);\n }", "@Override\n public int compareTo(State s) {\n return this.cost - s.cost;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'field891' field. doc for field891
public java.lang.CharSequence getField891() { return field891; }
[ "public java.lang.CharSequence getField891() {\n return field891;\n }", "java.lang.String getField1987();", "java.lang.String getField1301();", "public java.lang.CharSequence getField889() {\n return field889;\n }", "java.lang.String getField1978();", "java.lang.String getField1393();", "public java.lang.CharSequence getField789() {\n return field789;\n }", "public java.lang.CharSequence getField890() {\n return field890;\n }", "public java.lang.CharSequence getField892() {\n return field892;\n }", "java.lang.String getField1164();", "java.lang.String getField1171();", "public java.lang.CharSequence getField789() {\n return field789;\n }", "java.lang.String getField1063();", "java.lang.String getField1309();", "public java.lang.CharSequence getField89() {\n return field89;\n }", "java.lang.String getField1098();", "java.lang.String getField1202();", "java.lang.String getField1201();", "java.lang.String getField1231();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Keep probability for dropout. This is only used if use_dropout is true. optional float dropout_keep_probability = 3 [default = 0.5];
float getDropoutKeepProbability();
[ "public Builder setDropoutKeepProbability(float value) {\n bitField0_ |= 0x00000004;\n dropoutKeepProbability_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public float getDropoutKeepProbability() {\n return dropoutKeepProbability_;\n }", "public Builder setDropoutKeepProbability(float value) {\n bitField0_ |= 0x00000020;\n dropoutKeepProbability_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public float getDropoutKeepProbability() {\n return dropoutKeepProbability_;\n }", "public double getDropChance() {\n return _dropChance;\n }", "public boolean drop() {\n return ThreadLocalRandom.current().nextInt(101) <= dropChance;\n }", "boolean getUseDropout();", "public void dropBounty() {\n //if bandit had bounties\n if (this.bounties.size() > 0) {\n //pick a random bounty\n Random r = new Random();\n int randomBountyIndex = r.nextInt(this.bounties.size());\n Bounty selectedBounty = this.bounties.get(randomBountyIndex);\n //remove the randomly picked bounty from his bounties\n this.bounties.remove(selectedBounty);\n //put the bounty back on the train on the bandit's position\n selectedBounty.moveTo(this.x, this.y);\n //Adds the bounty back again to the train entities\n this.train.addEntity(selectedBounty);\n }\n }", "public double dropProbability(double density) {\n\t\treturn Math.pow((density / (ACO.dropGain + density)), 2);\n\t}", "public T sampleWithRemoval(boolean useMostLikely) {\n\t\tT result = sample(useMostLikely);\n\t\tremove(result);\n\t\tnormaliseProbs();\n\t\treturn result;\n\t}", "public void setDropAmount(double dropAmount) {\n this.dropAmount = dropAmount;\n }", "public boolean isKeepNBTOnDrop() {\n\t\treturn true;\n\t}", "void setDiscardThreshold(int value);", "@Override\n public void dropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7) {}", "PVector avoid(PVector target, boolean weight) {\n\n\t\tif (!avoidBirds) {\n\t\t\treturn new PVector();\n\t\t}\n\n\t\tPVector steer = new PVector(); // creates vector for steering\n\t\tPVector direction = PVector.sub(pos, target);\n\t\tsteer.set(direction); // steering vector points away from target\n\n\t\tdouble dist = PVector.dist(pos, target);\n\n\t\tif (dist < 5) {\n\t\t\tPVector random = new PVector(Util.randomf(-0.5f, 0.5f), Util.randomf(-0.5f, 0.5f), 0.0f);\n\t\t\tsteer = PVector.add(steer, random);\n\t\t}\n\t\tif (weight) {\n\t\t\tdouble divisor = dist * dist + 1;\n\t\t\tsteer.mult((float) (1 / divisor));\n\t\t}\n\t\tsteer.limit(maxSteerForce); // limits the steering force to maxSteerForce\n\t\treturn steer;\n\t}", "void targetDrop() {\n mazeWorld.removeAllGoals();\n for (MazeState state : mazeWorld.getDrops()) {\n if (reachableCells.contains(state)) {\n mazeWorld.addGoal(state);\n }\n }\n }", "public int getDropDelay() {\r\n int wealth = getWealth();\r\n if (wealth <= 50000) {\r\n return 17;\r\n } else if (wealth >= 500000 && wealth <= 1500000) {\r\n return 100;\r\n } else if (wealth >= 1500000 && wealth <= 10000000) {\r\n return 200;\r\n } else if (wealth > 10000000) {\r\n return 300;\r\n }\r\n return 0;\r\n }", "public void setAvoidance(double avoid) \n {\n this.avoidance = avoid;\n }", "private void DeleteBurnInsOnPreviousSamples() {\n\t\tif (gibbs_sample_num <= num_gibbs_burn_in + 1 && gibbs_sample_num >= 2){\n\t\t\tgibbs_samples_of_bart_trees[gibbs_sample_num - 2] = null;\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
si no hay un masterDef lanza una excepcion
private void insertMaster(String[] result) throws Exception { if(masterDefId.isEmpty()) { throw new Exception("Debe ingresar un masterDefId"); } if(masterTypeId.isEmpty()) { throw new Exception("Debe ingresar un masterTypeId"); } String json = generateJsonDataRawFromResult(result); if (sendJsonDataRawToWebservice(endpoint + "api/model/masters/masterdef/"+ masterDefId + "/master/" + result[0], json, "POST") == 422) { logger.warn("Se intento crear el maestro con id = "+result[0]+" y masterdef = "+masterDefId+" pero ya existia!!"); sendJsonDataRawToWebservice(endpoint + "api/model/masters/masterdef/"+ masterDefId + "/master/" + result[0], json, "PUT"); logger.warn("Se actualizo el maestro con id = "+result[0]+" masterdef = "+masterDefId); } createRelationMasterTypeWithMaster(masterTypeId, result[0], masterDefId); }
[ "void checkMaster() {\n zk.getData(\"/master\", false, masterCheckCallback, null);\n }", "void masterExists() {\n zk.exists(\"/master\", \n masterExistsWatcher, \n masterExistsCallback, \n null);\n }", "public boolean hasMaster() {\n return super.getData(false) != null;\n }", "protected boolean validateMaster() {\n if (masterPos == null) {\n return false;\n }\n\n // ensure the master block is correct\n assert level != null;\n if (level.getBlockState(masterPos).getBlock() == masterBlock) {\n return true;\n }\n // master invalid, so clear\n setMaster(null, null);\n return false;\n }", "public boolean hasMaster() {\n return masterPos != null;\n }", "void loosingMaster();", "Boolean failedToMaster(String toolId, String context, String id, String userId);", "public boolean isMaster();", "@Override\n public boolean isValidMaster(IMasterLogic master) {\n if (validateMaster()) {\n return master.getMasterPos().equals(this.masterPos);\n }\n // otherwise, we are happy with any master\n return true;\n }", "@Override\n public void setMaster(NIONode master) {\n }", "MasterType getMaster();", "public static String deleteMaster(){\n File theTable = new File(\"DATABASES\\\\\"+\"MASTER.dsj\");\n\n //si el folder existe crea el folder\n if (theTable.exists()) {\n //System.out.println(\"BORRANDO base de Datos: \" + theDir.getName()+ \"\\n\");\n boolean result = false;\n\n try{\n theTable.delete();\n result = true;\n }\n catch(SecurityException se){\n //handle it\n }\n if(!result) {\n System.out.println(\"ERROR: SafeMaster en problemas\");\n }\n\n }\n else {\n return \"MASTER NO ENCONTRADO\";\n }\n return \"no debe de pasar\";\n }", "private void syncOldMaster(MasterFile masterFile) throws SystemException \n\t{\n\t\tlong chkItemTypeId = ConfigLocalServiceUtil.getKeyAsLong(EisUtil.MASTER_ITEM_TYPE);\n\t\tif (chkItemTypeId == masterFile.getMasterTypeId())\n\t\t{\n\t\t\tItemType itemType = checkOldItemType(masterFile);\n\t\t\tif (Validator.isNull(masterFile.getOldId()))\n\t\t\t{\n\t\t\t\tmasterFile.setOldId(itemType.getItemTypeId());\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t//library Type\n\t\tchkItemTypeId = ConfigLocalServiceUtil.getKeyAsLong(EisUtil.MASTER_LIBRARY_TYPE);\n\t\tif (chkItemTypeId == masterFile.getMasterTypeId())\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tLibraryType libType;\n\t\t\ttry {\n\t\t\t\tlibType = LibraryTypeLocalServiceUtil.getLibraryType(masterFile.getOldId());\n\t\t\t} catch (PortalException | SystemException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tlibType = LibraryTypeLocalServiceUtil.createLibraryType(CounterLocalServiceUtil.increment(LibraryType.class.getName()));\n\t\t\t\tmasterFile.setOldId(libType.getLibraryTypeId());\n\t\t\t}\n\t\t\tlibType.setLibraryTypeName(masterFile.getMasterFileName());\n\t\t\t\n\t\t\tLibraryTypeLocalServiceUtil.updateLibraryType(libType);\t\n\t\t\t\n\t\t}\n\t\t//state\n\t\tchkItemTypeId = ConfigLocalServiceUtil.getKeyAsLong(EisUtil.MASTER_STATE);\n\t\tif (chkItemTypeId == masterFile.getMasterTypeId())\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tState state;\n\t\t\ttry {\n\t\t\t\tstate = StateLocalServiceUtil.getState(masterFile.getOldId());\n\t\t\t} catch (PortalException | SystemException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tstate = StateLocalServiceUtil.createState(CounterLocalServiceUtil.increment(State.class.getName()));\n\t\t\t\tmasterFile.setOldId(state.getStateId());\n\t\t\t}\n\t\t\tstate.setStateName(masterFile.getMasterFileName());\n\t\t\tstate.setStateCode(masterFile.getMasterCode());\n\t\t\tStateLocalServiceUtil.updateState(state);\t\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\t//library\n\t\tchkItemTypeId = ConfigLocalServiceUtil.getKeyAsLong(EisUtil.MASTER_LIBRARY);\n\t\tif (chkItemTypeId == masterFile.getMasterTypeId())\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tLibrary library;\n\t\t\ttry {\n\t\t\t\tlibrary = LibraryLocalServiceUtil.getLibrary(masterFile.getOldId());\n\t\t\t} catch (PortalException | SystemException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tlibrary = LibraryLocalServiceUtil.createLibrary(CounterLocalServiceUtil.increment(Library.class.getName()));\n\t\t\t\tmasterFile.setOldId(library.getLibraryId());\n\t\t\t}\n\t\t\tlibrary.setLibraryName(masterFile.getMasterFileName());\n\t\t\tlibrary.setLibraryCode(masterFile.getMasterCode());\n\t\t\tlibrary.setStateId(masterFile.getParentId1());\n\t\t\tlibrary.setLibraryTypeId(masterFile.getParentId2());\n\t\t\t\n\t\t\tLibraryLocalServiceUtil.updateLibrary(library);\t\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMasterFileLocalServiceUtil.updateMasterFile(masterFile);\n\t}", "public void exibirMensagemInformacaoExiste() {\r\n\t\tJOptionPane.showMessageDialog(null, \"Artista jŠ existente!\", \"Erro\", JOptionPane.ERROR_MESSAGE);\r\n\t}", "private void cloneObject(Context context, DomainObject masterObj) throws Exception {\n String sSuccess = \"\";\n StringBuffer strCommand = new StringBuffer(150);\n StringBuffer fileName = new StringBuffer(100);\n boolean bSuccess;\n String hasFile = (String) mapObjAttr.get(DomainConstants.SELECT_FORMAT_HASFILE);\n DomainObject cloneMaster = null;\n String languageStr = context.getSession().getLanguage();\n\n if (\"True\".equalsIgnoreCase(hasFile)) {\n\n for (int i = 0; i < listFileName.size(); i++) {\n if (i == 0) {\n fileName.append(\"'\");\n fileName.append((String) listFileName.get(i));\n fileName.append(\"'\");\n } else {\n fileName.append(fileName.toString());\n fileName.append(\" \");\n fileName.append(\"'\");\n fileName.append((String) listFileName.get(i));\n fileName.append(\"'\");\n }\n }\n // depending on no. of file Master object is cloned and connected using Active/Latest\n for (int j = 0; j < listFileName.size(); j++) {\n cloneMaster = new DomainObject(masterObj.cloneObject(context, null));\n try {\n MqlUtil.mqlCommand(context, \"delete bus $1 format $2 file $3\", cloneMaster.getId(context), cloneMaster.getInfo(context, \"format\"), fileName.toString());\n } catch (Exception ex) {\n ContextUtil.abortTransaction(context);\n String exMsg = EnoviaResourceBundle.getFrameworkStringResourceProperty(context, \"emxFramework.ReadObject.ErrorMessage_Deleting\", new Locale(languageStr));\n throw new FrameworkException(exMsg);\n }\n\n cloneMaster.setAttributeValue(context, ATTRIBUTE_ISVERSIONOBJECT, \"True\");\n cloneMaster.setAttributeValue(context, DomainConstants.ATTRIBUTE_TITLE, (String) listFileName.get(j));\n masterObj.addToObject(context, new RelationshipType(\"Active Version\"), cloneMaster.getId(context));\n masterObj.addToObject(context, new RelationshipType(\"Latest Version\"), cloneMaster.getId(context));\n }\n }\n }", "boolean beforeMasterSelectionChange();", "public void runForMaster() {\n LOG.info(\"Running for master\");\n /*\n * Creates an ephemeral master znode so that if it dies, other\n * backup masters will take over. They will know master is dead\n * because the master znode will be gone.\n */\n zk.create(\"/master\", \n serverId.getBytes(), \n Ids.OPEN_ACL_UNSAFE, \n CreateMode.EPHEMERAL,\n masterCreateCallback,\n null);\n }", "public synchronized void electShardMaster() throws Exception {\n master = null;\n List<DataServerNode> nodes = getDataServers();\n List<Pair<DataServerNode,Long>> seq = Lists.newArrayList();\n if(nodes != null){\n for(int i = 0;i<nodes.size();i++){\n try {\n seq.add(Pair.of(nodes.get(i),nodes.get(i).getLatestSequenceNum()));\n } catch (Exception e) {\n log.error(\"\",e);\n seq.add(Pair.of(nodes.get(i),-1L));\n }\n }\n seq.sort((i,j)->(int)(i.getValue()-j.getValue()));\n //more than one instance\n if(nodes.size()>1 && seq.get(seq.size()-1).getValue().longValue() > seq.get(0).getValue().longValue()){\n master = seq.get(seq.size()-1).getKey();\n }else if(nodes.size()>1){\n master = seq.get(0).getKey();\n }\n if(master != null){\n Shard old = null;\n if(shardNodeCache.getCurrentData().getData()!=null){\n try{\n old = JacksonUtil.toObject(shardNodeCache.getCurrentData().getData(),Shard.class);\n }catch (Exception e){\n log.error(\"\",e);\n }\n }\n Shard shard = new Shard();\n shard.setMasterHost(master.getInstance().getHost());\n shard.setMasterPort(master.getInstance().getPort());\n shard.setShardId(shardId);\n shard.setEpoch(old != null?old.getEpoch():1);\n ZKUtils.setPersistentData(client,config.getZkShardRoot(shardId),JacksonUtil.toJsonAsBytes(shard));\n }\n }\n }", "public GrauInexistenteExc() {\n\t\tsuper();\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if an array of Objects is empty or null.
public boolean isEmpty(Object[] array) { return array == null || array.length == 0; }
[ "public static boolean isEmpty( Object[] array ) {\n return array == null || array.length == 0;\n }", "public static boolean isEmpty(Object []array) {\n\t\treturn array==null || array.length==0;\n\t}", "public static boolean isEmpty(Object[] array) {\r\n return (array == null || array.length == 0);\r\n }", "public static boolean isNotNullOrEmpty(Object[] array) {\n return array != null && array.length > 0;\n }", "public boolean isNotEmpty(Object[] array) {\n return (array != null && array.length != 0);\n }", "private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}", "private boolean emptyArray(Album[] albums){\n if(albums[0] == null){\n return true;\n }\n return false;\n }", "@Override\r\n public boolean isEmpty() {\r\n boolean isEmpty = true;\r\n if (getCapacity() > 0) { // if capacity is 0, no reason to check if it is filled\r\n for (int i = 0; i < array.length; i++) {\r\n if (array[i] != null) {\r\n isEmpty = false;\r\n break; // checks each element in the vector, if any do not equal null, isEmpty equals false\r\n }\r\n }\r\n }\r\n return isEmpty;\r\n }", "public static boolean isNullOrEmpty(final Object[] array) {\r\n\t\tif (array != null)\r\n\t\t\tfor (final Object object : array)\r\n\t\t\t\tif (object instanceof String) {\r\n\t\t\t\t\tif (!((String) object).isEmpty())\r\n\t\t\t\t\t\treturn false;\r\n\r\n\t\t\t\t} else if (object != null)\r\n\t\t\t\t\treturn false;\r\n\r\n\t\treturn true;\r\n\t}", "private boolean isEmpty() {\n return dataArray.length == 0;\n }", "public static boolean isNotNullAndEmpty(String[] array) {\n \treturn array!=null && array.length>0;\n }", "private static boolean noNulls(Object[] data){\n\t\tassert data!=null : \"Failed precondition makeSet. parameter cannot be null\";\n\t\tboolean good = true;\n\t\tint i = 0;\n\t\twhile(good && i< data.length){\n\t\t\tgood = data[i] != null;\n\t\t\ti++;\n\t\t}\n\t\treturn good;\n\t\t\n\t}", "public static boolean isEmpty(JSONArray array) {\n return array == null || array.length() == 0;\n }", "public boolean isEmpty(double[] array) {\n return array == null || array.length == 0;\n }", "public boolean isEmpty(int[] array) {\n return array == null || array.length == 0;\n }", "public boolean isEmpty(long[] array) {\n return array == null || array.length == 0;\n }", "public static void notEmpty(Object[] array) {\n\t\tnotEmpty(array, \"[Assertion failed] - this array must not be empty: it must contain at least 1 element\");\n\t}", "public boolean isEmpty(float[] array) {\n return array == null || array.length == 0;\n }", "public boolean isEmpty() {\n return ((files == null) || files.isEmpty())\n && ((fileObjects == null) || fileObjects.isEmpty())\n && (classNames == null || classNames.isEmpty());\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Adds reversed "that" list at the beginning of current (this) list
@Override public LinkedList<A> prependAllReversed(LinkedList<A> that) { LinkedList<A> list = this; LinkedList<A> reversedThatCursor = that; while(reversedThatCursor.isNotNil()){ list = list.prepend(reversedThatCursor.head()); reversedThatCursor = reversedThatCursor.tail(); } return list; }
[ "@Override\n public LinkedList<A> prependAll(LinkedList<A> that) {\n LinkedList<A> list = this;\n LinkedList<A> reversedThatCursor = that.reverse();\n\n while(reversedThatCursor.isNotNil()){\n list = list.prepend(reversedThatCursor.head());\n reversedThatCursor = reversedThatCursor.tail();\n }\n\n return list;\n }", "public void rotate() { // rotate the first element to the back of the list\n // TODO\n if ( tail != null){\n tail = tail.getNext();\n }\n\n }", "private static Node reversingExistingList(Node head){\n Node curr = head;\n Node prev = null;\n Node next = null;\n while (curr != null){\n next = curr.next;\n curr.next = prev;\n prev = curr;\n curr = next;\n }\n return prev;\n }", "private DoubleLinkedList<Integer> addToFrontFromNewList() {\n\n\t\tDoubleLinkedList<Integer> list = new DoubleLinkedList<Integer>();\n\t\tlist.addToFront(new Integer(1));\n\t\treturn list;\n\n\t}", "private DoubleLinkedList<Integer> addToRearFromOneElementList() {\n\n\t\tDoubleLinkedList<Integer> list = new DoubleLinkedList<Integer>();\n\t\tlist.addToFront(new Integer(1));\n\t\tlist.addToRear(new Integer(2));\n\t\treturn list;\n\n\t}", "private DoubleLinkedList<Integer> addToFrontFromTwoElementList() {\n\t\t\n\t\tDoubleLinkedList<Integer> list = new DoubleLinkedList<Integer>();\n\t\tlist.addToRear(new Integer(1));\n\t\tlist.addToRear(new Integer(2));\n\t\tlist.addToFront(new Integer(3));\n\n\t\treturn list;\n\n\t}", "public DoubleLinkedSeq reverse(){\r\n\t DoubleLinkedSeq rev = new DoubleLinkedSeq();\r\n\t for(cursor = head; cursor != null; cursor = cursor.getLink()){\r\n\t\t rev.addBefore(this.getCurrent());\r\n\t }\r\n\t \r\n\t return rev; \r\n }", "private static Node addToBack(Node front, Node toAdd) {\r\n\t\tif (front == null)\r\n\t\t\tfront = toAdd;\r\n\t\telse {\r\n\t\t\tNode curBack = front;\r\n\t\t\twhile (curBack.next != null)\r\n\t\t\t\tcurBack = curBack.next;\r\n\r\n\t\t\tcurBack.next = toAdd;\r\n\t\t}\r\n\r\n\t\treturn front;\r\n\t}", "public void reverse2() {\n // Do nothing if ArrayList is empty or has only one element\n if(this.currentIndex > 0) {\n // Make an array of same capacity\n Object[] newArray = new Object[this.capacity];\n // Transfer all existing elements in reverse order\n int counter = this.currentIndex;\n for (int i = 0; i <= this.currentIndex; i++) {\n newArray[counter--] = this.array[i];\n }\n this.array = newArray;\n }\n }", "private static Node newReversedList(Node head){\n Node curr = head;\n Node prev = null;\n Node next = null;\n while (curr != null){\n next = curr.next;\n Node newNode = new Node();\n newNode.data = curr.data;\n newNode.next = prev;\n prev = newNode;\n curr = next;\n }\n return prev;\n }", "void FlipBook()\r\n\t\t{\r\n\t\t\t Collections.reverse(this);\r\n\t\t}", "private DoubleLinkedList<Integer> addAfterFromOneElementList() {\n\t\t\n\t\tDoubleLinkedList<Integer> list = new DoubleLinkedList<Integer>();\n\t\tlist.addToRear(new Integer(1));\n\t\tlist.addAfter(new Integer(2), new Integer(1));\n\t\treturn list;\n\n\t}", "private DoubleLinkedList<Integer> iterRemoveAfterPreviousFromNewList() {\n\t\t\n\t\tDoubleLinkedList<Integer> list = new DoubleLinkedList<Integer>();\n\t\tListIterator<Integer> iter = list.listIterator();\n\t\titer.add(new Integer(1));\n\t\titer.previous();\n\t\titer.remove();\n\t\t\n\t\treturn list;\n\n\t}", "public void reverse() {\n // Do this only if the ArrayList contains more than 1 elements.\n // i.e. Do nothing if ArrayList is empty or has only one element.\n if(this.currentIndex > 0) {\n // Make an array of same capacity\n Object[] newArray = new Object[this.capacity];\n // Transfer all existing elements in reverse order\n int newCurrentIndex = 0;\n for (int i = this.currentIndex; i >= 0 ; i--) {\n newArray[newCurrentIndex++] = this.array[i];\n }\n this.array = newArray;\n }\n }", "private DoubleLinkedList<Integer> noneToOne_addToFrontList() {\r\n\t\tDoubleLinkedList<Integer> list = newList();\r\n\t\tlist.addToFront(i);\r\n\t\treturn list;\r\n\t}", "public T prepend(T addThis){\n Node newNode = new Node(addThis);\n if (isEmpty()){\n head = newNode;\n tail = head;\n \n head.prev = tail;\n tail.next = head;\n \n }\n else{\n head.prev = newNode;\n newNode.next = head;\n head = newNode;\n \n head.prev = tail;\n tail.next = head;\n }\n \n listSize = listSize + 1;\n \n return (T) head.data;\n }", "private DoubleLinkedList<Integer> addToRearFromNewList() {\n\n\t\tDoubleLinkedList<Integer> list = new DoubleLinkedList<Integer>();\n\t\tlist.addToRear(new Integer(1));\n\t\treturn list;\n\n\t}", "public void reverse() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n newSeq.add(seq.get(seq.size() - 1 - i));\n }\n seq = newSeq;\n }", "public void reverse(int length, int currentPosition) {\n\t\tcurrentPosition = currentPosition % getSize();\n\t\tint interimEnd = Math.min(getSize(), currentPosition + length);\n\n\t\t// Create a sublist that contains all elements and reverse it.\n\t\tList<Integer> subList = new ArrayList<>(getList().subList(currentPosition, interimEnd));\n\t\tint remainder = length - (subList.size());\n\t\tsubList.addAll(new ArrayList<>(getList().subList(0, remainder)));\n\t\tCollections.reverse(subList);\n\n\t\t// Overwrite real list with reversed elements.\n\t\tint overwritePosition = currentPosition;\n\t\tfor (Integer value : subList) {\n\t\t\tgetList().set(overwritePosition, value);\n\t\t\toverwritePosition++;\n\t\t\tif (overwritePosition >= getList().size()) {\n\t\t\t\toverwritePosition = 0;\n\t\t\t}\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an instance of the PriceSummaryModel
PriceSummaryModel createInstanceOfPriceSummaryModel();
[ "PriceModel createInstanceOfPriceModel();", "public ItemPrice() {\n }", "NFP_Price createNFP_Price();", "@Valid\n\tvoid create(Price Price);", "MetricModel createMetricModel();", "public PricingModel(Game game) {\n this.game = game;\n this.currentPrice = SavingCard.INITIAL_COST;\n this.invokedCount = 0;\n \n\t}", "public TradingModel() {\r\n }", "public OrderPriceInfo() {\n }", "public ProductPriceRange() {\n }", "public PriceMatrix() {\r\n\r\n }", "public PratoModel() {\r\n\t\tthis.pratoService = ServiceFactory.getInstancePratoService();\r\n\t}", "private static SummaryEntry aSummaryEntry(OrderType type, int price, int quantity) {\n return new SummaryEntry(type, price, quantity);\n }", "private PriceModelDTO getDefaultPrice(BigDecimal rate) {\r\n PriceModelDTO model = new PriceModelDTO();\r\n model.setRate(rate);\r\n model.setType(PriceModelStrategy.METERED);\r\n \r\n return model;\r\n }", "LotSummaryInner innerModel();", "@Override\n public Store_Prices CreateStorePrices() {\n return new Store_Prices1();\n }", "public MF_Price() {\r\n\t\tthis.price = 0.00;\r\n\t\tthis.date = (Date) Calendar.getInstance().getTime();\r\n\t\tthis.company = null;\r\n\t}", "Model createModel();", "private DailyForecastSummary() {}", "public InvoiceModel() {\n \n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a Waiter using an instance paramgroup progress checker, and returns the final DBInstance when waiting is done. In case of error never returns null, throws instead.
private DBInstance waitTilParamGroupIsPendingReboot(String instanceId, DBInstance initialInstance, DBParameterGroup stageParamGroup, RdsInstanceStatus expectedInitialState) { LOGGER.info(liveContext() + "Waiting for instance to become available and instance paramgroup modification to be fully applied"); RdsInstanceParamGroupProgressChecker progressChecker = new RdsInstanceParamGroupProgressChecker(instanceId, stageParamGroup.getDBParameterGroupName(), liveContext(), rdsClient, rdsAnalyzer, initialInstance, expectedInitialState); Waiter<DBInstance> waiter = new Waiter(waiterParameters, threadSleeper, progressChecker); DBInstance dbInstance = waiter.waitTilDone(); if (dbInstance == null) { throw new RuntimeException(liveContext() + progressChecker.getDescription() + " did not become available, " + "or paramgroup failed to reach pending-reboot state"); } return dbInstance; }
[ "private DBInstance waitTilInstanceIsAvailable(String instanceId, DBInstance initialInstance,\n RdsInstanceStatus expectedInitialState)\n {\n LOGGER.info(liveContext() + \"Waiting for instance to become available\");\n RdsInstanceProgressChecker progressChecker = new RdsInstanceProgressChecker(instanceId, liveContext(), rdsClient,\n initialInstance, expectedInitialState);\n Waiter<DBInstance> waiter = new Waiter(waiterParameters, threadSleeper, progressChecker);\n DBInstance dbInstance = waiter.waitTilDone();\n if (dbInstance == null)\n {\n throw new RuntimeException(liveContext() + progressChecker.getDescription() + \" did not become available\");\n }\n return dbInstance;\n }", "public BusinessProcessInstanceThread getReadyInstance() {\n BusinessProcessInstanceThread bpiRet = null;\n\n Object processLock = mProcMgr.getProcessLevelLock();\n synchronized (processLock) {\n \n Iterator<BusinessProcessInstanceThread> itr = mBPIList.iterator();\n\n while (itr.hasNext()) {\n Object object = itr.next();\n BusinessProcessInstanceThread bpi = (BusinessProcessInstanceThread) object;\n\n if (bpi.isReady()) {\n bpiRet = bpi;\n itr.remove();\n break;\n }\n }\n\n // NOTE: Moving the waiting bpit to after checking the the mBPITList for ready bpits\n // as putting it before causes two EventHandler JUnits (testProcessLevelNestedEventHdlr and test_nestedScopeLevelEveHdlr)\n // to fail due to some limitations of these failing junits. These JUnits need to be revisited\n // to ensure that they pass regardless of the order of the bpit return from this method call.\n if (bpiRet == null) {\n bpiRet = getExpiredWaitingBPIT();\n \n if (bpiRet != null \n \t\t\t&& !(bpiRet instanceof BusinessProcessInstanceThreadForClusteredPick)\n \t\t\t&& bpiRet.getType() != BusinessProcessInstanceThread.SCALABILITY_PASSIVATED) {\n\t\t\t\t\t\n\t\t\t\t\tboolean isOnAlarmForPick = false;\n\t\t\t\t\t\n\t\t\t\t\tif (bpiRet instanceof BusinessProcessInstanceThreadForPick) {\n\t\t\t\t\t\tisOnAlarmForPick = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tisOnAlarmForPick = false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tICallFrame frame = bpiRet.getCallFrame();\n\t\t\t\t\tframe.getProcessInstance().removeFromInactiveList(frame, isOnAlarmForPick);\n\t\t\t\t}\n }\n }\n \n if (bpiRet != null \n \t\t\t&& bpiRet.getType() == BusinessProcessInstanceThread.SCALABILITY_PASSIVATED) {\n \tString instanceId = bpiRet.getProcessInstanceId();\n\t\t\tmProcMgr.getMemoryMgr().activateScalabilityPassInstance(instanceId, InactivityReason.WAITING);\n }\n\n return bpiRet;\n }", "private BusinessProcessInstanceThread getExpiredWaitingBPIT() {\n BusinessProcessInstanceThread bpiRet = null;\n\n if (mMostRecentlyExpiringBPIT != null) {\n \t\n // check if the locally cached bpit is not suspended\n if (mMostRecentlyExpiringBPIT.isReady()) {\n long now = System.currentTimeMillis();\n \n if (now >= mMostRecentlyExpiringBPIT.getTimeout()) {\n\t\t\t\t\tbpiRet = mMostRecentlyExpiringBPIT;\n\t\t\t\t\tselectNextBPITForCaching();\n\t\t\t\t}\n } else {\n bpiRet = getNextReadyBPIT();\n }\n }\n\n return bpiRet;\n }", "public static synchronized DBPresenter getInstance() {\r\n if (instance == null || !instance.getDbPath().equals(PropertiesLoader.getInstance().getDbLocation())\r\n || !instance.getDbHost().equals(PropertiesLoader.getInstance().getDbHost())\r\n || !instance.getDbPort().equals(PropertiesLoader.getInstance().getDbPort())) {\r\n instance = new DBPresenter(PropertiesLoader.getInstance().getDbLocation(), PropertiesLoader.getInstance()\r\n .getDbHost(),\r\n PropertiesLoader.getInstance().getDbPort());\r\n DBReaderWriter.createDatabasePresenter();\r\n }\r\n return instance;\r\n }", "public interface IInstanceManager {\n\n /**\n * Do with a process instance. This is to allow locking of the business\n * process.\n * \n * @param pid process instance id\n * @param callback what you'd like to do with the process instance\n * @return the result of doing whatever you wanted to do\n * @throws Throwable if something goes wrong\n */\n\tIExecutorResult doWithInstance(String pid, IInstanceCallback callback) throws Exception;\n\t\n\t/**\n\t * Create a new process instance based on it's definition and call the operation\n\t * specified.\n\t * \n\t * @param parentPid the parent process instance. null if there isn't one.\n\t * @param definitionId the definition to create an instance for. must not be null\n\t * @param operation the operation to call\n\t * @return the pid of the new process instance\n\t * @throws BpmScriptException if there was a problem creating the instance\n\t */\n\tString createInstance(String parentVersion, String definitionId, String definitionName, String definitionType, String operation) throws BpmScriptException;\n\t\n\t/**\n\t * Get a process instance from its pid\n\t * \n\t * @param pid the pid for the process instance. must not be null.\n\t * @return the process instance associated with the pid\n\t * @throws BpmScriptException if there was a problem looking up the process instance\n\t */\n\tIInstance getInstance(String pid) throws BpmScriptException;\n\t\n\t/**\n\t * Get all the child instances associated with this parent version\n\t * \n\t * @param parentVersion the version of the parent...\n\t * @return the list of child process instances\n\t * @throws BpmScriptException if there was a problem looking up the child instances\n\t */\n\tList<IInstance> getChildInstances(String parentVersion) throws BpmScriptException;\n\t\n\t/**\n\t * Get a paged list of instances based on the incoming query\n\t * \n\t * @param query the query used to constrain the results\n\t * @return a paged list of instances\n\t * @throws BpmScriptException if something goes wrong\n\t */\n\tIPagedResult<IInstance> getInstances(IQuery query) throws BpmScriptException;\n\t\n\t/**\n\t * Get the instances for a particular definition\n\t * \n\t * @param definitionId\n\t * @return\n\t * @throws BpmScriptException\n\t */\n\tIPagedResult<IInstance> getInstancesForDefinition(IQuery query, String definitionId) throws BpmScriptException;\n\n}", "private DBSnapshot waitTilSnapshotIsAvailable(String snapshotId, DBSnapshot initialSnapshot)\n {\n LOGGER.info(liveContext() + \"Waiting for snapshot to become available\");\n RdsSnapshotAvailableProgressChecker progressChecker = new RdsSnapshotAvailableProgressChecker(snapshotId, liveContext(), rdsClient,\n initialSnapshot);\n Waiter<DBSnapshot> waiter = new Waiter(waiterParameters, threadSleeper, progressChecker);\n DBSnapshot dbSnapshot = waiter.waitTilDone();\n if (dbSnapshot == null)\n {\n throw new RuntimeException(liveContext() + \"Snapshot did not become available\");\n }\n return dbSnapshot;\n }", "public abstract Locker newNonTxnLocker() throws DatabaseException;", "private CloudSvrQrCodeTxn makingThreadToWait(TransactionDTO tranDTO, int i,String tid) {\n\n\t\tString METHOD_NAME = \"makingThreadToWait\";\n\n\t\tlog.info(Log4jConstants.LOG_ENTRY, CLASS_NAME, METHOD_NAME);\n\n\t\tCloudSvrQrCodeTxn dbDetail = null;\n\n\t\tboolean con = true;\n\n\t\twhile (con) {\n\n\t\t\ttry {\n\n\t\t\t\tThread.sleep(i * i);// 1000 mil==1 second\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tdbDetail = mapQrCode.get(tid);\n\n\t\t\tif (dbDetail.getProcessPayment().equalsIgnoreCase(\n\t\t\t\t\tWebServiceConstants.PROCESS_PAYMENT_NOT_DONE)) {\n\t\t\t\tif (i == 0) {\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti = i--;\n\t\t\t} else {\n\t\t\t\tcon = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tlog.info(Log4jConstants.LOG_EXIT, CLASS_NAME, METHOD_NAME);\n\n\t\treturn dbDetail;\n\t}", "@GET\n @ApiOperation(\"Get process' wait conditions\")\n @javax.ws.rs.Path(\"/{instanceId}/waits\")\n @Produces(MediaType.APPLICATION_JSON)\n @WithTimer\n public ProcessWaitEntry getWait(@ApiParam @PathParam(\"instanceId\") UUID instanceId) {\n ProcessKey pk = assertKey(instanceId);\n return processWaitManager.getWait(pk);\n }", "int waitAndGetResult() throws CommandException;", "private void createStagingPrivateInstance() throws Exception\r\n\t{\r\n\t\t//TODO stop public jboss and grid service -- do not bother now --\r\n\r\n\t\tfinal String dropPublicDBCmd = ApplicationProperties.getValue(\"createPrivateDump\");\r\n\t\tthis.executeCommand(dropPublicDBCmd);\r\n\r\n\t\tfinal String createPubliDumpCmd = ApplicationProperties.getValue(\"dropStagingDB\");\r\n\t\tthis.executeCommand(createPubliDumpCmd);\r\n\r\n\t\tfinal String createPublicDB = ApplicationProperties.getValue(\"createStagingDB\");\r\n\t\tthis.executeCommand(createPublicDB);\r\n\t\t//TODO start public jboss and grid service -- do not bother now --\r\n\t}", "private void waitForPersistence() {\n Iterator<Integer> waitTimes = SetupControllerConstants.PERSISTENCE_CREATION_WAIT_TIME\r\n .iterator();\r\n while (true) {\r\n Response result = null;\r\n try {\r\n result = ServiceLoadBalancer.loadBalanceRESTOperation(Service.PERSISTENCE, \"generatedb\",\r\n String.class,\r\n client -> ResponseWrapper\r\n .wrap(HttpWrapper.wrap(client.getService().path(client.getApplicationURI())\r\n .path(client.getEndpointURI()).path(\"finished\")).get()));\r\n } catch (NotFoundException notFound) {\r\n log.info(\"No persistence found.\", notFound);\r\n } catch (LoadBalancerTimeoutException timeout) {\r\n log.info(\"Persistence call timed out.\", timeout);\r\n } catch (NullPointerException npe) {\r\n log.info(\"ServiceLoadBalancerResult was null!\");\r\n }\r\n\r\n if (result != null && Boolean.parseBoolean(result.readEntity(String.class))) {\r\n \t\tresult.close();\r\n \t break;\r\n }\r\n\r\n try {\r\n \tint nextWaitTime = SetupControllerConstants.PERSISTENCE_CREATION_MAX_WAIT_TIME;\r\n \tif (waitTimes.hasNext()) {\r\n \t\tnextWaitTime = waitTimes.next();\r\n \t}\r\n log.info(\"Persistence not reachable. Waiting for {}ms.\", nextWaitTime);\r\n Thread.sleep(nextWaitTime);\r\n } catch (InterruptedException interrupted) {\r\n log.warn(\"Thread interrupted while waiting for persistence to be available.\", interrupted);\r\n }\r\n }\r\n }", "public static PostgresResultParameterProcessor getInstance() {\n return instance;\n }", "private void waitForAConnection() throws Exception { Wait for either the sql statement to throw an error or the\n // fifo writer to throw an error\n //\n while (!isStopped()){\n data.fifoOpener.join(1000);\n //check if SQL Proces is still running has exited throw Error\n \n if(!checkSqlProcessRunning(data.sqlProcess)){\n throw new Exception(\"Ingres SQL process has stopped\");\n }\n \n \n if (data.fifoOpener.getState() == Thread.State.TERMINATED)\n break;\n \n try{\n data.sqlRunner.checkExcn();\n }\n catch (Exception e){\n // We need to open a stream to the fifo to unblock the fifo writer\n // that was waiting for the sqlRunner that now isn't running\n data.fifoOpener.join();\n logError(\"Make sure user has been granted the FILE privilege.\");\n logError(\"\");\n throw e;\n }\n \n try{\n data.fifoOpener.checkExcn();\n }\n catch (Exception e){\n throw e;\n }\n }\n \n data.fifoStream = data.fifoOpener.getFifoStream();\n \n logDetailed(\"Opened fifo file \" + data.fifoFilename + \" for writing.\");\n }", "public void testGetInstance()\n\t{\n\t\tdbm = ResultsDbManager.getInstance(this.getContext());\n\t\tassertTrue(\"getInstance should not return null.\", dbm != null);\n\t\tassertTrue(\"getInstance w/o args should not return null now.\", ResultsDbManager.getInstance() != null);\n\t}", "protected static SequenceRawUpdater getInstance()\n throws DBException, DLALoggingException, ConfigException,\n KeyNotFoundException, CacheException {\n if (instance == null) {\n instance = new SequenceRawUpdater();\n }\n return instance;\n }", "WORKER getWorker();", "default public T waitUntilNotNullAndGet() throws InterruptedException {\n\t\treturn ObjectUtils.waitUntilNotNullAndGet(this);\n\t}", "public static DBUtil getInstance() {\n\t\tif (instance == null) {\n//\t\t\tlogger.log(Level.INFO, \"creating instance\");\n\t\t\tinstance = new DBUtil();\n\t\t}\n\t\treturn instance;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test successful retrieval of milestones
@Test public void retrieveMilestonesTest() { }
[ "@Test\r\n public void TestMilestoneCrud() throws JsonProcessingException {\r\n Map<String, Object> prerequisiteMap = TestDataPreRequisites.createMilestonePrerequisite();\r\n Long id = insertGpiPoint();\r\n testAddMilestonApi(id);\r\n testDeleteMilestoneApi(id);\r\n deleteGpiPoint(id);\r\n findAllMilestone();\r\n }", "private void consMilestonesJX(HttpServletRequest req, HttpServletResponse resp) throws IOException {\n\n\t\tPrintWriter out \t\t= resp.getWriter();\n\t\tJSONObject returnJSON \t= new JSONObject();\n\t\t\n\t\tJSONArray milestonesesJSON = new JSONArray();\n\t\t\n\t\ttry {\n\t\t\t// Request \n\t\t\t//\n\t\t\tString idStr \t\t\t\t= ParamUtil.getString(req, \"ids\");\n\t\t\tDate since\t \t\t\t\t= ParamUtil.getDate(req, \"milestoneDateSince\", getDateFormat(req), null);\n\t\t\tDate until\t \t\t\t\t= ParamUtil.getDate(req, \"milestoneDateUntil\", getDateFormat(req), null);\n\t\t\tInteger idMilestoneType \t= ParamUtil.getInteger(req, Milestones.MILESTONETYPE, -1);\n\t\t\tInteger idMilestoneCategory = ParamUtil.getInteger(req, Milestones.MILESTONECATEGORY, -1);\n\t\t\tString milestonePending \t= ParamUtil.getString(req, \"milestonePending\");\n\t\t\t\n\t\t\tInteger[] ids \t\t\t\t= StringUtil.splitStrToIntegers(idStr);\n\t\t\t\n\t\t\tList<Project> projects \t\t\t\t= null;\n\t\t\tMilestonetype milestonetype \t\t= null;\n\t\t\tMilestonecategory milestonecategory = null;\n\t\t\t\n\t\t\t// Get projects\n\t\t\tif (ids != null) {\n\t\t\t\tProjectLogic projectLogic = new ProjectLogic(getSettings(req), getResourceBundle(req));\n\t\t\t\tprojects = projectLogic.consList(ids, null, null, null); \n\t\t\t}\n\t\t\t\n\t\t\t// Get milestone type\n\t\t\tif (idMilestoneType != -1) {\n\t\t\t\tmilestonetype = new Milestonetype(idMilestoneType);\n\t\t\t}\n\t\t\t\n\t\t\t// Get milestone category\n\t\t\tif (idMilestoneCategory != -1) {\n\t\t\t\tmilestonecategory = new Milestonecategory(idMilestoneCategory);\n\t\t\t}\n\t\t\t\n\t\t\tif (projects == null || projects.isEmpty()) {\n\t\t\t\treturnJSON = info(getResourceBundle(req), StringPool.INFORMATION, \"data_not_found\", returnJSON);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\t// Declare logic\n\t\t\t\tMilestoneLogic milestoneLogic = new MilestoneLogic();\n\t\t\t\t\n\t\t\t\t// Get milestones\n\t\t\t\t//\n\t\t\t\tList<String> joins = new ArrayList<String>();\n\t\t\t\tjoins.add(Milestones.PROJECT);\n\t\t\t\tjoins.add(Milestones.MILESTONETYPE);\n\t\t\t\tjoins.add(Milestones.MILESTONECATEGORY);\n\t\t\t\t\n\t\t\t\t// Logic\n\t\t\t\tList<Milestones> milestones = milestoneLogic.filter(projects, milestonetype, milestonecategory, since, until, milestonePending, Milestones.PLANNED, Constants.ASCENDENT, joins);\n\n\t\t\t\t// Response\n\t\t\t\t//\n\t\t\t\tif (ValidateUtil.isNotNull(milestones)) {\n\t\t\t\t\t\n\t\t\t\t\tfor (Milestones milestone : milestones) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tJSONObject milestoneJSON = new JSONObject();\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Set data\n\t\t\t\t\t\tmilestoneJSON.put(\"projectId\", milestone.getProject().getIdProject());\n\t\t\t\t\t\t\n\t\t\t\t\t\tmilestoneJSON.put(\"projectName\", ValidateUtil.isNotNull(milestone.getProject().getProjectName()) ? \n\t\t\t\t\t\t\t\tmilestone.getProject().getProjectName() : StringPool.BLANK);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tmilestoneJSON.put(\"projectShortName\", ValidateUtil.isNotNull(milestone.getProject().getChartLabel()) ? \n\t\t\t\t\t\t\tmilestone.getProject().getChartLabel() : StringPool.BLANK);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (milestone.getMilestonetype() != null && ValidateUtil.isNotNull(milestone.getMilestonetype().getName())) {\n\t\t\t\t\t\t\tmilestoneJSON.put(\"milestoneTypeName\", milestone.getMilestonetype().getName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tmilestoneJSON.put(\"milestoneTypeName\", StringPool.BLANK);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (milestone.getMilestonecategory() != null && ValidateUtil.isNotNull(milestone.getMilestonecategory().getName())) {\n\t\t\t\t\t\t\tmilestoneJSON.put(\"milestoneCategoryName\", milestone.getMilestonecategory().getName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tmilestoneJSON.put(\"milestoneCategoryName\", StringPool.BLANK);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tmilestoneJSON.put(\"name\", ValidateUtil.isNotNull(milestone.getName()) ? \n\t\t\t\t\t\t\t\tmilestone.getName() : StringPool.BLANK);\n\t\t\t\t\t\t\n\t\t\t\t\t\tmilestoneJSON.put(Milestones.DESCRIPTION, ValidateUtil.isNotNull(milestone.getDescription()) ? \n\t\t\t\t\t\t\t\tmilestone.getDescription() : StringPool.BLANK);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (milestone.getPlanned() != null) {\n\t\t\t\t\t\t\tmilestoneJSON.put(\"planned\", DateUtil.format(getResourceBundle(req), milestone.getPlanned()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tmilestoneJSON.put(\"planned\", StringPool.BLANK);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (milestone.getEstimatedDate() != null) {\n\t\t\t\t\t\t\tmilestoneJSON.put(\"estimated\", DateUtil.format(getResourceBundle(req), milestone.getEstimatedDate()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tmilestoneJSON.put(\"estimated\", StringPool.BLANK);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (milestone.getAchieved() != null) {\n\t\t\t\t\t\t\tmilestoneJSON.put(\"actual\", DateUtil.format(getResourceBundle(req), milestone.getAchieved()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tmilestoneJSON.put(\"actual\", StringPool.BLANK);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tmilestonesesJSON.add(milestoneJSON);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturnJSON.put(\"milestones\", milestonesesJSON);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tout.print(returnJSON);\n\t\t}\n\t\tcatch (Exception e) { ExceptionUtil.evalueExceptionJX(out, req, getResourceBundle(req), LOGGER, e); }\n\t\tfinally { out.close(); }\n\t}", "public void milestones() throws Exception {\n\t\t\n\t\tSession session = SessionFactoryUtil.getInstance().getCurrentSession();\n\t\tTransaction tx = null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\ttx = session.beginTransaction();\n\t\t\n\t\t\t// Declare logics\n\t\t\tNotificationLogic notificationLogic = new NotificationLogic();\n\t\t\t\n\t\t\t// Declare DAOs\n\t\t\tMilestoneDAO milestoneDAO = new MilestoneDAO(session);\n\t\t\t\n\t\t\t// Get milestones\n\t\t\tList<Milestones> milestones = milestoneDAO.findForNotify();\n\t\t\t\n\t\t\t// Set roles \n\t\t\t//\n\t\t\tList<String> roles = new ArrayList<String>();\n\n\t\t\tif (ValidateUtil.isNotNull(milestones) && milestones.get(0).getProject() != null &&\n\t\t\t\t\tmilestones.get(0).getProject().getPerformingorg().getCompany() != null &&\n (milestones.get(0).getProject().getDisable() == null || !milestones.get(0).getProject().getDisable())) {\n\t\t\t\t\n\t\t\t\t// Get settings\n\t\t\t\tHashMap<String, String> settings = SettingUtil.getSettings(session, milestones.get(0).getProject().getPerformingorg().getCompany());\n\n // TODO 28/10/2014 jordi ripoll el idioma de las notificaciones se modificara en el nuevo desarrollo\n // Set bundle\n //\n String[] locale = SettingUtil.getString(settings, Settings.SettingType.LOCALE).split(StringPool.UNDERLINE);\n\n resourceBundle = ResourceBundle.getBundle(\"es.sm2.openppm.front.common.openppm\", new Locale(locale[0], locale[1]));\n\n // Set role\n roles.add(Profile.PROJECT_MANAGER.toString());\n\n // Set another role by check\n\t\t\t\tif (SettingUtil.getBoolean(settings, NotificationType.MILESTONE_PMO)) {\n\t\t\t\t\troles.add(Profile.PMO.toString());\n\t\t\t\t}\n\n for (Milestones milestone : milestones) {\n\n // Set subject\n String subject \t= new ParamResourceBundle(NotificationType.MILESTONE.getSubject(),\n ValidateUtil.isNotNull(milestone.getName()) ? milestone.getName() : StringPool.BLANK,\n milestone.getProject().getProjectName()).toString(resourceBundle);\n\n // Set body\n String body = new ParamResourceBundle(NotificationType.MILESTONE.getBody(),\n createStrongTextWithHTML(ValidateUtil.isNotNull(milestone.getName()) ? milestone.getName() : StringPool.BLANK),\n createStrongTextWithHTML(ValidateUtil.isNotNull(milestone.getNotificationText()) ? milestone.getNotificationText() : StringPool.BLANK)).toString(resourceBundle);\n\n // Set contacts\n //\n Hashtable<Integer, Contact> contactsHash = setContacts(session, milestone.getProject(), roles);\n\n // Create notifications\n\t\t\t\t\tif (Constants.STATUS_CONTROL.equals(milestone.getProject().getStatus())) {\n\t\t\t\t\t\tnotificationLogic.createNotification(session, subject, body, NotificationType.MILESTONE, new ArrayList<Contact>(contactsHash.values()));\n\t\t\t\t\t}\n }\n }\n\n\t\ttx.commit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tif (tx != null) {\n\t\t\t\ttx.rollback();\n\t\t\t}\n\t\t\tthrow e;\n\t\t}\n\t\tfinally {\n\t\t\tSessionFactoryUtil.getInstance().close();\n\t\t}\n\t}", "public Milestones getMilestones() {\n if (getMilestones == null)\n getMilestones = new Milestones(jsBase + \".milestones()\");\n\n return getMilestones;\n }", "public void setMilestonesSet(List<CompletedMilestone> list) {\r\n milestonesSet = list;\r\n }", "@Test\n public void test_getMilestoneId() {\n long value = 1L;\n instance.setMilestoneId(value);\n\n assertEquals(\"'getMilestoneId' should be correct.\",\n value, instance.getMilestoneId());\n }", "@Then(\"^Validate project table against pivotal project$\")\n public void allInformationOfPivotalTrackerProjectsShouldBeDisplayedInProjectTableWidgetOfMach() {\n JsonPath jsonPath = resources.getResponse().jsonPath();\n// assertEquals(jsonPath.get(\"name\"), tableProjectValues.get(\"name\"));\n// assertEquals(jsonPath.get(\"current_iteration_number\"), tableProjectValues.get(\"current_iteration\"));\n// assertEquals(jsonPath.get(\"week_start_day\"), tableProjectValues.get(\"week_start_date\"));\n assertEquals(jsonPath.get(\"name\"), \"AT01 project-01\");\n assertEquals(jsonPath.get(\"week_start_day\"), \"Monday\");\n }", "public Collection getMilestoneList(String strComplete, String fromDate, String toDate, String strUserGroup) throws SQLException\r\n {\r\n ArrayList a = new ArrayList();\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n try\r\n {\r\n StringBuffer sqlCommand = new StringBuffer();\r\n sqlCommand.append(\"SELECT P.project_ID, P.Name as PROJECTNAME, M.Name as MILESTONENAME, M.complete, to_char(M.Base_finish_date,'dd/mm/yy') as BASEDATE, \");\r\n sqlCommand.append(\" to_char(M.Plan_finish_date,'dd/mm/yy') AS PLANDATE, M.description, P.code\");\r\n sqlCommand.append(\" FROM MileStone M, Project P\");\r\n if (\"-1\".equals(strComplete) )/*show all milestones*/\r\n {\r\n sqlCommand.append(\" WHERE (P.Project_ID = M.Project_ID)\");\r\n }\r\n else\r\n {\r\n if (\"0\".equals(strComplete)) {// incomplete\r\n sqlCommand.append(\" WHERE (P.Project_ID = M.Project_ID) AND (M.Complete = \" + strComplete + \")\");\r\n }\r\n else {// complete milestone, closed projects aren't counted\r\n sqlCommand.append(\" WHERE (P.Project_ID = M.Project_ID) AND (P.status <> 1) AND (M.Complete = \" + strComplete + \")\");\r\n }\r\n }\r\n if (!Constants.ALL.equals(strUserGroup))\r\n sqlCommand.append(\" AND P.group_name LIKE '\" + strUserGroup + \"'\");\r\n\r\n \r\n// sqlCommand.append(\" AND (((M.Plan_finish_date >= to_date('\" + fromDate + \"','dd/mm/yy' ))\");\r\n// sqlCommand.append(\" AND (M.Plan_finish_date <= to_date('\" + toDate + \"','dd/mm/yy' ))\");\r\n sqlCommand.append(\" AND ((1=1 \").append(SqlUtil.genDateConstraint(\"M.Plan_finish_date\", fromDate, toDate));\r\n sqlCommand.append(\" AND (M.Plan_finish_date is not NULL))\");\r\n// sqlCommand.append(\" OR ((M.Base_finish_date >= to_date('\" + fromDate + \"','dd/mm/yy' ))\");\r\n// sqlCommand.append(\" AND (M.Base_finish_date <= to_date('\" + toDate + \"','dd/mm/yy' ))\");\r\n sqlCommand.append(\" OR (1=1 \").append(SqlUtil.genDateConstraint(\"M.Base_finish_date\", fromDate, toDate));\r\n sqlCommand.append(\" AND (M.Plan_finish_date is NULL)))\");\r\n sqlCommand.append(\" ORDER BY M.Project_ID\");\r\n\r\n System.out.println(\"ProjectDetailEJB.getMilestoneList(): SQL = \" + sqlCommand.toString());\r\n\r\n if (ds == null) ds = conPool.getDS();\r\n con = ds.getConnection();\r\n stmt = con.createStatement();\r\n rs = stmt.executeQuery(sqlCommand.toString());\r\n while (rs.next())\r\n {\r\n MilestoneInfo milestone = new MilestoneInfo();\r\n milestone.setProjectID(rs.getInt(\"project_ID\"));\r\n milestone.setProjectName(rs.getString(\"PROJECTNAME\"));\r\n milestone.setName(rs.getString(\"MILESTONENAME\"));\r\n milestone.setBaseFinishDate((rs.getString(\"BASEDATE\") == null) ? \"\" : rs.getString(\"BASEDATE\"));\r\n milestone.setPlanFinishDate((rs.getString(\"PLANDATE\") == null) ? \"\" : rs.getString(\"PLANDATE\"));\r\n milestone.setDescription((rs.getString(\"DESCRIPTION\") == null) ? \"\" : rs.getString(\"DESCRIPTION\"));\r\n milestone.setProjectCode(rs.getString(\"CODE\"));\r\n milestone.setStatus(rs.getString(\"COMPLETE\"));\r\n a.add(milestone);\r\n }\r\n\r\n System.out.println(\"ProjectDetailEJB.getMilestoneList(): a.size() = \" + a.size());\r\n\r\n rs.close();\r\n stmt.close();\r\n }\r\n catch (SQLException ex)\r\n {\r\n System.out.println(\"SQLException occurs in ProjectDetailEJB.getMilestoneList().\" + ex.getMessage());\r\n ex.printStackTrace();\r\n }\r\n catch (Exception ex)\r\n {\r\n showError(ex);\r\n ex.printStackTrace();\r\n }\r\n finally\r\n {\r\n if (rs != null) rs.close();\r\n if (stmt != null) stmt.close();\r\n if (con != null) con.close();\r\n }\r\n return a;\r\n }", "public void setInvoiceMilestones(List<InvoiceMilestone> invoiceMilestones) {\n this.invoiceMilestones = invoiceMilestones;\n }", "public String getMilestoneId()\n {\n String milestoneId;\n //---------------------\n milestoneId = \"ninguna\";\n\n\n if(\n (!Blackboard.firstMilestoneAccomplished) &&\n (beliefs.puzzle[0][0] == 1) &&\n (beliefs.puzzle[0][1] == 2) &&\n (beliefs.puzzle[0][2] == 3) &&\n (beliefs.puzzle[0][3] == 4)\n )\n {\n milestoneId = \"primeraMilestone\";\n }//end if\n\n if(\n (!Blackboard.secondMilestoneAccomplished) &&\n (beliefs.puzzle[0][0] == 1) &&\n (beliefs.puzzle[0][1] == 2) &&\n (beliefs.puzzle[0][2] == 3) &&\n (beliefs.puzzle[0][3] == 4) &&\n (beliefs.puzzle[1][0] == 5) &&\n (beliefs.puzzle[1][1] == 6) &&\n (beliefs.puzzle[1][2] == 7) &&\n (beliefs.puzzle[1][3] == 8)\n )\n {\n milestoneId = \"segundaMilestone\";\n }//end if\n\n if(\n (!Blackboard.thirdMilestoneAccomplished) &&\n (beliefs.puzzle[0][0] == 1) &&\n (beliefs.puzzle[0][1] == 2) &&\n (beliefs.puzzle[0][2] == 3) &&\n (beliefs.puzzle[0][3] == 4) &&\n (beliefs.puzzle[1][0] == 5) &&\n (beliefs.puzzle[1][1] == 6) &&\n (beliefs.puzzle[1][2] == 7) &&\n (beliefs.puzzle[1][3] == 8) &&\n (beliefs.puzzle[2][0] == 9) &&\n (beliefs.puzzle[3][0] == 13)\n )\n {\n milestoneId = \"terceraMilestone\";\n }//end if\n\n if(\n (!Blackboard.finalMilestoneAccomplished) &&\n (beliefs.puzzle[0][0] == 1) &&\n (beliefs.puzzle[0][1] == 2) &&\n (beliefs.puzzle[0][2] == 3) &&\n (beliefs.puzzle[0][3] == 4) &&\n (beliefs.puzzle[1][0] == 5) &&\n (beliefs.puzzle[1][1] == 6) &&\n (beliefs.puzzle[1][2] == 7) &&\n (beliefs.puzzle[1][3] == 8) &&\n (beliefs.puzzle[2][0] == 9) &&\n (beliefs.puzzle[2][1] == 10) &&\n (beliefs.puzzle[2][2] == 11) &&\n (beliefs.puzzle[2][3] == 12) &&\n (beliefs.puzzle[3][0] == 13) &&\n (beliefs.puzzle[3][1] == 14) &&\n (beliefs.puzzle[3][2] == 15)\n )\n {\n milestoneId = \"finalMilestone\";\n }//end if\n\n return milestoneId;\n }", "@Test\n public void destiny2GetPublicMilestoneContentTest() {\n Long milestoneHash = null;\n InlineResponse20056 response = api.destiny2GetPublicMilestoneContent(milestoneHash);\n\n // TODO: test validations\n }", "@Test\n public void canGetProjectsForOrganisation() {\n Long orgID = 709814L; //existing vertec Organisation\n String uri = baseURI + \"/organisation/\" + orgID + \"/projects\";\n\n ProjectsForAddressEntry pfo = getFromVertec(uri, ProjectsForAddressEntry.class).getBody();\n assertEquals(\"Got wrong organisation\", orgID, pfo.getOrganisationId());\n assertTrue(\"Deutsche Telekom\".equals(pfo.getOrganisationName()));\n\n assertTrue(2 <= pfo.getProjects().size());\n assertEquals(pfo.getProjects().get(0).getV_id().longValue(), 2073414L);\n assertEquals(pfo.getProjects().get(1).getV_id().longValue(), 16909140L);\n\n List<JSONPhase> phasesForProj1 = pfo.getProjects().get(0).getPhases();\n List<JSONPhase> phasesForProj2 = pfo.getProjects().get(1).getPhases();\n\n assertEquals(\"Wrong phases gotten\", phasesForProj1.size(), 2); //project inactve so should not change in the future,\n assertEquals(\"Wrong phases gotten\", phasesForProj2.size(), 3); //but if these assertions fail check on vertec how many phases the project has\n\n\n assertEquals(2073433L, phasesForProj1.get(0).getV_id().longValue());\n assertEquals(2073471L, phasesForProj1.get(1).getV_id().longValue());\n\n assertEquals(16909162L, phasesForProj2.get(0).getV_id().longValue());\n assertEquals(17092562L, phasesForProj2.get(1).getV_id().longValue());\n assertEquals(17093158L, phasesForProj2.get(2).getV_id().longValue());\n\n assertTrue(pfo.getProjects().get(0).getTitle().equals(\"T-Mobile, Internet Architect\"));\n assertFalse(pfo.getProjects().get(0).getActive());\n assertTrue(pfo.getProjects().get(0).getCode().equals(\"C11583\"));\n assertEquals(pfo.getProjects().get(0).getClientRef().longValue(), 709814L);\n assertEquals(pfo.getProjects().get(0).getCustomerId(), null);\n assertEquals(pfo.getProjects().get(0).getLeader_ref().longValue(), 504354L);\n //type not uses\n //currency not used\n assertTrue(pfo.getProjects().get(0).getCreationDate().equals(\"2008-08-27T14:22:47\"));\n //modifiedDate will change so check is not very useful here\n\n //phases\n JSONPhase phase = phasesForProj1.get(1);\n assertFalse(phase.getActive());\n assertTrue(phase.getDescription().equals(\"Proposal\"));\n assertTrue(phase.getCode().equals(\"10_PROPOSAL\"));\n assertEquals(3, phase.getStatus());\n assertTrue(phase.getSalesStatus().contains(\"30\"));\n assertTrue(phase.getExternalValue().equals(\"96,000.00\"));\n assertTrue(phase.getStartDate().equals(\"\"));\n assertTrue(phase.getEndDate().equals(\"\"));\n assertTrue(phase.getOfferedDate().equals(\"2008-08-27\"));\n assertTrue(phase.getCompletionDate().equals(\"\"));\n assertTrue(phase.getLostReason().contains(\"suitable resource\"));\n assertTrue(phase.getCreationDate().equals(\"2008-08-27T14:25:38\"));\n assertTrue(phase.getRejectionDate().equals(\"2008-10-31\"));\n\n assertEquals(504354, phase.getPersonResponsible().longValue());\n }", "@Test\n public void fetchItems()\n {\n assertTrue(timelineDataProvider.fetchItems(getOldestItem(), 10).size()==10);\n\n }", "public void setMilestone(java.lang.String milestone) {\n this.milestone = milestone;\n }", "public Pert setMilestones(String milestones) {\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n js.append(String.format(Locale.US, \".milestones(%s)\", wrapQuotes(milestones)));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, \".milestones(%s)\", wrapQuotes(milestones)));\n js.setLength(0);\n }\n return this;\n }", "@Test\n public void testCtor() {\n instance = new MilestoneDTO();\n\n assertEquals(\"'milestoneId' should be correct.\", 0L, TestsHelper.getField(instance, \"milestoneId\"));\n assertNull(\"'milestoneName' should be correct.\", TestsHelper.getField(instance, \"milestoneName\"));\n }", "public List<TaskMaster> retrieveTaskByMilestoneId(Long milestoneId);", "public List<Milestones> findAllMilestoneBymtid(long stuid){\n return mf.findMilestonesBymtid(stuid);\n }", "@Test\n public void test_setMilestoneId() {\n long value = 1L;\n instance.setMilestoneId(value);\n\n assertEquals(\"'setMilestoneId' should be correct.\",\n value, TestsHelper.getField(instance, \"milestoneId\"));\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the PerfDownload field.
public void setPerfDownload(gw.lang.Blob value);
[ "public void setDownloaded(java.lang.Long value) {\n this.downloaded = value;\n }", "public void setDownloads(int downloads){\n this.downloads =downloads;\n }", "public trans.encoders.tordnsel.Tordnsel.Builder setDownloaded(java.lang.Long value) {\n validate(fields()[2], value);\n this.downloaded = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public final void setDownload(boolean download) {\n\t\tthis.download = download;\n\t}", "public void setDownloadPath(String downloadPath);", "public void setDownloadtime(Integer downloadtime) {\n this.downloadtime = downloadtime;\n }", "public void setDownloadTime(long downloadTime) {\n\t\tthis.downloadTime = downloadTime;\n\t}", "public void setDownloadCallback(FileCache.FileDownload downloadCallback)\n\t{\n\t\tthis.downloadCallback = downloadCallback;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public gw.lang.Blob getPerfDownload();", "public void setDownloadBandwidth(int bw);", "public void setPerf(Perf perf) {\n\t\tthis.perf = perf;\n\t}", "public void setDownloadpath(String downloadpath) {\n this.downloadpath = downloadpath;\n }", "public void setDownloadid(Long downloadid) {\r\n\t\tthis.downloadid = downloadid;\r\n\t}", "public void onDownloadChange(Download download);", "public void setDownloadFinish(Date downloadFinish) {\n logger.trace(\"[IN] setDownloadFinish\");\n this.downloadFinish = downloadFinish;\n logger.trace(\"[OUT] setDownloadFinish\");\n }", "public void setDownloadExecutor(ExecutorService downloadExecutor) {\n logger.trace(\"[IN] setDownloadExecutor\");\n this.downloadExecutor = downloadExecutor;\n logger.trace(\"[OUT] setDownloadExecutor\");\n }", "public void setDownloadUrl(String downloadUrl) {\n this.downloadUrl = downloadUrl == null ? null : downloadUrl.trim();\n }", "void setNumberOfFilesDownloaded(long downloadedFiles);", "public void setMaxDownloadSpeed(long maxDownloadSpeed);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method completeLap this method is used to complete a single lap in the race. It takes in the average lap time and generates probability for each lap event. The occuring lap events are printed out to the screen and the affected time is added to the current lap time
private void completeLap(int avgLapTime, int lapNo) { RNG generator = new RNG(1,9); // 9 exclusive RNG overtakingGenerator = new RNG(10,21); // 21 exclusive RNG percentageGenerator = new RNG(1,101); // 101 exclusive Validation validator = new Validation(); for(int i = 0; i < getDrivers().getSize(); i++) { if(getDrivers().getDriver(i).getEligibleToRace()) // if eligible { int updatedLapTime = getDrivers().getDriver(i).getAccumulatedTime() + avgLapTime; int timeAffected = 0; String driverSpecialSkill = getDrivers().getDriver(i).getSpecialSkill(); if(driverSpecialSkill.equalsIgnoreCase("braking") || driverSpecialSkill.equalsIgnoreCase("cornering")) // if have braking and cornering skills { timeAffected = generator.generateRandomNo(); System.out.println(getDrivers().getDriver(i).getName() + " has used " + driverSpecialSkill + " to reduce lap " + lapNo + " time by " + timeAffected + "secs"); updatedLapTime -= timeAffected; // change lap time } else if((lapNo % 3 == 0) && driverSpecialSkill.equalsIgnoreCase("overtaking")) { timeAffected = overtakingGenerator.generateRandomNo(); System.out.println(getDrivers().getDriver(i).getName() + " has used " + driverSpecialSkill + " to reduce lap " + lapNo + " time by " + timeAffected + "secs"); updatedLapTime -= timeAffected; // change lap time } int minorMechanicalProb = percentageGenerator.generateRandomNo(); int majorMechanicalProb = percentageGenerator.generateRandomNo(); int unrecovarableMechanicalProb = percentageGenerator.generateRandomNo(); if(validator.isNumberBetween(1, 5, minorMechanicalProb)) // 5% chance of minor mechanical fault { timeAffected = 20; System.out.println(getDrivers().getDriver(i).getName() + " has suffered a minor mechanical fault to increase lap " + lapNo + " time by " + timeAffected + " secs"); updatedLapTime += timeAffected; // change lap time } else if(validator.isNumberBetween(1, 3, majorMechanicalProb)) // 3% chance of major mechanical fault { timeAffected = 120; System.out.println(getDrivers().getDriver(i).getName() + " has suffered a major mechanical fault to increase lap " + lapNo + " time by " + timeAffected + " secs"); updatedLapTime += timeAffected; // change lap time } else if(validator.isNumberBetween(1, 1, unrecovarableMechanicalProb)) // 1% chance of unrecoverable mechanical fault { System.out.println(getDrivers().getDriver(i).getName() + " has suffered an unrecoverable mechanical fault and is no longer a part of the race"); getDrivers().getDriver(i).setEligibleToRace(false); // not eligible to race anymore } getDrivers().getDriver(i).setAccumulatedTime(updatedLapTime); } } }
[ "public void addLap() {\n\n\t\t\n\t\tString timeNumbers = (\"Lap \" + lapCount + \" :\"+ hours_String_Holder + \":\" + minutes_String_Holder + \":\" + seconds_String_Holder);\n\t\tlapCount++;\n\t\tlistData.addElement(timeNumbers);\n\t}", "public abstract void logLap(int currentLap);", "public void addLap(Long lap) {\n laps.add(lap);\n }", "public long lap(String name) {\n long time = 0;\n if (running) {\n time = System.currentTimeMillis();\n laps.add(new Lap(time - this.lapTime, name));\n this.lapTime = time;\n }\n return time;\n }", "public void setLapCounter(byte laps) {\n this.lapCounter = laps;\n }", "public void setLapTime(int index,int time)\n {\n venues.get(index).setAverageLapTime(time);\n }", "public void Ramparts()\n {\n \t\n \tdouble getTime = 15 - Timer.getMatchTime();\n \t\n \tdouble timePhase1 = .3;\n \tdouble timePhase2 = 3.5;\n \tdouble timePhase3 = 5.5;\n \tdouble timePhase4 = 8.0;\n\n \tif (getTime >= timePhase4) {\n\t\t\tRobot.pitch.adjustPitchPID(0);\t\t\t//TODO:\tSet the PID amount based on where we believe we need it to make the shot.\n\t\t\tRobotMap.driveLeft.set(0);\n\t \tRobotMap.driveRight.set(0);\n\t\t\tdone_Defense = true;\n\t\t} else if (getTime >= timePhase3) {\n\t\t\tRobot.pitch.adjustPitchPID(500);\t\t\t//TODO:\tSet the PID amount based on where we believe we need it to make the shot.\n\t\t\tRobotMap.driveLeft.set(.4);\n\t \tRobotMap.driveRight.set(.4);\n\t\t} else if (getTime >= timePhase2) {\n\t\t\tRobot.pitch.adjustPitchPID(-1500);\t\t\t//TODO:\tSet the PID amount based on where we believe we need it to make the shot.\n\t\t\tRobotMap.driveLeft.set(1);\n\t \tRobotMap.driveRight.set(1);\n\t\t} else if (getTime >= timePhase1)\t{\n\t\t\t//System.out.println(\"Ramp Phase 2\");\n\t\t\tRobotMap.driveLeft.set(1);\n\t \tRobotMap.driveRight.set(1);\n \t\tRobot.pitch.adjustPitchPID(0);\t\t\t\t//TODO: Set the PID amount based on the needed angle for continuing to pass the ramprts.\n \t} else {\n \t\t//System.out.println(\"Ramp Phase 1\");\n \t\t//Robot.pitch.adjustPitchPID(1300);\n //RobotMap.pitchTalonR.setEncPosition(0);\n \t\tRobotMap.driveLeft.set(.2);\n \tRobotMap.driveRight.set(.2);\n\n \t}\n \t\n \t\n\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"LapTime(time=\" + time + \")\";\n\t}", "public long getLapMilliseconds() {\n if (this.lapTime != null) {\n return this.getFinalTime() - this.lapTime;\n }\n return 0;\n }", "@Override\n\t\tpublic final double time() throws Throwable {\n\t\t\tinit();\n\t\t\ttimer.lap();\n\t\t\ttimed();\n\t\t\tdouble time = timer.lap();\n\t\t\tcleanup();\n\t\t\treturn time;\n\t\t}", "public void RoughTerrain()\n {\n \tSystem.out.println(\"Run RoughTerrain\");\n \tdouble getTime = 15 - Timer.getMatchTime();\n \t\n \t\n \tdouble timePhase1 = .3;\n \tdouble timePhase2 = 2.5;\n \tdouble timePhase3 = 5.5;\n \tdouble timePhase4 = 7.0;\n \t\n \tif (getTime >= timePhase4) {\n \t\t//System.out.println(\"Ramp Phase done\");\n\t\t\tRobot.pitch.adjustPitchPID(0);\t\t\t//TODO:\tSet the PID amount based on where we believe we need it to make the shot.\n\t\t\tRobotMap.driveLeft.set(0);\n\t \tRobotMap.driveRight.set(0);\n\t\t\tdone_Defense = true;\n\t\t} else if (getTime >= timePhase3) {\n\t\t\tRobotMap.driveLeft.set(.5);\n\t \tRobotMap.driveRight.set(.5);\n\t\t} else if (getTime >= timePhase2) {\n\t\t\tRobotMap.driveLeft.set(1);\n\t \tRobotMap.driveRight.set(1);\n\t\t} else if (getTime >= timePhase1)\t{\n\t\t\t//System.out.println(\"Ramp Phase 2\");\n\t\t\tRobotMap.driveLeft.set(1);\n\t \tRobotMap.driveRight.set(1);\n \t\tRobot.pitch.adjustPitchPID(0);\t\t\t\t//TODO: Set the PID amount based on the needed angle for continuing to pass the ramprts.\n \t} else {\n \t\t\n //RobotMap.pitchTalonR.setEncPosition(0);\n \t\tRobotMap.driveLeft.set(.2);\n \tRobotMap.driveRight.set(.2);\n \tRobotMap.driveLeft2.set(-.2);\n \tRobotMap.driveRight2.set(-.2);\n\t\t\t\t\t\t//TODO: Set the PID amount based on the needed angle for climbing the ramparts\n \t}\n\n }", "@Override\r\n\tpublic double pointsEarned() {\r\n\t\treturn (this.laptime1 + this.laptime2 + this.laptime3 + this.laptime4 + this.laptime5);\r\n\t}", "public void updateGrade() throws SimulationStopException{\r\n /*if(realtime){\r\n double[] pos1 = gps.getPos();\r\n \r\n double []pos2 = gps.getPos();\r\n double product = (6378100)*Math.PI/18000;\r\n grade = (pos1[2]-pos2[2])/\r\n Math.sqrt(Math.pow((pos1[1]-pos2[1])*product,2) +\r\n Math.pow((pos1[0]-pos2[0])*product,2));\r\n }*/\r\n if(time.isRunning()){\r\n\r\n try {\r\n \t//calculate grade\r\n \tif(index!=0){\r\n grade = ((roadData[altIndex][index] - roadData[altIndex][index-1])/\r\n (roadData[distIndex][index] - roadData[distIndex][index-1]));\r\n \t}\r\n \r\n // calculate orientation (used for wind and turns)\r\n /* Understandable version...\r\n * product = 60/0.5399555*1000\r\n *\r\n * distLat = (tempLat - lat)*product;\r\n * distLon = (tempLon - lon)*product*Math.cos((tempLat + lat)/2*Math.PI/180);\r\n * carAngle = atan(distLon/distLat) + PI/2\r\n * */\r\n \r\n carAngle = Math.atan((roadData[lonIndex][index]-roadData[lonIndex][index+1])\r\n \t\t*Math.cos((roadData[latIndex][index]+roadData[latIndex][index+1])/2*Math.PI/180)/\r\n (roadData[latIndex][index]-roadData[latIndex][index+1])) + Math.PI/2;\r\n while(carAngle>Math.PI*2){\r\n \tcarAngle-=Math.PI*2;\r\n }\r\n\r\n index++;\r\n segsLeft--;\r\n // if we hit a control point, stop for ctrlTimeLength seconds of time\r\n if(roadData[distIndex][index]>ctrlPts[ctrlIndex]&&ctrlIndex<=ctrlPts.length){\r\n time.ctrlPointHit(ctrlTimeLength);\r\n System.out.println(\"Control Point: \" + roadData[distIndex][index]);\r\n ctrlIndex++;\r\n }\r\n }\r\n catch (IndexOutOfBoundsException e) {\r\n throw new SimulationStopException(\"Simulation stopped at control point \"+ctrlIndex);\r\n // Is this message right!?\r\n }\r\n }\r\n }", "@Test\n public void completeLabour() throws Exception {\n final Date lCompleteDate = new Date();\n iService.complete( COMPLETE_LABOUR_KEY, lCompleteDate );\n\n // check that the labour stage is now complete\n SchedLabour lSchedLabour = new SchedLabour( COMPLETE_LABOUR_KEY );\n lSchedLabour.assertLabourStage( RefLabourStageKey.COMPLETE );\n\n // check that the labour role's hours and dates were auto-filled ith 0 and the passed in date\n // respectively\n SchedLabourRole lSchedLabourRole = new SchedLabourRole( COMPLETE_LABOUR_ROLE_KEY );\n lSchedLabourRole.assertActualHours( 0.0 );\n lSchedLabourRole.assertAdjustedBillingHours( 0.0 );\n lSchedLabourRole.assertActualStartDate( lCompleteDate );\n lSchedLabourRole.assertActualEndDate( lCompleteDate );\n }", "private void appendLapTimes(StringBuilder sb, Competitor c) {\n \t\tint i = 0;\n \t\tfor (; i < c.getLaps().size(); i++) {\n \t\t\tsb.append(Formater.formatColumns(c.getLaps().get(i).getTotal())\n \t\t\t\t\t+ Formater.COLUMN_SEPARATOR);\n \t\t}\n \t\t/*\n \t\t * Must add additional ';' if the competitors nbr of laps is less than\n \t\t * the maximum nbr of laps ran by any competitor\n \t\t */\n \t\tfor (; i < maxLaps; i++) {\n \t\t\tsb.append(Formater.COLUMN_SEPARATOR);\n \t\t}\n \t}", "private void boardComplete() {\n\t\tthis.printBoard();\n\t\tSystem.out.println(\"Total step: \" + this.totalStep);\n\t\tlong endTime = System.currentTimeMillis();\n\t\tlong totalTime = endTime - Main.startTime;\n\t\tSystem.out.println(\"Run time: \" + totalTime + \"ms\");\n\t\tSystem.exit(0);\n\t}", "public long predictRunTime() {\n\n long predictedTime;\n\n double sampleMeanX = getSampleMeanX(laps.size());\n double sampleMeanY = getSampleMeanY();\n\n double slope = getSlope(sampleMeanX, sampleMeanY);\n\n double yIntercept = getYIntercept(sampleMeanX, sampleMeanY, slope);\n\n predictedTime = (long) ((slope * runLaps) + yIntercept);\n\n return predictedTime;\n\n }", "public void writeLapIntoDb(String date, long timestamp, long time, int lapNumber, long configId, long carId){\n factory.initializeDB();\n Lap lapForDB = null;\n if(racetype.equals(\"Acceleration\")) {\n\n if(acc_lap_written == 0 && time > 0){\n if(acc_timestamp != 0) {\n lapForDB = new Lap(null, date,timestamp, timestamp - acc_timestamp, lapNumber + 1, raceId, configId, carId);\n sendLapToServer(configId, time);\n factory.initializeDB();\n }\n else{\n lapForDB = new Lap(null, date, timestamp, time, lapNumber + 1, raceId, configId, carId);\n }\n acc_lap_written = 1;\n }\n else if(acc_lap_written == 0 && time < 1){\n lapForDB = new Lap(null, date, timestamp, null, lapNumber + 1, raceId, configId, carId);\n }\n else {\n acc_timestamp = timestamp;\n acc_lap_written = 0;\n }\n if(lapForDB != null) {\n factory.getDao(DaoTypes.LAP).insert(lapForDB);\n }\n }\n if(racetype.equals(\"Skit Pad\")) {\n\n }\n if(racetype.equals(\"Endurance\") || racetype.equals(\"AutoX\") || racetype.equals(\"Testing\")){\n if (time > 0) {\n lapForDB = new Lap(null, date, timestamp, time, lapNumber + 1, raceId, configId, carId);\n sendLapToServer(configId, time);\n factory.initializeDB();\n } else {\n lapForDB = new Lap(null, date, timestamp, null, lapNumber + 1, raceId, configId, carId);\n }\n factory.getDao(DaoTypes.LAP).insert(lapForDB);\n }\n factory.getDaoSession().clear();\n factory.closeDb();\n }", "public void reAssignExeTime(){\r\n\t\tdouble deadlineRatio = deadline/baseM;\r\n//\t\tSystem.out.println(deadlineRatio + \" \" + deadline + \" \" + baseM);\r\n\t\tfor(Cloudlet cl:cloudletList){\r\n\t\t\tif(cl.getAst() != 0){\r\n\t\t\t\tdouble exeTemp = cl.getAft() - cl.getAst();\r\n\t\t\t\tcl.setAft(cl.getAft() * deadlineRatio);\r\n\t\t\t\tcl.setAst(cl.getAft() - exeTemp);\r\n\t\t\t}\r\n\t\t}\r\n//\t\tfor(Cloudlet cl:cloudletList){\r\n//\t\t\tSystem.out.println(\"cloudletId:\" + cl.getCloudletId() + \" vmId:\" + cl.getVmId() + \" ast:\" + cl.getAst() + \" aft:\" + cl.getAft() + \" exeTime:\" + (cl.getAft() - cl.getAst()) +\" level:\" + cl.getLevel());\r\n//\t\t}\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column sys_company_role.updated_at
public Long getUpdatedAt() { return updatedAt; }
[ "@Generated(value = \"org.mybatis.generator.api.MyBatisGenerator\", date = \"2020-04-12T12:59:05.835+09:00\", comments = \"Source field: USER.updatedTime\")\r\n public String getUpdatedtime() {\r\n return updatedtime;\r\n }", "public Timestamp getAccountUpdatedDatetime() {\r\n\t\treturn accountUpdatedDatetime;\r\n\t}", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "public Date getUpdated_at() {\n return updated_at;\n }", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Date getUpdatedAt() {\n return (Date) getAttributeInternal(UPDATEDAT);\n }", "public Timestamp getupdateddate() {\n return (Timestamp) getAttributeInternal(UPDATEDDATE);\n }", "public Timestamp getUpdatedDate() {\r\n return (Timestamp) getAttributeInternal(UPDATEDDATE);\r\n }", "public Timestamp getLastUpdatedAt() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDAT);\n }", "public Date getUpdatedonutc() {\n return updatedonutc;\n }", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "public Date getUpdatedOn() {\n return updatedOn;\n }", "Date getUpdatedDate();", "@Basic( optional = false )\r\n\t@Column( name = \"updated_date\", nullable = false )\r\n\tpublic Date getUpdatedDate() {\r\n\t\treturn this.updatedDate;\r\n\t\t\r\n\t}", "public OffsetDateTime getLastUpdatedOn() {\n return this.lastUpdatedOn;\n }", "public OffsetDateTime lastModifiedUtc() {\n return this.innerProperties() == null ? null : this.innerProperties().lastModifiedUtc();\n }", "public Integer getUpdateTimeUtc() {\r\n return updateTimeUtc;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Decompiling method: getXHi Signature: ()D Max stack: 2, locals: 1, params: 1 Code length: 5 bytes, Code offset: 2061 Line Number Table found: 1 entries Parameter 0 added: Name this Type Lsun/awt/geom/Crossings; At 0 5 Range 0 4 Init 0 fixed RetValue 1 added: Name Type D At 0 5 Range 0 4 Init 0 fixed
public final double getXHi() { /* 38 */return xhi; }
[ "public static Object exch_xy(Object... arg) {\nUNSUPPORTED(\"2vxya0v2fzlv5e0vjaa8d414\"); // static inline point exch_xy(point p)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"c0j3k9xv06332q98k2pgpacto\"); // point r;\nUNSUPPORTED(\"60cojdwc2h7f0m51s9jdwvup7\"); // r.x = p.y;\nUNSUPPORTED(\"evp2x66oa4s1tlnc0ytxq2qbq\"); // r.y = p.x;\nUNSUPPORTED(\"a2hk6w52njqjx48nq3nnn2e5i\"); // return r;\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}", "public static Object exch_xy(Object... arg) {\r\nUNSUPPORTED(\"2vxya0v2fzlv5e0vjaa8d414\"); // static inline point exch_xy(point p)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"c0j3k9xv06332q98k2pgpacto\"); // point r;\r\nUNSUPPORTED(\"60cojdwc2h7f0m51s9jdwvup7\"); // r.x = p.y;\r\nUNSUPPORTED(\"evp2x66oa4s1tlnc0ytxq2qbq\"); // r.y = p.x;\r\nUNSUPPORTED(\"a2hk6w52njqjx48nq3nnn2e5i\"); // return r;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}", "@Unused\n@Original(version=\"2.38.0\", path=\"lib/common/arrows.c\", name=\"arrow_gen_type\", key=\"ruebmb0rzoin79tmkp4o357x\", definition=\"static pointf arrow_gen_type(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)\")\npublic static Object arrow_gen_type(Object... arg) {\nUNSUPPORTED(\"6eekmrou08qiz0zielzyhyn4g\"); // static pointf arrow_gen_type(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"9rrbht5x8qg377l1khejt2as2\"); // int f;\nUNSUPPORTED(\"aed0rb6bb02eluj3o0ugcfqv9\"); // arrowtype_t *arrowtype;\nUNSUPPORTED(\"ml2ttdehp7agi83yijbgk49r\"); // f = flag & ((1 << 4) - 1);\nUNSUPPORTED(\"f036frj7aawxz98ctbodsj666\"); // for (arrowtype = Arrowtypes; arrowtype->type; arrowtype++) {\nUNSUPPORTED(\"6qf8zxk5crelbhxfi42gd00l3\"); // \tif (f == arrowtype->type) {\nUNSUPPORTED(\"epoo24e6zcp2uaje5ukce1yvh\"); // \t u.x *= arrowtype->lenfact * arrowsize;\nUNSUPPORTED(\"bcfjvd5s3jub6wo9roe0xmn0g\"); // \t u.y *= arrowtype->lenfact * arrowsize;\nUNSUPPORTED(\"5wc1a7bb8k1d528kxw2uchm7c\"); // \t (arrowtype->gen) (job, p, u, arrowsize, penwidth, flag);\nUNSUPPORTED(\"3wwns14fz356e6p4s8byp3d6i\"); // \t p.x = p.x + u.x;\nUNSUPPORTED(\"3rzld1v7nkscibpukz3bdox3v\"); // \t p.y = p.y + u.y;\nUNSUPPORTED(\"ai3czg6gaaxspsmndknpyvuiu\"); // \t break;\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\nUNSUPPORTED(\"91xduilalb406jjyw2g1i07th\"); // return p;\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}", "public static Object exch_xyf(Object... arg) {\r\nUNSUPPORTED(\"8qamrobrqi8jsvvfrxkimrsnw\"); // static inline pointf exch_xyf(pointf p)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"cvexv13y9fq49v0j4d5t4cm9f\"); // pointf r;\r\nUNSUPPORTED(\"60cojdwc2h7f0m51s9jdwvup7\"); // r.x = p.y;\r\nUNSUPPORTED(\"evp2x66oa4s1tlnc0ytxq2qbq\"); // r.y = p.x;\r\nUNSUPPORTED(\"a2hk6w52njqjx48nq3nnn2e5i\"); // return r;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}", "@Unused\n@Original(version=\"2.38.0\", path=\"lib/common/arrows.c\", name=\"arrow_gen\", key=\"8ss8m9a0p5v0yx2oqggh0rx57\", definition=\"void arrow_gen(GVJ_t * job, emit_state_t emit_state, pointf p, pointf u, double arrowsize, double penwidth, int flag)\")\npublic static Object arrow_gen(Object... arg) {\nUNSUPPORTED(\"ag73i6wbc5lb0d46ul40euyur\"); // void arrow_gen(GVJ_t * job, emit_state_t emit_state, pointf p, pointf u, double arrowsize, double penwidth, int flag)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"84llcpxtvxaggx841n2t03850\"); // obj_state_t *obj = job->obj;\nUNSUPPORTED(\"2fvgbj82ham8m0frx5hn9dyi\"); // double s;\nUNSUPPORTED(\"66oipfshtfj4imr4j2x2drib0\"); // int i, f;\nUNSUPPORTED(\"ecr1y7qy0ikxkidkdfvwv88ir\"); // emit_state_t old_emit_state;\nUNSUPPORTED(\"c3lqudp40feg72zp97ngqkww9\"); // old_emit_state = obj->emit_state;\nUNSUPPORTED(\"3ook7gsw0rr7b6uwm9f5a5dtx\"); // obj->emit_state = emit_state;\nUNSUPPORTED(\"exvy7jlggpvu1zhz08fo1jbvi\"); // /* Dotted and dashed styles on the arrowhead are ugly (dds) */\nUNSUPPORTED(\"em34eidklzv0dobtybvgz9gwu\"); // /* linewidth needs to be reset */\nUNSUPPORTED(\"4g8oyutwebzej18aaiz74zb9k\"); // gvrender_set_style(job, job->gvc->defaultlinestyle);\nUNSUPPORTED(\"eertb1vvqryb308a1uuff8s0\"); // gvrender_set_penwidth(job, penwidth);\nUNSUPPORTED(\"d5vh8if7unojun6hmulj4il7u\"); // /* generate arrowhead vector */\nUNSUPPORTED(\"5yc3jb0utnnay4x88h644puhz\"); // u.x -= p.x;\nUNSUPPORTED(\"egh8lzpdfrza6k11lopupxykp\"); // u.y -= p.y;\nUNSUPPORTED(\"bh7ueu6dokefdmej3xz79c7ty\"); // /* the EPSILONs are to keep this stable as length of u approaches 0.0 */\nUNSUPPORTED(\"9s182w6wdwxo0pwu9hljlyofe\"); // s = 10. / (sqrt(u.x * u.x + u.y * u.y) + .0001);\nUNSUPPORTED(\"8qxmhdlg9d49yg9gxkjw043\"); // u.x += (u.x >= 0.0) ? .0001 : -.0001;\nUNSUPPORTED(\"4vxtvwh3x5b3i33sdyppe3trq\"); // u.y += (u.y >= 0.0) ? .0001 : -.0001;\nUNSUPPORTED(\"bwi3f8xk8t2nbzy5tjtgeewjl\"); // u.x *= s;\nUNSUPPORTED(\"do56zsbrbn95ovnoqu6zzjjmw\"); // u.y *= s;\nUNSUPPORTED(\"3zei0bi63grn37qiuxn09n7hz\"); // /* the first arrow head - closest to node */\nUNSUPPORTED(\"a2n8aqfq0cqpx8elstmfn9oq6\"); // for (i = 0; i < 4; i++) {\nUNSUPPORTED(\"8sgyt5ym5jt73oknb4tdj2zpl\"); // f = (flag >> (i * 8)) & ((1 << 8) - 1);\nUNSUPPORTED(\"5vg3retgvi5ekir9xbw8j4zoq\"); // \tif (f == (0))\nUNSUPPORTED(\"ai3czg6gaaxspsmndknpyvuiu\"); // \t break;\nUNSUPPORTED(\"biq7xz2uj7ksjrqn6tqr9glzj\"); // p = arrow_gen_type(job, p, u, arrowsize, penwidth, f);\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\nUNSUPPORTED(\"b1bkq4eyrmepbxyb3qiuhi8b8\"); // obj->emit_state = old_emit_state;\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}", "@Unused\n@Original(version=\"2.38.0\", path=\"lib/common/arrows.c\", name=\"arrow_bb\", key=\"2u4vcl57jl62dmf8fy80ioppm\", definition=\"boxf arrow_bb(pointf p, pointf u, double arrowsize, int flag)\")\npublic static Object arrow_bb(Object... arg) {\nUNSUPPORTED(\"67tfc7x1j056na7s6itymoeol\"); // boxf arrow_bb(pointf p, pointf u, double arrowsize, int flag)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"2fvgbj82ham8m0frx5hn9dyi\"); // double s;\nUNSUPPORTED(\"2lzsl1e035wt5epd1h8f4bn8m\"); // boxf bb;\nUNSUPPORTED(\"94ds3z1i0vt5rbv13ja90fdfp\"); // double ax,ay,bx,by,cx,cy,dx,dy;\nUNSUPPORTED(\"6r1gp4hfea5imwnuiyfuxzh6k\"); // double ux2, uy2;\nUNSUPPORTED(\"d5vh8if7unojun6hmulj4il7u\"); // /* generate arrowhead vector */\nUNSUPPORTED(\"5yc3jb0utnnay4x88h644puhz\"); // u.x -= p.x;\nUNSUPPORTED(\"egh8lzpdfrza6k11lopupxykp\"); // u.y -= p.y;\nUNSUPPORTED(\"bh7ueu6dokefdmej3xz79c7ty\"); // /* the EPSILONs are to keep this stable as length of u approaches 0.0 */\nUNSUPPORTED(\"3oao4fejxee2cop1fhd4m8tae\"); // s = 10. * arrowsize / (sqrt(u.x * u.x + u.y * u.y) + .0001);\nUNSUPPORTED(\"8qxmhdlg9d49yg9gxkjw043\"); // u.x += (u.x >= 0.0) ? .0001 : -.0001;\nUNSUPPORTED(\"4vxtvwh3x5b3i33sdyppe3trq\"); // u.y += (u.y >= 0.0) ? .0001 : -.0001;\nUNSUPPORTED(\"bwi3f8xk8t2nbzy5tjtgeewjl\"); // u.x *= s;\nUNSUPPORTED(\"do56zsbrbn95ovnoqu6zzjjmw\"); // u.y *= s;\nUNSUPPORTED(\"alix1e6k9ywov3xxcwxcgo1hh\"); // /* compute all 4 corners of rotated arrowhead bounding box */\nUNSUPPORTED(\"9bdmzamsx8jasbcfy2mk0v7yt\"); // ux2 = u.x / 2.;\nUNSUPPORTED(\"3k8htwk7cas9gfe4j797zk3b\"); // uy2 = u.y / 2.;\nUNSUPPORTED(\"ar2s2pmmxun5v6p0d4mlij1ro\"); // ax = p.x - uy2;\nUNSUPPORTED(\"d9cpq1pbscjxjhkyi57s76o4r\"); // ay = p.y - ux2;\nUNSUPPORTED(\"7m3bdjur8btdn3q1dzd4o751s\"); // bx = p.x + uy2;\nUNSUPPORTED(\"bhn3rg0stek17iytsy7bgbwqw\"); // by = p.y + ux2;\nUNSUPPORTED(\"ai8hjx4uwhzow4nolep1478xn\"); // cx = ax + u.x;\nUNSUPPORTED(\"15l0cqg7njm4ebimncczi9uho\"); // cy = ay + u.y;\nUNSUPPORTED(\"29117dcz6pcm4ibiebo4cemeh\"); // dx = bx + u.x;\nUNSUPPORTED(\"7s3y5imd0u3woy1d0q58g1wlh\"); // dy = by + u.y;\nUNSUPPORTED(\"7lzozmdnkd5c06cyxy2skrar5\"); // /* compute a right bb */\nUNSUPPORTED(\"4shnxc3z5z4wj3l0pl7tml625\"); // bb.UR.x = MAX(ax, MAX(bx, MAX(cx, dx)));\nUNSUPPORTED(\"2igw3asrvk13qlfbw4sgn7vxt\"); // bb.UR.y = MAX(ay, MAX(by, MAX(cy, dy)));\nUNSUPPORTED(\"7fz9fiabx9i87t8t6bgjeso5a\"); // bb.LL.x = MIN(ax, MIN(bx, MIN(cx, dx)));\nUNSUPPORTED(\"c6v20rdx0lfdvypx8l4tomnri\"); // bb.LL.y = MIN(ay, MIN(by, MIN(cy, dy)));\nUNSUPPORTED(\"5v5hh30squmit8o2i5hs25eig\"); // return bb;\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}", "public static Object x_layout(Object... arg) {\r\nUNSUPPORTED(\"d8r2vtws8cszfcp0lp6lpsdtr\"); // static int x_layout(graph_t * g, xparams * pxpms, int tries)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"b17di9c7wgtqm51bvsyxz6e2f\"); // int i;\r\nUNSUPPORTED(\"j2awxnit81f2pqilevoqwbi7\"); // int try;\r\nUNSUPPORTED(\"283tteroothnz184tu51u1gqa\"); // int ov;\r\nUNSUPPORTED(\"cdwiwyvrwcamy7fd5h8v4ctix\"); // double temp;\r\nUNSUPPORTED(\"brufdedflymb56undhz1cvxzw\"); // int nnodes = agnnodes(g);\r\nUNSUPPORTED(\"bfnlke01bf5uxsciju0esym0d\"); // int nedges = agnedges(g);\r\nUNSUPPORTED(\"9paqg2y24fs0c7o8fshi8r9gb\"); // double K;\r\nUNSUPPORTED(\"737jd5uo7xo54hyd5aao8g0aw\"); // xparams xpms;\r\nUNSUPPORTED(\"39wpa4jkntkm79hvns271igky\"); // X_marg = sepFactor (g);\r\nUNSUPPORTED(\"ad4bj6umsvvvn9iafmyfski0v\"); // if (X_marg.doAdd) {\r\nUNSUPPORTED(\"1h84n92mhpi0w98m7y86cl09m\"); // \tX_marg.x = ((X_marg.x)/(double)72); /* sepFactor is in points */\r\nUNSUPPORTED(\"9ue6xcyhni986kwvxugnza6h5\"); // \tX_marg.y = ((X_marg.y)/(double)72);\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"a0v0gkh4wqz2jv2jt98llzuzy\"); // ov = cntOverlaps(g);\r\nUNSUPPORTED(\"3uozzdw2fmo6jyna2cqdv2kri\"); // if (ov == 0)\r\nUNSUPPORTED(\"c9ckhc8veujmwcw0ar3u3zld4\"); // \treturn 0;\r\nUNSUPPORTED(\"9by4tgha5w5entt0s1o6syehv\"); // try = 0;\r\nUNSUPPORTED(\"93av4lg9y3aedu1bn00moi8mn\"); // xpms = *pxpms;\r\nUNSUPPORTED(\"17eaxg4hlw5ok3b139srbiy37\"); // K = xpms.K;\r\nUNSUPPORTED(\"w7qba5butfj3jdoufrabtvld\"); // while (ov && (try < tries)) {\r\nUNSUPPORTED(\"ctek1x05f6b50pk0hokcaoeoq\"); // \txinit_params(g, nnodes, &xpms);\r\nUNSUPPORTED(\"d36bht2b7d3wsqamzk5bp13bn\"); // \tX_ov = xParams.C * K2;\r\nUNSUPPORTED(\"7jigut7zop8kgoolvtmty4hbj\"); // \tX_nonov = (nedges*X_ov*2.0)/(nnodes*(nnodes-1));\r\nUNSUPPORTED(\"jsk5uethwlbnb51ehgow3soh\"); // \tfor (i = 0; i < xParams.loopcnt; i++) {\r\nUNSUPPORTED(\"44wdm4c0q0pht0o3u6v5i07px\"); // \t temp = cool(i);\r\nUNSUPPORTED(\"2iwdbgfwhz54bkmiukcxxvpz5\"); // \t if (temp <= 0.0)\r\nUNSUPPORTED(\"9ekmvj13iaml5ndszqyxa8eq\"); // \t\tbreak;\r\nUNSUPPORTED(\"aenxo7m2fi02ngnhda071yjwl\"); // \t ov = adjust(g, temp);\r\nUNSUPPORTED(\"9p3cpbzv9p8k1ka57xqhalk4s\"); // \t if (ov == 0)\r\nUNSUPPORTED(\"9ekmvj13iaml5ndszqyxa8eq\"); // \t\tbreak;\r\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\r\nUNSUPPORTED(\"4o9sjijafemzfi2l116taidm7\"); // \ttry++;\r\nUNSUPPORTED(\"br971gk7pewl58gm56w8ubyx2\"); // \txpms.K += K;\t\t/* increase distance */\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"82m5sgzq9tf80cg4je6sb0dt3\"); // return ov;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}", "public int geGLX()\n { return getX(); }", "public static Object user_spline(Object... arg) {\nUNSUPPORTED(\"ewvc2qr116wrkxhg4q77v0uqv\"); // static point *user_spline(attrsym_t * symptr, edge_t * e, int *np)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"bvo2it3yepiz2er9rw3uuk47s\"); // char *pos;\nUNSUPPORTED(\"7k2ifbl8vz1is0pf2z1t0o2xf\"); // int i, n, nc;\nUNSUPPORTED(\"a13x213r98q5dm6phmdpj3r2l\"); // point *ps = 0;\nUNSUPPORTED(\"ca6brvq3h4u316zi41fa1e7nl\"); // point *pp;\nUNSUPPORTED(\"4g01jt8p980itgxzog49s8ur3\"); // double x, y;\nUNSUPPORTED(\"5elka0ltgqf61uccerqfkjvvp\"); // if (symptr == NULL)\nUNSUPPORTED(\"c9ckhc8veujmwcw0ar3u3zld4\"); // \treturn 0;\nUNSUPPORTED(\"c21yig5e4hykm28ao7kpzwodl\"); // pos = agxget(e, symptr->index);\nUNSUPPORTED(\"7i9zryjmvv454i1r57dlez6kk\"); // if (*pos == '\\0')\nUNSUPPORTED(\"c9ckhc8veujmwcw0ar3u3zld4\"); // \treturn 0;\nUNSUPPORTED(\"az1jdxaqsdxumqec6q7ctjrh3\"); // n = numFields(pos);\nUNSUPPORTED(\"82fimuwp8ur9yxpbd8c89a1wb\"); // *np = n;\nUNSUPPORTED(\"bvx0cyk5fhwwsm29cbghfhcpj\"); // if (n > 1) {\nUNSUPPORTED(\"9lfsqwngk625slfuwyukwtdpy\"); // \tps = ALLOC(n, 0, point);\nUNSUPPORTED(\"49hki9cvrilnaez8dm0dbbgoq\"); // \tpp = ps;\nUNSUPPORTED(\"4x9kp7oo5ln5zpe2bhy2s9oyc\"); // \twhile (n) {\nUNSUPPORTED(\"ejpj2kxorfrlsluqdege3h70h\"); // \t i = sscanf(pos, \"%lf,%lf%n\", &x, &y, &nc);\nUNSUPPORTED(\"4mo26m3d7t9gf29k5zgh6d3dp\"); // \t if (i < 2) {\nUNSUPPORTED(\"botxh6letfus33f79p4s19719\"); // \t\tfree(ps);\nUNSUPPORTED(\"d31bxxiinmdzudo8yt1laapa1\"); // \t\tps = 0;\nUNSUPPORTED(\"9ekmvj13iaml5ndszqyxa8eq\"); // \t\tbreak;\nUNSUPPORTED(\"6t98dcecgbvbvtpycwiq2ynnj\"); // \t }\nUNSUPPORTED(\"8cjb49m5i1gwlcbb72l8kieuk\"); // \t pos = pos + nc;\nUNSUPPORTED(\"dn8a13edl8j88azhrkizcbwsx\"); // \t pp->x = (int) x;\nUNSUPPORTED(\"6qrmrrz624ilc14dax4fzkzy\"); // \t pp->y = (int) y;\nUNSUPPORTED(\"4t42c85s64mps71a1sjc7yoey\"); // \t pp++;\nUNSUPPORTED(\"704o6677xgknjexhj6bdlst8x\"); // \t n--;\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\nUNSUPPORTED(\"b0dfwpxhogdrp9mwkzc8oa9vt\"); // return ps;\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}", "public static Object user_spline(Object... arg) {\r\nUNSUPPORTED(\"ewvc2qr116wrkxhg4q77v0uqv\"); // static point *user_spline(attrsym_t * symptr, edge_t * e, int *np)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"bvo2it3yepiz2er9rw3uuk47s\"); // char *pos;\r\nUNSUPPORTED(\"7k2ifbl8vz1is0pf2z1t0o2xf\"); // int i, n, nc;\r\nUNSUPPORTED(\"a13x213r98q5dm6phmdpj3r2l\"); // point *ps = 0;\r\nUNSUPPORTED(\"ca6brvq3h4u316zi41fa1e7nl\"); // point *pp;\r\nUNSUPPORTED(\"4g01jt8p980itgxzog49s8ur3\"); // double x, y;\r\nUNSUPPORTED(\"5elka0ltgqf61uccerqfkjvvp\"); // if (symptr == NULL)\r\nUNSUPPORTED(\"c9ckhc8veujmwcw0ar3u3zld4\"); // \treturn 0;\r\nUNSUPPORTED(\"c21yig5e4hykm28ao7kpzwodl\"); // pos = agxget(e, symptr->index);\r\nUNSUPPORTED(\"7i9zryjmvv454i1r57dlez6kk\"); // if (*pos == '\\0')\r\nUNSUPPORTED(\"c9ckhc8veujmwcw0ar3u3zld4\"); // \treturn 0;\r\nUNSUPPORTED(\"az1jdxaqsdxumqec6q7ctjrh3\"); // n = numFields(pos);\r\nUNSUPPORTED(\"82fimuwp8ur9yxpbd8c89a1wb\"); // *np = n;\r\nUNSUPPORTED(\"bvx0cyk5fhwwsm29cbghfhcpj\"); // if (n > 1) {\r\nUNSUPPORTED(\"9lfsqwngk625slfuwyukwtdpy\"); // \tps = ALLOC(n, 0, point);\r\nUNSUPPORTED(\"49hki9cvrilnaez8dm0dbbgoq\"); // \tpp = ps;\r\nUNSUPPORTED(\"4x9kp7oo5ln5zpe2bhy2s9oyc\"); // \twhile (n) {\r\nUNSUPPORTED(\"ejpj2kxorfrlsluqdege3h70h\"); // \t i = sscanf(pos, \"%lf,%lf%n\", &x, &y, &nc);\r\nUNSUPPORTED(\"4mo26m3d7t9gf29k5zgh6d3dp\"); // \t if (i < 2) {\r\nUNSUPPORTED(\"botxh6letfus33f79p4s19719\"); // \t\tfree(ps);\r\nUNSUPPORTED(\"d31bxxiinmdzudo8yt1laapa1\"); // \t\tps = 0;\r\nUNSUPPORTED(\"9ekmvj13iaml5ndszqyxa8eq\"); // \t\tbreak;\r\nUNSUPPORTED(\"6t98dcecgbvbvtpycwiq2ynnj\"); // \t }\r\nUNSUPPORTED(\"8cjb49m5i1gwlcbb72l8kieuk\"); // \t pos = pos + nc;\r\nUNSUPPORTED(\"dn8a13edl8j88azhrkizcbwsx\"); // \t pp->x = (int) x;\r\nUNSUPPORTED(\"6qrmrrz624ilc14dax4fzkzy\"); // \t pp->y = (int) y;\r\nUNSUPPORTED(\"4t42c85s64mps71a1sjc7yoey\"); // \t pp++;\r\nUNSUPPORTED(\"704o6677xgknjexhj6bdlst8x\"); // \t n--;\r\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"b0dfwpxhogdrp9mwkzc8oa9vt\"); // return ps;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}", "public double getHiX() {\r\n\treturn fieldHiX;\r\n}", "@Unused\n@Original(version=\"2.38.0\", path=\"lib/common/arrows.c\", name=\"arrowOrthoClip\", key=\"5i0vg914q5v5dzz5vo7rg9omc\", definition=\"void arrowOrthoClip(edge_t* e, pointf* ps, int startp, int endp, bezier* spl, int sflag, int eflag)\")\npublic static Object arrowOrthoClip(Object... arg) {\nUNSUPPORTED(\"5cmga0193q90gs5y2r0l9ekgq\"); // void arrowOrthoClip(edge_t* e, pointf* ps, int startp, int endp, bezier* spl, int sflag, int eflag)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"y7yudkjc31udfiam6z6lkpyz\"); // pointf p, q, r, s, t;\nUNSUPPORTED(\"3kkc3p6yj8romhqyooa86wcf7\"); // double d, tlen, hlen, maxd;\nUNSUPPORTED(\"c69aoxg5blb5c27rwb7uvguna\"); // if (sflag && eflag && (endp == startp)) { /* handle special case of two arrows on a single segment */\nUNSUPPORTED(\"eb6qp4f6c1liqz5gv8yr4nt2u\"); // \tp = ps[endp];\nUNSUPPORTED(\"ecphms6syi9sh7jtisdvhb8hr\"); // \tq = ps[endp+3];\nUNSUPPORTED(\"2pzsi9r63yv2o8qeounzv6cny\"); // \ttlen = arrow_length (e, sflag);\nUNSUPPORTED(\"f4d86okjchj0qyg2roq13hufh\"); // \thlen = arrow_length (e, eflag);\nUNSUPPORTED(\"3sbhjktcu1u1avngc5ej62mw4\"); // d = DIST(p, q);\nUNSUPPORTED(\"bsdcbs5e8tkm1802lidu0jtw8\"); // \tif (hlen + tlen >= d) {\nUNSUPPORTED(\"8gpoj60hh2teibwc83s0ii79w\"); // \t hlen = tlen = d/3.0;\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\nUNSUPPORTED(\"6xtkcedj7la7fqplc0unqj0wx\"); // \tif (p.y == q.y) { /* horz segment */\nUNSUPPORTED(\"9n0q5j1nqa19z0zoz3mpmwpdv\"); // \t s.y = t.y = p.y;\nUNSUPPORTED(\"c2tle7mztwggexoad4drqjw0a\"); // \t if (p.x < q.x) {\nUNSUPPORTED(\"183kgzstrmgynznfkfj0jl3df\"); // \t\tt.x = q.x - hlen;\nUNSUPPORTED(\"7cugpgpm4lyr66kkhauqj5qvy\"); // \t\ts.x = p.x + tlen;\nUNSUPPORTED(\"6t98dcecgbvbvtpycwiq2ynnj\"); // \t }\nUNSUPPORTED(\"6q044im7742qhglc4553noina\"); // \t else {\nUNSUPPORTED(\"a8lrkw50xbjo3ntsv0r1mz5i9\"); // \t\tt.x = q.x + hlen;\nUNSUPPORTED(\"37zp6lexzsbm2vomf22x7i5r\"); // \t\ts.x = p.x - tlen;\nUNSUPPORTED(\"6t98dcecgbvbvtpycwiq2ynnj\"); // \t }\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\nUNSUPPORTED(\"4l6yfu81669thfh19tmcn44pu\"); // \telse { /* vert segment */\nUNSUPPORTED(\"bc0n1oxhmb3wgphgm1w4n9dz1\"); // \t s.x = t.x = p.x;\nUNSUPPORTED(\"d2pzq44lkkxam6rx01xnozquf\"); // \t if (p.y < q.y) {\nUNSUPPORTED(\"5k5qyffqi7gacnu4jwl6efngx\"); // \t\tt.y = q.y - hlen;\nUNSUPPORTED(\"7ppaznbfc8awmm6e9d9qzw4ms\"); // \t\ts.y = p.y + tlen;\nUNSUPPORTED(\"6t98dcecgbvbvtpycwiq2ynnj\"); // \t }\nUNSUPPORTED(\"6q044im7742qhglc4553noina\"); // \t else {\nUNSUPPORTED(\"8ohhvcqa5v7oor1gbpznb6faq\"); // \t\tt.y = q.y + hlen;\nUNSUPPORTED(\"4j6guu6e5ddqobe77kt7sbmjq\"); // \t\ts.y = p.y - tlen;\nUNSUPPORTED(\"6t98dcecgbvbvtpycwiq2ynnj\"); // \t }\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\nUNSUPPORTED(\"a4d4fgiq4l3sbeb9ud8dowkby\"); // \tps[endp] = ps[endp + 1] = s;\nUNSUPPORTED(\"db740uoo9pfyknnmi2yx0glgb\"); // \tps[endp + 2] = ps[endp + 3] = t;\nUNSUPPORTED(\"ewajj4utlr95mfmaswtc9yeiv\"); // \tspl->eflag = eflag, spl->ep = p;\nUNSUPPORTED(\"9bgf1pn9yx1vlolgcjos2emsl\"); // \tspl->sflag = sflag, spl->sp = q;\nUNSUPPORTED(\"a7fgam0j0jm7bar0mblsv3no4\"); // \treturn;\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\nUNSUPPORTED(\"5zse8mf1iyqtzzlq2txqcym6x\"); // if (eflag) {\nUNSUPPORTED(\"bpf9snlwegftq8d78l9hsz76b\"); // \thlen = arrow_length(e, eflag);\nUNSUPPORTED(\"eb6qp4f6c1liqz5gv8yr4nt2u\"); // \tp = ps[endp];\nUNSUPPORTED(\"ecphms6syi9sh7jtisdvhb8hr\"); // \tq = ps[endp+3];\nUNSUPPORTED(\"3sbhjktcu1u1avngc5ej62mw4\"); // d = DIST(p, q);\nUNSUPPORTED(\"9b0ae4jocdkvqt8r3iw39yf5d\"); // \tmaxd = 0.9*d;\nUNSUPPORTED(\"bwzkrhk431iwhs6c467tb0yh9\"); // \tif (hlen >= maxd) { /* arrow too long */\nUNSUPPORTED(\"23uwvl5a8msik1u1crb262nqj\"); // \t hlen = maxd;\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\nUNSUPPORTED(\"6xtkcedj7la7fqplc0unqj0wx\"); // \tif (p.y == q.y) { /* horz segment */\nUNSUPPORTED(\"a851ewci39wssny4nn99f4nmr\"); // \t r.y = p.y;\nUNSUPPORTED(\"a2dyb0em7hwd4qdx1u0tuc8pl\"); // \t if (p.x < q.x) r.x = q.x - hlen;\nUNSUPPORTED(\"90ksto8lyojedi0p77l4zm7x\"); // \t else r.x = q.x + hlen;\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\nUNSUPPORTED(\"4l6yfu81669thfh19tmcn44pu\"); // \telse { /* vert segment */\nUNSUPPORTED(\"4rh9lai2dcsutwg48bb2qljyg\"); // \t r.x = p.x;\nUNSUPPORTED(\"6gnp9tso58zn1rn4j7jv3i1y0\"); // \t if (p.y < q.y) r.y = q.y - hlen;\nUNSUPPORTED(\"3wd6fw8km4tp6a1p9ijk343ih\"); // \t else r.y = q.y + hlen;\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\nUNSUPPORTED(\"bxxlk6noh1kzyi93fptcz29j4\"); // \tps[endp + 1] = p;\nUNSUPPORTED(\"d3kionq4ycqr87orc5vkdnse0\"); // \tps[endp + 2] = ps[endp + 3] = r;\nUNSUPPORTED(\"4uwxjmxybnuriwua5xoo17bfa\"); // \tspl->eflag = eflag;\nUNSUPPORTED(\"25oo9o1uy5fisoodt43sio6zx\"); // \tspl->ep = q;\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\nUNSUPPORTED(\"3297fx8lk8bjyg998l9ujeeph\"); // if (sflag) {\nUNSUPPORTED(\"5slqgq5wsgplyy9uj9mg5pkrc\"); // \ttlen = arrow_length(e, sflag);\nUNSUPPORTED(\"ayxhimnpo6p08kshlux75qpcu\"); // \tp = ps[startp];\nUNSUPPORTED(\"2ydx1urmjnn1tgx6ffzsvwimx\"); // \tq = ps[startp+3];\nUNSUPPORTED(\"3sbhjktcu1u1avngc5ej62mw4\"); // d = DIST(p, q);\nUNSUPPORTED(\"9b0ae4jocdkvqt8r3iw39yf5d\"); // \tmaxd = 0.9*d;\nUNSUPPORTED(\"1uya1cfbkj8b6j38zbvdxmgrq\"); // \tif (tlen >= maxd) { /* arrow too long */\nUNSUPPORTED(\"3ydle9u127f7saxiibosc2lxs\"); // \t tlen = maxd;\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\nUNSUPPORTED(\"6xtkcedj7la7fqplc0unqj0wx\"); // \tif (p.y == q.y) { /* horz segment */\nUNSUPPORTED(\"a851ewci39wssny4nn99f4nmr\"); // \t r.y = p.y;\nUNSUPPORTED(\"7xq2f46jfu6rsd83fqyr71z26\"); // \t if (p.x < q.x) r.x = p.x + tlen;\nUNSUPPORTED(\"8gtrjqabiq8x8jl0j2eveiugg\"); // \t else r.x = p.x - tlen;\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\nUNSUPPORTED(\"4l6yfu81669thfh19tmcn44pu\"); // \telse { /* vert segment */\nUNSUPPORTED(\"4rh9lai2dcsutwg48bb2qljyg\"); // \t r.x = p.x;\nUNSUPPORTED(\"es4i2rg7sahthpreieu5hcwl7\"); // \t if (p.y < q.y) r.y = p.y + tlen;\nUNSUPPORTED(\"26o5nwhklplaxveikjpxzxoom\"); // \t else r.y = p.y - tlen;\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\nUNSUPPORTED(\"5pnx91gtz1gahdprf0syc4yk5\"); // \tps[startp] = ps[startp + 1] = r;\nUNSUPPORTED(\"3e3iux8uecaf6eu2s9q46clr5\"); // \tps[startp + 2] = q;\nUNSUPPORTED(\"bmeeipd0o72kslox40628z9gj\"); // \tspl->sflag = sflag;\nUNSUPPORTED(\"dwq656v3u8zmbqdetlo0wmyeb\"); // \tspl->sp = p;\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}", "public final double getYHi() {\n\t\t/* 42 */return yhi;\n\t}", "int getHeatCode(int x, int y);", "@Unused\n@Original(version=\"2.38.0\", path=\"lib/pathplan/shortest.c\", name=\"loadtriangle\", key=\"7vf9jtj9i8rg0cxrstbqswuck\", definition=\"static void loadtriangle(pointnlink_t * pnlap, pointnlink_t * pnlbp, \t\t\t pointnlink_t * pnlcp)\")\npublic static void loadtriangle(__ptr__ pnlap, __ptr__ pnlbp, __ptr__ pnlcp) {\nENTERING(\"7vf9jtj9i8rg0cxrstbqswuck\",\"loadtriangle\");\ntry {\n\tCArray<ST_triangle_t> trip;\n int ei;\n /* make space */\n if (Z.z().tril >= Z.z().trin)\n\tgrowtris(Z.z().trin + 20);\n trip = Z.z().tris.plus_(Z.z().tril++);\n trip.get__(0).mark = 0;\n trip.get__(0).e[0].pnl0p = (ST_pointnlink_t) pnlap;\n trip.get__(0).e[0].pnl1p = (ST_pointnlink_t) pnlbp;\n trip.get__(0).e[0].rtp = null;\n trip.get__(0).e[1].pnl0p = (ST_pointnlink_t) pnlbp;\n trip.get__(0).e[1].pnl1p = (ST_pointnlink_t) pnlcp;\n trip.get__(0).e[1].rtp = null;\n trip.get__(0).e[2].pnl0p = (ST_pointnlink_t) pnlcp;\n trip.get__(0).e[2].pnl1p = (ST_pointnlink_t) pnlap;\n trip.get__(0).e[2].rtp = null;\n for (ei = 0; ei < 3; ei++)\n\ttrip.get__(0).e[ei].lrp = trip;\n} finally {\nLEAVING(\"7vf9jtj9i8rg0cxrstbqswuck\",\"loadtriangle\");\n}\n}", "public static Object initPos(Object... arg) {\nUNSUPPORTED(\"6wuroti5ljub8qdkqwz84bll8\"); // static void initPos(Agraph_t * g)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"2jcii9cclu1dijzqekzc175pe\"); // Agnode_t *n;\nUNSUPPORTED(\"36vshotvjkc5iodgg7nq6qa2r\"); // Agedge_t *e;\nUNSUPPORTED(\"evvfote9pox5gpnsuk75gu9zi\"); // double *pvec;\nUNSUPPORTED(\"aexhdud6z2wbwwi73yppp0ynl\"); // char *p;\nUNSUPPORTED(\"3w79hfiet3147pb1ehbe0tltw\"); // point *sp;\nUNSUPPORTED(\"7hps2kejtrotcphg5gymma43b\"); // int pn;\nUNSUPPORTED(\"6717r3gljnzz5j6x8yd64vxmy\"); // attrsym_t *N_pos = (agattr(g,AGNODE,\"pos\",NULL));\nUNSUPPORTED(\"8s1tvuk5eoddac3tdw3vwm3g6\"); // attrsym_t *E_pos = (agattr(g,AGEDGE,\"pos\",NULL));\nUNSUPPORTED(\"607cie06087nzjkhdxwkh8t5x\"); // assert(N_pos);\nUNSUPPORTED(\"9pqnws9ww5w3wm6etqvhhmaag\"); // if (!E_pos) {\nUNSUPPORTED(\"b7m2ei650qyfpw37qbnbselef\"); // \tif (doEdges)\nUNSUPPORTED(\"1jx8qc7jakb79udi264irb795\"); // \t fprintf(stderr, \"Warning: turning off doEdges, graph %s\\n\",\nUNSUPPORTED(\"52cuafai1d5jpnyygo0jtwp19\"); // \t\t g->name);\nUNSUPPORTED(\"25yxh6xy9gvks3xlk4ay8ana2\"); // \tdoEdges = 0;\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\nUNSUPPORTED(\"44thr6ep72jsj3fksjiwdx3yr\"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {\nUNSUPPORTED(\"2hbtrrffbxr8fodextlckjcte\"); // \tpvec = ND_pos(n);\nUNSUPPORTED(\"4mrzu4a737x10k9m629qjvpmx\"); // \tp = agxget(n, N_pos->index);\nUNSUPPORTED(\"9fce8t386yx1ohlzh5z3v64uy\"); // \tif (p[0] && (sscanf(p, \"%lf,%lf\", pvec, pvec + 1) == 2)) {\nUNSUPPORTED(\"a8amhiqvlp5s6vz8p4u2amapy\"); // \t int i;\nUNSUPPORTED(\"e2k2y77qbvhl4ttkl82r7skpc\"); // \t for (i = 0; i < NDIM; i++)\nUNSUPPORTED(\"54fe965wvv1n2dqk9v5lqtfe\"); // \t\tpvec[i] = pvec[i] / PSinputscale;\nUNSUPPORTED(\"7yhr8hn3r6wohafwxrt85b2j2\"); // \t} else {\nUNSUPPORTED(\"apu2a6fysp0sm0oh3eg9sdx3g\"); // \t fprintf(stderr, \"could not find pos for node %s in graph %s\\n\",\nUNSUPPORTED(\"5ii3q9tejxvznaewo80u58jc6\"); // \t\t n->name, g->name);\nUNSUPPORTED(\"6f1y0d5qfp1r9zpw0r7m6xfb4\"); // \t exit(1);\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\nUNSUPPORTED(\"a7cnx8vpthir8tg7wq0gmkyfp\"); // \tND_coord_i(n).x = (ROUND((ND_pos(n)[0])*72));\nUNSUPPORTED(\"56q0neer7h6q9r2hlewrmtpac\"); // \tND_coord_i(n).y = (ROUND((ND_pos(n)[1])*72));\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\nUNSUPPORTED(\"3x2r45g8h3r71u5v8lu9etnq6\"); // if (doEdges) {\nUNSUPPORTED(\"attp4bsjqe99xnhi7lr7pszar\"); // \tfor (n = agfstnode(g); n; n = agnxtnode(g, n)) {\nUNSUPPORTED(\"7yvyv13me3s32qvq3gfbyt283\"); // \t for (e = agfstout(g, n); e; e = agnxtout(g, e)) {\nUNSUPPORTED(\"cas0s66j5xm7zv7rfmut5t5ua\"); // \t\tif ((sp = user_spline(E_pos, e, &pn)) != 0) {\nUNSUPPORTED(\"b1l3m7l581iaaysgzy59rlnqp\"); // \t\t clip_and_install(e, sp, pn);\nUNSUPPORTED(\"bgz7miqt6x7s9we62suaznam2\"); // \t\t free(sp);\nUNSUPPORTED(\"a47jqpic91ky93e1ohxv590l5\"); // \t\t} else {\nUNSUPPORTED(\"4gzgwztxcj3c7qtlt3xuwnsq1\"); // \t\t fprintf(stderr,\nUNSUPPORTED(\"2mti2jcwd7nic33dut8daaxli\"); // \t\t\t \"Missing edge pos for edge %s - %s in graph %s\\n\",\nUNSUPPORTED(\"7tw8ugnhfmrhmd69kh0nfu7p2\"); // \t\t\t n->name, e->head->name, g->name);\nUNSUPPORTED(\"btkmdyvgs2b3io3tacfuo3ht6\"); // \t\t exit(1);\nUNSUPPORTED(\"6eq5kf0bj692bokt0bixy1ixh\"); // \t\t}\nUNSUPPORTED(\"6t98dcecgbvbvtpycwiq2ynnj\"); // \t }\nUNSUPPORTED(\"flupwh3kosf3fkhkxllllt1\"); // \t}\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}", "public int getX() { return px; }", "@Unused\n@Original(version=\"2.38.0\", path=\"lib/common/arrows.c\", name=\"arrowStartClip\", key=\"q7y4oxn0paexbgynmtg2zmiv\", definition=\"int arrowStartClip(edge_t* e, pointf * ps, int startp, \t\t int endp, bezier * spl, int sflag)\")\npublic static int arrowStartClip(ST_Agedge_s e, CArray<ST_pointf> ps, int startp, int endp, ST_bezier spl, int sflag) {\nENTERING(\"q7y4oxn0paexbgynmtg2zmiv\",\"arrowStartClip\");\ntry {\n final ST_inside_t inside_context = new ST_inside_t();\n final CArray<ST_pointf> sp = CArray.<ST_pointf>ALLOC__(4, ST_pointf.class);\n double slen;\n \n final double[] slen2 = new double[] {0};\n slen = arrow_length(e, sflag);\n slen2[0] = slen * slen;\n spl.sflag = sflag;\n spl.sp.___(ps.get__(startp));\n if (endp > startp && DIST2(ps.get__(startp), ps.get__(startp + 3)) < slen2[0]) {\n \tstartp += 3;\n }\n sp.get__(0).___(ps.get__(startp+3));\n sp.get__(1).___(ps.get__(startp+2));\n sp.get__(2).___(ps.get__(startp+1));\n sp.get__(3).___(spl.sp); /* ensure endpoint starts inside */\n \n inside_context.a_p = sp.plus_(3);\n inside_context.a_r = slen2;\n bezier_clip(inside_context, arrows__c.inside, sp, false);\n \n ps.get__(startp).___(sp.get__(3));\n ps.get__(startp+1).___(sp.get__(2));\n ps.get__(startp+2).___(sp.get__(1));\n ps.get__(startp+3).___(sp.get__(0));\n return startp;\n} finally {\nLEAVING(\"9eellwhg4gsa2pdszpeqihs2d\",\"arrowEndClip\");\n}\n}", "@SuppressWarnings(\"rawtypes\")\n\tpublic Crossings(double d, double d1, double d2, double d3) {\n\t\t/* 22 *//* super(); */\n\t\t/* 17 */limit = 0;\n\t\t/* 18 */yranges = new double[10];\n\t\t/* 222 */tmp = new Vector();\n\t\t/* 23 */xlo = d;\n\t\t/* 24 */ylo = d1;\n\t\t/* 25 */xhi = d2;\n\t\t/* 26 */yhi = d3;\n\t\t/* 27 *//* return; */\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of titles department unit unit groups where titlesId = &63; and departmentId = &63; and unitId = &63; and unitGroupId = &63;.
public int countByTitlesDepartmentUnitNoneUnitGroup(long titlesId, long departmentId, long unitId, long unitGroupId) throws com.liferay.portal.kernel.exception.SystemException;
[ "public int countByTitlesDepartmentUnitUnitGroup(long titlesId,\n\t\tlong departmentId, long unitId, long unitGroupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic int getTitlesUnitUnitGroupsCount()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _titlesUnitUnitGroupLocalService.getTitlesUnitUnitGroupsCount();\n\t}", "public vn.com.ecopharma.emp.model.TitlesDepartmentUnitUnitGroup fetchByTitlesDepartmentUnitUnitGroup(\n\t\tlong titlesId, long departmentId, long unitId, long unitGroupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public int countByG_UT(long groupId, String urlTitle);", "public int countByDepartmentUnitUnitGroup(long departmentId, long unitId,\n\t\tlong unitGroupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "long countUnit(@Param(\"group\")String group,@Param(\"unitName\")String unitName);", "public int countByUnitGroup(long unitGroupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public int countByUnitAndUnitGroup(long unitId, long unitGroupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.emp.model.TitlesDepartmentUnitUnitGroup create(\n\t\tlong titlesDepartmentUnitUnitGroupId);", "public vn.com.ecopharma.emp.model.TitlesDepartmentUnitUnitGroup fetchByTitlesDepartmentUnitUnitGroup(\n\t\tlong titlesId, long departmentId, long unitId, long unitGroupId,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.com.ecopharma.emp.model.TitlesDepartmentUnitUnitGroup findByTitles_First(\n\t\tlong titlesId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.emp.NoSuchTitlesDepartmentUnitUnitGroupException;", "public int countByG_UT_ST(long groupId, String urlTitle, int status);", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.emp.model.TitlesDepartmentUnitUnitGroup> titlesDepartmentUnitUnitGroups);", "public static int countByTitle_G(long groupId, String title) {\n\t\treturn getPersistence().countByTitle_G(groupId, title);\n\t}", "public int filterCountByG_UT_ST(long groupId, String urlTitle, int status);", "public int countByTitle(String title);", "public java.util.List<vn.com.ecopharma.emp.model.TitlesDepartmentUnitUnitGroup> findByTitles(\n\t\tlong titlesId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public static int countByTitle_G_U(long groupId, long userId, String title) {\n\t\treturn getPersistence().countByTitle_G_U(groupId, userId, title);\n\t}", "public vn.com.ecopharma.emp.model.TitlesDepartmentUnitUnitGroup fetchByTitles_First(\n\t\tlong titlesId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this method generates a random flight handling time for runway directors
public void handleFlight(Flight flight) { long random = 5 + (long)Math.random()*5; try { Thread.sleep(random*1000); } catch (InterruptedException e) { e.printStackTrace(); } flight.addAirportTime(random*1000); }
[ "public synchronized int setArrivalTime(){\n\t\t return random.nextInt((30-1)+1)+1;\n\n\t}", "public static double genRandomServiceTime() {\n return Simulator.randomGenerator.genServiceTime();\n }", "public int generateServiceTime()\n\t{\n\t\tmyRandom = new Random();\n\t\treturn myRandom.nextInt(this.getMyMaxTimeOfService()) + 1;\n\t}", "public double generateDropTime() {\n return LOWERLIMTIME + (Math.random() * ((UPPERLIMTIME - LOWERLIMTIME) + 1));\n\n }", "public void setSpecialTime(){\r\n Random random = new Random();\r\n specialTime1=random.nextInt(50);\r\n specialTime2=random.nextInt(50)+51;\r\n Log.d(\"specialTime1 \", specialTime1+\"\");\r\n Log.d(\"specialTime2 \", specialTime2+\"\");\r\n }", "@Override\n public long generateNewTimeToNextContract() {\n return new Random().nextInt(5);\n }", "public double nextArrivalTime() {\n return (-1 / lambda) * Math.log(1 - randomAT.nextDouble());\n }", "public String genTime(int rand) throws InterruptedException {\n start = Calendar.getInstance();\n Date time = start.getTime();\n String str = \"BPM generated : \" + rand + \", generated at :\" + dateFormat.format(time.getTime());\n return str;\n }", "public double ProcessArrivalTime()\r\n\t{\r\n\t\tdouble U = Math.random();\r\n\t\t//double lambda = 0.04;\r\n\t\tdouble lambda = 0.01;\r\n\t\tdouble V = ( -1 * (Math.log(1.0 - U)) ) / lambda; \r\n\t\treturn V;\r\n\t}", "public double nextServiceTime() {\n return (-1 / mu) * Math.log(1 - randomST.nextDouble());\n }", "public Date generateTimeFT()\n\t{\n\t\tCalendar cdr = this.cdr;//Calendar.getInstance();\n\t\tcdr.set(Calendar.HOUR_OF_DAY, 16);\n\t\tcdr.set(Calendar.MINUTE, 0);\n\t\tcdr.set(Calendar.SECOND, 0);\n\t\tlong val1=cdr.getTimeInMillis();\n\n\t\tcdr.set(Calendar.HOUR_OF_DAY, 16);\n\t\tcdr.set(Calendar.MINUTE, 45);\n\t\tcdr.set(Calendar.SECOND, 0);\n\t\tlong val2=cdr.getTimeInMillis();\n\n\t\tRandom r=new Random();\n\t\tlong randomTS=(long)(r.nextDouble()*(val2-val1))+val1;\n\t\tDate d=new Date(randomTS);\n\t\tSystem.out.println(d.toString());\n\t\treturn d;\n\t}", "private int computeReservationArrivalTime() {\n \tdouble value;\n \tdouble min = 2.0;\n \tdouble average = 15.0;\n \tdouble standardDeviation = 50.0;\n \tdo {\n \t value = random.nextGaussian() * standardDeviation + average;\n \t} \n \twhile(value <= min);\n \treturn (int)Math.round(value);\n }", "public long getRandomDuration(){\n\t\tlong randomDuration = 0; \n\t\tint randomMillisec = r.nextInt((int)twelveHrMillisec); // Generates a random duration within the 12 hour window (8am-8pm)\n\t\tint hourOfDay = Calendar.HOUR_OF_DAY; // 24 hour clock\n\t\t\n\t\tif (hourOfDay < 20 && hourOfDay >= 8) {\t\n\t\t\trandomDuration = (long)randomMillisec; \n\t\t} else if (hourOfDay < 8) {\n\t\t\trandomDuration = (8 - hourOfDay)*3600000 + randomMillisec; \n\t\t} else {\n\t\t\trandomDuration = (23 - hourOfDay + 8)*3600000 + randomMillisec; \n\t\t}\n\t\treturn randomDuration; \n\t}", "private void generate(){\n\t\tname = \"Motorbike\";\n\t\trnd = new Random();\n\t\tqSpace = 0.75;\n\t\ttankSize = 5;\n\t\ttimeToRefillIn = -1;\n\t\trefillTime = tankSize / 6;\n\t\tshoppingProb = 1;\n\t\tbrowseTime = rnd.nextInt(2)+2;\n\t\tshoppingMoney = 0;\n\t}", "public int time(){\n\t\tRandom rnd = new Random(); //objecto random\n\t\treturn ((int) (rnd.nextDouble() * 3 + 9) * 1000); // funcion de tiempo\n\t}", "public Date generateTimeHT()\n\t{\n\t\tCalendar cdr = this.cdr;//Calendar.getInstance();\n\t\tcdr.set(Calendar.HOUR_OF_DAY, 15);\n\t\tcdr.set(Calendar.MINUTE, 0);\n\t\tcdr.set(Calendar.SECOND, 0);\n\t\tlong val1=cdr.getTimeInMillis();\n\n\t\tcdr.set(Calendar.HOUR_OF_DAY, 15);\n\t\tcdr.set(Calendar.MINUTE, 45);\n\t\tcdr.set(Calendar.SECOND, 0);\n\t\tlong val2=cdr.getTimeInMillis();\n\n\t\tRandom r=new Random();\n\t\tlong randomTS=(long)(r.nextDouble()*(val2-val1))+val1;\n\t\tDate d=new Date(randomTS);\n\t\tSystem.out.println(d.toString());\n\t\treturn d;\n\t}", "static Tour rndTour() {\r\n\t\tTour tr = Tour.sequence();\r\n\t\ttr.randomize();\r\n\t\ttr.distance = tr.distance();\r\n\t\treturn tr;\r\n\t}", "public Route createRoute(long durationSec) {\n\n Route rt = null;\n\n try {\n\n ArrayList<Waypoint> wpts;\n\n int i = 0;\n\n wpts = new ArrayList<>();\n\n Random rnd = new Random();\n\n Airport firstArpt = arpts.getRndAirport(\"\");\n\n Airport arpt1 = firstArpt;\n Airport arpt2;\n\n long t = 0;\n\n while (t < durationSec) {\n arpt2 = arpts.getRndAirport(arpt1.getName());\n\n DistanceBearing distB = gc.getDistanceBearing(arpt1.getLon(), arpt1.getLat(), arpt2.getLon(), arpt2.getLat());\n\n long st = t + rnd.nextInt(600) + 300; // Delay from 300 to 900 seconds\n\n //double speed = (Math.random() * 100 + 200) / 1000; // speed from 100 to 300 m/s converted to km/s\n // Speeds in Gaussian Distro around 250 +- 50; Reflect under 100 to over 100. Mean will be 250 with stddev of about 50\n double speed = 250 + 50 * grg.nextNormalizedDouble(); \n if (speed < 100) speed += 100 + (100 - speed);\n speed = speed / 1000;\n\n long et = st + Math.round(distB.getDistance() / speed);\n\n Waypoint wpt = new Waypoint(st, arpt1.getName(), arpt2.getName(), arpt1.getId(), arpt1.getLon(), arpt1.getLat(), distB.getDistance(), distB.getBearing(), speed, et);\n wpts.add(wpt);\n\n arpt1 = arpt2;\n\n t = et;\n i++;\n }\n\n arpt2 = firstArpt;\n if (!arpt2.getName().equalsIgnoreCase(arpt1.getName())) {\n // Only add if the last airport not equal first\n DistanceBearing distB = gc.getDistanceBearing(arpt1.getLon(), arpt1.getLat(), arpt2.getLon(), arpt2.getLat());\n\n long st = t + rnd.nextInt(600) + 300; // Delay from 300 to 900 seconds\n\n double speed = (Math.random() * 100 + 200) / 1000; // speed from 100 to 300 m/s converted to km/s\n\n long et = st + Math.round(distB.getDistance() / speed);\n\n //System.out.println(st + \",\" + arpt1.getName() + \",\" + arpt1.getId() + \",\" + arpt1.getLon() + \",\" + arpt1.getLat() + \",\" + distB.getDistance() + \",\" + distB.getBearing() + \",\" + et);\n Waypoint wpt = new Waypoint(st, arpt1.getName(), arpt2.getName(), arpt1.getId(), arpt1.getLon(), arpt1.getLat(), distB.getDistance(), distB.getBearing(), speed, et);\n wpts.add(wpt);\n\n }\n\n rt = new Route(wpts);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return rt;\n\n }", "private long getRandomWaitTime() {\r\n \t\treturn (long) generator.nextInt(5000);\r\n \t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create new subject or update IMPORTANT 1. Once subject gets created then institution can't be changed
public Subject createSubject(Subject subject, Long institutionID) { if(subject.getId() == null) { // create Institution institution = mInstitutionRepository.findById(institutionID).get(); subject.setInstitution(institution); subject.setId(sequenceGeneratorService.getSequenceNumber(Subject.SUBJECT_SEQUENCE)); subject = mSubjectRepository.save(subject); } else { // update } return subject; }
[ "org.hl7.fhir.ResourceReference addNewSubject();", "private void updateSubject() {\n\n if(clientSession.isTeacherRole())\n return;\n\n LinkedTreeMap subjectMap = (LinkedTreeMap) packet.getArgument(\"subject\");\n\n Subject subject = Subject.parse(subjectMap);\n\n if(clientDatabase.updateSubject(subject)) {\n\n subjectsList(true);\n\n } else {\n\n Packet updateSubjectErrorPacket = new PacketBuilder()\n .ofType(PacketType.UPDATESUBJECT.getError())\n .build();\n\n clientRepository.sendPacketIO(channel, updateSubjectErrorPacket);\n\n }\n\n }", "Subject save(Subject subject);", "@Test\n public void fieldSubject() throws Exception {\n Document doc = new Document();\n\n // Set a value for the document's \"Subject\" built-in property.\n doc.getBuiltInDocumentProperties().setSubject(\"My subject\");\n\n // Create a SUBJECT field to display the value of that built-in property.\n DocumentBuilder builder = new DocumentBuilder(doc);\n FieldSubject field = (FieldSubject) builder.insertField(FieldType.FIELD_SUBJECT, true);\n field.update();\n\n Assert.assertEquals(field.getFieldCode(), \" SUBJECT \");\n Assert.assertEquals(field.getResult(), \"My subject\");\n\n // If we give the SUBJECT field's Text property value and update it, the field will\n // overwrite the current value of the \"Subject\" built-in property with the value of its Text property,\n // and then display the new value.\n field.setText(\"My new subject\");\n field.update();\n\n Assert.assertEquals(field.getFieldCode(), \" SUBJECT \\\"My new subject\\\"\");\n Assert.assertEquals(field.getResult(), \"My new subject\");\n\n Assert.assertEquals(\"My new subject\", doc.getBuiltInDocumentProperties().getSubject());\n\n doc.save(getArtifactsDir() + \"Field.SUBJECT.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.SUBJECT.docx\");\n\n Assert.assertEquals(\"My new subject\", doc.getBuiltInDocumentProperties().getSubject());\n\n field = (FieldSubject) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_SUBJECT, \" SUBJECT \\\"My new subject\\\"\", \"My new subject\", field);\n Assert.assertEquals(\"My new subject\", field.getText());\n }", "void setSubject(String subject);", "@Test\n public void createSubjectTest() throws Exception {\n SubjectKey userKey = getUserKey(\"jdoe\");\n IPSubject ip = new IPSubject();\n \n Subject localhost = newSubject(\"localhost\", \"IP\", \"localhost\", \"127.0.0.1/24\", \"support@ebayopensource.org\");\n SubjectKey ipKey = ip.createSubject(localhost, userKey);\n \n EntityManagerContext.open(factory);\n try {\n org.ebayopensource.turmeric.policyservice.model.Subject savedSubject =\n EntityManagerContext.get().find(\n org.ebayopensource.turmeric.policyservice.model.Subject.class, \n ipKey.getSubjectId());\n assertNotNull(savedSubject);\n } finally {\n EntityManagerContext.close();\n }\n }", "public String createNewSubject() {\n\t\tString priorSubject = this.getSelectedSubject();\n\t\t//subject selected before new subject is created\n\n\t\tString subjectName = JOptionPane.showInputDialog(\"Enter subject name: \");\n\n\t\tif(subjectName==null)\n\t\t\treturn null;\n\n\t\tif(this.validSubjectName(subjectName)) {\n\t\t\tthis.saveSubject(subjectName);\n\t\t\treturn subjectName;\n\t\t}else {\n\t\t\tJOptionPane.showMessageDialog(this, \"You haven't entered a valid subject name\");\n\t\t}\n\t\treturn null;\n\t}", "void setSubject(java.lang.String subject);", "public boolean addSelfSigned(SubjectInfo subjectInfo){\n if(myDatabase.containsValid(subjectInfo.getOrganisation() +\"-\"+ subjectInfo.getOrganisationUnit()))\n return false;\n X500Name x500Name = generateX500Name(subjectInfo);\n String serial = String.valueOf(myDatabase.getCounter());\n\n Calendar calendar = Calendar.getInstance();\n Date startDate = calendar.getTime();\n calendar.add(Calendar.YEAR, 2); // Certificate duration will be fixed at 2 years\n Date endDate = calendar.getTime();\n\n KeyPair keyPair = generateKeyPair();\n\n SubjectData subjectData = new SubjectData(keyPair.getPublic(), x500Name, serial, startDate, endDate);\n IssuerData issuerData = new IssuerData(keyPair.getPrivate(), x500Name);\n X509Certificate certificate = certificateGenerator.generateCertificate(subjectData, issuerData, true);\n\n keyStoreWriter.loadKeyStore(null, keystorePassword.toCharArray());\n keyStoreWriter.write(serial, keyPair.getPrivate(), keystorePassword.toCharArray(), certificate);\n keyStoreWriter.saveKeyStore(keystoreFile, keystorePassword.toCharArray());\n myDatabase.writeNew(true,subjectInfo.getOrganisation() + \"-\" + subjectInfo.getOrganisationUnit());\n return true;\n }", "public com.walgreens.rxit.ch.cda.POCDMT000040Subject addNewSubject()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.POCDMT000040Subject target = null;\n target = (com.walgreens.rxit.ch.cda.POCDMT000040Subject)get_store().add_element_user(SUBJECT$20);\n return target;\n }\n }", "public void addSubject(Subject s) {\n // TODO implement here\n }", "public Subject saveSubject(Subject subject){\n\t\treturn daoService.saveSubject(subject);\n\t}", "public void update(Subject subject){\n\t int id = -1;\n SqlSession session = sqlSessionFactory.openSession();\n\n try {\n id = session.update(\"Subject.update\", subject);\n\n } finally {\n session.commit();\n session.close();\n }\n System.out.println(\"update(\"+subject+\") --> updated\");\n }", "private void addSubject() {\n\n if(clientSession.isTeacherRole())\n return;\n\n LinkedTreeMap subjectMap = (LinkedTreeMap) packet.getArgument(\"subject\");\n\n Subject subject = Subject.parse(subjectMap);\n\n if(clientDatabase.addSubject(subject)) {\n\n subjectsList(true);\n\n } else {\n\n Packet addSubjectErrorPacket = new PacketBuilder()\n .ofType(PacketType.ADDSUBJECT.getError())\n .build();\n\n clientRepository.sendPacketIO(channel, addSubjectErrorPacket);\n\n }\n\n }", "public void submitSubject() {\n final EditText editText = new EditText(this);\n\n editText.setHint(R.string.defaultNameSubject);\n\n new AlertDialog.Builder(this)\n .setTitle(R.string.titleAddSubject)\n .setMessage(\"\")\n .setView(editText)\n .setPositiveButton(R.string.btnAdd, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n // Create a Subject in db\n if(subjectManager.addSubject(new Subject(0, editText.getText().toString(), idUE, false)) == -1){\n Toast.makeText(getApplicationContext(), R.string.subjectAddError, Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(), R.string.subjectAddGood, Toast.LENGTH_LONG).show();\n }\n\n updatePrint();\n }\n })\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n }\n })\n .show();\n }", "private void btnInsertSubjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnInsertSubjectActionPerformed\n Subject sbj = new Subject(); // create instance of subject to set values\n\n sbj.setSubCode(txtSubjectCode.getText()); // assignning values\n sbj.setName(txtSubjectName.getText()); // assignning values\n sbj.setSemester(Integer.parseInt(cmboSemesterNumber.getSelectedItem().toString())); // assignning values\n sbj.setCredits(Integer.parseInt(txtCredit.getText())); // assignning values\n sbj.setCourse(cmboSourseName.getSelectedItem().toString()); // assignning values\n sbj.setCourseFee(Integer.parseInt(txtCourseFee.getText())); // assignning values\n sbj.setCompulsoraTag(cmboCompusoryTag.getSelectedItem().toString()); // assignning values\n sbj.setYear(cmboYoS.getSelectedItem().toString());\n sbj.setDegreeType(cmboDegreeType.getSelectedItem().toString());\n\n if (adminOps.insetNewSubject(sbj)) {\n loadSubjectDetails(); // refresh table\n JOptionPane.showMessageDialog(this, \"Subject addedd successfully\"); // message box\n txtSubjectCode.setText(\"\"); // assignning values\n txtSubjectName.setText(\"\"); // assignning values\n txtCredit.setText(\"\"); // assignning values\n txtCourseFee.setText(\"\"); // assignning values\n } else {\n JOptionPane.showMessageDialog(this, \"Ops ! Something went wront. Please try again.\"); // message box\n }\n\n }", "public void setSubject(java.lang.String value);", "@PostMapping(\"/profile-subjects\")\n @Timed\n public ResponseEntity<ProfileSubjectDTO> createProfileSubject(@RequestBody ProfileSubjectDTO profileSubjectDTO) throws URISyntaxException {\n log.debug(\"REST request to save ProfileSubject : {}\", profileSubjectDTO);\n if (profileSubjectDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new profileSubject cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n ProfileSubjectDTO result = profileSubjectService.save(profileSubjectDTO);\n return ResponseEntity.created(new URI(\"/api/profile-subjects/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "private static Subject subjectFindCreateById(final String subjectId) \r\n throws SubjectNotFoundException, SubjectNotUniqueException {\r\n\r\n try {\r\n return SubjectFinder.findById(subjectId, true);\r\n } catch (SubjectNotFoundException snfe) {\r\n //create;\r\n \r\n HibernateSession.callbackHibernateSession(\r\n GrouperTransactionType.READ_WRITE_NEW, AuditControl.WILL_NOT_AUDIT, new HibernateHandler() {\r\n\r\n public Object callback(HibernateHandlerBean hibernateHandlerBean)\r\n throws GrouperDAOException {\r\n HibernateSession hibernateSession = hibernateHandlerBean.getHibernateSession();\r\n Session session = hibernateSession.getSession();\r\n Connection connection = ((SessionImpl)session).connection();\r\n PreparedStatement preparedStatement = null;\r\n try {\r\n\r\n //INSERT INTO SUBJECT ( SUBJECTID, SUBJECTTYPEID, NAME ) VALUES ('10000000', 'person', '10000000') \r\n String query = \"INSERT INTO SUBJECT ( SUBJECTID, SUBJECTTYPEID, NAME ) VALUES (?, 'person', ?)\";\r\n preparedStatement = connection.prepareStatement(query);\r\n preparedStatement.setString(1, subjectId);\r\n preparedStatement.setString(2, subjectId);\r\n preparedStatement.execute();\r\n \r\n //INSERT INTO SUBJECTATTRIBUTE ( SUBJECTID, NAME, VALUE, SEARCHVALUE ) VALUES ( \r\n //'10000000', 'name', 'Nancy Eggers', 'nancy eggers')\r\n //INSERT INTO SUBJECTATTRIBUTE ( SUBJECTID, NAME, VALUE, SEARCHVALUE ) VALUES ( \r\n //'10000000', 'loginid', 'Nancy Eggers', 'nancy eggers')\r\n //INSERT INTO SUBJECTATTRIBUTE ( SUBJECTID, NAME, VALUE, SEARCHVALUE ) VALUES ( \r\n //'10000000', 'description', 'Nancy Eggers', 'nancy eggers'); \r\n for (String name : new String[]{\"name\", \"loginid\", \"description\"}) {\r\n \r\n query = \"INSERT INTO SUBJECTATTRIBUTE ( SUBJECTID, NAME, VALUE, SEARCHVALUE ) VALUES ( \" +\r\n \"?, ?, ?, ?)\";\r\n preparedStatement = connection.prepareStatement(query);\r\n preparedStatement.setString(1, subjectId);\r\n preparedStatement.setString(2, name);\r\n preparedStatement.setString(3, subjectId);\r\n preparedStatement.setString(4, subjectId);\r\n preparedStatement.execute();\r\n }\r\n \r\n connection.commit();\r\n } catch (Exception e) {\r\n throw new RuntimeException(e);\r\n } finally {\r\n HibUtils.closeQuietly(preparedStatement);\r\n }\r\n return null;\r\n }\r\n \r\n });\r\n \r\n }\r\n return SubjectFinder.findById(subjectId, true);\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds an attachment to the mail.
void addAttachment(File attachment);
[ "public void addAttachment(Attachment a);", "public boolean addAttachment(Attachment file) throws Exception;", "private void addAttachment(MimeMultipart multipart, String filePath) throws MessagingException, IOException {\n\n MimeBodyPart part = new MimeBodyPart();\n File file = new File(filePath);\n try (InputStream fin = new FileInputStream(file)) {\n part.setDisposition(ATTACHMENT);\n part.setFileName(file.getName());\n Tika tika = new Tika();\n String fileContentType = tika.detect(file);\n DataHandler dataHandler = new DataHandler(new EmailAttachmentDataSource(file.getName(), fin,\n fileContentType));\n part.setDataHandler(dataHandler);\n part.setHeader(CONTENT_TYPE_HEADER, dataHandler.getContentType());\n part.setHeader(CONTENT_TRANSFER_ENCODING_HEADER, this.contentTransferEncoding);\n multipart.addBodyPart(part);\n }\n }", "public void attach( Attachment attachment );", "private void addAttachment(MimeMultipart multipart, String filePath, String contentType) throws MessagingException,\n IOException {\n\n MimeBodyPart part = new MimeBodyPart();\n File file = new File(filePath);\n try (InputStream fin = new FileInputStream(file)) {\n part.setDisposition(ATTACHMENT);\n part.setFileName(file.getName());\n DataHandler dataHandler = new DataHandler(new EmailAttachmentDataSource(file.getName(), fin, contentType));\n part.setDataHandler(dataHandler);\n part.setHeader(CONTENT_TYPE_HEADER, dataHandler.getContentType());\n part.setHeader(CONTENT_TRANSFER_ENCODING_HEADER, this.contentTransferEncoding);\n multipart.addBodyPart(part);\n }\n }", "public abstract void addAttachmentPart(AttachmentPart attachmentpart);", "void addAttachment(String id, DataHandler content);", "void addAttachmentObject(String id, Attachment content);", "public void addFileAttachment(String filename) throws MessagingException {\n\t\t// create mime body part\n\t\tMimeBodyPart aMimeBodyPart = new MimeBodyPart();\n\n\t\t// create file data source\n\t\tFileDataSource fds = new FileDataSource(filename);\n\n\t\t// set mime body part file handler and filename.\n\t\taMimeBodyPart.setDataHandler(new DataHandler(fds));\n\t\taMimeBodyPart.setFileName(fds.getName());\n\n\t\t// append the body part\n\t\tgetMimeMultipart().addBodyPart(aMimeBodyPart);\n\t}", "public boolean addEmailAttachment(EmailAttachment attachment) throws Exception {\n\t\tif (attachment.getBodyPart() == null) {\n\t\t\tboolean success = attachment.generateMimeBodyPart();\n\t\t\tif (!success) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tbodyParts.add(attachment.getBodyPart());\n\t\treturn true;\n\t}", "public void addFeedbackAttachment(Reference attachment)\n\t\t{\n\t\t\tif (attachment != null) m_feedbackAttachments.add(attachment);\n\t\t}", "public void addAttachment(DocumentItemType type, Date date, String title, String href) {\n addAttachment(type, date, title, null, null, href);\n }", "private void addAttachments(Multipart multipart) throws MessagingException {\n\t\tEnumeration<?> properties = props.keys();\n\n\t\twhile (properties.hasMoreElements()) {\n\t\t\tString key = (String) properties.nextElement();\n\n\t\t\tif ((props.getPropertyMime(key) == null) || (key.equals(Email.MAIL_CONTENT)) || (key.equals(Email.MAIL_SUBJECT))|| (props.getPropertyPrivacy(key) == true)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tbyte[] emailAttachment = props.getPropertyAttachment(key);\n\t\t\tString emailAttachmentName = null;\n\n\t\t\tif (emailAttachment == null) {\n\t\t\t\ttry {\n\t\t\t\t\temailAttachment = props.getProperty(key).getBytes(\"UTF-8\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ((emailAttachment == null) || (emailAttachment.length == 0)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tif (props.getPropertyAlternateName(key) != null) {\n\t\t\t\temailAttachmentName = props.getPropertyAlternateName(key);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\temailAttachmentName = key;\n\t\t\t}\n\n\t\t\tif (logger.isLoggable(Level.FINE)) {\n\t\t\t\tlogger.fine(Emit.messages.getString(\"AddAttachment\") + \" \" + emailAttachmentName + \",property:\" + key + \",MIME:\" + props.getPropertyMime(key) + \",length:\" + emailAttachment.length);\n\t\t\t}\n\n\t\t\tBodyPart messageBodyPart = new MimeBodyPart();\n\t\t\tByteArrayDataSource bads = new ByteArrayDataSource(emailAttachment, props.getPropertyMime(key));\n\t\t\tmessageBodyPart.setDataHandler(new DataHandler(bads));\n\t\t\tmessageBodyPart.setFileName(emailAttachmentName);\n\t\t\tmultipart.addBodyPart(messageBodyPart);\n\t\t}\n\t}", "public Attachment addAttachment(Object logId, InputStream file, String name)\n\t throws Exception;", "void sendAttachMail(String to, String subject, String content);", "public void attach(T attachment) {\n this.attchment = attachment;\n }", "public void setMimeattach(String strMimeattach, String type, String disposition, String contentID,boolean removeAfterSend) throws PageException\t{\n \t\tResource file=ResourceUtil.toResourceNotExisting(pageContext,strMimeattach);\n pageContext.getConfig().getSecurityManager().checkFileLocation(file);\n \t\tif(!file.exists())\n \t\t\tthrow new ApplicationException(\"can't attach file \"+strMimeattach+\", this file doesn't exist\");\n \t\t\n \n smtp.addAttachment(file,type,disposition,contentID,removeAfterSend);\n \t\t\n \t}", "Attachment addAttachment(AddCardAttachmentCommand command);", "public void addSubmittedAttachment(Reference attachment)\n\t\t{\n\t\t\tif (attachment != null) m_submittedAttachments.add(attachment);\n\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ To get the index of a cartLine in the list
public int getIndexOfCartLine(Long product_id) { int index = -1, i=0; for(CartLine cline : this.cartLines) { if(cline.getProduct().getId().equals(product_id)) { index= i; } i++; } return index; }
[ "private int getLineIndex(Line l) {\r\n\t\t/*\r\n\t\t * docIterator holds the document's iterator so that we may loop\r\n\t\t * over each line in the document.\r\n\t\t */\r\n\t\tIterator<Line> docIterator = document.iterator();\r\n\t\t\r\n\t\t/* line holds the current line in the document */\r\n\t\tLine line;\r\n\t\tfor(int i = 0; docIterator.hasNext(); i++) {\r\n\t\t\tline = docIterator.next();\r\n\t\t\tif(line.equals(l)) {\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "@Override\r\n public int indexOf(Cart findObject) {\r\n // finds the index\r\n LinkedCart newCart = this.head;\r\n int index = -1;\r\n while (newCart != null) {\r\n index++;\r\n if (newCart.toString().equals(findObject.toString())) {\r\n break;\r\n }\r\n // gets the next cart\r\n newCart = newCart.getNext();\r\n }\r\n return index;\r\n }", "@Override\n public PurchaseOrderLine getOrderLine(int index) {\n return orderLines.get(index);\n }", "private int getCartIndexFromProductId(String productId) {\n for (int i = 0; i < mCartItems.getValue().size(); i++)\n if (mCartItems.getValue().get(i).getId().equals(productId))\n return i;\n return -1;\n }", "public int findIndex(Product product, List<LinkedItem> list){\n\t\tfor(int i=0; i<list.size(); i++){\n\t\t\tif (list.get(i).equals(product)){\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "int getLineIndex();", "public int getIndexOfProduct(Product p){\r\n for (int i = 0; i <allProducts.size() ; i++) {\r\n if(p.equals(allProducts.get(i))){\r\n return i ;\r\n }\r\n }\r\n return -1;\r\n }", "public int getLineItem() {\n return lineItem;\n }", "@Test\n public void testIndexOf() \n {\n assertEquals(0, list1.indexOf(money1));\n assertEquals(1, list1.indexOf(money2));\n assertEquals(2, list1.indexOf(money3));\n }", "private int getPosition(Classifier cl){ \t\r\n \tfor (int i=0; i<macroClSum; i++){\r\n \t\tif (set[i] == cl) return i;\t\r\n \t}\t\r\n \treturn -1;\r\n }", "private int findShipsIndex(Ship shipToAdd)\n {\n for(int i = 0; i < allMyShips.length; i++)\n if(allMyShips[i] == shipToAdd)\n return i;\n return -1; // todo make return exception\n }", "public int getPosition(String id){\n int length = listSub.size();\n if(length == 0){\n return -1;\n }else{\n for(int i = 0; i < length; i++){\n if (listSub.get(i).getId().equals(id)) {\n return i;\n }\n }\n return -1;\n }\n }", "private int getCustomerIndex(String pNo) {\r\n\t\tint index = -1;\r\n\r\n\t\t// Iterera över listan tills vi har hittat kunden eller tills listan är\r\n\t\t// slut.\r\n\t\tListIterator<Customer> customerIterator = customerList.listIterator();\r\n\t\twhile ((customerIterator.hasNext()) && (index == -1)) {\r\n\t\t\tif (customerIterator.next().getSocialSecurityNumber().equals(pNo)) {\r\n\t\t\t\tindex = customerIterator.previousIndex();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn index;\r\n\t}", "public int getLineItemNumber()\n {\n return lineItemNumber;\n }", "private int posItem(String id) {\r\n\t\tint i = 0;\r\n\t\twhile (i < numberOfItems) {\r\n\t\t\tif (container[i].getId().equalsIgnoreCase(id)) {\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "private int getIndex(ArrayList<Employee> list, Employee e) {\n if(list == null) {\n System.out.println(\"list is null\");\n }\n for(int i = 0; i< list.size(); i++) {\n if(list.get(i) != null) {\n if (e.getEmpid() == list.get(i).getEmpid()) {\n return i;\n }\n }\n }\n return -1;\n }", "private int getHashPosition(String hash){\n for (int i = 0; i < list.size(); i++){\n if (list.get(i).getHash().equals(hash)){\n return i;\n }\n }\n return -1;\n }", "protected int getItemIndex(String key){\n for (int i = 0; i < itemsInTable.size(); i++){\n if (itemsInTable.get(i).equals(key)) return i;\n }\n return -1;\n }", "CartLine getCartLineByID(int cartLineID);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end checkforDead(); Assigns targets to towers. Has a small pause.
public void assignTargets(EnemyManager enemy, Tower t){ double currentMin, previousMin = 20000;//20000 is just a random value to make things work. //System.out.println("assigning targets"); if(t.pause >= 0f || stillActiveBullets(t)){ t.pause -= Gdx.graphics.getDeltaTime(); } else{ Enemy temp = null; //checks all the enemies, and finds the closest one. for(int x = 0; x < enemy.getActiveEnemy().size; x++){ currentMin = findDistance(enemy.getActiveEnemy().get(x).getLocation(), t.getLocation()); if(currentMin < previousMin){ temp = enemy.getActiveEnemy().get(x); previousMin = currentMin; } } //If potential target is within range, then it becomes target. if(previousMin < t.getRange()){ //if the tower is a strength tower, then one extra condition //needs to be checked. //else, tower's target is set and we are good to go. //if this if-statement is executed, temp.getRate() shouldn't be null. if(t.getID().equals("YELLOW")){//strength stops attacking after enemy's speed = 0 if(temp.getRate() >= 0f){ //strength's ability is to make enemy's speed = 0 t.setTarget(temp); t.hasTarget = true; t.setOldTargetPosition(temp.getLocation()); t.pause = 0.2f; t.lockedOnTarget = false; } } else{ t.setTarget(temp); t.hasTarget = true; t.setOldTargetPosition(temp.getLocation()); t.pause = 0.2f; t.lockedOnTarget = false; } } } }
[ "void bringOutYourDead()\n\t{\n\t\tIterator<Enemy> it = enemylist.iterator();\n\t\twhile (it.hasNext())\n\t\t\tif (it.next().isDead())\n\t\t\t\tit.remove();\n\t}", "void targetDrop() {\n mazeWorld.removeAllGoals();\n for (MazeState state : mazeWorld.getDrops()) {\n if (reachableCells.contains(state)) {\n mazeWorld.addGoal(state);\n }\n }\n }", "private void killBullet() {\r\n this.dead = true;\r\n }", "public void checkIfAlive()\n {\n if(this.health<=0)\n {\n targetable=false;\n monstersWalkDistanceX=0;\n monstersWalkDistanceY=0;\n this.health=0;\n new TextureChanger(this,0);\n isSelected=false;\n if(monsterType==1)\n {\n visible=false;\n }\n if(gaveResource==false) {\n int gameResource = Board.gameResources.getGameResources();\n Board.gameResources.setGameResources(gameResource + resourceReward);\n gaveResource=true;\n }\n }\n }", "public void died(){\n\t\tisDead = true;\n\t}", "void updateEnemies() {\n getEnemies().forEach(e -> {\n if (!e.isAlive()) {\n e.die();\n SoundPlayer.play(SoundPlayer.enemyDestroyed);\n }\n });\n objectsInMap.removeIf(o -> o instanceof Enemy && !(((Enemy) o).isAlive()));//Removing Dead Enemies\n getEnemies().forEach(e -> e.setTarget(objectsInMap.stream().filter(p -> p.identifier.contains(\"PlayerTank0.\") &&\n p.isBlocking && ((Tank) p).isVisible()).collect(Collectors.toList())));//Giving Possible target to enemies to decide\n }", "@Override\n\tpublic void makeDead() {\n\t\tthis.setHealthPoints(-1);\n\t\tthis.gotHit();\n\t}", "private void setNameToDead() {\n this.name = name + \" [Dead]\";\n }", "public void attackTarget() {\n\t\t\n\t}", "public void fillDeadends() {\n while (deadends.isNotEmpty()) {\n Tile current = (Tile) deadends.getNext(); \n fillOne(current.y, current.x); \n }\n }", "private void petDead() {\n\t\tpetMood = -1;\n\t\thungry = -1; \n\t\ttired = -1;\n\t\tweight = -1;\n\t\tmisbehaving = false;\n\t\tpetHealth = -1;\n\t\tpetFeed = -1;\n\t\tcanRevive = false;\n\t}", "private MovingEntity nextTarget(MovingEntity currTarget, ArrayList<MovingEntity> availableTargets, ArrayList <MovingEntity> battlers){\n int currIndex = availableTargets.indexOf(currTarget);\n\n if (currTarget.getCurrHP() > 0) {\n return currTarget;\n }\n\n // currTarget is now dead, remove from availableTargets and battlers\n availableTargets.remove(currTarget);\n battlers.remove(currTarget);\n \n if(currIndex < availableTargets.size()){\n System.out.println(currTarget.getID() + \" is dead, moving on to next target is \" + availableTargets.get(currIndex).getID());\n return availableTargets.get(currIndex);\n } else {\n return null;\n }\n }", "public void incDead(){\r\n\t\tfam.incDead();\r\n\t}", "public void checkDead() {\r\n for (int i = 0; i < houses.size(); i++) {\r\n if (houses.get(i).isDead()) {\r\n houses.remove(i);\r\n i--;\r\n }\r\n }\r\n }", "private void getDead(){\n if(containsAnActor()){\n Actor actor= getActor();\n if(actor.hasCapability(DinosaurStatus.DEAD)){\n addItem(getCorpse(actor.toString()));\n Actions dropActions = new Actions();\n for (Item item : actor.getInventory())\n dropActions.add(item.getDropAction());\n for (Action drop : dropActions)\n drop.execute(actor, map());\n map().removeActor(actor);\n }\n }\n }", "public void removeDead() {\n for (BaseObject object : new ArrayList<BaseObject>(bombs)) {\n if (!object.isAlive())\n bombs.remove(object);\n }\n\n for (BaseObject object : new ArrayList<BaseObject>(rockets)) {\n if (!object.isAlive())\n rockets.remove(object);\n }\n\n for (BaseObject object : new ArrayList<BaseObject>(ufos)) {\n if (!object.isAlive())\n ufos.remove(object);\n }\n }", "public void setInDeadCode() {\n\t\tisInDeadCode = true;\n\t}", "private void updateTarget() {\r\n\t\t// Set target to null, meaning that we have no target robot yet\r\n\t\ttarget = null;\r\n\r\n\t\t// Create a list over possible target robots that is a copy of robot data from the enemy map\r\n\t\tList<RobotData> targets = new ArrayList<RobotData>(enemyMap.values());\r\n\r\n\t\t// Run thru all the possible target robots and remove those that are outside the attack\r\n\t\t// range for this border sentry robot as our robot cannot do harm to robots outside its\r\n\t\t// range.\r\n\t\tIterator<RobotData> it = targets.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tRobotData robot = it.next();\r\n\t\t\tif (isOutsideAttackRange(robot.targetX, robot.targetY)) {\r\n\t\t\t\tit.remove();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Set the target robot to be the one among all possible target robots that is closest to\r\n\t\t// our robot.\r\n\t\tdouble minDist = Double.POSITIVE_INFINITY;\r\n\t\tfor (RobotData robot : targets) {\r\n\t\t\tdouble dist = distanceTo(robot.targetX, robot.targetY);\r\n\t\t\tif (dist < minDist) {\r\n\t\t\t\tminDist = dist;\r\n\t\t\t\ttarget = robot;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// If we still haven't got a target robot, then take the first one from our list of target\r\n\t\t// robots if the list is not empty.\r\n\t\tif (target == null && targets.size() > 0) {\r\n\t\t\ttarget = targets.get(0);\r\n\t\t}\r\n\t}", "public void battleEnemyAttack() {\n if(battleEnemy != null){ // If all enemies have attacked, they cannot attack anymore for this round\n\n MovingEntity target = battleEnemy.getAttackPreference(targetAllies);\n if(target == null){\n target = targetAlly;\n }\n\n battleEnemy.attack(target, targetEnemies, targetAllies);\n //System.out.println(battleEnemy.getID() + \" is attacking \" + target.getID() + \" remaining hp: \" + target.getCurrHP());\n if (updateTarget(target) == false) {\n // if target still alive, check if its still friendly incase of zombify\n targetAlly = checkSideSwap(targetAlly, false, battleEnemies, targetEnemies, battleAllies, targetAllies);\n }\n\n battleEnemy = nextAttacker(battleEnemy, battleEnemies);\n\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a Presence Source
public ApiResponse<Source> getPresenceSource(ApiRequest<Void> request) throws IOException { try { return pcapiClient.invoke(request, new TypeReference<Source>() {}); } catch (ApiException exception) { @SuppressWarnings("unchecked") ApiResponse<Source> response = (ApiResponse<Source>)(ApiResponse<?>)exception; return response; } catch (Throwable exception) { if (pcapiClient.getShouldThrowErrors()) { if (exception instanceof IOException) { throw (IOException)exception; } throw new RuntimeException(exception); } @SuppressWarnings("unchecked") ApiResponse<Source> response = (ApiResponse<Source>)(ApiResponse<?>)(new ApiException(exception)); return response; } }
[ "public Source getPresenceSource(GetPresenceSourceRequest request) throws IOException, ApiException {\n try {\n ApiResponse<Source> response = pcapiClient.invoke(request.withHttpInfo(), new TypeReference<Source>() {});\n return response.getBody();\n }\n catch (ApiException | IOException exception) {\n if (pcapiClient.getShouldThrowErrors()) throw exception;\n return null;\n }\n }", "public UserPresence source(String source) {\n this.source = source;\n return this;\n }", "public Source getPresenceSource(String sourceId) throws IOException, ApiException {\n return getPresenceSource(createGetPresenceSourceRequest(sourceId));\n }", "public SourceEntityListing getPresenceSources(GetPresenceSourcesRequest request) throws IOException, ApiException {\n try {\n ApiResponse<SourceEntityListing> response = pcapiClient.invoke(request.withHttpInfo(), new TypeReference<SourceEntityListing>() {});\n return response.getBody();\n }\n catch (ApiException | IOException exception) {\n if (pcapiClient.getShouldThrowErrors()) throw exception;\n return null;\n }\n }", "public Source getSource()\n {\n if (streams.isEmpty()) return null;\n return streams.get(0).get().getSource();\n }", "public UserPrimarySource getPresenceUserPrimarysource(GetPresenceUserPrimarysourceRequest request) throws IOException, ApiException {\n try {\n ApiResponse<UserPrimarySource> response = pcapiClient.invoke(request.withHttpInfo(), new TypeReference<UserPrimarySource>() {});\n return response.getBody();\n }\n catch (ApiException | IOException exception) {\n if (pcapiClient.getShouldThrowErrors()) throw exception;\n return null;\n }\n }", "public ApiResponse<UserPrimarySource> getPresenceUserPrimarysource(ApiRequest<Void> request) throws IOException {\n try {\n return pcapiClient.invoke(request, new TypeReference<UserPrimarySource>() {});\n }\n catch (ApiException exception) {\n @SuppressWarnings(\"unchecked\")\n ApiResponse<UserPrimarySource> response = (ApiResponse<UserPrimarySource>)(ApiResponse<?>)exception;\n return response;\n }\n catch (Throwable exception) {\n if (pcapiClient.getShouldThrowErrors()) {\n if (exception instanceof IOException) {\n throw (IOException)exception;\n }\n throw new RuntimeException(exception);\n }\n @SuppressWarnings(\"unchecked\")\n ApiResponse<UserPrimarySource> response = (ApiResponse<UserPrimarySource>)(ApiResponse<?>)(new ApiException(exception));\n return response;\n }\n }", "java.lang.String getAssociatedSource();", "public PresenceModel getPresenceModel();", "IConnectable getSource();", "public PSNode getClipSource(int type)\n {\n checkType(type);\n\n PSSelection clip = (PSSelection)m_clip.get(new Integer(type));\n PSNode clipSource = null;\n if(clip != null)\n clipSource = clip.getParent();\n\n return clipSource;\n }", "PresenceStatus getPresenceStatus();", "public List<? extends RadioSourceLocated<P>> getSources() {\n return mSources;\n }", "public SecuritySource getSecuritySource() {\n return (SecuritySource) get(SECURITY_SOURCE_NAME);\n }", "com.google.cloud.vision.v1.ImageSource getSource();", "public String getStreamSourceUrl() {\n return getString(\"streamSourceUrl\");\n }", "public EventChannelSource source() {\n return this.source;\n }", "public Source putPresenceSource(PutPresenceSourceRequest request) throws IOException, ApiException {\n try {\n ApiResponse<Source> response = pcapiClient.invoke(request.withHttpInfo(), new TypeReference<Source>() {});\n return response.getBody();\n }\n catch (ApiException | IOException exception) {\n if (pcapiClient.getShouldThrowErrors()) throw exception;\n return null;\n }\n }", "@Iri(MMM.HAS_SOURCE)\n RDFObject getSource();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the POAutoApprovalCurrencyCode value for this Account.
public void setPOAutoApprovalCurrencyCode(java.lang.String POAutoApprovalCurrencyCode) { this.POAutoApprovalCurrencyCode = POAutoApprovalCurrencyCode; }
[ "public java.lang.String getPOAutoApprovalCurrencyCode() {\n return POAutoApprovalCurrencyCode;\n }", "public void setAccountCurrencyCode(String accountCurrencyCode) {\r\n this.accountCurrencyCode = accountCurrencyCode;\r\n }", "public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {\r\n this.CURRENCY_CODE = CURRENCY_CODE;\r\n }", "public void setPOAutoApprovalDate(java.lang.String POAutoApprovalDate) {\n this.POAutoApprovalDate = POAutoApprovalDate;\n }", "public void setCurrencyCode(String value) {\n setAttributeInternal(CURRENCYCODE, value);\n }", "@ApiModelProperty(value = \"Currency code of the master account organization\")\n public String getCurrencyCode() {\n return currencyCode;\n }", "public void setClaimCurrency(typekey.Currency value) {\n __getInternalInterface().setFieldValue(CLAIMCURRENCY_PROP.get(), value);\n }", "public void setPOAutoApprovalLimit(java.lang.String POAutoApprovalLimit) {\n this.POAutoApprovalLimit = POAutoApprovalLimit;\n }", "public void setReservingCurrency(typekey.Currency value) {\n __getInternalInterface().setFieldValue(RESERVINGCURRENCY_PROP.get(), value);\n }", "public void setCurrencyCode(String currencyCode) {\n this.currencyCode = currencyCode;\n }", "public void setCOUPON_RATE(BigDecimal COUPON_RATE) {\r\n this.COUPON_RATE = COUPON_RATE;\r\n }", "public void setACCRUED_PROFIT(BigDecimal ACCRUED_PROFIT) {\r\n this.ACCRUED_PROFIT = ACCRUED_PROFIT;\r\n }", "public void setApprovalCode(java.lang.String ApprovalCode) {\n this.ApprovalCode = ApprovalCode;\n }", "public void setCurrencyCode(String currencyCode)\r\n {\r\n m_currencyCode = currencyCode;\r\n }", "public String getAccountCurrencyCode() {\r\n return accountCurrencyCode;\r\n }", "public void setCANCELLATION_RATE(BigDecimal CANCELLATION_RATE)\r\n {\r\n\tthis.CANCELLATION_RATE = CANCELLATION_RATE;\r\n }", "public void setCHARGE_CODE(BigDecimal CHARGE_CODE) {\r\n this.CHARGE_CODE = CHARGE_CODE;\r\n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setCLAPPROVAL(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.CL_APPROVAL = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "public void setKYC_FINANCIAL_CURRENCY_CODE(BigDecimal KYC_FINANCIAL_CURRENCY_CODE) {\r\n this.KYC_FINANCIAL_CURRENCY_CODE = KYC_FINANCIAL_CURRENCY_CODE;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a myCollection manager instance.
ExistMyCollectionManager(@NotNull ExistMomcaConnection momcaConnection) { super(momcaConnection); }
[ "protected abstract Collection createCollection();", "public UsersCollectionManager() {\n users = new HashSet<>();\n init();\n }", "StoreCollection getOrCreateCollection( String name);", "public Collection createCollection(String name) {\n\n\t\tCollection col = null;\n\t\ttry {\n\t\t\tcol = colManagement.createCollection(name);\n\n\t\t\tstatus = new Status(IStatus.INFO, id, \"Create Collection: \" + name,\n\t\t\t\t\tnull);\n\n\t\t} catch (XMLDBException e) {\n\t\t\tstatus = new Status(IStatus.ERROR, id,\n\t\t\t\t\t\"Create Collection: \" + name, e);\n\n\t\t} finally {\n\t\t\tlog.log(status);\n\t\t}\n\t\treturn col;\n\t}", "public Collection(String name) {\n this.name = name;\n collection = new ArrayList<>();\n }", "Collection newCollection() throws RepositoryException;", "public WECollection()\n {\n }", "CollectionResource createCollectionResource();", "public BCollection createCollection();", "public Collection() {\n }", "protected Collection() {\r\n\t\t\r\n\t}", "RepoCollectionList createCollection(RepoCollectionInput repoCollectionInput);", "CollectionItem createCollectionItem();", "public void createCollection(String localName) throws WebDAVException;", "protected MongoCollection getCollection(String name) {\n Jongo jongo = new Jongo(this.mongoDbFactory.getDb());\n return jongo.getCollection(name);\n }", "public void onCreateCollection(String name, MongoCollection<?> collection) {\n // do nothing\n }", "private NotesCollection getCollection() {\n\t\t\n\t\tif (collection == null || collection.isRecycled() ) {\n\t\t\tNotesDatabase db = new NotesDatabase(ExtLibUtil.getCurrentSession(), \"\", fakenamesPath);\n\t\t\tcollection = db.openCollectionByName(\"contacts\");\n\t\t}\n\n\t\treturn collection;\n\t}", "public static CollectionFactory getCollectionFactory() {\n return defaultCollectionFactory;\n }", "private void createCollection(String commonLocation) throws RegistryException {\n\t\tRegistry systemRegistry = CommonUtil.getUnchrootedSystemRegistry(requestContext);\n\t\t//Creating a collection if not exists.\n\t\tif (!systemRegistry.resourceExists(commonLocation)) {\n\t\t\tsystemRegistry.put(commonLocation, systemRegistry.newCollection());\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default constructor for test class NoQuarterStateTest
public NoQuarterStateTest() { }
[ "public HasQuarterStateTest()\n {\n }", "public WeeklyNewspaperTest() {\n /**\n * Empty constructor for test class\n */\n }", "public BudgetQuarter() {\n initComponents();\n }", "protected TestBench() {}", "protected QRuleTest () {\n }", "public WithdrawalTest()\n {\n }", "public BookcaseTest () {\n }", "public RookTest()\r\n {\r\n }", "public WeatherDayTest()\n {\n }", "public EcriveurMetierTest() {\r\n\t\t\r\n\t\tsuper();\r\n\t\t\r\n\t}", "@Test\n public void constructorTest() {\n assertEquals(getExpectedName(), getTestItem().getName());\n assertEquals(getExpectedBasePower(), getTestItem().getPower());\n assertEquals(getExpectedMinRange(), getTestItem().getMinRange());\n assertEquals(getExpectedMaxRange(), getTestItem().getMaxRange());\n }", "public QCStatus() {\n super();\n }", "public StateEventTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "public Vending_MachineTest()\n {\n // initialise instance variables\n \n \n }", "public ClimbingClubTest()\n {\n \n }", "public CelulaEspecialUTest()\n {\n }", "public SolitaireTest()\n {\n }", "@Test\n public void testCtor_PeriodNull() {\n System.out.println(\"ctor(c, null period)\");\n Period per = null;\n Periods p = new Periods(2, per);\n }", "public AcuityTest() {\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
instance structure handling input object is already "saved as" busObject Bus obj. selected for saveas clonedBusObject New object created from busObject
private BusinessObject buildInstance(Context _context, BusinessObject clonedBusObject, BusinessObject busObject, Hashtable busIDSaveAsNameTable, Hashtable busIDTargetRevTable, Hashtable busObjExtendedTable) throws Exception { // Get all the relatinships of it's children, i.e. dependees java.util.Hashtable relsAndEnds = _generalUtil.getAllWheareUsedRelationships(_context, busObject, true, MCADAppletServletProtocol.ASSEMBLY_LIKE); relsAndEnds.putAll(_generalUtil.getAllWheareUsedRelationships(_context, busObject, false, MCADAppletServletProtocol.FAMILY_LIKE)); relsAndEnds.putAll(_generalUtil.getAllWheareUsedRelationships(_context, busObject, true, MCADServerSettings.EXTERNAL_REFERENCE_LIKE)); int size = relsAndEnds.size(); // Go for children rel update only if NOT a shared guy if (size > 0) { Enumeration allRels = relsAndEnds.keys(); while (allRels.hasMoreElements()) { // check "end", this is end for child node Relationship rel = (Relationship) allRels.nextElement(); String end = (String) relsAndEnds.get(rel); // add to new list, depending on the "end"!! BusinessObject busToAdd = null; rel.open(_context); // The other object is at the other "end" boolean isFrom = true; if (end.equals("from")) { busToAdd = rel.getTo(); isFrom = true; } else { busToAdd = rel.getFrom(); isFrom = false; } rel.close(_context); String childBusID = busToAdd.getObjectId(_context); BusinessObject childObj = new BusinessObject(childBusID); childObj.open(_context); String childBusName = childObj.getName(); String childCADType = _util.getCADTypeForBO(_context, childObj); childObj.close(_context); StringBuffer cadTypeName = new StringBuffer(childCADType); cadTypeName.append("|"); cadTypeName.append(childBusName); if (cadTypeNameBusIDTable.containsKey(cadTypeName.toString())) childBusID = (String) cadTypeNameBusIDTable.get(cadTypeName.toString()); boolean isChildShared = sharedPartsIDClonedBusObjectsTable.containsKey(childBusID); BusinessObject clonedChildBusObject = buildChildNode(_context, childBusID, busIDSaveAsNameTable, busIDTargetRevTable, busObjExtendedTable, false); String relationshipName = rel.getTypeName(); if (!MCADSaveAsUtil.isConnectedWith(rel.getName(), "", processedRelIds)) { boolean canConnect = true; BusinessObject newFamObj = _generalUtil.getFamilyObjectForInstance(_context, clonedChildBusObject); if (busIDSaveAsNameTable.containsKey(clonedChildBusObject.getObjectId(_context))) { if (null == newFamObj) { canConnect = false; } else { newFamObj.open(_context); String famName = ""; if (isFrom) { famName = clonedBusObject.getName(); } else { famName = clonedChildBusObject.getName(); } if (!newFamObj.getName().equals(famName)) { canConnect = false; } } } clonedChildBusObject.open(_context); String tempCadType = _util.getCADTypeForBO(_context, clonedChildBusObject); if (tempCadType.equals("componentInstance")) { if (null == _generalUtil.getFamilyObjectForInstance(_context, clonedChildBusObject)) { canConnect = false; } if (clonedBusObject.getName().equals(clonedChildBusObject.getName())) { canConnect = false; } } String sClonedObjId = clonedBusObject.getObjectId(_context); String sClonedChildObjId = clonedChildBusObject.getObjectId(_context); StringList slGivenIds = new StringList(2); slGivenIds.addElement(sClonedObjId); slGivenIds.addElement(sClonedChildObjId); HashMap hmData = _util.getActiveVersionObjectMultiple(_context, slGivenIds); String clonedBusMinorObjectId = (String) hmData.get(sClonedObjId); String clonedChildBusMinorObjectID = (String) hmData.get(sClonedChildObjId); BusinessObject clonedBusMinorObject = new BusinessObject(clonedBusMinorObjectId); BusinessObject clonedChildBusMinorObject = new BusinessObject(clonedChildBusMinorObjectID); // [NDM] : L86 end if (canConnect) { Relationship relationship = _util.ConnectBusinessObjects(_context, clonedBusObject, clonedChildBusObject, relationshipName, isFrom); _util.copyAttributesonRelatinship(_context, rel, relationship); MCADSaveAsUtil.addConnectedObjList(clonedChildBusObject.getObjectId(_context), clonedBusObject.getObjectId(_context), rel.getName(), relationship.getName(), savedAsObjList, processedRelIds); // [NDM] : L86 start Relationship relBetMinors = _util.ConnectBusinessObjects(_context, clonedBusMinorObject, clonedChildBusMinorObject, relationshipName, isFrom); _util.copyAttributesonRelatinship(_context, rel, relBetMinors); MCADSaveAsUtil.addConnectedObjList(clonedBusMinorObjectId, clonedChildBusMinorObjectID, rel.getName(), relBetMinors.getName(), savedAsObjList, processedRelIds); // [NDM] : L86 end } } // Copy attributeson new relationship boolean isChildCloned = busIDSaveAsNameTable.containsKey(childBusID); if (isChildCloned && !isChildShared) { busToAdd.open(_context); String oldChildObjectName = busToAdd.getName(); renameIndividual(_context, clonedChildBusObject, busToAdd.getObjectId(), false, isFamilyTableSaveAs); busToAdd.close(_context); } MCADSaveAsUtil.addSavedAsObjList(childBusID, clonedBusObject, savedAsObjList); } } return clonedBusObject; }
[ "protected BusinessObject saveAsInstanceObject(Context _context, String boID, String busSaveAsName, String busTargetRev, String famObjID, String newFamName, Hashtable busIDSaveAsNameTable)\n throws Exception {\n BusinessObject famObj = new BusinessObject(famObjID);\n\n famObj.open(_context);\n String familyName = \"\";\n\n validateInstance(_context, famObj, busIDSaveAsNameTable);\n\n familyName = newFamName;\n\n if (null == familyName) {\n familyName = famObj.getName();\n }\n\n // The case where only instance is SaveAs. The instance will be connected to the original family. So it will take the Original family name.\n String attribTitle = MCADMxUtil.getActualNameForAEFData(_context, \"attribute_Title\");\n\n String existingFamTitle = \"\";\n\n if (null != famObj) {\n existingFamTitle = _util.getAttributeForBO(_context, famObjID, attribTitle);\n\n if (existingFamTitle.lastIndexOf(\".\") != -1) // this substring mey be required in case of ProE. Need to verify.\n existingFamTitle = existingFamTitle.substring(0, existingFamTitle.lastIndexOf(\".\"));\n\n int dotIndex = existingFamTitle.lastIndexOf(\".\");\n if (dotIndex != -1) {\n existingFamTitle = existingFamTitle.substring(0, dotIndex);\n }\n }\n\n famObj.close(_context);\n\n BusinessObject newMajorBO = null;\n\n /*\n * if(majorMinorBusObejctsTable.containsKey(boID)) //[NDM] : L86 boID = (String)majorMinorBusObejctsTable.get(boID);\n */\n\n String type = \"\";\n String vault = \"\";\n String policy = \"\";\n // String minorTypeName = \"\";\n // String majorTypeName = \"\";\n String minorRevString = \"\";\n String majorPolicy = \"\";\n String minorPolicy = \"\";\n\n BusinessObject busObject = new BusinessObject(boID);\n\n if (busSaveAsName == null || \"\".equals(busSaveAsName)) // Instance not selected for Save As\n {\n busObject.open(_context);\n\n busSaveAsName = busObject.getName();\n\n if (!_globalConfig.isUniqueInstanceNameInDBOn())\n busSaveAsName = MCADUtil.getIndivisualInstanceName(_util.getAttributeForBO(_context, boID, attribTitle), true);\n\n busTargetRev = busObject.getRevision();\n\n busObject.close(_context);\n }\n\n // get new name of instance object\n String newInstName = _generalUtil.getNameForInstance(familyName, busSaveAsName);\n\n try {\n BusinessObject bus = new BusinessObject(boID);\n bus.open(_context);\n\n type = bus.getTypeName();\n vault = _context.getVault().toString();\n policy = bus.getPolicy(_context).getName();\n\n bus.close(_context);\n\n // [NDM] : L86 (since type will be same for both major as well as minor objects)\n /*\n * if(_globalConfig.isMajorType(type)) { majorTypeName = type; minorTypeName = _util.getCorrespondingType(_context, type); } else { minorTypeName = type; majorTypeName =\n * _util.getCorrespondingType(_context, type); }\n */\n\n BusinessObject busMajor = _util.getMajorObject(_context, bus);\n if (busMajor != null) {\n majorPolicy = busMajor.getPolicy(_context).getName();\n } else {\n majorPolicy = policy;\n }\n\n minorPolicy = _util.getRelatedPolicy(_context, majorPolicy); // [NDM] : L86\n\n // get the first minor revision string from the stream\n minorRevString = _util.getFirstVersionStringForStream(busTargetRev);\n\n boolean newMajorBOExists = _util.doesBusinessObjectExist(_context, type, newInstName, busTargetRev);\n boolean newMinorBOExists = _util.doesBusinessObjectExist(_context, type, newInstName, minorRevString);\n\n // if any of the two objects exist in the DB, throw error.\n if (newMajorBOExists || newMinorBOExists) {\n // throw new Exception(\"Name and Revision not unique for object '\" + newInstName + \"'\");\n Hashtable messageTokens = new Hashtable();\n messageTokens.put(\"NAME\", newInstName);\n\n MCADServerException.createException(_serverResourceBundle.getString(\"mcadIntegration.Server.Message.NameNRevisionNotUniqueForSaveAs\", messageTokens), null);\n\n }\n // Clone the business object : creation of minor type object\n /* //if(_globalConfig.isMajorType(type)) */// [NDM] : L86\n if (!_util.isMajorObject(_context, boID))\n\n {\n // String minorPolicy = _globalConfig.getDefaultPolicyForType(minorTypeName);\n // boID = _util.getActiveMinor(_context, bus).getObjectId(_context); //[NDM] : L86\n // StringBuffer mqlCmdBuff = new StringBuffer();\n // boID = _util.getActiveMinor(_context, bus).getObjectId(_context);\n\n String Args[] = new String[6];\n Args[0] = boID;\n Args[1] = newInstName;\n Args[2] = busTargetRev;\n Args[3] = \"type\";\n Args[4] = type;\n Args[5] = majorPolicy;\n String result = _util.executeMQL(_context, \"copy bus $1 to $2 $3 $4 $5 policy $6\", Args);\n\n if (!result.startsWith(\"true\")) {\n MCADServerException.createException(result.substring(6), null);\n }\n newMajorBO = new BusinessObject(type, newInstName, busTargetRev, \"\");\n newMajorBO.open(_context);\n\n _util.copyFilesFcsSupported(_context, mcsURL, bus, newMajorBO);\n } else {\n bus.open(_context);\n newMajorBO = bus.clone(_context, newInstName, busTargetRev, vault);\n }\n\n bus.close(_context);\n if (newMajorBO.isOpen()) {\n newMajorBO.close(_context);\n }\n // New implementation.\n String attrFileSourceName = MCADMxUtil.getActualNameForAEFData(_context, \"attribute_IEF-FileSource\");\n _util.setAttributeValue(_context, newMajorBO, attrFileSourceName, MCADAppletServletProtocol.FILESOURCE_SAVEAS);\n\n String minObjId = _generalUtil.createAndConnectToMinorObject(_context, minorRevString, true, newMajorBO, _globalConfig, true, false, minorPolicy); // [NDM] : L86\n\n if (!_globalConfig.getModificationEvents().isEmpty())\n _util.modifyUpdateStamp(_context, minObjId);\n\n BusinessObject minorObject = new BusinessObject(minObjId);\n\n _util.executeMQL(_context, \"set env global MCADINTEGRATION_CONTEXT true\");\n _util.copyFilesFcsSupported(_context, newMajorBO, minorObject);\n _util.executeMQL(_context, \"set env global MCADINTEGRATION_CONTEXT false\");\n\n if (_busIDPartIDTable.containsKey(boID)) {\n String specification = (String) _busIDSpecificationTable.get(boID);\n String attrSpecification = MCADMxUtil.getActualNameForAEFData(_context, \"attribute_IEF-Specification\");\n minorObject.open(_context);\n _util.setAttributeValue(_context, minorObject, attrSpecification, specification);\n minorObject.close(_context);\n }\n\n if (_globalConfig.isObjectAndFileNameDifferent()) {\n String attrTitle = MCADMxUtil.getActualNameForAEFData(_context, \"attribute_Title\");\n String familyTitle = \"\";\n\n BusinessObject savedAsFamObj = MCADSaveAsUtil.getSavedAsObj(_context, famObjID, savedAsObjList);\n\n if (null != savedAsFamObj) {\n familyTitle = _util.getAttributeForBO(_context, savedAsFamObj.getObjectId(), attrTitle);\n } else {\n familyTitle = familyName;\n }\n\n if (isNameAndTitleMatch(familyName, familyTitle))\n familyTitle = familyTitle.substring(0, familyTitle.lastIndexOf(\".\"));\n\n int dotIndex = familyTitle.lastIndexOf(\".\");\n if (dotIndex != -1) {\n familyTitle = familyTitle.substring(0, dotIndex);\n }\n String instanceTitle = \"\";\n\n // if(isObjectAndFileNameDifferent)\n // {\n familyTitle = (String) _ObjectNewNamesTitleTable.get(familyName);\n\n if (null == familyTitle) // L86 : The value of (familyTitle = null) this means _ObjectNewNamesTitleTable does not contain the familyName bcoz Family is not SavedAs. SaveAs is performed\n // only on the Instance .\n familyTitle = existingFamTitle;\n\n instanceTitle = (String) _ObjectNewNamesTitleTable.get(busSaveAsName);\n\n if (instanceTitle == null || \"\".equals(instanceTitle))\n instanceTitle = MCADUtil.getIndivisualInstanceName(_util.getAttributeForBO(_context, boID, attribTitle), true);\n // }\n\n instanceTitle = MCADUtil.getDisplayNameForInstance(familyTitle, instanceTitle);\n\n if (!isFamilyTableSaveAs && !isValidForSaveAs(_context, instanceTitle, famObjID)) {\n Hashtable messageTokens = new Hashtable();\n messageTokens.put(\"NAME\", newInstName);\n messageTokens.put(\"FAMILYNAME\", familyName);\n\n MCADServerException.createException(_serverResourceBundle.getString(\"mcadIntegration.Server.Message.InstanceNameNotUniqueForFamily\", messageTokens), null);\n }\n\n newMajorBO.setAttributeValue(_context, attrTitle, instanceTitle);\n minorObject.setAttributeValue(_context, attrTitle, instanceTitle);\n }\n\n if (null != integrationName && !integrationName.equalsIgnoreCase(\"solidworks\")) {\n connectToFolder(_context, boID, newMajorBO);\n }\n\n if (_globalConfig.isModificationEvent(MCADAppletServletProtocol.UPDATESTAMP_EVENT_CLONE_INSTANCE))\n _util.modifyUpdateStamp(_context, famObjID);\n } catch (Exception e) {\n Hashtable messageTokens = new Hashtable();\n messageTokens.put(\"NAME\", newInstName);\n\n MCADServerException.createException(_serverResourceBundle.getString(\"mcadIntegration.Server.Message.ErrorWhileSaveAsOfBO\", messageTokens) + e.getMessage(), e);\n }\n\n return newMajorBO;\n\n }", "private void buildLowLevelNodeForInstances(Context _context, String familyId, String busID, BusinessObject clonedBusObject, BusinessObject busObject, Hashtable busIDSaveAsNameTable,\n Hashtable busIDTargetRevTable, Hashtable busObjExtendedTable, boolean isCloned) throws Exception {\n Hashtable clonedChildIdCloneObjectMap = new Hashtable();\n BusinessObject familyObject = new BusinessObject(familyId);\n\n familyObject.open(_context);\n String familyName = \"\";\n familyName = (String) busIDSaveAsNameTable.get(familyId);\n\n if (null == familyName) {\n familyName = familyObject.getName();\n }\n\n familyObject.close(_context);\n\n java.util.Hashtable instObjects = _generalUtil.getAllWheareUsedObjects(_context, busObject, true, MCADServerSettings.FAMILY_LIKE);\n Enumeration allInstances = instObjects.keys();\n while (allInstances.hasMoreElements()) {\n BusinessObject childBusinessObject = (BusinessObject) allInstances.nextElement();\n String childBusID = childBusinessObject.getObjectId();\n if (!busIDSaveAsNameTable.containsKey(childBusID)) {\n continue;\n }\n boolean isChildCloned = busIDSaveAsNameTable.containsKey(childBusID);\n String busSaveAsName = \"\";\n String busTargetRev = \"\";\n childBusinessObject.open(_context);\n String oldChildObjectName = childBusinessObject.getName();\n String oldChildObjectCADType = _util.getCADTypeForBO(_context, childBusinessObject);\n String oldChildObjectCADTypeName = oldChildObjectCADType + \"|\" + oldChildObjectName;\n\n childBusinessObject.close(_context);\n if (isCloned) {\n if (isChildCloned) {\n busSaveAsName = (String) busIDSaveAsNameTable.get(childBusID);\n busTargetRev = (String) busIDTargetRevTable.get(childBusID);\n } else {\n busSaveAsName = _generalUtil.getIndivisualInstanceName(oldChildObjectName);\n busTargetRev = (String) busIDTargetRevTable.get(busID);\n }\n\n BusinessObject clonedChildBusObject = null;\n\n if (!MCADSaveAsUtil.isSavedAs(childBusID, savedAsObjList)) {\n clonedChildBusObject = buildInstanceStructure(_context, busIDSaveAsNameTable, busIDTargetRevTable, busObjExtendedTable, childBusID, childBusinessObject, null,\n oldChildObjectCADType, isCloned);\n clonedChildIdCloneObjectMap.put(childBusID, clonedChildBusObject);\n MCADSaveAsUtil.addSavedAsObjList(childBusID, clonedChildBusObject, savedAsObjList);\n\n } else {\n clonedChildBusObject = MCADSaveAsUtil.getSavedAsObj(_context, childBusID, savedAsObjList);\n clonedChildIdCloneObjectMap.put(childBusID, clonedChildBusObject); // [NDM] : L86\n }\n\n applyVerticalViewOnObject(_context, childBusID, busIDSaveAsNameTable, busIDTargetRevTable, clonedChildBusObject, oldChildObjectCADTypeName);\n\n // clonedChildIdCloneObjectMap.put(childBusID, clonedChildBusObject);\n saveDependentDocs(_context, childBusID, clonedChildBusObject, null);\n connectPartWithCADObject(_context, childBusID, clonedChildBusObject);\n // update if child cloned for shared part handling\n if (isChildCloned) {\n sharedPartsIDClonedBusObjectsTable.put(childBusID, clonedChildBusObject);\n }\n\n boolean canConnect = false;\n Relationship relationship = null;\n boolean isFrom = true;\n String relName = \"\";\n\n Vector relNames = _util.getRelationNamesBetweenObjects(_context, clonedBusObject.getObjectId(_context), clonedChildBusObject.getObjectId(_context));\n for (int i = 0; i < relNames.size(); i++) {\n relName = (String) relNames.get(i);\n relationship = _util.getRelationshipBetweenObjects(_context, clonedBusObject.getObjectId(_context), clonedChildBusObject.getObjectId(_context), relName, null, isFrom);\n relationship.open(_context);\n\n if (!MCADSaveAsUtil.isConnectedWith(relationship.getName(), \"\", processedRelIds)) {\n canConnect = true;\n }\n }\n\n // Manage the structure under instance, (makes sense for assembly instance)\n buildInstance(_context, clonedChildBusObject, childBusinessObject, busIDSaveAsNameTable, busIDTargetRevTable, busObjExtendedTable);\n // Findbug Issue coorection start\n // Date: 21/03/2017\n // By: Asha G.\n\n if (canConnect) {\n Relationship newRelationship = _util.ConnectBusinessObjects(_context, clonedBusObject, clonedChildBusObject, relName, false);\n\n _util.copyAttributesonRelatinship(_context, relationship, newRelationship);\n MCADSaveAsUtil.addConnectedObjList(clonedChildBusObject.getObjectId(_context), clonedBusObject.getObjectId(_context), relationship.getName(), newRelationship.getName(),\n savedAsObjList, processedRelIds);\n\n }\n\n // Findbug Issue correction End\n\n // Setting IEF-ClonedFrom attribute\n if (!isFamilyTableSaveAs) {\n Relationship rel = null;\n Hashtable relationsInfo = _generalUtil.getPrimaryRelationshipFromInstance(_context, clonedChildBusObject);\n Enumeration keys = relationsInfo.keys();\n if (keys.hasMoreElements()) {\n rel = (Relationship) keys.nextElement();\n }\n String oldInstName = _generalUtil.getIndivisualInstanceName(oldChildObjectName);\n _util.setRelationshipAttributeValue(_context, rel, MCADMxUtil.getActualNameForAEFData(_context, \"attribute_IEF-ClonedFrom\"), oldInstName);\n\n } else {\n String instanceOf = MCADMxUtil.getActualNameForAEFData(_context, \"relationship_InstanceOf\");\n String parentInstance = MCADMxUtil.getActualNameForAEFData(_context, \"attribute_ParentInstance\");\n String[] oids = new String[1];\n oids[0] = childBusID;\n\n StringList busSelectList = new StringList(2);\n String parentInstanceSel = \"to[\" + instanceOf + \"].attribute[\" + parentInstance + \"]\";\n String familyIdSel = \"to[\" + instanceOf + \"].from.id\";\n\n busSelectList.add(parentInstanceSel);\n busSelectList.add(familyIdSel);\n\n BusinessObjectWithSelectList busWithSelectList = BusinessObjectWithSelect.getSelectBusinessObjectData(_context, oids, busSelectList);\n BusinessObjectWithSelect busWithSelect = busWithSelectList.getElement(0);\n StringList familyIdList = (StringList) busWithSelect.getSelectDataList(familyIdSel);\n StringList attrParInstList = (StringList) busWithSelect.getSelectDataList(parentInstanceSel);\n\n for (int i = 0; i < familyIdList.size(); i++) {\n String instFamilyId = (String) familyIdList.elementAt(i);\n if (instFamilyId.equalsIgnoreCase(busObject.getObjectId(_context))) {\n String attrParInstVal = (String) attrParInstList.elementAt(i);\n String renamedObjID = clonedChildBusObject.getObjectId(_context);\n oids = new String[1];\n oids[0] = renamedObjID;\n busSelectList = new StringList(5);\n String relIdSel = \"to[\" + instanceOf + \"].id\";\n busSelectList.add(relIdSel);\n busWithSelectList = BusinessObjectWithSelect.getSelectBusinessObjectData(_context, oids, busSelectList);\n busWithSelect = busWithSelectList.getElement(0);\n String relId = (String) busWithSelect.getSelectData(relIdSel);\n Relationship rel = new Relationship(relId);\n _util.setRelationshipAttributeValue(_context, rel, parentInstance, attrParInstVal);\n }\n }\n }\n renameIndividual(_context, clonedChildBusObject, childBusID, false, isFamilyTableSaveAs);\n buildLowLevelNodeForInstances(_context, familyId, busID, clonedChildBusObject, childBusinessObject, busIDSaveAsNameTable, busIDTargetRevTable, busObjExtendedTable, isCloned);\n } else {\n BusinessObject clonedChildBusObject = null;\n\n boolean flag = true;\n\n flag = !MCADSaveAsUtil.isSavedAs(childBusID, savedAsObjList);\n\n if (isChildCloned && flag) {\n // Instance cloned - handle it it's way\n busSaveAsName = (String) busIDSaveAsNameTable.get(childBusID);\n busTargetRev = (String) busIDTargetRevTable.get(childBusID);\n\n clonedChildBusObject = saveAsInstanceObject(_context, childBusID, busSaveAsName, busTargetRev, familyId, familyName, busIDSaveAsNameTable);\n MCADSaveAsUtil.addSavedAsObjList(childBusID, clonedChildBusObject, savedAsObjList);\n\n applyVerticalViewOnObject(_context, childBusID, busIDSaveAsNameTable, busIDTargetRevTable, clonedChildBusObject, oldChildObjectCADTypeName);\n\n connectPartWithCADObject(_context, childBusID, clonedChildBusObject);\n saveDependentDocs(_context, childBusID, clonedChildBusObject, null);\n buildInstance(_context, clonedChildBusObject, childBusinessObject, busIDSaveAsNameTable, busIDTargetRevTable, busObjExtendedTable);\n createTowerForSavesAsInstance(_context, childBusinessObject, clonedChildBusObject, busTargetRev, busIDSaveAsNameTable);\n sharedPartsIDClonedBusObjectsTable.put(childBusID, clonedChildBusObject);\n renameIndividual(_context, clonedChildBusObject, childBusID, false, false);\n buildLowLevelNodeForInstances(_context, familyId, busID, clonedChildBusObject, childBusinessObject, busIDSaveAsNameTable, busIDTargetRevTable, busObjExtendedTable, isCloned);\n } else {\n clonedChildBusObject = buildChildNode(_context, childBusID, busIDSaveAsNameTable, busIDTargetRevTable, busObjExtendedTable, true);\n }\n }\n }\n\n // [NDM] : L86 start Active Instance Relationship\n\n BusinessObject famObj = new BusinessObject(familyId);\n String activeInstanceId = _generalUtil.getActiveInstanceId(_context, busID);\n\n BusinessObject instanceClone = (BusinessObject) clonedChildIdCloneObjectMap.get(activeInstanceId);\n if (instanceClone != null) {\n Relationship relBetMajors = _util.ConnectBusinessObjects(_context, famObj, instanceClone, strActiveInstanceRelationship, true);\n // _util.copyAttributesonRelatinship(_context, relationship, relBetMajors);\n MCADSaveAsUtil.addConnectedObjList(instanceClone.getObjectId(_context), familyId, relBetMajors.getName(), \"\", savedAsObjList, processedRelIds);\n\n String instanceCloneMinorObjectId = _util.getActiveVersionObject(_context, instanceClone.getObjectId(_context));\n String familyMinorObjectID = _util.getActiveVersionObject(_context, familyId);\n\n BusinessObject instanceCloneMinorObject = new BusinessObject(instanceCloneMinorObjectId);\n BusinessObject familyMinorObject = new BusinessObject(familyMinorObjectID);\n\n if (instanceCloneMinorObjectId != null) {\n Relationship relBetMinors = _util.ConnectBusinessObjects(_context, familyMinorObject, instanceCloneMinorObject, strActiveInstanceRelationship, true);\n MCADSaveAsUtil.addConnectedObjList(familyMinorObjectID, instanceCloneMinorObjectId, relBetMinors.getName(), \"\", savedAsObjList, processedRelIds);\n }\n }\n // [NDM] : L86 end}\n\n }", "private Bus constructBus(String line, Point point) {\n\t\t// parse the information\n\t\tStringTokenizer tokenizer = new StringTokenizer(line,\",\");\n \tint id = Integer.parseInt(tokenizer.nextToken().trim());\n \tString name = tokenizer.nextToken();\n \tif (name.startsWith(\"\\\"\")) {\n \t\twhile (!name.endsWith(\"\\\"\")) {\n \t\t\tname = name + \",\" + tokenizer.nextToken();\n \t\t}\n \t}\n \t/*int area = */Integer.parseInt(tokenizer.nextToken().trim());\n \t/*int zone = */Integer.parseInt(tokenizer.nextToken().trim());\n \tdouble voltageMagnitude = Double.parseDouble(tokenizer.nextToken().trim());\n \tdouble voltageAngle = Double.parseDouble(tokenizer.nextToken().trim());\n \tdouble baseVoltageKiloVolts = Double.parseDouble(tokenizer.nextToken().trim());\n \tdouble remoteVoltage = Double.parseDouble(tokenizer.nextToken().trim());\n \tint status = Integer.parseInt(tokenizer.nextToken().trim());\n\t\t\n \tBus bus = registerBus(id);\n bus.setAttribute(Bus.NAME_KEY,name);\n bus.setVoltagePU(voltageMagnitude);\n bus.setPhaseAngle(voltageAngle);\n bus.setSystemVoltageKV(baseVoltageKiloVolts);\n bus.setRemoteVoltagePU(remoteVoltage);\n bus.setStatus(status == 1 ? true : false);\n \tbus.setCoordinate(point == null ? new PointImpl(0,0) : point); \t\n \treturn bus;\t\t\n\t}", "public T caseBus(Bus object) {\r\n\t\treturn null;\r\n\t}", "private BioComponentCloner1(){}", "protected String getEBOMSynchInfo(Context _context, String busID, BusinessObject clonedBusObject) throws MCADException {\n String ebomSynchObjectIDInfo = \"\";\n\n try {\n if (_globalConfig.isEBOMSynchOnDesignCreation()) {\n clonedBusObject.open(_context);\n String clonedObjectId = clonedBusObject.getObjectId();\n String clonedObjectcadType = _util.getCADTypeForBO(_context, clonedBusObject);\n clonedBusObject.close(_context);\n\n BusinessObject busObject = new BusinessObject(busID);\n\n // Root node is cloned\n if (clonedObjectId != null && !\"\".equals(clonedObjectId) && !clonedObjectId.equals(_busObjectID)) {\n if (!_globalConfig.isTypeOfClass(clonedObjectcadType, MCADAppletServletProtocol.TYPE_FAMILY_LIKE)) {\n if (isEBOMSynchAllowed(_context, clonedBusObject)) {\n ebomSynchObjectIDInfo = clonedObjectId;\n }\n } else if (_globalConfig.isTypeOfClass(clonedObjectcadType, MCADAppletServletProtocol.TYPE_FAMILY_LIKE)) {\n StringBuffer clonedInstanceIds = new StringBuffer();\n\n // TODO: LGE This method also used instead of following method _generalUtil.getInstanceListForFamilyObject(context, bo);\n java.util.Hashtable instObjects = _generalUtil.getAllWheareUsedObjects(_context, busObject, true, MCADServerSettings.FAMILY_LIKE);\n Enumeration allInstances = instObjects.keys();\n\n while (allInstances.hasMoreElements()) {\n BusinessObject childBusinessObject = (BusinessObject) allInstances.nextElement();\n String childBusID = childBusinessObject.getObjectId();\n\n if (sharedPartsIDClonedBusObjectsTable.containsKey(childBusID)) {\n BusinessObject clonedInstanceBusObject = (BusinessObject) sharedPartsIDClonedBusObjectsTable.get(childBusID);\n String clonedInstanceBusObjectId = clonedInstanceBusObject.getObjectId();\n\n if (isEBOMSynchAllowed(_context, clonedInstanceBusObject)) {\n clonedInstanceIds.append(clonedInstanceBusObjectId);\n clonedInstanceIds.append(\"|\");\n }\n\n }\n }\n\n ebomSynchObjectIDInfo = clonedInstanceIds.toString();\n }\n }\n }\n } catch (Exception e) {\n MCADServerException.createException(e.getMessage(), e);\n }\n\n return ebomSynchObjectIDInfo;\n }", "public Bus createBus(String line, Point point) throws PFWModelException {\t\t\n\t\tBus bus = constructBus(line, point);\t\t\t\t\n int legacyid = bus.getAttribute(PFWModelConstants.PFW_LEGACY_ID_KEY,Integer.class);\n\n \t// check to see if the area already exists\n \tif (doesLegacyExist(LEGACY_TAG,legacyid)) {\n \t\tif (point == null) {\n bus.setCoordinate(getLegacy(LEGACY_TAG,legacyid).getCoordinate());\n \n \t\t} \t\t\n \t}\n \treturn bus;\n\t}", "Object createFrom(Object parentInstance, String name);", "BPObject createBPObject();", "protected abstract DBObject getNewObject();", "protected abstract Object createObjectInternal(ObjectInformation objectInformation) throws FillingException;", "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 }", "public abstract boolean addBusiness(Business ob);", "BOp createBOp();", "public BusinessObjectFormat createBusinessObjectFormat(BusinessObjectFormatCreateRequest businessObjectFormatCreateRequest);", "public T caseBusMaster(BusMaster object) {\r\n\t\treturn null;\r\n\t}", "@NotNull public static BusTrip.Builder busTrip() { return new BusTrip.Builder(new HashMap<String,Object>()); }", "private BookingSerializedEntity (){\r\n }", "public ObjetivoParticular() {\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string grp_id = 1;
java.lang.String getGrpId();
[ "public Builder setGrpId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n grpId_ = value;\n onChanged();\n return this;\n }", "public void setGroupId(int tmp) {\n this.groupId = tmp;\n }", "int getGroupID();", "long getGroupid();", "public int getC_BP_Group_ID();", "java.lang.String getGrpNm();", "public void setGroupId(String newValue);", "void setGroupId(int groupId);", "public String toString(){\n\t\treturn \"group [\" + id +\"]\";\n\t}", "public Integer getGroup_id() {\n return group_id;\n }", "java.lang.String getDispGrpId();", "public String getGroupId(String name);", "GroupR createGroupR();", "java.lang.String getGroupName();", "public String getGROUP_ID() {\r\n return GROUP_ID;\r\n }", "long getGroupId();", "String getShipGroupSeqId();", "Object getGroupID(String groupName) throws Exception;", "Group getGroupById(String id);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Count of public projects.
@ApiModelProperty(value = "Count of public projects.") @JsonProperty("publicProjectCount") public Integer getPublicProjectCount() { return publicProjectCount; }
[ "Integer getProjectCount( String key ){\n return developer.projects.size();\n }", "public int getProjectCount(){\n\t\treturn projectRepository.getProjectCount();\n\t}", "public int getNumberOfProjects() {\r\n return numberOfProjects;\r\n }", "public int size(){\n\t\treturn projects.size();\n\t}", "public void setNumberOfProjects(int value) {\r\n this.numberOfProjects = value;\r\n }", "@ApiModelProperty(value = \"Count of private projects.\")\n\t@JsonProperty(\"privateProjectCount\")\n\tpublic Integer getPrivateProjectCount() {\n\t\treturn privateProjectCount;\n\t}", "long getNumberOfClusteredProjects();", "int getNumberOfImportedProject() {\n return allProjects().size();\n }", "public int getNumProjects(){\r\n\t\treturn IndividualContribs.getRow(0).getLastCellNum()-1; \r\n\t}", "@Transactional\r\n\tpublic Integer countProjectteams() {\r\n\t\treturn ((Long) projectteamDAO.createQuerySingleResult(\"select count(o) from Projectteam o\").getSingleResult()).intValue();\r\n\t}", "private static void printProjectsReport() {\n \tSystem.out.println(\"\\n------------- PROJECTS ------------------------------\");\n \n \tfor(Map.Entry<String, Project > entry: projects.entrySet()) {\n \tSystem.out.println(entry.getKey()+\": \"+entry.getValue().getTeamMembers().size() );\n }\n \n\n \n \n \n \n }", "protected TreeMap<String, ChangedAsset> countProjectAssets() {\n\t\treturn countProjectAssets(null);\n\t}", "public static int countByPROJECT_ID(long PROJECT_ID) {\n\t\treturn getPersistence().countByPROJECT_ID(PROJECT_ID);\n\t}", "public String countProjects(Map<String, Object> parameter) {\n return new SQL() {{\n SELECT(\"count(0)\");\n\n FROM(TABLE_NAME + \" p\");\n WHERE(\"p.id in \" +\n \"(select project_id from \"+ RELEATION_TABLE_NAME+\" where user_id=#{userId} \" +\n \"union select id as project_id from \"+ TABLE_NAME+\" where user_id=#{userId})\");\n\n Object searchVal = parameter.get(\"searchVal\");\n if(searchVal != null && StringUtils.isNotEmpty(searchVal.toString())){\n WHERE( \" p.name like concat('%', #{searchVal}, '%') \");\n }\n WHERE(\"p.flag = 1\");\n }}.toString();\n }", "private void displayAllProjects() {\n for(Project projects: Project.totalProjects){\n projects.displayProject();\n System.out.println(\"Popularity\\t\\t: \" + projects.getPopularityCounter());\n }\n }", "public int countPaginas();", "int getReleasePlayersCount();", "int getLibraryDepIndexCount();", "@Override\n\tpublic int getItemPublicacaosCount() {\n\t\treturn itemPublicacaoPersistence.countAll();\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start "atom" org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:568:1: atom[String scopeName] returns [StateCluster g=null] : ( ^(r= RULE_REF (rarg= ARG_ACTION )? (as1= ast_suffix )? ) | ^(t= TOKEN_REF (targ= ARG_ACTION )? (as2= ast_suffix )? ) | ^(c= CHAR_LITERAL (as3= ast_suffix )? ) | ^(s= STRING_LITERAL (as4= ast_suffix )? ) | ^(w= WILDCARD (as5= ast_suffix )? ) | ^( DOT scope_= ID a= atom[$scope_.text] ) );
public final TreeToNFAConverter.atom_return atom(String scopeName) throws RecognitionException { TreeToNFAConverter.atom_return retval = new TreeToNFAConverter.atom_return(); retval.start = input.LT(1); GrammarAST r=null; GrammarAST rarg=null; GrammarAST t=null; GrammarAST targ=null; GrammarAST c=null; GrammarAST s=null; GrammarAST w=null; GrammarAST scope_=null; TreeToNFAConverter.atom_return a = null; try { // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:569:2: ( ^(r= RULE_REF (rarg= ARG_ACTION )? (as1= ast_suffix )? ) | ^(t= TOKEN_REF (targ= ARG_ACTION )? (as2= ast_suffix )? ) | ^(c= CHAR_LITERAL (as3= ast_suffix )? ) | ^(s= STRING_LITERAL (as4= ast_suffix )? ) | ^(w= WILDCARD (as5= ast_suffix )? ) | ^( DOT scope_= ID a= atom[$scope_.text] ) ) int alt57=6; switch ( input.LA(1) ) { case RULE_REF: { alt57=1; } break; case TOKEN_REF: { alt57=2; } break; case CHAR_LITERAL: { alt57=3; } break; case STRING_LITERAL: { alt57=4; } break; case WILDCARD: { alt57=5; } break; case DOT: { alt57=6; } break; default: if (state.backtracking>0) {state.failed=true; return retval;} NoViableAltException nvae = new NoViableAltException("", 57, 0, input); throw nvae; } switch (alt57) { case 1 : // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:569:4: ^(r= RULE_REF (rarg= ARG_ACTION )? (as1= ast_suffix )? ) { r=(GrammarAST)match(input,RULE_REF,FOLLOW_RULE_REF_in_atom1199); if (state.failed) return retval; if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); if (state.failed) return retval; // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:569:18: (rarg= ARG_ACTION )? int alt50=2; switch ( input.LA(1) ) { case ARG_ACTION: { alt50=1; } break; } switch (alt50) { case 1 : // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:569:19: rarg= ARG_ACTION { rarg=(GrammarAST)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_atom1204); if (state.failed) return retval; } break; } // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:569:37: (as1= ast_suffix )? int alt51=2; switch ( input.LA(1) ) { case BANG: case ROOT: { alt51=1; } break; } switch (alt51) { case 1 : // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:569:38: as1= ast_suffix { pushFollow(FOLLOW_ast_suffix_in_atom1211); ast_suffix(); state._fsp--; if (state.failed) return retval; } break; } match(input, Token.UP, null); if (state.failed) return retval; } if ( state.backtracking==0 ) { NFAState start = grammar.getRuleStartState(scopeName,(r!=null?r.getText():null)); if ( start!=null ) { Rule rr = grammar.getRule(scopeName,(r!=null?r.getText():null)); retval.g = factory.build_RuleRef(rr, start); r.followingNFAState = retval.g.right; r.NFAStartState = retval.g.left; if ( retval.g.left.transition(0) instanceof RuleClosureTransition && grammar.type!=Grammar.LEXER ) { addFollowTransition((r!=null?r.getText():null), retval.g.right); } // else rule ref got inlined to a set } } } break; case 2 : // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:587:4: ^(t= TOKEN_REF (targ= ARG_ACTION )? (as2= ast_suffix )? ) { t=(GrammarAST)match(input,TOKEN_REF,FOLLOW_TOKEN_REF_in_atom1229); if (state.failed) return retval; if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); if (state.failed) return retval; // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:587:20: (targ= ARG_ACTION )? int alt52=2; switch ( input.LA(1) ) { case ARG_ACTION: { alt52=1; } break; } switch (alt52) { case 1 : // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:587:21: targ= ARG_ACTION { targ=(GrammarAST)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_atom1235); if (state.failed) return retval; } break; } // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:587:39: (as2= ast_suffix )? int alt53=2; switch ( input.LA(1) ) { case BANG: case ROOT: { alt53=1; } break; } switch (alt53) { case 1 : // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:587:40: as2= ast_suffix { pushFollow(FOLLOW_ast_suffix_in_atom1242); ast_suffix(); state._fsp--; if (state.failed) return retval; } break; } match(input, Token.UP, null); if (state.failed) return retval; } if ( state.backtracking==0 ) { if ( grammar.type==Grammar.LEXER ) { NFAState start = grammar.getRuleStartState(scopeName,(t!=null?t.getText():null)); if ( start!=null ) { Rule rr = grammar.getRule(scopeName,t.getText()); retval.g = factory.build_RuleRef(rr, start); t.NFAStartState = retval.g.left; // don't add FOLLOW transitions in the lexer; // only exact context should be used. } } else { retval.g = factory.build_Atom(t); t.followingNFAState = retval.g.right; } } } break; case 3 : // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:608:4: ^(c= CHAR_LITERAL (as3= ast_suffix )? ) { c=(GrammarAST)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_atom1260); if (state.failed) return retval; if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); if (state.failed) return retval; // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:608:23: (as3= ast_suffix )? int alt54=2; switch ( input.LA(1) ) { case BANG: case ROOT: { alt54=1; } break; } switch (alt54) { case 1 : // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:608:24: as3= ast_suffix { pushFollow(FOLLOW_ast_suffix_in_atom1266); ast_suffix(); state._fsp--; if (state.failed) return retval; } break; } match(input, Token.UP, null); if (state.failed) return retval; } if ( state.backtracking==0 ) { if ( grammar.type==Grammar.LEXER ) { retval.g = factory.build_CharLiteralAtom(c); } else { retval.g = factory.build_Atom(c); c.followingNFAState = retval.g.right; } } } break; case 4 : // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:621:4: ^(s= STRING_LITERAL (as4= ast_suffix )? ) { s=(GrammarAST)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_atom1284); if (state.failed) return retval; if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); if (state.failed) return retval; // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:621:25: (as4= ast_suffix )? int alt55=2; switch ( input.LA(1) ) { case BANG: case ROOT: { alt55=1; } break; } switch (alt55) { case 1 : // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:621:26: as4= ast_suffix { pushFollow(FOLLOW_ast_suffix_in_atom1290); ast_suffix(); state._fsp--; if (state.failed) return retval; } break; } match(input, Token.UP, null); if (state.failed) return retval; } if ( state.backtracking==0 ) { if ( grammar.type==Grammar.LEXER ) { retval.g = factory.build_StringLiteralAtom(s); } else { retval.g = factory.build_Atom(s); s.followingNFAState = retval.g.right; } } } break; case 5 : // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:634:4: ^(w= WILDCARD (as5= ast_suffix )? ) { w=(GrammarAST)match(input,WILDCARD,FOLLOW_WILDCARD_in_atom1308); if (state.failed) return retval; if ( input.LA(1)==Token.DOWN ) { match(input, Token.DOWN, null); if (state.failed) return retval; // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:634:18: (as5= ast_suffix )? int alt56=2; switch ( input.LA(1) ) { case BANG: case ROOT: { alt56=1; } break; } switch (alt56) { case 1 : // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:634:19: as5= ast_suffix { pushFollow(FOLLOW_ast_suffix_in_atom1313); ast_suffix(); state._fsp--; if (state.failed) return retval; } break; } match(input, Token.UP, null); if (state.failed) return retval; } if ( state.backtracking==0 ) { if ( nfa.grammar.type == Grammar.TREE_PARSER && (w.getChildIndex() > 0 || w.getParent().getChild(1).getType() == EOA) ) { retval.g = factory.build_WildcardTree( w ); } else { retval.g = factory.build_Wildcard( w ); } } } break; case 6 : // org\\antlr\\grammar\\v3\\TreeToNFAConverter.g:647:4: ^( DOT scope_= ID a= atom[$scope_.text] ) { match(input,DOT,FOLLOW_DOT_in_atom1330); if (state.failed) return retval; match(input, Token.DOWN, null); if (state.failed) return retval; scope_=(GrammarAST)match(input,ID,FOLLOW_ID_in_atom1334); if (state.failed) return retval; pushFollow(FOLLOW_atom_in_atom1338); a=atom((scope_!=null?scope_.getText():null)); state._fsp--; if (state.failed) return retval; if ( state.backtracking==0 ) { retval.g = (a!=null?a.g:null); } match(input, Token.UP, null); if (state.failed) return retval; } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return retval; }
[ "public final TreeToNFAConverter.atom_return atom(String scopeName) throws RecognitionException {\n\t\tTreeToNFAConverter.atom_return retval = new TreeToNFAConverter.atom_return();\n\t\tretval.start = input.LT(1);\n\n\t\tGrammarAST r=null;\n\t\tGrammarAST rarg=null;\n\t\tGrammarAST t=null;\n\t\tGrammarAST targ=null;\n\t\tGrammarAST c=null;\n\t\tGrammarAST s=null;\n\t\tGrammarAST w=null;\n\t\tGrammarAST scope_=null;\n\t\tTreeRuleReturnScope a =null;\n\n\t\ttry {\n\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:570:2: ( ^(r= RULE_REF (rarg= ARG_ACTION )? (as1= ast_suffix )? ) | ^(t= TOKEN_REF (targ= ARG_ACTION )? (as2= ast_suffix )? ) | ^(c= CHAR_LITERAL (as3= ast_suffix )? ) | ^(s= STRING_LITERAL (as4= ast_suffix )? ) | ^(w= WILDCARD (as5= ast_suffix )? ) | ^( DOT scope_= ID a= atom[$scope_.text] ) )\n\t\t\tint alt57=6;\n\t\t\tswitch ( input.LA(1) ) {\n\t\t\tcase RULE_REF:\n\t\t\t\t{\n\t\t\t\talt57=1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase TOKEN_REF:\n\t\t\t\t{\n\t\t\t\talt57=2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CHAR_LITERAL:\n\t\t\t\t{\n\t\t\t\talt57=3;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase STRING_LITERAL:\n\t\t\t\t{\n\t\t\t\talt57=4;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase WILDCARD:\n\t\t\t\t{\n\t\t\t\talt57=5;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DOT:\n\t\t\t\t{\n\t\t\t\talt57=6;\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(\"\", 57, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\t\t\tswitch (alt57) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:570:4: ^(r= RULE_REF (rarg= ARG_ACTION )? (as1= ast_suffix )? )\n\t\t\t\t\t{\n\t\t\t\t\tr=(GrammarAST)match(input,RULE_REF,FOLLOW_RULE_REF_in_atom1205); if (state.failed) return retval;\n\t\t\t\t\tif ( input.LA(1)==Token.DOWN ) {\n\t\t\t\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return retval;\n\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:570:18: (rarg= ARG_ACTION )?\n\t\t\t\t\t\tint alt50=2;\n\t\t\t\t\t\tint LA50_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA50_0==ARG_ACTION) ) {\n\t\t\t\t\t\t\talt50=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tswitch (alt50) {\n\t\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:570:19: rarg= ARG_ACTION\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\trarg=(GrammarAST)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_atom1210); if (state.failed) return retval;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:570:37: (as1= ast_suffix )?\n\t\t\t\t\t\tint alt51=2;\n\t\t\t\t\t\tint LA51_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA51_0==BANG||LA51_0==ROOT) ) {\n\t\t\t\t\t\t\talt51=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tswitch (alt51) {\n\t\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:570:38: as1= ast_suffix\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpushFollow(FOLLOW_ast_suffix_in_atom1217);\n\t\t\t\t\t\t\t\tast_suffix();\n\t\t\t\t\t\t\t\tstate._fsp--;\n\t\t\t\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tmatch(input, Token.UP, null); if (state.failed) return retval;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t\t\t\tNFAState start = grammar.getRuleStartState(scopeName,(r!=null?r.getText():null));\n\t\t\t\t\t\t\t\tif ( start!=null )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tRule rr = grammar.getRule(scopeName,(r!=null?r.getText():null));\n\t\t\t\t\t\t\t\t\tretval.g = factory.build_RuleRef(rr, start);\n\t\t\t\t\t\t\t\t\tr.followingNFAState = retval.g.right;\n\t\t\t\t\t\t\t\t\tr.NFAStartState = retval.g.left;\n\t\t\t\t\t\t\t\t\tif ( retval.g.left.transition(0) instanceof RuleClosureTransition\n\t\t\t\t\t\t\t\t\t\t&& grammar.type!=Grammar.LEXER )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\taddFollowTransition((r!=null?r.getText():null), retval.g.right);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// else rule ref got inlined to a set\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:588:4: ^(t= TOKEN_REF (targ= ARG_ACTION )? (as2= ast_suffix )? )\n\t\t\t\t\t{\n\t\t\t\t\tt=(GrammarAST)match(input,TOKEN_REF,FOLLOW_TOKEN_REF_in_atom1235); if (state.failed) return retval;\n\t\t\t\t\tif ( input.LA(1)==Token.DOWN ) {\n\t\t\t\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return retval;\n\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:588:20: (targ= ARG_ACTION )?\n\t\t\t\t\t\tint alt52=2;\n\t\t\t\t\t\tint LA52_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA52_0==ARG_ACTION) ) {\n\t\t\t\t\t\t\talt52=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tswitch (alt52) {\n\t\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:588:21: targ= ARG_ACTION\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttarg=(GrammarAST)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_atom1241); if (state.failed) return retval;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:588:39: (as2= ast_suffix )?\n\t\t\t\t\t\tint alt53=2;\n\t\t\t\t\t\tint LA53_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA53_0==BANG||LA53_0==ROOT) ) {\n\t\t\t\t\t\t\talt53=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tswitch (alt53) {\n\t\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:588:40: as2= ast_suffix\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpushFollow(FOLLOW_ast_suffix_in_atom1248);\n\t\t\t\t\t\t\t\tast_suffix();\n\t\t\t\t\t\t\t\tstate._fsp--;\n\t\t\t\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tmatch(input, Token.UP, null); if (state.failed) return retval;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t\t\t\tif ( grammar.type==Grammar.LEXER )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tNFAState start = grammar.getRuleStartState(scopeName,(t!=null?t.getText():null));\n\t\t\t\t\t\t\t\t\tif ( start!=null )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tRule rr = grammar.getRule(scopeName,t.getText());\n\t\t\t\t\t\t\t\t\t\tretval.g = factory.build_RuleRef(rr, start);\n\t\t\t\t\t\t\t\t\t\tt.NFAStartState = retval.g.left;\n\t\t\t\t\t\t\t\t\t\t// don't add FOLLOW transitions in the lexer;\n\t\t\t\t\t\t\t\t\t\t// only exact context should be used.\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\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tretval.g = factory.build_Atom(t);\n\t\t\t\t\t\t\t\t\tt.followingNFAState = retval.g.right;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:609:4: ^(c= CHAR_LITERAL (as3= ast_suffix )? )\n\t\t\t\t\t{\n\t\t\t\t\tc=(GrammarAST)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_atom1266); if (state.failed) return retval;\n\t\t\t\t\tif ( input.LA(1)==Token.DOWN ) {\n\t\t\t\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return retval;\n\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:609:23: (as3= ast_suffix )?\n\t\t\t\t\t\tint alt54=2;\n\t\t\t\t\t\tint LA54_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA54_0==BANG||LA54_0==ROOT) ) {\n\t\t\t\t\t\t\talt54=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tswitch (alt54) {\n\t\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:609:24: as3= ast_suffix\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpushFollow(FOLLOW_ast_suffix_in_atom1272);\n\t\t\t\t\t\t\t\tast_suffix();\n\t\t\t\t\t\t\t\tstate._fsp--;\n\t\t\t\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tmatch(input, Token.UP, null); if (state.failed) return retval;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t\t\t\tif ( grammar.type==Grammar.LEXER )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tretval.g = factory.build_CharLiteralAtom(c);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tretval.g = factory.build_Atom(c);\n\t\t\t\t\t\t\t\t\tc.followingNFAState = retval.g.right;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:622:4: ^(s= STRING_LITERAL (as4= ast_suffix )? )\n\t\t\t\t\t{\n\t\t\t\t\ts=(GrammarAST)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_atom1290); if (state.failed) return retval;\n\t\t\t\t\tif ( input.LA(1)==Token.DOWN ) {\n\t\t\t\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return retval;\n\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:622:25: (as4= ast_suffix )?\n\t\t\t\t\t\tint alt55=2;\n\t\t\t\t\t\tint LA55_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA55_0==BANG||LA55_0==ROOT) ) {\n\t\t\t\t\t\t\talt55=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tswitch (alt55) {\n\t\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:622:26: as4= ast_suffix\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpushFollow(FOLLOW_ast_suffix_in_atom1296);\n\t\t\t\t\t\t\t\tast_suffix();\n\t\t\t\t\t\t\t\tstate._fsp--;\n\t\t\t\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tmatch(input, Token.UP, null); if (state.failed) return retval;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t\t\t\tif ( grammar.type==Grammar.LEXER )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tretval.g = factory.build_StringLiteralAtom(s);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tretval.g = factory.build_Atom(s);\n\t\t\t\t\t\t\t\t\ts.followingNFAState = retval.g.right;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5 :\n\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:635:4: ^(w= WILDCARD (as5= ast_suffix )? )\n\t\t\t\t\t{\n\t\t\t\t\tw=(GrammarAST)match(input,WILDCARD,FOLLOW_WILDCARD_in_atom1314); if (state.failed) return retval;\n\t\t\t\t\tif ( input.LA(1)==Token.DOWN ) {\n\t\t\t\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return retval;\n\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:635:18: (as5= ast_suffix )?\n\t\t\t\t\t\tint alt56=2;\n\t\t\t\t\t\tint LA56_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA56_0==BANG||LA56_0==ROOT) ) {\n\t\t\t\t\t\t\talt56=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tswitch (alt56) {\n\t\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:635:19: as5= ast_suffix\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpushFollow(FOLLOW_ast_suffix_in_atom1319);\n\t\t\t\t\t\t\t\tast_suffix();\n\t\t\t\t\t\t\t\tstate._fsp--;\n\t\t\t\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tmatch(input, Token.UP, null); if (state.failed) return retval;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t\t\t\t\tif ( nfa.grammar.type == Grammar.TREE_PARSER\n\t\t\t\t\t\t\t\t\t\t&& (w.getChildIndex() > 0 || w.getParent().getChild(1).getType() == EOA) )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tretval.g = factory.build_WildcardTree( w );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tretval.g = factory.build_Wildcard( w );\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}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6 :\n\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:648:4: ^( DOT scope_= ID a= atom[$scope_.text] )\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,DOT,FOLLOW_DOT_in_atom1336); if (state.failed) return retval;\n\t\t\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return retval;\n\t\t\t\t\tscope_=(GrammarAST)match(input,ID,FOLLOW_ID_in_atom1340); if (state.failed) return retval;\n\t\t\t\t\tpushFollow(FOLLOW_atom_in_atom1344);\n\t\t\t\t\ta=atom((scope_!=null?scope_.getText():null));\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\tif ( state.backtracking==0 ) {retval.g = (a!=null?((TreeToNFAConverter.atom_return)a).g:null);}\n\t\t\t\t\tmatch(input, Token.UP, null); if (state.failed) return retval;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\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}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}", "public final StateCluster atom_or_notatom() throws RecognitionException {\r\n StateCluster g = null;\r\n\r\n GrammarAST n=null;\r\n GrammarAST c=null;\r\n GrammarAST t=null;\r\n TreeToNFAConverter.atom_return atom8 = null;\r\n\r\n TreeToNFAConverter.set_return set9 = null;\r\n\r\n\r\n try {\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:485:2: ( atom[null] | ^(n= NOT (c= CHAR_LITERAL (ast1= ast_suffix )? | t= TOKEN_REF (ast3= ast_suffix )? | set ) ) )\r\n int alt49=2;\r\n switch ( input.LA(1) ) {\r\n case DOT:\r\n case STRING_LITERAL:\r\n case CHAR_LITERAL:\r\n case TOKEN_REF:\r\n case WILDCARD:\r\n case RULE_REF:\r\n {\r\n alt49=1;\r\n }\r\n break;\r\n case NOT:\r\n {\r\n alt49=2;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return g;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 49, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt49) {\r\n case 1 :\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:485:4: atom[null]\r\n {\r\n pushFollow(FOLLOW_atom_in_atom_or_notatom1094);\r\n atom8=atom(null);\r\n\r\n state._fsp--;\r\n if (state.failed) return g;\r\n if ( state.backtracking==0 ) {\r\n g = (atom8!=null?atom8.g:null);\r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:486:4: ^(n= NOT (c= CHAR_LITERAL (ast1= ast_suffix )? | t= TOKEN_REF (ast3= ast_suffix )? | set ) )\r\n {\r\n n=(GrammarAST)match(input,NOT,FOLLOW_NOT_in_atom_or_notatom1106); if (state.failed) return g;\r\n\r\n match(input, Token.DOWN, null); if (state.failed) return g;\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:487:4: (c= CHAR_LITERAL (ast1= ast_suffix )? | t= TOKEN_REF (ast3= ast_suffix )? | set )\r\n int alt48=3;\r\n switch ( input.LA(1) ) {\r\n case CHAR_LITERAL:\r\n {\r\n alt48=1;\r\n }\r\n break;\r\n case TOKEN_REF:\r\n {\r\n alt48=2;\r\n }\r\n break;\r\n case BLOCK:\r\n {\r\n alt48=3;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return g;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 48, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt48) {\r\n case 1 :\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:487:6: c= CHAR_LITERAL (ast1= ast_suffix )?\r\n {\r\n c=(GrammarAST)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_atom_or_notatom1115); if (state.failed) return g;\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:487:21: (ast1= ast_suffix )?\r\n int alt46=2;\r\n switch ( input.LA(1) ) {\r\n case BANG:\r\n case ROOT:\r\n {\r\n alt46=1;\r\n }\r\n break;\r\n }\r\n\r\n switch (alt46) {\r\n case 1 :\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:487:22: ast1= ast_suffix\r\n {\r\n pushFollow(FOLLOW_ast_suffix_in_atom_or_notatom1120);\r\n ast_suffix();\r\n\r\n state._fsp--;\r\n if (state.failed) return g;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\t\t\tint ttype=0;\r\n \t\t\t\t\tif ( grammar.type==Grammar.LEXER )\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tttype = Grammar.getCharValueFromGrammarCharLiteral((c!=null?c.getText():null));\r\n \t\t\t\t\t}\r\n \t\t\t\t\telse\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tttype = grammar.getTokenType((c!=null?c.getText():null));\r\n \t\t\t\t\t}\r\n \t\t\t\t\tIntSet notAtom = grammar.complement(ttype);\r\n \t\t\t\t\tif ( notAtom.isNil() )\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tErrorManager.grammarError(\r\n \t\t\t\t\t\t\tErrorManager.MSG_EMPTY_COMPLEMENT,\r\n \t\t\t\t\t\t\tgrammar,\r\n \t\t\t\t\t\t\tc.getToken(),\r\n \t\t\t\t\t\t\t(c!=null?c.getText():null));\r\n \t\t\t\t\t}\r\n \t\t\t\t\tg =factory.build_Set(notAtom,n);\r\n \t\t\t\t\r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:509:6: t= TOKEN_REF (ast3= ast_suffix )?\r\n {\r\n t=(GrammarAST)match(input,TOKEN_REF,FOLLOW_TOKEN_REF_in_atom_or_notatom1137); if (state.failed) return g;\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:509:18: (ast3= ast_suffix )?\r\n int alt47=2;\r\n switch ( input.LA(1) ) {\r\n case BANG:\r\n case ROOT:\r\n {\r\n alt47=1;\r\n }\r\n break;\r\n }\r\n\r\n switch (alt47) {\r\n case 1 :\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:509:19: ast3= ast_suffix\r\n {\r\n pushFollow(FOLLOW_ast_suffix_in_atom_or_notatom1142);\r\n ast_suffix();\r\n\r\n state._fsp--;\r\n if (state.failed) return g;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\t\t\tint ttype=0;\r\n \t\t\t\t\tIntSet notAtom = null;\r\n \t\t\t\t\tif ( grammar.type==Grammar.LEXER )\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tnotAtom = grammar.getSetFromRule(this,(t!=null?t.getText():null));\r\n \t\t\t\t\t\tif ( notAtom==null )\r\n \t\t\t\t\t\t{\r\n \t\t\t\t\t\t\tErrorManager.grammarError(\r\n \t\t\t\t\t\t\t\tErrorManager.MSG_RULE_INVALID_SET,\r\n \t\t\t\t\t\t\t\tgrammar,\r\n \t\t\t\t\t\t\t\tt.getToken(),\r\n \t\t\t\t\t\t\t\t(t!=null?t.getText():null));\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\telse\r\n \t\t\t\t\t\t{\r\n \t\t\t\t\t\t\tnotAtom = grammar.complement(notAtom);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\telse\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tttype = grammar.getTokenType((t!=null?t.getText():null));\r\n \t\t\t\t\t\tnotAtom = grammar.complement(ttype);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif ( notAtom==null || notAtom.isNil() )\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tErrorManager.grammarError(\r\n \t\t\t\t\t\t\tErrorManager.MSG_EMPTY_COMPLEMENT,\r\n \t\t\t\t\t\t\tgrammar,\r\n \t\t\t\t\t\t\tt.getToken(),\r\n \t\t\t\t\t\t\t(t!=null?t.getText():null));\r\n \t\t\t\t\t}\r\n \t\t\t\t\tg =factory.build_Set(notAtom,n);\r\n \t\t\t\t\r\n }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:544:6: set\r\n {\r\n pushFollow(FOLLOW_set_in_atom_or_notatom1157);\r\n set9=set();\r\n\r\n state._fsp--;\r\n if (state.failed) return g;\r\n if ( state.backtracking==0 ) {\r\n g = (set9!=null?set9.g:null);\r\n }\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\t\t\tGrammarAST stNode = (GrammarAST)n.getChild(0);\r\n \t\t\t\t\t//IntSet notSet = grammar.complement(stNode.getSetValue());\r\n \t\t\t\t\t// let code generator complement the sets\r\n \t\t\t\t\tIntSet s = stNode.getSetValue();\r\n \t\t\t\t\tstNode.setSetValue(s);\r\n \t\t\t\t\t// let code gen do the complement again; here we compute\r\n \t\t\t\t\t// for NFA construction\r\n \t\t\t\t\ts = grammar.complement(s);\r\n \t\t\t\t\tif ( s.isNil() )\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tErrorManager.grammarError(\r\n \t\t\t\t\t\t\tErrorManager.MSG_EMPTY_COMPLEMENT,\r\n \t\t\t\t\t\t\tgrammar,\r\n \t\t\t\t\t\t\tn.getToken());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tg =factory.build_Set(s,n);\r\n \t\t\t\t\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n n.followingNFAState = g.right;\r\n }\r\n\r\n match(input, Token.UP, null); if (state.failed) return g;\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return g;\r\n }", "public final StateCluster atom_or_notatom() throws RecognitionException {\n\t\tStateCluster g = null;\n\n\n\t\tGrammarAST n=null;\n\t\tGrammarAST c=null;\n\t\tGrammarAST t=null;\n\t\tTreeRuleReturnScope atom8 =null;\n\t\tTreeRuleReturnScope set9 =null;\n\n\t\ttry {\n\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:486:2: ( atom[null] | ^(n= NOT (c= CHAR_LITERAL (ast1= ast_suffix )? |t= TOKEN_REF (ast3= ast_suffix )? | set ) ) )\n\t\t\tint alt49=2;\n\t\t\tint LA49_0 = input.LA(1);\n\t\t\tif ( (LA49_0==CHAR_LITERAL||LA49_0==DOT||LA49_0==RULE_REF||LA49_0==STRING_LITERAL||LA49_0==TOKEN_REF||LA49_0==WILDCARD) ) {\n\t\t\t\talt49=1;\n\t\t\t}\n\t\t\telse if ( (LA49_0==NOT) ) {\n\t\t\t\talt49=2;\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tif (state.backtracking>0) {state.failed=true; return g;}\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 49, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\n\t\t\tswitch (alt49) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:486:4: atom[null]\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_atom_in_atom_or_notatom1100);\n\t\t\t\t\tatom8=atom(null);\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return g;\n\t\t\t\t\tif ( state.backtracking==0 ) {g = (atom8!=null?((TreeToNFAConverter.atom_return)atom8).g:null);}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:487:4: ^(n= NOT (c= CHAR_LITERAL (ast1= ast_suffix )? |t= TOKEN_REF (ast3= ast_suffix )? | set ) )\n\t\t\t\t\t{\n\t\t\t\t\tn=(GrammarAST)match(input,NOT,FOLLOW_NOT_in_atom_or_notatom1112); if (state.failed) return g;\n\t\t\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return g;\n\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:488:4: (c= CHAR_LITERAL (ast1= ast_suffix )? |t= TOKEN_REF (ast3= ast_suffix )? | set )\n\t\t\t\t\tint alt48=3;\n\t\t\t\t\tswitch ( input.LA(1) ) {\n\t\t\t\t\tcase CHAR_LITERAL:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt48=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase TOKEN_REF:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt48=2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase BLOCK:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt48=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tif (state.backtracking>0) {state.failed=true; return g;}\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 48, 0, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (alt48) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:488:6: c= CHAR_LITERAL (ast1= ast_suffix )?\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tc=(GrammarAST)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_atom_or_notatom1121); if (state.failed) return g;\n\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:488:21: (ast1= ast_suffix )?\n\t\t\t\t\t\t\tint alt46=2;\n\t\t\t\t\t\t\tint LA46_0 = input.LA(1);\n\t\t\t\t\t\t\tif ( (LA46_0==BANG||LA46_0==ROOT) ) {\n\t\t\t\t\t\t\t\talt46=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tswitch (alt46) {\n\t\t\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:488:22: ast1= ast_suffix\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tpushFollow(FOLLOW_ast_suffix_in_atom_or_notatom1126);\n\t\t\t\t\t\t\t\t\tast_suffix();\n\t\t\t\t\t\t\t\t\tstate._fsp--;\n\t\t\t\t\t\t\t\t\tif (state.failed) return g;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t\t\t\t\t\t\t\tint ttype=0;\n\t\t\t\t\t\t\t\t\t\t\t\tif ( grammar.type==Grammar.LEXER )\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tttype = Grammar.getCharValueFromGrammarCharLiteral((c!=null?c.getText():null));\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tttype = grammar.getTokenType((c!=null?c.getText():null));\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tIntSet notAtom = grammar.complement(ttype);\n\t\t\t\t\t\t\t\t\t\t\t\tif ( notAtom.isNil() )\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tErrorManager.grammarError(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tErrorManager.MSG_EMPTY_COMPLEMENT,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgrammar,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.getToken(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(c!=null?c.getText():null));\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tg =factory.build_Set(notAtom,n);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:510:6: t= TOKEN_REF (ast3= ast_suffix )?\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt=(GrammarAST)match(input,TOKEN_REF,FOLLOW_TOKEN_REF_in_atom_or_notatom1143); if (state.failed) return g;\n\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:510:18: (ast3= ast_suffix )?\n\t\t\t\t\t\t\tint alt47=2;\n\t\t\t\t\t\t\tint LA47_0 = input.LA(1);\n\t\t\t\t\t\t\tif ( (LA47_0==BANG||LA47_0==ROOT) ) {\n\t\t\t\t\t\t\t\talt47=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tswitch (alt47) {\n\t\t\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:510:19: ast3= ast_suffix\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tpushFollow(FOLLOW_ast_suffix_in_atom_or_notatom1148);\n\t\t\t\t\t\t\t\t\tast_suffix();\n\t\t\t\t\t\t\t\t\tstate._fsp--;\n\t\t\t\t\t\t\t\t\tif (state.failed) return g;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t\t\t\t\t\t\t\tint ttype=0;\n\t\t\t\t\t\t\t\t\t\t\t\tIntSet notAtom = null;\n\t\t\t\t\t\t\t\t\t\t\t\tif ( grammar.type==Grammar.LEXER )\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tnotAtom = grammar.getSetFromRule(this,(t!=null?t.getText():null));\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ( notAtom==null )\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\t\tErrorManager.grammarError(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tErrorManager.MSG_RULE_INVALID_SET,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgrammar,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.getToken(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(t!=null?t.getText():null));\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\telse\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\t\tnotAtom = grammar.complement(notAtom);\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}\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tttype = grammar.getTokenType((t!=null?t.getText():null));\n\t\t\t\t\t\t\t\t\t\t\t\t\tnotAtom = grammar.complement(ttype);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tif ( notAtom==null || notAtom.isNil() )\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tErrorManager.grammarError(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tErrorManager.MSG_EMPTY_COMPLEMENT,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgrammar,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.getToken(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(t!=null?t.getText():null));\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tg =factory.build_Set(notAtom,n);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:545:6: set\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpushFollow(FOLLOW_set_in_atom_or_notatom1163);\n\t\t\t\t\t\t\tset9=set();\n\t\t\t\t\t\t\tstate._fsp--;\n\t\t\t\t\t\t\tif (state.failed) return g;\n\t\t\t\t\t\t\tif ( state.backtracking==0 ) {g = (set9!=null?((TreeToNFAConverter.set_return)set9).g:null);}\n\t\t\t\t\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\t\t\t\t\t\t\t\tGrammarAST stNode = (GrammarAST)n.getChild(0);\n\t\t\t\t\t\t\t\t\t\t\t\t//IntSet notSet = grammar.complement(stNode.getSetValue());\n\t\t\t\t\t\t\t\t\t\t\t\t// let code generator complement the sets\n\t\t\t\t\t\t\t\t\t\t\t\tIntSet s = stNode.getSetValue();\n\t\t\t\t\t\t\t\t\t\t\t\tstNode.setSetValue(s);\n\t\t\t\t\t\t\t\t\t\t\t\t// let code gen do the complement again; here we compute\n\t\t\t\t\t\t\t\t\t\t\t\t// for NFA construction\n\t\t\t\t\t\t\t\t\t\t\t\ts = grammar.complement(s);\n\t\t\t\t\t\t\t\t\t\t\t\tif ( s.isNil() )\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tErrorManager.grammarError(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tErrorManager.MSG_EMPTY_COMPLEMENT,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgrammar,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tn.getToken());\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tg =factory.build_Set(s,n);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( state.backtracking==0 ) {n.followingNFAState = g.right;}\n\t\t\t\t\tmatch(input, Token.UP, null); if (state.failed) return g;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\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}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn g;\n\t}", "public final ANTLRv3Parser.atom_return atom() throws RecognitionException {\r\n ANTLRv3Parser.atom_return retval = new ANTLRv3Parser.atom_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token op=null;\r\n Token RULE_REF110=null;\r\n Token ARG_ACTION111=null;\r\n ANTLRv3Parser.terminal_return terminal107 =null;\r\n\r\n ANTLRv3Parser.range_return range108 =null;\r\n\r\n ANTLRv3Parser.notSet_return notSet109 =null;\r\n\r\n\r\n CommonTree op_tree=null;\r\n CommonTree RULE_REF110_tree=null;\r\n CommonTree ARG_ACTION111_tree=null;\r\n RewriteRuleTokenStream stream_BANG=new RewriteRuleTokenStream(adaptor,\"token BANG\");\r\n RewriteRuleTokenStream stream_ROOT=new RewriteRuleTokenStream(adaptor,\"token ROOT\");\r\n RewriteRuleTokenStream stream_RULE_REF=new RewriteRuleTokenStream(adaptor,\"token RULE_REF\");\r\n RewriteRuleTokenStream stream_ARG_ACTION=new RewriteRuleTokenStream(adaptor,\"token ARG_ACTION\");\r\n RewriteRuleSubtreeStream stream_range=new RewriteRuleSubtreeStream(adaptor,\"rule range\");\r\n RewriteRuleSubtreeStream stream_notSet=new RewriteRuleSubtreeStream(adaptor,\"rule notSet\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:255:5: ( terminal | range ( (op= '^' |op= '!' ) -> ^( $op range ) | -> range ) | notSet ( (op= '^' |op= '!' ) -> ^( $op notSet ) | -> notSet ) | RULE_REF ( ARG_ACTION )? ( (op= '^' |op= '!' ) -> ^( $op RULE_REF ( ARG_ACTION )? ) | -> ^( RULE_REF ( ARG_ACTION )? ) ) )\r\n int alt54=4;\r\n switch ( input.LA(1) ) {\r\n case CHAR_LITERAL:\r\n {\r\n int LA54_1 = input.LA(2);\r\n\r\n if ( (LA54_1==RANGE) ) {\r\n alt54=2;\r\n }\r\n else if ( (LA54_1==ACTION||LA54_1==BANG||LA54_1==CHAR_LITERAL||(LA54_1 >= REWRITE && LA54_1 <= ROOT)||LA54_1==RULE_REF||LA54_1==SEMPRED||LA54_1==STRING_LITERAL||(LA54_1 >= TOKEN_REF && LA54_1 <= TREE_BEGIN)||(LA54_1 >= 68 && LA54_1 <= 71)||LA54_1==73||(LA54_1 >= 76 && LA54_1 <= 77)||LA54_1==80||LA54_1==91||LA54_1==93) ) {\r\n alt54=1;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 54, 1, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n break;\r\n case STRING_LITERAL:\r\n case TOKEN_REF:\r\n case 73:\r\n {\r\n alt54=1;\r\n }\r\n break;\r\n case 93:\r\n {\r\n alt54=3;\r\n }\r\n break;\r\n case RULE_REF:\r\n {\r\n alt54=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 54, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt54) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:255:9: terminal\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_terminal_in_atom1800);\r\n terminal107=terminal();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, terminal107.getTree());\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:256:4: range ( (op= '^' |op= '!' ) -> ^( $op range ) | -> range )\r\n {\r\n pushFollow(FOLLOW_range_in_atom1805);\r\n range108=range();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_range.add(range108.getTree());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:3: ( (op= '^' |op= '!' ) -> ^( $op range ) | -> range )\r\n int alt48=2;\r\n int LA48_0 = input.LA(1);\r\n\r\n if ( (LA48_0==BANG||LA48_0==ROOT) ) {\r\n alt48=1;\r\n }\r\n else if ( (LA48_0==ACTION||LA48_0==CHAR_LITERAL||LA48_0==REWRITE||LA48_0==RULE_REF||LA48_0==SEMPRED||LA48_0==STRING_LITERAL||(LA48_0 >= TOKEN_REF && LA48_0 <= TREE_BEGIN)||(LA48_0 >= 68 && LA48_0 <= 71)||LA48_0==73||LA48_0==76||LA48_0==80||LA48_0==91||LA48_0==93) ) {\r\n alt48=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 48, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt48) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:5: (op= '^' |op= '!' )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:5: (op= '^' |op= '!' )\r\n int alt47=2;\r\n int LA47_0 = input.LA(1);\r\n\r\n if ( (LA47_0==ROOT) ) {\r\n alt47=1;\r\n }\r\n else if ( (LA47_0==BANG) ) {\r\n alt47=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 47, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt47) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:6: op= '^'\r\n {\r\n op=(Token)match(input,ROOT,FOLLOW_ROOT_in_atom1815); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ROOT.add(op);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:13: op= '!'\r\n {\r\n op=(Token)match(input,BANG,FOLLOW_BANG_in_atom1819); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_BANG.add(op);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: range, op\r\n // token labels: op\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_op=new RewriteRuleTokenStream(adaptor,\"token op\",op);\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 257:21: -> ^( $op range )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:257:24: ^( $op range )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(stream_op.nextNode(), root_1);\r\n\r\n adaptor.addChild(root_1, stream_range.nextTree());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:258:9: \r\n {\r\n // AST REWRITE\r\n // elements: range\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 258:9: -> range\r\n {\r\n adaptor.addChild(root_0, stream_range.nextTree());\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:260:7: notSet ( (op= '^' |op= '!' ) -> ^( $op notSet ) | -> notSet )\r\n {\r\n pushFollow(FOLLOW_notSet_in_atom1853);\r\n notSet109=notSet();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_notSet.add(notSet109.getTree());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:3: ( (op= '^' |op= '!' ) -> ^( $op notSet ) | -> notSet )\r\n int alt50=2;\r\n int LA50_0 = input.LA(1);\r\n\r\n if ( (LA50_0==BANG||LA50_0==ROOT) ) {\r\n alt50=1;\r\n }\r\n else if ( (LA50_0==ACTION||LA50_0==CHAR_LITERAL||LA50_0==REWRITE||LA50_0==RULE_REF||LA50_0==SEMPRED||LA50_0==STRING_LITERAL||(LA50_0 >= TOKEN_REF && LA50_0 <= TREE_BEGIN)||(LA50_0 >= 68 && LA50_0 <= 71)||LA50_0==73||LA50_0==76||LA50_0==80||LA50_0==91||LA50_0==93) ) {\r\n alt50=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 50, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt50) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:5: (op= '^' |op= '!' )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:5: (op= '^' |op= '!' )\r\n int alt49=2;\r\n int LA49_0 = input.LA(1);\r\n\r\n if ( (LA49_0==ROOT) ) {\r\n alt49=1;\r\n }\r\n else if ( (LA49_0==BANG) ) {\r\n alt49=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 49, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt49) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:6: op= '^'\r\n {\r\n op=(Token)match(input,ROOT,FOLLOW_ROOT_in_atom1862); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ROOT.add(op);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:13: op= '!'\r\n {\r\n op=(Token)match(input,BANG,FOLLOW_BANG_in_atom1866); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_BANG.add(op);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: notSet, op\r\n // token labels: op\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_op=new RewriteRuleTokenStream(adaptor,\"token op\",op);\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 261:21: -> ^( $op notSet )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:261:24: ^( $op notSet )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(stream_op.nextNode(), root_1);\r\n\r\n adaptor.addChild(root_1, stream_notSet.nextTree());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:262:9: \r\n {\r\n // AST REWRITE\r\n // elements: notSet\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 262:9: -> notSet\r\n {\r\n adaptor.addChild(root_0, stream_notSet.nextTree());\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:264:9: RULE_REF ( ARG_ACTION )? ( (op= '^' |op= '!' ) -> ^( $op RULE_REF ( ARG_ACTION )? ) | -> ^( RULE_REF ( ARG_ACTION )? ) )\r\n {\r\n RULE_REF110=(Token)match(input,RULE_REF,FOLLOW_RULE_REF_in_atom1902); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_RULE_REF.add(RULE_REF110);\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:264:18: ( ARG_ACTION )?\r\n int alt51=2;\r\n int LA51_0 = input.LA(1);\r\n\r\n if ( (LA51_0==ARG_ACTION) ) {\r\n alt51=1;\r\n }\r\n switch (alt51) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:264:18: ARG_ACTION\r\n {\r\n ARG_ACTION111=(Token)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_atom1904); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ARG_ACTION.add(ARG_ACTION111);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:3: ( (op= '^' |op= '!' ) -> ^( $op RULE_REF ( ARG_ACTION )? ) | -> ^( RULE_REF ( ARG_ACTION )? ) )\r\n int alt53=2;\r\n int LA53_0 = input.LA(1);\r\n\r\n if ( (LA53_0==BANG||LA53_0==ROOT) ) {\r\n alt53=1;\r\n }\r\n else if ( (LA53_0==ACTION||LA53_0==CHAR_LITERAL||LA53_0==REWRITE||LA53_0==RULE_REF||LA53_0==SEMPRED||LA53_0==STRING_LITERAL||(LA53_0 >= TOKEN_REF && LA53_0 <= TREE_BEGIN)||(LA53_0 >= 68 && LA53_0 <= 71)||LA53_0==73||LA53_0==76||LA53_0==80||LA53_0==91||LA53_0==93) ) {\r\n alt53=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 53, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt53) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:5: (op= '^' |op= '!' )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:5: (op= '^' |op= '!' )\r\n int alt52=2;\r\n int LA52_0 = input.LA(1);\r\n\r\n if ( (LA52_0==ROOT) ) {\r\n alt52=1;\r\n }\r\n else if ( (LA52_0==BANG) ) {\r\n alt52=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 52, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt52) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:6: op= '^'\r\n {\r\n op=(Token)match(input,ROOT,FOLLOW_ROOT_in_atom1914); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ROOT.add(op);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:13: op= '!'\r\n {\r\n op=(Token)match(input,BANG,FOLLOW_BANG_in_atom1918); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_BANG.add(op);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: ARG_ACTION, op, RULE_REF\r\n // token labels: op\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_op=new RewriteRuleTokenStream(adaptor,\"token op\",op);\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 265:21: -> ^( $op RULE_REF ( ARG_ACTION )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:24: ^( $op RULE_REF ( ARG_ACTION )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(stream_op.nextNode(), root_1);\r\n\r\n adaptor.addChild(root_1, \r\n stream_RULE_REF.nextNode()\r\n );\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:265:39: ( ARG_ACTION )?\r\n if ( stream_ARG_ACTION.hasNext() ) {\r\n adaptor.addChild(root_1, \r\n stream_ARG_ACTION.nextNode()\r\n );\r\n\r\n }\r\n stream_ARG_ACTION.reset();\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:266:9: \r\n {\r\n // AST REWRITE\r\n // elements: ARG_ACTION, RULE_REF\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 266:9: -> ^( RULE_REF ( ARG_ACTION )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:266:12: ^( RULE_REF ( ARG_ACTION )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n stream_RULE_REF.nextNode()\r\n , root_1);\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:266:23: ( ARG_ACTION )?\r\n if ( stream_ARG_ACTION.hasNext() ) {\r\n adaptor.addChild(root_1, \r\n stream_ARG_ACTION.nextNode()\r\n );\r\n\r\n }\r\n stream_ARG_ACTION.reset();\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\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\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }", "public final void rewriteTreeAtom() throws RecognitionException {\n try {\n // ASTVerifier.g:378:5: ( CHAR_LITERAL | ^( TOKEN_REF ARG_ACTION ) | TOKEN_REF | RULE_REF | STRING_LITERAL | LABEL | ACTION )\n int alt51=7;\n switch ( input.LA(1) ) {\n case CHAR_LITERAL:\n {\n alt51=1;\n }\n break;\n case TOKEN_REF:\n {\n int LA51_2 = input.LA(2);\n\n if ( (LA51_2==DOWN) ) {\n alt51=2;\n }\n else if ( (LA51_2==UP||LA51_2==ACTION||LA51_2==TREE_BEGIN||(LA51_2>=TOKEN_REF && LA51_2<=RULE_REF)||LA51_2==STRING_LITERAL||LA51_2==CHAR_LITERAL||(LA51_2>=OPTIONAL && LA51_2<=POSITIVE_CLOSURE)||LA51_2==LABEL) ) {\n alt51=3;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 51, 2, input);\n\n throw nvae;\n }\n }\n break;\n case RULE_REF:\n {\n alt51=4;\n }\n break;\n case STRING_LITERAL:\n {\n alt51=5;\n }\n break;\n case LABEL:\n {\n alt51=6;\n }\n break;\n case ACTION:\n {\n alt51=7;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 51, 0, input);\n\n throw nvae;\n }\n\n switch (alt51) {\n case 1 :\n // ASTVerifier.g:378:9: CHAR_LITERAL\n {\n match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_rewriteTreeAtom1731);\n\n }\n break;\n case 2 :\n // ASTVerifier.g:379:6: ^( TOKEN_REF ARG_ACTION )\n {\n match(input,TOKEN_REF,FOLLOW_TOKEN_REF_in_rewriteTreeAtom1739);\n\n match(input, Token.DOWN, null);\n match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_rewriteTreeAtom1741);\n\n match(input, Token.UP, null);\n\n }\n break;\n case 3 :\n // ASTVerifier.g:380:6: TOKEN_REF\n {\n match(input,TOKEN_REF,FOLLOW_TOKEN_REF_in_rewriteTreeAtom1749);\n\n }\n break;\n case 4 :\n // ASTVerifier.g:381:9: RULE_REF\n {\n match(input,RULE_REF,FOLLOW_RULE_REF_in_rewriteTreeAtom1759);\n\n }\n break;\n case 5 :\n // ASTVerifier.g:382:6: STRING_LITERAL\n {\n match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_rewriteTreeAtom1766);\n\n }\n break;\n case 6 :\n // ASTVerifier.g:383:6: LABEL\n {\n match(input,LABEL,FOLLOW_LABEL_in_rewriteTreeAtom1773);\n\n }\n break;\n case 7 :\n // ASTVerifier.g:384:4: ACTION\n {\n match(input,ACTION,FOLLOW_ACTION_in_rewriteTreeAtom1778);\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public final ANTLRv3Parser.rewrite_tree_atom_return rewrite_tree_atom() throws RecognitionException {\r\n ANTLRv3Parser.rewrite_tree_atom_return retval = new ANTLRv3Parser.rewrite_tree_atom_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token d=null;\r\n Token CHAR_LITERAL162=null;\r\n Token TOKEN_REF163=null;\r\n Token ARG_ACTION164=null;\r\n Token RULE_REF165=null;\r\n Token STRING_LITERAL166=null;\r\n Token ACTION168=null;\r\n ANTLRv3Parser.id_return id167 =null;\r\n\r\n\r\n CommonTree d_tree=null;\r\n CommonTree CHAR_LITERAL162_tree=null;\r\n CommonTree TOKEN_REF163_tree=null;\r\n CommonTree ARG_ACTION164_tree=null;\r\n CommonTree RULE_REF165_tree=null;\r\n CommonTree STRING_LITERAL166_tree=null;\r\n CommonTree ACTION168_tree=null;\r\n RewriteRuleTokenStream stream_67=new RewriteRuleTokenStream(adaptor,\"token 67\");\r\n RewriteRuleTokenStream stream_TOKEN_REF=new RewriteRuleTokenStream(adaptor,\"token TOKEN_REF\");\r\n RewriteRuleTokenStream stream_ARG_ACTION=new RewriteRuleTokenStream(adaptor,\"token ARG_ACTION\");\r\n RewriteRuleSubtreeStream stream_id=new RewriteRuleSubtreeStream(adaptor,\"rule id\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:389:5: ( CHAR_LITERAL | TOKEN_REF ( ARG_ACTION )? -> ^( TOKEN_REF ( ARG_ACTION )? ) | RULE_REF | STRING_LITERAL |d= '$' id -> LABEL[$d,$id.text] | ACTION )\r\n int alt78=6;\r\n switch ( input.LA(1) ) {\r\n case CHAR_LITERAL:\r\n {\r\n alt78=1;\r\n }\r\n break;\r\n case TOKEN_REF:\r\n {\r\n alt78=2;\r\n }\r\n break;\r\n case RULE_REF:\r\n {\r\n alt78=3;\r\n }\r\n break;\r\n case STRING_LITERAL:\r\n {\r\n alt78=4;\r\n }\r\n break;\r\n case 67:\r\n {\r\n alt78=5;\r\n }\r\n break;\r\n case ACTION:\r\n {\r\n alt78=6;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 78, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt78) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:389:9: CHAR_LITERAL\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n CHAR_LITERAL162=(Token)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_rewrite_tree_atom2870); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n CHAR_LITERAL162_tree = \r\n (CommonTree)adaptor.create(CHAR_LITERAL162)\r\n ;\r\n adaptor.addChild(root_0, CHAR_LITERAL162_tree);\r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:390:6: TOKEN_REF ( ARG_ACTION )?\r\n {\r\n TOKEN_REF163=(Token)match(input,TOKEN_REF,FOLLOW_TOKEN_REF_in_rewrite_tree_atom2877); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_TOKEN_REF.add(TOKEN_REF163);\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:390:16: ( ARG_ACTION )?\r\n int alt77=2;\r\n int LA77_0 = input.LA(1);\r\n\r\n if ( (LA77_0==ARG_ACTION) ) {\r\n alt77=1;\r\n }\r\n switch (alt77) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:390:16: ARG_ACTION\r\n {\r\n ARG_ACTION164=(Token)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_rewrite_tree_atom2879); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ARG_ACTION.add(ARG_ACTION164);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: ARG_ACTION, TOKEN_REF\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 390:28: -> ^( TOKEN_REF ( ARG_ACTION )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:390:31: ^( TOKEN_REF ( ARG_ACTION )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n stream_TOKEN_REF.nextNode()\r\n , root_1);\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:390:43: ( ARG_ACTION )?\r\n if ( stream_ARG_ACTION.hasNext() ) {\r\n adaptor.addChild(root_1, \r\n stream_ARG_ACTION.nextNode()\r\n );\r\n\r\n }\r\n stream_ARG_ACTION.reset();\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:391:9: RULE_REF\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n RULE_REF165=(Token)match(input,RULE_REF,FOLLOW_RULE_REF_in_rewrite_tree_atom2900); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n RULE_REF165_tree = \r\n (CommonTree)adaptor.create(RULE_REF165)\r\n ;\r\n adaptor.addChild(root_0, RULE_REF165_tree);\r\n }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:392:6: STRING_LITERAL\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n STRING_LITERAL166=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_rewrite_tree_atom2907); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n STRING_LITERAL166_tree = \r\n (CommonTree)adaptor.create(STRING_LITERAL166)\r\n ;\r\n adaptor.addChild(root_0, STRING_LITERAL166_tree);\r\n }\r\n\r\n }\r\n break;\r\n case 5 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:393:6: d= '$' id\r\n {\r\n d=(Token)match(input,67,FOLLOW_67_in_rewrite_tree_atom2916); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_67.add(d);\r\n\r\n\r\n pushFollow(FOLLOW_id_in_rewrite_tree_atom2918);\r\n id167=id();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_id.add(id167.getTree());\r\n\r\n // AST REWRITE\r\n // elements: \r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 393:15: -> LABEL[$d,$id.text]\r\n {\r\n adaptor.addChild(root_0, \r\n (CommonTree)adaptor.create(LABEL, d, (id167!=null?input.toString(id167.start,id167.stop):null))\r\n );\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n case 6 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:394:4: ACTION\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n ACTION168=(Token)match(input,ACTION,FOLLOW_ACTION_in_rewrite_tree_atom2929); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n ACTION168_tree = \r\n (CommonTree)adaptor.create(ACTION168)\r\n ;\r\n adaptor.addChild(root_0, ACTION168_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\r\n if ( state.backtracking==0 ) {\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\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }", "public final void atom() throws RecognitionException {\n try {\n // ASTVerifier.g:280:5: ( ^( ROOT range ) | ^( BANG range ) | ^( ROOT notSet ) | ^( BANG notSet ) | range | ^( DOT ID terminal ) | ^( DOT ID ruleref ) | terminal | ruleref )\n int alt33=9;\n alt33 = dfa33.predict(input);\n switch (alt33) {\n case 1 :\n // ASTVerifier.g:280:7: ^( ROOT range )\n {\n match(input,ROOT,FOLLOW_ROOT_in_atom1080);\n\n match(input, Token.DOWN, null);\n pushFollow(FOLLOW_range_in_atom1082);\n range();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n }\n break;\n case 2 :\n // ASTVerifier.g:281:4: ^( BANG range )\n {\n match(input,BANG,FOLLOW_BANG_in_atom1089);\n\n match(input, Token.DOWN, null);\n pushFollow(FOLLOW_range_in_atom1091);\n range();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n }\n break;\n case 3 :\n // ASTVerifier.g:282:4: ^( ROOT notSet )\n {\n match(input,ROOT,FOLLOW_ROOT_in_atom1098);\n\n match(input, Token.DOWN, null);\n pushFollow(FOLLOW_notSet_in_atom1100);\n notSet();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n }\n break;\n case 4 :\n // ASTVerifier.g:283:4: ^( BANG notSet )\n {\n match(input,BANG,FOLLOW_BANG_in_atom1107);\n\n match(input, Token.DOWN, null);\n pushFollow(FOLLOW_notSet_in_atom1109);\n notSet();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n }\n break;\n case 5 :\n // ASTVerifier.g:284:4: range\n {\n pushFollow(FOLLOW_range_in_atom1115);\n range();\n\n state._fsp--;\n\n\n }\n break;\n case 6 :\n // ASTVerifier.g:285:4: ^( DOT ID terminal )\n {\n match(input,DOT,FOLLOW_DOT_in_atom1121);\n\n match(input, Token.DOWN, null);\n match(input,ID,FOLLOW_ID_in_atom1123);\n pushFollow(FOLLOW_terminal_in_atom1125);\n terminal();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n }\n break;\n case 7 :\n // ASTVerifier.g:286:4: ^( DOT ID ruleref )\n {\n match(input,DOT,FOLLOW_DOT_in_atom1132);\n\n match(input, Token.DOWN, null);\n match(input,ID,FOLLOW_ID_in_atom1134);\n pushFollow(FOLLOW_ruleref_in_atom1136);\n ruleref();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n }\n break;\n case 8 :\n // ASTVerifier.g:287:9: terminal\n {\n pushFollow(FOLLOW_terminal_in_atom1147);\n terminal();\n\n state._fsp--;\n\n\n }\n break;\n case 9 :\n // ASTVerifier.g:288:9: ruleref\n {\n pushFollow(FOLLOW_ruleref_in_atom1157);\n ruleref();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public final BeeParser.atom_return atom() throws RecognitionException {\r\n BeeParser.atom_return retval = new BeeParser.atom_return();\r\n retval.start = input.LT(1);\r\n int atom_StartIndex = input.index();\r\n BeeCommonNodeTree root_0 = null;\r\n\r\n Token a=null;\r\n Token BOOLEAN118=null;\r\n Token INT119=null;\r\n Token NULL120=null;\r\n Token DOUBLE121=null;\r\n Token char_literal123=null;\r\n Token char_literal125=null;\r\n BeeParser.varRef_return varRef122 = null;\r\n\r\n BeeParser.exp_return exp124 = null;\r\n\r\n BeeParser.functionCall_return functionCall126 = null;\r\n\r\n BeeParser.nativeMethod_return nativeMethod127 = null;\r\n\r\n BeeParser.json_return json128 = null;\r\n\r\n\r\n BeeCommonNodeTree a_tree=null;\r\n BeeCommonNodeTree BOOLEAN118_tree=null;\r\n BeeCommonNodeTree INT119_tree=null;\r\n BeeCommonNodeTree NULL120_tree=null;\r\n BeeCommonNodeTree DOUBLE121_tree=null;\r\n BeeCommonNodeTree char_literal123_tree=null;\r\n BeeCommonNodeTree char_literal125_tree=null;\r\n RewriteRuleTokenStream stream_StringLiteral=new RewriteRuleTokenStream(adaptor,\"token StringLiteral\");\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 33) ) { return retval; }\r\n // E:\\\\lijz\\\\javamonkey\\\\git\\\\oschina_beetl\\\\src\\\\org\\\\bee\\\\tl\\\\core\\\\Bee.g:261:6: ( BOOLEAN | INT | NULL | DOUBLE | a= StringLiteral -> | varRef | '(' exp ')' | functionCall[false] | nativeMethod[false] | json )\r\n int alt33=10;\r\n alt33 = dfa33.predict(input);\r\n switch (alt33) {\r\n case 1 :\r\n // E:\\\\lijz\\\\javamonkey\\\\git\\\\oschina_beetl\\\\src\\\\org\\\\bee\\\\tl\\\\core\\\\Bee.g:261:8: BOOLEAN\r\n {\r\n root_0 = (BeeCommonNodeTree)adaptor.nil();\r\n\r\n BOOLEAN118=(Token)match(input,BOOLEAN,FOLLOW_BOOLEAN_in_atom1524); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n BOOLEAN118_tree = (BeeCommonNodeTree)adaptor.create(BOOLEAN118);\r\n adaptor.addChild(root_0, BOOLEAN118_tree);\r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // E:\\\\lijz\\\\javamonkey\\\\git\\\\oschina_beetl\\\\src\\\\org\\\\bee\\\\tl\\\\core\\\\Bee.g:263:6: INT\r\n {\r\n root_0 = (BeeCommonNodeTree)adaptor.nil();\r\n\r\n INT119=(Token)match(input,INT,FOLLOW_INT_in_atom1533); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n INT119_tree = (BeeCommonNodeTree)adaptor.create(INT119);\r\n adaptor.addChild(root_0, INT119_tree);\r\n }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // E:\\\\lijz\\\\javamonkey\\\\git\\\\oschina_beetl\\\\src\\\\org\\\\bee\\\\tl\\\\core\\\\Bee.g:264:4: NULL\r\n {\r\n root_0 = (BeeCommonNodeTree)adaptor.nil();\r\n\r\n NULL120=(Token)match(input,NULL,FOLLOW_NULL_in_atom1538); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n NULL120_tree = (BeeCommonNodeTree)adaptor.create(NULL120);\r\n adaptor.addChild(root_0, NULL120_tree);\r\n }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // E:\\\\lijz\\\\javamonkey\\\\git\\\\oschina_beetl\\\\src\\\\org\\\\bee\\\\tl\\\\core\\\\Bee.g:265:4: DOUBLE\r\n {\r\n root_0 = (BeeCommonNodeTree)adaptor.nil();\r\n\r\n DOUBLE121=(Token)match(input,DOUBLE,FOLLOW_DOUBLE_in_atom1543); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n DOUBLE121_tree = (BeeCommonNodeTree)adaptor.create(DOUBLE121);\r\n adaptor.addChild(root_0, DOUBLE121_tree);\r\n }\r\n\r\n }\r\n break;\r\n case 5 :\r\n // E:\\\\lijz\\\\javamonkey\\\\git\\\\oschina_beetl\\\\src\\\\org\\\\bee\\\\tl\\\\core\\\\Bee.g:266:4: a= StringLiteral\r\n {\r\n a=(Token)match(input,StringLiteral,FOLLOW_StringLiteral_in_atom1550); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_StringLiteral.add(a);\r\n\r\n\r\n\r\n // AST REWRITE\r\n // elements: \r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (BeeCommonNodeTree)adaptor.nil();\r\n // 266:20: ->\r\n {\r\n adaptor.addChild(root_0, new BeeCommonNodeTree(new CommonToken(StringLiteral,BeetlUtil.getEscapeString((a!=null?a.getText():null)))));\r\n\r\n }\r\n\r\n retval.tree = root_0;}\r\n }\r\n break;\r\n case 6 :\r\n // E:\\\\lijz\\\\javamonkey\\\\git\\\\oschina_beetl\\\\src\\\\org\\\\bee\\\\tl\\\\core\\\\Bee.g:267:4: varRef\r\n {\r\n root_0 = (BeeCommonNodeTree)adaptor.nil();\r\n\r\n pushFollow(FOLLOW_varRef_in_atom1559);\r\n varRef122=varRef();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, varRef122.getTree());\r\n\r\n }\r\n break;\r\n case 7 :\r\n // E:\\\\lijz\\\\javamonkey\\\\git\\\\oschina_beetl\\\\src\\\\org\\\\bee\\\\tl\\\\core\\\\Bee.g:268:4: '(' exp ')'\r\n {\r\n root_0 = (BeeCommonNodeTree)adaptor.nil();\r\n\r\n char_literal123=(Token)match(input,100,FOLLOW_100_in_atom1565); if (state.failed) return retval;\r\n pushFollow(FOLLOW_exp_in_atom1568);\r\n exp124=exp();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, exp124.getTree());\r\n char_literal125=(Token)match(input,102,FOLLOW_102_in_atom1570); if (state.failed) return retval;\r\n\r\n }\r\n break;\r\n case 8 :\r\n // E:\\\\lijz\\\\javamonkey\\\\git\\\\oschina_beetl\\\\src\\\\org\\\\bee\\\\tl\\\\core\\\\Bee.g:269:4: functionCall[false]\r\n {\r\n root_0 = (BeeCommonNodeTree)adaptor.nil();\r\n\r\n pushFollow(FOLLOW_functionCall_in_atom1577);\r\n functionCall126=functionCall(false);\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, functionCall126.getTree());\r\n\r\n }\r\n break;\r\n case 9 :\r\n // E:\\\\lijz\\\\javamonkey\\\\git\\\\oschina_beetl\\\\src\\\\org\\\\bee\\\\tl\\\\core\\\\Bee.g:270:4: nativeMethod[false]\r\n {\r\n root_0 = (BeeCommonNodeTree)adaptor.nil();\r\n\r\n pushFollow(FOLLOW_nativeMethod_in_atom1583);\r\n nativeMethod127=nativeMethod(false);\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, nativeMethod127.getTree());\r\n\r\n }\r\n break;\r\n case 10 :\r\n // E:\\\\lijz\\\\javamonkey\\\\git\\\\oschina_beetl\\\\src\\\\org\\\\bee\\\\tl\\\\core\\\\Bee.g:271:4: json\r\n {\r\n root_0 = (BeeCommonNodeTree)adaptor.nil();\r\n\r\n pushFollow(FOLLOW_json_in_atom1589);\r\n json128=json();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, json128.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (BeeCommonNodeTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n\r\n catch (RecognitionException e) {\r\n reportError(e); \r\n throw e;\r\n }\r\n finally {\r\n if ( state.backtracking>0 ) { memoize(input, 33, atom_StartIndex); }\r\n }\r\n return retval;\r\n }", "public final void atom(GrammarAST scope_) throws RecognitionException {\r\n GrammarAST rr=null;\r\n GrammarAST rarg=null;\r\n GrammarAST t=null;\r\n GrammarAST targ=null;\r\n GrammarAST c=null;\r\n GrammarAST s=null;\r\n GrammarAST ID11=null;\r\n\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:498:2: ( ^(rr= RULE_REF (rarg= ARG_ACTION )? ) | ^(t= TOKEN_REF (targ= ARG_ACTION )? ) |c= CHAR_LITERAL |s= STRING_LITERAL | WILDCARD | ^( DOT ID atom[$ID] ) )\r\n int alt43=6;\r\n switch ( input.LA(1) ) {\r\n case RULE_REF:\r\n {\r\n alt43=1;\r\n }\r\n break;\r\n case TOKEN_REF:\r\n {\r\n alt43=2;\r\n }\r\n break;\r\n case CHAR_LITERAL:\r\n {\r\n alt43=3;\r\n }\r\n break;\r\n case STRING_LITERAL:\r\n {\r\n alt43=4;\r\n }\r\n break;\r\n case WILDCARD:\r\n {\r\n alt43=5;\r\n }\r\n break;\r\n case DOT:\r\n {\r\n alt43=6;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 43, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt43) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:498:4: ^(rr= RULE_REF (rarg= ARG_ACTION )? )\r\n {\r\n rr=(GrammarAST)match(input,RULE_REF,FOLLOW_RULE_REF_in_atom1360); if (state.failed) return ;\r\n\r\n if ( input.LA(1)==Token.DOWN ) {\r\n match(input, Token.DOWN, null); if (state.failed) return ;\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:498:19: (rarg= ARG_ACTION )?\r\n int alt41=2;\r\n int LA41_0 = input.LA(1);\r\n\r\n if ( (LA41_0==ARG_ACTION) ) {\r\n alt41=1;\r\n }\r\n switch (alt41) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:498:20: rarg= ARG_ACTION\r\n {\r\n rarg=(GrammarAST)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_atom1365); if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n match(input, Token.UP, null); if (state.failed) return ;\r\n }\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t\tgrammar.altReferencesRule( currentRuleName, scope_, rr, this.outerAltNum );\r\n \t\t\tif ( rarg != null )\r\n \t\t\t{\r\n \t\t\t\trarg.outerAltNum = this.outerAltNum;\r\n \t\t\t\ttrackInlineAction(rarg);\r\n \t\t\t}\r\n \t\t}\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:507:4: ^(t= TOKEN_REF (targ= ARG_ACTION )? )\r\n {\r\n t=(GrammarAST)match(input,TOKEN_REF,FOLLOW_TOKEN_REF_in_atom1382); if (state.failed) return ;\r\n\r\n if ( input.LA(1)==Token.DOWN ) {\r\n match(input, Token.DOWN, null); if (state.failed) return ;\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:507:19: (targ= ARG_ACTION )?\r\n int alt42=2;\r\n int LA42_0 = input.LA(1);\r\n\r\n if ( (LA42_0==ARG_ACTION) ) {\r\n alt42=1;\r\n }\r\n switch (alt42) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:507:20: targ= ARG_ACTION\r\n {\r\n targ=(GrammarAST)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_atom1387); if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n match(input, Token.UP, null); if (state.failed) return ;\r\n }\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t\tif ( targ != null )\r\n \t\t\t{\r\n \t\t\t\ttarg.outerAltNum = this.outerAltNum;\r\n \t\t\t\ttrackInlineAction(targ);\r\n \t\t\t}\r\n \t\t\tif ( grammar.type == Grammar.LEXER )\r\n \t\t\t{\r\n \t\t\t\tgrammar.altReferencesRule( currentRuleName, scope_, t, this.outerAltNum );\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tgrammar.altReferencesTokenID( currentRuleName, t, this.outerAltNum );\r\n \t\t\t}\r\n \t\t}\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:523:4: c= CHAR_LITERAL\r\n {\r\n c=(GrammarAST)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_atom1403); if (state.failed) return ;\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t\tif ( grammar.type != Grammar.LEXER )\r\n \t\t\t{\r\n \t\t\t\tRule rule = grammar.getRule(currentRuleName);\r\n \t\t\t\tif ( rule != null )\r\n \t\t\t\t\trule.trackTokenReferenceInAlt(c, outerAltNum);\r\n \t\t\t}\r\n \t\t}\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:532:4: s= STRING_LITERAL\r\n {\r\n s=(GrammarAST)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_atom1414); if (state.failed) return ;\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t\tif ( grammar.type != Grammar.LEXER )\r\n \t\t\t{\r\n \t\t\t\tRule rule = grammar.getRule(currentRuleName);\r\n \t\t\t\tif ( rule!=null )\r\n \t\t\t\t\trule.trackTokenReferenceInAlt(s, outerAltNum);\r\n \t\t\t}\r\n \t\t}\r\n\r\n }\r\n break;\r\n case 5 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:541:4: WILDCARD\r\n {\r\n match(input,WILDCARD,FOLLOW_WILDCARD_in_atom1424); if (state.failed) return ;\r\n\r\n }\r\n break;\r\n case 6 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:542:4: ^( DOT ID atom[$ID] )\r\n {\r\n match(input,DOT,FOLLOW_DOT_in_atom1430); if (state.failed) return ;\r\n\r\n match(input, Token.DOWN, null); if (state.failed) return ;\r\n ID11=(GrammarAST)match(input,ID,FOLLOW_ID_in_atom1432); if (state.failed) return ;\r\n\r\n pushFollow(FOLLOW_atom_in_atom1434);\r\n atom(ID11);\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n match(input, Token.UP, null); if (state.failed) return ;\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return ;\r\n }", "private AST atom(ArrayList<String> ctx){\n // 前者:LPAREN Term RPAREN\n if(lexer.skip(TokenType.LPAREN)){\n AST t=term(ctx);\n lexer.match(TokenType.RPAREN);\n return t;\n }\n //后者:LCID\n else if(lexer.next(TokenType.LCID)){\n String name=lexer.token(TokenType.LCID);\n int idx=ctx.indexOf(name);\n String value=String.valueOf(idx==-1?ctx.size():idx);\n return(new Identifier(name,value));\n }\n// System.out.println(\"wrong in atom of Parser!\");\n return null;\n }", "public final compParser.atom_return atom() throws RecognitionException {\n compParser.atom_return retval = new compParser.atom_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token CST_ENT135=null;\n Token IDF136=null;\n Token char_literal137=null;\n Token char_literal139=null;\n Token char_literal140=null;\n compParser.exp_return exp138 = null;\n\n compParser.atom_return atom141 = null;\n\n\n CommonTree CST_ENT135_tree=null;\n CommonTree IDF136_tree=null;\n CommonTree char_literal137_tree=null;\n CommonTree char_literal139_tree=null;\n CommonTree char_literal140_tree=null;\n RewriteRuleTokenStream stream_41=new RewriteRuleTokenStream(adaptor,\"token 41\");\n RewriteRuleTokenStream stream_40=new RewriteRuleTokenStream(adaptor,\"token 40\");\n RewriteRuleTokenStream stream_54=new RewriteRuleTokenStream(adaptor,\"token 54\");\n RewriteRuleSubtreeStream stream_atom=new RewriteRuleSubtreeStream(adaptor,\"rule atom\");\n RewriteRuleSubtreeStream stream_exp=new RewriteRuleSubtreeStream(adaptor,\"rule exp\");\n try { dbg.enterRule(getGrammarFileName(), \"atom\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(89, 1);\n\n try {\n // /home/oussama/Desktop/Compil/vincent66u/comp.g:89:12: ( CST_ENT | IDF | '(' exp ')' -> exp | '-' atom -> ^( '-' atom ) )\n int alt35=4;\n try { dbg.enterDecision(35);\n\n switch ( input.LA(1) ) {\n case CST_ENT:\n {\n alt35=1;\n }\n break;\n case IDF:\n {\n alt35=2;\n }\n break;\n case 40:\n {\n alt35=3;\n }\n break;\n case 54:\n {\n alt35=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 35, 0, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n\n } finally {dbg.exitDecision(35);}\n\n switch (alt35) {\n case 1 :\n dbg.enterAlt(1);\n\n // /home/oussama/Desktop/Compil/vincent66u/comp.g:89:16: CST_ENT\n {\n root_0 = (CommonTree)adaptor.nil();\n\n dbg.location(89,16);\n CST_ENT135=(Token)match(input,CST_ENT,FOLLOW_CST_ENT_in_atom1490); \n CST_ENT135_tree = (CommonTree)adaptor.create(CST_ENT135);\n adaptor.addChild(root_0, CST_ENT135_tree);\n\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // /home/oussama/Desktop/Compil/vincent66u/comp.g:90:5: IDF\n {\n root_0 = (CommonTree)adaptor.nil();\n\n dbg.location(90,5);\n IDF136=(Token)match(input,IDF,FOLLOW_IDF_in_atom1497); \n IDF136_tree = (CommonTree)adaptor.create(IDF136);\n adaptor.addChild(root_0, IDF136_tree);\n\n\n }\n break;\n case 3 :\n dbg.enterAlt(3);\n\n // /home/oussama/Desktop/Compil/vincent66u/comp.g:91:5: '(' exp ')'\n {\n dbg.location(91,5);\n char_literal137=(Token)match(input,40,FOLLOW_40_in_atom1504); \n stream_40.add(char_literal137);\n\n dbg.location(91,9);\n pushFollow(FOLLOW_exp_in_atom1506);\n exp138=exp();\n\n state._fsp--;\n\n stream_exp.add(exp138.getTree());\n dbg.location(91,13);\n char_literal139=(Token)match(input,41,FOLLOW_41_in_atom1508); \n stream_41.add(char_literal139);\n\n\n\n // AST REWRITE\n // elements: exp\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 91:17: -> exp\n {\n dbg.location(91,20);\n adaptor.addChild(root_0, stream_exp.nextTree());\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 4 :\n dbg.enterAlt(4);\n\n // /home/oussama/Desktop/Compil/vincent66u/comp.g:92:5: '-' atom\n {\n dbg.location(92,5);\n char_literal140=(Token)match(input,54,FOLLOW_54_in_atom1518); \n stream_54.add(char_literal140);\n\n dbg.location(92,9);\n pushFollow(FOLLOW_atom_in_atom1520);\n atom141=atom();\n\n state._fsp--;\n\n stream_atom.add(atom141.getTree());\n\n\n // AST REWRITE\n // elements: 54, atom\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 92:14: -> ^( '-' atom )\n {\n dbg.location(92,16);\n // /home/oussama/Desktop/Compil/vincent66u/comp.g:92:16: ^( '-' atom )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n dbg.location(92,19);\n root_1 = (CommonTree)adaptor.becomeRoot(stream_54.nextNode(), root_1);\n\n dbg.location(92,23);\n adaptor.addChild(root_1, stream_atom.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (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 dbg.location(93, 3);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"atom\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return retval;\n }", "public final void ruleScopeSpec() throws RecognitionException {\r\n try {\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:277:2: ( ^( 'scope' ( ^( AMPERSAND ( . )* ) )* ( ACTION )? ( ID )* ) )\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:277:4: ^( 'scope' ( ^( AMPERSAND ( . )* ) )* ( ACTION )? ( ID )* )\r\n {\r\n match(input,SCOPE,FOLLOW_SCOPE_in_ruleScopeSpec434); if (state.failed) return ;\r\n\r\n if ( input.LA(1)==Token.DOWN ) {\r\n match(input, Token.DOWN, null); if (state.failed) return ;\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:277:15: ( ^( AMPERSAND ( . )* ) )*\r\n loop28:\r\n do {\r\n int alt28=2;\r\n switch ( input.LA(1) ) {\r\n case AMPERSAND:\r\n {\r\n alt28=1;\r\n }\r\n break;\r\n\r\n }\r\n\r\n switch (alt28) {\r\n \tcase 1 :\r\n \t // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:277:17: ^( AMPERSAND ( . )* )\r\n \t {\r\n \t match(input,AMPERSAND,FOLLOW_AMPERSAND_in_ruleScopeSpec439); if (state.failed) return ;\r\n\r\n \t if ( input.LA(1)==Token.DOWN ) {\r\n \t match(input, Token.DOWN, null); if (state.failed) return ;\r\n \t // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:277:29: ( . )*\r\n \t loop27:\r\n \t do {\r\n \t int alt27=2;\r\n \t switch ( input.LA(1) ) {\r\n \t case LEXER:\r\n \t case PARSER:\r\n \t case CATCH:\r\n \t case FINALLY:\r\n \t case GRAMMAR:\r\n \t case PRIVATE:\r\n \t case PROTECTED:\r\n \t case PUBLIC:\r\n \t case RETURNS:\r\n \t case THROWS:\r\n \t case TREE:\r\n \t case RULE:\r\n \t case PREC_RULE:\r\n \t case RECURSIVE_RULE_REF:\r\n \t case BLOCK:\r\n \t case OPTIONAL:\r\n \t case CLOSURE:\r\n \t case POSITIVE_CLOSURE:\r\n \t case SYNPRED:\r\n \t case RANGE:\r\n \t case CHAR_RANGE:\r\n \t case EPSILON:\r\n \t case ALT:\r\n \t case EOR:\r\n \t case EOB:\r\n \t case EOA:\r\n \t case ID:\r\n \t case ARG:\r\n \t case ARGLIST:\r\n \t case RET:\r\n \t case LEXER_GRAMMAR:\r\n \t case PARSER_GRAMMAR:\r\n \t case TREE_GRAMMAR:\r\n \t case COMBINED_GRAMMAR:\r\n \t case INITACTION:\r\n \t case FORCED_ACTION:\r\n \t case LABEL:\r\n \t case TEMPLATE:\r\n \t case SCOPE:\r\n \t case IMPORT:\r\n \t case GATED_SEMPRED:\r\n \t case SYN_SEMPRED:\r\n \t case BACKTRACK_SEMPRED:\r\n \t case FRAGMENT:\r\n \t case DOT:\r\n \t case REWRITES:\r\n \t case ACTION:\r\n \t case DOC_COMMENT:\r\n \t case SEMI:\r\n \t case AMPERSAND:\r\n \t case COLON:\r\n \t case OPTIONS:\r\n \t case RCURLY:\r\n \t case ASSIGN:\r\n \t case STRING_LITERAL:\r\n \t case CHAR_LITERAL:\r\n \t case INT:\r\n \t case STAR:\r\n \t case COMMA:\r\n \t case TOKENS:\r\n \t case TOKEN_REF:\r\n \t case BANG:\r\n \t case ARG_ACTION:\r\n \t case OR:\r\n \t case LPAREN:\r\n \t case RPAREN:\r\n \t case PLUS_ASSIGN:\r\n \t case SEMPRED:\r\n \t case IMPLIES:\r\n \t case ROOT:\r\n \t case WILDCARD:\r\n \t case RULE_REF:\r\n \t case NOT:\r\n \t case TREE_BEGIN:\r\n \t case QUESTION:\r\n \t case PLUS:\r\n \t case OPEN_ELEMENT_OPTION:\r\n \t case CLOSE_ELEMENT_OPTION:\r\n \t case DOUBLE_QUOTE_STRING_LITERAL:\r\n \t case DOUBLE_ANGLE_STRING_LITERAL:\r\n \t case REWRITE:\r\n \t case ETC:\r\n \t case DOLLAR:\r\n \t case WS:\r\n \t case SL_COMMENT:\r\n \t case ML_COMMENT:\r\n \t case COMMENT:\r\n \t case SRC:\r\n \t case STRAY_BRACKET:\r\n \t case ESC:\r\n \t case DIGIT:\r\n \t case XDIGIT:\r\n \t case NESTED_ARG_ACTION:\r\n \t case ACTION_STRING_LITERAL:\r\n \t case ACTION_CHAR_LITERAL:\r\n \t case NESTED_ACTION:\r\n \t case ACTION_ESC:\r\n \t case WS_LOOP:\r\n \t case WS_OPT:\r\n \t {\r\n \t alt27=1;\r\n \t }\r\n \t break;\r\n \t case UP:\r\n \t {\r\n \t alt27=2;\r\n \t }\r\n \t break;\r\n\r\n \t }\r\n\r\n \t switch (alt27) {\r\n \t \tcase 1 :\r\n \t \t // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:277:29: .\r\n \t \t {\r\n \t \t matchAny(input); if (state.failed) return ;\r\n\r\n \t \t }\r\n \t \t break;\r\n\r\n \t \tdefault :\r\n \t \t break loop27;\r\n \t }\r\n \t } while (true);\r\n\r\n\r\n \t match(input, Token.UP, null); if (state.failed) return ;\r\n \t }\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop28;\r\n }\r\n } while (true);\r\n\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:277:36: ( ACTION )?\r\n int alt29=2;\r\n switch ( input.LA(1) ) {\r\n case ACTION:\r\n {\r\n alt29=1;\r\n }\r\n break;\r\n }\r\n\r\n switch (alt29) {\r\n case 1 :\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:277:37: ACTION\r\n {\r\n match(input,ACTION,FOLLOW_ACTION_in_ruleScopeSpec449); if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:277:46: ( ID )*\r\n loop30:\r\n do {\r\n int alt30=2;\r\n switch ( input.LA(1) ) {\r\n case ID:\r\n {\r\n alt30=1;\r\n }\r\n break;\r\n\r\n }\r\n\r\n switch (alt30) {\r\n \tcase 1 :\r\n \t // org\\\\antlr\\\\grammar\\\\v3\\\\TreeToNFAConverter.g:277:48: ID\r\n \t {\r\n \t match(input,ID,FOLLOW_ID_in_ruleScopeSpec455); if (state.failed) return ;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop30;\r\n }\r\n } while (true);\r\n\r\n\r\n match(input, Token.UP, null); if (state.failed) return ;\r\n }\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public final void grammar_() throws RecognitionException {\n\t\ttry {\n\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:190:2: ( ( ^( LEXER_GRAMMAR grammarSpec ) | ^( PARSER_GRAMMAR grammarSpec ) | ^( TREE_GRAMMAR grammarSpec ) | ^( COMBINED_GRAMMAR grammarSpec ) ) )\n\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:190:4: ( ^( LEXER_GRAMMAR grammarSpec ) | ^( PARSER_GRAMMAR grammarSpec ) | ^( TREE_GRAMMAR grammarSpec ) | ^( COMBINED_GRAMMAR grammarSpec ) )\n\t\t\t{\n\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:190:4: ( ^( LEXER_GRAMMAR grammarSpec ) | ^( PARSER_GRAMMAR grammarSpec ) | ^( TREE_GRAMMAR grammarSpec ) | ^( COMBINED_GRAMMAR grammarSpec ) )\n\t\t\tint alt1=4;\n\t\t\tswitch ( input.LA(1) ) {\n\t\t\tcase LEXER_GRAMMAR:\n\t\t\t\t{\n\t\t\t\talt1=1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase PARSER_GRAMMAR:\n\t\t\t\t{\n\t\t\t\talt1=2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase TREE_GRAMMAR:\n\t\t\t\t{\n\t\t\t\talt1=3;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase COMBINED_GRAMMAR:\n\t\t\t\t{\n\t\t\t\talt1=4;\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;}\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 1, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\t\t\tswitch (alt1) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:190:6: ^( LEXER_GRAMMAR grammarSpec )\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,LEXER_GRAMMAR,FOLLOW_LEXER_GRAMMAR_in_grammar_68); if (state.failed) return;\n\t\t\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return;\n\t\t\t\t\tpushFollow(FOLLOW_grammarSpec_in_grammar_70);\n\t\t\t\t\tgrammarSpec();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return;\n\t\t\t\t\tmatch(input, Token.UP, null); if (state.failed) return;\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// org/antlr/grammar/v3/TreeToNFAConverter.g:191:5: ^( PARSER_GRAMMAR grammarSpec )\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,PARSER_GRAMMAR,FOLLOW_PARSER_GRAMMAR_in_grammar_80); if (state.failed) return;\n\t\t\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return;\n\t\t\t\t\tpushFollow(FOLLOW_grammarSpec_in_grammar_82);\n\t\t\t\t\tgrammarSpec();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return;\n\t\t\t\t\tmatch(input, Token.UP, null); if (state.failed) return;\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// org/antlr/grammar/v3/TreeToNFAConverter.g:192:5: ^( TREE_GRAMMAR grammarSpec )\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,TREE_GRAMMAR,FOLLOW_TREE_GRAMMAR_in_grammar_92); if (state.failed) return;\n\t\t\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return;\n\t\t\t\t\tpushFollow(FOLLOW_grammarSpec_in_grammar_94);\n\t\t\t\t\tgrammarSpec();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return;\n\t\t\t\t\tmatch(input, Token.UP, null); if (state.failed) return;\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// org/antlr/grammar/v3/TreeToNFAConverter.g:193:5: ^( COMBINED_GRAMMAR grammarSpec )\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,COMBINED_GRAMMAR,FOLLOW_COMBINED_GRAMMAR_in_grammar_104); if (state.failed) return;\n\t\t\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return;\n\t\t\t\t\tpushFollow(FOLLOW_grammarSpec_in_grammar_106);\n\t\t\t\t\tgrammarSpec();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return;\n\t\t\t\t\tmatch(input, Token.UP, null); if (state.failed) return;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t}\n\n\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\tfinish();\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}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "Atom createAtom();", "public final ANTLRv3Parser.rewrite_tree_return rewrite_tree() throws RecognitionException {\r\n ANTLRv3Parser.rewrite_tree_return retval = new ANTLRv3Parser.rewrite_tree_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token string_literal171=null;\r\n Token char_literal174=null;\r\n ANTLRv3Parser.rewrite_tree_atom_return rewrite_tree_atom172 =null;\r\n\r\n ANTLRv3Parser.rewrite_tree_element_return rewrite_tree_element173 =null;\r\n\r\n\r\n CommonTree string_literal171_tree=null;\r\n CommonTree char_literal174_tree=null;\r\n RewriteRuleTokenStream stream_69=new RewriteRuleTokenStream(adaptor,\"token 69\");\r\n RewriteRuleTokenStream stream_TREE_BEGIN=new RewriteRuleTokenStream(adaptor,\"token TREE_BEGIN\");\r\n RewriteRuleSubtreeStream stream_rewrite_tree_element=new RewriteRuleSubtreeStream(adaptor,\"rule rewrite_tree_element\");\r\n RewriteRuleSubtreeStream stream_rewrite_tree_atom=new RewriteRuleSubtreeStream(adaptor,\"rule rewrite_tree_atom\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:409:2: ( '^(' rewrite_tree_atom ( rewrite_tree_element )* ')' -> ^( TREE_BEGIN rewrite_tree_atom ( rewrite_tree_element )* ) )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:409:4: '^(' rewrite_tree_atom ( rewrite_tree_element )* ')'\r\n {\r\n string_literal171=(Token)match(input,TREE_BEGIN,FOLLOW_TREE_BEGIN_in_rewrite_tree2972); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_TREE_BEGIN.add(string_literal171);\r\n\r\n\r\n pushFollow(FOLLOW_rewrite_tree_atom_in_rewrite_tree2974);\r\n rewrite_tree_atom172=rewrite_tree_atom();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_rewrite_tree_atom.add(rewrite_tree_atom172.getTree());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:409:27: ( rewrite_tree_element )*\r\n loop79:\r\n do {\r\n int alt79=2;\r\n int LA79_0 = input.LA(1);\r\n\r\n if ( (LA79_0==ACTION||LA79_0==CHAR_LITERAL||LA79_0==RULE_REF||LA79_0==STRING_LITERAL||(LA79_0 >= TOKEN_REF && LA79_0 <= TREE_BEGIN)||(LA79_0 >= 67 && LA79_0 <= 68)) ) {\r\n alt79=1;\r\n }\r\n\r\n\r\n switch (alt79) {\r\n \tcase 1 :\r\n \t // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:409:27: rewrite_tree_element\r\n \t {\r\n \t pushFollow(FOLLOW_rewrite_tree_element_in_rewrite_tree2976);\r\n \t rewrite_tree_element173=rewrite_tree_element();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return retval;\r\n \t if ( state.backtracking==0 ) stream_rewrite_tree_element.add(rewrite_tree_element173.getTree());\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop79;\r\n }\r\n } while (true);\r\n\r\n\r\n char_literal174=(Token)match(input,69,FOLLOW_69_in_rewrite_tree2979); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_69.add(char_literal174);\r\n\r\n\r\n // AST REWRITE\r\n // elements: rewrite_tree_element, rewrite_tree_atom\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 410:3: -> ^( TREE_BEGIN rewrite_tree_atom ( rewrite_tree_element )* )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:410:6: ^( TREE_BEGIN rewrite_tree_atom ( rewrite_tree_element )* )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(TREE_BEGIN, \"TREE_BEGIN\")\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_rewrite_tree_atom.nextTree());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:410:37: ( rewrite_tree_element )*\r\n while ( stream_rewrite_tree_element.hasNext() ) {\r\n adaptor.addChild(root_1, stream_rewrite_tree_element.nextTree());\r\n\r\n }\r\n stream_rewrite_tree_element.reset();\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\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\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }", "Atom getAtom();", "public final GremlinEvaluator.atom_return atom() throws RecognitionException {\n GremlinEvaluator.atom_return retval = new GremlinEvaluator.atom_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree b=null;\n CommonTree INT80=null;\n CommonTree G_INT81=null;\n CommonTree LONG82=null;\n CommonTree G_LONG83=null;\n CommonTree FLOAT84=null;\n CommonTree G_FLOAT85=null;\n CommonTree DOUBLE86=null;\n CommonTree G_DOUBLE87=null;\n CommonTree BOOL89=null;\n CommonTree NULL90=null;\n CommonTree char_literal91=null;\n CommonTree char_literal93=null;\n GremlinEvaluator.gpath_statement_return gpath_statement88 = null;\n\n GremlinEvaluator.statement_return statement92 = null;\n\n\n CommonTree b_tree=null;\n CommonTree INT80_tree=null;\n CommonTree G_INT81_tree=null;\n CommonTree LONG82_tree=null;\n CommonTree G_LONG83_tree=null;\n CommonTree FLOAT84_tree=null;\n CommonTree G_FLOAT85_tree=null;\n CommonTree DOUBLE86_tree=null;\n CommonTree G_DOUBLE87_tree=null;\n CommonTree BOOL89_tree=null;\n CommonTree NULL90_tree=null;\n CommonTree char_literal91_tree=null;\n CommonTree char_literal93_tree=null;\n\n try {\n // src/main/java/com/tinkerpop/gremlin/compiler/GremlinEvaluator.g:490:2: ( ^( INT G_INT ) | ^( LONG G_LONG ) | ^( FLOAT G_FLOAT ) | ^( DOUBLE G_DOUBLE ) | gpath_statement | ^( BOOL b= BOOLEAN ) | NULL | '(' statement ')' )\n int alt15=8;\n switch ( input.LA(1) ) {\n case INT:\n {\n alt15=1;\n }\n break;\n case LONG:\n {\n alt15=2;\n }\n break;\n case FLOAT:\n {\n alt15=3;\n }\n break;\n case DOUBLE:\n {\n alt15=4;\n }\n break;\n case GPATH:\n {\n alt15=5;\n }\n break;\n case BOOL:\n {\n alt15=6;\n }\n break;\n case NULL:\n {\n alt15=7;\n }\n break;\n case 82:\n {\n alt15=8;\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 // src/main/java/com/tinkerpop/gremlin/compiler/GremlinEvaluator.g:490:6: ^( INT G_INT )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();_last = (CommonTree)input.LT(1);\n INT80=(CommonTree)match(input,INT,FOLLOW_INT_in_atom1569); \n INT80_tree = (CommonTree)adaptor.dupNode(INT80);\n\n root_1 = (CommonTree)adaptor.becomeRoot(INT80_tree, root_1);\n\n\n\n match(input, Token.DOWN, null); \n _last = (CommonTree)input.LT(1);\n G_INT81=(CommonTree)match(input,G_INT,FOLLOW_G_INT_in_atom1571); \n G_INT81_tree = (CommonTree)adaptor.dupNode(G_INT81);\n\n adaptor.addChild(root_1, G_INT81_tree);\n\n\n match(input, Token.UP, null); adaptor.addChild(root_0, root_1);_last = _save_last_1;\n }\n\n retval.value = new Atom<Integer>(new Integer((G_INT81!=null?G_INT81.getText():null))); \n\n }\n break;\n case 2 :\n // src/main/java/com/tinkerpop/gremlin/compiler/GremlinEvaluator.g:491:6: ^( LONG G_LONG )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();_last = (CommonTree)input.LT(1);\n LONG82=(CommonTree)match(input,LONG,FOLLOW_LONG_in_atom1629); \n LONG82_tree = (CommonTree)adaptor.dupNode(LONG82);\n\n root_1 = (CommonTree)adaptor.becomeRoot(LONG82_tree, root_1);\n\n\n\n match(input, Token.DOWN, null); \n _last = (CommonTree)input.LT(1);\n G_LONG83=(CommonTree)match(input,G_LONG,FOLLOW_G_LONG_in_atom1631); \n G_LONG83_tree = (CommonTree)adaptor.dupNode(G_LONG83);\n\n adaptor.addChild(root_1, G_LONG83_tree);\n\n\n match(input, Token.UP, null); adaptor.addChild(root_0, root_1);_last = _save_last_1;\n }\n\n\n \t String longStr = (G_LONG83!=null?G_LONG83.getText():null);\n \t retval.value = new Atom<Long>(new Long(longStr.substring(0, longStr.length() - 1)));\n \t \n\n }\n break;\n case 3 :\n // src/main/java/com/tinkerpop/gremlin/compiler/GremlinEvaluator.g:495:6: ^( FLOAT G_FLOAT )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();_last = (CommonTree)input.LT(1);\n FLOAT84=(CommonTree)match(input,FLOAT,FOLLOW_FLOAT_in_atom1687); \n FLOAT84_tree = (CommonTree)adaptor.dupNode(FLOAT84);\n\n root_1 = (CommonTree)adaptor.becomeRoot(FLOAT84_tree, root_1);\n\n\n\n match(input, Token.DOWN, null); \n _last = (CommonTree)input.LT(1);\n G_FLOAT85=(CommonTree)match(input,G_FLOAT,FOLLOW_G_FLOAT_in_atom1689); \n G_FLOAT85_tree = (CommonTree)adaptor.dupNode(G_FLOAT85);\n\n adaptor.addChild(root_1, G_FLOAT85_tree);\n\n\n match(input, Token.UP, null); adaptor.addChild(root_0, root_1);_last = _save_last_1;\n }\n\n retval.value = new Atom<Float>(new Float((G_FLOAT85!=null?G_FLOAT85.getText():null))); \n\n }\n break;\n case 4 :\n // src/main/java/com/tinkerpop/gremlin/compiler/GremlinEvaluator.g:496:6: ^( DOUBLE G_DOUBLE )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();_last = (CommonTree)input.LT(1);\n DOUBLE86=(CommonTree)match(input,DOUBLE,FOLLOW_DOUBLE_in_atom1743); \n DOUBLE86_tree = (CommonTree)adaptor.dupNode(DOUBLE86);\n\n root_1 = (CommonTree)adaptor.becomeRoot(DOUBLE86_tree, root_1);\n\n\n\n match(input, Token.DOWN, null); \n _last = (CommonTree)input.LT(1);\n G_DOUBLE87=(CommonTree)match(input,G_DOUBLE,FOLLOW_G_DOUBLE_in_atom1745); \n G_DOUBLE87_tree = (CommonTree)adaptor.dupNode(G_DOUBLE87);\n\n adaptor.addChild(root_1, G_DOUBLE87_tree);\n\n\n match(input, Token.UP, null); adaptor.addChild(root_0, root_1);_last = _save_last_1;\n }\n\n\n \t String doubleStr = (G_DOUBLE87!=null?G_DOUBLE87.getText():null);\n \t retval.value = new Atom<Double>(new Double(doubleStr.substring(0, doubleStr.length() - 1)));\n \t \n\n }\n break;\n case 5 :\n // src/main/java/com/tinkerpop/gremlin/compiler/GremlinEvaluator.g:500:9: gpath_statement\n {\n root_0 = (CommonTree)adaptor.nil();\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_gpath_statement_in_atom1799);\n gpath_statement88=gpath_statement();\n\n state._fsp--;\n\n adaptor.addChild(root_0, gpath_statement88.getTree());\n retval.value = (gpath_statement88!=null?gpath_statement88.value:null); \n\n }\n break;\n case 6 :\n // src/main/java/com/tinkerpop/gremlin/compiler/GremlinEvaluator.g:501:9: ^( BOOL b= BOOLEAN )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();_last = (CommonTree)input.LT(1);\n BOOL89=(CommonTree)match(input,BOOL,FOLLOW_BOOL_in_atom1856); \n BOOL89_tree = (CommonTree)adaptor.dupNode(BOOL89);\n\n root_1 = (CommonTree)adaptor.becomeRoot(BOOL89_tree, root_1);\n\n\n\n match(input, Token.DOWN, null); \n _last = (CommonTree)input.LT(1);\n b=(CommonTree)match(input,BOOLEAN,FOLLOW_BOOLEAN_in_atom1860); \n b_tree = (CommonTree)adaptor.dupNode(b);\n\n adaptor.addChild(root_1, b_tree);\n\n\n match(input, Token.UP, null); adaptor.addChild(root_0, root_1);_last = _save_last_1;\n }\n\n retval.value = new Atom<Boolean>(new Boolean((b!=null?b.getText():null))); \n\n }\n break;\n case 7 :\n // src/main/java/com/tinkerpop/gremlin/compiler/GremlinEvaluator.g:502:9: NULL\n {\n root_0 = (CommonTree)adaptor.nil();\n\n _last = (CommonTree)input.LT(1);\n NULL90=(CommonTree)match(input,NULL,FOLLOW_NULL_in_atom1915); \n NULL90_tree = (CommonTree)adaptor.dupNode(NULL90);\n\n adaptor.addChild(root_0, NULL90_tree);\n\n retval.value = new Atom<Object>(null); \n\n }\n break;\n case 8 :\n // src/main/java/com/tinkerpop/gremlin/compiler/GremlinEvaluator.g:503:4: '(' statement ')'\n {\n root_0 = (CommonTree)adaptor.nil();\n\n _last = (CommonTree)input.LT(1);\n char_literal91=(CommonTree)match(input,82,FOLLOW_82_in_atom1977); \n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_statement_in_atom1980);\n statement92=statement();\n\n state._fsp--;\n\n adaptor.addChild(root_0, statement92.getTree());\n _last = (CommonTree)input.LT(1);\n char_literal93=(CommonTree)match(input,83,FOLLOW_83_in_atom1982); \n\n }\n break;\n\n }\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return retval;\n }", "static Concept parseConcept(String input){\n\t\t\n\t\t\n\t\t\n\t\t//TODO Parse an input string into a Concept\n\t\t\n\t\t\n\t\tString s = input;\n\t\t/*\n\t\tif (input.startsWith(\"(\") && input.endsWith(\")\") ){\n\t\t\ts = input.substring(1, input.length()-1);\n\t\t}\n\t\t*/\n\t\tString next=null;\n\t\tif(s.length()>1){ \n\t\t\tnext = s.substring(0,1);\n\t\t\t} else {next = s;}\n\t\tswitch (next){\n\t\t\t// !___\n\t\t\tcase \"!\":\n\t\t\t\t//return a negation of that concept, parse recursively.\n\t\t\t\treturn new Negation( parseConcept(s.substring(1, s.length())));\n\t\t\t\n\t\t\t\n\t\t\t// (___&___) or (___|___)\n\t\t\tcase \"(\":\n\t\t\t\t\n\t\t\t\tif(s.contains(\"&\") || s.contains(\"|\")){\n\t\t\t\n\t\t\t\t\tInteger split = locateSplitLogicString(s);\n\t\t\t\t\tConcept c1 = parseConcept( s.substring(1,\tsplit));\n\t\t\t\t\tConcept c2 = parseConcept( s.substring(split+1, s.length()-1));\n\t\t\t\t\tif(s.substring(split,split+1).equals(\"|\")){\n\t\t\t\t\t\treturn new Disjunction(c1,c2);\n\t\t\t\t\t}else\n\t\t\t\t\t\treturn new Conjunction(c1,c2);\n\t\t\t\t}\n\t\t\t\t//(____)\n\t\t\t\telse {\t\n\t\t\t\t\t//Atom. Remove the brackets.\n\t\t\t\t\tdo{ \n\t\t\t\t\t\ts = s.substring(1, s.length()-1);\n\t\t\t\t\t} while (s.startsWith(\"(\") && s.endsWith(\")\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"New Atom \"+s);\n\t\t\t\t\treturn new AtomicConcept(s);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t//€r_____\t\n\t\t\tcase \"€\":\n\t\t\t\ts= s.substring(1);\n\t\t\t\tString roleEx = s.split(\"\\\\.\")[0];\n\t\t\t\tString cEx = s.split(\"\\\\.\")[1];\n\t\t\t\t//return new Exists( new Role(s.substring(1, 2)) , parseConcept(s.substring(2, s.length())));\n\t\t\t\treturn new Exists( new Role(roleEx) , parseConcept(cEx));\n\t\t\t\t\n\t\t\t//$r_____\n\t\t\tcase \"$\":\n\t\t\t\ts= s.substring(1);\n\t\t\t\tString roleAll = s.split(\"\\\\.\")[0];\n\t\t\t\tString cAll = s.split(\"\\\\.\")[1];\n\t\t\t\t//return new All( new Role(s.substring(1, 2)) , parseConcept(s.substring(2, s.length())));\n\t\t\t\treturn new All( new Role(roleAll) , parseConcept(cAll));\n\t\t\t\t\t\n\t\t\t\n\t\t\tdefault:\n\t\t\t\t//System.out.println(\"New Atom \"+s);\n\t\t\t\treturn new AtomicConcept(s);\n\t\t\t\t\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t}", "public final DefineGrammarItemsWalker.rewrite_atom_return rewrite_atom() throws RecognitionException {\r\n DefineGrammarItemsWalker.rewrite_atom_return retval = new DefineGrammarItemsWalker.rewrite_atom_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n GrammarAST ARG_ACTION12=null;\r\n GrammarAST ACTION13=null;\r\n\r\n\r\n \tif ( state.backtracking == 0 )\r\n \t{\r\n \t\tRule r = grammar.getRule(currentRuleName);\r\n \t\tSet tokenRefsInAlt = r.getTokenRefsInAlt(outerAltNum);\r\n \t\tboolean imaginary =\r\n \t\t\t((GrammarAST)retval.start).getType()==TOKEN_REF &&\r\n \t\t\t!tokenRefsInAlt.contains(((GrammarAST)retval.start).getText());\r\n \t\tif ( !imaginary && grammar.buildAST() &&\r\n \t\t\t (((GrammarAST)retval.start).getType()==RULE_REF ||\r\n \t\t\t ((GrammarAST)retval.start).getType()==LABEL ||\r\n \t\t\t ((GrammarAST)retval.start).getType()==TOKEN_REF ||\r\n \t\t\t ((GrammarAST)retval.start).getType()==CHAR_LITERAL ||\r\n \t\t\t ((GrammarAST)retval.start).getType()==STRING_LITERAL) )\r\n \t\t{\r\n \t\t\t// track per block and for entire rewrite rule\r\n \t\t\tif ( currentRewriteBlock!=null )\r\n \t\t\t{\r\n \t\t\t\tcurrentRewriteBlock.rewriteRefsShallow.add(((GrammarAST)retval.start));\r\n \t\t\t\tcurrentRewriteBlock.rewriteRefsDeep.add(((GrammarAST)retval.start));\r\n \t\t\t}\r\n\r\n \t\t\t//System.out.println(\"adding \"+((GrammarAST)retval.start).getText()+\" to \"+currentRewriteRule.getText());\r\n \t\t\tcurrentRewriteRule.rewriteRefsDeep.add(((GrammarAST)retval.start));\r\n \t\t}\r\n \t}\r\n\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:653:2: ( RULE_REF | ( ^( TOKEN_REF ( ARG_ACTION )? ) | CHAR_LITERAL | STRING_LITERAL ) | LABEL | ACTION )\r\n int alt55=4;\r\n switch ( input.LA(1) ) {\r\n case RULE_REF:\r\n {\r\n alt55=1;\r\n }\r\n break;\r\n case CHAR_LITERAL:\r\n case STRING_LITERAL:\r\n case TOKEN_REF:\r\n {\r\n alt55=2;\r\n }\r\n break;\r\n case LABEL:\r\n {\r\n alt55=3;\r\n }\r\n break;\r\n case ACTION:\r\n {\r\n alt55=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 55, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt55) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:653:4: RULE_REF\r\n {\r\n match(input,RULE_REF,FOLLOW_RULE_REF_in_rewrite_atom1707); if (state.failed) return retval;\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:654:4: ( ^( TOKEN_REF ( ARG_ACTION )? ) | CHAR_LITERAL | STRING_LITERAL )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:654:4: ( ^( TOKEN_REF ( ARG_ACTION )? ) | CHAR_LITERAL | STRING_LITERAL )\r\n int alt54=3;\r\n switch ( input.LA(1) ) {\r\n case TOKEN_REF:\r\n {\r\n alt54=1;\r\n }\r\n break;\r\n case CHAR_LITERAL:\r\n {\r\n alt54=2;\r\n }\r\n break;\r\n case STRING_LITERAL:\r\n {\r\n alt54=3;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 54, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt54) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:654:6: ^( TOKEN_REF ( ARG_ACTION )? )\r\n {\r\n match(input,TOKEN_REF,FOLLOW_TOKEN_REF_in_rewrite_atom1717); if (state.failed) return retval;\r\n\r\n if ( input.LA(1)==Token.DOWN ) {\r\n match(input, Token.DOWN, null); if (state.failed) return retval;\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:655:5: ( ARG_ACTION )?\r\n int alt53=2;\r\n int LA53_0 = input.LA(1);\r\n\r\n if ( (LA53_0==ARG_ACTION) ) {\r\n alt53=1;\r\n }\r\n switch (alt53) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:655:7: ARG_ACTION\r\n {\r\n ARG_ACTION12=(GrammarAST)match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_rewrite_atom1725); if (state.failed) return retval;\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t\t\t\t\tARG_ACTION12.outerAltNum = this.outerAltNum;\r\n \t\t\t\t\t\ttrackInlineAction(ARG_ACTION12);\r\n \t\t\t\t\t}\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n match(input, Token.UP, null); if (state.failed) return retval;\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:662:5: CHAR_LITERAL\r\n {\r\n match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_rewrite_atom1750); if (state.failed) return retval;\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:663:5: STRING_LITERAL\r\n {\r\n match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_rewrite_atom1756); if (state.failed) return retval;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:665:4: LABEL\r\n {\r\n match(input,LABEL,FOLLOW_LABEL_in_rewrite_atom1765); if (state.failed) return retval;\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/DefineGrammarItemsWalker.g:666:4: ACTION\r\n {\r\n ACTION13=(GrammarAST)match(input,ACTION,FOLLOW_ACTION_in_rewrite_atom1770); if (state.failed) return retval;\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t\tACTION13.outerAltNum = this.outerAltNum;\r\n \t\t\ttrackInlineAction(ACTION13);\r\n \t\t}\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an intent for the RestService to read a single Model object
public static Intent getReadByIdIntent(int modelId, Class<?> modelClass, Activity activity, RestResponseReceiver receiver){ if(modelId < 1){ throw new IllegalArgumentException("modelId must be > 0"); } if(!Model.class.isAssignableFrom(modelClass)){ throw new IllegalArgumentException("model class must implement Model interface"); } final Intent intent = new Intent(Intent.ACTION_SYNC, null, activity, RestService.class); intent.putExtra(IntentExtraKeys.ACTION, Action.READSINGLE); intent.putExtra(IntentExtraKeys.RECEIVER, receiver); intent.putExtra(IntentExtraKeys.MODEL_ID, modelId); intent.putExtra(IntentExtraKeys.MODEL_CLASS, modelClass); return intent; }
[ "public static Intent getCreateIntent(Model modelObj, Activity activity, RestResponseReceiver receiver){\n\t\t\n\t\tif(modelObj.getId() != null && modelObj.getId() > 0){\n\t\t\tthrow new IllegalArgumentException(\"Models can only be created with Id < 1. For updates/edits, use RestService.getUpdateIntent().\");\n\t\t}\n\t\t\n\t\tif(!Model.class.isAssignableFrom(modelObj.getClass())){\n\t\t\tthrow new IllegalArgumentException(\"model class must implement Model interface\");\n\t\t}\n\t\t\n\t\tfinal Intent intent = new Intent(Intent.ACTION_SYNC, null, activity, RestService.class);\n\t\tintent.putExtra(IntentExtraKeys.ACTION, Action.CREATE);\n\t\tintent.putExtra(IntentExtraKeys.RECEIVER, receiver);\n\t\t\n \tintent.putExtra(IntentExtraKeys.MODEL, (Parcelable) modelObj);\n \tintent.putExtra(IntentExtraKeys.MODEL_CLASS, modelObj.getClass());\n \t\n \treturn intent;\n\t}", "public static Intent getReadManyIntent(Class<?> modelClass, Activity activity, RestResponseReceiver receiver){\n\t\t\n\t\tif(!Model.class.isAssignableFrom(modelClass)){\n\t\t\tthrow new IllegalArgumentException(\"model class must implement Model interface\");\n\t\t}\t\t\n\t\t\n\t\tfinal Intent intent = new Intent(Intent.ACTION_SYNC, null, activity, RestService.class);\n\t\tintent.putExtra(IntentExtraKeys.RECEIVER, receiver);\n\t\tintent.putExtra(IntentExtraKeys.ACTION, Action.READALL);\n\t\t\n\t\tintent.putExtra(IntentExtraKeys.MODEL_CLASS, modelClass);\n\t\t\n\t\treturn intent;\n\t}", "public static Intent getReadManyByParamIntent(Class<?> modelClass, String parameter, Activity activity, RestResponseReceiver receiver){\n\t\t\n\t\tif(!Model.class.isAssignableFrom(modelClass)){\n\t\t\tthrow new IllegalArgumentException(\"model class must implement Model interface\");\n\t\t}\t\t\n\t\t\n\t\tfinal Intent intent = new Intent(Intent.ACTION_SYNC, null, activity, RestService.class);\n\t\tintent.putExtra(IntentExtraKeys.RECEIVER, receiver);\n\t\tintent.putExtra(IntentExtraKeys.ACTION, Action.READALL);\n\t\t\n\t\tintent.putExtra(IntentExtraKeys.MODEL_CLASS, modelClass);\n\t\tintent.putExtra(IntentExtraKeys.PARAMETER1, parameter);\n\t\t\n\t\treturn intent;\n\t}", "private void getAlarmModel() {\n Intent intent = getIntent();\n Gson gson = new Gson();\n alarmModel = gson.fromJson(intent.getStringExtra(\"alarmModel\"), AlarmModel.class);\n }", "protected abstract Intent createOne();", "public static Intent getUpdateIntent(Model modelObj, Activity activity, RestResponseReceiver receiver){\n\t\t\n\t\tif(modelObj.getId() <= 0){\n\t\t\tthrow new IllegalArgumentException(\"Model Id must be > 0 in order to update object.\");\n\t\t}\n\t\t\n\t\tfinal Intent intent = new Intent(Intent.ACTION_SYNC, null, activity, RestService.class);\n\t\tintent.putExtra(IntentExtraKeys.ACTION, Action.UPDATE);\n\t\tintent.putExtra(IntentExtraKeys.RECEIVER, receiver);\n\t\t\n\t\tintent.putExtra(IntentExtraKeys.MODEL_CLASS, modelObj.getClass());\n\t\tintent.putExtra(IntentExtraKeys.MODEL, (Parcelable) modelObj);\n\t\tintent.putExtra(IntentExtraKeys.MODEL_ID, modelObj.getId());\n\t\t\n\t\t\n\t\t\n\t\treturn intent;\n\t}", "RobotModel retrieve(String modelName);", "protected abstract void readIntent();", "Intent createIntent();", "RuntimeModel getModel(String modelId);", "IntentType createIntentType();", "public static Intent getDeleteIntent(int modelId, Class<?> modelClass, Activity activity, RestResponseReceiver receiver){\n\t\t\n\t\tif(modelId < 1){\n\t\t\tthrow new IllegalArgumentException(\"modelId must be > 0\");\n\t\t}\n\t\t\n\t\tfinal Intent intent = new Intent(Intent.ACTION_SYNC, null, activity, RestService.class);\n\t\tintent.putExtra(IntentExtraKeys.ACTION, RestService.Action.DELETE);\n\t\tintent.putExtra(IntentExtraKeys.RECEIVER, receiver);\n\t\t\n\t\tintent.putExtra(IntentExtraKeys.MODEL_CLASS, modelClass);\n\t\tintent.putExtra(IntentExtraKeys.MODEL_ID, modelId);\n\t\t\n\t\treturn intent;\n\t}", "Intent createNewIntent(Class cls);", "public Intent getIntent() {\n return intent;\n }", "public Intent convert() {\r\n Intent intent = new Intent(Intent.ACTION_VIEW, extractUri(this.intent));\r\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n return intent;\r\n }", "private Activity requestActivityObject(String json){\n Gson gson = new Gson();\n Activity activityObject = gson.fromJson(json, Activity.class);\n\n return activityObject;\n }", "@Override\n protected Intent getActivityIntent() {\n Intent intent = new Intent();\n\n ArrayList<Ingredient> ingredients = new ArrayList<>();\n ingredients.add(new Ingredient(2.5, \"Cup\", \"Egg\"));\n\n ArrayList<Step> steps = new ArrayList<>();\n steps.add(new Step(\n 0,\n \"Crack the eggs\",\n \"Put eggs in blablabla\",\n null,\n null\n )\n );\n\n Recipe recipe = new Recipe(\n 0,\n \"Chocolate Cake\",\n ingredients,\n steps,\n 5,\n \" \"\n );\n\n intent.putExtra(RecipeDetailsActivity.EXTRA_RECIPE, recipe);\n return intent;\n }", "Rest createRest();", "private void getRestaurantDataFromIntent() {\n String restaurantJson = getIntent().getStringExtra(MainActivity.RESTAURANT_JSON);\n if (restaurantJson == null || restaurantJson.isEmpty()) {\n finish();\n } else {\n restaurant = gson.fromJson(restaurantJson, Restaurant.class);\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the event classes defined in the log and used in the relations
XEventClasses getEventClasses();
[ "public String getEventClass() {\n return eventClass;\n }", "public EventClass getEventClass();", "private HashSet<String> getEventTypes(HLPetriNet hlPN) {\n\t\tHashSet<String> returnEvtTypes = new HashSet<String>();\n\t\tIterator<Transition> transitionsIt = hlPN.getPNModel().getTransitions()\n\t\t\t\t.iterator();\n\t\twhile (transitionsIt.hasNext()) {\n\t\t\tTransition transition = transitionsIt.next();\n\t\t\tif (transition.getLogEvent() != null) {\n\t\t\t\treturnEvtTypes.add(transition.getLogEvent().getEventType());\n\t\t\t}\n\t\t}\n\t\treturn returnEvtTypes;\n\t}", "@Override\n public Class<? extends EventObject> getEventClass() {\n return eventClass;\n }", "public List<TypeName> getEventTypeNames() {\n final List<TypeName> typeNames = new ArrayList<>();\n final Set<EventType> eventTypes = dispatcher.getAllTypes();\n for (final EventType eventType : eventTypes) {\n typeNames.add(new TypeName(eventType.asBaseType()));\n }\n return typeNames;\n }", "SimpleClass getCONTEXT__TRG__trgClass();", "public static List<EventType> getEventTypes() {\n // would normally be checked when a Flight Recorder instance is created\n Utils.checkAccessFlightRecorder();\n if (JVMSupport.isNotAvailable()) {\n return List.of();\n }\n JDKEvents.initialize(); // make sure JDK events are available\n return Collections.unmodifiableList(MetadataRepository.getInstance().getRegisteredEventTypes());\n }", "private String initClassName()\n {\n StringBuffer sb = new StringBuffer();\n String fieldName = _eventField.getName();\n String setName = _eventSet.getClassName();\n sb.append(Character.toUpperCase(fieldName.charAt(0)));\n if (fieldName.length() > 1)\n sb.append(fieldName.substring(1));\n sb.append(setName.substring(setName.lastIndexOf('.') + 1));\n sb.append(\"EventAdaptor\");\n return sb.toString();\n }", "@Override\n public ImmutableSet<EventClass> externalEventClasses() {\n return EventClass.emptySet();\n }", "public static Class<? extends Event> getEventClass(String eventType) {\n return EventTypeScanner.getInstance().getEventClass(stripOn(eventType));\n }", "public List<LogEvent> getLogEvents()\n {\n return new ArrayList<LogEvent>(logEvents);\n }", "public LogEvent getLogEvent();", "public static LogType EVENT()\n {\n if (g_oEvent == null)\n {\n try\n {\n g_oEvent = new LogType(\"EVENT\", 30);\n }\n catch (Goliath.Exceptions.InvalidParameterException ex)\n {}\n }\n return g_oEvent;\n }", "public Map<String, StatisticsEventConfig> getTypeView() {\n return classToEventMap;\n }", "protected abstract List<EventType> getAllowedEventTypes();", "java.lang.String getEventType();", "public List<EventListener> getListenersForEvent(Event event) {\r\n\r\n\t\t// the event class we are looking for\r\n\t\tClass<?> eventClass = event.getClass();\r\n\r\n\t\t// combined listener list (a) class specific and (b) broadcast\r\n\t\tList<EventListener> listeners = new ArrayList<EventListener>();\r\n\r\n\t\t// the list of class specific listeners\r\n\t\tCollection<EventListener> classSpecificListeners = listenersForEvent.get(eventClass);\r\n\t\tif (classSpecificListeners != null) {\r\n\t\t\tlisteners.addAll(classSpecificListeners);\r\n\t\t}\r\n\r\n\t\t// and the listeners with no class\r\n\t\tlisteners.addAll(listenersForAllEvents);\r\n\r\n\t\treturn listeners;\r\n\t}", "@Override\n public Set<Channel> getChannelsByEvent(Class<? extends EventObject> eventClass) {\n return channelsByEvent.get(eventClass);\n }", "public java.util.List<String> getRelatedEvents() {\n if (relatedEvents == null) {\n relatedEvents = new com.amazonaws.internal.SdkInternalList<String>();\n }\n return relatedEvents;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/Usage in DummyGenerator: generators.add(new TailDrop(Locale.GERMANY)); generators.add(new TailDrop(Locale.US));
public TailDrop(Locale locale) { super("TailDrop", locale); }
[ "public GermanEnglishSplitter(WordParser wordParser) {\n\t\tsuper(wordParser);\n\t}", "private void generateLegend( Locale locale, Sink sink )\n {\n sink.table();\n sink.tableCaption();\n sink.bold();\n sink.text( getI18nString( locale, \"legend\" ) );\n sink.bold_();\n sink.tableCaption_();\n\n sink.tableRow();\n\n sink.tableCell();\n iconError( sink );\n sink.tableCell_();\n sink.tableCell();\n sink.text( getI18nString( locale, \"legend.different\" ) );\n sink.tableCell_();\n\n sink.tableRow_();\n\n sink.table_();\n }", "@Test\n public void test6() throws Throwable {\n SequentialTreeBuilder sequentialTreeBuilder0 = new SequentialTreeBuilder((ElementHandler) null);\n sequentialTreeBuilder0.endPrefixMapping(\"<$`pxcJ#^\");\n }", "protected Parser listTail() {\r\n\tAlternation tail = new Alternation();\r\n\ttail.add(variable());\r\n\ttail.add(list());\r\n\t\r\n\tTrack barTail = new Track(\"bar tail\");\r\n\tbarTail.add(new Symbol('|').discard());\t\r\n\tbarTail.add(tail);\r\n\tbarTail.setAssembler(new ListWithTailAssembler());\r\n\t\r\n\tAlternation a = new Alternation();\r\n\ta.add(barTail);\r\n\ta.add(new Empty().setAssembler(new ListAssembler()));\r\n\treturn a;\r\n}", "@Test\n public void test48() throws Throwable {\n StatisticalLineAndShapeRenderer statisticalLineAndShapeRenderer0 = new StatisticalLineAndShapeRenderer();\n CategorySeriesLabelGenerator categorySeriesLabelGenerator0 = statisticalLineAndShapeRenderer0.getLegendItemToolTipGenerator();\n // Undeclared exception!\n try { \n statisticalLineAndShapeRenderer0.setLegendItemLabelGenerator((CategorySeriesLabelGenerator) null);\n } catch(IllegalArgumentException e) {\n //\n // Null 'generator' argument.\n //\n assertThrownBy(\"org.jfree.chart.renderer.category.AbstractCategoryItemRenderer\", e);\n }\n }", "@Override\n public void deflate() {\n\n }", "private TERMMAPPING(Builder builder) {\n super(builder);\n }", "@Test\n public void testDegenerateUse003() throws Exception {\n testDegenerateUse(list, list2, dc1, dc2);\n }", "private void stopTranslators()\n {\n for (Entry<MediaType, RTPTranslator> e : rtpTranslators.entrySet())\n {\n e.getValue().dispose();\n }\n rtpTranslators.clear();\n }", "Twine() {\n }", "@Disabled(\"The tags produced by our French TreeTagger model are different form the ones that \"\n + \"the pre-trained MaltParser model expects. Also the input format in our MaltParser \"\n + \"class is currently hardcoded to the format used by the English pre-trained model. \"\n + \"For the French model the 5th column of the input format should contain fine-grained \"\n + \"tags. See http://www.maltparser.org/mco/french_parser/fremalt.html\")\n @Test\n public void testFrench()\n throws Exception\n {\n JCas jcas = runTest(\n \"dummy-fr\",\n \"linear\",\n \"Nous avons besoin d'une phrase par exemple très \"\n + \"compliqué, qui contient des constituants que de nombreuses dépendances et que \"\n + \"possible.\");\n\n String[] dependencies = {\n \"[ 0, 4]ROOT(ROOT) D[0,4](Nous) G[0,4](Nous)\",\n \"[ 5, 10]ROOT(ROOT) D[5,10](avons) G[5,10](avons)\",\n \"[ 11, 17]ROOT(ROOT) D[11,17](besoin) G[11,17](besoin)\",\n \"[ 18, 23]ROOT(ROOT) D[18,23](d'une) G[18,23](d'une)\",\n \"[ 24, 30]ROOT(ROOT) D[24,30](phrase) G[24,30](phrase)\",\n \"[ 31, 34]ROOT(ROOT) D[31,34](par) G[31,34](par)\",\n \"[ 35, 42]ROOT(ROOT) D[35,42](exemple) G[35,42](exemple)\",\n \"[ 43, 47]ROOT(ROOT) D[43,47](très) G[43,47](très)\",\n \"[ 48, 58]ROOT(ROOT) D[48,58](compliqué,) G[48,58](compliqué,)\",\n \"[ 59, 62]ROOT(ROOT) D[59,62](qui) G[59,62](qui)\",\n \"[ 63, 71]ROOT(ROOT) D[63,71](contient) G[63,71](contient)\",\n \"[ 72, 75]ROOT(ROOT) D[72,75](des) G[72,75](des)\",\n \"[ 76, 88]ROOT(ROOT) D[76,88](constituants) G[76,88](constituants)\",\n \"[ 89, 92]ROOT(ROOT) D[89,92](que) G[89,92](que)\",\n \"[ 93, 95]ROOT(ROOT) D[93,95](de) G[93,95](de)\",\n \"[ 96,106]Dependency(det) D[96,106](nombreuses) G[107,118](dépendances)\",\n \"[107,118]Dependency(obj) D[107,118](dépendances) G[93,95](de)\",\n \"[119,121]Dependency(dep) D[119,121](et) G[107,118](dépendances)\",\n \"[122,125]Dependency(dep) D[122,125](que) G[107,118](dépendances)\",\n \"[126,135]Dependency(dep) D[126,135](possible.) G[107,118](dépendances)\" };\n\n String[] posTags = { \"/CC\", \"/P\", \"/PONCT\", \"4/DET\", \"ADJ\", \"ADJWH\", \"ADV\",\n \"ADVWH\", \"CC\", \"CLO\", \"CLR\", \"CLS\", \"CS\", \"DET\", \"DETWH\", \"ET\", \"I\", \"NC\", \"NPP\",\n \"P\", \"P+D\", \"P+PRO\", \"PONCT\", \"PREF\", \"PRO\", \"PROREL\", \"PROWH\", \"V\", \"VIMP\",\n \"VINF\", \"VPP\", \"VPR\", \"VS\", \"_9/NC\", \"_OPE/NC\", \"_S/ET\", \"_S/NPP\", \"_an/NC\",\n \"_h/NC\" };\n\n String[] depTags = { \"a_obj\", \"aff\", \"arg\", \"ato\", \"ats\", \"aux_caus\",\n \"aux_pass\", \"aux_tps\", \"comp\", \"coord\", \"de_obj\", \"dep\", \"dep_coord\", \"det\",\n \"missinghead\", \"mod\", \"mod_rel\", \"obj\", \"obj1\", \"p_obj\", \"ponct\", \"root\", \"suj\" };\n\n String[] unmappedPos = { \"/CC\", \"/P\", \"/PONCT\", \"4/DET\", \"_9/NC\", \"_OPE/NC\",\n \"_S/ET\", \"_S/NPP\", \"_an/NC\", \"_h/NC\" };\n\n assertDependencies(dependencies, JCasUtil.select(jcas, Dependency.class));\n assertTagset(MaltParser.class, POS.class, \"melt\", posTags, jcas);\n assertTagsetMapping(MaltParser.class, POS.class, \"melt\", unmappedPos, jcas);\n assertTagset(MaltParser.class, Dependency.class, \"ftb\", depTags, jcas);\n // FIXME assertTagsetMapping(Dependency.class, \"ftb\", new String[] {},\n // jcas);\n }", "Locale getFallbackLocale();", "void writeFooter(Generator generator) throws IOException;", "public ReportGenerator() {\n\t\tthis.currencyFormatter = NumberFormat.getCurrencyInstance(Locale.US);\n\t}", "public LocaleFormatter() {\r\n super(2);\r\n }", "public BigrCodeGenerator() {\n super();\n }", "public PropositionNaturalLanguageTemplater() {\n }", "private static final void processFunctionalOptions(\n GoWriter writer,\n String src,\n String dest\n ) {\n writer.openBlock(\"for _, fn := range $L {\", \"}\", src, () -> {\n writer.write(\"fn(&$L)\", dest);\n }).insertTrailingNewline();\n }", "NTInstrumentZoneBuilderType addGenerator(\n NTGenerator generator,\n NTGenericAmount amount);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the checks if is rcd pfmc log.
public void setIsRcdPfmcLog(Boolean isRcdPfmcLog) { this.isRcdPfmcLog = isRcdPfmcLog; }
[ "public void setIsRcdErrLog(Boolean isRcdErrLog) {\r\n\t\tthis.isRcdErrLog = isRcdErrLog;\r\n\t}", "public void setPreciousLogs(boolean preciousLogs) {\n this.preciousLogs = preciousLogs;\n }", "public boolean isPreciousLogs() {\n return preciousLogs;\n }", "void setLog(boolean log) \r\n { \r\n \tmLog = log;\r\n }", "private static void setLogNetworkMode() {\n switch (pmanger.getLogNetworkMode()) {\n case \"Offline\":\n reportAccessType = NetworkMode.OFFLINE;\n break;\n case \"Online\":\n reportAccessType = NetworkMode.ONLINE;\n break;\n\n default:\n System.out.println(\n \"ERROR: Could not set network mode of log. Please ensure correct value in properties file\");\n }\n }", "public void setCFR() {\r\n\t\tcaseFatalityRate = ((float)covidDeaths / (float)covidCases);\r\n\t}", "private static void setLogging(boolean log) {\r\n LOGGING = log;\r\n }", "public void setLogging(boolean l) throws RemoteException {\n\t\tif (l) {\n\t\t\tLOGGING = l;\n\t\t\tlog(\"Log ON\");\n\t\t} \n\t\telse {\n\t\t\tlog(\"Log OFF\");\n\t\t\tLOGGING = l;\n\t\t}\n\t}", "private void chkPRMST()\n\t{\n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Select count(*) from co_prmst\";\n\t\t\tM_strSQLQRY += \" where pr_prdcd = '\"+strPRDCD+\"'\";\n\t\t\tif(cl_dat.getRECCNT(M_strSQLQRY) > 0)\n\t\t\t\tupdPRMST();\n\t\t\telse{\n\t\t\t\tsetMSG(\"Record does not exist in CO_PRMST\",'E');\n\t\t\t\tcl_dat.M_flgLCUPD_pbst = false;\n\t\t\t\t}\n\t\t\t//System.out.println(M_strSQLQRY);\n\t}catch(Exception L_EX){\n\t\t\tsetMSG(L_EX,\"chkPRMST\");\n\t\t}\n\t}", "public void testEnableCustomLogging() {\n Database.log.setCustom(new LogTestLogger(LogLevel.WARNING));\n // end::set-custom-logging[]\n }", "private boolean getLogStatus() { return writeLogs; }", "@Override\n protected boolean recordLogRec(Message msg) {\n final boolean shouldLog = (msg.what != EVENT_NETLINK_LINKPROPERTIES_CHANGED);\n if (!shouldLog) {\n mMsgStateLogger.reset();\n }\n return shouldLog;\n }", "public void setPcr(boolean pcr) {\n this.pcr = pcr;\n }", "public boolean isChangeInServiceLevelsFromCmos() {\r\n return changeInServiceLevelsFromCmos;\r\n }", "public void setDataLogging (boolean dataLogging) {\n this.dataLogging = dataLogging;\n }", "public void setChangeInServiceLevelsFromCmos(final boolean changeInServiceLevelsFromCmos) {\r\n this.changeInServiceLevelsFromCmos = changeInServiceLevelsFromCmos;\r\n }", "public void setDebugMcc(int mcc) {\r\n\t\tthis.mcc = mcc;\r\n\t}", "public void setLoggingToFileChecked(boolean loggingToFileChecked) {\n this.loggingToFileChecked = loggingToFileChecked;\n }", "public void setLogAvailable(boolean value) {\n this.logAvailable = value;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given two packages one to be installed and the other installed, return a List of the packages that need to be newly installed. For example, refer to shared_dependecies.json toInstall("A","B") If package A needs to be installed and packageB is already installed, return the list ["A", "C"] since D will have been installed when B was previously installed.
public List<String> toInstall(String newPkg, String installedPkg) throws CycleException, PackageNotFoundException { // if the package is not in the graph, throw the exception if(!graph.getAllVertices().contains(newPkg)) { throw new PackageNotFoundException(); } // if the package is not in the graph, throw the exception if(!graph.getAllVertices().contains(installedPkg)) { throw new PackageNotFoundException(); } // store list of dependencies for and including installedPkg List<String> list1 = getInstallationOrder(installedPkg); // store list of dependencies for and including newPkg List<String> list2 = getInstallationOrder(newPkg); // for all elements in list2 (newPkg) for(int i = 0; i<list2.size(); i++) { // if they are present in list1 (already installed), if(list1.contains(list2.get(i))) { // remove it from the list list2.remove(i); // decrement i to make up for remove i--; } } // return the final list return list2; }
[ "public List<String> getInstallPackageNames() {\n List<String> res = new ArrayList<>();\n res.addAll(getLocalPackagesToInstall().keySet());\n res.addAll(getNewPackagesToDownload().keySet());\n Collections.sort(res);\n return res;\n }", "List<ImportedPackage> getDynamicImportedPackages();", "public List<Package> getInstalledPackages()\n\t{\n\t\treturn new LinkedList<Package>(installedPackages.values());\n\t}", "@Override\n\tpublic List<String> getListInstalledPackages() {\n\t\tlogger.log(Level.INFO, \"PackMan-CVMFS: Getting list of packages \");\n\n\t\tif (this.getHavePath()) {\n\t\t\tfinal String listPackages = SystemCommand.bash(alienv_bin + \" q --packman\").stdout;\n\t\t\treturn Arrays.asList(listPackages.split(\"\\n\"));\n\t\t}\n\t\treturn null;\n\t}", "public Map<String, PackageDesc> getPackagesInstalled() {\n\teval(ANS + \"=pkg('list');\");\n\t// TBC: why ans=necessary??? without like pkg list .. bug? \n\tOctaveCell cell = get(OctaveCell.class, ANS);\n\tint len = cell.dataSize();\n\tMap<String, PackageDesc> res = new HashMap<String, PackageDesc>();\n\tPackageDesc pkg;\n\tfor (int idx = 1; idx <= len; idx++) {\n\t pkg = new PackageDesc(cell.get(OctaveStruct.class, 1, idx));\n\t res.put(pkg.name, pkg);\n\t}\n\treturn res;\n }", "private Collection getPackagesProvidedBy(BundlePackages bpkgs) {\n ArrayList res = new ArrayList();\n // NYI Improve the speed here!\n for (Iterator i = bpkgs.getExports(); i.hasNext();) {\n ExportPkg ep = (ExportPkg) i.next();\n if (ep.pkg.providers.contains(ep)) {\n res.add(ep);\n }\n }\n return res;\n }", "public List<ImportedPackage> getImportedPackages();", "public abstract List<String> protoPackageDependencies();", "protected ExportedPackage[] getExportedPackages(Bundle b)\n {\n List list = new ArrayList();\n \n // If a bundle is specified, then return its\n // exported packages.\n if (b != null)\n {\n BundleImpl bundle = (BundleImpl) b;\n getExportedPackages(bundle, list);\n }\n // Otherwise return all exported packages.\n else\n {\n // To create a list of all exported packages, we must look\n // in the installed and uninstalled sets of bundles. To\n // ensure a somewhat consistent view, we will gather all\n // of this information from within the installed bundle\n // lock.\n synchronized (m_installedBundleLock_Priority2)\n {\n // First get exported packages from uninstalled bundles.\n synchronized (m_uninstalledBundlesLock_Priority3)\n {\n for (int bundleIdx = 0;\n (m_uninstalledBundles != null) && (bundleIdx < m_uninstalledBundles.length);\n bundleIdx++)\n {\n BundleImpl bundle = m_uninstalledBundles[bundleIdx];\n getExportedPackages(bundle, list);\n }\n }\n \n // Now get exported packages from installed bundles.\n Bundle[] bundles = getBundles();\n for (int bundleIdx = 0; bundleIdx < bundles.length; bundleIdx++)\n {\n BundleImpl bundle = (BundleImpl) bundles[bundleIdx];\n getExportedPackages(bundle, list);\n }\n }\n }\n \n return (ExportedPackage[]) list.toArray(new ExportedPackage[list.size()]);\n }", "List<String> getSystemPackages();", "protected List<ReactPackage> getPackages() {\n @SuppressWarnings(\"UnnecessaryLocalVariable\")\n List<ReactPackage> packages = new PackageList(this).getPackages();\n // return Arrays.<ReactPackage>asList(\n // eg. new VectorIconsPackage()\n // Add new RNCameraPackage() to the list returned by the getPackages() method. Add a comma to the previous item if there's already something there.\n // new MainReactPackage(), // <---- add comma\n // new RNFSPackage() // <---------- add package\n // );\n return packages;\n }", "List<String> getManagedPackages();", "@Override\n\tpublic List<String> getListPackages() {\n\t\tlogger.log(Level.INFO, \"PackMan-CVMFS: Getting list of packages \");\n\n\t\tif (this.getHavePath()) {\n\t\t\tfinal String listPackages = SystemCommand.bash(alienv_bin + \" q --packman\").stdout;\n\t\t\treturn Arrays.asList(listPackages.split(\"\\n\"));\n\t\t}\n\n\t\treturn null;\n\t}", "public StandardPythonInstallation[] getInstallations()\n {\n return ToolInstallation.all().get(StandardPythonInstallation.DescriptorImpl.class).getInstallations();\n }", "public List<ExportedPackage> getExportedPackages();", "List<Dependency> getRequestedDependencies();", "public Collection<String> getNamesOfPackagesInstalled() {\n\teval(\"cellfun(@(x) x.name, pkg('list'), 'UniformOutput', false);\");\n\treturn getStringCellFromAns();\n }", "private boolean resolvePackages() {\n \t\t/* attempt to resolve the proposed bundles */\n \t\tMap availablePackages;\n \t\tboolean success;\n \t\tint tries = 0;\n \t\tdo {\n \t\t\ttries++;\n \t\t\tsuccess = true;\n \t\t\tBundleDescription[] initialBundles = state.getResolvedBundles();\n \t\t\tavailablePackages = new HashMap(11);\n \t\t\t/* do all exports first */\n \t\t\tfor (int i = 0; i < initialBundles.length; i++) {\n \t\t\t\tPackageSpecification[] required = initialBundles[i].getPackages();\n \t\t\t\tfor (int j = 0; j < required.length; j++)\n \t\t\t\t\t// override previously exported package if any (could\n \t\t\t\t\t// preserve instead)\n \t\t\t\t\tif (required[j].isExported()) {\n \t\t\t\t\t\tVersion toExport = required[j].getVersionSpecification();\n \t\t\t\t\t\tPackageSpecification existing = (PackageSpecification) availablePackages.get(required[j].getName());\n \t\t\t\t\t\tVersion existingVersion = existing == null ? null : existing.getVersionSpecification();\n \t\t\t\t\t\tif (existingVersion == null || (toExport != null && toExport.isGreaterThan(existingVersion)))\n \t\t\t\t\t\t\tavailablePackages.put(required[j].getName(), required[j]);\n \t\t\t\t\t}\n \t\t\t}\n \t\t\t/* now try to resolve imported packages */\n \t\t\tfor (int i = 0; i < initialBundles.length; i++) {\n \t\t\t\tPackageSpecification[] required = initialBundles[i].getPackages();\n \t\t\t\tfor (int j = 0; j < required.length; j++) {\n \t\t\t\t\tPackageSpecification exported = (PackageSpecification) availablePackages.get(required[j].getName());\n \t\t\t\t\tVersion exportedVersion = exported == null ? null : exported.getVersionSpecification();\n \t\t\t\t\tVersion importedVersion = required[j].getVersionSpecification();\n \t\t\t\t\tif (exported == null || (importedVersion != null && (exportedVersion == null || !exportedVersion.isGreaterOrEqualTo(importedVersion)))) {\n \t\t\t\t\t\tunresolveRequirementChain(initialBundles[i]);\n \t\t\t\t\t\tsuccess = false;\n \t\t\t\t\t\t// one missing import is enough to discard this bundle\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} while (!success);\n \t\t/* now bind the exports/imports */\n \t\tBundleDescription[] resolvedBundles = state.getResolvedBundles();\n \t\tfor (int i = 0; i < resolvedBundles.length; i++) {\n \t\t\tPackageSpecification[] required = resolvedBundles[i].getPackages();\n \t\t\tfor (int j = 0; j < required.length; j++) {\n \t\t\t\tPackageSpecification exported = (PackageSpecification) availablePackages.get(required[j].getName());\n \t\t\t\tstate.resolveConstraint(required[j], exported.getVersionSpecification(), exported.getBundle());\n \t\t\t}\n \t\t}\n \t\t/* return false if a at least one bundle was unresolved during this */\n \t\treturn tries > 1;\n \t}", "List<ApplicationPackageReference> applicationPackages();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the Start Position
public Position getStartPosition() { return start; }
[ "Position getStart();", "public int getStartPosition() {\n return this.startPosition;\n }", "public int getStartOffset() {\n return _startPos.getOffset();\n }", "public int getStartOffset() {\n return startPosition.getOffset();\n }", "public Point getStartPoint()\r\n\t{\r\n\t\treturn start;\r\n\t}", "public Point getStart() {\n\t\treturn start;\n\t}", "public int getStartPos() {\n return startPos;\n }", "public int getXStart() {\n return xStart;\n }", "public BoardPosition getStart()\n\t{\n\t\treturn from;\n\t}", "public String startPosition() {\n return \"_builder.set_SourcePositionStart( computeStartPosition(_input.LT(1)));\\n\";\n }", "public int getStartingPos ()\r\n {\r\n if ((getThickness() >= 2) && !getLine()\r\n .isVertical()) {\r\n return getLine()\r\n .yAt(getStart());\r\n } else {\r\n return getFirstPos() + (getThickness() / 2);\r\n }\r\n }", "public int startLocation() {\r\n\t\treturn startingLocation;\r\n\t}", "public Location getStartLocation() {\r\n \treturn new Location(0,0);\r\n }", "public int getStartIdx() {\n return this.startIdx;\n }", "public Point getStartPoint() {\n\t\treturn startPoint;\n\t}", "@Override\r\n \tpublic final int getStartPos() {\r\n \t\treturn sourceStart;\r\n \t}", "public double getStartX()\n {\n return startxcoord; \n }", "public final int getStartOffset() {\n\t\treturn fStartToken;\n\t}", "public Point getStartPoint() {\n return startPoint;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Provide a uniform return value for undefined attribute values. XDM supports full fidelty so this deviates slightly from the DOM specification in that the return value for an undefined attribute is null instead of "". This method normalizes the return value for an undefined element to null.
public String normalizeUndefinedAttributeValue(String value) { return value; }
[ "public String getNullAttribute();", "@SuppressWarnings(\"SameReturnValue\")\n @BasicFunction(classification = Constant.class)\n static public Object undef() {\n return null;\n }", "public static DataEvent ofUndefined() {\n\t\treturn UNDEFINED;\n\t}", "public boolean isUndefined() {\n return false;\n }", "public static Value makeUndef() {\n return theUndef;\n }", "public static StackValue createUndefinedValue() {\n return new StackValue(ValueType.UNDEFINED, \"\");\n }", "private Element createXmlElementForUndefined(Undefined undefined, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_UNDEFINED);\n\t\treturn element;\n\t}", "public Document removeNilAttribute(@Body Document xml) throws XPathExpressionException {\n XPathFactory xPathfactory = XPathFactory.newInstance();\n XPath xpath = xPathfactory.newXPath();\n XPathExpression expr = xpath.compile(\"//*[@*[local-name() = 'nil'] = 'true']\");\n\n NodeList nodes = (NodeList) expr.evaluate(xml, XPathConstants.NODESET);\n IntStream.range(0, nodes.getLength()).forEach(index -> {\n Element element = ((Element) nodes.item(index));\n element.removeAttribute(\"xmlns:xsi\");\n element.removeAttribute(\"xsi:nil\");\n });\n\n return xml;\n }", "public Value restrictToNotAbsent() {\n checkNotUnknown();\n if (isNotAbsent())\n return this;\n Value r = new Value(this);\n r.flags &= ~ABSENT;\n if (r.var != null && (r.flags & (PRESENT_DATA | PRESENT_ACCESSOR)) == 0)\n r.var = null;\n return canonicalize(r);\n }", "public static Matcher<Val> valUndefined() {\n\t\treturn new IsValUndefined();\n\t}", "public Value restrictToFalsy() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n if (isMaybeStr(\"\"))\n r.str = \"\";\n else\n r.str = null;\n r.flags &= ~STR;\n if (r.num != null && Math.abs(r.num) != 0.0)\n r.num = null;\n r.object_labels = r.getters = r.setters = null;\n r.flags &= ~(BOOL_TRUE | STR_PREFIX | (NUM & ~(NUM_ZERO | NUM_NAN)));\n r.excluded_strings = r.included_strings = null;\n return canonicalize(r);\n }", "public void setUndefined();", "public boolean isUndefinedAllowed() {\n return _allowUndefined;\n }", "public StringDt getMeaningWhenMissingElement() { \n\t\tif (myMeaningWhenMissing == null) {\n\t\t\tmyMeaningWhenMissing = new StringDt();\n\t\t}\n\t\treturn myMeaningWhenMissing;\n\t}", "public void unsetNullFlavor()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(NULLFLAVOR$38);\n }\n }", "public java.lang.String getNullFlavor()\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(NULLFLAVOR$38);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public Value restrictToNotNullNotUndef() {\n checkNotPolymorphicOrUnknown();\n if (!isMaybeNull() && !isMaybeUndef())\n return this;\n Value r = new Value(this);\n r.flags &= ~(NULL | UNDEF);\n return canonicalize(r);\n }", "public void unsetNullFlavor()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(NULLFLAVOR$28);\n }\n }", "public java.lang.String getNullFlavor()\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(NULLFLAVOR$28);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 11 / 3 covered goals: 1 org.apache.commons.collections4.trie.KeyAnalyzer.compare(Ljava/lang/Object;Ljava/lang/Object;)I: I17 Branch 7 IFNONNULL L141 false 2 org.apache.commons.collections4.trie.KeyAnalyzer.()V: rootBranch 3 org.apache.commons.collections4.trie.KeyAnalyzer.compare(Ljava/lang/Object;Ljava/lang/Object;)I: I3 Branch 5 IFNONNULL L139 true
@Test public void test11() throws Throwable { fr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1248,"org.apache.commons.collections4.trie.KeyAnalyzerEvoSuiteTest.test11"); StringKeyAnalyzer stringKeyAnalyzer0 = new StringKeyAnalyzer(); int int0 = stringKeyAnalyzer0.compare("XE44Cq\"Ww<<j sxT:", (String) null); assertEquals(1, int0); }
[ "@Test\n public void test9() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1256,\"org.apache.commons.collections4.trie.KeyAnalyzerEvoSuiteTest.test9\");\n StringKeyAnalyzer stringKeyAnalyzer0 = new StringKeyAnalyzer();\n int int0 = stringKeyAnalyzer0.compare((String) null, \"XE44Cq\\\"Ww<<j sxT:\");\n assertEquals((-1), int0);\n }", "@Test\n public void test10() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1247,\"org.apache.commons.collections4.trie.KeyAnalyzerEvoSuiteTest.test10\");\n StringKeyAnalyzer stringKeyAnalyzer0 = new StringKeyAnalyzer();\n int int0 = stringKeyAnalyzer0.compare((String) null, (String) null);\n assertEquals(0, int0);\n }", "@Test\n public void test8() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1255,\"org.apache.commons.collections4.trie.KeyAnalyzerEvoSuiteTest.test8\");\n StringKeyAnalyzer stringKeyAnalyzer0 = new StringKeyAnalyzer();\n int int0 = stringKeyAnalyzer0.compare(\"XE44Cq\\\"Ww<<j sxT:\", \"XE44Cq\\\"Ww<<j sxT:\");\n assertEquals(0, int0);\n }", "@Test\n public void test2() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1249,\"org.apache.commons.collections4.trie.KeyAnalyzerEvoSuiteTest.test2\");\n boolean boolean0 = KeyAnalyzer.isEqualBitKey((-1260));\n assertEquals(false, boolean0);\n }", "@Test\n public void test3() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1250,\"org.apache.commons.collections4.trie.KeyAnalyzerEvoSuiteTest.test3\");\n boolean boolean0 = KeyAnalyzer.isEqualBitKey((-2));\n assertEquals(true, boolean0);\n }", "@Test\n public void test2() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1242,\"org.apache.commons.collections4.trie.AbstractPatriciaTrieEvoSuiteTest.test2\");\n PatriciaTrie<String> patriciaTrie0 = new PatriciaTrie<String>();\n SortedMap<String, String> sortedMap0 = patriciaTrie0.headMap(\"jvaPkB \");\n PatriciaTrie<String> patriciaTrie1 = new PatriciaTrie<String>((Map<? extends String, ? extends String>) sortedMap0);\n assertTrue(patriciaTrie0.equals(patriciaTrie1));\n }", "@Test\n public void test4() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1251,\"org.apache.commons.collections4.trie.KeyAnalyzerEvoSuiteTest.test4\");\n boolean boolean0 = KeyAnalyzer.isNullBitKey(848);\n assertEquals(false, boolean0);\n }", "@Test\n public void test3() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1243,\"org.apache.commons.collections4.trie.AbstractPatriciaTrieEvoSuiteTest.test3\");\n PatriciaTrie<Integer> patriciaTrie0 = new PatriciaTrie<Integer>();\n patriciaTrie0.keySet();\n }", "@Test\n public void test150() throws Throwable {\n int int0 = StringUtils.getLevenshteinDistance(\"Ra}Pq\\\"VM6+r4.]\", \"Ra}Pq\\\"VM6+r4.]\");\n String string0 = StringUtils.lowerCase(\"{k\");\n boolean boolean0 = StringUtils.isNumeric(\"lt(Qctz|'o'V\");\n StringUtils stringUtils0 = new StringUtils();\n String string1 = StringUtils.replace((String) null, \"0J]{^O_Q\", \"{k\", 0);\n TreeSet<Object> treeSet0 = new TreeSet<Object>();\n HashSet<JavaVersion> hashSet0 = new HashSet<JavaVersion>();\n boolean boolean1 = treeSet0.addAll(hashSet0);\n Iterator<Object> iterator0 = treeSet0.iterator();\n String string2 = StringUtils.join(iterator0, \"\");\n int int1 = StringUtils.indexOf(\"lt(Qctz|'o'V\", ';');\n int int2 = StringUtils.indexOf(\"\", 'E');\n }", "@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1240,\"org.apache.commons.collections4.trie.AbstractPatriciaTrieEvoSuiteTest.test0\");\n PatriciaTrie<String> patriciaTrie0 = new PatriciaTrie<String>();\n PatriciaTrie<String> patriciaTrie1 = new PatriciaTrie<String>((Map<? extends String, ? extends String>) patriciaTrie0);\n assertEquals(true, patriciaTrie1.isEmpty());\n }", "@Test\n public void test5() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1252,\"org.apache.commons.collections4.trie.KeyAnalyzerEvoSuiteTest.test5\");\n boolean boolean0 = KeyAnalyzer.isNullBitKey((-1));\n assertEquals(true, boolean0);\n }", "@Test\n public void test1() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1246,\"org.apache.commons.collections4.trie.KeyAnalyzerEvoSuiteTest.test1\");\n boolean boolean0 = KeyAnalyzer.isOutOfBoundsIndex((-3));\n assertEquals(true, boolean0);\n }", "@Test\n public void test7() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1254,\"org.apache.commons.collections4.trie.KeyAnalyzerEvoSuiteTest.test7\");\n boolean boolean0 = KeyAnalyzer.isValidBitIndex(848);\n assertEquals(true, boolean0);\n }", "@Test\n public void test071() throws Throwable {\n String string0 = StringUtils.defaultString(\"JAVA_0_9\", \"JAVA_0_9\");\n int int0 = StringUtils.lastIndexOf((CharSequence) \"JAVA_0_9\", (-1597));\n LinkedList<Object> linkedList0 = new LinkedList<Object>();\n String string1 = StringUtils.join((Iterable<?>) linkedList0, 'H');\n int int1 = StringUtils.getLevenshteinDistance((CharSequence) \"\", (CharSequence) \"JAVA_0_9\");\n String string2 = StringUtils.repeat('H', 2408);\n int int2 = StringUtils.indexOfAnyBut((CharSequence) \"HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\", (CharSequence) \"JAVA_0_9\");\n String string3 = StringUtils.removeEnd(\"N?PMDzi8lTppd]rnO\", \"JAVA_0_9\");\n char[] charArray0 = new char[3];\n charArray0[0] = 'H';\n charArray0[1] = '\\'';\n charArray0[2] = 'H';\n boolean boolean0 = StringUtils.containsNone((CharSequence) \"N?PMDzi8lTppd]rnO\", charArray0);\n }", "@Test\n public void test6() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1253,\"org.apache.commons.collections4.trie.KeyAnalyzerEvoSuiteTest.test6\");\n boolean boolean0 = KeyAnalyzer.isValidBitIndex((-2));\n assertEquals(false, boolean0);\n }", "public static void main(String[] args) {\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 3, 4, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 3, 5, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 3, 4, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 3, 5, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 5, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 5, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(6, 6, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(6, 6, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 3, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(7, 7, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(7, 7, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 4, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 4, true, null)));\n measureTime(()->checkInterruptSequential(4, 4, 3, false));\n measureTime(()->checkInterruptSequential(4, 4, 3, true));\n }", "@Test\n public void test1() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1241,\"org.apache.commons.collections4.trie.AbstractPatriciaTrieEvoSuiteTest.test1\");\n PatriciaTrie<String> patriciaTrie0 = new PatriciaTrie<String>();\n patriciaTrie0.subMap(\"s.\", \"s.\");\n assertEquals(true, patriciaTrie0.isEmpty());\n }", "@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1245,\"org.apache.commons.collections4.trie.KeyAnalyzerEvoSuiteTest.test0\");\n boolean boolean0 = KeyAnalyzer.isOutOfBoundsIndex((-1260));\n assertEquals(false, boolean0);\n }", "@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(862,\"org.apache.commons.collections4.comparators.ComparableComparatorEvoSuiteTest.test0\");\n ComparableComparator<Integer> comparableComparator0 = new ComparableComparator<Integer>();\n int int0 = comparableComparator0.hashCode();\n assertEquals(1769708912, int0);\n \n int int1 = comparableComparator0.compare((Integer) 1769708912, (Integer) 1769708912);\n assertFalse(int1 == int0);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'var113' field.
public java.lang.Float getVar113() { return var113; }
[ "public java.lang.Float getVar113() {\n return var113;\n }", "public java.lang.Integer getVar114() {\n return var114;\n }", "public java.lang.Integer getVar232() {\n return var232;\n }", "public java.lang.Integer getVar213() {\n return var213;\n }", "public java.lang.Integer getVar114() {\n return var114;\n }", "public java.lang.Integer getVar213() {\n return var213;\n }", "public java.lang.Integer getVar232() {\n return var232;\n }", "public java.lang.Integer getVar123() {\n return var123;\n }", "public java.lang.CharSequence getVar116() {\n return var116;\n }", "public java.lang.CharSequence getVar153() {\n return var153;\n }", "public java.lang.Integer getVar123() {\n return var123;\n }", "public java.lang.CharSequence getVar153() {\n return var153;\n }", "public java.lang.CharSequence getVar233() {\n return var233;\n }", "public java.lang.CharSequence getVar116() {\n return var116;\n }", "public java.lang.Integer getVar132() {\n return var132;\n }", "public java.lang.CharSequence getVar143() {\n return var143;\n }", "public java.lang.Integer getVar34() {\n return var34;\n }", "public java.lang.CharSequence getVar233() {\n return var233;\n }", "public java.lang.CharSequence getVar143() {\n return var143;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the ruleAttribute2 value for this Account.
public java.lang.String getRuleAttribute2() { return ruleAttribute2; }
[ "public void setRuleAttribute2(java.lang.String ruleAttribute2) {\n this.ruleAttribute2 = ruleAttribute2;\n }", "public String getAttribute2() {\n return attribute2;\n }", "public String getAttribute2() {\r\n return (String)getAttributeInternal(ATTRIBUTE2);\r\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttr2() {\n return attr2;\n }", "public Integer getAttr2() {\r\n return attr2;\r\n }", "public java.lang.String getRuleAttribute1() {\n return ruleAttribute1;\n }", "public String getLineAttribute2() {\n return (String) getAttributeInternal(LINEATTRIBUTE2);\n }", "public String getMppfcAdr2() {\n return (String) getAttributeInternal(MPPFCADR2);\n }", "public java.lang.String getPmRuleValue2() {\r\n return pmRuleValue2;\r\n }", "public String getExtAttribute2() {\n return (String) getAttributeInternal(EXTATTRIBUTE2);\n }", "public String getIntAttribute2() {\n return (String) getAttributeInternal(INTATTRIBUTE2);\n }", "public String getSegment2() {\n return (String) getAttributeInternal(SEGMENT2);\n }", "public String getHeaderAttribute2() {\n return (String) getAttributeInternal(HEADERATTRIBUTE2);\n }", "public String getAddressLine2() {\n return (String)getAttributeInternal(ADDRESSLINE2);\n }", "public java.lang.String getCAA_NA2_addressLine2(\n ) {\n return this._CAA_NA2_addressLine2;\n }", "public java.lang.String getValue2() {\n return this.value2;\n }", "public char getA2() {\n return a2;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests the findSubprogramChairRole method to ensure it returns a SubprogramChair object if the user is a Subprogram Chair and null otherwise. Tests two distinct partitions: A user who is a Subprogram Chair, and a user who is not a Subprogram Chair.
@Test public void testFindSubprogramChairRole() { assertFalse(testUserWithSubprogramChairRole.findSubprogramChairRole().equals(null)); assertTrue(testUserWithNoRole.findSubprogramChairRole() == null); }
[ "@Test\r\n\tpublic void testHasRoleForUserWithSubprogramChairRole() {\r\n\t\tassertTrue(testUserWithSubprogramChairRole.hasRole(testConference1, new SubprogramChair(testConference1), testUserWithSubprogramChairRole));\r\n\t}", "@Test\r\n\tpublic void testRemoveMyRoleForUserWithSubprogramChairRole() {\r\n\t\ttestUserWithSubprogramChairRole.removeMyRole(new SubprogramChair(testConference1));\r\n\t\tassertTrue(testUserWithSubprogramChairRole.getMyRoles().isEmpty());\r\n\t}", "@Test\r\n\tpublic void testFindProgramChairRole() {\r\n\t\tassertFalse(testUserWithProgramChairRole.findProgramChairRole().equals(null));\r\n\t\tassertTrue(testUserWithNoRole.findProgramChairRole() == null);\r\n\t}", "@Test\r\n\tpublic void testHasRoleForUserWithProgramChairRole() {\r\n\t\ttestUserWithProgramChairRole.hasRole(testConference1, new ProgramChair(testConference1), testUserWithProgramChairRole);\r\n\t}", "@Test\r\n\tpublic void testRemoveMyRoleForUserWithProgramChairRole() {\r\n\t\ttestUserWithProgramChairRole.removeMyRole(new ProgramChair(testConference1));\r\n\t\tassertTrue(testUserWithProgramChairRole.getMyRoles().isEmpty());\r\n\t}", "public SubProgramChair(String user) {\r\n super(user);\r\n assignedPapers = new ArrayList<>();\r\n }", "@Test\r\n\tpublic void testAddSubProgManuscriptForSubprogramChairWithNoItem() {\r\n\t\ttestUserWithNoSubProgManuscript.addSubProgManuscript(testManuscript);\r\n\t\tassertEquals(testUserWithNoSubProgManuscript.getSubProgManuscript().size(), 1);\r\n\t\tassertTrue(testUserWithNoSubProgManuscript.getSubProgManuscript().contains(testManuscript));\r\n\t}", "private boolean takeRole(String usrPart){\n if (this.myRoom.hasScene() == false){\n System.out.println (\"There is no active scene in this room.\");\n return false;\n }\n else {\n Role tempRole = this.myRoom.findOnCardRole(usrPart);\n if (tempRole == null){\n tempRole = this.myRoom.findOffCardRole(usrPart);\n }\n else { // if players new role does exist on the scene card\n roleOnCard = true;\n }\n if (tempRole == null){\n System.out.println (\"Please try again.\");\n return false;\n }\n else if (this.rank >= tempRole.getRank()){ // if the player has sufficient rank\n this.myRole = tempRole;\n this.myRole.addActor(this);\n this.myScene = myRoom.getScene();\n return true;\n }\n else {\n return false;\n }\n }\n }", "@Test\r\n public void findUserRoleValid() {\r\n\r\n UserRoleEto userRole = this.usermanagement.findUserRole(0L);\r\n\r\n assertThat(userRole).isNotNull();\r\n assertThat(userRole.getName()).isEqualTo(\"Customer\");\r\n }", "@Test\r\n\tpublic void testAddSubProgManuscriptForSubprogramChairWithOneItem() {\r\n\t\ttestUserWithOneSubProgManuscript.addSubProgManuscript(testManuscript2);\r\n\t\tassertEquals(testUserWithOneSubProgManuscript.getSubProgManuscript().size(), 2);\r\n\t\tassertTrue(testUserWithOneSubProgManuscript.getSubProgManuscript().contains(testManuscript));\r\n\t\tassertTrue(testUserWithOneSubProgManuscript.getSubProgManuscript().contains(testManuscript2));\r\n\t}", "@Test\r\n\tpublic void testGetSubProgManuscript() {\r\n\t\tassertTrue(testUserWithNoSubProgManuscript.getSubProgManuscript().isEmpty());\r\n\t\t\r\n\t\tassertEquals(testUserWithOneSubProgManuscript.getSubProgManuscript().size() , 1);\r\n\t\tassertTrue(testUserWithOneSubProgManuscript.getSubProgManuscript().contains(testManuscript));\r\n\t\t\r\n\t\tassertEquals(testUserWithFourSubProgManuscript.getSubProgManuscript().size() , 4);\r\n\t\tassertTrue(testUserWithFourSubProgManuscript.getSubProgManuscript().contains(testManuscript));\r\n\t\tassertTrue(testUserWithFourSubProgManuscript.getSubProgManuscript().contains(testManuscript2));\r\n\t}", "CourseParticipant getCourseParticInOneCourse(UUID courseCourseParticUuid);", "public static Message checkSubAccountNumber(LaborTransaction transaction, String exclusiveDocumentTypeCode) {\n String subAccountNumber = transaction.getSubAccountNumber();\n String chartOfAccountsCode = transaction.getChartOfAccountsCode();\n String accountNumber = transaction.getAccountNumber();\n String documentTypeCode = transaction.getFinancialDocumentTypeCode();\n String subAccountKey = chartOfAccountsCode + \"-\" + accountNumber + \"-\" + subAccountNumber;\n SubAccount subAccount = getAccountingCycleCachingService().getSubAccount(((LaborOriginEntry) transaction).getChartOfAccountsCode(), ((LaborOriginEntry) transaction).getAccountNumber(), ((LaborOriginEntry) transaction).getSubAccountNumber());\n\n if (StringUtils.isBlank(subAccountNumber)) {\n return MessageBuilder.buildMessage(KFSKeyConstants.ERROR_SUB_ACCOUNT_NOT_FOUND, subAccountKey, Message.TYPE_FATAL);\n }\n\n if (!KFSConstants.getDashSubAccountNumber().equals(subAccountNumber)) {\n if (ObjectUtils.isNull(subAccount)) {\n return MessageBuilder.buildMessage(KFSKeyConstants.ERROR_SUB_ACCOUNT_NOT_FOUND, subAccountKey, Message.TYPE_FATAL);\n }\n\n if (!StringUtils.equals(documentTypeCode, exclusiveDocumentTypeCode)) {\n if (!subAccount.isActive()) {\n return MessageBuilder.buildMessage(KFSKeyConstants.ERROR_SUB_ACCOUNT_NOT_ACTIVE, subAccountKey, Message.TYPE_FATAL);\n }\n }\n }\n return null;\n }", "public A21SubAccount getByPrimaryKey(String chartOfAccountsCode, String accountNumber, String subAccountNumber);", "public static void checkSubadminRoleValidity( SecurityAccess access )\n throws ManagementException, GeneralSecurityException {\n\n Role[] subadminRoles = access.getRolesByNS( \"SUBADMIN\" );\n Set<User>[] rolesAndUsers = new Set[subadminRoles.length + 1];\n String[] roleNames = new String[subadminRoles.length + 1];\n\n // admin role\n User[] users = access.getRoleById( Role.ID_SEC_ADMIN ).getAllUsers( access );\n rolesAndUsers[0] = new HashSet<User>();\n roleNames[0] = \"Administrator\";\n for ( int i = 0; i < users.length; i++ ) {\n rolesAndUsers[0].add( users[i] );\n }\n\n // subadmin roles\n for ( int i = 1; i < rolesAndUsers.length; i++ ) {\n users = subadminRoles[i - 1].getAllUsers( access );\n rolesAndUsers[i] = new HashSet<User>();\n roleNames[i] = subadminRoles[i - 1].getTitle();\n for ( int j = 0; j < users.length; j++ ) {\n rolesAndUsers[i].add( users[j] );\n }\n }\n\n // now check if all usersets are disjoint\n for ( int i = 0; i < rolesAndUsers.length - 1; i++ ) {\n Set userSet1 = rolesAndUsers[i];\n for ( int j = i + 1; j < rolesAndUsers.length; j++ ) {\n Set userSet2 = rolesAndUsers[j];\n Iterator it = userSet2.iterator();\n while ( it.hasNext() ) {\n User user = (User) it.next();\n if ( userSet1.contains( user ) ) {\n throw new ManagementException( \"Ungültige Subadmin-Rollenvergabe. Benutzer '\" + user.getTitle()\n + \"' würde sowohl die Rolle '\" + roleNames[i]\n + \"' als auch die Rolle '\" + roleNames[j] + \"' erhalten.\" );\n }\n }\n }\n }\n }", "public void testDeleteCheckCategorySuperUser(\n ) throws Exception \n {\n User curUser = null;\n User user1 = null;\n User user2 = null;\n User testUser = null;\n Role userRole = null;\n Object[] arrTestUsers = null;\n \n AccessRight accessRightModify = null;\n AccessRight accessRightView = null;\n \n int iCurrentDomainID = CallContext.getInstance().getCurrentDomainId();\n // first change the current user that will be not super user\n curUser = changeCurrentUser();\n \n try\n {\n m_transaction.begin();\n try\n {\n m_roleFactory.createPersonal(curUser);\n\n // create 2 test users\n arrTestUsers = constructTestUsers();\n user1 = (User)arrTestUsers[0];\n user2 = (User)arrTestUsers[1];\n \n user1 = (User)m_userFactory.create(user1);\n m_roleFactory.createPersonal(user1);\n \n user2 = (User)m_userFactory.create(user2);\n m_roleFactory.createPersonal(user2);\n \n // create role to the curUser\n userRole = new Role(DataObject.NEW_ID, \n iCurrentDomainID, \n \"testname\", \n \"testdescription\", \n true, \n curUser.getId(), \n false, null, null, null);\n userRole = (Role)m_roleFactory.create(userRole);\n \n m_roleFactory.assignToUser(curUser.getId(),\n Integer.toString(userRole.getId()));\n \n // create access right that curUser can create only user objects \n // that are not superusers\n accessRightModify = new AccessRight(DataObject.NEW_ID,\n userRole.getId(),\n iCurrentDomainID,\n ActionConstants.RIGHT_ACTION_DELETE,\n m_iUserDataType,\n AccessRight.ACCESS_GRANTED,\n UserDataDescriptor.COL_USER_SUPER_USER,\n DataCondition.DATA_CODE_FLAG_NO,\n null, null);\n m_rightFactory.create(accessRightModify); \n \n // create access right that curUser can view all user object\n accessRightView = new AccessRight(DataObject.NEW_ID,\n userRole.getId(),\n iCurrentDomainID,\n ActionConstants.RIGHT_ACTION_VIEW,\n m_iUserDataType,\n AccessRight.ACCESS_GRANTED,\n AccessRight.NO_RIGHT_CATEGORY,\n AccessRight.NO_RIGHT_IDENTIFIER,\n null, null);\n m_rightFactory.create(accessRightView); \n m_transaction.commit();\n }\n catch (Throwable thr)\n {\n m_transaction.rollback();\n throw new Exception(thr);\n }\n \n //------------------------\n // 1. try to delete user1\n //------------------------\n m_transaction.begin();\n try\n {\n // try to delete user 1\n m_userControl.delete(user1.getId());\n m_transaction.commit();\n }\n catch (Throwable thr)\n {\n m_transaction.rollback();\n throw new Exception(thr);\n }\n \n // user 1 has to be deleted\n testUser = (User)m_userControl.get(user1.getId());\n assertNull(\"User 1 should be deleted but wasn't\", testUser);\n user1 = null;\n \n //------------------------\n // 2. try to delete user2\n //------------------------\n m_transaction.begin();\n try\n {\n // try to delete user 2\n m_userControl.delete(user2.getId());\n m_transaction.commit();\n }\n catch (Throwable thr)\n {\n m_transaction.rollback();\n throw new Exception(thr);\n }\n \n // user has not be deleted \n testUser = (User)m_userControl.get(user2.getId());\n assertNotNull(\"User 2 should not be deleted because of access right limitation\", \n testUser);\n }\n finally\n {\n deleteTestData(userRole, user1, user2);\n }\n }", "@Test\r\n\tpublic void testAddSubProgManuscriptForSubprogramChairWithFourItem() {\r\n\t\ttestUserWithFourSubProgManuscript.addSubProgManuscript(testManuscript3);\r\n\t\tassertEquals(testUserWithFourSubProgManuscript.getSubProgManuscript().size(), 5);\r\n\t\tassertTrue(testUserWithFourSubProgManuscript.getSubProgManuscript().contains(testManuscript));\r\n\t\tassertTrue(testUserWithFourSubProgManuscript.getSubProgManuscript().contains(testManuscript2));\r\n\t\tassertTrue(testUserWithFourSubProgManuscript.getSubProgManuscript().contains(testManuscript3));\r\n\t\tassertTrue(testUserWithFourSubProgManuscript.getSubProgManuscript().contains(testManuscript4));\r\n\t}", "public abstract UserBusinessActivity getUserSubordinateBusinessActivity();", "public List<PscUser> getColleaguesOf(\n PscUser primaryUser, PscRole collegialRole, PscRole... primaryRoles\n ) {\n if (primaryRoles.length == 0) primaryRoles = new PscRole[] { collegialRole };\n\n List<SuiteRoleMembership> primaryMemberships =\n new ArrayList<SuiteRoleMembership>(primaryRoles.length);\n for (PscRole primaryRole : primaryRoles) {\n SuiteRoleMembership srm = primaryUser.getMembership(primaryRole);\n if (srm != null) primaryMemberships.add(srm);\n }\n if (primaryMemberships.isEmpty()) return Collections.emptyList();\n\n Collection<User> csmUsers = getCsmUsers(collegialRole);\n List<PscUser> candidates = getPscUsers(csmUsers, false);\n CANDIDATES: for (Iterator<PscUser> it = candidates.iterator(); it.hasNext();) {\n PscUser candidate = it.next();\n SuiteRoleMembership candidateMembership = candidate.getMembership(collegialRole);\n if (candidateMembership != null) {\n for (SuiteRoleMembership primaryMembership : primaryMemberships) {\n if (candidateMembership.intersect(primaryMembership) != null) {\n continue CANDIDATES;\n }\n }\n }\n it.remove();\n }\n Collections.sort(candidates);\n\n return candidates;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
metodo para pesquisar um contato na agenda pelo nome. retorna true se encontrar e false se nao encontrar
public boolean pesquisarNome(String nome) { return pesquisarNome(nome, raiz); }
[ "public Boolean buscarUsuario(String nom) {\n Nodo aux = inicio;\n if (esVacia()) {\n System.out.println(\"No hay un Usuario con ese nombre\");\n } else {\n while (aux != null) {\n if (aux.getDato().getUsuario().compareTo(nom) == 0) {\n return true;\n }\n aux = aux.getSiguiente();\n }\n }\n return false;\n }", "private boolean isUmJogador(String nome) {\n for (int i = 0; i < listaJogadores.size(); i++) {\n Jogador jogador = listaJogadores.get(i);\n\n if (jogador.getNome().equals(nome)) {\n return true;\n }\n\n }\n\n return false;\n }", "public boolean verificarNombre(String nombreEtiqueta){\n for(int i = 0;i < this.listaEtiquetas.size();i++){\n if(this.listaEtiquetas.get(i).getEtiqueta().equals(nombreEtiqueta)){ //Si existe el nombre en la lista de etiquetas\n return true;\n }\n }\n return false;\n }", "public boolean verificaUnicidadeNome() {\n\t\tif(!EntidadesDAO.existeNome(entidades.getNome())) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean existeNombreCodificacion(String nombreCodificacion) {\r\n return repoCodificacion.findAll().stream()\r\n .anyMatch(codificacion -> codificacion.getNombre().equalsIgnoreCase(nombreCodificacion));\r\n }", "public boolean existeMontajeNombre(Montaje montaje);", "public boolean validarNome() {\n\t\treturn validador.validarNomeUK(\"nome\", gestor.getNome());\n\t}", "public boolean existeJugador(String name) {\r\n\t\tboolean op = false;\r\n\t\tfor (Jugador jugador : lista) {\r\n\t\t\tif(jugador.getName().equals(name)) {\r\n\t\t\t\top = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn op;\r\n\t}", "List<FecetDocExpediente> findWhereNombreEquals(String nombre);", "public boolean existeVacuna(String codigo){\n boolean resultado = false;\n if(almacen.containsKey(codigo)){\n resultado = true;\n }\n return resultado;\n }", "public static boolean comienza(String baseDeDatos, String entrada) {\n\t\t/* ENTRADA DE DATOS */\n\t\tString[] cadena;\n\t\tStringTokenizer tokenizerBD = new StringTokenizer(baseDeDatos, \" \");\n\t\tint cantTokensBD = tokenizerBD.countTokens();\n\t\tStringTokenizer tokenizerEntrada = new StringTokenizer(entrada, \" \");\n\t\tint cantTokensEntrada = tokenizerEntrada.countTokens();\n\t\tif (cantTokensEntrada == 0) {\n\t\t\treturn true;\n\t\t} else if (cantTokensEntrada == 1) {\n\t\t\tboolean encontrado = false;\n\t\t\tfor (int j=0; j<cantTokensBD && !encontrado; j++) {\n\t\t\t\tif (tokenizerBD.nextToken().toUpperCase().startsWith(entrada.trim().toUpperCase()) ) {\n\t\t\t\t\tencontrado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn encontrado;\n\t\t} else {\n\t\t\tboolean encontrado = false;\n\t\t\tcadena = new String[cantTokensBD];\n\t\t\tfor (int i=0; i<cantTokensBD; i++) {\n\t\t\t\tcadena[i] = new String(tokenizerBD.nextToken());\n\t\t\t}\n\t\t\tfor (int j=0; j<(cadena.length-1) && !encontrado; j++) {\n\t\t\t\tString aux = \"\";\n\t\t\t\tfor (int k=j; k<cadena.length; k++) {\n\t\t\t\t\taux += cadena[k]+\" \";\n\t\t\t\t} \n\t\t\t\tencontrado = aux.toUpperCase().startsWith(entrada.trim().toUpperCase());\n\t\t\t}\n\t\t\treturn encontrado;\n\t\t}\n\t}", "boolean nombreNodoExistente(String nombre, String tipo) {\n if (!nombre.equals(\"\")) {\n for (Nodo nodo : lista) {\n if (nodo.getClass().getSimpleName().equals(tipo) && nodo.getNombre().equals(nombre)) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean tieneEmpleados(String text) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t//Se usa para ver cuando se puede eliminar un Dpto.\r\n\t\t//esto es, cuando solo queda su jefe (que siempre\r\n\t\t//está ahí)\r\n\t\treturn this.getEmpleadosDepartamento(text).size()>1;\r\n\t}", "@Override\n public List<Empleado> findName(String nombre) {\n\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<Empleado> cr = cb.createQuery(Empleado.class);\n Root<Empleado> root = cr.from(Empleado.class);\n cr.select(root).where(cb.like(root.get(\"nombreEmpleado\"), \"%\" + nombre + \"%\"));\n\n TypedQuery<Empleado> query = em.createQuery(cr);\n return query.getResultList();\n }", "boolean existeCliente(String nombre);", "public Jogador pesquisarJogadorNome(String nome) throws JogadorInvalidoException{\n\t\tfor(Jogador j:jogadores){ // \n\t\t\tif(j.getNome().equals(nome)){\n\t\t\t\treturn j;\n\t\t\t}\n\t\t}\n\t\tthrow new JogadorInvalidoException(\"Jogador \"+nome+\" invalido!\"); // quando nao achar o jogador lanca a excecao\n\t}", "public Vendedor buscarVendedorPorNome(String nome);", "public boolean searchName(String name){\n this.view.clearTable(); // clear exising table\n int counter = 0; // sets counter to avoid empty table\n for(ZooKeeper k : keepers){ // for each keeper\n if(k.getName().toUpperCase()\n .contains(name.toUpperCase())){ // if keeper's name contains\n // the String\n counter++; // add 1 to counter\n this.view.addKeeperToTable(k); // add keeper to the table\n }\n }\n if(counter!=0){ // if something was found\n this.view.displayTable(); // display the table\n return true; // return true\n }\n return false; // return false if nothing was found\n }", "boolean existeServicio(String nombre);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deserializes from the given input. The deserialized object is written to the given object. The serialization is done by a thread local serialization handler.
public static void readExternal(final ObjectInput in, CustomSerializable obj) throws IOException { CSHandler handler = getInstance(); handler.setDataInput(new BasicTypeDataInputImpl(new InputStream() { public boolean markSupported() { return false; } public int read() throws IOException { return in.read(); } public int read(byte[] b, int off, int len) throws IOException { return in.read(b, off, len); } public int read(byte[] b) throws IOException { return in.read(b); } public long skip(long n) throws IOException { return in.skip(n); } public int available() throws IOException { return in.available(); } public void close() throws IOException { in.close(); } })); obj.customReadObject(handler); handler.setDataInput(null); }
[ "public abstract Object deserialize(Object object);", "Object deserialize(ByteBuf input);", "public interface ObjectInput extends DataInput\n{\n\n /** \n * Read and return an object. The class that implements this interface\n * defines where the object is \"read\" from.\n *\n * @return the object read from the stream\n * @exception java.lang.ClassNotFoundException If the class of a serialized\n * object cannot be found.\n * @exception IOException If any of the usual Input/Output\n * related exceptions occur.\n */\n public Object readObject() throws ClassNotFoundException, IOException;\n\n /** \n * Reads a byte of data. This method will block if no input is\n * available.\n * @return \tthe byte read, or -1 if the end of the\n *\t\tstream is reached.\n * @exception IOException If an I/O error has occurred.\n */\n public int read() throws IOException;\n\n /** \n * Reads into an array of bytes. This method will\n * block until some input is available.\n * @param b\tthe buffer into which the data is read\n * @return the actual number of bytes read, -1 is\n * \t\treturned when the end of the stream is reached.\n * @exception IOException If an I/O error has occurred.\n */\n public int read(byte[] b) throws IOException;\n\n /** \n * Reads into an array of bytes. This method will\n * block until some input is available.\n * @param b\tthe buffer into which the data is read\n * @param off the start offset of the data\n * @param len the maximum number of bytes read\n * @return the actual number of bytes read, -1 is\n * \t\treturned when the end of the stream is reached.\n * @exception IOException If an I/O error has occurred.\n */\n public int read(byte[] b, int off, int len) throws IOException;\n\n /** \n * Skips n bytes of input.\n * @param n the number of bytes to be skipped\n * @return\tthe actual number of bytes skipped.\n * @exception IOException If an I/O error has occurred.\n */\n public long skip(long n) throws IOException;\n\n /** \n * Returns the number of bytes that can be read\n * without blocking.\n * @return the number of available bytes.\n * @exception IOException If an I/O error has occurred.\n */\n public int available() throws IOException;\n\n /** \n * Closes the input stream. Must be called\n * to release any resources associated with\n * the stream.\n * @exception IOException If an I/O error has occurred.\n */\n public void close() throws IOException;\n}", "private void readObject(ObjectInputStream in) throws IOException, \n ClassNotFoundException {\n \n in.defaultReadObject();\n lock = new ReentrantReadWriteLock(true);\n }", "Object deserialize(Class objClass, InputStream stream) throws IOException;", "@SuppressWarnings(\"unchecked\")\n protected <R> R read(ObjectInput objectInput, Class<R> type) throws ClassNotFoundException, IOException {\n return (R) objectInput.readObject();\n }", "protected abstract O doDeserialize(I input,\n byte protocolId,\n String schemaName,\n Integer writerSchemaVersion,\n Integer readerSchemaVersion) throws SerDesException;", "protected ObjectInput\n getObjectInput\n (\n InputStream in\n ) \n throws IOException\n {\n return new ObjectInputStream(in);\n }", "<U> U deserialize(T serializedObject, Class<U> objectType);", "T deserialize(InputStream stream) throws IOException;", "public void deserialize(InputStream in) throws IOException {\n ObjectInputStream ois = new ObjectInputStream(in);\n root = new Node();\n this.size = ois.readInt();\n root = deserializeRec(root, ois);\n }", "@SuppressWarnings({\"unchecked\"})\n private void readObject(final java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {\n /** Response string */\n this.responseString = (String) in.readObject();\n\n /** Code */\n this.code = in.readInt();\n\n /** Response headers */\n final Map headers = (Map) in.readObject();\n this.headers.clear();\n this.headers.putAll(headers);\n\n /** Response body */\n final byte[] body = (byte[]) in.readObject();\n //System.out.println(\"[] body \"+body.length );\n sosi = new ServletByteArrayOutputStream();\n sosi.write(body);\n writer = new PrintWriter(sosi);\n\n }", "void fromDeserialized(Serializable serializable);", "private void readObject(java.io.ObjectInputStream in)\n throws IOException, ClassNotFoundException {\n\n // UnSerialize captcha fields with default method\n in.defaultReadObject();\n \n try {\n\n this.challenge =ImageIO.read(new MemoryCacheImageInputStream(in));\n } catch (IOException e) {\n if (!hasChallengeBeenCalled.booleanValue()) {\n // If the getChallenge method has not been called the challenge should be available for unmarhslling.\n // In this case, the thrown Exception is not related to the dispose status \n throw e;\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\n private void readObject(final ObjectInputStream in)\n throws IOException, ClassNotFoundException {\n this.comp = (Comparator<? super TKey>) in.readObject();\n\n // Read old org.teneighty.heap size.\n int capacity = in.readInt();\n this.size = in.readInt();\n this.rec_capacity = in.readInt();\n\n // Re-alloc org.teneighty.heap.\n this.heap = new DynamicArray<BinaryHeapEntry<TKey, TValue>>(capacity);\n\n // Read keys and values.\n BinaryHeapEntry<TKey, TValue> entry = null;\n for (int index = 1; index <= this.size; index++) {\n // Create new entry.\n entry = new BinaryHeapEntry<TKey, TValue>((TKey) in.readObject(),\n (TValue) in.readObject());\n\n // Restore index...\n entry.heap_index = index;\n\n // Store int org.teneighty.heap.\n this.heap.set(index, entry);\n }\n }", "public Object unpickle(DataInputStream in) throws IOException {\n String clsname = in.readUTF();\n try {\n return Class.forName(clsname);\n } catch (Exception ex) {\n throw new IOException(\"Unable to restore class \" + clsname + \": \" + ex.getMessage());\n }\n }", "Object deserialize(String string);", "private void readObject(ObjectInputStream in) \n\tthrows IOException, ClassNotFoundException {\n \n\t /*\n\t * Take care of this class's fields first by calling \n\t * defaultReadObject\n\t */\n\t in.defaultReadObject();\n \n\t /* \n\t * Since the superclass does not implement the Serializable \n\t * interface we explicitly do the restoring... Since these fields \n\t * are not private we can access them directly. If they were \n\t * private, the superclass would have to implement get and set \n\t * methods that would allow the subclass this necessary access \n\t * for proper saving or restoring.\n\t */\n\t author = (String) in.readObject();\n\t subject = (String) in.readObject();\n\t yearwritten = in.readInt();\n }", "private void readObject(java.io.ObjectInputStream in)\n throws NotSerializableException {\n throw new NotSerializableException(\"Not serializable.\");\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
use this function if this similarity is describing/used by a COTS map update the data for owning COTS based on passed control points
@Override public final void deriveSimilarityFromCntlPts(myPointf[] cntlPts, Base_ControlFlags flags) { myPointf[] e0 = new myPointf[] {cntlPts[0],cntlPts[1]}, e1 = new myPointf[] {cntlPts[3],cntlPts[2]}, e0Ortho = new myPointf[] {e0[0],e1[0]}, e1Ortho = new myPointf[] {e0[1],e1[1]}; trans[0].buildTransformation(e0,e1, flags); //flags.setDebug(true);//set to true to debug branching trans[1].buildTransformation(e0Ortho, e1Ortho, flags); //flags.setDebug(false);//set to true to debug branching }
[ "private void updateMowerCords() {\n\t\tfor (int i = 0; i < this.map.size(); i++) {\r\n\t\t\tfor (int j = 0; j < this.map.get(i).size(); j++) {\r\n\t\t\t\tif (this.map.get(i).get(j) == this.mower) {\r\n\t\t\t\t\tthis.x = j;\r\n\t\t\t\t\tthis.y = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void updateMapData(MapData mapData);", "private void updateMap() throws GameActionException{\n Robot[] nearbyRobots = r.rc.senseNearbyGameObjects(Robot.class, 14);\n // Process nearby robots\n for(Robot robot: nearbyRobots){\n RobotInfo ri = r.rc.senseRobotInfo(robot);\n int dx = r.rc.getLocation().x - ri.location.x;\n int dy = r.rc.getLocation().y - ri.location.y;\n double energonScale = r.rc.getEnergon() / ri.energon;\n\n // Set the value of an occupied scared as + if team, - if enemy\n // The cost of the square is set proportional to the energon of the robot\n if(ri.team == r.rc.getTeam())\n localMap[3 - dx][3 - dy] = allyTile * energonScale * clumpingFactor;\n else\n localMap[3 - dx][3 - dy] = enemyTile * energonScale * energonScale * hostilityFactor;\n }\n }", "private void update() {\n\t\ttheMap.update();\n\t\ttheTrainer.update();\n\t}", "@Override\n\tprotected void updateDataFromRead(CountedData counter, final GATKSAMRecord gatkRead, final int offset, final byte refBase) {\n Object[][] covars;\n\t\ttry {\n\t\t\tcovars = (Comparable[][]) gatkRead.getTemporaryAttribute(getCovarsAttribute());\n\t\t\t// Using the list of covariate values as a key, pick out the RecalDatum from the data HashMap\n\t NestedHashMap data;\n\t data = dataManager.data;\n\t final Object[] key = covars[offset];\n\t\t\tBisulfiteRecalDatumOptimized datum = (BisulfiteRecalDatumOptimized) data.get( key );\n\t if( datum == null ) { // key doesn't exist yet in the map so make a new bucket and add it\n\t // initialized with zeros, will be incremented at end of method\n\t datum = (BisulfiteRecalDatumOptimized)data.put( new BisulfiteRecalDatumOptimized(), true, (Object[])key );\n\t }\n\n\t // Need the bases to determine whether or not we have a mismatch\n\t final byte base = gatkRead.getReadBases()[offset];\n\t final long curMismatches = datum.getNumMismatches();\n\t final byte baseQual = gatkRead.getBaseQualities()[offset];\n\n\t // Add one to the number of observations and potentially one to the number of mismatches\n\t datum.incrementBaseCounts( base, refBase, baseQual );\n\t increaseCountedBases(counter,1);\n\t\t\tincreaseNovelCountsBases(counter,1);\n\t\t\tincreaseNovelCountsMM(counter,(datum.getNumMismatches() - curMismatches));\n\t \n\t\t} catch (IllegalArgumentException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IllegalAccessException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (InstantiationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n //counter.novelCountsBases++;\n \n //counter.novelCountsMM += datum.getNumMismatches() - curMismatches; // For sanity check to ensure novel mismatch rate vs dnsnp mismatch rate is reasonable\n \n }", "public void updateActiveControlPoint(int x, int y)\n {\n\n // Bring the location within bounds.\n x = forceXCoordinateWithinBounds(x);\n y = forceYCoordinateWithinBounds(y);\n\n // Change what is done depending on which control point is\n // active.\n int width;\n int dx;\n int dy;\n switch (activeCtrlPt)\n {\n\n case 4 :\n\n // Determine the delta-x and delta-y.\n dx = xCtrlPts[0] - xCtrlPts[4];\n dy = yCtrlPts[0] - yCtrlPts[4];\n\n // Update the active control point.\n xCtrlPts[activeCtrlPt] = x;\n yCtrlPts[activeCtrlPt] = y;\n\n // Update the control points on either side.\n xCtrlPts[0] = x + dx;\n yCtrlPts[0] = y + dy;\n xCtrlPts[3] = x - dx;\n yCtrlPts[3] = y - dy;\n\n break;\n\n case 5 :\n\n // Determine the delta-x and delta-y.\n dx = xCtrlPts[1] - xCtrlPts[5];\n dy = yCtrlPts[1] - yCtrlPts[5];\n\n // Update the active control point.\n xCtrlPts[activeCtrlPt] = x;\n yCtrlPts[activeCtrlPt] = y;\n\n // Update the control points on either side.\n xCtrlPts[1] = x + dx;\n yCtrlPts[1] = y + dy;\n xCtrlPts[2] = x - dx;\n yCtrlPts[2] = y - dy;\n\n break;\n\n case 0 :\n case 3 :\n\n // Update the active control point.\n xCtrlPts[activeCtrlPt] = x;\n yCtrlPts[activeCtrlPt] = y;\n\n // Determine the delta-x and delta-y.\n dx = xCtrlPts[activeCtrlPt] - xCtrlPts[4];\n dy = yCtrlPts[activeCtrlPt] - yCtrlPts[4];\n\n if (activeCtrlPt == 3)\n {\n dx = -dx;\n dy = -dy;\n }\n\n xCtrlPts[1] = xCtrlPts[5] + dx;\n yCtrlPts[1] = yCtrlPts[5] + dy;\n xCtrlPts[2] = xCtrlPts[5] - dx;\n yCtrlPts[2] = yCtrlPts[5] - dy;\n\n xCtrlPts[0] = xCtrlPts[4] + dx;\n yCtrlPts[0] = yCtrlPts[4] + dy;\n xCtrlPts[3] = xCtrlPts[4] - dx;\n yCtrlPts[3] = yCtrlPts[4] - dy;\n\n break;\n\n case 1 :\n case 2 :\n\n // Update the active control point.\n xCtrlPts[activeCtrlPt] = x;\n yCtrlPts[activeCtrlPt] = y;\n\n // Determine the delta-x and delta-y.\n dx = xCtrlPts[activeCtrlPt] - xCtrlPts[5];\n dy = yCtrlPts[activeCtrlPt] - yCtrlPts[5];\n\n if (activeCtrlPt == 2)\n {\n dx = -dx;\n dy = -dy;\n }\n\n xCtrlPts[1] = xCtrlPts[5] + dx;\n yCtrlPts[1] = yCtrlPts[5] + dy;\n xCtrlPts[2] = xCtrlPts[5] - dx;\n yCtrlPts[2] = yCtrlPts[5] - dy;\n\n xCtrlPts[0] = xCtrlPts[4] + dx;\n yCtrlPts[0] = yCtrlPts[4] + dy;\n xCtrlPts[3] = xCtrlPts[4] - dx;\n yCtrlPts[3] = yCtrlPts[4] - dy;\n\n break;\n\n default :\n break;\n }\n\n repaintPanel();\n }", "private void updateLevelKnowledge() {\n updateMap();\n updateRobotTail();\n }", "private Set<Classifier<A, C>> updateSetNXCS(S state, A act, double P){\n\t\tSet<Classifier<A, C>> setM = generateMatchSet(state);\n\t\tdouble deltaT = (P - valueFunctionEstimation(setM));\n\n\t\tSet<Classifier<A, C>> setA = generateActionSet(setM, preAct);\n\n\t\t//Update parameters\n\t\tdouble numSum = 0;\n\t\tfor(Classifier<A, C> classifier : setA){\n\t\t\tnumSum += classifier.getNum();\n\t\t}\n\n\t\tfor(Classifier<A, C> classifier : setA){\n\t\t\tupdateClassifierParameters(classifier, P, numSum);\n\t\t}\n\n\t\tupdateFitness(setA);\n\n\t\t//Update Thetas of the match set\n\t\tPredictionArray<A> reward = generateNormalizedPredictionArray(setM);\n\t\tClassifier<A, C>[] setMArray = toArray(setM);\n\n\n\t\tdouble dot = 0;\n\t\tdouble[] stateFeatures = new double[setM.size()];\n\t\tfor(int i = 0;i < stateFeatures.length;i ++){\n\t\t\tClassifier<A, C> classifier = setMArray[i];\n\t\t\tif(classifier.getAction().equals(act)){\n\t\t\t\tstateFeatures[i] = 1 - reward.getPrediction(classifier.getAction());\n\t\t\t}\n\t\t\telse{\n\t\t\t\tstateFeatures[i] = -reward.getPrediction(classifier.getAction());\n\t\t\t}\n\t\t\tdot += (classifier.getTheta() - classifier.getW()) * Math.pow(stateFeatures[i], 2);\n\t\t}\n\n\n\t\tfor(int i = 0;i < stateFeatures.length;i ++){\n\t\t\tClassifier<A, C> classifier = setMArray[i];\n\t\t\tclassifier.setW(classifier.getTheta());\n\t\t\tif(constants.getUpdateMethod().equals(XCSConstants.UpdateMethod.NXCS)){\n\t\t\t\tclassifier.setTheta(classifier.getTheta() + constants.getOmega() * deltaT * stateFeatures[i]);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdouble mod = 0.1 * (classifier.getTheta() - classifier.getW()) + constants.getOmega() * deltaT * stateFeatures[i] - constants.getOmega() * dot;\n\t\t\t\tclassifier.setTheta(classifier.getTheta() + mod);\n\t\t\t}\n\t\t}\n\n\n\t\t//Return either the subsumped action set or the standard action set\n\t\tif(constants.doActionSetSubsumption()){\n\t\t\treturn actionSetSubsumption(generateActionSet(setM, act));\n\t\t}\n\t\telse{\n\t\t\treturn generateActionSet(setM, act);\n\t\t}\n\t}", "public void updateControids() {\n\t\tfor (Cluster cluster : this.clusters) {\n\t\t\tcluster.updateCentroid();\n\t\t}\n\t}", "protected abstract void updateClusterParameters();", "private static float [][] updateMembershipsWithSpatialInformation(float [][] U, int r,\n double p, double q,\n int spatialFunctionType,\n int cols, int [][] xy,\n int [][] offset,\n double [][] uPhQ){\n\n //float[][] Uupdate = new float[U.length][U[0].length];\n int nClusters = U[0].length;\n if(uPhQ == null)\n {\n uPhQ = new double[U.length][nClusters + 1];\n }\n\n int rows = U.length / cols;\n\n for(int i = 0; i < U.length; i++)\n {\n //double numerator = 0;\n uPhQ[i][nClusters] = 0;\n\n for(int j = 0; j < nClusters; j++)\n {\n\n int row = xy[i][0];\n int col = xy[i][1];\n double h = 0;\n\n for(int ry = -r; ry <= r; ry++)\n {\n int y = row + ry;\n if (y >= 0 && y < rows)\n {\n for (int rx = -r; rx <= r; rx++)\n {\n int x = col + rx;\n if (x >= 0 && x < cols)\n {\n int elem = offset[y][x];\n\n if(spatialFunctionType == 0)\n {\n h += U[elem][j];\n }\n else\n {\n boolean exit = false;\n for(int k = 0; k < nClusters && !exit ; k++)\n {\n if(U[elem][j] < U[elem][k])\n {\n exit = true;\n }\n }\n\n if(exit == false)\n {\n h += 1;\n }\n }\n }\n }\n }\n }\n\n double uPTimeshQ = Math.pow(U[i][j], p) *\n Math.pow(h, q);\n uPhQ[i][j] = uPTimeshQ;\n uPhQ[i][nClusters] += uPTimeshQ;\n\n }\n }\n\n for(int i = 0; i < U.length; i++)\n {\n double denominatorSum = uPhQ[i][nClusters];\n for(int j = 0; j < nClusters; j++)\n {\n U[i][j] = (float) (uPhQ[i][j] / denominatorSum);\n }\n }\n\n return U;\n }", "protected\n boolean\n matchData(PointData data)\n {\n //Identify the source and save the new data value\n if (data.getName().equals(itsMP1)) {\n itsVal1 = data;\n } else if (data.getName().equals(itsMP2)) {\n itsVal2 = data;\n } else {\n System.err.println(\"TranslationDualListen: \" + itsParent.getFullName() +\n\t\t\t \": Unexpected data from \" + data.getName());\n itsVal1 = null;\n itsVal2 = null;\n return false;\n }\n\n //All we need values for both points to calculate new value\n if (itsVal1==null || itsVal2==null) {\n //We've only got a new value for one of the points.\n //Return nothing until we have data for both points\n return false;\n }\n\n return true;\n }", "private void updateMap(){\n mMap.clear();\n // this instruction clears the Map object from the other object, it's needed in orther to display\n //the right current geofences without having the previous ones still on screen\n\n mOptions.setOption(mOptions.getOption().center(circle.getCenter()));\n mOptions.setOption(mOptions.getOption().radius(circle.getRadius()));\n\n\n circle=mMap.addCircle(mOptions.getOption());//i need to add again the user circle object on screen\n\n //TODO have to implement settings\n //set markers based on the return objects of the geoquery\n for (int ix = 0; ix < LOCATIONS.length; ix++) {\n mMap.addMarker(new MarkerOptions()\n .title(LOCATIONS[ix].getExplaination())\n .snippet(\"TODO\")\n .position(LOCATIONS[ix].getPosition()));\n }\n }", "private void testMap() {\n\t\t_knowledgeMapA.updateLocation(new Point(2, 2), 4, 2);\n\t\t_knowledgeMapA.updateLocation(new Point(2, 3), 5, 2);\n\t\t_knowledgeMapA.updateLocation(new Point(2, 4), 6, 2);\n\t\t_knowledgeMapA.updateLocation(new Point(2, 0), 7, 2);\n\t\t_knowledgeMapA.updateLocation(new Point(0, 2), 8, 4);\n\t\t_knowledgeMapA.updateLocation(new Point(3, 2), 9, 4);\n\t\t_knowledgeMapA.updateLocation(new Point(5, 2), 1, 4);\n\t\t_knowledgeMapA.updateLocation(new Point(6, 2), 2, 2);\n\t\t_knowledgeMapA.updateLocation(new Point(1, 2), 3, 2);\n\n\t\t_knowledgeMapB.updateLocation(new Point(2, 2), 23, 5);\n\t\t_knowledgeMapB.updateLocation(new Point(2, 3), 24, 3);\n\t\t_knowledgeMapB.updateLocation(new Point(2, 4), 25, 1);\n\t\t_knowledgeMapB.updateLocation(new Point(2, 0), 26, 3);\n\t\t_knowledgeMapB.updateLocation(new Point(0, 2), 27, 2);\n\t\t_knowledgeMapB.updateLocation(new Point(3, 2), 28, 3);\n\t\t_knowledgeMapB.updateLocation(new Point(5, 2), 29, 2);\n\t\t_knowledgeMapB.updateLocation(new Point(6, 2), 21, 1);\n\t\t_knowledgeMapB.updateLocation(new Point(1, 2), 22, 6);\n\n\t\t_knowledgeMapA.exchangeInformation(_knowledgeMapB);\n\n\t\tassertEquals(23, _knowledgeMapA.getLocationKnowledge(new Point(2, 2)).intValue());\n\t\tassertEquals(24, _knowledgeMapA.getLocationKnowledge(new Point(2, 3)).intValue());\n\t\tassertEquals(6, _knowledgeMapA.getLocationKnowledge(new Point(2, 4)).intValue());\n\t\tassertEquals(26, _knowledgeMapA.getLocationKnowledge(new Point(2, 0)).intValue());\n\t\tassertEquals(8, _knowledgeMapA.getLocationKnowledge(new Point(0, 2)).intValue());\n\t\tassertEquals(9, _knowledgeMapA.getLocationKnowledge(new Point(3, 2)).intValue());\n\t\tassertEquals(1, _knowledgeMapA.getLocationKnowledge(new Point(5, 2)).intValue());\n\t\tassertEquals(2, _knowledgeMapA.getLocationKnowledge(new Point(6, 2)).intValue());\n\t\tassertEquals(22, _knowledgeMapA.getLocationKnowledge(new Point(1, 2)).intValue());\n\n\t\tassertEquals(23, _knowledgeMapB.getLocationKnowledge(new Point(2, 2)).intValue());\n\t\tassertEquals(24, _knowledgeMapB.getLocationKnowledge(new Point(2, 3)).intValue());\n\t\tassertEquals(6, _knowledgeMapB.getLocationKnowledge(new Point(2, 4)).intValue());\n\t\tassertEquals(26, _knowledgeMapB.getLocationKnowledge(new Point(2, 0)).intValue());\n\t\tassertEquals(8, _knowledgeMapB.getLocationKnowledge(new Point(0, 2)).intValue());\n\t\tassertEquals(9, _knowledgeMapB.getLocationKnowledge(new Point(3, 2)).intValue());\n\t\tassertEquals(1, _knowledgeMapB.getLocationKnowledge(new Point(5, 2)).intValue());\n\t\tassertEquals(2, _knowledgeMapB.getLocationKnowledge(new Point(6, 2)).intValue());\n\t\tassertEquals(22, _knowledgeMapB.getLocationKnowledge(new Point(1, 2)).intValue());\n\n\t\tassertEquals(5, _knowledgeMapA.getLocationKnowledgeAge(new Point(2, 2)));\n\t\tassertEquals(3, _knowledgeMapA.getLocationKnowledgeAge(new Point(2, 3)));\n\t\tassertEquals(2, _knowledgeMapA.getLocationKnowledgeAge(new Point(2, 4)));\n\t\tassertEquals(3, _knowledgeMapA.getLocationKnowledgeAge(new Point(2, 0)));\n\t\tassertEquals(4, _knowledgeMapA.getLocationKnowledgeAge(new Point(0, 2)));\n\t\tassertEquals(4, _knowledgeMapA.getLocationKnowledgeAge(new Point(3, 2)));\n\t\tassertEquals(4, _knowledgeMapA.getLocationKnowledgeAge(new Point(5, 2)));\n\t\tassertEquals(2, _knowledgeMapA.getLocationKnowledgeAge(new Point(6, 2)));\n\t\tassertEquals(6, _knowledgeMapA.getLocationKnowledgeAge(new Point(1, 2)));\n\n\t\tassertEquals(5, _knowledgeMapB.getLocationKnowledgeAge(new Point(2, 2)));\n\t\tassertEquals(3, _knowledgeMapB.getLocationKnowledgeAge(new Point(2, 3)));\n\t\tassertEquals(2, _knowledgeMapB.getLocationKnowledgeAge(new Point(2, 4)));\n\t\tassertEquals(3, _knowledgeMapB.getLocationKnowledgeAge(new Point(2, 0)));\n\t\tassertEquals(4, _knowledgeMapB.getLocationKnowledgeAge(new Point(0, 2)));\n\t\tassertEquals(4, _knowledgeMapB.getLocationKnowledgeAge(new Point(3, 2)));\n\t\tassertEquals(4, _knowledgeMapB.getLocationKnowledgeAge(new Point(5, 2)));\n\t\tassertEquals(2, _knowledgeMapB.getLocationKnowledgeAge(new Point(6, 2)));\n\t\tassertEquals(6, _knowledgeMapB.getLocationKnowledgeAge(new Point(1, 2)));\n\t}", "private void updateMaps()\n {\n double[][][] uppedMapsT = allTraitMaps;\n int place;\n double sum;\n\n places = new ArrayList<>();\n places.add(-1);//values are always above this, so all will be above this\n weights.put(-1, -1.0);\n\n for(int y = 0; y < size; y++)\n {\n for(int x = 0; x < size; x++)\n {//if we can use the value of the land\n if(valid.get(MapNode.createID(x, y)) < 2)\n {\n place = 0;\n sum = 0;\n\n for(int i = 0; i < traits.length; i++)\n {\n sum += uppedMapsT[traits[i]][y][x];\n }\n// System.out.println(sum + \":(\" + x + \", \" + y + \")\");\n //WORKS UP TO HERE\n weights.put(MapNode.createID(x, y), sum);\n\n while(weights.get(places.get(place)) > sum)\n {\n place++;\n }\n\n places.add(place, MapNode.createID(x, y));\n }//this else is for when the land cell is already in use, i.e. == 2\n else//if we can't make sure it won't get picked/ect.\n {\n// if(places.get(places.size()-1) == -1)\n// places.remove(-1);\n\n // places.add(MapNode.createID(x, y));\n weights.put(MapNode.createID(x, y), -1.0);\n }\n }\n }\n\n places.remove(places.size()-1);//the final object is of a value -1, i.e. not a land mass ect.\n }", "public void updateFields()\n\t{\n\t\tClass o=rmap.getClass();\n\n\t\tField[] fields = o.getDeclaredFields();\n\t\tfor (int z = 0; z < fields.length; z++)\n\t\t{\n\t\t\tfields[z].setAccessible(true);\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString name=fields[z].getName();\n\t\t\t\tMethod method = o.getMethod(\"get\"+name, null);\n\t\t\t\tObject returnValue = method.invoke(rmap, null);\n\t\t\t\tif(returnValue!=null)\n\t\t\t\t{\n\t\t\t\t\tRegion<Double,Double2D> region=((Region<Double,Double2D>)returnValue);\n\t\t\t\t\tif(name.contains(\"out\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(EntryAgent<Double2D> e: region.values())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tRemotePositionedAgent<Double2D> rm=e.r;\n\t\t\t\t\t\t\trm.setPos(e.l);\t\t \t\t\t\n\t\t\t\t\t\t\tthis.remove(rm);\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tif(name.contains(\"mine\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor(EntryAgent<Double2D> e: region.values())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRemotePositionedAgent<Double2D> rm=e.r;\n\t\t\t\t\t\t\t\tDouble2D loc=e.l;\n\t\t\t\t\t\t\t\trm.setPos(loc);\n\t\t\t\t\t\t\t\tthis.remove(rm);\n\t\t\t\t\t\t\t\tsm.schedule.scheduleOnce(rm);\n\t\t\t\t\t\t\t\tsetObjectLocation(rm,loc);\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}\n\t\t\t}\n\t\t\tcatch (IllegalArgumentException e){e.printStackTrace();} \n\t\t\tcatch (IllegalAccessException e) {e.printStackTrace();} \n\t\t\tcatch (SecurityException e) {e.printStackTrace();} \n\t\t\tcatch (NoSuchMethodException e) {e.printStackTrace();} \n\t\t\tcatch (InvocationTargetException e) {e.printStackTrace();}\n\t\t}\t \n\t}", "public static native void OpenMM_AmoebaMultipoleForce_setCovalentMap(PointerByReference target, int index, int typeId, PointerByReference covalentAtoms);", "private void connectComponents(Component sourcec, Component destc, Distance newdist, Vector candidates) {\n\n\t\t//if ((debug & 0x4) != 0) {\n//\n//\t\t\tTCSIO.printcluster(sourcec, Log);\n//\t\t\tTCSIO.printcluster(destc, Log);\n//\t\t}\n\n\t\tTaxaItem sourcet = (TaxaItem)alltaxa.get(newdist.source);\n\t\tTaxaItem destt = (TaxaItem)alltaxa.get(newdist.destination);\n\n\t\t// if we reach here, I think we are positive we made a connection\n\t\tgraphExists = true;\n\n\t\t// Now insert intermediate nodes and make the connections\n\t\tif (newdist.distance == 1) {\n\t\t\t// No intermediates needed\n\t\t\tsourcet.nbor.add(destt);\n\t\t\tdestt.nbor.add(sourcet);\n\t\t\taddLWEdge(sourcet, destt);\n\t\t} else {\n\t\t\tTaxaItem nextt = sourcet;\n\t\t\tint intermediates = newdist.distance;\n\t\t\t// compute the iupac consensus of the start and finish nodes, and insert put it into each internal node added\n\n\t\t\tchar[] consensus = Utils.getConsensus(sourcet, destt);\n\n\t\t\twhile (intermediates > 1) {\n\n\t\t\t\t// Insert intermediates\n\t\t\t\tintermediates--;\n\n\t\t\t\t// Add intermediate\n\t\t\t\t// [SW] FIXME this may be a good place to keep track of mapping characters\n\n\n\t\t\t\tTaxaItem newt = new TaxaItem(\"In\" + internalNodeNumber, 0, consensus);\n\t\t\t\t// TaxaItem newt = new TaxaItem(\"In\" + internalNodeNumber, 0, 0);\n\t\t\t\tnewt.isIntermediate = true;\n\n\t\t\t\tinternalNodeNumber++;\n\n\t\t\t\t//////////////jake add 02/07/01\n\t\t\t\talltaxa.add(newt);\n\t\t\t\tcandidates.add(newt);\n\t\t\t\tnewt.id = alltaxa.indexOf(newt);\n\n\t\t\t\t// Insert him into the source component\n\t\t\t\tsourcec.taxa.add(newt);\n\n\t\t\t\t// Make him my neighbor\n\t\t\t\tnextt.nbor.add(newt);\n\t\t\t\tnewt.nbor.add(nextt);\n\t\t\t\taddLWEdge(nextt, newt);\n\n\t\t\t\taddIntermediate(newt, nextt, destt, intermediates);\n\n\t\t\t\t// Move on to the next intermediate\n\t\t\t\tnextt = newt;\n\n\t\t\t\tif (intermediates == 1) {\n\n\t\t\t\t\t// This is the last intermediate in the chain\n\t\t\t\t\t// Now connect the last intermediate in the chain to the destination\n\t\t\t\t\tdestt.nbor.add(newt);\n\t\t\t\t\tnewt.nbor.add(destt);\n\t\t\t\t\taddLWEdge(newt, destt);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void map(LongWritable key, Text value, Context context)\n\t\tthrows IOException, InterruptedException\n\t{\n\t\t// Convert the value from Text to String \n\t\tString keyValueString = value.toString();\n\n\t\t// Parse the value to get Canopy Center and Data Point\n\t\tint tabPosition = keyValueString.indexOf(\"\\t\");\n\t\tDataPoint canopyCenter = new DataPoint(keyValueString.substring(0, tabPosition));\n\t\tDataPoint dataPoint = new DataPoint(keyValueString.substring(tabPosition + 1));\n\n\t\t// Get the list of k-Means Centroids in this Canopy\n\t\tArrayList<DataPoint> centroids = canopyCenterKCentroidsMap.get(canopyCenter);\n\t\tif(centroids != null)\n\t\t{\n\t\t\t// Set the minimum distance to the maximum value a double can hold and create\n\t\t\tdouble minDistance = Double.MAX_VALUE;\n\t\t\tint offset = -1;\n\n\t\t\tfor(int i = 0; i < centroids.size(); i++)\n\t\t\t{\n\t\t\t\tDataPoint centroid = centroids.get(i);\n\t\t\t\tdouble distance = dataPoint.complexDistance(centroid);\n\n\t\t\t\t// Check if the distance is less than the minimum distance found so far\n\t\t\t\tif(distance < minDistance)\n\t\t\t\t{\n\t\t\t\t\tminDistance = distance;\n\t\t\t\t\toffset = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontext.write(centroids.get(offset), dataPoint);\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'field767' field
public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField767() { field767 = null; fieldSetFlags()[767] = false; return this; }
[ "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField232() {\n field232 = null;\n fieldSetFlags()[232] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField987() {\n field987 = null;\n fieldSetFlags()[987] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField1072() {\n field1072 = null;\n fieldSetFlags()[1072] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField776() {\n field776 = null;\n fieldSetFlags()[776] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField787() {\n field787 = null;\n fieldSetFlags()[787] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField976() {\n field976 = null;\n fieldSetFlags()[976] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField771() {\n field771 = null;\n fieldSetFlags()[771] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField121() {\n field121 = null;\n fieldSetFlags()[121] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField123() {\n field123 = null;\n fieldSetFlags()[123] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField257() {\n field257 = null;\n fieldSetFlags()[257] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField647() {\n field647 = null;\n fieldSetFlags()[647] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField141() {\n field141 = null;\n fieldSetFlags()[141] = false;\n return this;\n }", "private void clear(TextField inputField) {\n\n inputField.clear(); // clear keyboard nextLine for enter key\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField888() {\n field888 = null;\n fieldSetFlags()[888] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField258() {\n field258 = null;\n fieldSetFlags()[258] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField783() {\n field783 = null;\n fieldSetFlags()[783] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField168() {\n field168 = null;\n fieldSetFlags()[168] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField146() {\n field146 = null;\n fieldSetFlags()[146] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField127() {\n field127 = null;\n fieldSetFlags()[127] = false;\n return this;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interpolates a String with the arguments defined in the given Map.
public static String interpolate(final String string, final Map<?, ?> variables) { return new MapVariableInterpolator(string, variables).toString(); }
[ "public String interpolate(String str)\n {\n PatternMatcherInput input = new PatternMatcherInput(str);\n Map keys = new HashMap();\n\n // map all found varaiable expressions with their environment variable...\n while (_matcher.contains(input, _variablesPattern))\n {\n MatchResult result = _matcher.getMatch();\n keys.put(result.group(0), (String)_variables.get(result.group(1)));\n }\n\n // ... and interpolate them\n for (Iterator i = keys.entrySet().iterator(); i.hasNext();)\n {\n Map.Entry entry = (Map.Entry)i.next();\n String value = (String)entry.getValue();\n\n // the value has to be set to be substituted\n if (value != null)\n {\n String key = (String)entry.getKey();\n Substitution substitution = new StringSubstitution(value);\n Pattern pattern = null;\n\n try\n {\n /**\n * @todo use a cache\n */\n pattern = REGEXP_COMPILER.compile(Perl5Compiler.quotemeta(key));\n }\n catch (MalformedPatternException ex)\n {\n continue;\n }\n\n str = Util.substitute(_matcher, pattern, substitution, str,\n Util.SUBSTITUTE_ALL);\n }\n }\n\n return str;\n }", "InternationalString createInternationalString(Map<Locale,String> strings);", "public String resolveVariables(Map<String, String> envMap, String input) {\n String result = input;\n if (input != null && input.trim().length() > 0) {\n Pattern pattern = Pattern.compile(\"\\\\$\\\\{[^}]*}\");\n Matcher matcher = pattern.matcher(result);\n while (matcher.find()) {\n String key = result.substring(matcher.start() + 2, matcher.end() - 1);\n if (envMap.containsKey(key)) {\n result = matcher.replaceFirst(Matcher.quoteReplacement(envMap.get(key)));\n matcher.reset(result);\n }\n }\n }\n\n return result;\n }", "String interpolate(String messageTemplate, Context context);", "public static String replacePlaceholders(String string, Map<String, Object> parameters) {\n for (Map.Entry<String, Object> parameter : parameters.entrySet()) {\n string = replacePlaceholder(string, parameter.getKey(), parameter.getValue());\n }\n\n return string;\n }", "@NonNull String interpolate(@NonNull String template, @NonNull MessageContext context);", "@SuppressWarnings({\"rawtypes\", \"unchecked\"})\n static String parse(final String query, final Map paramMap) {\n // I was originally using regular expressions, but they didn't work well for ignoring\n // parameter-like strings inside quotes.\n final int length = query.length();\n final 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 == ':'\n && 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 final 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 indexList = (List) paramMap.get(name);\n if (indexList == null) {\n indexList = new LinkedList();\n paramMap.put(name, indexList);\n }\n indexList.add(index);\n\n index++;\n }\n }\n parsedQuery.append(c);\n }\n\n // replace the lists of Integer objects with arrays of ints\n for (final Object o : paramMap.entrySet()) {\n final Map.Entry entry = (Map.Entry) o;\n final List list = (List) entry.getValue();\n final int[] indexes = new int[list.size()];\n int i = 0;\n for (final Object aList : list) {\n final Integer x = (Integer) aList;\n indexes[i++] = x;\n }\n entry.setValue(indexes);\n }\n\n return parsedQuery.toString();\n }", "Options substitutions(Map<String, String> substitutions);", "static String parse(String query, Map paramMap) {\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 && 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 indexList = (List) paramMap.get(name);\n if (indexList == null) {\n indexList = new LinkedList();\n paramMap.put(name, indexList);\n }\n indexList.add(index);\n\n index++;\n }\n }\n parsedQuery.append(c);\n }\n\n // replace the lists of Integer objects with arrays of ints\n for (Object o : paramMap.entrySet()) {\n Map.Entry entry = (Map.Entry) o;\n List list = (List) entry.getValue();\n int[] indexes = new int[list.size()];\n int i = 0;\n for (Object o1 : list) {\n Integer x = (Integer) o1;\n indexes[i++] = x;\n }\n entry.setValue(indexes);\n }\n\n return parsedQuery.toString();\n }", "private void appendMap(StringBuilder strBuilder, Map<String, String> map) {\n strBuilder.append(\"(\");\n for (Map.Entry<String, String> entry : map.entrySet()) {\n strBuilder.append(\"'\")\n .append(entry.getKey().replaceAll(\"'\", \"\\\\\\\\'\"))\n .append(\"'='\")\n .append(entry.getValue().replaceAll(\"'\", \"\\\\\\\\'\"))\n .append(\"', \");\n }\n // remove trailing \", \"\n strBuilder.deleteCharAt(strBuilder.length() - 1)\n .deleteCharAt(strBuilder.length() - 1)\n .append(\")\");\n }", "String translateAndFormat(String contest, String lang, String string2, Object... args);", "String interpolate(String messageTemplate, Context context, GwtLocale locale);", "public static String populateParamValues(String text, Map<String, String> parameters) {\n if(MapUtils.isEmpty(parameters) || StringUtils.isEmpty(text)){\n return text;\n }\n List<String> searchList = new ArrayList<String>(parameters.keySet().size());\n List<String> replacementList = new ArrayList<String>(parameters.keySet().size());\n for (String key : parameters.keySet()) {\n searchList.add(String.format(PARAM_FORMAT, key));\n replacementList.add(parameters.get(key));\n }\n return org.apache.commons.lang.StringUtils.replaceEach(text, searchList.toArray(new String[searchList.size()]),\n replacementList.toArray(new String[replacementList.size()]));\n }", "private String makeLineWithSafeSubstitutions(\n\t\t\tMap<String, String> substitution_map, String line) {\n\t\tassert(substitution_map != null && line != null);\n\t\t\n\t\t// performance optimisation\n\t\tif (line.indexOf('@') < 0)\n\t\t\treturn line;\n\t\t\n\t\t// otherwise we regex...\n\t\tPattern p = Pattern.compile(\"@(\\\\w+)@\");\n\t\tMatcher m = p.matcher(line);\n\t\tString ret = new String(line);\n\t\twhile (m.find()) {\n\t\t\tString key = m.group(1);\n\t\t\tif (substitution_map.containsKey(key)) {\n\t\t\t\tret = ret.replaceAll(\"@\"+key+\"@\", StringEscapeUtils.escapeXml(substitution_map.get(key)));\n\t\t\t} else {\n\t\t\t\t// KEY not in map... we could throw but for now we are silent in case the SVG has @'s in them...\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public String format(final String message, Map<String,?> values) {\n\t\tif (message == null || message.isEmpty() || values == null || values.isEmpty()) {\n\t\t\treturn message;\n\t\t}\n\t\t// build an en-quoted set of the given keys.\n\t\tfinal Set<String> quotedKeys = values.keySet().stream().map(Pattern::quote).collect(Collectors.toSet());\n\n\t\t// search for all placeholders in the given template and replace them. - This matcher allows only to take action for found placeholders.\n\t\tfinal Matcher matcher = Pattern.compile(Pattern.quote(delimiterStart) + \"(\" + String.join(\"|\", quotedKeys) + \")\" + Pattern.quote(delimiterEnd)).matcher(message);\n\n\t\tStringBuffer sb = new StringBuffer();\n\t\twhile (matcher.find()) {\n\t\t\tString matchedPlaceholderKey = matcher.group(1);\n\t\t\tObject matchedPlaceholderValue = values.get(matchedPlaceholderKey);\n\t\t\tif (matchedPlaceholderValue != null) {\n\t\t\t\tmatcher.appendReplacement(sb, Matcher.quoteReplacement(matchedPlaceholderValue.toString()));\n\t\t\t}\n\t\t}\n\t\tmatcher.appendTail(sb);\n\t\treturn sb.toString();\n\t}", "public Map<Formal, Actual> substitutions();", "private static void mapReplace(@Nonnull final StringBuilder sb, @Nonnull final LinkedHashMap<String, String> map,\r\n final FormatFunction f) {\r\n int indexOf = 0;\r\n for (final Entry<String, String> entry : map.entrySet()) {\r\n final String key = entry.getKey();\r\n final String value = f.format(entry.getValue());\r\n while ((indexOf = sb.indexOf(key, indexOf)) > -1) {\r\n sb.replace(indexOf, indexOf + key.length(), value);\r\n indexOf += value.length();\r\n }\r\n }\r\n }", "static private String replaceStringWithClass(String inStr, Map<String,String> convertMap){\r\n\t\tStringBuffer outStr = new StringBuffer();\r\n\t\tString[] words = inStr.split(\"\\\\s+\");\r\n\t\tfor(int i=0; i<words.length; i++){\r\n\t\t\tString newWord = convertWord(words[i], convertMap);\r\n\t\t\toutStr.append(newWord);\r\n\t\t\tif(i<words.length-1){\r\n\t\t\t\toutStr.append(\" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(inStr + \" === \" + outStr.toString() );\r\n\t\treturn outStr.toString();\r\n\t}", "private String groundVars(String s, HashMap<String,String> vars, Call c)\n {\n String assignments = \"\";\n boolean first = true;\n for (HashMap.Entry<String, String> entry : vars.entrySet()) \n {\n String key = entry.getKey();\n Object value = entry.getValue();\n if(!first)\n {\n assignments = assignments + \",\";\n } else first = false;\n assignments = assignments + key + \"=\" + value;\n }\n return s.replace(c.callString,assignments);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
bool file_err = 5;
boolean getFileErr();
[ "public Boolean getIserr() {\r\n return iserr;\r\n }", "public int errorCheck() {\r\n return errorFlag;\r\n }", "public boolean hasStreamFailed() {\n return fieldSetFlags()[6];\n }", "public boolean getLogErrStat() {\n\t\treturn ((read(new File(pathToLogErr)).equals(\"\")) ? true : false);\n\t}", "public boolean fileIsValid() throws IOException {\n return false; \n }", "public void setIserr(Boolean iserr) {\r\n this.iserr = iserr;\r\n }", "public boolean isError() { return error; }", "public boolean errors() {\n\treturn semantErrors != 0;\n }", "boolean getIsError();", "String hasError();", "public boolean isError() {\n\t\treturn this == RF_ERROR;\n\t}", "public boolean fileSizeInvalid() {\n\t\treturn fileSizeInvalid;\n\t}", "public boolean isFileTooLong() {\r\n\t\treturn fileTooLong;\r\n\t}", "public boolean getError(){\n\t\treturn error;\n\t}", "public synchronized boolean isFailed() {\n\t\treturn isStateError() || (exitValue != 0) || !checkOutputFiles().isEmpty();\n\t}", "public void setFailed() {\n \t\tfailed = true;\n \t}", "boolean isFailed();", "public boolean hasError();", "public boolean isErrored() {\n return errored;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert Month MM Name to Integer Number
public String convertMonthNameToNumAsString(String name) { String month = null; name = name.substring(0,3); if (name.equals("Jan")) { month = "01"; } if (name.equals("Feb")) { month = "02"; } if (name.equals("Mar")) { month = "03"; } if (name.equals("Apr")) { month = "04"; } if (name.equals("May")) { month = "05"; } if (name.equals("Jun")) { month = "06"; } if (name.equals("Jul")) { month = "07"; } if (name.equals("Aug")) { month = "08"; } if (name.equals("Sep")) { month = "09"; } if (name.equals("Oct")) { month = "10"; } if (name.equals("Nov")) { month = "11"; } if (name.equals("Dec")) { month = "12"; } return month; }
[ "public int convertMonthNameToNumAsInt(String name) {\n\t\t int month = 0;\n\t\t name = name.substring(0,3);\n\t\t if (name.equals(\"Jan\")) { month = 1; }\n\t\t if (name.equals(\"Feb\")) { month = 2; }\n\t\t if (name.equals(\"Mar\")) { month = 3; }\n\t\t if (name.equals(\"Apr\")) { month = 4; }\n\t\t if (name.equals(\"May\")) { month = 5; }\n\t\t if (name.equals(\"Jun\")) { month = 6; }\n\t\t if (name.equals(\"Jul\")) { month = 7; }\n\t\t if (name.equals(\"Aug\")) { month = 8; }\n\t\t if (name.equals(\"Sep\")) { month = 9; }\n\t\t if (name.equals(\"Oct\")) { month = 10; }\n\t\t if (name.equals(\"Nov\")) { month = 11; }\n\t\t if (name.equals(\"Dec\")) { month = 12; }\n\t\t \treturn month;\n\t\t\t}", "public String month2MM(String monthName);", "public static int getMonth(){\r\n\t\tint val = read(month);\r\n\t\treturn (val & 0xF) + (val >> 4) * 10;\r\n\t}", "public static int getSystemMonth() {\n return Integer.parseInt(getFormattedDate(\"MM\", System.currentTimeMillis()));\n }", "private void changeStringMonthToInt()\r\n { \r\n switch(month)\r\n {\r\n case \"January\":\r\n month =\"1\";\r\n break;\r\n case \"February\":\r\n month =\"2\"; \r\n break;\r\n case \"March\":\r\n month =\"3\"; \r\n break;\r\n case \"April\":\r\n month =\"4\"; \r\n break; \r\n case \"May\":\r\n month =\"5\"; \r\n break;\r\n case \"June\":\r\n month =\"6\"; \r\n break;\r\n case \"July\":\r\n month =\"7\"; \r\n break; \r\n case \"August\":\r\n month =\"8\"; \r\n break;\r\n case \"September\":\r\n month =\"9\"; \r\n break;\r\n case \"Octuber\":\r\n month =\"10\"; \r\n break; \r\n case \"November\":\r\n month =\"11\"; \r\n break;\r\n case \"December\":\r\n month =\"12\"; \r\n break;\r\n }\r\n }", "public String convertMonthToDigit(String newMonth){\n switch(newMonth){\n case \"January\":\n newMonth = \"01\";\n break;\n case \"February\":\n newMonth = \"02\";\n break;\n case \"March\":\n newMonth = \"03\";\n break;\n case \"April\":\n newMonth = \"04\";\n break;\n case \"May\":\n newMonth = \"05\";\n break;\n case \"June\":\n newMonth = \"06\";\n break;\n case \"July\":\n newMonth = \"07\";\n break;\n case \"August\":\n newMonth = \"08\";\n break;\n case \"September\":\n newMonth = \"09\";\n break;\n case \"October\":\n newMonth = \"10\";\n break;\n case \"November\":\n newMonth = \"11\";\n break;\n case \"December\":\n newMonth = \"12\";\n break; \n default:\n break;\n }\n \n return newMonth;\n }", "public String convertMonthNumToName(int month) {\n\t\t\t\treturn new DateFormatSymbols().getMonths()[month-1];\n\t\t\t}", "public String intToMonth(int a)\r\n {\r\n if(a==1)return \"Januray\";\r\n else if(a==2)return \"February\";\r\n else if(a==3)return \"March\";\r\n else if(a==4)return \"April\";\r\n else if(a==5)return \"May\";\r\n else if(a==6)return \"June\";\r\n else if(a==7)return \"July\";\r\n else if(a==8)return \"August\";\r\n else if(a==9)return \"September\";\r\n else if(a==10)return \"October\";\r\n else if(a==11)return \"November\";\r\n else if(a==12)return \"December\";\r\n else return \"\";\r\n }", "public static String nameOfMonthByNumber() {\n System.out.println(\"Enter number of month:\");\n String month;\n int numberOfMonth = Integer.valueOf(Reader.readFromConsol(Reader.get()));\n\n switch (numberOfMonth) {\n case 1 : month = Month.JANUARY.getNameOfMonth();\n break;\n case 2 : month = Month.FEBRYARY.getNameOfMonth();\n break;\n case 3 : month = Month.MARCH.getNameOfMonth();\n break;\n case 4 : month = Month.APRIL.getNameOfMonth();\n break;\n case 5 : month = Month.MAY.getNameOfMonth();\n break;\n case 6 : month = Month.JUNE.getNameOfMonth();\n break;\n case 7 : month = Month.JULY.getNameOfMonth();\n break;\n case 8 : month = Month.AUGUST.getNameOfMonth();\n break;\n case 9 : month = Month.SEPTEMBER.getNameOfMonth();\n break;\n case 10 : month = Month.OKROBER.getNameOfMonth();\n break;\n case 11 : month = Month.NOVEMBER.getNameOfMonth();\n break;\n case 12 : month = Month.DECEMBER.getNameOfMonth();\n break;\n default : throw new IllegalArgumentException(\"Invalid number of month.\");\n }\n return month;\n }", "public static int monthStringToInt(String month){\n\t\t\n\t\tswitch(month){\n\t\t\t\n\t\t\tcase \"January\":\n\t\t\t\treturn 1;\n\t\t\tcase \"February\":\n\t\t\t\treturn 2;\n\t\t\tcase \"March\":\n\t\t\t\treturn 3;\n\t\t\tcase \"April\":\n\t\t\t\treturn 4;\n\t\t\tcase \"May\":\n\t\t\t\treturn 5;\n\t\t\tcase \"June\":\n\t\t\t\treturn 6;\n\t\t\tcase \"July\":\n\t\t\t\treturn 7;\n\t\t\tcase \"August\":\n\t\t\t\treturn 8;\n\t\t\tcase \"September\":\n\t\t\t\treturn 8;\n\t\t\tcase \"October\":\n\t\t\t\treturn 10;\n\t\t\tcase \"November\":\n\t\t\t\treturn 11;\n\t\t\tcase \"December\":\n\t\t\t\treturn 12;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\treturn 0;\n\t\t}\n\t}", "private String convertMonth(int aMonth)\n {\n if (aMonth == 0)\n return \"January\";\n else if (aMonth == 1)\n return \"February\";\n else if (aMonth == 2)\n return \"March\";\n else if (aMonth == 3)\n return \"April\";\n else if (aMonth == 4)\n return \"May\";\n else if (aMonth == 5)\n return \"June\";\n else if (aMonth == 6)\n return \"July\";\n else if (aMonth == 7)\n return \"August\";\n else if (aMonth == 8)\n return \"September\";\n else if (aMonth == 9)\n return \"October\";\n else if (aMonth == 10)\n return \"November\";\n else if (aMonth == 11)\n return \"December\";\n else\n return \"Invalid Entry\";\n }", "public String getNormalizedMonth() {\n int month = this.get(Calendar.MONTH)+1; // Zero-based, so add 1\n return toZeroPrefixed(month);\n }", "int getMonth();", "public int monthToIntMonth(String[] monthTokens, int idx) {\n if (monthTokens[idx].toLowerCase().trim().equals(\"january\")) {\n return 1;\n } else if (monthTokens[idx].toLowerCase().trim().equals(\"february\")) {\n return 2;\n } else if (monthTokens[idx].toLowerCase().trim().equals(\"march\")) {\n return 3;\n } else if (monthTokens[idx].toLowerCase().trim().equals(\"april\")) {\n return 4;\n } else if (monthTokens[idx].toLowerCase().trim().equals(\"may\")) {\n return 5;\n } else if (monthTokens[idx].toLowerCase().trim().equals(\"june\")) {\n return 6;\n } else if (monthTokens[idx].toLowerCase().trim().equals(\"july\")) {\n return 7;\n } else if (monthTokens[idx].toLowerCase().trim().equals(\"august\")) {\n return 8;\n } else if (monthTokens[idx].toLowerCase().trim().equals(\"september\")) {\n return 9;\n } else if (monthTokens[idx].toLowerCase().trim().equals(\"october\")) {\n return 10;\n } else if (monthTokens[idx].toLowerCase().trim().equals(\"november\")) {\n return 11;\n } else if (monthTokens[idx].toLowerCase().trim().equals(\"december\")) {\n return 12;\n } else {\n return 0;\n }\n }", "public static int getMonth(Date inDate)\r\n\t{\r\n\t\tif(inDate != null){\r\n\t\t dateFormat.applyLocalizedPattern(\"MM\");\r\n\t\t\treturn Integer.parseInt(dateFormat.format(inDate));\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "private int getMonthNumFromMonthCode(String monthCode){\n\t\tfor(int i = 0;i<MONTH_CODES_REGULAR.length;i++){\n\t\t\tif(MONTH_CODES_REGULAR[i].compareTo(monthCode)==0){\n\t\t\t\treturn i+1;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "@Test\n\tvoid teststringtoint(){\n\t\tCalendar cal=Calendar.getInstance();\n\t\tint m=cal.get(Calendar.MONTH);\n\t\tint d=cal.get(Calendar.DATE);\n\t\tSystem.out.println(\"m==\"+m+\" d==\"+d);\n\t}", "int extractMonth(double dateNum) { return ((int)dateNum % 10000) / 100; }", "int extractMonth(double dateNum) \n\t{\n\t\treturn ((int) dateNum % 10000) / 100;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column AMS.T_CM_MAC.ADD_MOVE_FEE
public Integer getAddMoveFee() { return addMoveFee; }
[ "public Integer getAddMacFee() {\r\n return addMacFee;\r\n }", "public Integer getAddCheckFee() {\r\n return addCheckFee;\r\n }", "public BigDecimal getLBR_DIFAL_TaxAmtICMSUFDest();", "public void setAddMoveFee(Integer addMoveFee) {\r\n this.addMoveFee = addMoveFee;\r\n }", "public Integer getAddTimeFee() {\r\n return addTimeFee;\r\n }", "public Number getAddPriceFob() {\n return (Number)getAttributeInternal(ADDPRICEFOB);\n }", "public BigDecimal getAddAmount() {\n\t\treturn addAmount;\n\t}", "public BigDecimal getFC_AMOUNT() {\r\n return FC_AMOUNT;\r\n }", "BigDecimal getActivationOffset();", "public Number getAddDeductCost() {\n return (Number)getAttributeInternal(ADDDEDUCTCOST);\n }", "public Integer getAddmbpscost() {\r\n return addmbpscost;\r\n }", "public BigDecimal getCalculateAmt() {\n return calculateAmt;\n }", "public void setAddMacFee(Integer addMacFee) {\r\n this.addMacFee = addMacFee;\r\n }", "public Double getTotalBuyFee() {\r\n return totalBuyFee;\r\n }", "java.math.BigDecimal getTotalDebit();", "public BigDecimal getAMOUNT_NEW() {\r\n return AMOUNT_NEW;\r\n }", "public Integer getAddbakcost() {\r\n return addbakcost;\r\n }", "public java.math.BigDecimal getTotalAP() \r\n {\r\n return get_ValueAsBigDecimal(\"TotalAP\");\r\n \r\n }", "public BigDecimal getLBR_DIFAL_TaxRateICMSUFDest();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this method shows the smallInfoBox with some details about the Spot
public void showDetailsSmall(BeerSpot spot) { FragmentTransaction ft = getFragmentManager().beginTransaction(); Fragment newFragment = MapSpotDetailsSmall.newInstance(spot, googleMap.getMyLocation()); ft.replace(R.id.infoContainer, newFragment); infoBoxSmall_frame.setTag("showDetailSmall"); ft.commit(); }
[ "public void displaySquareDetails() {\r\n\t\tsuper.displaySquareDetails();\r\n\t}", "protected void showInfo() {\n String text =\n \"This application is part of deegree.\\n\"\n + \"http://deegree.sourceforge.net\\n\\n\"\n + \"lat/lon\"\n + \"Fitzke/Fretter/Poth GbR\\n\"\n + \"Aennchenstr. 19\\n\"\n + \"53115 Bonn\\n\"\n + \"Tel 0228 - 73 28 38\\n\"\n + \"Fax 0228 - 73 21 53\\n\"\n + \"e-mail: info@lat-lon.de\";\n JOptionPane.showMessageDialog(\n this,\n text,\n \"Information\",\n JOptionPane.INFORMATION_MESSAGE);\n }", "public void showInfo() {\n infoPanel.setVisible(true);\n infoPanel.requestFocus();\n showQuitScreen();\n }", "private void showInsertInfo() {\n Image image = new Image(getClass().getResourceAsStream(Path.INFO_ICON));\n ImageView imageView = new ImageView();\n imageView.setImage(image);\n imageView.setFitHeight(30);\n imageView.setFitWidth(30);\n imageView.setPreserveRatio(true);\n imageView.setPickOnBounds(true);\n imageHolderLabel.setContentDisplay(ContentDisplay.GRAPHIC_ONLY);\n imageHolderLabel.setGraphic(imageView);\n Tooltip imageToolTip = new Tooltip();\n if (controller.getDataType() instanceof Airline) {\n imageToolTip.setGraphic(new ImageView(new Image(Path.AIRLINE_FORMAT)));\n imageHolderLabel.setTooltip(imageToolTip);\n } else if (controller.getDataType() instanceof Airport) {\n imageToolTip.setGraphic(new ImageView(new Image(Path.AIRPORT_FORMAT)));\n imageHolderLabel.setTooltip(imageToolTip);\n } else if (controller.getDataType() instanceof Route) {\n imageToolTip.setGraphic(new ImageView(new Image(Path.ROUTE_FORMAT)));\n imageHolderLabel.setTooltip(imageToolTip);\n } else {\n imageHolderLabel.setTooltip(new Tooltip(\"See Flightplandatabase.org for file format\"));\n }\n }", "private void displayInfo() {\r\n messageArea.setText(\"\");\r\n locLabel.setText(\"\");\r\n diceLabel.setText(\"\");\r\n propModel.removeAllElements();\r\n if (player.isBankrupt()) {\r\n cashLabel.setText(\"BANKROET\");\r\n propList.setEnabled(false);\r\n } else {\r\n cashLabel.setText(\"Cash: \" + player.getCash());\r\n locLabel.setText(\"Location: \" + player.getLocation().getName());\r\n if (player.hasTurn()) {\r\n String same = \"\";\r\n if (player.getCup().equalValues()) {\r\n same = \" (double)\";\r\n }\r\n diceLabel.setText(\"Dobbelstenen: \" + player.getCup().getTotal() + same);\r\n }\r\n // refill property list\r\n for (PropertySquare psq : player.getProperties()) {\r\n propModel.addElement(psq);\r\n }\r\n }\r\n }", "public void initInfo() {\r\n\tinfoBoxHeader = lang.newText(new Coordinates(300, 50), infoText[0],\r\n\t\t\"infoBoxHeader\", null, headerProps);\r\n\r\n\tString[][] infoData = new String[][] { { \"Team:\", \"?\", \"?\" },\r\n\t\t{ infoText[1], \"?\", \"?\", }, { infoText[2], \"?\", \"?\", },\r\n\t\t{ \"S:\", \"?\", \"?\", }, { infoText[3], \"?\", \"?\", } };\r\n\tinfoBox = lang.newStringMatrix(matrix.getUpperLeft(), infoData, \"\",\r\n\t\tnull, matrixProps);\r\n\tinfoBox.moveBy(\"translate\", 200, -5, null, null);\r\n\r\n\tOffset offsetLeft = new Offset(-5, -5, infoBox,\r\n\t\tAnimalScript.DIRECTION_NW);\r\n\tOffset offsetRight = new Offset(100, 25, infoBox,\r\n\t\tAnimalScript.DIRECTION_SE);\r\n\trectProps.set(AnimationPropertiesKeys.FILLED_PROPERTY, false);\r\n\tinfoBoundingBox = lang.newRect(offsetLeft, offsetRight,\r\n\t\t\"infoBoundingBox\", null, rectProps);\r\n\tinfoBoundingBox.moveBy(\"translate\", 200, -5, null, null);\r\n }", "public void showSpotsCountSmall(int spotsCount, int favCount)\n {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n Fragment newFragment = MapSpotsCountFragment.newInstance(spotsCount,favCount);\n ft.replace(R.id.infoContainer, newFragment);\n infoBoxSmall_frame.setTag(\"spotsCount\");\n ft.commit();\n }", "public void aboutinfo() {\n\t\t// info.setText(\"Game created by Academy Math Games Team. Menu created by Roland Fong and David Schildkraut.\");\n\t\tcarda.setVisible(false);\n\t\tcardb.setVisible(false);\n\t\tcardc.setVisible(true);\n\t\tcardd.setVisible(false);\n\t\t// JOptionPane.showMessageDialog(this, \"Game created by Academy Math Games Team. Menu created by Roland Fong and David Schildkraut.\");\n\t}", "public void displaySongInfo() {\n\t\tSystem.out.println(\"Track number: \" + this.trackNumber + \"\\n\");\n\t\tSystem.out.println(\"Title: \" + this.songTitle + \"\\n\");\n\t\tSystem.out.println(\"Composer_Name: \" + this.composerName + \"\\n\");\n\t\tSystem.out.println(\"Voices: \" + this.voiceMap.keySet() + \"\\n\");\n\t\tSystem.out.println(\"Meter: \" + this.meter + \"\\n\");\n\t\tSystem.out.println(\"Default note length: \" + this.Length_Default + \"\\n\");\n\t\tSystem.out.println(\"Tempo: \" + this.tempo + \"\\n\");\n\t\tSystem.out.println(\"Key signature: \" + this.key + \"\\n\");\n\t}", "public void showInfoAndCards() {\n \t\tm_view.DisplayWelcomeMessage();\n \t\tm_view.DisplayDealerHand(m_game.GetDealerHand(), m_game.GetDealerScore());\n \t\tm_view.DisplayPlayerHand(m_game.GetPlayerHand(), m_game.GetPlayerScore());\n \t}", "public void showInfo() {\r\n\t\tstreetName.setText(user.getAddress().getStreetAddress());\r\n\t\thouseNumber.setText(user.getAddress().getHouseNumber());\r\n\t\tcity.setText(user.getAddress().getCity());\r\n\t\tstate.setText(user.getAddress().getState());\r\n\t\tcountry.setText(user.getAddress().getCountry());\r\n\r\n\t\tfirstName.setText(user.getName().getFirstName());\r\n\t\tlastName.setText(user.getName().getLastName());\r\n\t\tusername.setText(user.getUsername());\r\n\t\tpassword.setText(user.getPassword());\r\n\t\temail.setText(user.getEmail());\r\n\r\n\t\tObservableList<Invoice> items = FXCollections.observableArrayList(user.getInvoiceLog().values());\r\n\t\tlistView.getItems().setAll(items);\r\n\t}", "private void Info(){\n\n level.setText(\"level: \"+arena.getLevel());\n level.setFont(new Font(Font.SERIF, Font.PLAIN, 20));\n level.setBounds(w-3*WP, 2, 200, 50);\n\n time.setText(\"time: \"+(arena.gatGame().timeToEnd()/1000));\n time.setFont(new Font(Font.SERIF, Font.PLAIN, 20));\n time.setBounds(w-2*WP, 2, 200, 50);\n\n// int grade = jsonToObject.score(arena.gatGame().toString());\n score.setFont(new Font(Font.SERIF, Font.PLAIN, 20));\n score.setBounds(WP-5, 2, 200, 50);\n\n int moving = jsonToObject.moves(arena.gatGame().toString());\n moves.setText(\"moves: \"+moving);\n moves.setFont(new Font(Font.SERIF, Font.PLAIN, 20));\n moves.setBounds(2*WP, 2, 200, 50);\n }", "private void displaySpot(int x, int y) {\n ImageProcessor proc = new ByteProcessor(slmWidth_, slmHeight_);\n proc.setColor(Color.black);\n proc.fill();\n proc.setColor(Color.white);\n fillSpot(proc, x, y, spotDiameter_);\n try {\n mmc_.setSLMImage(slm_, (byte[]) proc.getPixels());\n mmc_.displaySLMImage(slm_);\n if (externalShutter_ != null) {\n mmc_.setShutterOpen(externalShutter_, true);\n Thread.sleep(getExposure() / 1000);\n mmc_.setShutterOpen(externalShutter_, false);\n }\n } catch (Exception e) {\n app_.logs().showError(\"SLM not connecting properly.\");\n }\n }", "public void diplayTownInfo()\n\t{\n\t\tSystem.out.println(\"Welcome to \" + townName);\n\t\tSystem.out.println(\"Visit the \" + museum.getName() + \" of \" + museum.getType());\n\t}", "public static void p_show_info_program() {\n System.out.println(\"------------------------------------------------------------------\");\r\n System.out.println(\"! SOFT-HEIGHT VERSION 1,0 !\");\r\n System.out.println(\"! MAKERS: Miguel Andres Diaz,Juan Villamil, Daniela Vargas !\");\r\n System.out.println(\"! Date: 25 march 2021 !\");\r\n System.out.println(\"------------------------------------------------------------------\");\r\n }", "public void helpInfo() {\n//\t\tinfo.setText(\"Help goes here. We need help to get the correct text here. Thank you for helping us out. - The Math Games Team\");\n\t\tcarda.setVisible(false);\n\t\tcardb.setVisible(true);\n\t\tcardc.setVisible(false);\n\t\tcardd.setVisible(false);\n\t\t//JOptionPane.showMessageDialog(this, \"We need help in putting something that is worthwhile in this box.\");\n\t}", "public native void show(GInfoWindow self)/*-{\r\n\t\tself.show();\r\n\t}-*/;", "public InfoBox getInfoBox();", "private void showHikeInfoFrame(HashMap<String, String> hikeInfo) {\n hikeInfoFrame = new HikeInfoFrame(hikeInfo);\n hikeInfoFrame.setVisible(true);\n this.setVisible(false);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This Rest End point will fetch the Employee by its code
@GetMapping("/byCode/{empCode}") public ResponseEntity<EmployeeMasterDetails> getByEmpCode(@PathVariable String empCode) { return ResponseEntity.ok(employeeMasterService.findByCode(empCode)) ; }
[ "@RequestMapping(value = \"/instEmployees/getEmplInfoByCode/{code}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<InstEmployee> getEmplInfoByCode(@PathVariable String code)\n throws URISyntaxException {\n return Optional.ofNullable(instEmployeeRepository.findEmplInfoBycode(code))\n .map(dlBookInfo -> new ResponseEntity<>(\n dlBookInfo,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "public Employeedetails getEmployeeDetailByName(String employeeId);", "@RequestMapping(value = \"/timescaleApplications/instEmployee/{code:.+}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<TimeScaleApplication> getTimeScaleApplicationByEmployeeCode(@PathVariable String code)\n throws Exception {\n\n TimeScaleApplication application = timeScaleApplicationRepository.findByInstEmployeeCode(code);\n String filepath=\"/backup/teacher_info/\";\n\n if(application != null && application.getDisActionFileName() != null) {\n if(AttachmentUtil.retriveAttachment(filepath, application.getDisActionFileName()) != null){\n application.setDisActionFile(AttachmentUtil.retriveAttachment(filepath, application.getDisActionFileName()));\n }\n }\n return Optional.ofNullable(application)\n .map(mpoApplication -> new ResponseEntity<>(\n mpoApplication,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NO_CONTENT));\n /* MpoApplication mpoApplication = mpoApplicationRepository.findByInstEmployeeCode(code);\n return mpoApplication;*/\n\n }", "public Employee getEmployeeByID(String empoyeeID);", "cn.kungreat.netty.domain.Company.Employee getEmployee();", "public Employee getByEmail(String email);", "Employee getEmployeeById(Long id);", "Employee getEmployee(int id);", "List<Employee> getEmployeeByCompanyId(Integer companyId);", "Employee getEmployee(Long id);", "@GetMapping(\"/employees\")\r\n\tpublic List<Employee> getEmployees(){\r\n\t\t\r\n\t\treturn employeeService.getEmployees();\r\n\t\t\r\n\t}", "@GetMapping(value=\"/searchEmpData/{fname}\")\n\tpublic List<Employee> getEmployeeByName(@PathVariable (value = \"fname\") String fname)\n\t{\n\t\treturn integrationClient.getEmployees(fname);\n\t}", "public java.lang.String getEmployeeCode() {\n return employeeCode;\n }", "public Employee findEmployee(Long id);", "public java.lang.String getEmployeeCode() {\n return employeeCode;\n }", "@RequestMapping(value = \"/employee/{empId}\", method = RequestMethod.GET)\r\n\tpublic Employee getEmployeedetails(@PathVariable int empId) throws EmployeeMaintainceException {\r\n\t\ttry {\r\n\t\t\treturn eService.getEmployee(empId);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new EmployeeMaintainceException(204, e.getMessage());\r\n\t\t}\r\n\t}", "Employee getEmployeeByName(String name);", "public void setEmployeeCode(String employeeCode) {\n this.employeeCode = employeeCode;\n }", "public EmployeeResponse getById(int id) throws EmployeeNotFoundException {\n\n Optional<Employee> result=employeeRepository.findById(id);\n if (result.isPresent()){\n EmployeeResponse response=new EmployeeResponse();\n response.setId(result.get().getId());\n response.setName(result.get().getName());\n return response;\n }\n\n throw new EmployeeNotFoundException(\"Employee not found id=\"+id);\n// return response;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column CTSCARDS_MGT_HST.DATE_RENEW_INIT
public void setDATE_RENEW_INIT(Date DATE_RENEW_INIT) { this.DATE_RENEW_INIT = DATE_RENEW_INIT; }
[ "public Date getDATE_RENEW_INIT() {\r\n return DATE_RENEW_INIT;\r\n }", "public void setDATE_REPLACED_INIT(Date DATE_REPLACED_INIT) {\r\n this.DATE_REPLACED_INIT = DATE_REPLACED_INIT;\r\n }", "public Date getDATE_REPLACED_INIT() {\r\n return DATE_REPLACED_INIT;\r\n }", "public void setDATE_MONITORED_INIT(Date DATE_MONITORED_INIT) {\r\n this.DATE_MONITORED_INIT = DATE_MONITORED_INIT;\r\n }", "public void setDATE_HEATED_INIT(Date DATE_HEATED_INIT) {\r\n this.DATE_HEATED_INIT = DATE_HEATED_INIT;\r\n }", "public void setInit_date(Integer init_date) {\n this.init_date = init_date;\n }", "public void setNextRecalculationTime(java.util.Date value);", "public void setDATE_RENEWED(Date DATE_RENEWED) {\r\n this.DATE_RENEWED = DATE_RENEWED;\r\n }", "public void setLastRenewDate(Date lastRenewDate);", "public void setRegdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.regdate != null && (newVal.compareTo(this.regdate) == 0)) || \n (newVal == null && this.regdate == null && regdate_is_initialized)) {\n return; \n } \n this.regdate = newVal; \n regdate_is_modified = true; \n regdate_is_initialized = true; \n }", "public void setSERVER_REVERSED_DATE(Date SERVER_REVERSED_DATE)\r\n {\r\n\tthis.SERVER_REVERSED_DATE = SERVER_REVERSED_DATE;\r\n }", "public void setRENEW_INIT(String RENEW_INIT) {\r\n this.RENEW_INIT = RENEW_INIT == null ? null : RENEW_INIT.trim();\r\n }", "public void setRegistDt(Date registDt) {\n this.registDt = registDt;\n }", "public void setDATE_ISSUED_INIT(Date DATE_ISSUED_INIT) {\r\n this.DATE_ISSUED_INIT = DATE_ISSUED_INIT;\r\n }", "public Date getDATE_RENEWED() {\r\n return DATE_RENEWED;\r\n }", "public void setDATE_DESTROYED_INIT(Date DATE_DESTROYED_INIT) {\r\n this.DATE_DESTROYED_INIT = DATE_DESTROYED_INIT;\r\n }", "public void setDATE_ACTIVATED_INIT(Date DATE_ACTIVATED_INIT) {\r\n this.DATE_ACTIVATED_INIT = DATE_ACTIVATED_INIT;\r\n }", "public Date getDATE_HEATED_INIT() {\r\n return DATE_HEATED_INIT;\r\n }", "public void setSERVER_REVERSED_DATE(Date SERVER_REVERSED_DATE) {\r\n this.SERVER_REVERSED_DATE = SERVER_REVERSED_DATE;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
adds a frame to the game
public void addFrame(Frame frame) throws BowlingException { if(frames.size()==10) throw new BowlingException(); else frames.add(frame); //to be implemented }
[ "private void addFrame() {\n String name = selectString(\"What is the name of this frame?\");\n ReferenceFrame frame = selectFrame(\"What frame are you defining this frame relative to?\");\n double v = selectDouble(\"How fast is this frame moving (as a fraction of c)?\", -1, 1);\n try {\n frame.boost(name, v);\n System.out.println(\"Frame added!\");\n } catch (NameInUseException e) {\n System.out.println(\"A frame with that name already exists!\");\n } catch (FasterThanLightException e) {\n System.out.println(\"Nothing can move as quickly as light!\");\n }\n }", "public void addFrame() {\n try {\n String name = stringPrompt(\"What is the frame's name?\");\n ReferenceFrame frame = framePrompt(\"What frame would you like to define this frame relative to?\",\n world.getAllFrames());\n String velocityQuestion = \"How fast is \" + name + \" moving relative to \" + frame + \" (as a fraction of c)?\";\n double velocity = doublePrompt(velocityQuestion);\n frame.boost(name, velocity);\n } catch (PopupCancelException e) {\n return;\n } catch (NumberFormatException e) {\n JOptionPane.showMessageDialog(this,\n \"That's not a valid velocity!\", \"\", JOptionPane.ERROR_MESSAGE);\n return;\n } catch (NameInUseException e) {\n JOptionPane.showMessageDialog(this,\n \"A reference frame with that name already exists!\", \"\", JOptionPane.ERROR_MESSAGE);\n return;\n } catch (FasterThanLightException e) {\n JOptionPane.showMessageDialog(this,\n \"Nothing can move as quickly as light!\", \"\", JOptionPane.ERROR_MESSAGE);\n return;\n }\n updateFrames();\n }", "public void add(Frame frame)\n {\n\tinsertFrame(framesCount(), frame);\n }", "public void addFrame(AnimationFrame frame) {\n\t\tthis.frames.add(frame);\n\t}", "public void addFrame(Point newFrame)\n {\n frames.add(newFrame);\n }", "private void addPanelsToFrames()\r\n {\r\n //shtimi i të gjitha paneleve tek kornizat përkatëse\r\n gameContainer.add(leftTop);\r\n gameContainer.add(rightTop);\r\n gameContainer.add(leftBottom);\r\n gameContainer.add(rightBottom);\r\n }", "public void addChildFrame(JFrame frame);", "FRAME createFRAME();", "Frame createFrame();", "public void addFrame(SpriteDef spriteDef) {\n getAdapter().add(spriteDef);\n }", "void create(Frame frame);", "public void addFrame(final Image image) {\n\t\tframes.add(new AnimFrame(image));\n\t}", "public void createFrame() {\r\n System.out.println(\"Framing: Adding the log walls.\");\r\n }", "public GameFrame() {\r\n\t\tinit();\r\n\t}", "public addStFrame() {\n initComponents();\n }", "public void putFrame()\n {\n if (currImage != null)\n {\n super.putFrame(currImage, faceRects, new Scalar(0, 255, 0), 0);\n }\n }", "public void showBoxFrame() {\r\n sceneRootTG.addChild( objBoxFrameBG );\r\n }", "protected void addFrame(String sName, BaseFrame theFrame)\n {\n rootContainer = getParent();\n if (rootContainer != null)\n {\n rootContainer.add(sName, theFrame);\n theFrame.show(sName);\n\n }\n }", "public void addFrame(GInternalFrame internalFrame) {\r\n\t\tinternalFrame.setDesktopPane(this);\r\n\t\tint spos = (frames.size() + 1) * 12;\r\n\t\tint left = getFrame().getAbsoluteLeft() + spos;\r\n\t\tint top = getFrame().getAbsoluteTop() + spos;\r\n\r\n\t\t// System.out.println(\"HippoDesktopPane.add frame gf.absleft \" +\r\n\t\t// getFrame().getAbsoluteLeft() + \" gf.abstop \"\r\n\t\t// + getFrame().getAbsoluteTop() + \" \" + spos);\r\n\r\n\t\tSelectBoxManagerImpl selectBoxManager = ((DefaultGFrame) internalFrame)\r\n\t\t\t\t.getSelectBoxManager();\r\n\t\tif (selectBoxManager instanceof SelectBoxManagerImplIE6) {\r\n\t\t\tgetFrame().add(selectBoxManager.getBlockerWidget(), left, top);\r\n\t\t}\r\n\t\tgetFrame().add((Widget) internalFrame);\r\n\t\tinternalFrame.setLocation(left, top);\r\n\r\n\t\t// NOTE needed to add this to get the windwos to pop ontop of the ocean\r\n\t\tDOM.setStyleAttribute(((DefaultGInternalFrame) internalFrame).getElement(), \"position\",\r\n\t\t\t\t\"absolute\");\r\n\r\n\t\tframes.add(internalFrame);\r\n\r\n\t\t// internalFrame.setTheme(theme);\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Randomises the binary encoding for this individual.
public void randomiseBinary() { for (int i = 0; i < binary.length; i++) binary[i] = Math.random() >= 0.5; }
[ "protected byte[] randomData() {\n int length = random.nextInt(1024);\n byte[] rv = new byte[length];\n for (int i = 0; i < length; i++) {\n rv[i] = (byte) random.nextInt(255);\n }\n return rv;\n }", "private void nextRandomBytes(byte[] buffer) {\n if (rnd != null) rnd.nextBytes(buffer); else getDefaultPRNG().nextBytes(buffer);\n }", "public static byte[] aRandomByteArray() {\r\n byte[] array = new byte[aRandomInteger(2, 1000)];\r\n for (int i = 0; i < array.length; ++i) {\r\n array[i] = aRandomByte();\r\n }\r\n return array;\r\n }", "public ISAACRandom() {\n allocArrays();\n setSeed(System.currentTimeMillis() + System.identityHashCode(this));\n }", "@Test\r\n public void testStrongRandom() {\r\n byte[] b = new byte[16];\r\n Utils.generateStrongRandom(b);\r\n }", "private void initializeAndShuffle() {\r\n\t\t\tsuffixes = new byte[256];\r\n\t\t\tfor (int i = 0; i < ALL_BYTE_VALUES.length; i++) {\r\n\t\t\t\tint j = RAND.nextInt(i + 1);\r\n\t\t\t\tif (j != i) {\r\n\t\t\t\t\tsuffixes[i] = suffixes[j];\r\n\t\t\t\t}\r\n\t\t\t\tsuffixes[j] = ALL_BYTE_VALUES[i];\r\n\t\t\t}\r\n\t\t}", "protected abstract byte[] engineGenerateSeed(int numBytes);", "public synchronized String generateTag() {\n return Integer.toHexString(rand.nextInt());\n }", "@Override\n public Supplier<JsBinary> apply(Random seed) {\n return gen.map(JsBinary::of)\n .apply(requireNonNull(seed));\n }", "public byte tirada(){\n numero= (byte) (Math.random() * 3 );\n return numero;}", "public byte[] msgGenerator(){\n byte[] msg = new byte[8192]; //8192 indicate 8KB\n Random random = new Random();\n random.nextBytes(msg); //filling info randomly\n return msg;\n }", "public void genRandomCode() {\n\t\tpeg1 = (int) (Math.random() * Code.NumDistinctCode) + 1;\n\t\tpeg2 = (int) (Math.random() * Code.NumDistinctCode) + 1;\n\t\tpeg3 = (int) (Math.random() * Code.NumDistinctCode) + 1;\n\t\tpeg4 = (int) (Math.random() * Code.NumDistinctCode) + 1;\n\t}", "protected int generateByte() {\n do {\n rng.nextBytes(bytes);\n } while (bytes[0] == 0); // the random byte must not be 0\n \n return ((byte)(bytes[0] & 0xff) + 256) % 256;\n }", "private synchronized String genCode(){\n\t\tint charLength = 8;\n\t\treturn String.valueOf(charLength < 1 ? 0 : // generate random 8 character digit\n\t\t\tnew Random().nextInt((8*(int) Math.pow(10, charLength -1)) -1) + \n\t\t\t(int) Math.pow(10, charLength -1));\n\t}", "@SuppressWarnings(\"unused\")\n public static byte randomByte()\n {\n byte[] result = randomBytes(1);\n return result[0];\n }", "public static void randomizeSalt() {\r\n Random random = new Random();\r\n random.nextBytes(salt);\r\n }", "public static byte[] buildTestData(int length, Random random) {\n byte[] source = new byte[length];\n random.nextBytes(source);\n return source;\n }", "void saveRandom();", "public static byte[] generateRandomKey_AES128() {\n return ByteUtil.randomBytes(16);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a Long for the given name. If the name does not exist, return null.
@Override public Long getLongObject(String name) { return getLongObject(name, null); }
[ "public long getLong(String name) {\n Enumeration enumer = LONGS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return -1L;\n }", "public Long getWildcardAsLong(String name) {\n\t\ttry {\n\t\t\treturn Long.parseLong(getWildcard(name));\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public long getLong(String name) {\n\t\tDNNode node = getNode(name);\n\t\tif (node == null) throw new NoSuchNodeException(NoSuchNodeException.NODE_NOT_FOUND);\n\t\tif (node.length == 1) {\n\t\t\tif (node.typ == DNHelper.LONG) return ((long[]) node.value)[0];\n\t\t}\n\n\t\tthrow new NoSuchNodeException(NoSuchNodeException.WRONG_NODE_TYPE);\n\t}", "public long getLong(String name, long defaultValue);", "public Long getAsLong(final String name) {\r\n Long returnValue = null;\r\n try {\r\n returnValue = Long.parseLong(getProperty(name));\r\n }\r\n catch (final NumberFormatException e) {\r\n LOGGER.error(\"Error on parsing configuration property '\" + name + \"'. Property must be a long!.\");\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on parsing configuration property '\" + name + \"'. Property must be a long!\", e);\r\n }\r\n }\r\n return returnValue;\r\n }", "public long getLongAttr(String name)\n{\n\tObject val = null;\n\tval = getAttr(name);\n\n\treturn ((Long)val).longValue();\n\t\n}", "public static long getPropertyAsLong(String name)\n throws MissingPropertyException, BadPropertyException {\n if (PropertiesManager.props == null) loadProps();\n try {\n return Long.parseLong(getProperty(name));\n } catch (NumberFormatException nfe) {\n throw new BadPropertyException(name, getProperty(name), \"long\");\n }\n }", "public Long getCookieToLong(String name) {\n\t\tString result = getCookie(name);\n\t\treturn result != null ? Long.parseLong(result) : null;\n\t}", "public Long getCookieToLong(String name) {\n String result = getCookie(name);\n return result != null ? Long.parseLong(result) : null;\n }", "@Override\n public long getLong(String name, long defaultValue)\n {\n Number result = getNumber(name);\n return (result == null || result instanceof Double ? defaultValue : result.longValue());\n }", "public static long nameToLong(String name) {\n\t\t\tlong l = 0L;\n\t\t\tfor(int i = 0; i < name.length() && i < 12; i++) {\n\t\t\t\tchar c = name.charAt(i);\n\t\t\t\tl *= 37L;\n\t\t\t\tif(c >= 'A' && c <= 'Z') l += (1 + c) - 65;\n\t\t\t\telse if(c >= 'a' && c <= 'z') l += (1 + c) - 97;\n\t\t\t\telse if(c >= '0' && c <= '9') l += (27 + c) - 48;\n\t\t\t}\n\t\t\twhile(l % 37L == 0L && l != 0L) l /= 37L;\n\t\t\treturn l;\n\t\t}", "public Long getCookieToLong(String name, Long defaultValue) {\n String result = getCookie(name);\n return result != null ? Long.parseLong(result) : defaultValue;\n }", "RAtomicLong getAtomicLong(String name);", "public Long getCookieToLong(String name, Long defaultValue) {\n\t\tString result = getCookie(name);\n\t\treturn result != null ? Long.parseLong(result) : defaultValue;\n\t}", "public long getParamAsLong(String paramName);", "@Override\n public Long getLong(String key) {\n String object = String.valueOf(get(key));\n if (StringUtils.isNotEmpty(object) && object.matches(\"\\\\d+\")) {\n return Long.valueOf(object);\n }\n return null;\n }", "private Long getAttributeAsLong(Configuration conf, String name, Long dflt)\n throws NumberFormatException {\n try {\n return new Long(conf.getAttribute(name));\n } catch (ConfigurationException e) {\n return dflt;\n }\n }", "public long getLong(Cursor cursor, String columName) {\n return cursor.getLong(cursor.getColumnIndex(columName));\n }", "public static PropertyDescriptionBuilder<Long> longProperty(String name) {\n return PropertyDescriptionBuilder.start(name, Long.class, Parsers::parseLong);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the RewrittenToNewAccountDestinationJoinArray field.
public void setRewrittenToNewAccountDestinationJoinArray(entity.PolicyPolicyRewrite[] value) { __getInternalInterface().setFieldValue(REWRITTENTONEWACCOUNTDESTINATIONJOINARRAY_PROP.get(), value); }
[ "private void setRewrittenToNewAccountDestinationJoinArray(entity.PolicyPolicyRewrite[] value) {\n __getInternalInterface().setFieldValue(REWRITTENTONEWACCOUNTDESTINATIONJOINARRAY_PROP.get(), value);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.PolicyPolicyRewrite[] getRewrittenToNewAccountDestinationJoinArray() {\n return (entity.PolicyPolicyRewrite[])__getInternalInterface().getFieldValue(REWRITTENTONEWACCOUNTDESTINATIONJOINARRAY_PROP.get());\n }", "public void setRewrittenToNewAccountSourceJoinArray(entity.PolicyPolicyRewrite[] value) {\n __getInternalInterface().setFieldValue(REWRITTENTONEWACCOUNTSOURCEJOINARRAY_PROP.get(), value);\n }", "private void setRewrittenToNewAccountSourceJoinArray(entity.PolicyPolicyRewrite[] value) {\n __getInternalInterface().setFieldValue(REWRITTENTONEWACCOUNTSOURCEJOINARRAY_PROP.get(), value);\n }", "public void addToRewrittenToNewAccountDestinationJoinArray(entity.PolicyPolicyRewrite element) {\n __getInternalInterface().addArrayElement(REWRITTENTONEWACCOUNTDESTINATIONJOINARRAY_PROP.get(), element);\n }", "public void setRewrittenToNewAccountDestinationJoin(entity.PolicyPolicyRewrite value) {\n __getInternalInterface().setFieldValue(REWRITTENTONEWACCOUNTDESTINATIONJOIN_PROP.get(), value);\n }", "private void setRewrittenToNewAccountDestinationJoin(entity.PolicyPolicyRewrite value) {\n __getInternalInterface().setFieldValue(REWRITTENTONEWACCOUNTDESTINATIONJOIN_PROP.get(), value);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.PolicyPolicyRewrite[] getRewrittenToNewAccountSourceJoinArray() {\n return (entity.PolicyPolicyRewrite[])__getInternalInterface().getFieldValue(REWRITTENTONEWACCOUNTSOURCEJOINARRAY_PROP.get());\n }", "public void removeFromRewrittenToNewAccountDestinationJoinArray(entity.PolicyPolicyRewrite element) {\n __getInternalInterface().removeArrayElement(REWRITTENTONEWACCOUNTDESTINATIONJOINARRAY_PROP.get(), element);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.PolicyPolicyRewrite getRewrittenToNewAccountDestinationJoin() {\n return (entity.PolicyPolicyRewrite)__getInternalInterface().getFieldValue(REWRITTENTONEWACCOUNTDESTINATIONJOIN_PROP.get());\n }", "public void addToRewrittenToNewAccountSourceJoinArray(entity.PolicyPolicyRewrite element) {\n __getInternalInterface().addArrayElement(REWRITTENTONEWACCOUNTSOURCEJOINARRAY_PROP.get(), element);\n }", "public void setRewrittenToNewAccountSourceJoin(entity.PolicyPolicyRewrite value) {\n __getInternalInterface().setFieldValue(REWRITTENTONEWACCOUNTSOURCEJOIN_PROP.get(), value);\n }", "private void setRewrittenToNewAccountSourceJoin(entity.PolicyPolicyRewrite value) {\n __getInternalInterface().setFieldValue(REWRITTENTONEWACCOUNTSOURCEJOIN_PROP.get(), value);\n }", "public void removeFromRewrittenToNewAccountSourceJoinArray(entity.PolicyPolicyRewrite element) {\n __getInternalInterface().removeArrayElement(REWRITTENTONEWACCOUNTSOURCEJOINARRAY_PROP.get(), element);\n }", "private void setDividedToNewAccountSourceJoinArray(entity.PolicyPolicyDivide[] value) {\n __getInternalInterface().setFieldValue(DIVIDEDTONEWACCOUNTSOURCEJOINARRAY_PROP.get(), value);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.PolicyPolicyRewrite getRewrittenToNewAccountSourceJoin() {\n return (entity.PolicyPolicyRewrite)__getInternalInterface().getFieldValue(REWRITTENTONEWACCOUNTSOURCEJOIN_PROP.get());\n }", "public void setDividedToNewAccountSourceJoinArray(entity.PolicyPolicyDivide[] value) {\n __getInternalInterface().setFieldValue(DIVIDEDTONEWACCOUNTSOURCEJOINARRAY_PROP.get(), value);\n }", "@java.lang.Deprecated\n public void removeFromRewrittenToNewAccountDestinationJoinArray(gw.pl.persistence.core.Key elementID) {\n __getInternalInterface().removeArrayElement(REWRITTENTONEWACCOUNTDESTINATIONJOINARRAY_PROP.get(), elementID);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.PolicyPolicyDivide[] getDividedToNewAccountSourceJoinArray() {\n return (entity.PolicyPolicyDivide[])__getInternalInterface().getFieldValue(DIVIDEDTONEWACCOUNTSOURCEJOINARRAY_PROP.get());\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads the TemplateTypeMapping for the given TemplateType
public TemplateTypeMapping getTemplateTypeMapping(TemplateType type);
[ "Map<String, String> getTemplateMappings();", "Map<TypeDescription, Class<?>> initialize(DynamicType dynamicType, ClassLoader classLoader, ClassLoadingStrategy classLoadingStrategy);", "public LoadedTypeMap(){\n\t\tthis.loadedTypes = new HashMap<>();\n\t}", "public void setTemplateType(String templateType)\n\t{\n\t\tthis.templateType = templateType;\n\t}", "protected void setupDynamicTemplateLoader() {\n\t\t\n\t\tfreemarkerConfig.setTemplateLoader( new URLTemplateLoader() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected URL getURL(String url) {\n\t\t\n\t\t\t\tif (log.isTraceEnabled()) {\n\t\t\t\t\tlog.trace(\"Getting template url=\"+url);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tStack<TemplateEntry> templateStack = templates.get(url);\n\t\t\t\tif (templateStack!=null) {\n\t\t\t\t\tTemplateEntry templateStackTop = templateStack.peek();\n\t\t\t\t\tif (templateStackTop!=null) {\n\t\t\t\t\t\treturn templateStackTop.getTemplateURL();\n\t\t\t\t\t}\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\treturn null;\n\n\t\t\t}\n\n\t\t});\n\t\t\n\t}", "String getTemplate(String type);", "Class<? extends JavaTypeMapping> getMappingType(String javaTypeName);", "public void loadTemplates()\n {\n for (PageTemplate template : templates.values())\n {\n template.load(pageDirectory);\n }\n }", "public void loadMapping(final InputSource source, final String type) {\r\n _mappings.add(new MappingSource(source, type, _resolver));\r\n }", "public void setTemplateType(Integer templateType) {\n this.templateType = templateType;\n }", "public void loadMapping(final String url, final String type)\r\n throws IOException, MappingException {\r\n String location = url;\r\n if (_resolver.getBaseURL() == null) {\r\n setBaseURL(location);\r\n location = URIUtils.getRelativeURI(location);\r\n }\r\n try {\r\n InputSource source = _resolver.resolveEntity(null, location);\r\n if (source == null) { source = new InputSource(location); }\r\n if (source.getSystemId() == null) { source.setSystemId(location); }\r\n LOG.info(Messages.format(\"mapping.loadingFrom\", location));\r\n loadMapping(source, type);\r\n } catch (SAXException ex) {\r\n throw new MappingException(ex);\r\n }\r\n }", "public void testDynamicTemplateOrder() throws IOException {\n MapperService mapperService = createMapperService(topMapping(b -> {\n b.startArray(\"dynamic_templates\");\n {\n b.startObject();\n {\n b.startObject(\"type-based\");\n {\n b.field(\"match_mapping_type\", \"string\");\n b.startObject(\"mapping\").field(\"type\", \"keyword\").endObject();\n }\n b.endObject();\n }\n b.endObject();\n b.startObject();\n {\n b.startObject(\"path-based\");\n {\n b.field(\"path_match\", \"foo\");\n b.startObject(\"mapping\").field(\"type\", \"long\").endObject();\n }\n b.endObject();\n }\n b.endObject();\n }\n b.endArray();\n }));\n ParsedDocument doc = mapperService.documentMapper().parse(source(b -> b.field(\"foo\", \"abc\")));\n assertNotNull(doc.dynamicMappingsUpdate());\n merge(mapperService, dynamicMapping(doc.dynamicMappingsUpdate()));\n assertThat(mapperService.fieldType(\"foo\"), instanceOf(KeywordFieldMapper.KeywordFieldType.class));\n }", "ParsedTemplate getTemplate(Context context, Class<?> type)\n\t\tthrows IOException;", "Class<?> getMapping(final String sqlTypeName);", "public static void PopulateTemplates() {\n if (PokemonTemplate.count(PokemonTemplate.class) > 0)\n return;\n\n new RequestTemplates().execute(TEMPLATES_JSON_URL);\n }", "HashMap<String, Template> getTemplates();", "DataType getType_template();", "List<PSTemplateSummary> findBaseTemplates(String type);", "public Map<String, ?> getTypeMap(DataEntryType type){\n\t\tif(this.loadedTypes.containsKey(type)){\n\t\t\tDataSet<?> ds = this.loadedTypes.get(type);\n\t\t\tif(ds!=null){\n\t\t\t\treturn ds.getMap();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the web socket client that this game client uses to communicate with the Interactive service.
public InteractiveWebSocketClient getWebSocketClient() { return webSocketClient; }
[ "public Socket getSocket()\r\n {\r\n return client.getSocket();\r\n }", "public static SocketIOClient getInstance() {\n\t\tif (client == null)\n\t\t\tclient = new SocketIOClient(URI.create(\"http://chatter-7482.onmodulus.net\"), new SocketHelper());\n\n\t\treturn client;\n\t}", "public WebSocket getClient(String username) {\n return clients.get(username);\n }", "public Socket getClientSocket()\n {\n return this.getSocketChannel().socket();\n }", "Object getSocket();", "private C4Client getClientFromConnectionController() {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"connection.fxml\"));\n try {\n loader.load();\n } catch (IOException error) {\n System.out.println(\"There is an error while passing the Socket between controllers: \" + error);\n }\n ConnectionController connection = loader.getController();\n // Getting the Socket Object\n return connection.getClient();\n }", "public static Client getClient() {\n return getRealm().getClient();\n }", "public static EventClient getEventClient() {\n if (EVENT_CLIENT == null) {\n EVENT_CLIENT = new NetworkEventClient(\n NetworkProvider.SERVER_URL,\n new DefaultNetworkProvider());\n }\n return EVENT_CLIENT;\n }", "public PeerClient getClient() {\n return client;\n }", "public Client getClient() {\r\n return this.client;\r\n }", "public WebClient getWebClient() {\n if (this.webClient == null) {\n this.webClient = WebClient.builder().baseUrl(getServiceEndpoint()).build();\n }\n\n return this.webClient;\n }", "private ClientContainer getWebSocketsContainer(){\n return ( ClientContainer ) ContainerProvider.getWebSocketContainer(); \n }", "public CuratorFramework getClient() {\n\n\t\tif (m_client == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (m_client.getState() == CuratorFrameworkState.STOPPED) {\n\t\t\tSystem.out.println(\" =================@@> DETECTED STOPPED client on CLUSTER instance\");\n\t\t\t//m_client.start();\n\t\t}\n\t\treturn m_client; }", "protected RemoteSubmissionClient getClient() \n {\n RemoteSubmissionClient client;\n try {\n if (threadClient.get() == null) {\n client = system.getRemoteSubmissionClient(null);\n threadClient.set(client);\n } \n } catch (Exception e) {\n \tAssert.fail(\"Failed to get client\", e);\n\t\t}\n \n return threadClient.get();\n }", "@Nullable\n abstract Object getSocket();", "public Stomp getClient() {\n return new IntraVMClient( this );\n }", "private WebClient getWebClient() {\n\t\treturn ClientSecurityUtils.applySecurityToRest(\n\t\t\t\tWebClient.fromClient(customerRestWebClient, true),\n\t\t\t\tpropertyManager.getRemoteUsername(),\n\t\t\t\tpropertyManager.getRemotePassword());\n\t}", "public WebClient getWebClient() {\r\n\t\treturn webClient;\r\n\t}", "ExchangeApiWebSocketClient newWebSocketClient();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the current allocated ram.
public int getCurrentAllocatedRam() { return currentAllocatedRam; }
[ "public int getCurrentRequestedRam() {\n\t\treturn getRam();\n\t}", "public long GetAvailableRAM(){\n ActivityManager.MemoryInfo mi = new ActivityManager.MemoryInfo();\n ActivityManager activityManager = (ActivityManager) mcontext.getSystemService(Context.ACTIVITY_SERVICE);\n activityManager.getMemoryInfo(mi);\n\n return (mi.availMem / 1048576L);\n }", "double getInstalledRAM();", "public long memoriaRamDisponivel(){\n return hardware.getMemory().getAvailable();\n }", "public double getOccupiedRamGB () { return getRamBaseResource().getOccupiedCapacity(); }", "public int getRamMb() {\n return ramMb;\n }", "public int getRam() {\n\t\treturn ram;\n\t}", "public double getTotalRamGB () { return n.getResources(RESOURCETYPE_RAM).stream().mapToDouble(r->r.getCapacity()).sum (); }", "java.lang.String getAvailableMemory();", "public java.lang.Integer getRam() {\r\n return ram;\r\n }", "public static String getMem()\r\n {\r\n try\r\n {\r\n // Process process = Runtime.getRuntime().exec(MEM_QUERY);\r\n // StreamReader reader = new StreamReader(process.getInputStream());\r\n\r\n // reader.start();\r\n // process.waitFor();\r\n // reader.join();\r\n\r\n /* Executes \"mem\" in a shell */\r\n // String rval = reader.getResult();\r\n /* Strips out just the total conventional memory */\r\n // rval = result.substring(8, 14);\r\n // return rval;\r\n return \"null\";\r\n }\r\n catch(Exception e)\r\n {\r\n return \"null\";\r\n }\r\n }", "public BigInteger getReservedMemory() {\n\t\treturn memoryBanks.get(0).getMemory();\n\t}", "public static long getDefaultRamCapacity() {\n return defaultRamCapacity;\n }", "public long getAvailableInternalMemorySize() {\n\t\tFile path = Environment.getDataDirectory();\n\t\tStatFs stat = new StatFs(path.getPath());\n\t\tlong blockSize = stat.getBlockSize();\n\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\treturn availableBlocks * blockSize;\n\t}", "public MemoryInfo getMemoryInfo() {\n Runtime runtime = Runtime.getRuntime();\n MemoryInfo memoryInfo = new MemoryInfo();\n memoryInfo.setMax(runtime.maxMemory());\n memoryInfo.setAllocated(runtime.totalMemory());\n memoryInfo.setFree(runtime.freeMemory());\n return memoryInfo;\n }", "private String getRAM() {\n String result = null;\n try {\n String firstLine = fileReadOneLine(ram_file);\n if (firstLine != null) {\n String parts[] = firstLine.split(\"\\\\s+\");\n if (parts.length == 3) {\n result = Long.parseLong(parts[1]) / 1024 + \" MB\";\n }\n }\n } catch (Exception e) {\n Log.e(TAG, \"Exception when reading \" + ram_file + \", e\");\n }\n\n return result;\n }", "public ResourceRange memory() {\n return this.memory;\n }", "public static long getAvailableInternalMemorySize() {\n File path = Environment.getDataDirectory();\n StatFs stat = new StatFs(path.getPath());\n long blockSize = stat.getBlockSize();\n long availableBlocks = stat.getAvailableBlocks();\n return availableBlocks * blockSize;\n }", "public Memory<P> getCurrentMemory()\n\t{\n\t\tif (this.robots.size() > 0)\n\t\t{\n\t\t\t// get robots. Since just one vector between robots and human pilot robots has data\n\t\t\t// inside, I can merge them without worry\n\t\t\tVector<SycamoreRobot<P>> robotsList = new Vector<SycamoreRobot<P>>();\n\t\t\trobotsList.addAll(robots.getRobotRow(0));\n\t\t\trobotsList.addAll(robots.getHumanPilotRow(0));\n\n\t\t\tif (!robotsList.isEmpty())\n\t\t\t{\n\t\t\t\treturn robotsList.firstElement().getMemory();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method that removes every airport record from the database
public static void removeAllAirports() { Connection conn = DataBaseInfo.getConnection(); PreparedStatement ps; ResultSet rs; String getAddressID = "SELECT `address_ID` FROM `Airports`"; String RemoveAddresses = "DELETE FROM `Addresses` WHERE `address_ID` = ?"; String removeAirportsQuery = "DELETE FROM `Airports`"; try { ps = conn.prepareStatement(getAddressID); rs = ps.executeQuery(); while (rs.next()) { int address_ID = rs.getInt("address_ID"); ps = conn.prepareStatement(RemoveAddresses); ps.setInt(1, address_ID); ps.executeUpdate(); } ps = conn.prepareStatement(removeAirportsQuery); ps.executeUpdate(); ps.close(); conn.close(); } catch (SQLException e) { System.out.println("SQLException: "); e.printStackTrace(); throw new RuntimeException(e); } }
[ "void removeAirport(Long id);", "public void deleteSingleAirport(Airport airport, HashMap<Integer, Route> routeHashMap, ObservableList<Route> currentlyLoadedRoutes, HashMap<String, Airport> airportHashMap, ObservableList<Airport> currentlyLoadedAirports) {\n\n //Set up the database and objects\n DatabaseSearcher dbs = new DatabaseSearcher();\n DatabaseSaver dbSave = new DatabaseSaver();\n Connection connSearch = Database.connect();\n Connection connDelete = Database.connect();\n\n //Get all routes associated with this airport\n String sql = dbs.buildRouteSearch(\"sourceid\", Integer.toString(airport.getAirportID()));\n sql = dbs.addAdditionalLikeOption(sql, \"destinationid\", Integer.toString(airport.getAirportID()));\n ObservableList<Route> routesFromDatabase = dbs.searchRouteByOption(connSearch, sql);\n Database.disconnect(connSearch);\n ObservableList<Route> routesToDelete = FXCollections.observableArrayList();\n\n for (int i = 0; i < routesFromDatabase.size(); i++) {\n if (routeHashMap.get(routesFromDatabase.get(i).getRouteID()) != null) {\n routesToDelete.add(MainController.getRouteHashMap().get(routesFromDatabase.get(i).getRouteID()));\n }\n }\n\n //Delete the routes from the app\n RouteDeleter rd = new RouteDeleter();\n rd.deleteListRoutes(routesToDelete, routeHashMap, currentlyLoadedRoutes);\n\n //Get id of airport so database knows which one to delete\n ArrayList<Integer> id = new ArrayList<Integer>();\n id.add(airport.getAirportID());\n\n //Remove the airport from the current observable list of integers\n currentlyLoadedAirports.remove(currentlyLoadedAirports.indexOf(airport));\n\n //Remove the airport from the current hashmap\n if (airport.getCountry().equals(\"United States\")) {\n airportHashMap.remove(airport.getFAA());\n } else if (airport.getIATA() != null) {\n airportHashMap.remove(airport.getIATA());\n } else {\n airportHashMap.remove(airport.getICAO());\n }\n\n //Remove the airport from the database\n dbSave.deleteAirport(connDelete, id);\n Database.disconnect(connDelete);\n\n }", "public void delete(Airplane a){\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n try {\n ppst = conn.prepareCall(\"DELETE FROM airplane WHERE airplane_key = ?\");\n ppst.setInt(1, a.getAirplaneKey());\n ppst.executeUpdate();\n System.out.println(\"Successfully deleted.\");\n } catch (SQLException e) {\n throw new RuntimeException(\"Delete error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst);\n }\n }", "public void deleteAllPlayers(){\n\n String sqlQuery = \"DELETE * FROM csc480data.player_table; \";\n Statement aStatement = null;\n try {\n Connection connection = DriverManager.getConnection(dbAddress, dbUser, dbPass);\n aStatement = connection.createStatement();\n ResultSet rs =aStatement.executeQuery(sqlQuery);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void deleteAllPlayerTeams(){\n\n String sqlQuery = \"DELETE * FROM csc480data.player_team; \";\n Statement aStatement = null;\n try {\n Connection connection = DriverManager.getConnection(dbAddress, dbUser, dbPass);\n aStatement = connection.createStatement();\n ResultSet rs =aStatement.executeQuery(sqlQuery);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "@Query(\"DELETE FROM train_stations\")\n\tvoid deleteAll();", "public void deleteAllTeams(){\n\n String sqlQuery = \"DELETE * FROM csc480data.team_table; \";\n Statement aStatement = null;\n try {\n Connection connection = DriverManager.getConnection(dbAddress, dbUser, dbPass);\n aStatement = connection.createStatement();\n ResultSet rs =aStatement.executeQuery(sqlQuery);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void deleteAllPlants() {\n\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n db.execSQL(\"delete from \" + TABLE_MY_PLANTS); //delete all goals from table\n }", "public void deleteAllGames(){\n\n String sqlQuery = \"DELETE * FROM csc480data.game_table; \";\n Statement aStatement = null;\n try {\n Connection connection = DriverManager.getConnection(dbAddress, dbUser, dbPass);\n aStatement = connection.createStatement();\n ResultSet rs =aStatement.executeQuery(sqlQuery);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public static void deleteAllAccounts(){ //TODO implement this on Model class\n List<AccountRecord> accountsList = getAllAccounts();\n Iterator <AccountRecord>accounts = accountsList.iterator();\n while( accounts.hasNext()){\n accounts.next().deleteAccount();\n }\n }", "public void wipeDateFromRealm() {\n nearByPlacesDAO.deleteFromDB();\n }", "public void deleteAllRecords() {\n deleteAllRecordsFromDB();\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (Flight flight : findAll()) {\n\t\t\tremove(flight);\n\t\t}\n\t}", "public void deleteAllPlants() {\n SQLiteDatabase p_db = this.getWritableDatabase();\n List<Plants> plantsList = new ArrayList<>();\n plantsList = getAllPlants();\n\n for (Plants p : plantsList) {\n int id = p.getP_id();\n p_db.delete(TABLE_PLANTS, KEY_P_ID + \"=?\", new String[]{String.valueOf(id)});\n }\n p_db.close();\n }", "private void deleteAllRecords() {\n mResourceDao.deleteAll();\n }", "public void clean() {\n airportDatas.clear();\n atmosphericInformationMap.clear();\n }", "public void deleteAll_address(){\n db = this.getWritableDatabase();\n onCreate(db);\n db.delete(DbContract.AddressEntry.TABLE_NAME, null, null);\n db.close();\n\n }", "public static void removeAllPortfolios() {\r\n\t\tDatabaseInfo data = new DatabaseInfo();\r\n\t\ttry{\r\n\t\t\tPreparedStatement ps = null;\r\n\t\t\tConnection conn = data.getCon();\r\n\t\tps = conn.prepareStatement(\"SET SQL_SAFE_UPDATES=0\");\r\n\t\tResultSet rs = ps.executeQuery();\r\n\t\tps = conn.prepareStatement(\"DELETE FROM PortfolioAssets\");\r\n\t\tps.executeUpdate();\r\n\t\tps = conn.prepareStatement(\"DELETE FROM Portfolio\");\r\n\t\tps.executeUpdate();\r\n\t\tps = conn.prepareStatement(\"SET SQL_SAFE_UPDATES=1\");\r\n\t\trs = ps.executeQuery();\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\tSystem.out.println(\"InstantiationException: \");\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "public void removeOldRecords();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Replicates a provided event and applies the event to a state machine.
private void replicateEvent(String path, Event event) { if (event.getEventType() == EventType.BEGIN) { // Get the task state machine for this target StateMachine<Status, EventType> stateMachine = StateMachineRepository .getStateMachineBean(event.getTargetId()); // The state machine must acquire a lock on this task to ensure idempotent // state change notification sent to RabbitMQ // TODO: Trade off #2 stateMachine .getExtendedState() .getVariables() .put(String.format("%s--%s", event.getTargetId(), Status.PENDING), true); // Start the task state machine stateMachine.start(); } else { // Add event to state machine queue StateMachineRepository.getTaskListener(event.getTargetId()) .getQueue().add(event.getEventType()); } // Enqueue the event so that it is not re-processed queue.add(path); }
[ "public void processEvent(Event event) {\n List<Transition> matches = transitions.get(event.code());\n if(matches==null) return;\n for(Transition tran: matches)\n if(tran.isApplicable()) { \n String newMaybe = tran.action();\n if(newMaybe!=null) machine().setState(newMaybe);\n return;\n }\n }", "void processEvent(Event event) throws WorkflowException;", "protected abstract void addAndApplyInteractions(ChangeEvent e, CompoundUndoableChangeEvent event);", "public void addEvent(State previousState, Action action, State currentState, Double reward);", "public void processEvent(Event event) {\n\t}", "@Override\n public State handle(Event event) {\n System.out.println(\"Three identical events occurred consecutively!\");\n return EndlessState.getInstance();\n }", "State applyTo(State state);", "public void processEvent(Object event) {\n getCurrentState().handle(event); // Notify the current state of all events we receive, except events it sent.\n getCoolingStrategy().handle(event); // Notify the current cooling strategy of all events we receive, except events it sent.\n }", "public void testSameNameEvents() {\n fsm.addState(\"Held\");\n fsm.addTransition(mkTrans(\"hold\", \"B\", \"Held\"));\n fsm.addTransition(mkTrans(\"hold\", \"C\", \"Held\"));\n fsm.addTransition(mkTrans(\"done\", \"Held\", \"A\"));\n\n assertEquals(\"A\", fsm.getState());\n fsm.addEvent(\"hold\"); // no effect\n assertEquals(\"A\", fsm.getState());\n fsm.addEvent(\"1\"); // move to B\n assertEquals(\"B\", fsm.getState());\n fsm.addEvent(\"hold\"); // move to Held\n assertEquals(\"Held\", fsm.getState());\n fsm.addEvent(\"done\");\n assertEquals(\"A\", fsm.getState());\n fsm.addEvent(\"1\"); // to B\n fsm.addEvent(\"3\"); // to C\n fsm.addEvent(\"hold\"); // move to Held\n assertEquals(\"Held\", fsm.getState());\n fsm.addEvent(\"done\");\n assertEquals(\"A\", fsm.getState());\n\n }", "public abstract void processEvent(Object event);", "protected abstract void processEvent(Object event);", "void distributeTransitionEvent(final AutomataTransitionEvent event) {\n\t\tfinal Iterator<AutomataTransitionListener> it = transitionListeners.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tfinal AutomataTransitionListener listener = it.next();\n\t\t\tlistener.automataTransitionChange(event);\n\t\t}\n\t}", "void processEvent(Event e);", "private void updateState(E evt) {\n state = state.apply(evt);\n havePersisted(evt);\n }", "private void handleCommandEvent(HistoryEvent event) {\n if (handleLocalActivityMarker(event)) {\n return;\n }\n // Match event to the next command in the stateMachine queue.\n // After matching the command is notified about the event and is removed from the\n // queue.\n CancellableCommand command;\n while (true) {\n // handleVersionMarker can skip a marker event if the getVersion call was removed.\n // In this case we don't want to consume a command.\n // That's why peek is used instead of poll.\n command = commands.peek();\n if (command == null) {\n throw new IllegalStateException(\"No command scheduled that corresponds to \" + event);\n }\n // Note that handleEvent can cause a command cancellation in case\n // of MutableSideEffect\n HandleEventStatus status = command.handleEvent(event, true);\n if (status == HandleEventStatus.NON_MATCHING_EVENT) {\n if (handleVersionMarker(event)) {\n // return without consuming the command as this event is a version marker for removed\n // getVersion call.\n return;\n }\n if (!command.isCanceled()) {\n throw new IllegalStateException(\n \"Event \"\n + event.getEventId()\n + \" of \"\n + event.getEventType()\n + \" does not\"\n + \" match command \"\n + command.getCommandType());\n }\n }\n // Consume the command\n commands.poll();\n if (!command.isCanceled()) {\n break;\n }\n }\n validateCommand(command.getCommand(), event);\n\n EntityStateMachine stateMachine = command.getStateMachine();\n if (!stateMachine.isFinalState()) {\n stateMachines.put(event.getEventId(), stateMachine);\n }\n // Marker is the only command processing of which can cause workflow code execution\n // and generation of new state machines.\n if (event.getEventType() == EventType.EVENT_TYPE_MARKER_RECORDED) {\n prepareCommands();\n }\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public <S, E> StatefulEntity<S, E> handleEvent(StatefulEntity<S, E> entity, E event) {\n\n StateMachineDefinition<S, E> definition = entity.getStateMachineDefinition();\n Class<? extends StateMachineEventHandler> handlerClass = definition.getHandlerClass();\n Collection<StateMachineState<S, E>> definitionStates = definition.getStates();\n\n for (StateMachineState<S, E> state : definitionStates) {\n if (state.getOn().equals(event) && state.getFrom().equals(entity.getState())) {\n String methodToCall = state.getMethodToCall();\n try {\n StateMachineEventHandler handlerInstance = handlerClass\n .getConstructor()\n .newInstance();\n Method method = handlerClass.getMethod(methodToCall, Book.class);\n entity = (StatefulEntity<S, E>) method.invoke(handlerInstance, entity);\n } catch (ReflectiveOperationException e) {\n e.printStackTrace();\n }\n }\n }\n return entity;\n }", "public abstract void event(Object event);", "public IServerState changeState(ServerEvents serverEvent);", "private void processEvent( IEvent event ) {\n\t\t// Events event, Object[] obj1, String format, Object ...obj2\n\t\ttry {\n\t\t\tif( rulelist.filterEvents( event ) == FilterActions.ALLOW ) {\n\t\t\t\tevent.setStackTrace(getStackTrace(event));\n\t\t\t\tspoolEvent( event );\n\t\t\t}\n\t\t}catch(Throwable t) {\n\t\t\tt.printStackTrace();\n\t\t\tSystem.exit(20);\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Completes the HTTP Post call and returns an object of the HTTPResponse class
public HTTPResponse finish() { HTTPResponse response = new HTTPResponse(); try { super.CreateConnection(); outputStream = super.httpConn.getOutputStream(); writer = new PrintWriter(new OutputStreamWriter(outputStream, super.charset), true); addParametersToWriter(); addFilesToWriter(); writer.append(LINE_FEED).flush(); writer.append("--" + boundary + "--").append(LINE_FEED); writer.close(); response.setResponseCode(super.httpConn.getResponseCode()); response.setResponseBody(super.readResponseBody()); } catch (Exception e) { Log.e(TAG, e.getMessage()); } return response; }
[ "public HTTPResponse finish() {\n HTTPResponse response = new HTTPResponse();\n try {\n //create the HTTP connection\n super.CreateConnection();\n //write the JSON data via DataOutputStream\n DataOutputStream dataOutputStream = new DataOutputStream(super.httpConn.getOutputStream());\n dataOutputStream.writeBytes(jsonParam.toString());\n //get the results\n response.setResponseCode(super.httpConn.getResponseCode());\n response.setResponseBody(super.readResponseBody());\n dataOutputStream.flush();\n dataOutputStream.close();\n super.httpConn.disconnect();\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n return response;\n }", "public abstract HTTPResponse finish();", "public RequestResult post() {\n request.setMethod(HTTPMethod.POST);\n ClientResponse<byte[], byte[]> response = run();\n return new RequestResult(injector, request, response, userAgent, messageObserver, port);\n }", "public HTTPResponse finish() {\n HTTPResponse response = new HTTPResponse();\n if (super.requestURL.endsWith(\"&\")) {\n super.requestURL = super.requestURL.substring(0, super.requestURL.length() - 1);\n }\n try {\n super.CreateConnection();\n response.setResponseCode(super.httpConn.getResponseCode());\n response.setResponseBody(super.readResponseBody());\n super.httpConn.disconnect();\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n return response;\n }", "protected Response post() {\n RequestBuilder builder = RequestBuilder.post().setUri(url);\n return getResponseAfterDetectingType(builder);\n }", "public IntegrationResponse doPost() {\r\n \r\n IntegrationResponse integrationResponse = new IntegrationResponse();\r\n \r\n if(!nameValuePairList.isEmpty()) {\r\n try {\r\n httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairList));\r\n \r\n HttpResponse response = httpClient.execute(httpPost);\r\n HttpEntity entity = response.getEntity();\r\n \r\n \r\n if (entity != null) {\r\n IntegrationUtility.mapIntegrationResponse(EntityUtils.toString(entity), integrationResponse);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n integrationResponse.setResponse(e.getMessage());\r\n \r\n } finally {\r\n httpPost.releaseConnection();\r\n }\r\n } else {\r\n integrationResponse.setResponse(PROCESSING_ERROR_MSG);\r\n }\r\n return integrationResponse;\r\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "private static HttpResponse sendPost() throws Exception {\n // Create the Call using the URL\n HttpPost http = new HttpPost(url);\n // Set the credentials set earlier into the headers\n Header header = new BasicScheme(StandardCharsets.UTF_8).authenticate(creds, http, null);\n // Set the header into the HTTP request\n http.addHeader(header);\n // Print the response\n return httpClient.execute(http);\n }", "public String postResponse(URL url) throws ClientProtocolException, IOException {\n\t\treturn Request.Post(url.toString()).execute().returnContent().asString();\n\t}", "protected void onPostExecute(String result){\n// Log.d(\"HTTP\", result);\n instantiator.httpResponseFinished(result);\n }", "private void executePostReservation() throws Exception {\n HttpURLConnection httpConnection = (HttpURLConnection) new URL(this.postURL).openConnection();\n httpConnection.setRequestMethod(\"GET\");\n httpConnection.setUseCaches(false);\n httpConnection.connect();\n\n int response_code = httpConnection.getResponseCode();\n\n switch(response_code) {\n // on successful post return OK\n case HttpURLConnection.HTTP_OK:\n break;\n //api key not valid\n case HttpURLConnection.HTTP_UNAUTHORIZED:\n throw new Exception(\"Not authorized\");\n //invalid url\n case HttpURLConnection.HTTP_BAD_REQUEST:\n throw new Exception(\"Bad request\");\n //server error\n case HttpURLConnection.HTTP_INTERNAL_ERROR:\n throw new Exception(\"Internal error\");\n }\n\n httpConnection.disconnect(); //close resources\n }", "public Response postRequest(String url) {\r\n CloseableHttpResponse httpResponse = null;\r\n\r\n try {\r\n HttpContext context = HttpClientContext.create();\r\n\r\n HttpPost postRequest = new HttpPost(url);\r\n postRequest.addHeader(HttpConstants.ACCEPT_HEADER_KEY, HttpConstants.ACCEPT_HEADER_JSON);\r\n\r\n httpResponse = httpClient.execute(postRequest, context);\r\n\r\n return buildResponse(httpResponse);\r\n\r\n } catch (Exception e) {\r\n throw new HttpClientException(String.format(EXCEPTION_PROTOCOL_ERROR, url), e);\r\n } finally {\r\n closeHttpResponse(httpResponse);\r\n }\r\n\r\n }", "public T getResponse() {\n return response;\n }", "CompletableFuture<WriteResponse> submit();", "public HTTPResult doPost(String requestURL, File dir) throws IOException {\n\n\t\tURL url = new URL(requestURL);\n\t\thttpConn = (HttpURLConnection) url.openConnection();\n\t\thttpConn.setConnectTimeout(20000);\n\t\thttpConn.setRequestMethod(\"POST\");\n\n\t\thttpConn.setUseCaches(false);\n\t\thttpConn.setDoOutput(true); // indicates POST method\n\t\thttpConn.setDoInput(true);\n\n\t\thttpConn.setRequestProperty(\"User-Agent\", \"ClothesMatcherAndroid\");\n\t\thttpConn.setRequestProperty(\"Cookie\", cookies);\n\t\t// if there is no file fields, then use urlencode\n\t\tif (file_fields.isEmpty()) {\n\t\t\thttpConn.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n\t\t} else { // otherwise, use multipart encoding\n\t\t\t// creates a unique boundary based on time stamp\n\t\t\tboundary = getBoundary();\n\t\t\thttpConn.setRequestProperty(\"Content-Type\", \"multipart/form-data; boundary=\" + boundary);\n\t\t}\n\n\t\thttpOutputStream = httpConn.getOutputStream();\n\t\thttpWriter = new PrintWriter(new OutputStreamWriter(httpOutputStream, charset), true);\n\n\t\t// if there is no file fields, then use urlencode\n\t\tif (file_fields.isEmpty()) {\n\t\t\thttpWriter.append(getPostDataString(string_fields));\n\t\t\thttpWriter.flush();\n\t\t} else { // otherwise, use multipart encoding\n\t\t\t// add the string and files in the hashmap into the request\n\t\t\tfor (Entry<String, String> entry : string_fields.entrySet()) {\n\t\t\t\taddFormField(entry.getKey(), entry.getValue());\n\t\t\t}\n\t\t\tfor (Entry<String, File> entry : file_fields.entrySet()) {\n\t\t\t\taddFilePart(entry.getKey(), entry.getValue());\n\t\t\t}\n\n\t\t\thttpWriter.append(LINE_FEED).flush();\n\t\t\thttpWriter.append(\"--\" + boundary + \"--\").append(LINE_FEED);\n\t\t}\n\n\t\thttpWriter.close();\n\n\t\t// receive from the server !\n\t\tHTTPResult response = new HTTPResult();\n\n\t\t// checks server's status code first\n\t\tresponse.response_code = httpConn.getResponseCode();\n\t\tif (response.response_code == HttpURLConnection.HTTP_OK) {\n\n\t\t\tString response_type = httpConn.getContentType();\n\t\t\t\n\t\t\tMap<String, List<String>> headerFields = httpConn.getHeaderFields();\n\t\t\tresponse.head_fields = headerFields;\n\t\t\tparseAndAddCookies(headerFields.get(\"Set-Cookie\"), response);\n\t\t\tparseAndAddCookies(headerFields.get(\"Set-Cookie2\"), response);\n\n\t\t\thttpInputStream = httpConn.getInputStream();\n\t\t\t\n\t\t\tresponse.was_download = shouldDownload(response_type);\n\n\t\t\tif (response.was_download) {\n\n\t\t\t\tString fileName = null;\n\t\t\t\tString disposition = httpConn.getHeaderField(\"Content-Disposition\");\n\t\t\t\tString contentType = httpConn.getContentType();\n\t\t\t\tint contentLength = httpConn.getContentLength();\n\n\t\t\t\tif (disposition != null) {\n\t\t\t\t\t// extracts file name from header field\n\t\t\t\t\tint index = disposition.indexOf(\"filename=\");\n\t\t\t\t\tif (index > 0) {\n\t\t\t\t\t\tfileName = disposition.substring(index + 10, disposition.length() - 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// extracts file name from URL\n\t\t\t\t\tfileName = requestURL.substring(requestURL.lastIndexOf(\"/\") + 1, requestURL.length());\n\t\t\t\t}\n\n\t\t\t\tif (fileName == null ) {\n\t\t\t\t\tresponse.error.put(\"filename\", \"No filename in the HTTP response!\");\n\t\t\t\t} else if (dir == null) {\n\t\t\t\t\tresponse.error.put(\"filename\", \"No dir given, but the response is downloadable!\");\n\t\t\t\t} else {\n\t\t\t\t\tresponse.response_file = new File(dir, fileName);\n\t\t\t\t\tfileOutputStream = new FileOutputStream(response.response_file);\n\t\t\t\t\tint bytesRead = -1;\n\t\t\t\t\tbyte[] buffer = new byte[BUFFER_SIZE];\n\t\t\t\t\twhile ((bytesRead = httpInputStream.read(buffer)) != -1) {\n\t\t\t\t\t\tfileOutputStream.write(buffer, 0, bytesRead);\n\t\t\t\t\t}\n\t\t\t\t\tfileOutputStream.close();\n\t\t\t\t\t\n\t\t\t\t\tresponse.succeeded = true;\n\t\t\t\t}\n\t\t\t\thttpInputStream.close();\n\t\t\t} else {\n\t\t\t\thttpReader = new BufferedReader(new InputStreamReader(httpInputStream));\n\t\t\t\tString line = null;\n\t\t\t\tString all_lines = \"\";\n\t\t\t\twhile ((line = httpReader.readLine()) != null) {\n\t\t\t\t\tall_lines += line;\n\t\t\t\t}\n\t\t\t\tresponse.response_text = all_lines;\n\t\t\t\thttpReader.close();\n\t\t\t\t\n\t\t\t\tresponse.succeeded = true;\n\t\t\t}\n\t\t} else {\n\t\t\tresponse.error.put(\"http\", \"Server returned non-OK status: \" + response.response_code);\n\t\t}\n\n\t\thttpConn.disconnect();\n\n\t\tresponse.dump();\n\n\t\treturn response;\n\n\t}", "protected String send()\n\t{\n\t\t// nullcheck the parameters\n\t\tif(params == null || url == null) {\n\t\t\tSystem.err.println(\"POST request was not initialized!\");\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tString respString = \"\";\n\t\t\n\t\t// format the post data\n\t\tStringBuilder postData = new StringBuilder();\n\t\ttry {\n\t\t\tfor(Map.Entry<String, Object> param : this.params.entrySet()) {\n\t\t\t\tif(postData.length() > 0)\n\t\t\t\t\tpostData.append('&');\n\t\t\t\tpostData.append(URLEncoder.encode(param.getKey(), \"UTF-8\"));\n\t\t\t\tpostData.append('=');\n\t\t\t\tpostData.append(URLEncoder.encode(String.valueOf(param.getValue()), \"UTF-8\"));\n\t\t\t}\n\t\t\tbyte[] postValBytes = postData.toString().getBytes();\n\n\t\t\t// Setup the connection\n\t\t\tHttpsURLConnection conn = (HttpsURLConnection) this.url.openConnection();\n\n\t\t\t// Add the metadata\n\t\t\tconn.setRequestMethod(\"POST\");\n\t\t\tconn.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\t\t\tconn.setRequestProperty(\"Content-Length\", String.valueOf(postValBytes.length));\n\t\t\tconn.setDoOutput(true);\n\t\t\tconn.getOutputStream().write(postValBytes);\n\n\t\t\t// read the input\n\t\t\tBufferedReader respReader = new BufferedReader(new InputStreamReader(conn.getInputStream(), \"UTF-8\"));\n\n\t\t\tString tmpRead;\n\t\t\tStringBuffer response = new StringBuffer();\n\n\t\t\twhile((tmpRead = respReader.readLine()) != null)\n\t\t\t\tresponse.append(tmpRead);\n\t\t\t\n\t\t\trespString = response.toString();\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error sending request to address \" +url.toString());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn respString;\n\t}", "String postRequest(String url);", "public HttpRequest<T> post() {\n\t\tthis.verb = \"POST\";\n\t\treturn this;\n\t}", "public void finishRequest() throws HTTPException\r\n\t{\r\n\t\t// first, a final error if no host header found\r\n\t\tif(!headers.containsKey(HTTPHeader.Common.HOST.lowerCaseName()))\r\n\t\t\tthrow new HTTPException(HTTPStatus.S400_BAD_REQUEST, \"<html><body><h2>No Host: header received</h2>HTTP 1.1 requests must include the Host: header.</body></html>\");\r\n\r\n\t\t// if this is a range request, get the byte ranges ready for the One Who Will Generate Output\r\n\t\tif(headers.containsKey(HTTPHeader.Common.RANGE.lowerCaseName()) && (!disableFlags.contains(CWConfig.DisableFlag.RANGED)))\r\n\t\t{\r\n\t\t\tif (isDebugging) debugLogger.finest(\"Got range request!\");\r\n\t\t\tbyteRanges=parseRangeRequest(headers.get(HTTPHeader.Common.RANGE.lowerCaseName()));\r\n\t\t}\r\n\r\n\t\tif(chunkBytes != null)\r\n\t\t{\r\n\t\t\tthis.bodyLength = chunkBytes.size();\r\n\t\t\tthis.buffer = ByteBuffer.wrap(chunkBytes.toByteArray());\r\n\t\t\tchunkBytes = null;\r\n\t\t}\r\n\r\n\t\t// if no body was sent, there is nothing left to do, at ALL\r\n\t\tif(bodyLength == 0)\r\n\t\t{\r\n\t\t\tbodyStream = emptyInput;\r\n\t\t}\r\n\t\telse // if this entire body is one url-encoded string, parse it into the urlParameters and clear the body\r\n\t\t{\r\n\t\t\tbodyStream = new ByteArrayInputStream(buffer.array());\r\n\t\t\tif(headers.containsKey(HTTPHeader.Common.CONTENT_TYPE.lowerCaseName())\r\n\t\t\t&&(headers.get(HTTPHeader.Common.CONTENT_TYPE.lowerCaseName()).startsWith(\"application/x-www-form-urlencoded\")))\r\n\t\t\t{\r\n\t\t\t\tfinal String byteStr=new String(buffer.array(),utf8);\r\n\t\t\t\tparseUrlEncodedKeypairs(byteStr);\r\n\t\t\t\tif (isDebugging) debugLogger.finest(\"Urlencoded data: \"+byteStr);\r\n\t\t\t\tbuffer=ByteBuffer.wrap(new byte[0]); // free some memory early, why don't ya\r\n\t\t\t}\r\n\t\t\telse // if this is some sort of multi-part thing, then the entire body is forfeit and MultiPartDatas are generated\r\n\t\t\tif(headers.containsKey(HTTPHeader.Common.CONTENT_TYPE.lowerCaseName())\r\n\t\t\t&&(headers.get(HTTPHeader.Common.CONTENT_TYPE.lowerCaseName()).startsWith(\"multipart/\")))\r\n\t\t\t{\r\n\t\t\t\tif (isDebugging) debugLogger.finest(\"Got multipart request\");\r\n\t\t\t\t\tfinal String boundaryDefStr=headers.get(HTTPHeader.Common.CONTENT_TYPE.lowerCaseName());\r\n\t\t\t\tparts = parseMultipartContent(boundaryDefStr, new int[]{0});\r\n\t\t\t\tbuffer=ByteBuffer.wrap(new byte[0]); // free some memory early, why don't ya\r\n\t\t\t}\r\n\t\t\telse // otherwise, this is an unhandled or generic body of data.. prepare the input bodystream\r\n\t\t\t{\r\n\t\t\t\tif (isDebugging) debugLogger.finest(\"Got generic body\");\r\n\t\t\t\tbuffer.position(0);\r\n\t\t\t\tbuffer.limit(buffer.capacity());\r\n\t\t\t}\r\n\t\t}\r\n\t\tisFinished = true; // by setting this flag, we signal our doneness.\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads unigrams and bigrams from the binary file. Doesn't store a full memory representation of the dictionary.
static void readUnigramsAndBigramsBinary(final DictDecoder dictDecoder, final Map<Integer, String> words, final Map<Integer, Integer> frequencies, final Map<Integer, ArrayList<PendingAttribute>> bigrams) throws IOException, UnsupportedFormatException { // Read header final FileHeader header = dictDecoder.readHeader(); readUnigramsAndBigramsBinaryInner(dictDecoder, header.mHeaderSize, words, frequencies, bigrams, header.mFormatOptions); }
[ "public void readInDictionary() {\n ScrabbleDictionaryTrie = new Trie();\n File file = new File(\"ScrabbleDictionary.txt\");\n try (BufferedReader br = new BufferedReader(new FileReader(file))) {\n String line;\n while ((line = br.readLine()) != null){\n ScrabbleDictionaryTrie.insert(line);\n }\n }\n catch (IOException e){\n System.out.print(e.getStackTrace());\n }\n }", "public void reverseReadInDictionary() {\n ScrabbleDictionaryTrie = new Trie();\n File file = new File(\"ScrabbleDictionary.txt\");\n try (BufferedReader br = new BufferedReader(new FileReader(file))){\n String line;\n while ((line = br.readLine()) != null){\n ScrabbleDictionaryTrie.insert(new StringBuilder(line).reverse().toString());\n }\n }\n catch (IOException e){\n System.out.print(e.getStackTrace());\n }\n }", "public BoggleDictionary(String fname) throws Exception {\n dictionary = new HashSet<String>();\n Scanner in = new Scanner(new File(fname));\n\n while (in.hasNext()) {\n String word = in.next();\n word = word.toUpperCase();\n addWord(word);\n }\n\n }", "public static void readDictionary()\r\n\t{\r\n\t\t//It trys to read over the file using try-catch in case of an Exception\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"english.0\");\r\n\t\t\tScanner scan = new Scanner(file);\r\n\t\t\t//It reads over the file as long as there are words to read and we insert them into the given storage\r\n\t\t\twhile(scan.hasNext()) {\r\n\t\t\t\tdata.insert(scan.next());\r\n\t\t\t}\r\n\t\t\tscan.close(); \r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t}\r\n\t}", "public static void readDict() throws IOException{\n\t\tSystem.out.println(\"Reading in Dictionary...\");\n\t\tDictionary = new QuadraticProbingHashTable<String>();\n\t\t//Reads file line by line and word by word\n\t\tFile openFile = new File(dictName);\n\t\tScanner dictreader = new Scanner(openFile);\n\t\tint i =0;\n\t\twhile(dictreader.hasNextLine()){\n\t\t\tDictionary.insert(dictreader.nextLine()); //adds words to Dictionary\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"Dictionary read.\");\n\t}", "private void populateDictionary() {\n Scanner scanner = null;\n try {\n scanner = new Scanner(new FileInputStream(filePath));\n while(scanner.hasNextLine()) {\n String word = scanner.nextLine();\n rwDictionary.put(reducedWord(word), word);\n lcDictionary.put(word.toLowerCase(), word);\n }\n } catch(IOException e) {\n System.err.println(e.toString());\n e.printStackTrace();\n } finally {\n if(scanner != null) {\n scanner.close();\n }\n }\n }", "private void readDictionary(String dictFile) {\n\t\tString dictSig;\n\n\t\ttry {\n\t\t\tScanner in = new Scanner(file);\n\t\t\tString word;\n\n\t\t\twhile(in.hasNextLine()) {\n\t\t\t\tword = in.nextLine();\n\n\t\t\t\tif (isValidWord(word)) {\n\t\t\t\t\tdictSig = wordToSignature(word);\n\n\t\t\t\t\tTreeSet<String> temp;\n\n\t\t\t\t\t/* If the wordSet already contains this key, then add the\n\t\t\t\t\t * new word to the set. */\n\t\t\t\t\tif (wordSet.containsKey(dictSig)) {\n\t\t\t\t\t\ttemp = wordSet.get(dictSig);\n\n\t\t\t\t\t/* Otherwise, this is the first instance of this signature,\n\t\t\t\t\t * so add it to a new set and add the set. */\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttemp = new TreeSet<String>();\n\t\t\t\t\t}\n\t\t\t\t\ttemp.add(word);\n\t\t\t\t\twordSet.put(dictSig, temp);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"Dictionary file not found.\");\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n List<String> bigrams(String word){\n\n HashSet<String> bigramSet = new HashSet<>();\n File_Map file_map = (File_Map)wmap.get(word);\n\n Iterator fmItr = file_map.fnames.iterator();\n while(fmItr.hasNext()){ // scan every file that contains the word\n\n String fileName = (String)fmItr.next();\n Iterator posItr = ((ArrayList<Integer>)(file_map.get(fileName))).iterator();\n\n while(posItr.hasNext()){ // scan every position of current file for the word\n\n Integer currPos =(Integer) posItr.next();\n Iterator itr= wmap.iterator();\n\n while(itr.hasNext()){ // scan every word that contained by wmap for bi-gram match\n\n Word_Map.Node currNode = (Word_Map.Node)itr.next();\n if(!(currNode.getKey().equals(word)) && currNode.getVal().containsKey(fileName)){\n Iterator searchArrItr = currNode.getVal().get(fileName).iterator();\n\n while(searchArrItr.hasNext()){\n if((Integer) searchArrItr.next() == (currPos+1)){\n bigramSet.add(word+\" \"+currNode.getKey());\n }\n }\n }\n }\n }\n }\n\n return new ArrayList<>(bigramSet);\n }", "private void readDictionaryFile(InputStream dictionary, CharsetDecoder decoder) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(dictionary, decoder));\n // TODO: don't create millions of strings.\n String line = reader.readLine(); // first line is number of entries\n int numEntries = Integer.parseInt(line);\n \n // TODO: the flags themselves can be double-chars (long) or also numeric\n // either way the trick is to encode them as char... but they must be parsed differently\n while ((line = reader.readLine()) != null) {\n String entry;\n HunspellWord wordForm;\n \n int flagSep = line.lastIndexOf('/');\n if (flagSep == -1) {\n wordForm = NOFLAGS;\n entry = line;\n } else {\n // note, there can be comments (morph description) after a flag.\n // we should really look for any whitespace\n int end = line.indexOf('\\t', flagSep);\n if (end == -1)\n end = line.length();\n \n String flagPart = line.substring(flagSep + 1, end);\n if (aliasCount > 0) {\n flagPart = getAliasValue(Integer.parseInt(flagPart));\n } \n \n wordForm = new HunspellWord(flagParsingStrategy.parseFlags(flagPart));\n Arrays.sort(wordForm.getFlags());\n entry = line.substring(0, flagSep);\n if(ignoreCase) {\n entry = entry.toLowerCase(Locale.ENGLISH);\n }\n }\n \n List<HunspellWord> entries = words.get(entry);\n if (entries == null) {\n entries = new ArrayList<HunspellWord>();\n words.put(entry, entries);\n }\n entries.add(wordForm);\n }\n }", "void readData(){\n try \n { \n File file=new File(\"dictionary.txt\"); //creates a new file instance \n FileReader fr=new FileReader(file); //reads the file \n BufferedReader br=new BufferedReader(fr); //creates a buffering character input stream \n String line; \n\n // Taking inputs from the file line by line \n while((line=br.readLine())!=null) \n { \n // storing each word and its meaing in HashMap \n hm.put(line.substring(0,line.indexOf(\":\")),line.substring(line.indexOf(\":\"))); \n } \n fr.close(); //closes the stream and release the resources \n } \n //Handles any input/output exceptions in a file\n catch(IOException e) \n { \n e.printStackTrace(); \n } \n }", "private void processFileEntries(final File filePath, Map<String, Integer> bigramHistogramMap) {\n\n BufferedInputStream bis = null;\n FileInputStream fis = null;\n\n try {\n\n // create FileInputStream object\n fis = new FileInputStream(filePath);\n\n // create object of BufferedInputStream\n bis = new BufferedInputStream(fis);\n\n String stringLine;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(bis));\n\n String previousWord = \"\";\n\n while ((stringLine = br.readLine()) != null) {\n previousWord = addBigramHistogramEntry(stringLine, previousWord, bigramHistogramMap);\n }\n\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found - \" + e);\n } catch (IOException ioe) {\n System.out.println(\"Exception while reading file - \" + ioe);\n } catch (Exception e) {\n System.out.println(\"Unable to load: \" + filePath.getName());\n } finally {\n // close the streams using close method\n try {\n if (fis != null) {\n fis.close();\n }\n if (bis != null) {\n bis.close();\n }\n } catch (IOException ioe) {\n System.out.println(\"Error while closing stream : \" + ioe);\n }\n }\n }", "private void readWordFile(\n Path path, Map<String, Integer> word2index, Map<Integer, String> index2word) {\n\n try (BufferedReader in = Files.newBufferedReader(\n path, StandardCharsets.UTF_8)) {\n String line;\n int cnt = 1;\n while ((line = in.readLine()) != null) {\n //System.out.println(\"IW: \" + line + \" cnt: \" + cnt);\n word2index.put(line, cnt);\n index2word.put(cnt, line);\n cnt++;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public final void loadDict() {\r\n try {\r\n FileInputStream inf = new FileInputStream(dictionary);\r\n char let;\r\n String str = \"\";\r\n int n = 0;\r\n while ((n = inf.read()) != -1) {\r\n let = (char) n;\r\n if (Character.isLetter(let)) {\r\n str += Character.toLowerCase(let);\r\n }\r\n if ((Character.isWhitespace(let) || let == '-') && !str.isEmpty()) { \r\n dictList[str.charAt(0) - 97].add(str);\r\n str = \"\";\r\n\r\n }\r\n\r\n }\r\n inf.close();\r\n\r\n } catch (IOException e) {\r\n\r\n e.printStackTrace();\r\n\r\n }\r\n }", "void loadDictionary(InputStream in) throws IOException;", "@Override\n public void useDictionary(String dictionaryFileName) throws IOException {\n Path dictionaryFilePath = Paths.get(dictionaryFileName);\n Scanner in = new Scanner(dictionaryFilePath, StandardCharsets.UTF_8.displayName());\n\n dictionary = new Trie();\n\n while (in.hasNext()) {\n dictionary.add(in.next());\n }\n\n }", "private NodeVO loadDictionary() throws IOException {\n\t\t// Reading and mapping dictionary\n\t\tNodeVO rootNode = new NodeVO();\t\n\t\tNodeVO parentNode;\n\t\tNodeVO prevNode;\n\t\tBufferedReader textreader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(this.getClass().getResourceAsStream(\"/\" + Constants.DICTIONARY_FILE_NAME)));\n\t\t\n\t\tString line;\n\t\twhile( (line = textreader.readLine()) != null) {\n\t\t\t\n\t\t\tboolean word = false;\n\t\t\tint length = line.length();\n\t\t\tchar c = line.charAt(0);\n\t\t\t\n\t\t\t// establish root node for word, has a height of length - 1\n\t\t\tparentNode = addNode(rootNode, c, word, length-1);\n\t\t\tprevNode = parentNode;\n\t\t\t\n\t\t\t// Iterating all letters of the word and building the tree structure\n\t\t\tfor(int i = 1; i < length; i++) {\n\t\t\t\tif (i == length - 1) {\n\t\t\t\t\tword = true;\n\t\t\t\t}\n\t\t\t\tprevNode = addNode(prevNode, line.charAt(i), word, length - i - 1);\n\t\t\t}\n\t\t}\n\t\treturn rootNode;\n\t}", "private final void readDictionary() {\n\t\tInputStream in = this.getClass().getResourceAsStream(\"dictionary.txt\");\n\t\tif (in == null) {\n\t\t\tthrow new RuntimeException(\"dictionary.txt is missing\");\n\t\t}\n\t\tScanner dictionaryInput = new Scanner(in);\n\t\twhile (dictionaryInput.hasNext()) {\n\t\t\tString word = dictionaryInput.next();\n\t\t\tthis.words.add(word.trim());\n\t\t}\n\t\tdictionaryInput.close();\n\t}", "private void readFile(){\r\n //path to the file with the protein id's and the conversion factors.\r\n Path file = Paths.get(\"C:\\\\Users\\\\Rutger\\\\Desktop\\\\conversionfactors.txt\");\r\n Charset charset = Charset.forName(\"US-ASCII\");\r\n try(BufferedReader reader = Files.newBufferedReader(file, charset)){\r\n String line;\r\n while((line = reader.readLine()) != null){\r\n String[] splittedLine = line.split(\"\\t\");\r\n proteinMap.put(splittedLine[0], splittedLine[1]);\r\n }\r\n }catch (IOException x){\r\n System.err.format(\"IOException: %s%n\",x);\r\n }\r\n }", "HashMap<String, Integer> readWordtoIds(String fileName) {\n HashMap<String, Integer> wordId = new HashMap<>();\n\n try {\n ObjectInputStream ois = new ObjectInputStream(new FileInputStream(this.getFilePath(fileName)));\n HashMap<String, Integer> objects = (HashMap<String, Integer>) ois.readObject();\n wordId.putAll(objects);\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n return wordId;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new postal address use.
private PostalAddressUse(String code, String codeSystem) { CODE = code; CODE_SYSTEM = codeSystem; }
[ "Address createAddress();", "public Address createAddress(String address);", "public @NotNull Address newAddress();", "Adresse createAdresse();", "public Address() {\r\n\t\tsuper();\r\n\t}", "Adressen createAdressen();", "AddressType createAddressType();", "public Address(){}", "public static Address addAddress() {\r\n\r\n\t\tSystem.out.println(\"Please enter the building number of the supplier:\");\r\n\r\n\t\tint bldNum = Validation.intValidation();\r\n\r\n\r\n\r\n\t\tSystem.out.println(\"Please enter the supplier's street name:\");\r\n\t\tString bldStreet = Validation.stringNoIntsValidation();\r\n\r\n\r\n\r\n\t\tSystem.out.println(\"Please enter the town the supplier is in:\");\r\n\t\tString bldTown = Validation.stringNoIntsValidation();\t\t\r\n\r\n\t\tSystem.out.println(\"Please enter the postcode for the supplier:\");\r\n\t\tString bldPCode = Validation.stringValidation();\r\n\r\n\t\tSystem.out.println(\"Please enter the country the supplier is in:\");\r\n\t\tString bldCountry = Validation.stringNoIntsValidation();\r\n\r\n\t\tAddress newAddress = new Address(bldNum, bldStreet, bldTown, bldPCode, bldCountry);\r\n\r\n\t\treturn newAddress;\r\n\r\n\t}", "public Address() {\n this(Register.NO_REG, Register.NO_REG, NO_SCALE, 0);\n }", "public Address() {\n\t\taddress = new AD();\n\t\tisNull();\n\t}", "public Address postalCode(String postalCode) {\n this.postalCode = postalCode;\n return this;\n }", "public Adresses(String houseNo, String address, String postCode) {\n this.houseNo = houseNo;\n this.address = address;\n this.postCode = postCode;\n }", "public AddressRecord() {\n\t\tsuper(com.fhoster.jooq4hibernate.jooq.tables.Address.ADDRESS);\n\t}", "public Address(Long id, String country, String city, String postcode, String street, String housenumber,\r\n\t\t\tint apartment) {\r\n\t\tsuper();\r\n\t\tthis.id = id;\r\n\t\tthis.country = country;\r\n\t\tthis.city = city;\r\n\t\tthis.postcode = postcode;\r\n\t\tthis.street = street;\r\n\t\tthis.housenumber = housenumber;\r\n\t\tthis.apartment = apartment;\r\n\t}", "public Addresses() {\n this(DSL.name(\"addresses\"), null);\n }", "public Addresses(Name alias) {\n this(alias, ADDRESSES);\n }", "public AddressUnit() {}", "public GoogleMapsAddressFieldMapping()\n\t{\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use current picture generator to write in a picture. currentPictureGnerator would use the passedin picture as a starting point
public void writePicture(Picture p){ //Generate Pixel 2D array Pixel[][] copiedP = new Pixel[p.height()][p.width()]; for(int j = 0; j < copiedP.length; j++){ for(int i = 0; i < copiedP[j].length; i++){ copiedP[j][i] = new Pixel(i, j, p); } } //Modify the Pixels for(int j = 0; j < generatorGrid.length; j++){ for(int i = 0; i < generatorGrid[j].length; i++){ try{ copiedP[startY+j][startX+i]= generatorGrid[j][i].predictPixel(copiedP[startY+j][startX+i-1], copiedP[startY+j-1][startX+i-1],copiedP[startY+j-1][startX+i]); }catch(ArrayIndexOutOfBoundsException e){ System.out.println("i: "+i+"; j: "+j); System.out.println("startX: "+startX+"; startY: "+startY); } } } //Displayed the predicted pixels on the picture for(int j = 0; j < copiedP.length; j++){ for(int i = 0; i < copiedP[j].length; i++){ copiedP[j][i].show(p); } } }
[ "private synchronized void recordImage()\n {\n String prefix = \"out_\";\n String outFilePath = outputFolder + \"\\\\\";\n outFilePath += prefix + \"R\" + regionCurrentVar + \"_\" + iteration + \".png\" ;\n\n if (Constants.DEBUG) {\n System.out.println(\"output: \" + outFilePath);\n }\n\n BufferedImage image = Main.getInstance().getCameraImagePanel().getImage();\n File outputFile = new File(outFilePath);\n String formatName = \"png\";\n\n\n if (image != null) {\n try {\n ImageIO.write(image, formatName, outputFile);\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public void writeToImage() \r\n\t{\r\n\r\n\t\t_imageWriter.writeToImage();\r\n\r\n\t}", "public void writeToImage() {\n _imageWriter.writeToImage();\n }", "public void takePic()\n { \n if(this.energy > 0){\n if(this.numPics >= this.mem)\n {\n System.out.println(\"Error:Memory full\");\n }\n \n else{\n this.numPics = this.numPics + 1;\n System.out.println(name + \" took a \" + getDirectionName() + \" facing picture at [\" + x + \",\" + y +\"]\");\n this.energy -= 1;\n }\n }\n else{\n System.out.println(\"Error:Not enough energy.\");\n }\n }", "public void writeToImage() {\n imageWriter.writeToImage();\n }", "public abstract Image gen();", "private void updatePicture() {\n \tif (!picture.getText().equals(\"\")) {\n\t\t\tif ( currentProfile != null ) {\n\t\t\t\t//Tries to open the given image fileName from user, throws an error if unable to open file.\n\t\t\t\tGImage image = null;\n\t\t\t\ttry {\n\t\t\t\t\timage = new GImage(picture.getText());\n\t\t\t\t} catch (ErrorException ex) {\n\t\t\t\t\tthrow ex;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Sets the currentProfile picture to the opened image and informs the user accordingly\n\t\t\t\tcurrentProfile.setImage(image);\n\t\t\t\tcanvas.displayProfile(currentProfile);\n\t\t\t\tcanvas.showMessage(\"Picture updated\");\n\t\t\t} else {\n\t\t\t\tcanvas.showMessage(\"Please select a profile to change picture\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "void takeSnapShot(File fileToSave) {\n try {\n /*Construct a new BufferedImage*/\n BufferedImage exportImage = new BufferedImage(this.getSize().width,\n this.getSize().height,\n BufferedImage.TYPE_INT_RGB);\n\n \n /*Get the graphics from JPanel, use paint()*/\n this.paint(exportImage.createGraphics());\n \n fileToSave.createNewFile();\n ImageIO.write(exportImage, \"PNG\", fileToSave);\n } catch(Exception exe){\n System.out.println(\"DrawCanvas.java - Exception\");\n }//catch\n}", "PicturePresentationModel getCurrentPicture();", "public void draw(){\n\t\t/* Stamps a copy of the planet at the position. the file of the planet image is under folder of \"images\".\n\t\t * a mistake easily to be ignored here..*/\n\t\tString imageToDraw = \"images/\" + imgFileName;\n\t\tStdDraw.picture(xxPos, yyPos, imageToDraw);\n\n\t}", "public void gifStream(int counter, ArrayList<ArrayList<Boolean>> gifBoard)\n {\n //The end of the recursive method\n if (counter == 0) {\n try {\n gWriter.close();\n }catch (IOException e)\n {\n dialogModel.setHeaderText(\"Gif stream fault\");\n dialogModel.setContentText(\"Something went wrong while writing to the board to the gif file.\");\n dialogModel.setInformationDialog();\n }\n } else {\n try {\n ArrayList<ArrayList<Boolean>> tempBoard = new ArrayList<>();\n // Initializing the temp board to be the same size as the gifBoard (incoming board).\n for (int x = 0; x < gifBoard.size(); x++) {\n tempBoard.add(new ArrayList<>());\n for (int y = 0; y < gifBoard.get(0).size(); y++) {\n tempBoard.get(x).add(y, numNeighbors(x, y, gifBoard));\n }\n }\n\n gifBoard = tempBoard;\n // Checking the tempboards width and height\n for (int x = 0; x < gifBoard.size(); x++) {\n for (int y = 0; y < gifBoard.get(0).size(); y++) {\n // Cheching every cell in tempboard, if any cell is true, that position is saved in the gif image.\n if(gifBoard.get(x).get(y) == true)\n {\n // Converting cells to pixels for gif image. Making squares equals to cells size to the board, and finding their positions in the gif image,\n // depending on where the true values are placed in the board.\n gWriter.fillRect((int)(x * gifXLength),(int)((x+1) * gifXLength),(int)(y * gifYLength),(int)((y+1) * gifYLength) , Color.blue);\n }\n }\n }\n //placing the image in the gif sequence.\n gWriter.insertAndProceed();\n\n // subtracting the counter by one.\n counter--;\n\n //calling this method, with a counter which is subtracted with one, and the board that has evolved one generation in the future.\n gifStream(counter, gifBoard);\n }catch (IOException e)\n {\n dialogModel.setHeaderText(\"Gif stream fault\");\n dialogModel.setContentText(\"Something went wrong while writing to the board to the gif file.\");\n dialogModel.setInformationDialog();\n }\n }\n\n }", "private void saveFile() {\r\n\t\tFile file = new File(this.picture.getFileName());\r\n\r\n\t\ttry {\r\n\t\t\tImageIO.write(this.picture.getBufferedImage(),\r\n\t\t\t\t\tthis.picture.getExtension(), file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(this.pictureFrame,\r\n\t\t\t\t \"Could not save file.\",\r\n\t\t\t\t \"Save Error\",\r\n\t\t\t\t JOptionPane.WARNING_MESSAGE);\r\n\t\t}\r\n\r\n\t}", "private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}", "public MyroImage takePicture()\n {\n assert flukeConnected() : \"Scribbler does not have a Fluke board\";\n\n return takePicture( IMAGE_COLOR );\n }", "private void saveProfPic() {\r\n mImageView.buildDrawingCache();\r\n Bitmap bmap = mImageView.getDrawingCache();\r\n try {\r\n FileOutputStream fos = openFileOutput(\r\n getString(R.string.prof_photo_filename), MODE_PRIVATE);\r\n bmap.compress(Bitmap.CompressFormat.PNG, 100, fos);\r\n fos.flush();\r\n fos.close();\r\n } catch (IOException ioe) {\r\n ioe.printStackTrace();\r\n }\r\n }", "public void writeToimage(){\n\t\tFile ouFile = new File(PROJECT_PATH + \"/\" + _imageName + \".jpg\");\n\t\ttry \n\t\t{\n\t\t\tImageIO.write(_image, \"jpg\", ouFile);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void takePicture() {\n\n captureStillPicture();\n }", "protected abstract GraphicsWriter newGraphicsWriter();", "public void SetPictureToSend()\n {\n\n MessageListItem theItem = null;\n\n int listCount = pictureListView.getCount();\n for(int index = listCount-1; index>=0; index--)\n {\n if(pictureListView.isItemChecked(index) == true)\n {\n\n theItem = (MessageListItem)applicationState.getPictureList().get(index);\n byte[] pngImage = theItem.content();\n\n applicationState.setLastMessage(theItem);\n //DECODE PNG to Bitmap and set last picture\n pngToBitmapSetLastPicture(pngImage,theItem);\n //applicationState.setLastPicture(bitmap);\n //applicationState.pictureToView(theItem);\n\n }\n }\n\n\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the value associated with the column: examination_required
public java.lang.String getExaminationRequired () { return examinationRequired; }
[ "public void setExaminationRequired (java.lang.String examinationRequired) {\n\t\tthis.examinationRequired = examinationRequired;\n\t}", "int getInvalidMatrixDetailsValue();", "public String getAssistExam() {\n return assistExam;\n }", "io.dstore.values.BooleanValue getRequired();", "public java.lang.String getExam() {\n return exam;\n }", "public net.morimekta.providence.model.FieldRequirement getRequirement() {\n return isSetRequirement() ? mRequirement : kDefaultRequirement;\n }", "public String getInExistingMedicalCondition() { return inExistingMedicalCondition; }", "@NonNull\n String getNecessaryAttribute();", "java.lang.String getClaimchecknum();", "public java.lang.String getPhysicalExamination () {\n\t\treturn physicalExamination;\n\t}", "public String getExpresseligible() {\r\n return expresseligible;\r\n }", "public CWE getAccessRestrictionValue() { \r\n\t\tCWE retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }", "public String getDecision() {\n return decision;\n }", "public String getArrival_required() {\n\t\treturn arrival_required;\n\t}", "public String getNecessary() {\n return necessary;\n }", "public void getQuestion(){\n // ensure question is set\n if(values[0] == 0 && values[1] == 0)\n setQuestion();\n\n System.out.printf(\"How much is %d %c %d? \", values[0], operation, values[1]);\n }", "public Integer getExamtype() {\n return examtype;\n }", "java.lang.String getClaimCheckNumber();", "public java.lang.String getExaminationPlace () {\n\t\treturn examinationPlace;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is used to "tag" the functions which requires a request to execute.
public interface RequestFunction {}
[ "Map<RequestUtil.RequestType, RequestFunction> getFunctions();", "public void handleRequest(Request req) {\n\n }", "private void addRequest(InstanceRequest request) {\r\n\t\t\r\n\t}", "Object handle(Object request);", "@Override\n public void execute(String tagName, Map<String, Object> parameters) {\n Log.i(\"LazzyBee\", \"Custom function call tag :\" + tagName + \" is fired.\");\n }", "public void addRequest(Request req) {\n\n }", "@Override\n public void execute(String tagName, Map<String, Object> parameters) {\n Log.i(\"CuteAnimals\", \"Custom function call tag :\" + tagName + \" is fired.\");\n }", "private void signRequest(HttpRequestBase request){\n\t}", "public static void badFunction(SpRTRequest req, Logger l) throws SpRTException{\n\t\tString error = \"Unexpected Function: \" + req.getFunction();\n\t\tl.log(Level.WARNING, error + System.getProperty(\"line.separator\"));\n\t}", "void applyTags(ReaderContext context, Operation operation, Method method);", "private void endFunctionName() {\n Declarable d = createDeclarable();\n if (!(d instanceof Function)) {\n String s = String.format(\"A %s is not an instance of a Function\",\n d.getClass().getName());\n throw new CacheXmlException(s);\n }\n\n Object fs = stack.peek();\n if (!(fs instanceof FunctionServiceCreation)) {\n throw new CacheXmlException(\n String.format(\"A %s is only allowed in the context of %s MJTDEBUG e=%s\",\n FUNCTION, FUNCTION_SERVICE, fs));\n }\n FunctionServiceCreation funcService = (FunctionServiceCreation) fs;\n funcService.registerFunction((Function) d);\n }", "@Override\n\tpublic <T> void preProcess(NativeWebRequest request, Callable<T> task)\n\t\t\tthrows Exception {\n\t\tlogger.debug(\"preProcess[4async]================== task=\" + task);\n\t}", "public interface ExecuteRequest {\n /**\n * Execute http requests logic\n */\n void execute();\n }", "public Function<Request, Request> requestFilter();", "void requestTip(TipRequest request);", "public List<RequestInfo> getExecutedRequests();", "public interface RequestObserver {\n /**\n * Called on a free request.\n */\n void onFree();\n \n /**\n * Called on an 'in' (Park) request.\n */\n void onIn();\n \n /**\n * Called on an 'out' (Unpark) request.\n */\n void onOut();\n \n /**\n * Called on a 'quit' request.\n */\n void onQuit();\n \n /**\n * Called on an unidentified request.\n *\n * @param data The request data\n */\n void onUnknown(String data);\n}", "public void handleRequest(ExtractionRequest request);", "public interface Filter {\n void execute(String request);\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculates whether a sensor and box intersect.
public static boolean doesSensorCollideWithBox(Sensor sensor, Box box) { return doSquaresIntersect(sensor.getX(), sensor.getY(), sensor.getWidth(), sensor.getHeight(), box.getX(), box.getY(), box.getWidth(), box.getHeight()); }
[ "public abstract boolean intersectsBoundingBox(BoundingBox box);", "boolean IntersectedBox(Ray ray);", "boolean intersects( Geometry gmo );", "public abstract boolean intersects(Rectangle rect);", "public boolean isIntersect(float tX, float tY) {\n //If X falls between left and right of button\n if((tX >= x) && (tX <= (x + width))) {\n //If Y falls between top and bottom of button\n if((tY >= y) && (tY <= (y + height))) {\n return true;\n }\n }\n return false;\n }", "public boolean intersects(Platform p){\n \treturn box.intersects(p.getBox());\r\n }", "public boolean IntersectedBox(Ray ray){\n Point3D p= ray.get_p0();\n Vector d= ray.getDir();\n double TminX, TmaxX, TminY, TmaxY, TminZ, TmaxZ, Tmin, Tmax;\n //To find where a ray intersects\n double Tx1= (x1- p.getC1().get())/ d.getHead().getC1().get();\n double Tx2= (x2- p.getC1().get())/ d.getHead().getC1().get();\n //To find what solution is really an intersection with the box, you require the greater value of the t parameter for the intersection at the min plane.\n if(Tx1>Tx2){\n TmaxX= Tx1;\n TminX= Tx2;\n }\n else{\n TmaxX= Tx2;\n TminX= Tx1;\n }\n\n double Ty1= (y1- p.getC2().get())/ d.getHead().getC2().get();\n double Ty2= (y2- p.getC2().get())/ d.getHead().getC2().get();\n if(Ty1>Ty2){\n TmaxY= Ty1;\n TminY= Ty2;\n }\n else{\n TmaxY= Ty2;\n TminY= Ty1;\n }\n\n if(TminX > TmaxY || TminY >TmaxX)\n return false;\n Tmin= (TminX<TminY? TminX: TminY);\n Tmax= (TmaxX>TmaxY? TmaxX: TmaxY);\n\n double Tz1= (z1- p.getC3().get())/ d.getHead().getC3().get();\n double Tz2= (z2- p.getC3().get())/ d.getHead().getC3().get();\n if(Tz1>Tz2){\n TmaxZ= Tz1;\n TminZ= Tz2;\n }\n else{\n TmaxZ= Tz2;\n TminZ= Tz1;\n }\n\n if(TminZ>Tmax || Tmin>TmaxZ)\n return false;\n Tmin= (TminZ<Tmin? TminZ: Tmin);\n Tmax= (TmaxZ>Tmax? TmaxZ: Tmax);\n\n return true;\n }", "public abstract boolean intersects(BoundingVolume volume);", "public boolean areIntersecting() {\n return intersection != null;\n }", "int intersects(Sector sector);", "public abstract boolean intersectsBoundingSphere(BoundingSphere sphere);", "public abstract boolean intersects(Ray3f ray);", "boolean intersects(Rectangle2D bounds);", "public boolean intersects(HitBox h){\n\t\treturn rect.intersects(h.getRectangle());\n\t}", "public final boolean isIntersects()\r\n {\r\n return myIntersects;\r\n }", "public boolean intersectsBox(gb_AABB3 box) {\n gb_Vector3 t = box.position.tmp().sub(position);\n return m_MathUtils.abs(t.x) <= (extent.x + box.extent.x)\n && m_MathUtils.abs(t.y) <= (extent.y + box.extent.y)\n && m_MathUtils.abs(t.z) <= (extent.z + box.extent.z);\n }", "private static boolean doBoundingBoxesIntersect(Rectangle a, Rectangle b) {\r\n\t return a.getMinX() <= b.getMaxX() \r\n\t && a.getMaxX() >= b.getMinX() \r\n\t && a.getMinY() <= b.getMaxY()\r\n\t && a.getMaxY() >= b.getMinY();\r\n\t}", "public abstract boolean intersects(Vector3f point);", "public abstract boolean isInside(double x, double y);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts this Validation to an Option. If the Validation is a Success, Some is returned otherwise None.
public Option<B> toOption() { return isSuccess() ? Option.some(getSuccess()) : Option.<B> none(); }
[ "default Optional<V> toOptional() {\n V item = orElseNull();\n return item == null ? Optional.empty() : Optional.of( item );\n }", "public ValidationResult getValidationResult();", "public OptionalCandidate<S, T> tryout(S candidate) {\n mapper.apply(candidate).ifPresent(value -> this.value = Optional.of(value));\n return this;\n }", "private static Optional<Schema> isOfOptionType(Schema schema) {\n Preconditions.checkNotNull(schema);\n\n // If not of type UNION, cant be an OPTION\n if (!Schema.Type.UNION.equals(schema.getType())) {\n return Optional.<Schema>absent();\n }\n\n // If has more than two members, can't be an OPTION\n List<Schema> types = schema.getTypes();\n if (null != types && types.size() == 2) {\n Schema first = types.get(0);\n Schema second = types.get(1);\n\n // One member should be of type NULL and other of non NULL type\n if (Schema.Type.NULL.equals(first.getType()) && !Schema.Type.NULL.equals(second.getType())) {\n return Optional.of(second);\n } else if (!Schema.Type.NULL.equals(first.getType()) && Schema.Type.NULL.equals(second.getType())) {\n return Optional.of(first);\n }\n }\n\n return Optional.<Schema>absent();\n }", "org.seasailing.protobuf.RaceDTO.Option getOption();", "public boolean getValidationSuccess()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALIDATIONSUCCESS$4, 0);\r\n if (target == null)\r\n {\r\n return false;\r\n }\r\n return target.getBooleanValue();\r\n }\r\n }", "public org.apache.xmlbeans.XmlBoolean xgetValidationSuccess()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(VALIDATIONSUCCESS$4, 0);\r\n return target;\r\n }\r\n }", "public scala.Option<S> getOption () ;", "public Optional<Object> value();", "public boolean getValidation() {\n return validate;\n }", "public String getValidation() {\n return this.validation;\n }", "com.google.longrunning.OperationOrBuilder getValidationOperationOrBuilder();", "@Transactional(readOnly = true)\n public Optional<OptionValue> findOne(Long id) {\n log.debug(\"Request to get OptionValue : {}\", id);\n return optionValueRepository.findById(id);\n }", "public AddressValidationStatus addressValidationStatus() {\n return this.innerProperties() == null ? null : this.innerProperties().addressValidationStatus();\n }", "public IValidatorOutcome getADLValidatorOutcome() {\r\n\t\tmLogger.entering(\"ADLSCORMValidator\", \"getADLValidatorOutcome()\");\r\n\r\n\t\t// create an instance of the ADLValidator object with the current state of\r\n\t\t// of the ADLSCORMValidator attributes values\r\n\r\n\t\tADLValidatorOutcome outcome = new ADLValidatorOutcome(getDocument(), getIsIMSManifestPresent(), getIsWellformed(), getIsValidToSchema(),\r\n\t\t getIsValidToApplicationProfile(), getIsExtensionsUsed(), getIsRequiredFiles(), getIsRootElement());\r\n\r\n\t\tmLogger.exiting(\"ADLSCORMValidator\", \"getADLValidatorOutcome()\");\r\n\t\treturn outcome;\r\n\t}", "public Optional<EtdOptionType> getOptionType() {\n return Optional.ofNullable(optionType);\n }", "com.google.longrunning.Operation getValidationOperation();", "private static Option makeOptionRequired(Option opt) {\n opt.setRequired(true);\n return opt;\n }", "public Result() {\n this.status = Status.SUCCESS;\n this.message = \"\";\n this.value = Optional.empty();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the trending regions sorted by popularity.
@Finder("get_trending_by_popularity") public List<Trending> getTrendingByPopularity(@PagingContextParam PagingContext pagingContext) { return null; }
[ "protected HRegionInfo[] getMostLoadedRegions() {\n ArrayList<HRegionInfo> regions = new ArrayList<HRegionInfo>();\n synchronized (onlineRegions) {\n for (HRegion r : onlineRegions.values()) {\n if (regions.size() < numRegionsToReport) {\n regions.add(r.getRegionInfo());\n } else {\n break;\n }\n }\n }\n return regions.toArray(new HRegionInfo[regions.size()]);\n }", "public static List<Integer> getInterestOfRegion(){\n List<Integer> interestOfRegions = new ArrayList<>();\n while (interestOfRegions.size() < Constants.INTEREST_OF_REGION){\n int regionNum = random.nextInt(Constants.REGIONS * Constants.REGIONS - 1);\n if (!interestOfRegions.contains(regionNum)){\n interestOfRegions.add(regionNum);\n }\n }\n return interestOfRegions;\n\n }", "public List<PDGRegion> getPDGRegions();", "public Regions getRegions () {\n return this.regions;\n }", "public List<TableRegion> getRulingTableRegions() {\n if (this.rulingTableRegions != null) {\n return this.rulingTableRegions;\n }\n\n this.detectAllTableRegions();\n return this.rulingTableRegions;\n }", "int getPopularity();", "public List<Region> getAllRegions() {\n\t\treturn regionDao.findWithNamedQuery(Region.QUERY_FIND_ALL, null);\n\t}", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "private List<Region> experimentFullRegions() {\n\t\tList<Region> rs = new ArrayList<Region>();\n\t\tRegion r;\n\n\t\t// Vassar St\n\t\tr = new Region(\"Vassar-1\");\n\t\tr.addVertex(42.36255147026933, -71.09034599930573);\n\t\tr.addVertex(42.36240877523236, -71.08975591332245);\n\t\tr.addVertex(42.36013353836458, -71.09434785515595);\n\t\tr.addVertex(42.360442721730834, -71.0948091951065);\n\t\trs.add(r);\n\n\t\t// Windsor-1\n\t\tr = new Region(\"Windsor-1\");\n\t\tr.addVertex(42.36302711805193, -71.09707297951508);\n\t\tr.addVertex(42.36297955343571, -71.09641852051544);\n\t\tr.addVertex(42.3615288153431, -71.09657945305634);\n\t\tr.addVertex(42.36186970216797, -71.09723391205597);\n\t\trs.add(r);\n\n\t\t// Mass-1\n\t\tr = new Region(\"Mass-1\");\n\t\tr.addVertex(42.362678310030105, -71.0995620694809);\n\t\tr.addVertex(42.3629954083118, -71.09918656021881);\n\t\tr.addVertex(42.36179042632724, -71.09720172554779);\n\t\tr.addVertex(42.361322696830854, -71.09736265808868);\n\t\trs.add(r);\n\n\t\t// Mass-2\n\t\tr = new Region(\"Mass-2\");\n\t\tr.addVertex(42.36114036066024, -71.09588207871246);\n\t\tr.addVertex(42.360791542163774, -71.09660091072845);\n\t\tr.addVertex(42.36106901157985, -71.0969335046463);\n\t\tr.addVertex(42.36156052582344, -71.09657945305634);\n\t\trs.add(r);\n\n\t\t// Mass-3\n\t\tr = new Region(\"Mass-3\");\n\t\tr.addVertex(42.36035551632001, -71.09489502579498);\n\t\tr.addVertex(42.3601731773427, -71.09523834854889);\n\t\tr.addVertex(42.360577493491306, -71.095978638237);\n\t\tr.addVertex(42.36077568673155, -71.0955816713028);\n\t\trs.add(r);\n\n\t\t/*\n\t\t * Albany-1-full r = new Region(\"Albany-1\");\n\t\t * r.addVertex(42.36087874696942, -71.09530272156525);\n\t\t * r.addVertex(42.361227564981775, -71.0956353154831);\n\t\t * r.addVertex(42.362678310030105, -71.092556139534);\n\t\t * r.addVertex(42.362527687785665, -71.09185876519012); rs.add(r);\n\t\t */\n\n\t\t// Albany-1\n\t\tr = new Region(\"Albany-1\");\n\t\tr.addVertex(42.36172700558263, -71.09442295700836);\n\t\tr.addVertex(42.3614891772202, -71.09410109192658);\n\t\tr.addVertex(42.360823253016186, -71.09553875595856);\n\t\tr.addVertex(42.361084866938036, -71.09590353638458);\n\t\trs.add(r);\n\n\t\t// Albany-2\n\t\tr = new Region(\"Albany-2\");\n\t\tr.addVertex(42.362678310030105, -71.09243812233734);\n\t\tr.addVertex(42.36253561528121, -71.09191240937042);\n\t\tr.addVertex(42.36180628150339, -71.09342517525482);\n\t\tr.addVertex(42.36223436974708, -71.09344663292694);\n\t\trs.add(r);\n\n\t\t// Portland-1\n\t\tr = new Region(\"Portland-1\");\n\t\tr.addVertex(42.362757584750575, -71.09386505753326);\n\t\tr.addVertex(42.36273380234492, -71.09342517525482);\n\t\tr.addVertex(42.36217887699113, -71.09354319245148);\n\t\tr.addVertex(42.36198861574153, -71.09409036309052);\n\t\trs.add(r);\n\n\t\t// Main-2\n\t\tr = new Region(\"Main-1\");\n\t\tr.addVertex(42.36321737615673, -71.09918656021881);\n\t\tr.addVertex(42.36356618118581, -71.09917583138275);\n\t\tr.addVertex(42.36342348845344, -71.0969335046463);\n\t\tr.addVertex(42.363042972916034, -71.09699787766266);\n\t\trs.add(r);\n\n\t\t// Main-2\n\t\tr = new Region(\"Main-2\");\n\t\tr.addVertex(42.36318566651262, -71.09384359986115);\n\t\tr.addVertex(42.36278929461076, -71.09392943054962);\n\t\tr.addVertex(42.36297162599619, -71.09643997818756);\n\t\tr.addVertex(42.36336799674776, -71.09641852051544);\n\t\trs.add(r);\n\n\t\t// Main-3\n\t\tr = new Region(\"Main-3\");\n\t\tr.addVertex(42.36300333574834, -71.09216990143585);\n\t\tr.addVertex(42.36271794740286, -71.09249176651764);\n\t\tr.addVertex(42.36277343968266, -71.09333934456635);\n\t\tr.addVertex(42.363106392332284, -71.09324278504181);\n\t\trs.add(r);\n\n\t\t// Main-4\n\t\tr = new Region(\"Main-4\");\n\t\tr.addVertex(42.36289235154579, -71.09035672814178);\n\t\tr.addVertex(42.36259110772208, -71.09038891464996);\n\t\tr.addVertex(42.36264660011392, -71.09166564614105);\n\t\tr.addVertex(42.36303504548448, -71.09157981545258);\n\t\trs.add(r);\n\n\t\tLocation l;\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36035940296916);\n\t\tl.setLongitude(-71.0944926738739);\n\t\tlog(String.format(\"Test point on Vassar is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36081921192526);\n\t\tl.setLongitude(-71.09338760375977);\n\t\tlog(String.format(\"Test point on Vassar is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36160405047349);\n\t\tl.setLongitude(-71.0919177532196);\n\t\tlog(String.format(\"Test point on Vassar is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.3619370093201);\n\t\tl.setLongitude(-71.09123110771179);\n\t\tlog(String.format(\"Test point on Vassar is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36234924163794);\n\t\tl.setLongitude(-71.09039425849915);\n\t\tlog(String.format(\"Test point on Vassar is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.3631736981596);\n\t\tl.setLongitude(-71.09626293182373);\n\t\tlog(String.format(\"Test point on Main-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36303893196785);\n\t\tl.setLongitude(-71.09436392784119);\n\t\tlog(String.format(\"Test point on Main-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.362935875273244);\n\t\tl.setLongitude(-71.09288334846497);\n\t\tlog(String.format(\"Test point on Main-2 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.362785253646265);\n\t\tl.setLongitude(-71.09100580215454);\n\t\tlog(String.format(\"Test point on Main-3 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.362476081807);\n\t\tl.setLongitude(-71.0936987400055);\n\t\tlog(String.format(\"Test point on Portland-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36099362133876);\n\t\tl.setLongitude(-71.09561920166016);\n\t\tlog(String.format(\"Test point on Albany-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36154855716084);\n\t\tl.setLongitude(-71.0943853855133);\n\t\tlog(String.format(\"Test point on Albany-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.362008357414815);\n\t\tl.setLongitude(-71.093430519104);\n\t\tlog(String.format(\"Test point on Albany-2 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.362610849206014);\n\t\tl.setLongitude(-71.09221816062927);\n\t\tlog(String.format(\"Test point on Albany-2 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.3611521749309);\n\t\tl.setLongitude(-71.09653115272522);\n\t\tlog(String.format(\"Test point on Mass-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.3604862471552);\n\t\tl.setLongitude(-71.09537243843079);\n\t\tlog(String.format(\"Test point on Mass-2 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36238887921827);\n\t\tl.setLongitude(-71.09683156013489);\n\t\tlog(String.format(\"Test point on Windsor-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\treturn rs;\n\t}", "List<String> getRegions() {\n // As the regions are stored in a LinkedHashMap the order is preserved.\n // So we can return the keys.\n return new ArrayList<>(apis.keySet());\n }", "public List<TextRegion<?>> regions() {\n return Collections.unmodifiableList(regions);\n }", "public List<String> regions() {\n return this.regions;\n }", "Vector<WebPage> topTenRanked () {\n\t\tVector<WebPage> top= new Vector<WebPage>();\n\t\tSet<WebPage> token = pages.importance.keySet();\n\t\tWebPage original = root;\t\t//Initializing variables\n\t\tWebPage highest = null;\n\t\tWebPage oriWeb = null;\n\t\t\n\t\tint i = 0;\n\t\twhile (i < numNodes(original)/10){\t//Top ten percent\n\t\t\tIterator<WebPage> names = token.iterator();\n\t\t\tDouble high = 0.0;\n\t\t\tDouble low = 0.0;\n\t\t\ti++;\n\t\t\t\n\t\t\tfor(;names.hasNext();) {\n\t\t\t\toriWeb= names.next();\n\t\t\t\tlow = pages.importanceLookUp(oriWeb);\t//Finding importance of oriWeb\n\t\t\t\n\t\t\t\tif (low > high) {\n\t\t\t\t\thigh = low;\n\t\t\t\t\thighest = oriWeb;\t//Finding the highest value through sorting\n\t\t\t\t}\n\t\t\t}\n\t\t\ttop.add(highest);\n\t\t\ttoken.remove(highest);\n\t\t}\n\t\treturn top;\n\t}", "public Stack<Map<Integer, Territory>> getMapsHistoryByOrder() {\n Stack<Map<Integer,Territory>> mapsHistoryByOrder = new Stack<>();\n roundsHistory.forEach(roundHistory -> mapsHistoryByOrder.push(roundHistory.getMapHistory()));\n return mapsHistoryByOrder;\n }", "public List<DistributionRegion> getThisAndChildRegions() {\n\t\tfinal List<DistributionRegion> result = new ArrayList<>();\n\t\tresult.add(this);\n\t\tresult.addAll(getAllChildren());\n\t\treturn result;\n\t}", "public List<AID> getNearbyBars() {\n List<AID> bars = new ArrayList<>(Arrays.asList(this.searchDF(BAR_AGENT + \"_\" + bar.getRegion())));\n bars.remove(this.getAID());\n // TODO: limit number of bars, do it better\n if(bars.isEmpty())\n return bars;\n Collections.shuffle(bars);\n int barsToReturn = bars.size() / 2 + 1;\n return bars.subList(0, barsToReturn);\n }", "public List<Region> listRegions() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn list(Region.class);\n\t}", "@SuppressWarnings(\"rawtypes\")\n public SortedMap<MetricId, Gauge> getGauges() {\n return getGauges(MetricFilter.ALL);\n }", "public ArrayList<Point> largestRegion() {\n\t\t// TODO: YOUR CODE HERE\n\t\tArrayList<Point> biggest = new ArrayList<Point>();\n\t\tint largest = 0;\n\t\tfor (int i = 0; i < regions.size(); i++ ){\n\t\t\tif (regions.get(i).size() > largest){\n\t\t\t\tlargest = regions.get(i).size();\n\t\t\t\tbiggest = regions.get(i);\t\t\n\t\t\t}\t\n\t\t}\n\t\treturn biggest;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Post the User's data to hastebin.
public String postDataToHastebin(UserData data) { HttpClient client = HttpClientBuilder.create().build(); HttpPost post = new HttpPost("https://hastebin.com/documents"); try { post.setEntity(new StringEntity(new GsonBuilder().setPrettyPrinting().create().toJson(data))); HttpResponse response = client.execute(post); String result = EntityUtils.toString(response.getEntity()); return "https://hastebin.com/" + new JsonParser().parse(result).getAsJsonObject().get("key").getAsString(); } catch (IOException e) { e.printStackTrace(); } return "Error posting to hastebin"; }
[ "private void sendUserData() {\n FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();\n DatabaseReference myref = firebaseDatabase.getReference(Objects.requireNonNull(firebaseAuth.getUid()));\n UserProfile userProfile = new UserProfile(name, email, post, 0);\n myref.setValue(userProfile);\n }", "void saveUserData(User user);", "private void sendUserData() {\n\n // creates a firebase database object\n FirebaseDatabase data = FirebaseDatabase.getInstance();\n\n // creates a reference to the database\n DatabaseReference reference = data.getReference(Objects.requireNonNull(mAuth.getUid()));\n\n // creates the user's data\n UserProfile profile = new UserProfile( name, email );\n\n // set them into the database\n reference.setValue( profile );\n }", "private void transferUser(PageData pd){\r\n\t\tTransfer transfer = Transfer.getInstance();\r\n\t\tcom.shouxinjk.ihealth.data.pojo.User user = new com.shouxinjk.ihealth.data.pojo.User();\r\n\t\t user.setUser_id(pd.getString(\"USER_ID\"));\r\n\t\t user.setUserName(pd.getString(\"USERNAME\"));\r\n\t\t user.setName(pd.getString(\"NAME\"));\r\n\t\t user.setIp(pd.getString(\"IP\"));\r\n\t\t user.setPhone(pd.getString(\"PHONE\"));\r\n\t\t user.setEmail(pd.getString(\"EMAIL\"));\r\n\t\t user.setOpenid(pd.getString(\"OPENID\"));\r\n\t\t user.setAlias(pd.getString(\"ALIAS\"));\r\n\t\t user.setBirthday(pd.getString(\"BIRTHDAY\"));\r\n\t\t user.setSex(pd.getString(\"SEX\"));\r\n\t\t user.setBirthPlace(pd.getString(\"BIRTHPLACE\"));\r\n\t\t user.setLivePlace(pd.getString(\"LIVEPLACE\"));\r\n\t\t user.setMarriageStatus(pd.getString(\"MARRIAGESTATUS\"));\r\n\t\t user.setCareer(pd.getString(\"CAREER\"));\r\n\t\t user.setDegree(pd.getString(\"DEGREE\"));\r\n\t\t user.setAvatar(pd.getString(\"AVATAR\"));\r\n\t\t user.setHeight(Integer.parseInt(pd.get(\"HEIGHT\").toString()));\r\n\t\t user.setWeight(Integer.parseInt(pd.get(\"WEIGHT\").toString()));\r\n\t\t SimpleDateFormat format=new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t int age = -1;\r\n\t\t try {\r\n\t\t\tDate birthDate = format.parse(pd.getString(\"BIRTHDAY\"));\r\n\t\t\tint year1 = birthDate.getYear();\r\n\t\t\tDate now = new Date();\r\n\t\t\tint year2 = now.getYear();\r\n\t\t\tage = year2-year1+1;\r\n\t\t} catch (ParseException e) {\r\n\t\t\tlogger.error(\"cannot calcuate user age.\",e);\r\n\t\t}\r\n\t\tuser.setAge(age);\r\n\t\ttransfer.transferUser(user);\r\n\t}", "private void submitUserToServer() {\n\n\t\tUserStorageManager userStorageManager = \n\t\t\t\t\t\tUserStorageManager.getStorageManager();\n\n\t\tList<UserModel> newUserList = new ArrayList<UserModel>();\n\t\tnewUserList.add(mNewUser);\n\n\t\tuserStorageManager.create(newUserList, \n\t\t\t\t\t\tnew RadinListener<UserModel>() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void callback(List<UserModel> items,\n\t\t\t\t\t\t\t\t\t\t\tStorageManagerRequestStatus status) {\n\t\t\t\t\t\t\t\tif (status == StorageManagerRequestStatus.FAILURE) {\n\t\t\t\t\t\t\t\t\tIntent myIntent = \n\t\t\t\t\t\t\t\t\t\t\t\t\tnew Intent(getBaseContext(), LoginActivity.class);\n\t\t\t\t\t\t\t\t\tstartActivity(myIntent);\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tR.string.server_error, Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tUserModel mUser = items.get(0);\n\t\t\t\t\t\t\t\t\tint mId = mUser.getId();\n\n\t\t\t\t\t\t\t\t\tSharedPreferences.Editor editor = prefs.edit();\n\t\t\t\t\t\t\t\t\teditor.putString(getString(R.string.username), \n\t\t\t\t\t\t\t\t\t\t\t\t\tString.valueOf(mId));\n\t\t\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\t\t\tIntent myIntent = \n\t\t\t\t\t\t\t\t\t\t\t\t\tnew Intent(getBaseContext(), HomeActivity.class);\n\t\t\t\t\t\t\t\t\tstartActivity(myIntent);\n\t\t\t\t\t\t\t\t\tfinishAffinity();\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tR.string.user_created, Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t});\n\n\n\t}", "public void setUserData(User user) {\n this.user = user;\n }", "private void pushToHibernate(){\n DATA_API.saveUser(USER);\n }", "private void saveAndRegisterFormData() {\n User user = new User();\n user.setFirstName(mBinding.firstName.getText().toString());\n user.setLastName(mBinding.lastName.getText().toString());\n user.setEmail(mBinding.email.getText().toString());\n user.setPassword(mBinding.ipassword.getText().toString());\n user.setUserRole(mBinding.userRole.getSelectedItem().toString());\n user.setLastUpdate(String.valueOf(System.currentTimeMillis()));\n user.setDateCreated(String.valueOf(System.currentTimeMillis()));\n childTrackViewModel.creatNewUser(user, getActivity());\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n\n resp.setContentType(\"text/html\");\n UserStorage.getInstance().add(new User(atomicInteger.getAndIncrement(), req.getParameter(\"name\"), req.getParameter(\"lastName\"), req.getParameter(\"sex\"), req.getParameter(\"description\")));\n doGet(req, resp);\n }", "private void hardCodeNikesh() {\n User nikesh = new User(\"Nikesh\", new Timeline(), new Subscriptions());\n nikesh.post(\"sunfish sunfish sunfish\");\n jitter.addUser(\"Nikesh\", nikesh);\n }", "public void setUserData(JSONObject userData) throws JSONException {\n this.userData = userData;\n ((TextView) view.findViewById(R.id.post_username)).setText(userData.getString(\"username\"));\n ((TextView) view.findViewById(R.id.post_name)).setText(userData.getString(\"firstname\")\n + \" \" + userData.getString(\"lastname\"));\n }", "private void sendDataUsingObject() {\n UserData userData = new UserData(\"Bipul Islam\", 25);\n databaseReference.setValue(userData);\n }", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public void save() {\n\t\tuserData.saveData();\n\t}", "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse resp)\n throws IOException {\n UserService userService = UserServiceFactory.getUserService();\n User user = userService.getCurrentUser();\n\n String guestbookName = req.getParameter(\"guestbookName\");\n Key guestbookKey = KeyFactory.createKey(\"Guestbook\", guestbookName);\n String content = req.getParameter(\"content\");\n Date date = new Date();\n Prediction predictionClient = PredictionClientFactory\n .getPredictionClient();\n boolean positive = getSentiment(predictionClient, content);\n String language = getLanguage(predictionClient, content);\n Entity greeting = new Entity(\"Greeting\", guestbookKey);\n if (user != null) {\n greeting.setProperty(\"userNickname\", user.getNickname());\n } else {\n greeting.setProperty(\"userNickname\", \"Anonymous\");\n }\n greeting.setProperty(\"date\", date);\n greeting.setProperty(\"content\", content);\n greeting.setProperty(\"positive\", positive);\n greeting.setProperty(\"language\", language);\n\n DatastoreService datastore = DatastoreServiceFactory\n .getDatastoreService();\n datastore.put(greeting);\n\n String redirectUrl =\n \"/guestbook.jsp?guestbookName=\" + guestbookName;\n redirectUrl = resp.encodeRedirectURL(redirectUrl);\n resp.sendRedirect(redirectUrl);\n }", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "@PostMapping(value = \"/addUserToViewSet\", produces = MediaType.APPLICATION_JSON_VALUE)\n public Response addUserToViewSet(@RequestBody Map<String, String> data) {\n String jwt = data.get(\"jwt\");\n String postKey = data.get(\"postKey\");\n\n User user = userService.findByUsername(jwtUtil.extractUsername(jwt));\n ForumPost post = forumService.findByKey(postKey);\n\n if (user == null || post == null) {\n return Response.FAILED;\n }\n\n post.getViewSet().add(user.getUsername());\n forumService.save(post);\n\n return Response.OK;\n }", "private void getUserDetailsFromTwitter() {\n ParseUser user = ParseUser.getCurrentUser();\n try{\n user.setUsername(ParseTwitterUtils.getTwitter().getScreenName());\n } catch(Exception e){\n Log.e(TAG, \"Error retrieving user data\", e);\n }\n\n user.saveInBackground(e -> {\n Log.d(TAG, \"Successfully added user to App user registry\");\n Toast.makeText(this, \"Login Successful\", Toast.LENGTH_LONG).show();\n directSuccessfulUserLogin();\n });\n }", "public void saveUserDetails() {\n\n onBoardUser.setHeight(finalHeight);\n onBoardUser.setWeight(finalWeight);\n onBoardUser.setWeight_unit(0);\n onBoardUser.setHeight_unit(0);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates Scanner over the given file, throws RuntimeException if File isnt correct or not exist
private static Scanner prepareFileScanner(final String filePath) { try { return new Scanner(new File(filePath), StandardCharsets.UTF_8.toString()); } catch (FileNotFoundException e) { throw new IllegalArgumentException("first command line argument has to be valid path to valid and openable file", e); } }
[ "public static Scanner createScanner(File file)\n {\n //Attempt to create a scanner from the file\n Scanner s = null;\n try\n {\n s = new Scanner(file);\n }\n // If file cannot be found throw an exception and return null\n catch (FileNotFoundException e)\n {\n return null;\n }\n return s;\n }", "private static Scanner createScanner(File inputFile)\n\t{\n\t\t/// create Scanner to read from file and also check if the file exists\n\t Scanner in = null; // closes before the end of readDataFile\n\t try \n\t {\n\t \tin=new Scanner(inputFile);\n\t }\n\t catch(FileNotFoundException e) \n\t {\n\t \tSystem.out.println(\"The file \"+ inputFile.getName() + \" can not be found!\");\n\t \tSystem.exit(0);\n\t }\n\t \n\t return in;\n\t}", "public Scanner createScanner(File file) {\n Scanner scanner;\n try {\n scanner = new Scanner(file);\n\n } catch (FileNotFoundException e) {\n scanner = null;\n }\n return scanner;\n }", "private static Scanner getScannerOfFile (File f) throws FileNotFoundException {\n\t\tScanner scan = new Scanner(f);\n\t\treturn scan;\n\t}", "public static Scanner getScanner(File file) {\n Scanner scanner = null;\n try {\n scanner = new Scanner(file);\n } catch (IOException e) {\n System.err.println(\"input error\");\n }\n return scanner;\n }", "public static Scanner initWeatherFileScanner() throws FileNotFoundException {\n File weatherFile = new File(\"weather.txt\");\n return new Scanner(weatherFile);\n }", "private void init( String filePath )\r\n \t{\r\n \t\t// Initialize the file\r\n \t\tif( this.inputFile == null )\r\n \t\t\tthis.inputFile = new File( filePath );\r\n \t\t\r\n \t\t// Create a scanner to easily check file contents\r\n \t\ttry \r\n \t\t{\r\n \t\t\tthis.scanner = new Scanner( inputFile );\r\n \t\t} \r\n \t\tcatch (FileNotFoundException e) \r\n \t\t{\r\n \t\t\tSystem.out.println( \"ParserError-init: Scanner couldn't find file!\" );\r\n \t\t\te.printStackTrace();\r\n \t\t\tSystem.exit( 1 );\r\n \t\t}\r\n \t}", "private void loadFile() throws FileNotFoundException {\n\t\tif (path == null)\n\t\t\tthrow new FileNotFoundException(\"You have got me a null path.\");\n\t\ts = new Scanner(new File(path));\n\t}", "public static void openInputFile( String fileName )\r\n {\r\n File file = new File( fileName );\r\n try\r\n {\r\n fileIn = new Scanner( file );\r\n }\r\n catch ( Exception e )\r\n {\r\n System.out.print( \"failure\" );\r\n }\r\n }", "private Scanner getInput(String name) {\n try {\n return new Scanner(new File(name));\n } catch (IOException excp) {\n throw error(\"could not open %s\", name);\n }\n }", "private static Scanner getInputScanner() {\n Scanner filePathInputScanner = new Scanner(System.in);\n\n while (true) {\n System.out.println(\"Please enter the full path of the input file\");\n String filePath = filePathInputScanner.nextLine();\n try {\n Scanner inputScanner = new Scanner(new File(filePath));\n filePathInputScanner.close();\n return inputScanner;\n } catch (FileNotFoundException e) {\n System.out.println(\"There was a problem with the file provided, please try again...\");\n }\n }\n }", "public ScanOperator(File file){\r\n\t\tthis.file = file;\r\n\t\ttry{\r\n\t\t br = new RandomAccessFile(this.file, \"r\");\r\n\t\t}catch(FileNotFoundException e){\r\n\t\t\tSystem.out.println(\"File not found!\");\r\n\t\t}\r\n\t}", "public void readFile(File file){\n try{\n scan = new Scanner(file);\n while(scan.hasNextLine()){\n String line = scan.nextLine();\n if(line.startsWith(\"//\")){\n continue;\n }\n process(line);\n }\n }catch(IOException e){\n Alert alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"\");\n alert.setHeaderText(null);\n alert.setContentText(\"Oops the input was not read properly\");\n alert.showAndWait();\n e.printStackTrace();\n }catch(NullPointerException e){\n Alert alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"\");\n alert.setHeaderText(null);\n alert.setContentText(\"Oops the input was not read properly\");\n alert.showAndWait();\n e.printStackTrace();\n \n }\n }", "public static File input()\n\t{\n Scanner scan = new Scanner(System.in);\n //Prompt the user for the desired input file to be processed\n System.out.print(\"Input file name: \");\n \n //Create the input file object\n String theFile = scan.nextLine(); // file may contain more than one word\n File fileIn = new File(theFile);\n \n // If the file is unable to be read or doesn't exist, the program\n // will continuously request a new file until one that can be\n // read and exists is given.\n while(!fileIn.canRead()) \n {\n System.out.print(\"File not found. Try again: \");\n theFile = scan.nextLine();\n fileIn = new File(theFile);\n }\n return fileIn;\n\t}", "public ClassScanner(File file)\n throws IOException\n {\n processTreeOrFile(file);\n }", "public void scan() throws ScanErrorException\n {\n while(! eof)\n {\n Token next = nextToken();\n if (next != null)\n System.out.println(next);\n }\n\n try\n {\n in.close();\n }\n catch (IOException e)\n {\n System.err.println(\"Catastrophic File IO error.\\n\" + e);\n System.exit(1); \n //exit with nonzero exit code to indicate catastrophic error\n }\n }", "public void openFile(){\n\t\ttry{\n\t\t\tmovieScan = new Scanner(new File(movieFile));\n\t\t}\n\t\tcatch(Exception e){\n\t\t\t// Create Dialog Window To Print Error!\n\t\t\tSystem.out.printf(\"Could Not Find the File %s\", movieFile);\n\t\t}\n\t}", "@Test\r\n public void testFileConnection() {\n Scanner scan = TextReader.loadStudentWishesFromFile(\"students.csv\");\r\n assertThat(scan, is(not(nullValue())));\r\n\r\n scan = TextReader.loadStudentWishesFromFile(\"notfound.txt\");\r\n assertThat(scan, is(nullValue()));\r\n\r\n }", "private void scanFile(File highScoreFile) {\n\t\tScanner in = null;\n\t\ttry {\n\t\t\tin = new Scanner(highScoreFile).useDelimiter(\"\\\\s*\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tin.nextLine();\n\t\tthis.manager.setCurrentLevel(in.nextLine().length());\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The "user password" of the PDF document. If the document is encrypted, then the value of this key will be the user password for the document; if unspecified, the user password will be the empty string. The value of this key must be a CFStringRef which can be represented in ASCII encoding; only the first 32 bytes will be used for the password. If the value of this key cannot be represented in ASCII, the document will not be created and the creation function will return NULL. APISince: 2.0
@NotNull @Generated @CVariable() public static native CFStringRef kCGPDFContextUserPassword();
[ "@NotNull\n @Generated\n @CVariable()\n public static native CFStringRef kCGPDFContextOwnerPassword();", "@Generated\n @CFunction\n public static native boolean CGPDFDocumentUnlockWithPassword(@Nullable CGPDFDocumentRef document,\n @NotNull @UncertainArgument(\"Options: java.string, c.const-byte-ptr Fallback: java.string\") String password);", "String getCertificatePassword();", "public String getKeyStorePassword() { return this.getOrCreateGlobalProperty(PROP_NAME_JKSKEY_PASS, \"\"); }", "protected static String getKeyStorePassword() {\n Path userHomeDirectory = null;\n if (\"?\".equals(keyStorePassword)) {\n promptForKeystorePassword();\n } else if (keyStorePassword == null || keyStorePassword.isEmpty()) {\n // first try the password file\n try {\n userHomeDirectory = Paths.get(System.getProperty(\"user.home\")).toAbsolutePath();\n } catch (InvalidPathException e) {\n throw new BadSystemPropertyError(e);\n }\n File pwFile = new File(userHomeDirectory.toString(), Constants.PW_FILE_PATH_SEGMENT);\n if (pwFile.isFile()) {\n try {\n String rawPassword = readFileContents(pwFile);\n return EncodingUtils.decodeAndXor(rawPassword);\n } catch (FileNotFoundException | UnsupportedEncodingException e) {\n throw new IllegalArgumentException(\"Password file could not be read\");\n }\n } else {\n promptForKeystorePassword();\n }\n }\n return keyStorePassword;\n }", "String getKeystorepwdloc();", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Set the PDF owner password.\")\n @JsonProperty(JSON_PROPERTY_OWNER_PASSWORD)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getOwnerPassword() {\n return ownerPassword;\n }", "public String getKeyPassword() {\n return getHelpedParameters().getFirstValue(\"keyPassword\", \"\");\n }", "public String getPasswordKey() {\n return passwordKey;\n }", "public String getWStoreUserPW();", "java.lang.String getPasswordSignatureKey();", "public UTF8String getUserPass() {\n return this.userPass;\n }", "public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;", "public static String getPasswordFilename() {\n return \"password.pwd\";\n }", "com.google.protobuf.ByteString getPassword();", "String couchbasePassword();", "File getPasswordFile() {\n return new File(getHome(), \"password.properties\");\n }", "public byte[] getUserKey() throws IOException\n {\n byte[] u = null;\n COSString user = (COSString)encryptionDictionary.getDictionaryObject( COSName.getPDFName( \"U\" ) );\n if( user != null )\n {\n u = user.getBytes();\n }\n return u;\n }", "java.lang.String getPasswordEncryptionKey();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Problem 7: 10001st prime By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10 001st prime number? See also .
@Test public void shouldSolveProblem7() { assertThat(primeNo(1)).isEqualTo(2); assertThat(primeNo(2)).isEqualTo(3); assertThat(primeNo(3)).isEqualTo(5); assertThat(primeNo(4)).isEqualTo(7); assertThat(primeNo(5)).isEqualTo(11); assertThat(primeNo(6)).isEqualTo(13); assertThat(primeNo(10_001)).isEqualTo(104_743); }
[ "private void p0007()\n {\n int index = 0;\n double i = 1;\n double lastPrimeNumber = 0;\n\n while (index != 10001)\n {\n i++;\n if (BaseMath.isPrimeNumber(i))\n {\n lastPrimeNumber = i;\n index++;\n }\n }\n\n System.out.format(\"result: %s\", lastPrimeNumber); // 104743\n }", "public static int prime() {\n\t\tSystem.out.println();\n\t\tboolean b;\n\t\tfor (int j = 2; j <= 1000; j++) {\n\t\t\tb = true;\n\t\t\tfor (int i = 2; i < j / 2; i++) {\n\t\t\t\tif (j % i == 0) {\n\t\t\t\t\tb = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (b)\n\t\t\t\tSystem.out.print(j + \" \");\n\t\t}\n\t\treturn 0;\n\t}", "static int check_prime(int number)\n {\n for(int i = 3; i * i <= number; i += 2)\n {\n if(number % i == 0)\n {\n return 0;\n }\n }\n return 1;\n }", "public static void main(String[] args) {\n\n\t\tfor(int i=1; i<100; i++){\n\t\t\tint count=0, remainder=0; //variables initialized to zero.\n\n\t\t\tfor (int j=1; j<i+1; j++){\n\t\t\t\tremainder = i%j; // finding the remainder \n\t\t\t\tif(remainder==0) // if the remainder is equal to zero increment the count\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(count==2) // if the loop count is equal to two then print the number as prime.\n\t\t\t\tSystem.out.print(i+\" \");\n\t\t}\n\n\t}", "private static int findSpecialPrimesSum() {\n // holds whether a prime number has invalid digits\n boolean invalidDigits;\n // holds whether a number is prime or not\n boolean[] notPrime = new boolean[UPPER_BOUND];\n // number of special primes found\n int numOfSpecialPrimes = 0;\n // sum of the special primes\n int sum = 0;\n // temp variable for a number\n int tempNum;\n\n // set all non prime numbers to true\n for (int index = SMALLEST_PRIME; index < notPrime.length; index++) {\n for (int counter = index * SMALLEST_PRIME; counter < notPrime.length; counter += index) {\n notPrime[counter] = true;\n }\n }\n\n // loop through all possible values\n for (int num = DIV_10; num < notPrime.length; num++) {\n // only run if the number is prime\n if (notPrime[num] == false) {\n // check if the number ends with a 3 or 7\n if (END_DIGITS[num % DIV_10] == true) {\n tempNum = num;\n // strip the number until we get the first digit\n invalidDigits = false;\n while (tempNum >= DIV_10) {\n // check if the prime has even digits that are not 2\n if ((tempNum % DIV_10) % SMALLEST_PRIME == 0 && tempNum % DIV_10 != SMALLEST_PRIME) {\n invalidDigits = true;\n break;\n }\n tempNum /= DIV_10;\n }\n // check if the prime has invalid digits\n if (invalidDigits == true) {\n continue;\n }\n // check if the number starts with 2,3,5,7\n if (START_DIGITS[tempNum] == true) {\n // check if the number is left and right truncatable\n if (leftTruncatablePrime(num, notPrime) == true\n && rightTruncatablePrime(num, notPrime) == true) {\n numOfSpecialPrimes++;\n sum += num;\n }\n }\n }\n }\n // if all 11 primes are found, exit loop\n if (numOfSpecialPrimes == NUM_OF_PRIMES) {\n break;\n }\n }\n\n return sum;\n }", "public int getPrime() {\n for (int i = m + 1; i < Integer.MAX_VALUE; i++) {\n int f = 0;\n for (int j = 2; j <= (int) sqrt(i); j++)\n if (i % j == 0) f++;\n if (f == 0) return i;\n }\n return MAXPRIME;\n }", "public static void primeNumber() {\n\t\tboolean isprimeNumber = false;\n\t\tSystem.out.println(\"prime numbers between 1 and 1000 are\");\n\n\t\tfor (int i = 2; i <1000; i++) {\n\t\tif(calculation(i)==true)\n\t\t{\n\t\t\tSystem.out.println(i);\n\t\t\tprime++;\n\t\t}\n\t\t\n\t}\n\t\tSystem.out.println(prime+\" numbers are prime\");\n\t}", "public static void main(String []args)\n {\n Scanner in = new Scanner(System.in);\n System.out.println(\"This program will print out all prime numbers up to this number\");\n \n int inputnumber = in.nextInt();\n int currentnumber = 2; //this number will be incremented\n \n while (currentnumber < inputnumber)\n {\n if (currentnumber % 2 > 0) //this checks to see if its not divisible by 2\n {\n if (currentnumber % 3 > 0) //if number is not divisible by 3 \n {\n if (currentnumber % 5 > 0)// not divisible by 5\n {\n if (currentnumber % 7 > 0)//not divisible by 7\n {\n System.out.println(currentnumber);\n }\n }\n }\n }\n if (currentnumber == 2) {System.out.println(\"2\");}\n if (currentnumber == 3) {System.out.println(\"3\");}\n if (currentnumber == 5) {System.out.println(\"5\");}\n if (currentnumber == 7) {System.out.println(\"7\");}\n \n \n currentnumber++;\n }\n }", "public ArrayList<Integer> q9() {\n\t\t//create array lists for all numbers and only prime numbers\n\t\tArrayList<Integer> array = new ArrayList<Integer>();\n\t\tArrayList<Integer> primes = new ArrayList<Integer>();\n\t\t//loop to add numbers 1-100 to first array list\n\t\tfor(int i=1; i<101; i++) {\n\t\t\tarray.add(i);\n\t\t}\n\t\t//loop to determine if number is prime and if so, copy number into primes array list\n\t\tfor(int j=1; j<100; j++) {\n\t\t\tint a = array.get(j);\n\t\t\tboolean isPrime = true;\n\t\t\t//handle isPrime for 1\n\t\t\tif(a==1){\n\t\t\t\tisPrime = false;\n\t\t\t} \n\t\t\t//handle isPrime for 2\n\t\t\telse if(a==2) {\n\t\t\t\tisPrime = true;\n\t\t\t}\n\t\t\t//handle isPrime for 3-100\n\t\t\telse {\n\t\t\t\t//divide number by every number from 2 to that number, if modulus is ever 0, number is not prime\n\t\t\t\tfor(int k=2; k<a; k++) {\n\t\t\t\t\tif(a%k == 0) {\n\t\t\t\t\t\tisPrime = false;\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t}\n\t\t\t//add number to primes array list if number is prime\n\t\t\tif(isPrime == true) {\n\t\t\t\t//System.out.println(a);\n\t\t\t\tprimes.add(a);\t\t\t\n\t\t\t}\n\t\t}\n\t\t//print and return primes array list\n\t\tSystem.out.println(primes);\n\t\treturn primes;\n\t}", "public void checkPrimeNumber() {\n\t\tSystem.out.println(\"Please enter a number to find prime or not!!! \\n\");\n\t\tint num = sc.nextInt();\n\t\tint counter=0; \t\t\n\t\tint i = num;\n for(num =i; num>=1; num--)\n {\n\t if(i%num==0)\n\t {\n\t\tcounter = counter + 1;\n\t }\n\t }\n if (counter == 2) {\n \tSystem.out.println(i + \" is a prime number\");\n }else {\n \tSystem.out.println(i + \" is a not prime number\");\n }\n\t}", "@Test\n public void shouldSolveProblem10() {\n assertThat(sumPrimes(10)).isEqualTo(17);\n assertThat(sumPrimes(2_000_000L)).isEqualTo(142_913_828_922L);\n }", "private static boolean isPrime(long n) {\n if (n == 2 || n == 3) {\n return true;\n }\n if (n % 2 == 0 || n % 3 == 0) {\n return false;\n }\n for (long i = 6L; i * i <= n; i += 6) {\n if (n % (i - 1) == 0 || n % (i + 1) == 0) {\n return false;\n }\n }\n return true;\n }", "private static int nextPrime (int n)\n\t {\n\t // if n is prime, return the next largest prime number\n\t n++;\n\t if (n % 2 == 0)\n\t {\n\t n++;\n\t }\n\t for (; !isPrime(n); n += 2)\n\t ;\n\t return n;\n\t }", "private int getNextPrime(int num) {\n if (num == 2 || num == 3)\n return num;\n int rem = num % 6;\n switch (rem) {\n case 0:\n case 4:\n num++;\n break;\n case 2:\n num += 3;\n break;\n case 3:\n num += 2;\n break;\n }\n while (!isPrime(num)) {\n if (num % 6 == 5) {\n num += 2;\n } else {\n num += 4;\n }\n }\n return num;\n }", "public static int primePallindrome() {\n\t\tSystem.out.println();\n\t\tboolean b;\n\t\tfor (int j = 2; j <= 1000; j++) {\n\t\t\tb = true;\n\t\t\tfor (int i = 2; i < j / 2; i++) {\n\t\t\t\tif (j % i == 0) {\n\t\t\t\t\tb = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (b && isPallindrome(j))\n\t\t\t\tSystem.out.print(j + \" \");\n\t\t}\n\t\treturn 0;\n\t}", "public List<Integer> generatePrime() {\n\t\tfor (int i = 2; i < Integer.MAX_VALUE; i++) {\n\t\t\tif (primes.size() == primeCount) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(sixKOptimization(i)) {\n\t\t\t\tprimes.add(i);\n\t\t\t}\n\n\t\t}\n\n\t\treturn primes;\n\t}", "public int findMaxPrime( )\n {\n\t\treturn 0;\n }", "public static int primeNumber(int index) {\n\t\tArrayList<Integer> primeList = new ArrayList<>();\n\t\tprimeList.add(2);\n\t\t\n\t\tfor(int i = 2; primeList.size() < index; i++) {\n\t\t\tboolean prime = true;\n\t\t\tfor(int n = 0; n < primeList.size(); n++) {\n\t\t\t\tif(i % primeList.get(n) == 0) {\n\t\t\t\t\tprime = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (prime) { // not divided\n\t\t\t\tprimeList.add(i);\n\t\t\t}\n\t\t}\n\t\treturn primeList.get(primeList.size() -1);\n\t}", "public static void testIsPrime() {\r\n System.out.println(\"Testing isPrime\");\r\n for (int i = 1; i < 20; i++) {\r\n System.out.printf(\"%d %s%n\", i, isPrime(i));\r\n }\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface to allow the babou system to see the changes to the repo and to commit the local changes.
public interface RepoManager { /** * Gets the current changes in the local repository. * * @return The {@link BabouChangeset} that represents the local changes. */ public BabouChangeset getChanges(); /** * Commits the changes that are in the provided {@link BabouChangeset}. * * @param changeSet * The {@link BabouChangeset} which holds all of the local changes to persist. * @return If the commit was succesful or not. */ public boolean commit(AnnotatedCommit annotatedCommit); }
[ "public interface GitService extends Service {\n\n /**\n * Checks that project has selected branches\n *\n * @param project project for checking\n * @param branches branches that need to be checked\n * @param isCommon if true - checking will occur for all selected branches, if false - for at least one of them.\n * @return true if project contains selected branches, false if does not contains\n */\n boolean containsBranches(Project project, List<Branch> branches, boolean isCommon);\n\n /**\n * Checkouts projects to selected branch\n *\n * @param projects projects that need to be checked out\n * @param branch selected branch\n * @param progress the listener for obtaining data on the process of performing the operation\n *\n * @return map with projects and theirs checkout statuses\n */\n Map<Project, JGitStatus> checkoutBranch(List<Project> projects, Branch branch, ProgressListener progress);\n\n /**\n * Checkouts projects to selected branch\n *\n * @param projects projects that need to be checked out\n * @param branchName name of the branch\n * @param isRemote <code>true</code> if the branch has {@link BranchType#REMOTE}\n * @param progress the listener for obtaining data on the process of performing the operation\n * @return map with projects and theirs checkout statuses\n */\n Map<Project, JGitStatus> checkoutBranch(List<Project> projects, String branchName, boolean isRemote, ProgressListener progress);\n\n /**\n * Gets projects that have uncommited changes\n *\n * @param projects projects that need to be checked\n * @return list of projects that has uncommited changes\n */\n List<Project> getProjectsWithChanges(List<Project> projects);\n\n /**\n * Reverts uncommited changes\n *\n * @param projects projects that need to be resets\n * @return list of projects that and their discard statuses\n */\n Map<Project, JGitStatus> revertChanges(List<Project> projects);\n\n /**\n * Commit changes to selectedProjects\n *\n * @param projects projects that contains changes\n * @param commitMessage message for commit\n * @param isPushImmediately if true - make push operation after commiting, if false - make commit without pushing\n * @param progressListener Listener for obtaining data on the process of performing the operation.\n */\n Map<Project, JGitStatus> commitChanges(List<Project> projects, String commitMessage, boolean isPushImmediately,\n ProgressListener progressListener);\n\n /**\n * Creates new branch\n *\n * @param projects the projects that needs new branch\n * @param branchName new branch name\n * @param startPoint corresponds to the start-point option; if <code>null</code>, the current HEAD will be used\n * @param force if <code>true</code> and the branch with the given name\n * already exists, the start-point of an existing branch will be\n * set to a new start-point; if false, the existing branch will\n * not be changed\n * @return map with projects and theirs statuses of branch creating\n */\n Map<Project, JGitStatus> createBranch(List<Project> projects, String branchName, String startPoint, boolean force);\n\n /**\n * Returns the set of selected type of branches\n *\n * @param projects projects list\n * @param branchType selected {@link BranchType}\n * @param isOnlyCommon if <code>true</code> returns only common branches for all projects and otherwise if <code>false</code>\n * @return set of the branches or empty set if such type of branches does not exist for this projects\n */\n Set<Branch> getBranches(List<Project> projects, BranchType branchType, boolean isOnlyCommon);\n\n /**\n * Returns current branch name for selected project\n *\n * @param project - selected project\n * @return current branch name for selected project or <code>null</code> if project has no branches (unreachable state)\n */\n String getCurrentBranchName(Project project);\n\n /**\n * Pushed selected projects to upstream\n *\n * @param projects - list of projects\n * @param progressListener - listener for obtaining data on the process of performing the operation\n * @return map of operation statuses\n */\n Map<Project, JGitStatus> push(List<Project> projects, ProgressListener progressListener);\n\n /**\n * Pulls changes in selected projects from upstream\n *\n * @param projects - selected projects\n * @param progressListener - instance of {@link OperationProgressListener}\n * @return <code>true</code> if pull operation works well and <code>false</code> otherwise\n */\n boolean pull(List<Project> projects, OperationProgressListener progressListener);\n\n /**\n * Checks that project has any references.\n *\n * @param project the cloned project\n * @return <code>true</code> if project has any references, <code>false</code> if project does not have references.\n */\n public boolean hasAtLeastOneReference(Project project);\n\n /**\n * Returns count of commits ahead and behind index\n *\n * @param project - project to show status\n * @param branchName - the name of branch\n * @return array of ahead and behind commits counts<br>\n * Array consists of two parameters:\n * first is the count of commits ahead Index, <br>\n * second is the count of commits behind Index\n */\n public int[] getAheadBehindIndexCounts(Project project, String branchName);\n\n /**\n * Checks whether the project has conflicts and uncommitted changes.\n *\n * @param project the project\n * @return array of values. Array consists of two parameters:\n * - has conflicts: <true> is has, otherwise <false>.\n * - has changes: <true> is has, otherwise <false>.\n */\n public boolean[] hasConflictsAndChanges(Project project);\n\n /**\n * Starts canceling process for cloning. This may take some time.\n */\n void cancelClone();\n\n /** This method return tracking branch.\n *\n * @param project\n * @return tracking branch.\n */\n public String getTrackingBranch(Project project);\n\n /**\n * This method return all commits for currently selected project\n *\n * @param project the project\n * @param branchName the branch\n * @return list of all commits for currently selected project\n */\n public List<Commit> getAllCommits(Project project, String branchName);\n\n /**\n * Gets ChangedFiles for project.\n *\n * @param project the project\n * @return a ChangedFiles list\n */\n List<ChangedFile> getChangedFiles(Project project);\n\n /**\n * Adds untracked files to index.\n *\n * @param files the map of projects and changed files\n * @return the list of added files\n */\n List<ChangedFile> addUntrackedFilesToIndex(Map<Project, List<ChangedFile>> files);\n\n /**\n * Resets changed files to head\n *\n * @param files the map which has projects and their changed files\n * @return a list of changed files\n */\n List<ChangedFile> resetChangedFiles(Map<Project, List<ChangedFile>> files);\n\n /**\n * Gets ProjectStatus for project.\n * We use {@link Status} for getting info about conflicting, untracked files etc.\n * Also, use it for checking the presence of uncommitted changes.\n * Gets current branch name, ahead and behind indexes using {@link Git}.\n *\n * @param project the project\n * @return ProjectStatus for the project.\n */\n ProjectStatus getProjectStatus(Project project);\n\n /**\n * Gets branches of project\n *\n * @param projects cloned project\n * @param brType type branch\n * @param onlyCommon if value is <code>true</code> return only common branches of projects,\n * if <code>false</code> return all branches.\n * @return a list of branches\n */\n Set<Branch> getBranches(Collection<Project> projects, BranchType brType, boolean onlyCommon);\n\n /**\n * Replaces changed files with HEAD revision\n *\n * @param changedFiles the files for replacing\n */\n void replaceWithHEADRevision(Collection<ChangedFile> changedFiles);\n\n /**\n * Creates stash for projects\n *\n * @param projects the cloned projects\n * @param stashMessage the stash message\n * @param includeUntracked <code>true</code> if need to include untracked file to stash, otherwise <code>false</code>\n * @return a map of operation statuses\n */\n Map<Project, Boolean> createStash(List<Project> projects, String stashMessage, boolean includeUntracked);\n\n /**\n * Gets list of stashes for projects\n *\n * @param projects the cloned projects\n * @return a list of projects' stashes\n */\n List<Stash> getStashList(List<Project> projects);\n\n /**\n * Applies stash for the project\n *\n * @param stash the stash for applying\n * @param progressListener the listener for obtaining data on the process of performing the operation\n */\n void applyStashes(Stash stash, ProgressListener progressListener);\n\n /**\n * Drops stash from the project\n *\n * @param stash the stash which need to drop\n * @return a map of operation statuses\n */\n Map<Project, Boolean> stashDrop(Stash stash);\n\n /**\n * Deletes branch from projects\n *\n * @param projects the cloned projects\n * @param deletedBranch the branch which will be deleted\n * @param progressListener the listener for obtaining data on the process of performing the operation\n * @return a map of operation statuses by each project.\n * <code>true</code> if a branch was successfully deleted from a project, otherwise <code>false</code>.\n */\n Map<Project, Boolean> deleteBranch(List<Project> projects, Branch deletedBranch, ProgressListener progressListener);\n}", "public interface ESCommitObserver extends ESObserver {\r\n\r\n\t/**\r\n\t * Called before the commit proceeds. A callback method to initiate the commit dialog and allow the user to confirm\r\n\t * the changes.\r\n\t * \r\n\t * @param project\r\n\t * the project the commit occurs on\r\n\t * @param changePackage\r\n\t * the {@link ESChangePackage}\r\n\t * @param monitor\r\n\t * an {@link IProgressMonitor} instance that may be used by clients to inform\r\n\t * about progress\r\n\t * @return true if the changes have been confirmed, false - otherwise.\r\n\t */\r\n\tboolean inspectChanges(ESLocalProject project, ESChangePackage changePackage, IProgressMonitor monitor);\r\n\r\n\t/**\r\n\t * Called after the commit is completed.\r\n\t * \r\n\t * @param project\r\n\t * the project on which the commit has completed\r\n\t * @param newRevision\r\n\t * the new revision that was created by the commit\r\n\t * @param monitor\r\n\t * an {@link IProgressMonitor} instance that may be used by clients to inform\r\n\t * about progress\r\n\t */\r\n\tvoid commitCompleted(ESLocalProject project, ESPrimaryVersionSpec newRevision, IProgressMonitor monitor);\r\n}", "public interface GitRepository {\n /**\n * Commits all changes with the provided commit message.\n *\n * @param commitMessage The message for the commit.\n * @return {@code true} if commit succeeded, {@code false} otherwise.\n */\n void commitCommand(String commitMessage) throws GitException;\n\n /**\n * Pushes all changes to the remote repository.\n */\n void pushCommand() throws GitException;\n\n /**\n * Pulls all changes from the remote repository.\n */\n Set<String> pullCommand() throws GitException;\n\n /**\n * Resets the last commit.\n */\n void resetCommitCommand() throws GitException;\n\n /**\n * Get the branches on this repo.\n *\n * @return The list of branches.\n */\n List<String> getBranches();\n\n /**\n * Get the current branch name.\n *\n * @return The current branch name.\n */\n String getCurrentBranchName();\n\n /**\n * Check out a branch.\n *\n * @param branch The branch to check out.\n */\n void checkout(String branch) throws GitException;\n\n /**\n * Create a new branch.\n *\n * @param name The name of the branch to create.\n */\n void createBranch(String name) throws GitException;\n\n /**\n * Returns if this object exists as initialized repository on the disk.\n *\n * @return {@code true} if this object is initialized on the disk, {@code false} otherwise.\n */\n boolean isInitialized();\n\n /**\n * Returns a set of files that have been changed in this working copy\n *\n * @return A set of file names\n */\n Set<String> getChangedFiles();\n\n /**\n * Get the name of this repository.\n *\n * @return This repository's name.\n */\n String getRepositoryName();\n}", "public interface IBareRepo\n{\n\n /**\n * performs a \"git init\" on the given folder, creating a new git repository for that folder\n *\n * @param pProjectFolder Folder for which a git repo should be initialized\n * @throws AditoGitException If the repo cannot be initialized because the path for the folder is invalid, cannot be written to or similar causes\n */\n void init(File pProjectFolder) throws AditoGitException;\n\n}", "public interface Commit {\n\n /**\n * Returns the ID of the commit.\n * \n * @return the ID of the commit\n */\n public String getId();\n\n /**\n * Returns the point in time of the commit.\n * \n * @return the point in time of the commit\n */\n public LocalDateTime getDateTime();\n\n /**\n * Returns the author of the commit.\n * \n * @return the author of the commit\n */\n public Person getAuthor();\n\n /**\n * Returns the short message of the commit.\n * \n * @return the short message of the commit\n */\n public String getShortMessage();\n\n /**\n * Returns the full message of the commit.\n * \n * @return the full message of the commit\n */\n public String getFullMessage();\n\n /**\n * Returns the list of file diff's of the commit.\n * \n * @return the list of file diff's of the commit\n */\n public List<Diff> getDiffs();\n\n /**\n * Checks whether the commit is a merge. Merge commits have to be handled different in some situations since they have\n * multiple parent commits.\n * \n * @return <code>true</code> if the commit is a merge, <code>false</code> otherwise.\n */\n public boolean isMerge();\n\n /**\n * Checks whether the commit is a root commit (i.e. the first commit in a repository).\n * \n * @return <code>true</code> if the commit is a root commit, <code>false</code> otherwise\n */\n public boolean isRoot();\n\n}", "private void commitRepChanges() {\r\n\t\t\r\n\t\t// get repository info\r\n\t\tString repURL = repURLFld.getText();\r\n\t\tString boURI = repBaseOntFld.getText();\r\n\t\tthis.repositoryAuthor = repAuthorFld.getText();\r\n\t\tthis.reposityCreatedDate = repDateFld.getText();\r\n\t\t\r\n\t\tString status = \"Status: [ACTION - Commit to Repository]...\";\r\n\t\ttry {\r\n\t\t\tthis.repositoryURI = new URI(repURL);\r\n\t\t\tthis.baseOntologyURI = new URI(boURI);\r\n\t\t}\r\n\t\tcatch (URISyntaxException ex) {\r\n\t\t\tstatusBar.setText(status+\"Invalid Repository URL and/or Base Ontology URI\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// check if repository already exists\r\n\t\t\tboolean repExists = this.loadRepositoryHeader();\r\n\t\t\t\r\n\t\t\tif (!repExists) {\r\n\t\t\t\t// creating new repository\r\n\t\t\t\t// form repository header\r\n\t\t\t\tURI[] headerURI = new URI[1];\r\n\t\t\t\theaderURI[0] = new URI(this.repositoryURI+\"#header\");\r\n\t\t\t\t\r\n\t\t\t\tif (this.repositoryAuthor.equals(\"\") || this.reposityCreatedDate.equals(\"\")) {\r\n\t\t\t\t\tint opt = JOptionPane.showConfirmDialog(null, \"Repository Author and/or Date not specified. Continue?\", \"Creating Repository\", JOptionPane.YES_NO_OPTION);\r\n\t\t\t\t\tif (opt == JOptionPane.NO_OPTION) return;\r\n\t\t\t\t}\r\n\t\t\t\t// create annotea description for header\r\n\t\t\t\tDescription header = new Description();\r\n\t\t\t\theader.setAnnotates(headerURI);\r\n\t\t\t\theader.setAuthor(this.repositoryAuthor);\r\n\t\t\t\theader.setCreated(this.reposityCreatedDate);\r\n\t\t\t\theader.setAnnotatedEntityDefinition(this.baseOntologyURI.toString());\r\n\t\t\t\tthis.headVersionNumber = 0;\r\n\t\t\t\theader.setBody(String.valueOf(this.headVersionNumber));\r\n\t\t\t\theader.setBodyType(\"text/html\");\r\n\t\t\t\theader.setAnnotationType(this.annotType);\r\n\t\t\t\tclient.post(header);\r\n\t\t\t\tstatusBar.setText(status+\"Ontology Repository Header posted at \"+headerURI[0]);\r\n\t\t\t\ttoggleRepOptions(false);\r\n\t\t\t\tversionDescriptions[0] = header;\r\n\t\t\t\tswoopModel.updateVersionRepository(repositoryURI, versionDescriptions);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// test changes\r\n\t\t\tboolean success = this.testChanges(true);\r\n\t\t\tif (success){\r\n\t\t\t\t// prompt user for comment on commit\r\n\t\t\t\tString commitComment = JOptionPane.showInputDialog(this, \"COMMIT New Version (Details):\");\r\n\t\t\t\t\r\n\t\t\t\tif (commitComment==null) {\r\n\t\t\t\t\tstatusBar.setText(status+\"CANCELLED\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// transform SwoopChange list to Description list (to save author, date, uris etc)\r\n\t\t\t\tList descList = transformChangeList(repChanges);\r\n\t\t\t\t// serialize each description into RDF/XML\r\n\t\t\t\t// and make it one large string with separator (\"[SWOOP-ANNOTATED-CHANGE-SET]\") in the middle\r\n\t\t\t\tString largeChangeSetString = \"\";\r\n\t\t\t\tfor (Iterator iter = descList.iterator(); iter.hasNext();) {\r\n\t\t\t\t\tDescription desc = (Description) iter.next();\r\n\t\t\t\t\tString descStr = desc.serializeIntoString(swoopModel);\t\t\t\t\t\r\n\t\t\t\t\tlargeChangeSetString += descStr + separator;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// ENCODE CDATA\r\n\t\t\t\tlargeChangeSetString = largeChangeSetString.replaceAll(\"CDATA\", \"ENCODED-CDATA\");\r\n\t\t\t\tlargeChangeSetString = largeChangeSetString.replaceAll(\"]]>\", \"]ENCODED]>\");\r\n\t\t\t\t\r\n\t\t\t\t// finally commit a single annotation with the entire changeset string in the body\r\n\t\t\t\t// also allow author to make annotation on commit\r\n\t\t\t\tDescription commit = new Description();\r\n\t\t\t\tcommit.setAuthor(swoopModel.getUserName());\r\n\t\t\t\tcommit.setCreated(swoopModel.getTimeStamp());\r\n\t\t\t\tcommit.setBody(largeChangeSetString);\r\n\t\t\t\tcommit.setBodyType(\"text/html\");\r\n\t\t\t\tcommit.setAnnotatedEntityDefinition(commitComment);\r\n\t\t\t\tcommit.setAnnotationType(this.annotType);\r\n\t\t\t\t\r\n\t\t\t\t// increment headVersionNum and write new commit\r\n\t\t\t\t// at repURL+\"#\"+headVersionNum\r\n\t\t\t\tthis.headVersionNumber++;\r\n\t\t\t\tURI[] annotates = new URI[1];\r\n\t\t\t\tannotates[0] = new URI(repositoryURI.toString()+\"#\"+String.valueOf(this.headVersionNumber));\r\n\t\t\t\tcommit.setAnnotates(annotates);\r\n\t\t\t\t// COMMIT!\r\n\t\t\t\tclient.post(commit);\r\n\t\t\t\t\r\n\t\t\t\t// post-process:\r\n\t\t\t\t// 1. rewrite rep header added newly incremented headVersionNumber \r\n\t\t\t\tthis.rewriteRepHeader();\r\n\t\t\t\t// 2. set newCommitNode params to current commit\r\n\t\t\t\tnewCommitNode.swoopChange.setAuthor(commit.getAuthor());\r\n\t\t\t\tnewCommitNode.swoopChange.setTimeStamp(commit.getCreated());\r\n\t\t\t\tnewCommitNode.swoopChange.setDescription(commit.getAnnotatedEntityDefinition());\r\n\t\t\t\t// 3. save newCommitNode in versionCommits array and Description in versionDescriptions array\r\n\t\t\t\tversionNodes[this.headVersionNumber] = newCommitNode;\r\n\t\t\t\tversionDescriptions[this.headVersionNumber] = commit;\r\n\t\t\t\tswoopModel.updateVersionRepository(repositoryURI, versionDescriptions);\r\n\t\t\t\t// 4. for each child of newCommitNode, set its swoopChange.onRepository value to true\r\n\t\t\t\tfor (Iterator iter3=newCommitNode.children.iterator(); iter3.hasNext();) {\r\n\t\t\t\t\tTreeTableNode child = (TreeTableNode) iter3.next();\r\n\t\t\t\t\tchild.swoopChange.isOnRepository = true;\r\n\t\t\t\t}\r\n\t\t\t\t// 5. create newCommitNode and add to root at the end\r\n\t\t\t\tnewCommitNode = new TreeTableNode(new SwoopChange(swoopModel.getUserName(), null, null, swoopModel.getTimeStamp(), \"New Version Commit\", true, false));\r\n\t\t\t\tnewCommitNode.swoopChange.isTopNode = true;\r\n\t\t\t\trepRoot.addChild(newCommitNode);\r\n\t\t\t\trepChanges = new ArrayList(); // also clear this\r\n\t\t\t\tstatusBar.setText(status+\"Committed New Version \"+this.headVersionNumber);\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tstatusBar.setText(status+\"FAILED\");\r\n\t\t}\r\n\t\tthis.refreshRepTreeTable(false);\r\n\t}", "public interface GitRepositoryConnector {\n\n\t/**\n\t * Find a repository by owner and name\n\t * \n\t * @param repositoryOwner : the repository owner\n\t * @param repositoryName : the repository name\n\t * @return the matching repository\n\t */\n\tRepository find(String repositoryOwner, String repositoryName);\n\n\t/**\n\t * Find collaborators by repository. Also Populates the repository with the returned list\n\t * \n\t * @param repository\n\t * @return the list of collaborators\n\t */\n\tList<User> findCollaborators(Repository repository);\n\n\t/**\n\t * Find commits by repository\n\t * \n\t * @param repository\n\t * @param limit : number of commits to return\n\t * @return the list of commits\n\t */\n\tList<Commit> findCommits(Repository repository, int limit);\n}", "public static void main(String[] args) {\n\t\t/**\n\t\t * This is change from vodinh\n\t\t */\n\t\tSystem.out.println(\"GIT is cool\");\n\t\t/**\n\t\t * change from jasonvo user\n\t\t */\n\t\t /**\n\t\t * change from jasonvo user\n\t\t */\n\t\t/**\n\t\t * change from jasonvo user\n\t\t */\n\t\t/**\n\t\t * change from jasonvo user\n\t\t */\n\t\t/**\n\t\t * change from jasonvo user\n\t\t */\n\t\t/**\n\t\t * This is change for test stash local change before pull from remote server :) 11111111111\n\t\t */\n\t\t/**\n\t\t * change from jasonvo user\n\t\t */\n\t\t/**\n\t\t * change from jasonvo user\n\t\t */\n\t\t/**\n\t\t * change from jasonvo user\n\t\t */\n\t\t/**\n\t\t * change from jasonvo user\n\t\t */\n\t\t/**\n\t\t * change from jasonvo user\n\t\t */\n\t\t/**\n\t\t * change from jasonvo user\n\t\t */\n\t}", "public interface OcflRepository {\n\n /**\n * Adds the object rooted at the given path to the OCFL repository under the given objectId. If their is an existing\n * object with the id, then a new version of the object is created.\n *\n * <p>It is important to note that the files present in the given path should comprise the entirety of the object. Files\n * from previous versions that are no longer present in the path are not carried over. At the same time, files that\n * are unchanged between object versions are not stored a second time.\n *\n * <p>This method should only be used when writing new or fully composed objects.\n *\n * <p>If the current HEAD version of the object does not match the version specified in the request, the update will\n * be rejected. If the request specifies the HEAD version, then no version check will be preformed.\n *\n * <p>By default, files are copied into the OCFL repository. If {@code OcflOption.MOVE_SOURCE} is specified, then\n * files will be moved instead. Warning: If an exception occurs and the new version is not created, the files that were\n * will be lost. This operation is more efficient but less safe than the default copy.\n *\n * @param objectId the id to store the object under. If set to a specific version, then the update will only occur\n * if this version matches the head object version in the repository.\n * @param path the path to the object content\n * @param commitInfo information about the changes to the object. Can be null.\n * @param ocflOptions optional config options. Use {@code OcflOption.MOVE_SOURCE} to move files into the repo instead of copying.\n * @return The objectId and version of the new object version\n * @throws ObjectOutOfSyncException when the object was modified by another process before these changes could be committed\n */\n ObjectId putObject(ObjectId objectId, Path path, CommitInfo commitInfo, OcflOption... ocflOptions);\n\n /**\n * Updates an existing object OR create a new object by selectively adding, removing, moving files within the object,\n * and creating a new version that encapsulates all of the changes. It always operates on the HEAD version of an object,\n * but a specific version can be specified to ensure no intermediate changes were made to the object.\n *\n * <p>If the current HEAD version of the object does not match the version specified in the request, the update will\n * be rejected. If the request specifies the HEAD version, then no version check will be preformed.\n *\n * @param objectId the id of the object. If set to a specific version, then the update will only occur\n * if this version matches the head object version in the repository.\n * @param commitInfo information about the changes to the object. Can be null.\n * @param objectUpdater code block within which updates to an object may be made\n * @return The objectId and version of the new object version\n * @throws NotFoundException when no object can be found for the specified objectId\n * @throws ObjectOutOfSyncException when the object was modified by another process before these changes could be committed\n */\n ObjectId updateObject(ObjectId objectId, CommitInfo commitInfo, Consumer<OcflObjectUpdater> objectUpdater);\n\n /**\n * Returns the entire contents of the object at the specified version. The outputPath MUST exist, MUST be a directory,\n * and SHOULD be empty. The contents of outputPath will be overwritten.\n *\n * @param objectId the id and version of an object to retrieve\n * @param outputPath the directory to write the object files to\n * @throws NotFoundException when no object can be found for the specified objectId\n */\n void getObject(ObjectId objectId, Path outputPath);\n\n /**\n * Returns a map of {@code OcflFileRetriever} objects that are used to lazy-load object files. The map keys are the\n * logical file paths of all of the files in the specified version of the object.\n *\n * @param objectId the id and version of an object to retrieve\n * @return a map of {@code OcflFileRetriever} objects keyed off the logical file paths of all of the files in the object\n * @throws NotFoundException when no object can be found for the specified objectId\n */\n Map<String, OcflFileRetriever> getObjectStreams(ObjectId objectId);\n\n /**\n * Opens an object to access individual files within the object without retrieving everything.\n *\n * @param objectId the id and version of an object to retrieve\n * @param objectReader coe block within which object files can be accessed\n * @throws NotFoundException when no object can be found for the specified objectId\n */\n void readObject(ObjectId objectId, Consumer<OcflObjectReader> objectReader);\n\n /**\n * Returns all of the details about an object and all of its versions.\n *\n * @param objectId the id of the object to describe\n * @return details about the object\n * @throws NotFoundException when no object can be found for the specified objectId\n */\n ObjectDetails describeObject(String objectId);\n\n /**\n * Returns the details about a specific version of an object.\n *\n * @param objectId the id and version of the object to describe\n * @return details about the object version\n * @throws NotFoundException when no object can be found for the specified objectId\n */\n VersionDetails describeVersion(ObjectId objectId);\n\n /**\n * Returns true if an object with the specified id exists in the repository.\n *\n * @param objectId the id of the object\n * @return true if the object exists and false otherwise\n */\n boolean containsObject(String objectId);\n\n /**\n * Permanently removes an object from the repository. Objects that have been purged are NOT recoverable. If an object\n * with the specified id cannot be found it is considered purged and no exception is thrown.\n *\n * @param objectId the id of the object to purge\n */\n void purgeObject(String objectId);\n\n // TODO rollbackObject?\n\n // TODO list objects? this is a daunting prospect without an index\n\n}", "Git getGit();", "public interface RepoService {\n\n\t/** location of parent bare repo */\n\tFile getLocalArchon();\n\n\t/** location of \"version\" workspace repo */\n\tFile getLocalVersion();\n\n\t/** location of \"master\" workspace repo */\n\tFile getLocalMaster();\n\n\t/** generate parent and child repos */\n\tboolean ensureRepoAll();\n\n\t/** parent bare repo */\n\tboolean ensureRepoArchon();\n\n\t/** child repo for branch \"version\" workspace */\n\tboolean ensureRepoVersion();\n\n\t/** child repo for branch \"master\" workspace */\n\tboolean ensureRepoMaster();\n\n\t/** fetch latest parent repo from remote origin */\n\tboolean updateRepoArchon();\n\n\t/** fetch latest \"version\" workspace from \"archon\" */\n\tboolean updateRepoVersion();\n\n\t/** fetch latest \"master\" workspace from \"archon\" for a given version tag */\n\tboolean updateRepoMaster(final String version);\n\n\t/** cleanup all repos */\n\tboolean deleteRepoAll();\n\n}", "public interface RepoAdminService\n{\n /* Custom models managed in the repository */\n \n public List<RepoModelDefinition> getModels();\n \n public void deployModel(InputStream modelStream, String modelFileName);\n \n public QName undeployModel(String modelFileName);\n \n public QName activateModel(String modelFileName);\n \n public QName deactivateModel(String modelFileName);\n \n /* Custom message/resource bundles managed in the repository */\n \n public List<String> getMessageBundles();\n \n public String deployMessageBundle(String resourceClasspath); \n \n public void undeployMessageBundle(String bundleBaseName);\n \n public void reloadMessageBundle(String bundleBaseName);\n \n}", "Path localRepo();", "public interface Writer {\n\n /**\n * Makes a draft revision in which the Source Control system behind this Writer contains c.\n *\n * @param c the Codebase to replicate\n *\n * @returns the draft revision created\n *\n * @throws WritingError if an error occurred\n */\n DraftRevision putCodebase(Codebase c) throws WritingError;\n\n /**\n * Makes a draft revision in which the Source Control system behind this Writer contains c and\n * metadata for the revision.\n *\n * @param c the Codebase to replicate\n * @param rm the RevisionMetadata to include\n *\n * @returns the draft revision created\n *\n * @throws WritingError if an error occurred\n */\n DraftRevision putCodebase(Codebase c, RevisionMetadata rm) throws WritingError;\n\n /**\n * Returns a conceptual root for the writer.\n */\n File getRoot();\n \n /**\n * Print out (to Ui) instructions for pushing any changes in this Writer to the remote source.\n */\n void printPushMessage();\n}", "public abstract void execute(GitTool opts) throws Exception;", "R commit(C change);", "public interface IGitVersioningSupport\n{\n\n /**\n * Performs a clone of a specific repository\n *\n * @param pRemoteURI Remote-Repository-URL (GitURI.toPrivateString)\n * @param pTarget Target-Folder\n * @param pOptions Options for the versioning support\n * @return <tt>true</tt> if successful\n */\n boolean performClone(@NonNull String pRemoteURI, @NonNull File pTarget, @Nullable Map<String, String> pOptions)\n throws Exception;\n\n /**\n * Fetches a list of all available branches of a given repository\n *\n * @param pRemoteUrl The URL of the remote repository, from which to fetch the list of available branches\n * @return a list of the available branches\n * @throws AditoVersioningException if authentication fails or no connection to the repository could be established\n */\n @NonNull\n List<IRemoteBranch> getBranchesInRepository(@NonNull String pRemoteUrl) throws AditoVersioningException;\n\n /**\n * Fetches the list of all available tags of the given repository\n *\n * @param pRemoteUrl The URL of the remote repository, from which to fetch the list of tags\n * @return a list of the available branches\n * @throws AditoVersioningException if authentication fails or no connection to the repository could be established\n */\n @NonNull\n List<ITag> getTagsInRepository(@NonNull String pRemoteUrl) throws AditoVersioningException;\n\n}", "public abstract boolean manipulateRepositories();", "public interface IRepository {\n\t\n\tpublic File getDirectory();\n\t\n\tpublic IBuildStrategy getBuildStrategy();\n\t\n\t/**\n * Checks out a commit into the working directory.\n * \n * @return true if the method successfully checked out the commit.\n * @throws InterruptedException \n * @throws IOException \n */\n\tpublic boolean checkoutCommit(String commitID) throws IOException, InterruptedException;\n\t\n\t/**\n\t * Discards any change made in a file.\n\t * \n\t * @return true if the method successfully restored the file \n\t * if there was any change.\n\t * @throws IOException\n\t * @throws InterruptedException\n\t */\n\tpublic boolean discardFileChange(String filename) throws IOException, InterruptedException;\n\t\n\t/**\n * @return a set of DiffFiles between referenceCommit and otherCommit, \n * where the DiffType is from the point of view of referenceCommit.\n * @throws InterruptedException \n * @throws IOException \n */\n\tpublic Set<DiffFile> getDiffFiles(String referenceCommitID,\n String otherCommitID) throws IOException, InterruptedException;\n\n\t/**\n\t * Builds a HistoryGraph containing Revisions from startCommit \n\t * to endCommit.\n\t * \n\t * @requires startCommitID and endCommitID are each at least 7-character long.\n\t * @return a HistoryGraph containing Revisions from startCommit \n\t * to endCommit.\n\t * @throws Exception\n\t */\n\tpublic HistoryGraph buildHistoryGraph(String startCommitID, String endCommitID) \n\t\t\tthrows Exception;\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Register new specie if not exist other specie with same name
public void registerSpecies(Specie specie) { if(specieExist(specie.getName())) throw new IllegalArgumentException("Already exist other specie with this name"); this.Species.add(specie); }
[ "public void addDummySpecies() {\n\t\tSpecies species1 = new Species();\n\t\tspecies1.setName(\"dog\");\n\t\tspeciesRepo.save(species1);\n\t\tSpecies species2 = new Species();\n\t\tspecies2.setName(\"cat\");\n\t\tspeciesRepo.save(species2);\n\t}", "private boolean specieExist(String specieName){\n for(Specie s: Species)\n if(s.getName().equals(specieName))\n return true;\n\n return false;\n }", "@Test\n void registerVeichle() {\n vr.registerVeichle(dieselCar);\n vr.registerVeichle(dieselCar2);\n\n assertTrue(vr.getVeichles().contains(dieselCar) && vr.getVeichles().contains(dieselCar2));\n assertFalse(vr.registerVeichle(dieselCar));\n }", "private void checkAddable(String name) {\n if (name2entry.containsKey(name)) {\n throw new IllegalArgumentException(\"Other filter is using the same name '\" + name + \"'\");\n }\n }", "@Test\n\tpublic void testAddTheNotUniqueNameOfRecipe() {\n\t\tcoffeeMaker.addRecipe(recipe1);\n\t\tassertFalse(coffeeMaker.addRecipe(recipe1));\n\t}", "Component duplicateComponentFound(Component component, String name, String type, String description, String technology);", "public void xxxtestRegister_same() throws Exception\n {\n // Register two APIs and ensure that they are there\n // Then unregister them\n String name = getName();\n String ver = \"0.A\";\n\n int length = checkApi(name, ver, -1, false);\n\n // Register one\n ram.register(name, ver, new File(APIDIR + \"test-scdf.xml\"), (short) 100);\n\n try\n {\n length = checkApi(name, ver, length + 1, true);\n\n // Register a 2nd one\n ram.register(name, ver, new File(APIDIR + \"test-scdf.xml\"), (short) 100);\n\n length = checkApi(name, ver, length, true);\n }\n finally\n {\n ram.unregister(name);\n }\n }", "@Test(timeout = 30000)\n public void testLoadDuplicateResourceNameDevicePlugin() throws Exception {\n ResourcePluginManager rpm = new ResourcePluginManager();\n ResourcePluginManager rpmSpy = Mockito.spy(rpm);\n nm = new TestResourcePluginManager.MyMockNM(rpmSpy);\n conf.setBoolean(NM_PLUGGABLE_DEVICE_FRAMEWORK_ENABLED, true);\n conf.setStrings(NM_PLUGGABLE_DEVICE_FRAMEWORK_DEVICE_CLASSES, (((FakeTestDevicePlugin1.class.getCanonicalName()) + \",\") + (FakeTestDevicePlugin3.class.getCanonicalName())));\n String expectedMessage = (\"cmpA.com/hdwA\" + ((\" already registered! Please change resource type name\" + \" or configure correct resource type name\") + \" in resource-types.xml for \")) + (FakeTestDevicePlugin3.class.getCanonicalName());\n String actualMessage = \"\";\n try {\n nm.init(conf);\n nm.start();\n } catch (YarnRuntimeException e) {\n actualMessage = e.getMessage();\n }\n Assert.assertEquals(expectedMessage, actualMessage);\n }", "private void registerPlayers(SantaConfig sc) {\n // Second try.\n Set<String> keys = sc.getBaseKeys(\"registered\");\n for(String key : keys) {\n String name = sc.getBaseString(\"registered.\" + key);\n UUID id = UUID.fromString(key);\n playerRegistry.put(id, name);\n }\n }", "@Test\r\n\t public void register2() {\n\t\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t \r\n\t }", "@Test\n public void testDuplicateRegister() {\n final RuleSet ruleSet = createEmptyTestRuleSet();\n this.ruleSetManager.registerRuleSet(ruleSet);\n this.ruleSetManager.registerRuleSet(ruleSet);\n Assert.assertEquals(\"Only one rule set should have been registered\", 1,\n this.ruleSetManager.getRegisteredRuleSets().size());\n }", "@Override\n public EnablerBuilder addSpecification(String spec)\n {\n assertEquals(\"Wrong specification\", ENABLER_SPEC, spec);\n specsAdded++;\n return this;\n }", "org.hl7.fhir.Specimen addNewSpecimen();", "public void test_add_and_overwrite_bean() {\r\n Object bean1 = new MyGoodBean();\r\n Object newBean1 = new MyGoodBean();\r\n\r\n BeanId beanId1 = getBeanIdRegister().register(\"bean1\");\r\n\r\n BeanRepository beanRepository = getBeanRepository();\r\n\r\n assertNull(beanRepository.getBean(beanId1));\r\n\r\n beanRepository.addBean( beanId1, bean1);\r\n\r\n assertEquals(bean1, beanRepository.getBean(beanId1));\r\n\r\n beanRepository.addBean( beanId1, newBean1);\r\n\r\n assertEquals(newBean1, beanRepository.getBean(beanId1));\r\n }", "@Test\n\tpublic void testAddTheUniqueNameOfRecipe() {\n\t\tcoffeeMaker.addRecipe(recipe1);\n\t\tassertTrue(coffeeMaker.addRecipe(recipe2));\n\t}", "boolean register(String resourceId, String permitName, PermitSpec spec);", "public boolean registerKit(Kit kit) {\n\t\t//TODO\n\t\treturn false;\n\t}", "void register(String name, Object bean);", "@Test\n\tpublic void createSpecificationNameExistsTest() throws Exception {\n\t\tString uri = \"/v1/api/specification\";\n\t\tRequestBuilder req = MockMvcRequestBuilders.post(uri).accept(MediaType.APPLICATION_JSON)\n\t\t\t\t.content(RestUtil.convertObjectToJsonBytes(specificationDTO)).contentType(MediaType.APPLICATION_JSON);\n\t\tMvcResult result = mvc.perform(req).andReturn();\n\t\tString content = result.getResponse().getContentAsString();\n\t\tlog.info(content);\n\n\t\tSpecificationDTO response = objectMapper.readValue(content, SpecificationDTO.class);\n\t\tresponse.setId(null);\n\t\treq = MockMvcRequestBuilders.post(uri).accept(MediaType.APPLICATION_JSON)\n\t\t\t\t.content(RestUtil.convertObjectToJsonBytes(response)).contentType(MediaType.APPLICATION_JSON);\n\t\tmvc.perform(req).andExpect(MockMvcResultMatchers.status().isBadRequest());\n\t\tlog.info(\"createSpecificationNameExistsTest successful\");\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Part of the activity's life cycle, StartAppAd should be integrated here for the home button exit ad integration.
@Override public void onPause() { super.onPause(); startAppAd.onPause(); }
[ "@Override\n public void onResume() {\n super.onResume();\n startAppAd.onResume();\n }", "@Override\n public void onBackPressed() {\n /*startAppAd.onBackPressed();\n super.onBackPressed();*/\n\n if(blnExit)\n {\n super.onBackPressed();\n return;\n }\n this.blnExit = true;\n // startAppAd.onBackPressed();\n\n\n Toast.makeText(ActHome.this,\"Please click BACK again to EXIT.\",Toast.LENGTH_SHORT).show();\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n blnExit = false;\n }\n },2000);\n }", "@Override\n public void onAdStarted() {\n }", "@Override\n public void onAdClosed() {\n Log.d(\"ADS\",\"Ad is closed!\");\n }", "@Override\n public void onAdLeftApplication() {\n Log.d(\"ADS\",\"Ad left application!\");\n }", "@Override\n protected void onDestroy() {\n mAdView.destroy();\n super.onDestroy();\n }", "@Override\n public void onAdClosed() {\n ((MainActivity) MainActivityFragment.this.getActivity()).tellJoke();\n }", "@Override\n public void onAdClosed() {\n }", "public void onPause() {\n AppEventsLogger.deactivateApp(mActivity);\n }", "public void onAdClosed() {\n\t\t\t}", "@Override\n public void stopAd() {\n }", "@Override\n public void onPause() {\n AppEventsLogger.deactivateApp(this);\n isResumed = false;\n\n super.onPause();\n uiHelper.onPause();\n }", "void onUserBackFromAd();", "private void bannerAds() {\n Log.d(TAG, \"bannerAds invoked\");\n BannerAdView bannerAdView = new BannerAdView(MainActivity.this);\n bannerAdView.loadOnAttach();\n FrameLayout bannerPlaceholder = findViewById(R.id.banner_placeholder);\n bannerPlaceholder.addView(bannerAdView);\n bannerAdView = new BannerAdView(this)\n .withListener(new BannerAdListener() {\n @Override\n public void onAdError(BannerAd ad, String error) {\n // Called when the banner triggered an error\n Log.d(TAG, \"Something went wrong with the request: \" + error);\n }\n\n @Override\n public void onAdLoaded(BannerAd ad) {\n // Called when the banner has been successfully loaded\n Log.d(TAG, \"Banner successfully loaded\");\n\n }\n\n @Override\n public void onAdClicked(BannerAd ad) {\n // Called when the banner was clicked\n Log.d(TAG, \"User clicked on banner\");\n }\n\n @Override\n public void onAdLeftApplication(BannerAd ad) {\n // Called when the banner interaction causes an external application to be open\n Log.d(TAG, \"User directed out of app by banner\");\n }\n });\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onHomeLongPressed() {\n Log.e(\"recent app\", \"new activity fired\");\n if(android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT\n && android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP){\n // sendBroadcast(new Intent(\"closeRecent\"));\n }\n destroyDialog();\n //scheduleMethod();\n /*\n * Intent i = new Intent(AppLockerService.this, DummyActivity.class);\n * i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(i);\n */\n\n if (closeDialog.getState() == Thread.State.NEW) {\n closeDialog.start();\n } else {\n closeDialog.run();\n }\n\n }", "@Override\n public void onAdOpened() {\n Log.d(\"ADS\",\"Ad is opened!\");\n }", "@Override\n public void onAdLoaded(AppOpenAd ad) {\n appOpenAd = ad;\n isLoadingAd = false;\n loadTime = (new Date()).getTime();\n setAdsListener();\n\n PBMobileAds.getInstance().log(LogType.INFOR, \"onAdLoaded: ADAppOpen Placement '\" + placement + \"'\");\n if (adDelegate != null) adDelegate.onAdLoaded();\n }", "public void onExit() {\n Intent homeIntent = new Intent(Intent.ACTION_MAIN);\n homeIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n homeIntent.addCategory(Intent.CATEGORY_HOME);\n startActivity(homeIntent);\n finish();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve a list of all resources (wrapped in views) required for the resource contained within this view
public List<ResourceView> getRequiredResources() { ImmutableList.Builder<ResourceView> reqRes = ImmutableList.builder(); for (Resource res : resource.getRequiredResources()) { reqRes.add(new ResourceView(res)); } return reqRes.build(); }
[ "public ResourceSetDescription views() {\n return this.views;\n }", "List<ViewResourcesMapping> get(String viewResourceId) throws Exception;", "public List<Resource> getResources() {\n return resources;\n }", "public List <Resource> getResources() { return _resources; }", "Set<? extends View<?>> getViews();", "public Collection<Resource> getResources() {\n return resourceRegistry.getEntries().values();\n }", "public List<View> getViews() {\n if (!isLoaded()) {\n throw new IllegalStateException(\"Error: The module is not loaded\");\n }\n\n return new ArrayList<View>(m_views);\n }", "@Override\n public List<Resource> getResources() {\n return getAllResources().parallelStream().map(idsUtils::getAsResource)\n .collect(Collectors.toList());\n }", "List<ViewDefinition> list();", "public List<ResourceCollection> getCandidateParentResourceCollections() {\n List<ResourceCollection> publicResourceCollections = resourceCollectionService.findPotentialParentCollections(getAuthenticatedUser(),\n getPersistable());\n return publicResourceCollections;\n }", "protected Set<ResourceActivity> getResourceActivities() {\n return Collections.emptySet();\n }", "public List<ResourceView> getConflictingResources() {\n\t\tImmutableList.Builder<ResourceView> conRes = ImmutableList.builder();\n\t\tfor (Resource res : resource.getConflictingResources()) {\n\t\t\tconRes.add(new ResourceView(res));\n\t\t}\n\t\treturn conRes.build();\n\t}", "public List<Resource> getAvailableResources();", "public Iterator getResources() {\n return this.resources.iterator();\n }", "@java.lang.Override\n public com.google.cloud.run.v2.ResourceRequirements getResources() {\n return resources_ == null\n ? com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance()\n : resources_;\n }", "List<Resource> getAllowedResources(PerunSession sess, User user);", "public LiveData<List<Resource>> getAllResourcesList() {\n return mAllResourcesList;\n }", "List<Resource> getAssociatedResources(PerunSession sess, User user);", "public ArrayList<Resources> getAll() {\n\t\tString culture = TestContext.INSTANCE.getUserCulture();\n\t\tString SQL = \"SELECT * FROM dbo.Resources WHERE CultureId='\" + culture + \"'\";\n return load(SQL);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column x$wait_classes_global_by_latency.max_latency
public void setMaxLatency(Long maxLatency) { this.maxLatency = maxLatency; }
[ "public void setMax_latency(Long max_latency) {\n this.max_latency = max_latency;\n }", "public void setMax_latency(String max_latency) {\n this.max_latency = max_latency == null ? null : max_latency.trim();\n }", "public void setMaxWait(int maxWait)\r\n\t{\r\n\t\tthis.maxWait = maxWait;\r\n\t}", "public void setMaxWait(final long m) {\n maxWait = m;\n }", "public Long getMax_latency() {\n return max_latency;\n }", "void setMaxIdleTime(int maxIdleTime) {\n\t\tif (maxIdleTime < 0) {\n\t\t\tmaxIdleTime_ = DEFAULT_MAX_IDLE_TIMEOUT;\n\t\t} else {\n\t\t\tmaxIdleTime_ = maxIdleTime;\n\t\t}\n\t}", "public void setMaxTimeDelay(Integer maxTimeDelay) {\n\t\tthis.maxTimeDelay = maxTimeDelay;\n\t}", "void setMaxIdleTime(String maxIdleTime) {\n\t\tint tmpTimeout = DEFAULT_MAX_IDLE_TIMEOUT;\n\t\tif (maxIdleTime != null) {\n\t\t\ttry {\n\t\t\t\ttmpTimeout = Integer.parseInt(maxIdleTime);\n\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\tsqlExceptionMessage_ = \"Incorrect value for maxIdleTime set: \" + maxIdleTime + \". \" + ex.getMessage();\n\t\t\t\ttmpTimeout = DEFAULT_MAX_IDLE_TIMEOUT;\n\t\t\t}\n\t\t}\n\t\tsetMaxIdleTime(tmpTimeout);\n\t}", "public void setMaxcpu(Integer maxcpu) {\r\n this.maxcpu = maxcpu;\r\n }", "public static native void RouteHintHop_set_htlc_maximum_msat(long this_ptr, long val);", "public void setMaxConcurrentConnection(Long MaxConcurrentConnection) {\n this.MaxConcurrentConnection = MaxConcurrentConnection;\n }", "void setMaxWait(long maxWait);", "public void setMaximumWaitLine() {\r\n\r\n if (customerWaiting > maximumWaitLine) {\r\n this.maximumWaitLine = customerWaiting;\r\n }\r\n }", "public void setMaxTime(Integer maxTime) {\n this.maxTime = maxTime;\n }", "public void SetMaxVal(int max_val);", "public String getMax_latency() {\n return max_latency;\n }", "void setWaitUdpTotalMillisecond(int waitUdpTotalMillisecond);", "long getMaxWaitMillis();", "public void setMaxTime(int aMaxTime)\n{\n // Set max time\n _maxTime = aMaxTime;\n \n // If time is greater than max-time, reset time to max time\n if(getTime()>_maxTime)\n setTime(_maxTime);\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When data changes, this method updates the list of recipeEntries and notifies the adapter to use the new values on it
public void setRecipes(List<Recipe> recipeEntries) { mRecipeEntries = recipeEntries; notifyDataSetChanged(); }
[ "private void updateRecipeAdapter() {\n for (Recipe recipe : recipes) {\n if ((current_category.equals(\"Alle\") || recipe.getData().getCategory().equals(current_category))\n && (StringUtility.search(searchString, recipe.getData().getTitle())))\n recipeAdapter.add(recipe);\n else\n recipeAdapter.remove(recipe);\n }\n }", "public void update(Recipe[] newData) {\n mData = newData;\n notifyDataSetChanged();\n }", "public void setRecipeList(ArrayList<Recipe> recipeList) {\n mRecipeList = recipeList;\n notifyDataSetChanged();\n }", "public void setRecipeList(ArrayList<Recipe> recipes)\n {\n this.mRecipeList = recipes;\n notifyDataSetChanged();\n }", "private void loadRecipes() {\n recipes.clear();\n recipeAdapter.clear();\n MatbitDatabase.RECIPES().addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot recipesSnapshot : dataSnapshot.getChildren()) {\n Recipe recipe = new Recipe(recipesSnapshot, true);\n recipes.add(recipe);\n }\n updateRecipeAdapter();\n spinner_filter.setEnabled(true);\n spinner_category.setEnabled(true);\n swipeRefreshLayout.setRefreshing(false);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.w(TAG, \"loadPost:onCancelled\", databaseError.toException());\n }\n });\n }", "public void reload() {\n File recipeFile = new File(Main.getPlugin().getDataFolder(), \"recipes.json\");\n if (!recipeFile.exists()) {\n try {\n recipeFile.createNewFile();\n FileWriter writer = new FileWriter(recipeFile.getPath());\n writer.write(\"[]\");\n writer.close();\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n }\n String json = null;\n try {\n json = Main.readFileContents(recipeFile);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n recipes.clear();\n JsonArray jsonObject = new JsonParser().parse(json).getAsJsonArray();\n for (JsonElement jsonElement : jsonObject) {\n JsonObject recipe = jsonElement.getAsJsonObject();\n\n if (recipe.get(\"name\").getAsString().equals(\"PLAYER_HEAD\")) {\n addPlayerHeads(recipe);\n continue;\n }\n\n HeadRecipe headRecipe = new HeadRecipe(recipe.get(\"result\").getAsString(), recipe.get(\"name\").getAsString());\n for (Map.Entry<String, JsonElement> ingredient : recipe.get(\"ingredients\").getAsJsonObject().entrySet()) {\n headRecipe.addIngredient(ingredient.getKey(), ingredient.getValue().getAsInt());\n }\n recipes.add(headRecipe);\n }\n }", "public void updateRecipeValues(RecipeDataBean objRecipe, JSONObject recipeValues)\r\n\t\t{\r\n\t\t\tif(recipeValues!=null)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tobjRecipe.setStrTitle(recipeValues.get(\"title\").toString());\r\n\t\t\t\tobjRecipe.setFltTime(Float.parseFloat(recipeValues.get(\"time\").toString()));\r\n\t\t\t\tobjRecipe.setObjItemsConsumed((JSONObject)recipeValues.get(\"consumes\"));\r\n\t\t\t\tupdateItemProduced(objRecipe, (JSONObject)recipeValues.get(\"produces\"));\r\n\t\t\t}\r\n\t\t}", "private void updateRecipeList(String query){\n if(!query.equals(\"\")){\n mFavouritesViewModel.getFavouriteRecipesByQuery(query).observe(getViewLifecycleOwner(), filteredRecipeList -> {\n favouriteRecyclerViewAdapter.setMFavouritesByQuery(filteredRecipeList);\n favouriteRecyclerViewAdapter.notifyDataSetChanged();\n });\n }else{\n FavouritesWithRecipes recipeList = mFavouritesViewModel.getMFavouriteList();\n favouriteRecyclerViewAdapter.setMFavourites(recipeList);\n favouriteRecyclerViewAdapter.notifyDataSetChanged();\n }\n }", "@Override\n public void onRefresh() {\n // INIT: fetch recipes conforming to query\n // recipeImport task populates the list on completion\n if (DEV) {\n a.clear();\n a.add(new Recipe(a, \"Recipe API turned off\", 0));\n swipe.setRefreshing(false);\n } else {\n new recipeImport().execute(query);\n }\n }", "public void populateRecipe(RecipeInformation recipe, View view) {\n if (recipe == null) return;\n\n titleTextView.setText(recipe.getTitle());\n Picasso.get().load(recipe.getImage()).placeholder(R.drawable.dish).into(recipeImageView);\n if (recipe.getSummary() != null) {\n summaryTextView.setText(Html.fromHtml(recipe.getSummary(), Html.FROM_HTML_MODE_LEGACY));\n } else {\n summaruLabel.setVisibility(view.GONE);\n summaryTextView.setVisibility(view.GONE);\n }\n if (recipe.getInstructions() != null) {\n instructionsTextView.setText(Html.fromHtml(recipe.getInstructions(), Html.FROM_HTML_MODE_LEGACY));\n } else {\n instructionsLabel.setVisibility(view.GONE);\n instructionsTextView.setVisibility(view.GONE);\n }\n summaryTextView.setMovementMethod(LinkMovementMethod.getInstance());\n instructionsTextView.setMovementMethod(LinkMovementMethod.getInstance());\n readyInMinutesTextView.setText(recipe.getReadyInMinutes() + \"\");\n servingsTextView.setText(recipe.getServings() + \"\");\n\n\n Ingredient[] ingredientsArray = recipe.getExtendedIngredients();\n // Populate ingredients ArrayList from the ingredients array\n for (int i = 0; i < ingredientsArray.length; i++) {\n ingredients.add(ingredientsArray[i]);\n }\n\n if (equipementsSet != null)\n recipe.setEquipments(equipementsSet);\n // Populate equipments ArrayList from the equipmentsSet array\n for (int i = 0; i < recipe.getEquipments().length; i++) {\n equipements.add(recipe.getEquipments()[i]);\n }\n\n\n // Check if some layout parts content exist in the returned json object\n if (recipe.getEquipments() == null || recipe.getEquipments().length == 0) {\n equipmentsLabel.setVisibility(View.GONE);\n }\n if (recipe.getInstructions() == null || recipe.getInstructions().isEmpty()) {\n instructionsLabel.setVisibility(View.GONE);\n }\n\n handleFAB(recipe);\n\n view.setVisibility(View.VISIBLE);\n }", "private void PopulateEditRecipe(Bundle editBundle) {\n Recipe recipeToEdit;\n if (editBundle != null) {\n //We know we are editing a recipe\n isAdding = false;\n\n recipeToEdit = editBundle.getParcelable(EDIT_RECIPE_OBJECT);\n binding.etxtRecipeName.setText(recipeToEdit.getTitle());\n if (recipeToEdit.hasPhoto())\n SetImage(recipeToEdit.getImagePath());\n\n editRecipeId = recipeToEdit.getRecipeId();\n\n recipeDuration = recipeToEdit.getTimeInMins();\n recipeKcalPerPerson = recipeToEdit.getCalories();\n\n if (recipeDuration != 0)\n onDurationSet(recipeDuration);\n if (recipeKcalPerPerson != 0)\n onCaloriesSet(recipeKcalPerPerson);\n\n List<Ingredient> ingredients = editBundle.<Ingredient>getParcelableArrayList(EDIT_RECIPE_INGREDIENTS);\n List<MethodStep> steps = editBundle.<MethodStep>getParcelableArrayList(EDIT_RECIPE_STEPS);\n\n if (ingredients != null) {\n newIngredients = new ArrayList<>(ingredients);\n newSteps = new ArrayList<>(steps);\n\n //Must deep copy lists to copy items by value and not reference\n\n oldIngredients = new ArrayList<>();\n for (Ingredient in: ingredients)\n oldIngredients.add(new Ingredient(in));\n\n oldSteps = new ArrayList<>();\n for (MethodStep step: steps)\n oldSteps.add(new MethodStep(step));\n }\n\n //Must wait briefly until view dimensions can be accessed\n new Handler(getMainLooper()).postDelayed(() -> {\n ShowRetractedIngredients();\n ShowRetractedSteps();\n }\n , 10);\n }\n else {\n newIngredients = new ArrayList<>();\n newSteps = new ArrayList<>();\n }\n }", "void setEntries(List<Entry> entries) {\n mEntries = entries;\n notifyDataSetChanged();\n }", "private void populateRecipeInfo() {\n\t\tString title = currentRecipe.getTitle();\n\t\tString directions = currentRecipe.getDirections();\n\t\tString description = currentRecipe.getDescription();\n\n\t\tfillTextViews(title, description, directions);\n\t\tpopulateIngredientView();\n\t}", "public void bindIngredient(Ingredient ingredient){\n // Note: amount should be checked for a negative number when the add ingredient\n // button is clicked\n\n // Set the ingredient amount\n ingredientAmountEditText.setText(String.valueOf(ingredient.getAmount()));\n\n removeTextView.setText(\"X\");\n removeTextView.setClickable(true);\n\n // Set the measurement type that is displayed\n switch(ingredient.getType()){\n case TSP:\n measurementTypeTextView.setText(\"TSP\");\n break;\n case TBSP:\n measurementTypeTextView.setText(\"TBSP\");\n break;\n case GAL:\n measurementTypeTextView.setText(\"GAL\");\n break;\n case CUP:\n measurementTypeTextView.setText(\"CUP\");\n break;\n case QT:\n measurementTypeTextView.setText(\"QT\");\n break;\n case PT:\n measurementTypeTextView.setText(\"PT\");\n break;\n case LB:\n measurementTypeTextView.setText(\"LB\");\n break;\n default:\n measurementTypeTextView.setText(\" \");\n break;\n }\n\n // Set the ingredient name in all uppercase letters\n ingredientNameTextView.setText(ingredient.getName());\n\n // Give the remove button a listener that removes this instance of the\n // single ingredient layout\n removeTextView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // Remove ingredient from our ArrayList\n mIngredients.remove(getAdapterPosition());\n\n // Update the items in the RecyclerView\n notifyItemRemoved(getAdapterPosition());\n notifyItemRangeChanged(getAdapterPosition(), mIngredients.size());\n }\n });\n }", "public void initData(Recipe r) {\n\n\t\tthis.recipe = r;\n\t\t//this.oldName = r.getName();\n\t\tthis.oldRep = r;\n\t\trecipeName.setText(recipe.getName());\n\t\tinstructions.setText(recipe.getInstructions());\n\n//\t\t// servingSize\n//\t\tservingSize.getItems().addAll(SERVSIZES);\n//\t\tservingSize.setStyle(\"-fx-background-color: #ff9900\");\n\n\t\t// Ingredient column\n\t\tTableColumn<Ingredient, String> ingredientColumn = new TableColumn<>(\"Ingredient\");\n\t\tingredientColumn.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n\n\t\t// Quantity column\n\t\tTableColumn<Ingredient, String> quantityColumn = new TableColumn<>(\"Quantity\");\n\t\tquantityColumn.setCellValueFactory(new PropertyValueFactory<>(\"quantity\"));\t\n\n\t\t// Quantity column\n\t\tTableColumn<Ingredient, String> unitColumn = new TableColumn<>(\"Unit\");\n\t\tunitColumn.setCellValueFactory(new PropertyValueFactory<>(\"unit\"));\n\n\t\t// Set ingredientsTable\n\t\tfor (Ingredient i : recipe.getIngredients()) {\n\t\t\tingredients.add(i);\n\t\t\t//qtyPerServingSize.add(i.getQuantity());\n\t\t}\n\t\tingredientsTable.setItems(ingredients);\n\t\tingredientsTable.getColumns().addAll(ingredientColumn, quantityColumn, unitColumn);\n\n\t\t// Initialize Category table\n\t\tfor (String s : recipe.getCategories()) {\n\t\t\tcategories.add(s);\n\t\t}\n\t\tcategoryTable.setItems(categories);\n\n\t\t// disable Save button if user enter edit mode\n\t\tif (r.getName().equals(\"\")) {\n\t\t\tmenuSave.setDisable(true);\n\t\t}\n\t}", "public void onEntryChange() {\n this.entries.update();\n this.weeks.update();\n }", "public void saveRecipe(Recipe recipe) {\n if (recipe != null) {\n list.put(recipe.getRecipeNumber(), recipe);\n }\n }", "public void updateRecipe(Receta r){\n SQLiteDatabase db = dbManager.getWritableDatabase();\n\n try{\n db.beginTransaction();\n db.execSQL(\n \"UPDATE \"\n + DBManager.RECIPE_TABLE_NAME + \" SET \"\n + DBManager.RECIPE_COLUMN_NAME + \"=?, \"\n + DBManager.RECIPE_COLUMN_TYPE + \"=?,\"\n + DBManager.RECIPE_COLUMN_NUMCOM + \"=?, \"\n + DBManager.RECIPE_COLUMN_PREPARATION + \"=?, \"\n + DBManager.RECIPE_COLUMN_PHOTO + \"=?\"\n + \"WHERE \" + DBManager.RECIPE_COLUMN_ID + \"=?\",\n new Object[]{r.getId(), r.getNombre(), r.getTipo(),\n r.getNumComensales(), r.getPreparacion(), r.getRutaFoto()}\n );\n\n for(Ingrediente i : r.getIngredientes()) {\n db.execSQL(\"UPDATE \"\n + DBManager.RELACION_TABLE_NAME + \" SET \"\n + DBManager.RELACION_COLUMN_ID_RECIPE + \"=?, \"\n + DBManager.RELACION_COLUMN_NAME + \"=?, \"\n + DBManager.RELACION_COLUMN_MEDIDA + \"=?, \"\n + DBManager.RELACION_COLUMN_CANTIDAD + \"=? \"\n + \"WHERE \" + DBManager.RELACION_COLUMN_ID + \"=?\",\n new Object[]{r.getId(), i.getNombre().toLowerCase()}\n );\n }\n\n db.setTransactionSuccessful();\n }catch (SQLException exc){\n Log.e(RecipeFacade.class.getName(), \"update recipe\", exc);\n }\n }", "protected abstract void refreshAllEntries();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }