query
stringlengths 8
1.54M
| document
stringlengths 9
312k
| negatives
sequencelengths 19
20
| metadata
dict |
---|---|---|---|
Calculates the number of websites in the list. | public int getSize()
{
return this.websites.size();
} | [
"public int numberOfOpenSites() {\n \treturn num;\r\n }",
"public int numberOfOpenSites() {\n return count;\n }",
"public int numberOfOpenSites() {\r\n\r\n\t\treturn count;\r\n\t}",
"public int numberOfOpenSites() {\n return number;\n }",
"public static int countUrl(List<String> url){\n\t\tint unique = 0;\n\t\tfor (int i = 0; i<url.size(); i++){\n\t\t\tunique++; \t\t\t\t\t\t\t\t//Increments unique total #\n\t\t}\n\t\treturn unique;\n\t}",
"public long countSites() {\n\t\treturn siteOids.size();\n\t}",
"public int getSourceURLCount() {\n int count = 0;\n for (String site : getSourceSites()) {\n count += this.getSourceURLs(site).size();\n }\n return count;\n }",
"public int numberOfOpenSites() {\n return numOpenSite;\n }",
"int getGoodUrlCount();",
"int getDomainsCount();",
"public int numberOfOpenSites() {\n return numOpen;\n }",
"public int numberOfOpenSites() {\n return numOpen;\n }",
"public int numUrls()\n {\n return getRequest().numUrls();\n }",
"public Integer getWebLinkSize() {\r\n\t\treturn webLinks.size();\t\t\r\n\t}",
"public int openSites() {\n return count;\n }",
"int getNumberOfLinks();",
"public int countItemwithURL(String url);",
"int getHotelImageURLsCount();",
"@Override\n public int numberOfOpenSites() {\n return myOpenCount;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the size, in bits, of the field 'virtual_clk' | public static int sizeBits_virtual_clk() {
return 32;
} | [
"public static int size_virtual_clk() {\n return (32 / 8);\n }",
"public static int offsetBits_virtual_clk() {\n return 104;\n }",
"public static int offset_virtual_clk() {\n return (104 / 8);\n }",
"public float get_virtual_clk() {\n return (float)getFloatElement(offsetBits_virtual_clk(), 32);\n }",
"public Long getVirtualSize() {\n return virtualSize;\n }",
"public int getBVLength()\n {\n return STPJNI.getBVLength(handle);\n }",
"int getSizeInBits() {\n\t\tif (isSimple())\n\t\t\treturn V.getSizeInBits();\n\t\treturn getExtendedSizeInBits();\n\t}",
"@DISPID(18) //= 0x12. The runtime will prefer the VTID if present\n @VTID(40)\n int fieldSize();",
"public static int size_addr() {\n return (16 / 8);\n }",
"public final int getRxDataBlockLength() {\n return getParameter(11);\n }",
"float getVSize();",
"public int sizeInBits() {\n\t\treturn this.sizeinbits;\n\t}",
"Integer getTVSIZE();",
"public int sizeInBits() {\n\t\tint Ibits = this.id.encode(null).getSizeBits();\n\t\tint Ebits = this.event.encode(null).getSizeBits();\n\t\treturn Ibits + Ebits;\n\t}",
"public static int totalSizeBits_data() {\n return 480;\n }",
"public int getStructureSize() {\n if (structureSize < 0) {\n structureSize = calcStructureSize();\n }\n return structureSize;\n }",
"public Integer getReservedMemoryLength() {\n\t\treturn memoryBanks.get(0).getLength();\n\t}",
"public com.google.protobuf.ByteString getVmSizeBytes() {\n java.lang.Object ref = vmSize_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n vmSize_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public int getSizeVirtualMachine(){\n\t\treturn vms.size();\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Flushes all configuration to the disk. | public void flush() {
Gson gson = new GsonBuilder().serializeNulls().setPrettyPrinting().create();
Path systemsFile = this.dir.resolve(SYSTEMS_FILE);
try (var writer = Files.newBufferedWriter(systemsFile)) {
gson.toJson(this.systemsConfig, writer);
writer.flush();
} catch (IOException e) {
log.error("Could not save systems config.", e);
}
for (var config : this.guilds.values()) {
config.flush();
}
} | [
"public void saveAllConfigs() {\r\n\t\tsaveCrashesConfig();\r\n\t}",
"public synchronized void flushAll()\n {\n profiles.clear();\n flushProfileNames();\n flushUserProfileAssignments();\n profilePerms.clear();\n nameToId.clear();\n }",
"public void flush() {\n batcher.forceCommit();\n }",
"public void flush() {\n updateAccountDataToPreferenceStore();\n saveAccounts();\n }",
"public void close() {\n saveConfigurationSettings();\n removeAllLogHandlers();\n try {\n Constants.PREFS.flush();\n }\n catch ( Exception e ) {\n e.printStackTrace();\n }\n }",
"protected void flush() {\n\t\tfCModelDeltas.clear();\n \t}",
"public void flush() {\n try {\n _logWriter.flush();\n } catch (IOException e) {\n LOGGER.severe(\"Could not flush to the log file.\");\n throw new RuntimeException(e);\n }\n }",
"void flushAll() {\n dirtyS = true;\n dirtyD = true;\n modelRoot.incrementNumberOfDirtySNodes();\n modelRoot.incrementNumberOfDirtyDNodes();\n }",
"public void flush() {\n if (isFlushEnabled) {\n bucketManager.flush();\n }\n }",
"public static synchronized void clear() {\n files.clear();\n save();\n }",
"private void flushMapper() {\n try {\n File mapperFile = new File(this.getMapperIdFilePath());\n\n // Delete file if exists and create new\n if (mapperFile.exists()) {\n mapperFile.delete();\n }\n mapperFile.createNewFile();\n\n this.mapperDocFiles.setDirToSave(mapperFile);\n this.mapperDocFiles.save();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void flush(){\n if(instance.flushed)\n return;\n\n try{\n instance.writer.flush();\n instance.flushed = true;\n }catch(IOException e){\n e.printStackTrace();\n }\n }",
"public void flush(){\r\n\t\tfor (Node n : allNodes.values()){\r\n\t\t\tn.flush();\r\n\t\t}\r\n\t\t\r\n\t\tfor (Connection c : connections.values()){\r\n\t\t\tc.reset();\r\n\t\t}\r\n\t}",
"@AfterClass\n\tpublic static void restore() {\n\t\tFile [] configFiles = data.getConfigFile().listFiles();\n\t\tFile [] contactFiles = data.getContactFile().listFiles();\n\t\tfor(int i = 0; i < configFiles.length; ++i)\n\t\t\tconfigFiles[i].delete();\n\t\tfor(int i = 0; i < contactFiles.length; ++i)\n\t\t\tcontactFiles[i].delete();\n\t}",
"public void flush() {\n try {\n for (Batch batch: this.incomplete.all()) {\n batch.await();\n }\n } catch (Exception e) {\n LOG.info (\"Error happens when flushing\");\n }\n }",
"void flushAsync() {\n if (storeDirectory == null) {\n return;\n }\n\n try {\n Async.run(new Runnable() {\n @Override\n public void run() {\n flushReports(findStoredFiles());\n }\n });\n } catch (RejectedExecutionException exception) {\n Logger.warn(\"Failed to flush all on-disk errors, retaining unsent errors for later.\");\n }\n }",
"void saveAllConfigs();",
"public void flushCaches() {\n LOCAL_SMALL_CACHE.clear();\n LOCAL_LARGE_CACHE.clear();\n }",
"private void flushDatabase(){\n\t\tDeniz_DatabaseConnection.dropDatabase();\n\t\tDeniz_DatabaseConnection.createDatabase();\n\t\tDeniz_DatabaseConnection.useDatabase();\n\t\tflushUserTable();\n\t\tflushWikiTable();\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new RV ICBM with the given SNAC command subtype, rendezvous session ID, and the properties of the given RvCommand. | protected AbstractRvIcbm(int command, long icbmMessageId, long rvSessionId,
final RvCommand rvCommand) {
this(command, icbmMessageId, rvCommand.getRvStatus(),
rvSessionId, rvCommand.getCapabilityBlock(),
new LiveWritable() {
public void write(OutputStream out) throws IOException {
rvCommand.writeRvData(out);
}
});
} | [
"protected AbstractRvIcbm(int command, SnacPacket packet) {\n super(IcbmCommand.FAMILY_ICBM, command, packet);\n }",
"public CPRCommand()\r\n {\r\n }",
"abstract public Vcard createVcard();",
"SnacCommand genSnacCommand(SnacPacket packet);",
"private GetQrcRspMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public LDRCommand()\r\n {\r\n }",
"public RemoteCommand create() throws javax.ejb.CreateException,\n java.rmi.RemoteException;",
"public interface SnacCmdFactory {\n /**\n * Returns a list of the SNAC command types this factory can possibly\n * convert to <code>SnacCommand</code>s. Note that it is not required to\n * be able to convert every SNAC packet that matches the types returned by\n * this method; rather, this just provides a means of filtering out types\n * that can definitely not be handled (by not including them in the returned\n * list).\n * <br>\n * <br>\n * Also note that <b>the command types contained in the list returned must\n * be consistent between calls to this method</b>; that is, an\n * implementation cannot change the supported command type list after this\n * factory has been created.\n *\n * @return a list of command types that can be passed to\n * <code>genSnacCommand</code>\n */\n List<CmdType> getSupportedTypes();\n\n /**\n * Attempts to convert the given SNAC packet to a <code>SnacCommand</code>.\n * This can return <code>null</code> if no appropriate\n * <code>SnacCommand</code> can be created (for example, if the packet is in\n * an invalid format).\n *\n * @param packet the packet to use for generation of a\n * <code>SnacCommand</code>\n * @return an appropriate <code>SnacCommand</code> for representing the\n * given <code>SnacPacket</code>, or <code>null</code> if no such\n * object can be created\n */\n SnacCommand genSnacCommand(SnacPacket packet);\n}",
"public LaunchVncMessage() {\r\n\t\tsuper();\r\n\t}",
"StatefulRemoteObjectB create() throws RemoteException, CreateException;",
"private NewNodeRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"protected ExecMessage(String command) {\r\n super(MessageType.EXEC);\r\n addParameter(ATTRIBUTE_COMMAND, command);\r\n }",
"private AUVCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private RegisterRspMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"Command createCommand();",
"public SatelCommandBase(byte commandCode, byte[] payload) {\n super(commandCode, payload);\n }",
"RBDR createRBDR();",
"public Command getCreateInfo(){\n\t\tCommand createCommand = new Command(Command.Type.CREATE);\n\t\tString title = createTitleField.getText();\n\t\tString artist = createArtistField.getText();\n\t\tString mediaType = mediaTypes[createTypeField.getSelectedIndex()];\n\t\tswitch (mediaType){\n\t\t\tcase \"CD\":\n\t\t\t\tcreateCommand.setMediaItem(new CD(title, artist));\n\t\t\t\tbreak;\n\t\t\tcase \"DVD\":\n\t\t\t\tcreateCommand.setMediaItem(new DVD(title, artist));\n\t\t\t\tbreak;\n\t\t\tcase \"Book\":\n\t\t\t\tcreateCommand.setMediaItem(new Book(title, artist));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t\treturn createCommand;\n\t}",
"public CommandPacket(int requestId, String senderAddress, int senderPort, JSONObject command) {\n this.setType(PacketType.COMMAND);\n this.clientRequestId = requestId;\n this.LNSRequestId = -1; // this will be filled in at the LNS\n this.senderAddress = senderAddress;\n this.senderPort = senderPort;\n this.command = command;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Receive the Broadcast from the button BroadcastStartActivity and start MainActivitys | private void initializeBroadcastReceiver() {
mIntentFilterForMainActivity = new IntentFilter();
mIntentFilterForMainActivity.addAction("action.intent.action.MYRECEIVER");
mLocalReceiverForMainActivity = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
Intent i = new Intent();
i.setClass(context, MainActivity.class);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(i);
}
};
registerReceiver(mLocalReceiverForMainActivity, mIntentFilterForMainActivity);
} | [
"private void handleStart(Intent intent) {\n if (intent != null && intent.hasExtra(COMMAND_EXTRA)) {\n Bundle extras = intent.getExtras();\n int command = extras.getInt(COMMAND_EXTRA, COMMAND_UNKNOWN);\n try {\n long alarmId = currentAlarmId(); // get the current alarm\n switch (command) {\n case COMMAND_DISMISS_ALARM:\n Log.d(TAG, \"action button: dismiss is clicked\");\n acknowledgeCurrentNotification(0);\n break;\n case COMMAND_SNOOZE_ALARM:\n Log.d(TAG, \"action button: snooze is clicked\");\n int snoozeMinutes = db.readAlarmSettings(alarmId).getSnoozeMinutes(); // get snooze minutes time from the database\n acknowledgeCurrentNotification(snoozeMinutes);\n break;\n }\n\n // finish the notification activity because it may be already exists. Send a local broadcast that will be received by the activity\n LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(NotificationService.this);\n localBroadcastManager.sendBroadcast(new Intent(\"com.kiss.alarm.action.close\"));\n\n // To refresh the alarm's \"next time\" if the main activity was already opened\n if(ActivityAlarmClock.isActive){\n Intent i =new Intent(NotificationService.this, ActivityAlarmClock.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n }\n\n } catch (NoAlarmsException e) {\n e.printStackTrace();\n }\n\n\n return; // Don't start the alarm sound, return because this intent is started by a user clicked on dismiss or snooze action button\n }\n\n // startService called from alarm receiver with an alarm id url. onStartCommand is not starting by an action button\n if (intent != null && intent.getData() != null) {\n long alarmId = AlarmUtil.alarmUriToId(intent.getData());\n try {\n WakeLock.assertHeld(alarmId);\n } catch (WakeLock.WakeLockException e) {\n if (AppSettings.isDebugMode(NotificationService.this)) {\n throw new IllegalStateException(e.getMessage());\n }\n }\n // We starts the notification activity by the notification now, so that the system Ui can choose to show\n // heads up notification instead of the activity if the user is busy using the device right now\n /*Intent notifyActivity = new Intent(NotificationService.this, ActivityAlarmNotification.class);\n notifyActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(notifyActivity);*/\n\n boolean firstAlarm = firingAlarms.size() == 0;\n if (!firingAlarms.contains(alarmId)) {\n firingAlarms.add(alarmId);\n }\n\n if (firstAlarm) {\n soundAlarm(alarmId);\n }\n }\n }",
"void onBroadcastingStarted();",
"@Override\r\n public void onClick(View v) {\n\r\n new Thread() {\r\n public void run() {\r\n //在子线程启动后的service线程还是在主线程\r\n //就跟在子线程里面启动activity一样,新启动的activity肯定是在主线程,\r\n // 跟启动流程有关,可以去研究下,好像是handler切换了下\r\n Log.i(TAG, \"btn_start_process currentThread: \" + Thread.currentThread().getId());\r\n Intent intent = new Intent(NotificationActivity.this, MaterialActivity.class);\r\n startActivity(intent);\r\n }\r\n }.start();\r\n }",
"public void broadcastStart() {\n\t\t\t_clients.broadcast(\"START\\n\");\n\t}",
"public static void startBroadcasting(){\n\t\t //To create an instance of this abstract class,\n\t\t //we must define its one needed function, run().\n\t\t Thread startBroadcast = new Thread(){\n\t\t\t public void run(){\n\t\t\t\t //When we have a new thread ready, we want to start the time consuming\n\t\t\t\t //process to broadcast our services to the world.\n\t\t\t\t _startBroadcasting();\n\t\t\t }\n\t\t };\n\t\t \n\t\t //Once we have this anonymous class ready, we can start this thread. \n\t\t startBroadcast.start();\n\t }",
"private void sendToStart(){\n Intent startIntent = new Intent(MainActivity.this,StartActivity.class);\n startActivity(startIntent);\n finish();\n }",
"public void run() {\n\t\t\t\tInetAddress bAddr = AndyNet.getBroadcastIP(activity);\n\t\t\t\tLog.i(TAG, \"Broadcast Address: \" + bAddr.getHostAddress());\n\t\t\t\tif (bAddr != null) {\n\t\t\t\t\tAndyNet.startBroadcast(AndyMaster.getName(), 0, bAddr);\n\t\t\t\t}\n\n\t\t\t}",
"private void broadcastReadyAction() {\n Log.d(TAG, \"broadcastReadyAction start\");\n final Intent intent = new Intent();\n intent.setAction(BeaconsMonitoringService.SERVICE_READY_ACTION);\n getBaseContext().sendBroadcast(intent);\n Log.d(TAG, \"broadcastReadyAction end\");\n }",
"public void startBroadcasting(StartCallback callback) {\n d(\"startBroadcasting()\");\n\n if (state == State.BROADCASTING) {\n w(\"will not start broadcasting: already \" +\n \"broadcasting\");\n\n callback.onBroadcastingStarted();\n return;\n }\n\n core.start();\n // if ble was stopped with terminate, we need to start it again.\n startBle();\n\n if (state == State.BLUETOOTH_UNAVAILABLE) {\n callback.onBroadcastingFailed(new BroadcastError(BroadcastError.Type.BLUETOOTH_OFF\n , 0, \"Bluetooth is turned off\"));\n return;\n }\n\n // get the advertiser\n if (mBluetoothLeAdvertiser == null) {\n mBluetoothLeAdvertiser = ble.getAdapter().getBluetoothLeAdvertiser();\n\n if (mBluetoothLeAdvertiser == null) {\n // for unsupported devices the system does not return an advertiser\n setState(State.BLUETOOTH_UNAVAILABLE);\n callback.onBroadcastingFailed(new BroadcastError(BroadcastError.Type.UNSUPPORTED\n , 0, \"Bluetooth is no supported\"));\n return;\n }\n }\n\n if (this.configuration == null) this.configuration = new BroadcastConfiguration();\n ble.setRandomAdapterName(configuration.isOverridingAdvertisementName());\n startCallback = callback;\n gattServer.open();\n }",
"public void run(){\n\t\t\t\t _startBroadcasting();\n\t\t\t }",
"protected void startBroadcastLocation() {\n AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n int interval = 5000;\n\n manager.setInexactRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), interval, pendingIntent);\n Toast.makeText(this, \"Alarm Set\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View view) {\n Intent intent = MainActivity.newIntent(getActivity(), mMonitor.getId());\n startActivity(intent);\n\n }",
"BroadcastReceiver getBroadcastReceiver();",
"public BabyBroadcastReceiver() {\n// babyNotification = new BabyNotification(MainActivity.this);\n }",
"private void registerBroadcastReceiver(){\n final IntentFilter hceNotificationsFilter = new IntentFilter();\n hceNotificationsFilter.addAction(\"unitap.action.NOTIFY_MAIN_DATA\");\n activity.registerReceiver(hceNotificationsReceiver, hceNotificationsFilter);\n Log.v(\"Registering Receiver\", \"MAIN Receiver\");\n }",
"private void setupBroadcastReceiver() {\n\t\tbroadcastReceiver = new BroadcastReceiver() {\n\t\t\t@Override\n\t\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\t\tswitch (intent.getAction()) {\n\t\t\t\tcase RemoteRelayService.ACTION_STATE_CHANGE:\n\t\t\t\t\thandleStateChange(intent.getIntExtra(RemoteRelayService.KEY_STATE, -1));\n\t\t\t\t\tbreak;\n\t\t\t\tcase RemoteRelayService.ACTION_READ:\n\t\t\t\t\thandleMessage(intent.getStringExtra(RemoteRelayService.KEY_MESSAGE));\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tLog.e(TAG, \"unexpected intent action received\");\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}",
"@Override\n public void onClick(View v) {\n\n startActivity(new Intent(MainActivity.this,FindEvents.class));\n // startActivity(eventIntent);\n }",
"public void launchMaster()\n {\n \tIntent mIntent = new Intent(MainActivity.this, MasterButtonActivity.class);\n \tstartActivityForResult(mIntent, NEW_MASTER_BUTTON_ACTIVITY);\n }",
"public void startBroadcastFragment() {\n // Before using the BroadcastFragment, be sure to\n // register your BroadcastListener with Kickflip\n configureNewBroadcast();\n Kickflip.setBroadcastListener(mBroadcastListener);\n getFragmentManager().beginTransaction()\n .replace(R.id.container, BroadcastFragment.getInstance())\n .commit();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a value to the sequence at the given index for a given state. | public void add(String state, Integer index, Element value) {
if (data.keySet().contains(state))
data.get(state).add(index, value);
} | [
"public void addTo(int valueToAdd, int index){\n\t\tdata[index] += valueToAdd;\n\t}",
"public void add(int index, Object value) {\n values[index] = value;\n }",
"public void add(int index, int value) {\n ensureCapacity(size + 1);\n for (int i = size; i > index; i--)\n elementData[i] = elementData[i - 1];\n elementData[index] = value;\n size++;\n }",
"public void addValue(int i) {\n value = value + i;\n }",
"public void add(T value, int index) {\n if(size <= 0 || index >= size) {\n throw new IndexOutOfBoundsException();\n }\n if(index == 0){\n prepend(value);\n } else if (index == size - 1) {\n add(value);\n } else {\n SingleNode<T> beforeNewNode = getSingleNodeByIndex(index - 1);\n beforeNewNode.setNextNode(new SingleNode<T>(value, beforeNewNode.getNextNode()));\n size++;\n }\n }",
"public void addAtIndex(int index, int val) {\n Node next = head.getNext();\n if(index < 0) {\n int length = getLength();\n index = length + index + 1;\n }\n if(index == 0){\n addAtHead(val);\n return;\n }\n Node pre = getNode(index -1);\n if(pre == null){\n return;\n }\n Node np = pre.getNext();\n Node now = new Node(val, np);\n pre.setNext(now);\n }",
"public void addAtIndex(int index, int val) {\n if (index > size) return;\n Node p = head;\n while (index-- > 0) p = p.next;\n Node n = new Node(val, p.next, p);\n p.next.prev = n;\n p.next = n;\n size++;\n }",
"public void addIndexedArgumentValue(int index, Object value) {\n indexedArgumentValues.put(index, new ValueHolder(value));\n }",
"public void add(int index, Byte value) {\r\n checkAddModifiable();\r\n checkIndex(index);\r\n add(index, ByteUtils.toPrimitive(value));\r\n }",
"@Override\n\tpublic void addAt(int n, int index) throws IndexOutOfBoundsException {\n\t\tif(checkIndex(index, size+1)) { //check if index is valid\n\t\t\tfor (int i=size; i>index; i--) {\n\t\t\t\tvalues[i] = values[i-1]; //move every value one step right until index\n\t\t\t}\n\t\t\tvalues[index] = n; //place the new value at index\n\t\t\tsize++; //increment size\n\t\t\tif (size == values.length) { //if the list is full expand it\n\t\t\t\tresize();\n\t\t\t}\t\t\t\n\t\t}else {\n\t\t\tthrow new IndexOutOfBoundsException(\"Highest index: \" + size);\n\t\t}\t\n\t}",
"public final int addState(State state) {\n State newState = state.copy();\n newState.setNumber(this.stateCounter++);\n this.states.add(newState);\n return this.stateCounter - 1;\n }",
"public abstract long inc(int index, long value);",
"public void add(int index, E item) {\n listIterator(index).add(item);\n }",
"public void set(String state, Integer index, Element value) {\r\n\t\tif (data.keySet().contains(state))\r\n\t\t\tdata.get(state).set(index, value);\r\n\t}",
"@Override\r\n\tpublic void add(int n) \r\n\t{\r\n\t\tvalues[size] = n;\r\n\t\tsize ++;\r\n\t}",
"public void addAtIndex(int index, int val) {\r\n if (index > length) return;\r\n if (index == length) {\r\n addAtTail(val);\r\n return;\r\n }\r\n if (index < 0) {\r\n addAtHead(val);\r\n return;\r\n }\r\n Node p = dummyHead, pre = dummyHead;\r\n\r\n for (int i = 0; i <= index; i++) {\r\n pre = p;\r\n p = p.next;\r\n }\r\n Node newNode = new Node(val);\r\n newNode.next = p;\r\n pre.next = newNode;\r\n length++;\r\n }",
"public void addIndexedArgumentValue(int index, Object value, Class<?> type) {\n indexedArgumentValues.put(index, new ValueHolder(value, type));\n }",
"private final void addKeyValuePair(int index, int key, int value) {\n getKeys().add(index, key);\n getValues().add(index, value);\n getBTreeMetaData().setDirty(this);\n }",
"public void addAtIndex(int index, int val) {\n if (index <= 0) {\n ListNode oldFirst = this.first;\n this.first = new ListNode(null, val, oldFirst);\n if (size == 0) {\n last = first;\n } else {\n oldFirst.prev = first;\n }\n } else if (index > size) {\n return;\n } else {\n ListNode node = node(index - 1);\n ListNode oldNextNode = node.next;\n node.next = new ListNode(node, val, oldNextNode);\n // 如果index == size -1, 那么oldNextNode == null\n if (oldNextNode != null) {\n oldNextNode.prev = node.next;\n } else {\n last = node.next;\n }\n }\n size++;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Attribute__Group__3" $ANTLR start "rule__Attribute__Group__3__Impl" InternalMyDsl.g:6480:1: rule__Attribute__Group__3__Impl : ( ( rule__Attribute__TypeAssignment_3 ) ) ; | public final void rule__Attribute__Group__3__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:6484:1: ( ( ( rule__Attribute__TypeAssignment_3 ) ) )
// InternalMyDsl.g:6485:1: ( ( rule__Attribute__TypeAssignment_3 ) )
{
// InternalMyDsl.g:6485:1: ( ( rule__Attribute__TypeAssignment_3 ) )
// InternalMyDsl.g:6486:2: ( rule__Attribute__TypeAssignment_3 )
{
before(grammarAccess.getAttributeAccess().getTypeAssignment_3());
// InternalMyDsl.g:6487:2: ( rule__Attribute__TypeAssignment_3 )
// InternalMyDsl.g:6487:3: rule__Attribute__TypeAssignment_3
{
pushFollow(FOLLOW_2);
rule__Attribute__TypeAssignment_3();
state._fsp--;
}
after(grammarAccess.getAttributeAccess().getTypeAssignment_3());
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__Attribute__Group_3__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:1064:1: ( ( ( rule__Attribute__TypeNameAssignment_3_2 ) ) )\n // InternalMyDsl.g:1065:1: ( ( rule__Attribute__TypeNameAssignment_3_2 ) )\n {\n // InternalMyDsl.g:1065:1: ( ( rule__Attribute__TypeNameAssignment_3_2 ) )\n // InternalMyDsl.g:1066:2: ( rule__Attribute__TypeNameAssignment_3_2 )\n {\n before(grammarAccess.getAttributeAccess().getTypeNameAssignment_3_2()); \n // InternalMyDsl.g:1067:2: ( rule__Attribute__TypeNameAssignment_3_2 )\n // InternalMyDsl.g:1067:3: rule__Attribute__TypeNameAssignment_3_2\n {\n pushFollow(FOLLOW_2);\n rule__Attribute__TypeNameAssignment_3_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAttributeAccess().getTypeNameAssignment_3_2()); \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__AttributeDefinition__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTaskDefinition.g:1734:1: ( ( ( rule__AttributeDefinition__TypeAssignment_3 ) ) )\n // InternalTaskDefinition.g:1735:1: ( ( rule__AttributeDefinition__TypeAssignment_3 ) )\n {\n // InternalTaskDefinition.g:1735:1: ( ( rule__AttributeDefinition__TypeAssignment_3 ) )\n // InternalTaskDefinition.g:1736:2: ( rule__AttributeDefinition__TypeAssignment_3 )\n {\n before(grammarAccess.getAttributeDefinitionAccess().getTypeAssignment_3()); \n // InternalTaskDefinition.g:1737:2: ( rule__AttributeDefinition__TypeAssignment_3 )\n // InternalTaskDefinition.g:1737:3: rule__AttributeDefinition__TypeAssignment_3\n {\n pushFollow(FOLLOW_2);\n rule__AttributeDefinition__TypeAssignment_3();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAttributeDefinitionAccess().getTypeAssignment_3()); \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__AttributeDefinition__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCommunicationObject.g:2306:1: ( ( ( rule__AttributeDefinition__TypeAssignment_3 ) ) )\n // InternalCommunicationObject.g:2307:1: ( ( rule__AttributeDefinition__TypeAssignment_3 ) )\n {\n // InternalCommunicationObject.g:2307:1: ( ( rule__AttributeDefinition__TypeAssignment_3 ) )\n // InternalCommunicationObject.g:2308:2: ( rule__AttributeDefinition__TypeAssignment_3 )\n {\n before(grammarAccess.getAttributeDefinitionAccess().getTypeAssignment_3()); \n // InternalCommunicationObject.g:2309:2: ( rule__AttributeDefinition__TypeAssignment_3 )\n // InternalCommunicationObject.g:2309:3: rule__AttributeDefinition__TypeAssignment_3\n {\n pushFollow(FOLLOW_2);\n rule__AttributeDefinition__TypeAssignment_3();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAttributeDefinitionAccess().getTypeAssignment_3()); \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__AttributeDefinition__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBasicAttributes.g:780:1: ( ( ( rule__AttributeDefinition__TypeAssignment_3 ) ) )\n // InternalBasicAttributes.g:781:1: ( ( rule__AttributeDefinition__TypeAssignment_3 ) )\n {\n // InternalBasicAttributes.g:781:1: ( ( rule__AttributeDefinition__TypeAssignment_3 ) )\n // InternalBasicAttributes.g:782:2: ( rule__AttributeDefinition__TypeAssignment_3 )\n {\n before(grammarAccess.getAttributeDefinitionAccess().getTypeAssignment_3()); \n // InternalBasicAttributes.g:783:2: ( rule__AttributeDefinition__TypeAssignment_3 )\n // InternalBasicAttributes.g:783:3: rule__AttributeDefinition__TypeAssignment_3\n {\n pushFollow(FOLLOW_2);\n rule__AttributeDefinition__TypeAssignment_3();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAttributeDefinitionAccess().getTypeAssignment_3()); \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__Attribute__Group_6__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:13845:1: ( ( ( rule__Attribute__TypeAssignment_6_1 ) ) )\n // InternalMyDsl.g:13846:1: ( ( rule__Attribute__TypeAssignment_6_1 ) )\n {\n // InternalMyDsl.g:13846:1: ( ( rule__Attribute__TypeAssignment_6_1 ) )\n // InternalMyDsl.g:13847:2: ( rule__Attribute__TypeAssignment_6_1 )\n {\n before(grammarAccess.getAttributeAccess().getTypeAssignment_6_1()); \n // InternalMyDsl.g:13848:2: ( rule__Attribute__TypeAssignment_6_1 )\n // InternalMyDsl.g:13848:3: rule__Attribute__TypeAssignment_6_1\n {\n pushFollow(FOLLOW_2);\n rule__Attribute__TypeAssignment_6_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAttributeAccess().getTypeAssignment_6_1()); \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__Attribute__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1124:1: ( ( ( rule__Attribute__TypeAssignment_2 ) ) )\n // InternalBSQL2Java.g:1125:1: ( ( rule__Attribute__TypeAssignment_2 ) )\n {\n // InternalBSQL2Java.g:1125:1: ( ( rule__Attribute__TypeAssignment_2 ) )\n // InternalBSQL2Java.g:1126:2: ( rule__Attribute__TypeAssignment_2 )\n {\n before(grammarAccess.getAttributeAccess().getTypeAssignment_2()); \n // InternalBSQL2Java.g:1127:2: ( rule__Attribute__TypeAssignment_2 )\n // InternalBSQL2Java.g:1127:3: rule__Attribute__TypeAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__Attribute__TypeAssignment_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAttributeAccess().getTypeAssignment_2()); \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__Attribute__Group__4__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:7194:1: ( ( ( rule__Attribute__TypeAssignment_4 ) ) )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:7195:1: ( ( rule__Attribute__TypeAssignment_4 ) )\r\n {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:7195:1: ( ( rule__Attribute__TypeAssignment_4 ) )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:7196:1: ( rule__Attribute__TypeAssignment_4 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getAttributeAccess().getTypeAssignment_4()); \r\n }\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:7197:1: ( rule__Attribute__TypeAssignment_4 )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:7197:2: rule__Attribute__TypeAssignment_4\r\n {\r\n pushFollow(FOLLOW_rule__Attribute__TypeAssignment_4_in_rule__Attribute__Group__4__Impl14503);\r\n rule__Attribute__TypeAssignment_4();\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.getAttributeAccess().getTypeAssignment_4()); \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__Attribute__Group_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:714:1: ( ( ( rule__Attribute__TypeNameAssignment_0_2 ) ) )\n // InternalMyDsl.g:715:1: ( ( rule__Attribute__TypeNameAssignment_0_2 ) )\n {\n // InternalMyDsl.g:715:1: ( ( rule__Attribute__TypeNameAssignment_0_2 ) )\n // InternalMyDsl.g:716:2: ( rule__Attribute__TypeNameAssignment_0_2 )\n {\n before(grammarAccess.getAttributeAccess().getTypeNameAssignment_0_2()); \n // InternalMyDsl.g:717:2: ( rule__Attribute__TypeNameAssignment_0_2 )\n // InternalMyDsl.g:717:3: rule__Attribute__TypeNameAssignment_0_2\n {\n pushFollow(FOLLOW_2);\n rule__Attribute__TypeNameAssignment_0_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAttributeAccess().getTypeNameAssignment_0_2()); \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__Attribute__Group_6__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:13818:1: ( ( 'type' ) )\n // InternalMyDsl.g:13819:1: ( 'type' )\n {\n // InternalMyDsl.g:13819:1: ( 'type' )\n // InternalMyDsl.g:13820:2: 'type'\n {\n before(grammarAccess.getAttributeAccess().getTypeKeyword_6_0()); \n match(input,78,FOLLOW_2); \n after(grammarAccess.getAttributeAccess().getTypeKeyword_6_0()); \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__Attribute__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:6473:1: ( rule__Attribute__Group__3__Impl )\n // InternalMyDsl.g:6474:2: rule__Attribute__Group__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Attribute__Group__3__Impl();\n\n state._fsp--;\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__Attribute__Group_1__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:837:1: ( rule__Attribute__Group_1__3__Impl )\n // InternalMyDsl.g:838:2: rule__Attribute__Group_1__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Attribute__Group_1__3__Impl();\n\n state._fsp--;\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__Attribute__Group_0__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:7404:1: ( rule__Attribute__Group_0__3__Impl )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:7405:2: rule__Attribute__Group_0__3__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Attribute__Group_0__3__Impl_in_rule__Attribute__Group_0__314911);\r\n rule__Attribute__Group_0__3__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Attribute__Group_0__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:729:1: ( rule__Attribute__Group_0__3__Impl )\n // InternalMyDsl.g:730:2: rule__Attribute__Group_0__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Attribute__Group_0__3__Impl();\n\n state._fsp--;\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__Attribute__Group_6_1_3__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:7980:1: ( rule__Attribute__Group_6_1_3__1__Impl )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:7981:2: rule__Attribute__Group_6_1_3__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Attribute__Group_6_1_3__1__Impl_in_rule__Attribute__Group_6_1_3__116037);\r\n rule__Attribute__Group_6_1_3__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Attribute__Group_2__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:930:1: ( ( ( rule__Attribute__TypeNameAssignment_2_2 ) ) )\n // InternalMyDsl.g:931:1: ( ( rule__Attribute__TypeNameAssignment_2_2 ) )\n {\n // InternalMyDsl.g:931:1: ( ( rule__Attribute__TypeNameAssignment_2_2 ) )\n // InternalMyDsl.g:932:2: ( rule__Attribute__TypeNameAssignment_2_2 )\n {\n before(grammarAccess.getAttributeAccess().getTypeNameAssignment_2_2()); \n // InternalMyDsl.g:933:2: ( rule__Attribute__TypeNameAssignment_2_2 )\n // InternalMyDsl.g:933:3: rule__Attribute__TypeNameAssignment_2_2\n {\n pushFollow(FOLLOW_2);\n rule__Attribute__TypeNameAssignment_2_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAttributeAccess().getTypeNameAssignment_2_2()); \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__Attribute__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:12357:1: ( ( ( rule__Attribute__AttAssignment_3 )* ) )\n // InternalDsl.g:12358:1: ( ( rule__Attribute__AttAssignment_3 )* )\n {\n // InternalDsl.g:12358:1: ( ( rule__Attribute__AttAssignment_3 )* )\n // InternalDsl.g:12359:2: ( rule__Attribute__AttAssignment_3 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAttributeAccess().getAttAssignment_3()); \n }\n // InternalDsl.g:12360:2: ( rule__Attribute__AttAssignment_3 )*\n loop91:\n do {\n int alt91=2;\n int LA91_0 = input.LA(1);\n\n if ( (LA91_0==RULE_ID) ) {\n alt91=1;\n }\n\n\n switch (alt91) {\n \tcase 1 :\n \t // InternalDsl.g:12360:3: rule__Attribute__AttAssignment_3\n \t {\n \t pushFollow(FOLLOW_17);\n \t rule__Attribute__AttAssignment_3();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop91;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAttributeAccess().getAttAssignment_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Attribute__Group_6_0_3__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:7757:1: ( rule__Attribute__Group_6_0_3__1__Impl )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:7758:2: rule__Attribute__Group_6_0_3__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Attribute__Group_6_0_3__1__Impl_in_rule__Attribute__Group_6_0_3__115600);\r\n rule__Attribute__Group_6_0_3__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__SystemType__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:1187:1: ( ( ( rule__SystemType__AttributeAssignment_3 ) ) )\n // InternalMyDsl.g:1188:1: ( ( rule__SystemType__AttributeAssignment_3 ) )\n {\n // InternalMyDsl.g:1188:1: ( ( rule__SystemType__AttributeAssignment_3 ) )\n // InternalMyDsl.g:1189:2: ( rule__SystemType__AttributeAssignment_3 )\n {\n before(grammarAccess.getSystemTypeAccess().getAttributeAssignment_3()); \n // InternalMyDsl.g:1190:2: ( rule__SystemType__AttributeAssignment_3 )\n // InternalMyDsl.g:1190:3: rule__SystemType__AttributeAssignment_3\n {\n pushFollow(FOLLOW_2);\n rule__SystemType__AttributeAssignment_3();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getSystemTypeAccess().getAttributeAssignment_3()); \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__Attribute__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:822:1: ( ( ( rule__Attribute__TypeNameAssignment_1_2 ) ) )\n // InternalMyDsl.g:823:1: ( ( rule__Attribute__TypeNameAssignment_1_2 ) )\n {\n // InternalMyDsl.g:823:1: ( ( rule__Attribute__TypeNameAssignment_1_2 ) )\n // InternalMyDsl.g:824:2: ( rule__Attribute__TypeNameAssignment_1_2 )\n {\n before(grammarAccess.getAttributeAccess().getTypeNameAssignment_1_2()); \n // InternalMyDsl.g:825:2: ( rule__Attribute__TypeNameAssignment_1_2 )\n // InternalMyDsl.g:825:3: rule__Attribute__TypeNameAssignment_1_2\n {\n pushFollow(FOLLOW_2);\n rule__Attribute__TypeNameAssignment_1_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAttributeAccess().getTypeNameAssignment_1_2()); \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"
]
]
}
} |
Return CO2 emission in kilograms per distance for a vehicle type | public static double calculateCO2(int vehicleType, double metres) {
double co2=0;
switch (vehicleType) {
case MainActivity.ELECTRIC_BIKE:
co2=(0.006*metres)/1000;
Log.e (TAG, "Electric bike CO2 calculation not supposed to occur in Laddbil");
break;
case MainActivity.ELECTRIC:
co2=(0.0139*metres)/1000;
break;
case MainActivity.HYBRID:
co2=(0.0564*metres)/1000;
break;
case MainActivity.PETROL:
co2=(0.1918*metres)/1000;
break;
case MainActivity.DIESEL:
co2=(0.1641*metres)/1000;
break;
default:
Log.e (TAG, "*** Contact programmer at once ***; vehicleType ="+vehicleType+" !!");
break;
}
return co2;
} | [
"public double getTonsOfCO2(){return tonsOfCO2;}",
"public void updateCO2Produced(double co2) {\r\n\t\tco2Produced.setText(\"CO2 Produced (kg/km): \" + BigDecimal.valueOf(co2).setScale(2, RoundingMode.HALF_UP));\r\n\t}",
"public double getTotalCO2Vancouver(){\n return getTotalCO2Emissions() * VANCOUVER_POPULATION;\n }",
"public int getPrice(String type, int distance) {\n int GenehperKilo = 0, price = 0;\n boolean less = false;\n int current_hour = hours();\n if (type.equalsIgnoreCase(\"car\")) {\n if (distance < 3000) {\n price = 25;\n less = true;\n } else {\n if (current_hour >= 0 && current_hour < 13) {\n GenehperKilo = 8;\n } else if (current_hour >= 13 && current_hour < 19) {\n GenehperKilo = 10;\n } else if (current_hour >= 19 && current_hour <= 23) {\n GenehperKilo = 9;\n }\n }\n } else if (type.equalsIgnoreCase(\"tuktuk\")) {\n if (distance < 1000) {\n price = 5;\n less = true;\n } else {\n if (current_hour >= 0 && current_hour < 18) {\n GenehperKilo = 7;\n } else if (current_hour >= 18 && current_hour < 23) {\n GenehperKilo = 6;\n }\n }\n } else if (type.equalsIgnoreCase(\"amjad\")) {\n if (distance < 3000) {\n price = 25;\n less = true;\n } else {\n if (current_hour >= 0 && current_hour < 13) {\n GenehperKilo = 5;\n } else if (current_hour >= 13 && current_hour < 19) {\n GenehperKilo = 6;\n } else if (current_hour >= 19 && current_hour <= 23) {\n GenehperKilo = 6;\n }\n }\n }\n if (!less) {\n price = GenehperKilo * (distance / 1000);\n }\n // In the end the total price gets generated by multipying the Genehperkilo and the distance specified for us by Mohanned\n return price;\n // And don't forget to embrace my amazing programming skills and please like and subscribe!!!!!\n }",
"public double getVCO2() \r\n {\r\n return this.VCO2;\r\n }",
"public double getPoundsOfCO2(){return poundsOfCO2;}",
"public static double computeCopperWireResistance(double length, double diameter)\r\n{ \r\n //Copper resistivity in Ohms mm\r\n final double COPPER_RESISTIVITY = 1.678E-5;\r\n final double INCHES_TO_MM_CONVERTER = 25.4;\r\n \r\n //Convert length in inches to mm\r\n length = length * INCHES_TO_MM_CONVERTER; \r\n \r\n return (4.0 * COPPER_RESISTIVITY * length) / (Math.PI * Math.pow(diameter, 2.0));\r\n \r\n}",
"private String getCm() {\n toCm = kmTcm * Kilometer;\n return toCm + \" CentiMeters (Cm)\";\n }",
"public int getK2(){\r\n\t\tint k2 = 0;\r\n\t\tif (curve instanceof ECF2mTrinomialBasis) //trinomial basis has no k2\r\n\t\t\tk2 = 0;\r\n\t\t\r\n\t\tif (curve instanceof ECF2mPentanomialBasis)\r\n\t\t\tk2 = ((ECF2mPentanomialBasis)curve).getK2();\r\n\t\t\r\n\t\treturn k2;\r\n\t}",
"private void co2TotMedal() {\n fullCO2Value = 1000;\n currentCO2Value = user.getCo2Tot();\n }",
"double kEnergy ()\n {\n Vector v = this.velocity;\n double vectorSum = 0;\n for(int i = 0; i < 3; i++){\n vectorSum += Math.pow((v.cartesian(i)), 2);\n }\n double k = (this.mass/2)*(vectorSum);\n return k;\n }",
"double getVc2on();",
"public double getPaCO2() \r\n {\r\n return this.PaCO2;\r\n }",
"public String getDistanceType ();",
"public double getPmvCO2() \r\n {\r\n return this.PmvCO2;\r\n }",
"private double numberOfLabManHourPerFlightCycleSforza(double OEM){\n\t\t\treturn 6. + 0.05 * OEM/1000. - 630./(OEM/1000.+120.);\t\t\n\t\t}",
"double getKp2();",
"float getCo();",
"public double getTotalCO2Emissions() {\n totalCO2Emissions = 0;\n Food foodItem;\n\n // Loop through the ArrayList with the 5 Food Categories\n // For each Food Category, loop through the food items and get the CO2e and timesPerWeek\n // Add up the total CO2 emissions for every food item\n // Returns the total CO2 emissions per year\n for(int foodCatIndex=0; foodCatIndex<foodBank.size(); foodCatIndex++){\n foodlist = foodBank.get(foodCatIndex);\n for(int foodNameIndex=0; foodNameIndex<foodlist.getSize(); foodNameIndex++){\n foodItem = foodlist.getFood(foodNameIndex);\n totalCO2Emissions += foodItem.getCo2PerServing() * foodItem.getTimesPerWeek();\n }\n }\n return totalCO2Emissions * NUM_WEEKS_IN_YEAR;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that subclasses can override to do processing when the UI is idle. Note that repainting is NOT assumed. To get a refresh after onIdle, call doRepaint(). | public void onIdle() {
// Default: do nothing, pass to children instead
for (TWidget widget: children) {
widget.onIdle();
}
} | [
"public void onIdle() {\n\t\tbehaviour.onIdle();\n\t}",
"public void idle() {\n mIsIdle = true;\n }",
"void setIdle();",
"public void busy() {\n mIsIdle = false;\n }",
"private void react_main_region_digitalwatch_Ticker_Main_Update_AlarmEditing_idleConstroller_idleReset() {\n\t\tif (check_main_region_digitalwatch_Ticker_Main_Update_AlarmEditing_idleConstroller_idleReset_tr0_tr0()) {\n\t\t\teffect_main_region_digitalwatch_Ticker_Main_Update_AlarmEditing_idleConstroller_idleReset_tr0();\n\t\t} else {\n\t\t\tif (check_main_region_digitalwatch_Ticker_Main_Update_AlarmEditing_idleConstroller_idleReset_tr1_tr1()) {\n\t\t\t\teffect_main_region_digitalwatch_Ticker_Main_Update_AlarmEditing_idleConstroller_idleReset_tr1();\n\t\t\t}\n\t\t}\n\t}",
"public void UI_Refresh ()\r\n\t{\r\n\t\tUI_RefreshSensorData ();\r\n\t\tUI_RefreshConnStatus ();\r\n\t}",
"public void onIdle() {\n Methods.showMessage(\"Warning\", \"No User Action for the Last 5 Minutes!\", \"Do You Need More Time?\");\n }",
"@Override\r\n\tpublic void update() {\r\n\t\tSystem.out.println(\"IQM: Updating GUI...\");\r\n\t\t// here, it does nothing\r\n\t}",
"private void entryAction_main_region_digitalwatch_Ticker_Editing_idleController_idleReset() {\n\t\ttimer.setTimer(this, 16, 1, false);\n\t}",
"public abstract void requestRepaint();",
"private void react_main_region_digitalwatch_Ticker_Editing_idleController_idleReset() {\n\t\tif (check_main_region_digitalwatch_Ticker_Editing_idleController_idleReset_tr0_tr0()) {\n\t\t\teffect_main_region_digitalwatch_Ticker_Editing_idleController_idleReset_tr0();\n\t\t} else {\n\t\t\tif (check_main_region_digitalwatch_Ticker_Editing_idleController_idleReset_tr1_tr1()) {\n\t\t\t\teffect_main_region_digitalwatch_Ticker_Editing_idleController_idleReset_tr1();\n\t\t\t}\n\t\t}\n\t}",
"public static void setIdleScreen() {\n idleStage.show();\n \n }",
"private void setIdle(){\r\n\r\n\t\televatorDirection = Direction.IDLE;\r\n\r\n\t\t// move to 1st floor\r\n\t\twhile (currentFloor != 1) {\r\n\r\n\t\t\tcurrentFloor --;\r\n\r\n\t\t\tSystem.out.printf(\"%s Elevator %d moving from Floor %d to Floor %d\\n\",\r\n\t\t\t\t\tMain.getTimeStamp(), elevatorNumber, currentFloor + 1, currentFloor);\r\n\r\n\t\t\t// update gui\r\n\t\t\tElevatorDisplay.getInstance().updateElevator(elevatorNumber, currentFloor, riders.size(), ElevatorDisplay.Direction.DOWN);\r\n\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\t// clear up the counter\r\n\t\tif (currentFloor == 1)\r\n\t\t\ttimeOutCounter = 0;\r\n\r\n\t\t// update gui\r\n ElevatorDisplay.getInstance().updateElevator(elevatorNumber, currentFloor, riders.size(), ElevatorDisplay.Direction.IDLE);\r\n\t}",
"void idle()\n {\n\n elevatorOffset = 0;\n motorTimeline.pause();\n }",
"public boolean queueIdle() {\n startBindingAppWidgets();\n return false;\n }",
"public void repaint() {\n\t\twindow.forceRepaint();\n\t}",
"public void run()\n {\n this.plugin.onIdleTimerTick();\n }",
"public static void displayChanged() {\n final Runnable runnable = () -> {\n Object lge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n if (lge instanceof DisplayChangedListener) {\n ((DisplayChangedListener) lge).displayChanged();\n }\n };\n if (AppContext.getAppContext() != null) {\n // Common case, standalone application\n EventQueue.invokeLater(runnable);\n } else {\n if (displayChangeExecutor == null) {\n // No synchronization, called on the Toolkit thread only\n displayChangeExecutor = Executors.newFixedThreadPool(1, r -> {\n Thread t = Executors.defaultThreadFactory().newThread(r);\n t.setDaemon(true);\n return t;\n });\n }\n displayChangeExecutor.submit(runnable);\n }\n }",
"public void forceIdle(){\n try{\n mService.forceIdle();\n }catch(Exception e){\n Log.w(TAG, \"Error enabling idle state\", e);\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the tile source legend | public String getLegend(); | [
"JQMapLegendFeature getLegendFeature();",
"public String getLegendLabels();",
"Div getLegendDiv();",
"private String getLegend() {\n\t\treturn \"\\tsubgraph cluster1 {\\n\" + \"\\t\\tlabel=\\\"Légende\\\";\\n\" + \"\\t\\tshape=rectangle;\\n\" + \"\\t\\tcolor=black;\\n\"\n\t\t\t\t+ \"\\t\\ta [style=invis];\\n\" + \"\\t\\tb [style=invis];\\n\" + \"\\t\\ta -> b[label=\\\" a retweeté \\\"] ;\\n\"\n\t\t\t\t+ \"\\t}\\n\";\n\t}",
"public Point getLegendLocation() {\t\n\t\treturn legendLocation;\t\n\t}",
"public String getLegendLabel( int index );",
"public abstract LegendEntry[] getLegendData(IDescriptor descriptor);",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate LegendEditPart getLegend(){\r\n\t\tLegendEditPart legend = null;\r\n\t\ttry{\r\n\t\t\tif(selectedElement != null){\r\n\t\t\t\tIterator<Object> i = selectedElement.getChildren().iterator();\r\n\t\t\t\twhile(i.hasNext()){\r\n\t\t\t\t\tObject e = i.next();\r\n\t\t\t\t\tif(e instanceof LegendEditPart){\r\n\t\t\t\t\t\tlegend = (LegendEditPart) e;\r\n\t\t\t\t\t\tselectedElement.setLegendEditPart(legend);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\t\r\n\t\t}\r\n\t\t\r\n\t\treturn legend;\r\n\t}",
"IWorkbookChartLegendRequestBuilder legend();",
"public BufferedImage createLegend()\n {\n System.out.println(\"Creating max-min heatmap legend\");\n BufferedImage legend = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n Graphics2D g2Legend = legend.createGraphics();\n MultiGradient mg = new MultiGradient(100);\n Color[] myPallete = mg.createMultiGradient(new Color[]{Color.GREEN, Color.YELLOW, Color.ORANGE, Color.RED},\n 275);\n for(int i = 0; i < 275; ++i)\n {\n Rectangle2D.Double rect = new Rectangle2D.Double(0, i, 140, 1);\n g2Legend.draw(rect);\n g2Legend.setColor(myPallete[i]);\n g2Legend.fill(rect);\n }\n g2Legend.setColor(Color.BLACK);\n g2Legend.setFont(new Font(\"TimesRoman\", Font.PLAIN, 20));\n g2Legend.drawString(\"MAX\", 45, 20);\n g2Legend.drawString(\"MIN\", 45, 270);\n g2Legend.dispose();\n System.out.println(\"Legend created\");\n return legend;\n }",
"public void getLegend() {\r\n removeComponent(pauseMenuPanel);\r\n addComponent(legendPanel);\r\n }",
"JQImageHeatMapFeature getHeatMap();",
"LegendType createLegendType();",
"public Mat getSource() {\n return this.source;\n }",
"public static Boolean GetColourLegend(){\n\t\treturn m_ColourLegend;\n\t}",
"public void loadDataSetLegend() {\n\n IOSettingsDialog io = IOSettingsDialog.getInstance();\n int[] inputs = io.getStoredInputs();\n\n /*\n Display input names\n */\n labX.setText(io.getInputNames()[inputs[0]]);\n labY.setText(io.getInputNames()[inputs[1]]);\n labZ.setText(io.getInputNames()[inputs[2]]);\n\n String[] outputs = io.getOutputNames();\n Color[] colors = new Color[io.getOutputColors().size()];\n\n /*\n Convert colors from ColorRGBA instance to Color instance\n */\n for (int i = 0; i < colors.length; i++) {\n ColorRGBA cl = io.getOutputColors().get(i);\n colors[i] = new Color(cl.r, cl.g, cl.b, cl.a);\n }\n /*\n Create model and renderer for colors to display in list view\n */\n listColors.setModel(new DefaultComboBoxModel(outputs));\n listColors.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\n ListRenderer renderer = new ListRenderer(listColors);\n renderer.setColors(colors);\n renderer.setStrings(outputs);\n\n listColors.setCellRenderer(renderer);\n\n }",
"LegendTextHandler getLegendTextHandler();",
"public abstract TiledMapTileSet getTileSet();",
"String getComponentSource();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Redraws a column as the sequence position indicator passes by. | private void redrawCol(int col, int val) {
if (val == 0 && this.bankMode == 0) {
int x_seq = (this.pattern * (this.monome.sizeX)) + col;
for (int y = 0; y < (this.monome.sizeY - 1); y++) {
int y_seq = (this.depth * (this.monome.sizeY - 1)) + y;
if (this.sequence[bank][x_seq][y_seq] > 0) {
this.monome.led(col, y, 1, this.index);
}
}
if (col == this.pattern) {
this.monome.led(col, (this.monome.sizeY - 1), 1, this.index);
}
if (col == 4 && this.copyMode == 1) {
this.monome.led(col, (this.monome.sizeY - 1), 1, this.index);
}
if (col == 5 && this.clearMode == 1) {
this.monome.led(col, (this.monome.sizeY - 1), 1, this.index);
}
if (col == 6 && bankMode == 1) {
this.monome.led(col, (this.monome.sizeY - 1), 1, this.index);
}
if (col > 6 && col < (this.monome.sizeX - 1)) {
this.monome.led(col, (this.monome.sizeY - 1), 0, this.index);
}
if (col == (this.monome.sizeX - 1)) {
this.monome.led(col, (this.monome.sizeY - 1), 0, this.index);
}
}
} | [
"private void redrawColumn(int col){\n\t\tfor(int i = 0; i < secondColumn.length; i++){\n\t\t\ttableModel.fireTableCellUpdated(i, col);\n\t\t}\n\t}",
"public void sequencerRedrawLastCol() {\r\n\t\tint v0 = 0;\r\n\t\tint v1 = 0;\r\n\t\tint v2 = 0;\r\n\r\n\t\t// redrawDevice patlength\r\n\t\tpatLengthMode = patlength[this.bank];\r\n\t\tif (patLengthMode == this.monome.sizeX * 1) {\r\n\t\t\tv0 = 1;\r\n\t\t} else {\r\n\t\t\tv0 = 0;\r\n\t\t}\r\n\t\tif (patLengthMode == this.monome.sizeX * 2) {\r\n\t\t\tv1 = 1;\r\n\t\t} else {\r\n\t\t\tv1 = 0;\r\n\t\t}\r\n\t\tif (patLengthMode == this.monome.sizeX * 4) {\r\n\t\t\tv2 = 1;\r\n\t\t} else {\r\n\t\t\tv2 = 0;\r\n\t\t}\r\n\r\n\t\tthis.monome.led(this.monome.sizeX - 1, 0, v0, this.index);\r\n\t\tthis.monome.led(this.monome.sizeX - 1, 1, v1, this.index);\r\n\t\tthis.monome.led(this.monome.sizeX - 1, 2, v2, this.index);\r\n\r\n\t\t// redrawDevice pat gate\r\n\t\tpatGateMode = patGate[this.bank];\r\n\t\tif (patGateMode == 1) {\r\n\t\t\tthis.monome.led(this.monome.sizeX - 1, 3, 0, this.index);\r\n\t\t} else {\r\n\t\t\tthis.monome.led\r\n\r\n\t\t\t(this.monome.sizeX - 1, 3, 1, this.index);\r\n\t\t}\r\n\r\n\t\t// redrawDevice pat hold\r\n\t\tpatHoldMode = patHold[this.bank];\r\n\t\tif (patHoldMode == 1) {\r\n\t\t\tthis.monome.led(this.monome.sizeX - 1, 4, 1, this.index);\r\n\t\t} else {\r\n\t\t\tthis.monome.led\r\n\r\n\t\t\t(this.monome.sizeX - 1, 4, 0, this.index);\r\n\t\t}\r\n\r\n\t\t// redrawDevice pat octUp\r\n\t\tif (this.patOctgUp[this.bank] == 1) {\r\n\t\t\tthis.monome.led(this.monome.sizeX - 1, 5, 1, this.index);\r\n\t\t} else\r\n\r\n\t\t{\r\n\t\t\tthis.monome.led(this.monome.sizeX - 1, 5, 0, this.index);\r\n\t\t}\r\n\r\n\t\t// redrawDevice pat speed\r\n\t\tif (this.patSpeed[this.bank] == 1) {\r\n\t\t\tthis.monome.led(this.monome.sizeX - 1, 6, 1, this.index);\r\n\t\t} else\r\n\r\n\t\t{\r\n\t\t\tthis.monome.led(this.monome.sizeX - 1, 6, 0, this.index);\r\n\t\t}\r\n\r\n\t}",
"void incrementColumnIndex();",
"void columnInvalidate(String sColumnName);",
"public void setPositionColumn(int value){this.positionColumn = value;}",
"public void decrementColumn() {\n setRowAndColumn(row, Math.max(column - 1, 0));\n }",
"public void incremetColumn() {\n setRowAndColumn(row, column + 1);\n }",
"public void sequencerRedrawBottomRow() {\r\n\t\t// redrawDevice this way if we're in bank mode\r\n\t\tif (this.bankMode == 1) {\r\n\t\t\tfor (int x = 0; x < (this.monome.sizeX); x++) {\r\n\t\t\t\tif (x < 4) {\r\n\t\t\t\t\tif (this.depth == x) {\r\n\t\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1), 1,\r\n\t\t\t\t\t\t\t\tthis.index);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1), 0,\r\n\t\t\t\t\t\t\t\tthis.index);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (x == 4) {\r\n\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1),\r\n\t\t\t\t\t\t\tthis.bankCopyMode, this.index);\r\n\t\t\t\t}\r\n\t\t\t\tif (x == 5) {\r\n\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1),\r\n\t\t\t\t\t\t\tthis.bankClearMode,\r\n\r\n\t\t\t\t\t\t\tthis.index);\r\n\t\t\t\t}\r\n\t\t\t\tif (x == 6) {\r\n\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1), this.bankMode,\r\n\t\t\t\t\t\t\tthis.index);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// redrawDevice this way if we're in sequence edit mode\r\n\t\t} else if (this.bankMode == 0) {\r\n\t\t\tfor (int x = 0; x < (this.monome.sizeX); x++) {\r\n\t\t\t\tif (x < 4) {\r\n\t\t\t\t\tif (this.pattern == x) {\r\n\t\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1), 1,\r\n\t\t\t\t\t\t\t\tthis.index);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1), 0,\r\n\t\t\t\t\t\t\t\tthis.index);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (x == 4) {\r\n\t\t\t\t\tif (copyMode == 1) {\r\n\t\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1), 1,\r\n\t\t\t\t\t\t\t\tthis.index);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1), 0,\r\n\t\t\t\t\t\t\t\tthis.index);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (x == 5) {\r\n\t\t\t\t\tif (clearMode == 1) {\r\n\t\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1), 1,\r\n\t\t\t\t\t\t\t\tthis.index);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1), 0,\r\n\t\t\t\t\t\t\t\tthis.index);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (x == 6) {\r\n\t\t\t\t\tif (this.bankMode == 1) {\r\n\t\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1), 1,\r\n\t\t\t\t\t\t\t\tthis.index);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1), 0,\r\n\t\t\t\t\t\t\t\tthis.index);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (x > 6) {\r\n\t\t\t\t\tthis.monome.led(x, (this.monome.sizeY - 1), 0, this.index);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setColMove(int col);",
"void incrementColumnIndex(int size);",
"private void refreshColumnsAndRedraw() {\n columnWidthsDirty = true;\n redraw();\n }",
"public abstract void prevEditableCell();",
"void setColumn(Column newColumn, int pos) { columns[pos] = newColumn; }",
"public void setPositionRow(int value){this.positionRow = value;}",
"private void fillColumn(int line, int column, Color colour, ShapeRenderer shapeRenderer) {\n float columnX = x + (column * columnWidth);\n float columnY = (y + height) - ((line + 1) * lineHeight);\n\n // TODO Return early if column x,y is not in viewable area.\n\n shapeRenderer.begin(ShapeRenderer.ShapeType.Filled);\n shapeRenderer.setColor(colour);\n shapeRenderer.rect(columnX, columnY, columnWidth, lineHeight);\n shapeRenderer.end();\n }",
"public void decrementRow() {\n setRowAndColumn(Math.max(row - 1, 0), column);\n }",
"private void versionChanged(int row) {\n }",
"private void redrawBoard()\n\t{\n\t\t//Get the value of each cell from the data manager and set the cells to the correct number\n\t\t//0 values are displayed as blanks\n\t\tfor(int i=1; i<=9; i++)\n\t\t{\n\t\t\tfor(int j=1; j<=9; j++)\n\t\t\t{\n\t\t\t\tif(manager.getValueAt(i, j)!=0)\n\t\t\t\t\tcells[i-1][j-1].setText(String.valueOf(manager.getValueAt(i, j)));\n\t\t\t\telse\n\t\t\t\t\tcells[i-1][j-1].setText(\"\");\n\t\t\t\t//if(manager.getWriteStatus(i, j))\n\t\t\t\t //cells[i-1][j-1].setToolTipText(getValues(i, j));\n\t\t\t}\n\t\t}\n\t}",
"private void nextCol() {\n col++;\n if(locationListener != null) {\n locationListener.parseLocationUpdate(row, col);\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an aliased WETRN.PROD_TYP table reference | public ProdTyp(String alias) {
this(alias, PROD_TYP);
} | [
"public ScGridColumn<AcDomesticItemDispatchSupplement> newProductTypeColumn()\n {\n return newProductTypeColumn(\"Product Type\");\n }",
"public ScGridColumn<AcDomesticItemSupplement> newProductTypeColumn()\n {\n return newProductTypeColumn(\"Product Type\");\n }",
"public ProdTyp() {\n\t\tthis(\"PROD_TYP\", null);\n\t}",
"private static TableRef createAliasedTableRef( final TableMeta table,\n final String alias ) {\n return new TableRef() {\n public String getColumnName( String rawName ) {\n return alias + \".\" + rawName;\n }\n public String getIntroName() {\n return table.getName() + \" AS \" + alias;\n }\n };\n }",
"public String createTableRepresentationQueryTableColumn (QueryTable queryTable, boolean appendAlias);",
"public ITypeTableManipulator getTypeTableManipulator()\n {\n return new TypeTableManipulator(typeTable);\n }",
"private void createDynamicTypes() {\n\n Type root = SDOUtil.createType(helperContext, getDefaultURI(), \"DataGraphRoot\", false);\n\t\tif (this.logger.isDebugEnabled()) {\n\t\t\tthis.logger.debug(\"GBMD.createDynamicTypes():created Type for \"+getDefaultURI());\n\t\t}\n\n\t\tIterator iter = getResultMetadata().iterator();\n while (iter.hasNext()) {\n\n ResultMetadata resultMetadata = (ResultMetadata) iter.next();\n\n\t\t\t// Create a Type for each Table represented in the ResultSet\n\t\t\tIterator names = resultMetadata.getAllTablePropertyNames().iterator();\n\t\t\twhile (names.hasNext()) {\n\t\t\t\tString tableName = (String) names.next();\n\t\t\t\tif (root.getProperty(tableName) == null) {\n\t\t\t\t\tType tableType = SDOUtil.createType(helperContext, getDefaultURI(), tableName, false);\n\t\t\t\t\tProperty property = SDOUtil.createProperty(root, tableName, tableType);\n\t\t\t\t\tSDOUtil.setMany(property, true);\n\t\t\t\t\tSDOUtil.setContainment(property, true);\n\t\t\t\t\tif (this.logger.isDebugEnabled()) {\n\t\t\t\t\t\tthis.logger.debug(\"GBMD.createDynamicTypes():CREATING NEW TABLE TYPE & PROPERTY :\"+tableName);\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// TODO tablePropertyMap is temporary until Tuscany-203 is fixed\n\t\t\tMap tablePropertyMap = new HashMap();\n\n\t\t\tfor (int i = 1; i <= resultMetadata.getResultSetSize(); i++) {\n\n\t\t\t\tProperty ref = root.getProperty(resultMetadata.getTablePropertyName(i));\n\n\t\t\t\tif (ref == null) {\n\t\t\t\t\tthrow new RuntimeException(\"Could not find table \" + resultMetadata.getTablePropertyName(i) \n\t\t\t\t\t\t\t+ \" in the SDO model\");\n\t\t\t\t}\n\n\t\t\t\t// TODO Temporary code to check to see if a property has already been added.\n\t\t\t\t// Replace when Tuscany-203 is fixed\n\t\t\t\tList addedProperties = (List) tablePropertyMap.get(ref.getName());\n\t\t\t\tif (addedProperties == null) {\n\t\t\t\t\taddedProperties = new ArrayList();\n\t\t\t\t\ttablePropertyMap.put(ref.getName(), addedProperties);\n\t\t\t\t}\n\n\n\n\t\t\t\tString columnName = resultMetadata.getColumnPropertyName(i);\n\n\t\t\t\t// TODO temporary check until Tuscany-203 is fixed\n\t\t\t\tif (!addedProperties.contains(columnName)) {\n\t\t\t\t\taddedProperties.add(columnName);\n\t\t\t\t\tType atype = resultMetadata.getDataType(i);\n\n\t\t\t\t\tSDOUtil.createProperty(ref.getType(), columnName, atype);\n\n\t\t\t\t}\n\n\t\t\t}\n }\n\n MappingWrapper wrapper = getConfigWrapper();\n Iterator i = getRelationships().iterator();\n while (i.hasNext()) {\n Relationship r = (Relationship) i.next();\n\n String parentName = wrapper.getTableTypeName(r.getPrimaryKeyTable());\n String childName = wrapper.getTableTypeName(r.getForeignKeyTable());\n\n if (parentName == null) {\n throw new RuntimeException(\"The parent table (\" + r.getPrimaryKeyTable() \n + \") in relationship \" + r.getName()\n + \" was not found in the mapping information.\");\n } else if (childName == null) {\n throw new RuntimeException(\"The child table (\" + r.getForeignKeyTable() \n + \") in relationship \" + r.getName()\n + \" was not found in the mapping information.\");\n }\n\n Property parentProperty = root.getProperty(parentName);\n Property childProperty = root.getProperty(childName);\n\n if (parentProperty == null) {\n throw new RuntimeException(\"The parent table (\" + parentName + \") in relationship \" \n + r.getName() + \" was not found.\");\n } else if (childProperty == null) {\n throw new RuntimeException(\"The child table (\" + childName + \") in relationship \" \n + r.getName() + \" was not found.\");\n }\n\n Type parent = parentProperty.getType();\n Type child = childProperty.getType();\n\n Property parentProp = SDOUtil.createProperty(parent, r.getName(), child);\n Property childProp = SDOUtil.createProperty(child, r.getName() + \"_opposite\", parent);\n SDOUtil.setOpposite(parentProp, childProp);\n SDOUtil.setOpposite(childProp, parentProp);\n SDOUtil.setMany(parentProp, r.isMany());\n }\n\n this.rootType = root;\n }",
"public TProductRentType(Name alias) {\n this(alias, T_PRODUCT_RENT_TYPE);\n }",
"private String getAltRegType() { // TODO - fix Register reference hardcoded in reg defines parm default?\n\t\tString firstChar = regProperties.getId().substring(0, 1);\n\t\t// change case of first character in name to create type\n\t\tString regTypeParam;\n\t\tif (firstChar.equals(firstChar.toUpperCase()))\n\t\t regTypeParam = regProperties.getId().replaceFirst(firstChar, firstChar.toLowerCase()); // change to lc\n\t\telse\n\t\t regTypeParam = regProperties.getId().replaceFirst(firstChar, firstChar.toUpperCase()); // change to uc \n\t\tString regBaseType = regProperties.isReplicated()? \"RegisterArray\" : \"Register\";\n\t\treturn regBaseType + \" #(\" + getAltBlockType() + \"::\" + regTypeParam + \")\"; // TODO - make parameterizable, getAddressMapName() + \"_\" + regProperties.getBaseName() + \"_t\" \n\t}",
"public TProductRentType(String alias) {\n this(DSL.name(alias), T_PRODUCT_RENT_TYPE);\n }",
"TypeAliasDefinition createTypeAliasDefinition();",
"public Sym\ngenerateSym( Type pType, int pSymKind, String pPrefix,\n Sym pDefinedIn );",
"private static TableRef createTableRef( final TableMeta table,\n String lang ) {\n if ( ! isAdql1( lang ) ) {\n return new TableRef() {\n public String getColumnName( String rawName ) {\n return rawName;\n }\n public String getIntroName() {\n return table.getName();\n }\n };\n }\n else {\n return createAliasedTableRef( table, getAlias( table ) );\n }\n }",
"private Hashtable<String, String> Generate_Table(DocumentType type) {\r\n\t\tswitch (type) {\r\n\t\tcase Verweis:\r\n\t\t\treturn Generate_Verweis_Table();\r\n\t\tcase Attest:\r\n\t\t\treturn Generate_Attest_Table();\r\n\r\n\t\tdefault:\r\n\t\t\treturn new Hashtable<String, String>();\r\n\t\t}\r\n\t}",
"DetailsType createDetailsType();",
"public String generateTemporaryTableName(String baseTableName) {\n \t\treturn \"HT_\" + baseTableName;\n \t}",
"private ReferenceType createRef(IntuitEntity entity) {\n ReferenceType referenceType = new ReferenceType();\n referenceType.setValue(entity.getId());\n return referenceType;\n }",
"protected void createExpandedNameTable( )\r\n {\r\n\r\n super.createExpandedNameTable();\r\n\r\n m_ErrorExt_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_EXT_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_SQLError_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_Message_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_MESSAGE, DTM.ELEMENT_NODE);\r\n\r\n m_Code_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_CODE, DTM.ELEMENT_NODE);\r\n\r\n m_State_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_STATE, DTM.ELEMENT_NODE);\r\n\r\n m_SQLWarning_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_WARNING, DTM.ELEMENT_NODE);\r\n }",
"private static String getCreateStagingTableQuery(ComplianceRecord record) {\n return \"CREATE EXTERNAL TABLE IF NOT EXISTS \" +\n record.getCompleteStagingTableName() + \" LIKE \" +\n record.getDbName() + \".\" + record.getTableName() +\n \" LOCATION \" + ComplianceRecord.getQuotedString(record.getStagingTableLocation());\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end synpred30_InternalDsl $ANTLR start synpred31_InternalDsl | public final void synpred31_InternalDsl_fragment() throws RecognitionException {
// InternalDsl.g:5435:8: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )
// InternalDsl.g:5435:9: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) )
{
// InternalDsl.g:5435:9: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) )
// InternalDsl.g:5435:10: () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) )
{
// InternalDsl.g:5435:10: ()
// InternalDsl.g:5436:1:
{
}
// InternalDsl.g:5436:2: ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) )
int alt169=3;
switch ( input.LA(1) ) {
case 39:
{
alt169=1;
}
break;
case 93:
{
alt169=2;
}
break;
case 92:
{
alt169=3;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("", 169, 0, input);
throw nvae;
}
switch (alt169) {
case 1 :
// InternalDsl.g:5436:4: '.'
{
match(input,39,FOLLOW_2); if (state.failed) return ;
}
break;
case 2 :
// InternalDsl.g:5438:6: ( ( '?.' ) )
{
// InternalDsl.g:5438:6: ( ( '?.' ) )
// InternalDsl.g:5439:1: ( '?.' )
{
// InternalDsl.g:5439:1: ( '?.' )
// InternalDsl.g:5440:2: '?.'
{
match(input,93,FOLLOW_2); if (state.failed) return ;
}
}
}
break;
case 3 :
// InternalDsl.g:5445:6: ( ( '::' ) )
{
// InternalDsl.g:5445:6: ( ( '::' ) )
// InternalDsl.g:5446:1: ( '::' )
{
// InternalDsl.g:5446:1: ( '::' )
// InternalDsl.g:5447:2: '::'
{
match(input,92,FOLLOW_2); if (state.failed) return ;
}
}
}
break;
}
}
}
} | [
"public final boolean synpred300_InternalDsl() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred300_InternalDsl_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }",
"public final boolean synpred60_InternalDsl() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred60_InternalDsl_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }",
"public final boolean synpred1_InternalDsl() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred1_InternalDsl_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }",
"public final void synpred11_InternalDsl_fragment() throws RecognitionException { \n // InternalDsl.g:3469:4: ( '(' )\n // InternalDsl.g:3469:6: '('\n {\n match(input,30,FOLLOW_2); if (state.failed) return ;\n\n }\n }",
"public final void synpred51_InternalDsl_fragment() throws RecognitionException { \n // InternalDsl.g:8289:2: ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | '[[' | 'set' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )\n // InternalDsl.g:\n {\n if ( (input.LA(1)>=RULE_STRING && input.LA(1)<=RULE_DECIMAL)||input.LA(1)==15||input.LA(1)==19||input.LA(1)==22||input.LA(1)==30||input.LA(1)==38||input.LA(1)==41||input.LA(1)==63||input.LA(1)==69||(input.LA(1)>=84 && input.LA(1)<=85)||input.LA(1)==89||input.LA(1)==96||input.LA(1)==98||(input.LA(1)>=101 && input.LA(1)<=102)||(input.LA(1)>=105 && input.LA(1)<=117)||input.LA(1)==119 ) {\n input.consume();\n state.errorRecovery=false;state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n }\n }",
"public final void synpred32_InternalDsl_fragment() throws RecognitionException { \n // InternalDsl.g:5556:4: ( ( '(' ) )\n // InternalDsl.g:5557:1: ( '(' )\n {\n // InternalDsl.g:5557:1: ( '(' )\n // InternalDsl.g:5558:2: '('\n {\n match(input,30,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }",
"public final boolean synpred41_InternalMyDsl() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred41_InternalMyDsl_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }",
"public final void synpred44_InternalDsl_fragment() throws RecognitionException { \n // InternalDsl.g:7535:4: ( ( '(' ) )\n // InternalDsl.g:7536:1: ( '(' )\n {\n // InternalDsl.g:7536:1: ( '(' )\n // InternalDsl.g:7537:2: '('\n {\n match(input,30,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }",
"public final void synpred48_InternalDsl_fragment() throws RecognitionException { \n // InternalDsl.g:7849:5: ( ( '(' ) )\n // InternalDsl.g:7850:1: ( '(' )\n {\n // InternalDsl.g:7850:1: ( '(' )\n // InternalDsl.g:7851:2: '('\n {\n match(input,30,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }",
"public final void synpred40_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_3=null;\n EObject lv_hd_2_0 = null;\n\n EObject lv_tl_4_0 = null;\n\n\n // InternalMyDsl.g:1786:3: ( ( () ( (lv_hd_2_0= ruleSimpleSERE ) ) otherlv_3= ':' ( (lv_tl_4_0= ruleSimpleSERE ) ) ) )\n // InternalMyDsl.g:1786:3: ( () ( (lv_hd_2_0= ruleSimpleSERE ) ) otherlv_3= ':' ( (lv_tl_4_0= ruleSimpleSERE ) ) )\n {\n // InternalMyDsl.g:1786:3: ( () ( (lv_hd_2_0= ruleSimpleSERE ) ) otherlv_3= ':' ( (lv_tl_4_0= ruleSimpleSERE ) ) )\n // InternalMyDsl.g:1787:4: () ( (lv_hd_2_0= ruleSimpleSERE ) ) otherlv_3= ':' ( (lv_tl_4_0= ruleSimpleSERE ) )\n {\n // InternalMyDsl.g:1787:4: ()\n // InternalMyDsl.g:1788:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:1797:4: ( (lv_hd_2_0= ruleSimpleSERE ) )\n // InternalMyDsl.g:1798:5: (lv_hd_2_0= ruleSimpleSERE )\n {\n // InternalMyDsl.g:1798:5: (lv_hd_2_0= ruleSimpleSERE )\n // InternalMyDsl.g:1799:6: lv_hd_2_0= ruleSimpleSERE\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getSEREAccess().getHdSimpleSEREParserRuleCall_1_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_28);\n lv_hd_2_0=ruleSimpleSERE();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,42,FOLLOW_16); if (state.failed) return ;\n // InternalMyDsl.g:1820:4: ( (lv_tl_4_0= ruleSimpleSERE ) )\n // InternalMyDsl.g:1821:5: (lv_tl_4_0= ruleSimpleSERE )\n {\n // InternalMyDsl.g:1821:5: (lv_tl_4_0= ruleSimpleSERE )\n // InternalMyDsl.g:1822:6: lv_tl_4_0= ruleSimpleSERE\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getSEREAccess().getTlSimpleSEREParserRuleCall_1_3_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_tl_4_0=ruleSimpleSERE();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }",
"public final void synpred45_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_2=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n EObject lv_expression_1_0 = null;\n\n EObject lv_count_4_0 = null;\n\n\n // InternalMyDsl.g:2010:3: ( ( () ( (lv_expression_1_0= ruleBooleanOrOCLLiteral ) ) otherlv_2= '[' otherlv_3= '*' ( (lv_count_4_0= ruleCount ) )? otherlv_5= ']' ) )\n // InternalMyDsl.g:2010:3: ( () ( (lv_expression_1_0= ruleBooleanOrOCLLiteral ) ) otherlv_2= '[' otherlv_3= '*' ( (lv_count_4_0= ruleCount ) )? otherlv_5= ']' )\n {\n // InternalMyDsl.g:2010:3: ( () ( (lv_expression_1_0= ruleBooleanOrOCLLiteral ) ) otherlv_2= '[' otherlv_3= '*' ( (lv_count_4_0= ruleCount ) )? otherlv_5= ']' )\n // InternalMyDsl.g:2011:4: () ( (lv_expression_1_0= ruleBooleanOrOCLLiteral ) ) otherlv_2= '[' otherlv_3= '*' ( (lv_count_4_0= ruleCount ) )? otherlv_5= ']'\n {\n // InternalMyDsl.g:2011:4: ()\n // InternalMyDsl.g:2012:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:2021:4: ( (lv_expression_1_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:2022:5: (lv_expression_1_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:2022:5: (lv_expression_1_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:2023:6: lv_expression_1_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getRepeatedSEREAccess().getExpressionBooleanOrOCLLiteralParserRuleCall_0_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_24);\n lv_expression_1_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_2=(Token)match(input,38,FOLLOW_30); if (state.failed) return ;\n otherlv_3=(Token)match(input,44,FOLLOW_31); if (state.failed) return ;\n // InternalMyDsl.g:2048:4: ( (lv_count_4_0= ruleCount ) )?\n int alt154=2;\n int LA154_0 = input.LA(1);\n\n if ( (LA154_0==RULE_INT) ) {\n alt154=1;\n }\n switch (alt154) {\n case 1 :\n // InternalMyDsl.g:2049:5: (lv_count_4_0= ruleCount )\n {\n // InternalMyDsl.g:2049:5: (lv_count_4_0= ruleCount )\n // InternalMyDsl.g:2050:6: lv_count_4_0= ruleCount\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getRepeatedSEREAccess().getCountCountParserRuleCall_0_4_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_26);\n lv_count_4_0=ruleCount();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_5=(Token)match(input,39,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }",
"public final void synpred53_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_39=null;\n Token otherlv_40=null;\n Token otherlv_42=null;\n EObject lv_expression_38_0 = null;\n\n EObject lv_count_41_0 = null;\n\n\n // InternalMyDsl.g:2347:3: ( ( () ( (lv_expression_38_0= ruleBooleanOrOCLLiteral ) ) otherlv_39= '[' otherlv_40= '=' ( (lv_count_41_0= ruleCount ) ) otherlv_42= ']' ) )\n // InternalMyDsl.g:2347:3: ( () ( (lv_expression_38_0= ruleBooleanOrOCLLiteral ) ) otherlv_39= '[' otherlv_40= '=' ( (lv_count_41_0= ruleCount ) ) otherlv_42= ']' )\n {\n // InternalMyDsl.g:2347:3: ( () ( (lv_expression_38_0= ruleBooleanOrOCLLiteral ) ) otherlv_39= '[' otherlv_40= '=' ( (lv_count_41_0= ruleCount ) ) otherlv_42= ']' )\n // InternalMyDsl.g:2348:4: () ( (lv_expression_38_0= ruleBooleanOrOCLLiteral ) ) otherlv_39= '[' otherlv_40= '=' ( (lv_count_41_0= ruleCount ) ) otherlv_42= ']'\n {\n // InternalMyDsl.g:2348:4: ()\n // InternalMyDsl.g:2349:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:2358:4: ( (lv_expression_38_0= ruleBooleanOrOCLLiteral ) )\n // InternalMyDsl.g:2359:5: (lv_expression_38_0= ruleBooleanOrOCLLiteral )\n {\n // InternalMyDsl.g:2359:5: (lv_expression_38_0= ruleBooleanOrOCLLiteral )\n // InternalMyDsl.g:2360:6: lv_expression_38_0= ruleBooleanOrOCLLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getRepeatedSEREAccess().getExpressionBooleanOrOCLLiteralParserRuleCall_6_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_24);\n lv_expression_38_0=ruleBooleanOrOCLLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_39=(Token)match(input,38,FOLLOW_33); if (state.failed) return ;\n otherlv_40=(Token)match(input,46,FOLLOW_25); if (state.failed) return ;\n // InternalMyDsl.g:2385:4: ( (lv_count_41_0= ruleCount ) )\n // InternalMyDsl.g:2386:5: (lv_count_41_0= ruleCount )\n {\n // InternalMyDsl.g:2386:5: (lv_count_41_0= ruleCount )\n // InternalMyDsl.g:2387:6: lv_count_41_0= ruleCount\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getRepeatedSEREAccess().getCountCountParserRuleCall_6_4_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_26);\n lv_count_41_0=ruleCount();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_42=(Token)match(input,39,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }",
"public final void synpred52_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_31=null;\n Token otherlv_33=null;\n Token otherlv_34=null;\n Token otherlv_35=null;\n Token otherlv_36=null;\n EObject lv_expression_32_0 = null;\n\n\n // InternalMyDsl.g:2295:3: ( ( () otherlv_31= '(' ( (lv_expression_32_0= ruleRepeatedSERE ) ) otherlv_33= '[' otherlv_34= '+' otherlv_35= ']' otherlv_36= ')' ) )\n // InternalMyDsl.g:2295:3: ( () otherlv_31= '(' ( (lv_expression_32_0= ruleRepeatedSERE ) ) otherlv_33= '[' otherlv_34= '+' otherlv_35= ']' otherlv_36= ')' )\n {\n // InternalMyDsl.g:2295:3: ( () otherlv_31= '(' ( (lv_expression_32_0= ruleRepeatedSERE ) ) otherlv_33= '[' otherlv_34= '+' otherlv_35= ']' otherlv_36= ')' )\n // InternalMyDsl.g:2296:4: () otherlv_31= '(' ( (lv_expression_32_0= ruleRepeatedSERE ) ) otherlv_33= '[' otherlv_34= '+' otherlv_35= ']' otherlv_36= ')'\n {\n // InternalMyDsl.g:2296:4: ()\n // InternalMyDsl.g:2297:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n otherlv_31=(Token)match(input,20,FOLLOW_16); if (state.failed) return ;\n // InternalMyDsl.g:2310:4: ( (lv_expression_32_0= ruleRepeatedSERE ) )\n // InternalMyDsl.g:2311:5: (lv_expression_32_0= ruleRepeatedSERE )\n {\n // InternalMyDsl.g:2311:5: (lv_expression_32_0= ruleRepeatedSERE )\n // InternalMyDsl.g:2312:6: lv_expression_32_0= ruleRepeatedSERE\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getRepeatedSEREAccess().getExpressionRepeatedSEREParserRuleCall_5_2_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_24);\n lv_expression_32_0=ruleRepeatedSERE();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_33=(Token)match(input,38,FOLLOW_32); if (state.failed) return ;\n otherlv_34=(Token)match(input,45,FOLLOW_26); if (state.failed) return ;\n otherlv_35=(Token)match(input,39,FOLLOW_8); if (state.failed) return ;\n otherlv_36=(Token)match(input,21,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }",
"public final void synpred23_InternalMyDsl_fragment() throws RecognitionException { \n EObject lv_operand_3_0 = null;\n\n\n // InternalMyDsl.g:849:3: ( ( () ( (lv_operand_3_0= ruleSequence ) ) ) )\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n {\n // InternalMyDsl.g:849:3: ( () ( (lv_operand_3_0= ruleSequence ) ) )\n // InternalMyDsl.g:850:4: () ( (lv_operand_3_0= ruleSequence ) )\n {\n // InternalMyDsl.g:850:4: ()\n // InternalMyDsl.g:851:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:860:4: ( (lv_operand_3_0= ruleSequence ) )\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n {\n // InternalMyDsl.g:861:5: (lv_operand_3_0= ruleSequence )\n // InternalMyDsl.g:862:6: lv_operand_3_0= ruleSequence\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getUnaryPropertyAccess().getOperandSequenceParserRuleCall_1_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_operand_3_0=ruleSequence();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }",
"public final void synpred49_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_13=null;\n Token otherlv_15=null;\n Token otherlv_16=null;\n Token otherlv_18=null;\n Token otherlv_19=null;\n EObject lv_expression_14_0 = null;\n\n EObject lv_count_17_0 = null;\n\n\n // InternalMyDsl.g:2136:3: ( ( () otherlv_13= '(' ( (lv_expression_14_0= ruleRepeatedSERE ) ) otherlv_15= '[' otherlv_16= '*' ( (lv_count_17_0= ruleCount ) )? otherlv_18= ']' otherlv_19= ')' ) )\n // InternalMyDsl.g:2136:3: ( () otherlv_13= '(' ( (lv_expression_14_0= ruleRepeatedSERE ) ) otherlv_15= '[' otherlv_16= '*' ( (lv_count_17_0= ruleCount ) )? otherlv_18= ']' otherlv_19= ')' )\n {\n // InternalMyDsl.g:2136:3: ( () otherlv_13= '(' ( (lv_expression_14_0= ruleRepeatedSERE ) ) otherlv_15= '[' otherlv_16= '*' ( (lv_count_17_0= ruleCount ) )? otherlv_18= ']' otherlv_19= ')' )\n // InternalMyDsl.g:2137:4: () otherlv_13= '(' ( (lv_expression_14_0= ruleRepeatedSERE ) ) otherlv_15= '[' otherlv_16= '*' ( (lv_count_17_0= ruleCount ) )? otherlv_18= ']' otherlv_19= ')'\n {\n // InternalMyDsl.g:2137:4: ()\n // InternalMyDsl.g:2138:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n otherlv_13=(Token)match(input,20,FOLLOW_16); if (state.failed) return ;\n // InternalMyDsl.g:2151:4: ( (lv_expression_14_0= ruleRepeatedSERE ) )\n // InternalMyDsl.g:2152:5: (lv_expression_14_0= ruleRepeatedSERE )\n {\n // InternalMyDsl.g:2152:5: (lv_expression_14_0= ruleRepeatedSERE )\n // InternalMyDsl.g:2153:6: lv_expression_14_0= ruleRepeatedSERE\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getRepeatedSEREAccess().getExpressionRepeatedSEREParserRuleCall_2_2_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_24);\n lv_expression_14_0=ruleRepeatedSERE();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_15=(Token)match(input,38,FOLLOW_30); if (state.failed) return ;\n otherlv_16=(Token)match(input,44,FOLLOW_31); if (state.failed) return ;\n // InternalMyDsl.g:2178:4: ( (lv_count_17_0= ruleCount ) )?\n int alt156=2;\n int LA156_0 = input.LA(1);\n\n if ( (LA156_0==RULE_INT) ) {\n alt156=1;\n }\n switch (alt156) {\n case 1 :\n // InternalMyDsl.g:2179:5: (lv_count_17_0= ruleCount )\n {\n // InternalMyDsl.g:2179:5: (lv_count_17_0= ruleCount )\n // InternalMyDsl.g:2180:6: lv_count_17_0= ruleCount\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getRepeatedSEREAccess().getCountCountParserRuleCall_2_5_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_26);\n lv_count_17_0=ruleCount();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_18=(Token)match(input,39,FOLLOW_8); if (state.failed) return ;\n otherlv_19=(Token)match(input,21,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }",
"public final boolean synpred1_InternalStl() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred1_InternalStl_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean success = !state.failed;\n input.rewind(start);\n state.backtracking--;\n state.failed=false;\n return success;\n }",
"public final void synpred33_InternalDsl_fragment() throws RecognitionException { \n // InternalDsl.g:5577:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )\n // InternalDsl.g:5577:5: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) )\n {\n // InternalDsl.g:5577:5: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) )\n // InternalDsl.g:5577:6: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) )\n {\n // InternalDsl.g:5577:6: ()\n // InternalDsl.g:5578:1: \n {\n }\n\n // InternalDsl.g:5578:2: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )?\n int alt171=2;\n int LA171_0 = input.LA(1);\n\n if ( (LA171_0==RULE_ID||LA171_0==30||LA171_0==36) ) {\n alt171=1;\n }\n switch (alt171) {\n case 1 :\n // InternalDsl.g:5578:3: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )*\n {\n // InternalDsl.g:5578:3: ( ( ruleJvmFormalParameter ) )\n // InternalDsl.g:5579:1: ( ruleJvmFormalParameter )\n {\n // InternalDsl.g:5579:1: ( ruleJvmFormalParameter )\n // InternalDsl.g:5580:1: ruleJvmFormalParameter\n {\n pushFollow(FOLLOW_81);\n ruleJvmFormalParameter();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n // InternalDsl.g:5582:2: ( ',' ( ( ruleJvmFormalParameter ) ) )*\n loop170:\n do {\n int alt170=2;\n int LA170_0 = input.LA(1);\n\n if ( (LA170_0==34) ) {\n alt170=1;\n }\n\n\n switch (alt170) {\n \tcase 1 :\n \t // InternalDsl.g:5582:4: ',' ( ( ruleJvmFormalParameter ) )\n \t {\n \t match(input,34,FOLLOW_61); if (state.failed) return ;\n \t // InternalDsl.g:5583:1: ( ( ruleJvmFormalParameter ) )\n \t // InternalDsl.g:5584:1: ( ruleJvmFormalParameter )\n \t {\n \t // InternalDsl.g:5584:1: ( ruleJvmFormalParameter )\n \t // InternalDsl.g:5585:1: ruleJvmFormalParameter\n \t {\n \t pushFollow(FOLLOW_81);\n \t ruleJvmFormalParameter();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop170;\n }\n } while (true);\n\n\n }\n break;\n\n }\n\n // InternalDsl.g:5587:6: ( ( '|' ) )\n // InternalDsl.g:5588:1: ( '|' )\n {\n // InternalDsl.g:5588:1: ( '|' )\n // InternalDsl.g:5589:2: '|'\n {\n match(input,94,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n\n\n }\n }",
"public final void synpred59_InternalDsl_fragment() throws RecognitionException { \n // InternalDsl.g:8990:3: ( ( () '.' ) )\n // InternalDsl.g:8990:4: ( () '.' )\n {\n // InternalDsl.g:8990:4: ( () '.' )\n // InternalDsl.g:8990:5: () '.'\n {\n // InternalDsl.g:8990:5: ()\n // InternalDsl.g:8991:1: \n {\n }\n\n match(input,39,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }",
"public final void synpred47_InternalMyDsl_fragment() throws RecognitionException { \n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_11=null;\n EObject lv_expression_7_0 = null;\n\n EObject lv_count_10_0 = null;\n\n\n // InternalMyDsl.g:2073:3: ( ( () ( (lv_expression_7_0= ruleBracedSERE ) ) otherlv_8= '[' otherlv_9= '*' ( (lv_count_10_0= ruleCount ) )? otherlv_11= ']' ) )\n // InternalMyDsl.g:2073:3: ( () ( (lv_expression_7_0= ruleBracedSERE ) ) otherlv_8= '[' otherlv_9= '*' ( (lv_count_10_0= ruleCount ) )? otherlv_11= ']' )\n {\n // InternalMyDsl.g:2073:3: ( () ( (lv_expression_7_0= ruleBracedSERE ) ) otherlv_8= '[' otherlv_9= '*' ( (lv_count_10_0= ruleCount ) )? otherlv_11= ']' )\n // InternalMyDsl.g:2074:4: () ( (lv_expression_7_0= ruleBracedSERE ) ) otherlv_8= '[' otherlv_9= '*' ( (lv_count_10_0= ruleCount ) )? otherlv_11= ']'\n {\n // InternalMyDsl.g:2074:4: ()\n // InternalMyDsl.g:2075:5: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t/* */\n \t\t\t\t\n }\n\n }\n\n // InternalMyDsl.g:2084:4: ( (lv_expression_7_0= ruleBracedSERE ) )\n // InternalMyDsl.g:2085:5: (lv_expression_7_0= ruleBracedSERE )\n {\n // InternalMyDsl.g:2085:5: (lv_expression_7_0= ruleBracedSERE )\n // InternalMyDsl.g:2086:6: lv_expression_7_0= ruleBracedSERE\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getRepeatedSEREAccess().getExpressionBracedSEREParserRuleCall_1_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_24);\n lv_expression_7_0=ruleBracedSERE();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n otherlv_8=(Token)match(input,38,FOLLOW_30); if (state.failed) return ;\n otherlv_9=(Token)match(input,44,FOLLOW_31); if (state.failed) return ;\n // InternalMyDsl.g:2111:4: ( (lv_count_10_0= ruleCount ) )?\n int alt155=2;\n int LA155_0 = input.LA(1);\n\n if ( (LA155_0==RULE_INT) ) {\n alt155=1;\n }\n switch (alt155) {\n case 1 :\n // InternalMyDsl.g:2112:5: (lv_count_10_0= ruleCount )\n {\n // InternalMyDsl.g:2112:5: (lv_count_10_0= ruleCount )\n // InternalMyDsl.g:2113:6: lv_count_10_0= ruleCount\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getRepeatedSEREAccess().getCountCountParserRuleCall_1_4_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_26);\n lv_count_10_0=ruleCount();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_11=(Token)match(input,39,FOLLOW_2); if (state.failed) return ;\n\n }\n\n\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set the value of OfferQuery, the data are from last selection. | public void setDefaultOfferQueryFromLastSelection(OfferQuery offerQuery, String userPreferedCurrencyCode) {
//Log.d(TAG, "setDefaultOfferQueryFromLastSelection..........." + userPreferedCurrencyCode );
OfferQuery lastOfferQuery = null;
//Log.d(TAG, "OfferQuery.json.....");
String jsonString;
try {
OfferQueryDataBaseService dataBaseService = new OfferQueryDataBaseService(applicationContext);
jsonString = dataBaseService.readOfferQuery("OfferQuery");
//jsonString = FileManager.getInstance().readExternalStoragePrivateFile(applicationContext, null, "OfferQuery.json");
lastOfferQuery = new OfferQueryConverter().parseOfferQuery(jsonString);
offerQuery.setOriginStationDestinationName(lastOfferQuery.getOriginStationDestinationName());
offerQuery.setOriginStationRCode(lastOfferQuery.getOriginStationRCode());
offerQuery.setOriginStationName(lastOfferQuery.getOriginStationName());
offerQuery.setOriginStationSynonymeName(lastOfferQuery.getOriginStationSynonymeName());
offerQuery.setDestinationStationDestinationName(lastOfferQuery.getDestinationStationDestinationName());
offerQuery.setDestinationStationRCode(lastOfferQuery.getDestinationStationRCode());
offerQuery.setDestinationStationName(lastOfferQuery.getDestinationStationName());
offerQuery.setDestinationStationSynonymeName(lastOfferQuery.getDestinationStationSynonymeName());
offerQuery.setTravelType(lastOfferQuery.getTravelType());
//Log.d(TAG, "OfferQuery.json....." + lastOfferQuery.getTravelType());
// offerQuery.getReturnQueryParameters().setDateTime(returnDate);
//Log.d(TAG, "offerQuery.getOriginStationDestinationName====" + offerQuery.getOriginStationDestinationName());
//Log.d(TAG, "offerQuery.getOriginStationRCode====" + offerQuery.getOriginStationRCode());
//Log.d(TAG, "offerQuery.getOriginStationName====" + offerQuery.getOriginStationName());
//Log.d(TAG, "offerQuery.getDestinationStationDestinationName====" + offerQuery.getDestinationStationDestinationName());
//Log.d(TAG, "offerQuery.getDestinationStationRCode====" + offerQuery.getDestinationStationRCode());
//Log.d(TAG, "offerQuery.getDestinationStationName====" + offerQuery.getDestinationStationName());
if(lastOfferQuery.getComforClass() == null){
offerQuery.setComforClass(ComforClass.SECOND);
}else{
offerQuery.setComforClass(lastOfferQuery.getComforClass());
}
offerQuery.setTravelPartyMember(lastOfferQuery.getTravelPartyMembers());
offerQuery.setListCorporateCards(lastOfferQuery.getListCorporateCards());
offerQuery.setPreferredCurrency(userPreferedCurrencyCode);
if (lastOfferQuery.getGreenPointsNumber() != null && !StringUtils.equalsIgnoreCase("", lastOfferQuery.getGreenPointsNumber())) {
offerQuery.setGreenPointsNumber(lastOfferQuery.getGreenPointsNumber());
offerQuery.setHasGreenPointsNumber(true);
}
offerQuery.setTicketLanguage(lastOfferQuery.getTicketLanguage());
} catch (Exception e) {
e.printStackTrace();
//setDefaultOfferQuery(offerQuery, applicationContext, userPreferedCurrencyCode);
}
//Log.d(TAG, "OfferQuery.json.....");
} | [
"public void clearOfferQuery() {\n\t\tthis.offerQuery = null;\n\t}",
"public OfferQuery getOfferQuery() {\n\t\t\n\t\t\n\t\tif (this.offerQuery == null) {\n\t\t\tthis.offerQuery = new OfferQuery();\n\t\t}\n\t\treturn this.offerQuery;\n\t}",
"public void setNewFittedOffer(Offer offer){ \r\n\t\t//System.out.println(\"previous offer list size= \"+ this.FittedOffers.size());\r\n\t\tthis.FittedOffers.add(offer);\r\n\t\t//System.out.println(\"current offer list size= \"+ this.FittedOffers.size());\r\n\t}",
"public void setOffer(Offer offer) {\n this.offer = offer;\n }",
"void setQueryRequest(com.exacttarget.wsdl.partnerapi.QueryRequest queryRequest);",
"private void updateQueriedData(String query) {\n if (model.data != null) {\n mOptions = new ArrayList<>();\n for (String option : model.data) {\n if (option.toLowerCase().contains(query.toLowerCase())) {\n mOptions.add(option);\n }\n }\n mAdapter.clear();\n mAdapter.addAll(mOptions);\n mAdapter.notifyDataSetChanged();\n } else {\n mCustomOptions = new ArrayList<>();\n for (MCFStepObj option : model.customData) {\n String displayText = option.getDisplayText().toLowerCase();\n if (displayText.contains(query.toLowerCase())) {\n mCustomOptions.add(option);\n }\n }\n mCustomAdapter.setData(mCustomOptions);\n }\n\n }",
"@Test\n public void testSetOffer() {\n \n assertNull(o2.getOffer());\n o2.setOffer(\"testOffer2\");\n assertNotNull(o2.getOffer());\n assertEquals(\"testOffer2\", o2.getOffer());\n }",
"void setOffers(amdocs.iam.pd.webservices.quotation.getquoteinput.OfferDetails offers);",
"public void setValQuery (String valQuery) {\n this.valQuery = valQuery;\n }",
"public void selectOffer () {\n driver.findElement(specialOffer).click();\n }",
"protected void setQuery(Query query)\r\n {\r\n _query = query;\r\n }",
"public boolean updateOffer(Offer offer);",
"public void setInto(Query query) {\n if (_candidate != null)\n query.setCandidateType(_candidate, true);\n if (!StringUtil.isEmpty(_query))\n query.setQuery(_query);\n if (_res != null)\n query.setResultType(_res);\n if (_readOnly != null)\n query.setReadOnly(_readOnly);\n if (_resultSetMappingName != null)\n query.setResultMapping(null, _resultSetMappingName);\n }",
"public void setQuery(com.microsoft.schemas.sharepoint.soap.UpdateViewQuery query) {\r\n this.query = query;\r\n }",
"public String offer() {\n return this.offer;\n }",
"Builder addOffers(Offer value);",
"@Test\n public void testSetOfferId() {\n \n assertNull(o1.getOfferId());\n o1.setOfferId(1);\n assertEquals(1, o1.getOfferId());\n \n assertNull(o2.getOfferId());\n o2.setOfferId(2);\n assertEquals(2, o2.getOfferId());\n }",
"private void setAnswer() {\n DbHelper dbhelper = new DbHelper(context);\n questionNo = questionNo + 1;\n QuizAnswer answer = new QuizAnswer();\n answer.setQuizId(quizId);\n answer.setQuestionId(questionId);\n int optionId = shareprefs.getInt(\"optionId\", 0);\n answer.setOptionId(optionId);\n int correctAns = shareprefs.getInt(\"correctAns\", 0);\n answer.setAnswer(correctAns);\n answer.setContentId(contentId);\n boolean flage = dbhelper.upsertQuizAnswerEntity(answer);\n if (flage) {\n shareprefs.edit().clear().commit();//clear select OptionPreferences\n setValue();\n }\n }",
"public Offer getOffer() {\n return offer;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a list of all entities in the resolution context which match the supplied entity type argument. | public <T extends Object> List<? extends T> getEntities(Class<T> entityType); | [
"private List<Entity> findEntitiesOfType(Class<? extends Entity> type) {\n return occupants.stream()\n .filter(entity -> type.isInstance(entity) && entity.isAlive())\n .collect(Collectors.toList());\n }",
"public Collection<Class<?>> findEntities() {\n Collection<Class<?>> entities = new HashSet<>();\n if (isEnabled()) {\n if (ArrayUtils.isNotEmpty(packages)) {\n environment.scan(Entity.class, packages).forEach(entities::add);\n } else {\n BeanIntrospector.SHARED.findIntrospections(Entity.class)\n .stream().map(BeanIntrospection::getBeanType)\n .forEach(entities::add);\n }\n }\n\n return Collections.unmodifiableCollection(entities);\n }",
"public List<E> findAll(Class<E> type){\n transaction.begin();\n List<E> types = entityManager.createQuery(\" from \" + type.getName()).getResultList();\n transaction.commit();\n return types;\n }",
"List<Entity> getEntities();",
"protected abstract List<?> findAll(Class<?> entityClass);",
"public interface ReferenceContext {\n\n\t/**\n\t * Return a list of all entities in the resolution context which match the\n\t * supplied entity type argument.\n\t * \n\t * @param <T>\n\t * The generic type of the returned entity list. In general the\n\t * compiler is smart enough that you don't need to specify this,\n\t * it can pick it up from the entityType parameter.\n\t * @param entityType\n\t * Class of entity to return. Use Object.class to return all\n\t * entities within the resolution context\n\t * @return a list of entities from the resolution context which can be cast\n\t * to the specified type.\n\t */\n\tpublic <T extends Object> List<? extends T> getEntities(Class<T> entityType);\n\n}",
"public List<HierarchyEntity> getEntireHierarchyEntities(\n\t\t\tString startEntityId, String relationship, List<String> entityType);",
"public Future<List<CtxEntity>> lookupEntities(String entityType, String attribType, Serializable minAttribValue, Serializable maxAttribValue);",
"public <T extends IDBEntities> List<T> retrieveAll(Class<? extends IDBEntities> type) {\n\t\tif (type == null)\n\t\t\treturn new ArrayList<>();\n\t\tList<T> result;\n\t\tEntityManager em = getEM();\n\t\ttry {\n\t\t\tQuery q = em.createNamedQuery(type.getSimpleName() + \".findAll\", type);\n\t\t\tresult = q.getResultList();\n\t\t} catch (Exception ex) {\n\t\t\t// No records exist\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t\t// Dealing with EclipseLink Vector overriding issues (iterators don't work properly)\n\t\tList<T> output = new ArrayList<>();\n\t\toutput.addAll(result);\n\t\treturn output;\n\t}",
"<T> Set<T> lookupAll(Class<T> type);",
"ResponseEntity<List<Type>> findTaskTypes();",
"public <ENTITY extends Persistable> List<ENTITY> getAll(Class<ENTITY> clazz);",
"public List<Entity> find(EntityQuery query);",
"java.util.List<String>\n getSupportedEntityTypesList();",
"public List<Entity> getEntities(Filter f) {\n return filters.getFilter(f); \n }",
"@Override\n public Iterable<Entity> getFamilyEntities() {\n return this.getEntities(null, this.contextDiagrams);\n }",
"public static List<Entity> getEntities() {\n return entities;\n }",
"List<SpeciesEntity> listAllSpecies();",
"ImmutableList<SchemaOrgType> getMainEntityList();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the album from the filename or the file location | public String getAlbumFromFile(File file) {
// check to see if album is part of a multiple CD collection (CD1, CD2, etc.)
if (file.getPath().matches(FILENAME_MULTIPLE_CD_FILEPATH)) {
file = file.getParentFile();
}
// check to see if we're in a label
if (MP3FileUtils.isPartOfALabel(file)) {
// for singles, the album should be the genre
if (MP3FileUtils.isPartOfALabel(file, SINGLES)) {
return file.getParentFile().getParentFile().getName();
}
// not a single, so get the album from the EP/LP/Compilation title
if (file.getParentFile().getName().matches(FILENAME_YEAR_ARTIST_ALBUM)) {
return FileUtils.cleanFilenameForOSX(
RegexUtils.getMatchedGroup(file.getParentFile().getName(), FILENAME_YEAR_ARTIST_ALBUM, "album"));
} else if (file.getParentFile().getName().matches(FILENAME_YEAR_ALBUM)) {
return FileUtils.cleanFilenameForOSX(
RegexUtils.getMatchedGroup(file.getParentFile().getName(), FILENAME_YEAR_ALBUM, "album"));
}
} else {
// not in a label, get the album normally
if (file.getParentFile().getName().matches(FILENAME_YEAR_ALBUM)) {
return FileUtils.cleanFilenameForOSX(
RegexUtils.getMatchedGroup(file.getParentFile().getName(), FILENAME_YEAR_ALBUM, "album"));
}
}
// album wasn't found using our method, just return blank
return StringUtils.EMPTY;
} | [
"Metadata.Album getAlbum();",
"public String getAlbum() throws NoID3TagException\r\n {\r\n\ttry {\r\n\t checkIfRead(album);\r\n\t} catch (IOException e) {\r\n\t throw new NoID3TagException();\r\n\t}\r\n\treturn album;\r\n }",
"public Album getAlbum(String name){\n\t\tfor(Album a : albums){\n\t\t\tif(a.getTitle().equals(name)){\n\t\t\t\treturn a;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private String getAlbumName() {\n return \"fotos_credencial\";\n }",
"public Album getAlbum(Long idAlbum) throws RemoteException;",
"public String getFirstAlbum()\r\n {\r\n List l = getAlbum();\r\n return (l.size() != 0) ? ((TagTextField) l.get(0)).getContent() : \"\";\r\n }",
"public String getAlbum() {\n return mSongAlbum;\n }",
"Callable<Album> getAlbumFromUri(String albumUri);",
"public String getAlbumArtistFromFile(File file) {\n\n // Library/Label/Singles/Genre/[2021] Artist - Album/01 Title.mp3\n if (MP3FileUtils.isPartOfALabel(file, SINGLES)) {\n return FileUtils.cleanFilenameForOSX(file.getParentFile().getParentFile().getParentFile().getParentFile().getName());\n\n } else if (MP3FileUtils.isPartOfALabel(file)) {\n // Library/Label/Compilations/Compilation/01 Artist - Title.mp3\n // Library/Label/EPs/Album/01 Title.mp3\n // Library/Label/LPs/Album/CD2/01 Title.mp3\n if (file.getPath().matches(FILENAME_MULTIPLE_CD_FILEPATH)) {\n return FileUtils.cleanFilenameForOSX(file.getParentFile().getParentFile().getParentFile().getParentFile().getName());\n }\n return FileUtils.cleanFilenameForOSX(file.getParentFile().getParentFile().getParentFile().getName());\n\n } else {\n // Library/AlbumArtist/[2021] Album/01 Title.mp3\n if (file.getPath().matches(FILENAME_MULTIPLE_CD_FILEPATH)) {\n return FileUtils.cleanFilenameForOSX(file.getParentFile().getParentFile().getParentFile().getName());\n }\n return FileUtils.cleanFilenameForOSX(file.getParentFile().getParentFile().getName());\n }\n }",
"public String getName(){\r\n\t\treturn albumName;\r\n\t}",
"String song_album(Song s);",
"public String getSongAlbum() {\n return mSongAlbum;\n }",
"private Album getAlbumByName(String albumName) {\r\n for (Album a : this.albums) {\r\n if (a.getName() == albumName) {\r\n return a;\r\n }\r\n }\r\n return null;\r\n }",
"public static Album getAlbum() {\n return album;\n }",
"public String getAlbumArt(long id) {\r\n\t\tString albumArt = null;\r\n\t\tString[] projection = { MediaStore.Audio.Albums.ALBUM_ART };\r\n\t\tString selection = MediaStore.Audio.Albums._ID + \" = ?\";\r\n\t\tString[] selectionArgs = new String[] { String.valueOf(id) };\r\n\t\tCursor cur = cr.query(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI,\r\n\t\t\t\tprojection, selection, selectionArgs, null);\r\n\t\tif (cur.moveToFirst()) {\r\n\t\t\ttry {\r\n\t\t\t\tcur.moveToFirst();\r\n\t\t\t\talbumArt = cur.getString(0);\r\n\t\t\t\t// System.out.println(cur.getString(0));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tLog.i(\"\", \"info: no album art of - \" + id);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcur.close();\r\n\t\treturn albumArt;\r\n\t}",
"protected abstract String getAlbumId();",
"public Album getAlbumByTitle(String albumTitle)\r\n {\r\n\t// Loop over albums until album title found and then return the album\r\n\tfor (Album album : albumCollection)\r\n\t{\r\n\t if (album.getAlbumTitle().equals(albumTitle))\r\n\t {\r\n\t\treturn album;\r\n\t }\r\n\t}\r\n\t// If album not found return null\r\n\treturn null;\r\n }",
"byte[] getAlbumImage(String albumId);",
"public File getPhoto(String name) {\n\t\tString absPath = photoFolder.getAbsolutePath() + \"/\" + name;\n\t\treturn new File(absPath);\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inicializa los elementos comunes entre tests. | @Before
public void setUp() {
emisora = new Emisora("EmisoraPrueba");
cancion = new Cancion("CancionPrueba", 120);
cancion2 = new Cancion("CancionPrueba2", 180);
anuncio = new Anuncio();
resultadosBuscados = Lists.newArrayList();
} | [
"@Before\n public void inicializaBaseDatos() throws Exception {\n app = Helpers.fakeApplication(settings());\n databaseTester = new JndiDatabaseTester(\"DefaultDS\");\n IDataSet initialDataSet = new FlatXmlDataSetBuilder().build(new\n FileInputStream(\"test/resources/tareas_dataset_1.xml\"));\n databaseTester.setDataSet(initialDataSet);\n databaseTester.onSetup();\n }",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\ttestObj = new EdgeTable(\"1|test\");\r\n\t\ttestObj.makeArrays();\r\n\t}",
"@BeforeMethod\n public void initTests(){\n homePage = PageFactory.initElements(driver,HomePageHelper.class);\n\n //loginPage = new LoginPageHelper(driver);\n loginPage = PageFactory.initElements(driver,LoginPageHelper.class);\n\n // boardPage = new BoardsPageHelper(driver);\n boardPage = PageFactory.initElements(driver,BoardsPageHelper.class);\n }",
"@BeforeAll\n public static void init() {\n NewsType newsType = new NewsType(\"All about health\", \"Health\");\n news1 = new News(1, \"Test content sample 1\", \"Test preview sample 1\",\n LocalDate.of(2021, 1, 5), \"Test title sample 1\");\n news1.setNewsType(newsType);\n news2 = new News(2, \"Test content sample 2\", \"Test preview sample 2\",\n LocalDate.of(2021, 1, 5), \"Test title sample 2\");\n news2.setNewsType(newsType);\n }",
"@Test\n public void initialize1() {\n buys = PageFactory.initElements(driver, BuyProduct.class);\n buys.dosearch(searchproduct);\n buys.clickit();\n buys.clickpolo();\n }",
"@BeforeClass\n\tpublic static void init() {\n\t\ttestProduct = new Product();\n\t\ttestProduct.setPrice(1000);\n\t\ttestProduct.setName(\"Moto 360\");\n\t\ttestProduct.setDescrip(\"Moto 360 smart watch for smart generation.\");\n\n\t\ttestReview = new Review();\n\t\ttestReview.setHeadline(\"Excellent battery life\");\n\t\ttestReview.setContent(\"Moto 360 has an excellent battery life of 10 days per full charge.\");\n\t}",
"@Test\n\tpublic void testInit() {\n\t\t/*\n\t\t * This test is just use to initialize everything and ensure a better\n\t\t * performance measure for all the other tests.\n\t\t */\n\t}",
"@Before\r\n\tpublic void initializeDefaultMockObjects()\r\n\t{\r\n\t\tconfigs = new ArrayList<Config>();\r\n\t\tscreenshots = new ArrayList<Screenshot>();\r\n\t\tprocessedImages = new ArrayList<ProcessedImage>();\r\n\t\ttestExecutions = new ArrayList<TestExecution>();\r\n\t\ttestEnvironments = new ArrayList<TestEnvironment>();\r\n\r\n\t\tinitializeDefaultTestExecution();\r\n\t\tinitializeDefaultTestEnvironment();\r\n\t\tinitializeDefaultScreenshot();\r\n\t}",
"@Before\r\n\tpublic void setup() {\r\n\t\t// Initialize and populate the ArrayList of Strings. \r\n\t\tstrings = new ArrayList<String>(); \r\n\t\tfor (int i = 0; i < stringsArray.length; i++) {\r\n\t\t\tstrings.add(stringsArray[i]); \r\n\t\t} \r\n\t\t\r\n\t\t// Initialize and populate the ArrayList of Integers. \r\n\t\tintegers = new ArrayList<Integer>(); \r\n\t\tfor (int i = 0; i < intsArray.length; i++) {\r\n\t\t\tintegers.add(intsArray[i]); \r\n\t\t} \r\n\t}",
"@BeforeEach\n public void init() {\n // Create example exercise\n database.addUsers(10, 1, 1);\n var course = database.addCourseWithOneReleasedTextExercise();\n exercise1 = (TextExercise) course.getExercises().iterator().next();\n atheneRequestMockProvider.enableMockingOfRequests();\n }",
"public SwerveAutoTest() {\n // Initialize base classes.\n // All via self-construction.\n\n // Initialize class members.\n // All via self-construction.\n }",
"@BeforeMethod\n public void intializeElements(){\n homePage = PageFactory.initElements(driver, HomePage.class);\n //pharmecyPage = PageFactory.initElements(driver,PharmecyPage.class);\n loginUsingGoogleSheetPage = PageFactory.initElements(driver,LoginUsingGoogleSheetPage.class);\n }",
"@Before\n public void setUp(){\n demandante = new Demandante(\"Tony\",\"Stark\",\"12345678Q\",\"Contrasena\",\n \"0123456789012345\");\n valoracion = new Valoracion(demandante, 5);\n }",
"@Test\n void initialize() {\n assertTrue(depot.getOcc()==0);\n assertNull(depot.getType());\n assertTrue(depot.getSize()==size);\n assertTrue(depot1.getOcc()==2);\n assertTrue(depot1.getType()==ResourceType.coin);\n assertTrue(depot1.getSize()==size);\n }",
"public void initTestEnvironment() {\r\n\t\tinitFile = new InitFileIO();\r\n\t\tinitFile.checkAndProcessFile();\r\n\t\tkeywordValidator = new Validator();\r\n\t\taddCommandList = new ArrayList<String>();\r\n\t}",
"@BeforeEach\n void init(){\n patient1 = new Patient();\n patientList = new ArrayList<>();\n patientList.add(patient1);\n\n medicalTest1 = new MedicalTest();\n\n }",
"@BeforeEach\n\tpublic void init() {\n\t\tCreateOrderTest.params.clear();\n\t}",
"public SetupTestData() {\n initComponents();\n }",
"@BeforeClass\n\tpublic static void generatingItems() {\n\t\tfor (Item i : allItems) {\n\t\t\tif (i.getType().equals(\"spores engine\")) {\n\t\t\t\titem4 = i;\n\t\t\t}\n\t\t}\n\t\tltsTest = new LongTermStorage();\n\t\tltsTest1 = new LongTermStorage();\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.com.yunhui.netty.proto.Status status = 2; | TransmissionProtocol.Status getStatus(); | [
"com.cst14.im.protobuf.ProtoClass.MsgStatus getStatus();",
"com.aakash.cloudfs.protocol.proto.generated.stubs.Status getStatus();",
"com.spark.dialect.generated.proto.PbExample.PbExampleResponse.STATUS getStatus();",
"com.cst14.im.protobuf.ProtoClass.StatusCode getResponseState();",
"se.lth.immun.protocol.MSDataProtocol.Status.StatusType getStatus();",
"com.clarifai.grpc.api.status.Status getStatus();",
"com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder();",
"se.lth.immun.protocol.MSDataProtocol.Status getStatus();",
"se.lth.immun.protocol.MSDataProtocol.StatusOrBuilder getStatusOrBuilder();",
"sawtooth.sdk.protobuf.ConsensusBroadcastResponse.Status getStatus();",
"com.google.rpc.Status getStatus();",
"messages.Statusmessage.StatusMessageOrBuilder getStatusOrBuilder();",
"com.google.rpc.StatusOrBuilder getStatusOrBuilder();",
"void sendStatus(int status);",
"messages.Statusmessage.StatusMessage getStatus();",
"in.trujobs.proto.GetJobPostDetailsResponse.Status getStatus();",
"trinsic.services.CoreService.ResponseStatus getStatus();",
"com.google.protobuf.UInt32ValueOrBuilder getStatusOrBuilder();",
"public int value() {return status; }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleXBlockExpression" $ANTLR start "ruleXBlockExpression" ../org.xtext.lwc.instances.ui/srcgen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:211:1: ruleXBlockExpression : ( ( rule__XBlockExpression__Group__0 ) ) ; | public final void ruleXBlockExpression() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:215:2: ( ( ( rule__XBlockExpression__Group__0 ) ) )
// ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:216:1: ( ( rule__XBlockExpression__Group__0 ) )
{
// ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:216:1: ( ( rule__XBlockExpression__Group__0 ) )
// ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:217:1: ( rule__XBlockExpression__Group__0 )
{
if ( state.backtracking==0 ) {
before(grammarAccess.getXBlockExpressionAccess().getGroup());
}
// ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:218:1: ( rule__XBlockExpression__Group__0 )
// ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:218:2: rule__XBlockExpression__Group__0
{
pushFollow(FOLLOW_rule__XBlockExpression__Group__0_in_ruleXBlockExpression400);
rule__XBlockExpression__Group__0();
state._fsp--;
if (state.failed) return ;
}
if ( state.backtracking==0 ) {
after(grammarAccess.getXBlockExpressionAccess().getGroup());
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void ruleXBlockExpression() 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:1396:2: ( ( ( rule__XBlockExpression__Group__0 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1397:1: ( ( rule__XBlockExpression__Group__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1397:1: ( ( rule__XBlockExpression__Group__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1398:1: ( rule__XBlockExpression__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXBlockExpressionAccess().getGroup()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1399:1: ( rule__XBlockExpression__Group__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1399:2: rule__XBlockExpression__Group__0\n {\n pushFollow(FOLLOW_rule__XBlockExpression__Group__0_in_ruleXBlockExpression2925);\n rule__XBlockExpression__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXBlockExpressionAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void ruleXBlockExpression() 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:1200:2: ( ( ( rule__XBlockExpression__Group__0 ) ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:1201:1: ( ( rule__XBlockExpression__Group__0 ) )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:1201:1: ( ( rule__XBlockExpression__Group__0 ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:1202:1: ( rule__XBlockExpression__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXBlockExpressionAccess().getGroup()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:1203:1: ( rule__XBlockExpression__Group__0 )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:1203:2: rule__XBlockExpression__Group__0\n {\n pushFollow(FOLLOW_rule__XBlockExpression__Group__0_in_ruleXBlockExpression2505);\n rule__XBlockExpression__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXBlockExpressionAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void ruleXBlockExpression() 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:1542:2: ( ( ( rule__XBlockExpression__Group__0 ) ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1543:1: ( ( rule__XBlockExpression__Group__0 ) )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1543:1: ( ( rule__XBlockExpression__Group__0 ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1544:1: ( rule__XBlockExpression__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXBlockExpressionAccess().getGroup()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1545:1: ( rule__XBlockExpression__Group__0 )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1545:2: rule__XBlockExpression__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__XBlockExpression__Group__0_in_ruleXBlockExpression3231);\r\n rule__XBlockExpression__Group__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.getXBlockExpressionAccess().getGroup()); \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 ruleXBlockExpression() 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:1312:2: ( ( ( rule__XBlockExpression__Group__0 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1313:1: ( ( rule__XBlockExpression__Group__0 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1313:1: ( ( rule__XBlockExpression__Group__0 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1314:1: ( rule__XBlockExpression__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXBlockExpressionAccess().getGroup()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1315:1: ( rule__XBlockExpression__Group__0 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1315:2: rule__XBlockExpression__Group__0\n {\n pushFollow(FOLLOW_rule__XBlockExpression__Group__0_in_ruleXBlockExpression2745);\n rule__XBlockExpression__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXBlockExpressionAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void ruleXBlockExpression() 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:2826:2: ( ( ( rule__XBlockExpression__Group__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2827:1: ( ( rule__XBlockExpression__Group__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2827:1: ( ( rule__XBlockExpression__Group__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2828:1: ( rule__XBlockExpression__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXBlockExpressionAccess().getGroup()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2829:1: ( rule__XBlockExpression__Group__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2829:2: rule__XBlockExpression__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__XBlockExpression__Group__0_in_ruleXBlockExpression5988);\r\n rule__XBlockExpression__Group__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.getXBlockExpressionAccess().getGroup()); \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 ruleXBlockExpression() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1286:2: ( ( ( rule__XBlockExpression__Group__0 ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1287:1: ( ( rule__XBlockExpression__Group__0 ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1287:1: ( ( rule__XBlockExpression__Group__0 ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1288:1: ( rule__XBlockExpression__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXBlockExpressionAccess().getGroup()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1289:1: ( rule__XBlockExpression__Group__0 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1289:2: rule__XBlockExpression__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__XBlockExpression__Group__0_in_ruleXBlockExpression2687);\r\n rule__XBlockExpression__Group__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.getXBlockExpressionAccess().getGroup()); \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__XBlockExpression__Group__0__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:3113:1: ( ( () ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3114:1: ( () )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3114:1: ( () )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3115:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXBlockExpressionAccess().getObjectLiteralAction_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3116:1: ()\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3118:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXBlockExpressionAccess().getObjectLiteralAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void ruleXBlockExpression() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:1467:2: ( ( ( rule__XBlockExpression__Group__0 ) ) )\r\n // InternalDroneScript.g:1468:2: ( ( rule__XBlockExpression__Group__0 ) )\r\n {\r\n // InternalDroneScript.g:1468:2: ( ( rule__XBlockExpression__Group__0 ) )\r\n // InternalDroneScript.g:1469:3: ( rule__XBlockExpression__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXBlockExpressionAccess().getGroup()); \r\n }\r\n // InternalDroneScript.g:1470:3: ( rule__XBlockExpression__Group__0 )\r\n // InternalDroneScript.g:1470:4: rule__XBlockExpression__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XBlockExpression__Group__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.getXBlockExpressionAccess().getGroup()); \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__XBlockExpression__Group__0() 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:3101:1: ( rule__XBlockExpression__Group__0__Impl rule__XBlockExpression__Group__1 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3102:2: rule__XBlockExpression__Group__0__Impl rule__XBlockExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XBlockExpression__Group__0__Impl_in_rule__XBlockExpression__Group__06570);\n rule__XBlockExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XBlockExpression__Group__1_in_rule__XBlockExpression__Group__06573);\n rule__XBlockExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XBlockExpression__Group__0() 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:10515:1: ( rule__XBlockExpression__Group__0__Impl rule__XBlockExpression__Group__1 )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10516:2: rule__XBlockExpression__Group__0__Impl rule__XBlockExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XBlockExpression__Group__0__Impl_in_rule__XBlockExpression__Group__021347);\n rule__XBlockExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XBlockExpression__Group__1_in_rule__XBlockExpression__Group__021350);\n rule__XBlockExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XBlockExpression__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:12511:1: ( ( () ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:12512:1: ( () )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:12512:1: ( () )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:12513:1: ()\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:12514:1: ()\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:12516:1: \r\n {\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XBlockExpression__Group__0__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:10527:1: ( ( () ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10528:1: ( () )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10528:1: ( () )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10529:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10530:1: ()\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10532:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XBlockExpression__Group__0__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:12133:1: ( ( () ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12134:1: ( () )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12134:1: ( () )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12135:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12136:1: ()\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12138:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void entryRuleXBlockExpression() throws RecognitionException {\n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1384:1: ( ruleXBlockExpression EOF )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1385:1: ruleXBlockExpression EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXBlockExpressionRule()); \n }\n pushFollow(FOLLOW_ruleXBlockExpression_in_entryRuleXBlockExpression2892);\n ruleXBlockExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXBlockExpressionRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXBlockExpression2899); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final void rule__XBlockExpression__Group__0__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:11236:1: ( ( () ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11237:1: ( () )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11237:1: ( () )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11238:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11239:1: ()\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11241:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void entryRuleXBlockExpression() throws RecognitionException {\r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2814:1: ( ruleXBlockExpression EOF )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2815:1: ruleXBlockExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXBlockExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleXBlockExpression_in_entryRuleXBlockExpression5955);\r\n ruleXBlockExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXBlockExpressionRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleXBlockExpression5962); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"public final void rule__XBlockExpression__Group__0() 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:13491:1: ( rule__XBlockExpression__Group__0__Impl rule__XBlockExpression__Group__1 )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:13492:2: rule__XBlockExpression__Group__0__Impl rule__XBlockExpression__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__XBlockExpression__Group__0__Impl_in_rule__XBlockExpression__Group__027273);\r\n rule__XBlockExpression__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__XBlockExpression__Group__1_in_rule__XBlockExpression__Group__027276);\r\n rule__XBlockExpression__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XBlockExpression__Group__2__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:10589:1: ( ( ( rule__XBlockExpression__Group_2__0 )* ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10590:1: ( ( rule__XBlockExpression__Group_2__0 )* )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10590:1: ( ( rule__XBlockExpression__Group_2__0 )* )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10591:1: ( rule__XBlockExpression__Group_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXBlockExpressionAccess().getGroup_2()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10592:1: ( rule__XBlockExpression__Group_2__0 )*\n loop74:\n do {\n int alt74=2;\n int LA74_0 = input.LA(1);\n\n if ( ((LA74_0>=RULE_ID && LA74_0<=RULE_STRING)||LA74_0==25||(LA74_0>=33 && LA74_0<=34)||LA74_0==39||(LA74_0>=41 && LA74_0<=47)||(LA74_0>=54 && LA74_0<=55)||LA74_0==57||(LA74_0>=60 && LA74_0<=61)||LA74_0==63||(LA74_0>=67 && LA74_0<=75)||(LA74_0>=83 && LA74_0<=84)) ) {\n alt74=1;\n }\n\n\n switch (alt74) {\n \tcase 1 :\n \t // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10592:2: rule__XBlockExpression__Group_2__0\n \t {\n \t pushFollow(FOLLOW_rule__XBlockExpression__Group_2__0_in_rule__XBlockExpression__Group__2__Impl21500);\n \t rule__XBlockExpression__Group_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop74;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXBlockExpressionAccess().getGroup_2()); \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__XBlockExpression__Group__0() 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:11224:1: ( rule__XBlockExpression__Group__0__Impl rule__XBlockExpression__Group__1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11225:2: rule__XBlockExpression__Group__0__Impl rule__XBlockExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XBlockExpression__Group__0__Impl_in_rule__XBlockExpression__Group__022788);\n rule__XBlockExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XBlockExpression__Group__1_in_rule__XBlockExpression__Group__022791);\n rule__XBlockExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Pauses the file transfer | public void pauseTransfer() throws RcsPermissionDeniedException, RcsGenericException {
try {
mTransferInf.pauseTransfer();
} catch (Exception e) {
RcsPermissionDeniedException.assertException(e);
RcsUnsupportedOperationException.assertException(e);
throw new RcsGenericException(e);
}
} | [
"public synchronized void pause() {\n downloadTask.pause();\n }",
"public void pauseFile() {\n // you may want to throw an IllegalStateException if !running\n paused = true;\n\n }",
"public void pause()\n {\n Iterator it = sendStreams.iterator();\n SendStream sendStream;\n \n logger.info(\"pausing transmission... \");\n \n while (it.hasNext())\n {\n sendStream = (SendStream) it.next();\n try\n {\n sendStream.stop();\n }\n catch (IOException ex)\n {\n logger.warn(\"Exception when pausing transmission \", ex);\n }\n }\n }",
"@Override\n public void pause() {\n logger.trace(\"[IN] pause\");\n\n logger.debug(\"Setting dataset dowload to pause...\");\n // Set new dataset download state\n setRecordStatus(RecordStatus.PAUSED);\n\n if (getRecordStatus() != RecordStatus.FINISHED) {\n // for each files to download\n for (FileDownloadStatus file : getFilesDownloadStatus()) {\n // pause download files if are in DOWNLOADING status or READY\n if (file.getRecordStatus() == RecordStatus.DOWNLOADING\n || file.getRecordStatus() == RecordStatus.WAITING) {\n file.pause();\n }\n }\n }\n\n logger.trace(\"[OUT] pause\");\n }",
"public void resumeFile() {\n try {\n synchronized (pauseLock) {\n paused = false;\n pauseLock.notifyAll(); // Unblocks thread\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n protected void onPause() {\n DeviceControl.stop_reading();\n running = false;\n try {\n bw.close();\n } catch (Exception e) {\n error_tv.setText(\"Error closing file.\");\n }\n DeviceControl.device_control(DeviceControl.STOP);\n super.onPause();\n }",
"private void actionPause() {\n\t\tselectedDownload.pause();\n\t\tupdateButtons();\n\t}",
"public void pause() {\n\t\tif (playing)\n\t\t\tstopRequested = true;\n\t}",
"private void pause() {\n\t\ttry {\n\t\t\tThread.sleep(500);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void pause() {\n\t\tif (player != null) {\n\n\t\t\ttry {\n\t\t\t\t// Checks how much of the song is left available to play\n\t\t\t\tpauseLocation = fis.available();\n\t\t\t\tplayer.close();\n\t\t\t} catch (IOException e) {\n\n\t\t\t}\n\n\t\t}\n\t}",
"public void pause()\n {\n paused = true;\n }",
"public final void pauseThread() {\r\n\t\tpause = true;\r\n\t}",
"void pause(){\n try{\n Thread.sleep(2000);\n } catch (InterruptedException e){\n e.printStackTrace();\n }\n }",
"public void requestPause();",
"public void pauseFile(FileDownloadStatus fileDownloadStatus) {\n logger.trace(\"[IN] pauseFile\");\n\n // If fileDownloadStatus isn't in fileMap\n if (!mapInstanceIDFileDownload\n .containsKey(standardizeESGFFileInstanceID(fileDownloadStatus\n .getInstanceID()))) {\n logger.error(\"File {} doesn't belongs to {}. Can't be paused\",\n fileDownloadStatus.getInstanceID(), instanceID);\n throw new IllegalArgumentException();\n }\n\n // pause download files if are in DOWNLOADING status or WAITING\n if (fileDownloadStatus.getRecordStatus() == RecordStatus.DOWNLOADING\n || fileDownloadStatus.getRecordStatus() == RecordStatus.WAITING) {\n fileDownloadStatus.pause();\n }\n logger.debug(\"File {} was paused\", fileDownloadStatus.getInstanceID());\n logger.trace(\"[OUT] pauseFile\");\n }",
"public void stopFile(){\n try {\n running = false;\n resumeFile();\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void pause() {\n cancelCallback();\n mStartTimeMillis *= -1;\n }",
"public synchronized void pause () {\r\n if (!paused) {\r\n end = System.currentTimeMillis();\r\n paused = true;\r\n }\r\n }",
"@Override\n protected void paused(final BaseDownloadTask task, final int soFarBytes, final int totalBytes) {\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DELETE /percentages/:id : delete the "id" percentage. | @DeleteMapping("/percentages/{id}")
@Timed
public ResponseEntity<Void> deletePercentage(@PathVariable Long id) {
log.debug("REST request to delete Percentage : {}", id);
percentageService.delete(id);
return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();
} | [
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Preferencia : {}\", id);\n preferenciaRepository.deleteById(id);\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Prime : {}\", id);\n primeRepository.deleteById(id);\n }",
"DiscountResponse delete(Long id);",
"@DeleteMapping(\"/grossdeducts/{id}\")\n @Timed\n public ResponseEntity<Void> deleteGrossdeduct(@PathVariable Long id) {\n log.debug(\"REST request to delete Grossdeduct : {}\", id);\n grossdeductService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping (\"shops/pictures/{id}\")\n\tpublic void deletePaint(@PathVariable(name=\"id\")Long id) {\n\t\tSystem.out.println(\"Se borra el paint con id: \" +id);\n\n\t\tpaintServiceImpl.deletePaint(id);\n\t\t\n\t\tSystem.out.println(\"PAINT BORRADA\");\n\t}",
"@RequestMapping(path = \"/gradebook/{id}\", method = RequestMethod.DELETE)\n\tpublic void deleteGradebook(@PathVariable Integer id)\n\t{\n\n\t\ttry {\n\t\t\tgradebookService.deleteGradebook(id);\n\t\t} catch (GradebookNotFoundException e) {\n\t\t\tthrow e;\n\t\t}\n\t}",
"@DeleteMapping(\"/ratings/{id}\")\n @Timed\n public ResponseEntity<Void> deleteRating(@PathVariable Long id) {\n log.debug(\"REST request to delete Rating : {}\", id);\n ratingRepository.delete(id);\n ratingSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Rating : {}\", id);\n ratingRepository.deleteById(id);\n }",
"Discount deleteDiscount(Long id);",
"@DELETE\n @Path(\"/{id}\")\n public Response deleteStudentGrade(@PathParam(\"id\") int id) {\n // getting student by it's index\n StudentService studentService = new StudentService();\n Student searchedStudent = studentService.getStudent(index);\n\n // checking if student exists\n if (searchedStudent == null)\n return Response.status(Response.Status.NOT_FOUND).entity(\"Student not found\").build();\n\n Grade searchedGrade = searchedStudent.getGradeById(id);\n // checking if grade exists\n if (searchedGrade == null)\n return Response.status(Response.Status.NOT_FOUND).entity(\"Grade not found\").build();\n\n // removing student grade\n searchedStudent.removeStudentGradeById(id);\n studentService.updateStudent(searchedStudent);\n String result = \"Student grade \" + searchedGrade + \" deleted!\";\n\n // creating response\n return Response.status(Response.Status.OK).entity(result).build();\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Reduction : {}\", id);\n reductionRepository.deleteById(id);\n }",
"@DeleteMapping(\"/profesionals/{id}\")\n @Timed\n public ResponseEntity<Void> deleteProfesional(@PathVariable Long id) {\n log.debug(\"REST request to delete Profesional : {}\", id);\n profesionalService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/cash-balances/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCashBalance(@PathVariable Long id) {\n log.debug(\"REST request to delete CashBalance : {}\", id);\n cashBalanceService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void delete(int id){\n assetRepository.deleteById(id);\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete InspectionBudget : {}\", id);\n inspectionBudgetRepository.deleteById(id);\n }",
"@DeleteMapping(\"/delete/{id}\")\n\tpublic ResponseEntity<List<Discount>> deleteDiscount(@PathVariable(\"id\") long id) {\n\t\tlogger.info(\"Deleting Discount : \" +id);\n\t\tList<Discount> discountList = discountService.deleteDiscount(id);\n\t\tif (discountList == null)\n\t\t\treturn new ResponseEntity<List<Discount>>(HttpStatus.NO_CONTENT);\n\t\treturn new ResponseEntity<List<Discount>>(discountList, HttpStatus.OK);\n\t}",
"@DeleteMapping(\"/budgets/{id}\")\n @Timed\n public ResponseEntity<Void> deleteBudget(@PathVariable Long id) {\n log.debug(\"REST request to delete Budget : {}\", id);\n\n budgetRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@GetMapping(\"/percentages/{id}\")\n @Timed\n public ResponseEntity<Percentage> getPercentage(@PathVariable Long id) {\n log.debug(\"REST request to get Percentage : {}\", id);\n Percentage percentage = percentageService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(percentage));\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete RateResult : {}\", id);\n rateResultRepository.delete(id);\n\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
EFFECT: runs the ParkingApp | public ParkingApp() {
runApp();
} | [
"public void pauseApp()\n {\n midletPaused = true;\n }",
"public void pauseApp() {\r\n midletPaused = true;\r\n }",
"public void pauseApp() {\n midletPaused = true;\n }",
"public ParkAppConsoleBased() {\r\n input = new Scanner(System.in);\r\n parkingList = new ParkingList(0, 0.00, 0, 0.00);\r\n jsonWriter = new JsonWriter(JSON_STORE);\r\n jsonReader = new JsonReader(JSON_STORE);\r\n runParkApp();\r\n }",
"public void StartApp() {\r\n\t\t_UIController = UIControl.GetInstance();\r\n\t\t\r\n\t\t_UIController.OpenMainMenu();\r\n\t\t_SoundControl.StartBackgroundMusic();\r\n\t}",
"public void run()\r\n {\r\n p.paused = false;\r\n createPlatform();\r\n }",
"private void showParkMenu() {\r\n ArrayList<String> strings = new ArrayList<>();\r\n strings.add(\"1: Ouvrir/fermer le parc \" + (Park.getInstance().is_open() ? \"(ouvert)\" : \"(fermé)\"));\r\n strings.add(\"2: Changer le prix d'entrée (\" + Park.getInstance().getPrice() + \"€)\");\r\n strings.add(\"3: Lister les zones disponibles\");\r\n strings.add(\"4: Lister les attractions installées\");\r\n strings.add(\"5: Lister les attractions en stock\");\r\n strings.add(\"6: Installer des attractions\");\r\n strings.add(\"7: Désinstaller des attractions\");\r\n strings.add(\"8: Nettoyer le parc\");\r\n strings.add(\"R: Retour\");\r\n String[] valid = {\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"R\", \"r\"};\r\n String action = this.view.showMenu(\"Gestion du parc \" + Park.getInstance().getName(), strings, valid);\r\n this.view.separator();\r\n switch (action) {\r\n case \"1\":\r\n if (Park.getInstance().is_open()) {\r\n Park.getInstance().close();\r\n this.view.print(\"Parc fermé\");\r\n } else {\r\n Park.getInstance().open();\r\n this.view.print(\"Parc ouvert\");\r\n }\r\n this.view.waitEnter();\r\n break;\r\n case \"2\":\r\n if (Park.getInstance().is_open()) {\r\n this.view.print(\"Le parc doit être fermé pour effectuer cette action\");\r\n } else {\r\n\r\n Park.getInstance().setPrice(Double.parseDouble(this.view.prompt(\"Nouveau prix\")));\r\n this.view.print(\"Effectué\");\r\n }\r\n this.view.waitEnter();\r\n break;\r\n case \"3\":\r\n this.view.print(Park.getInstance().listAreas());\r\n this.view.waitEnter();\r\n break;\r\n case \"4\":\r\n this.view.print(Park.getInstance().listAttractions(true));\r\n this.view.waitEnter();\r\n break;\r\n case \"5\":\r\n this.view.print(Park.getInstance().listAttractions(false));\r\n this.view.waitEnter();\r\n break;\r\n case \"6\":\r\n showParkInstallAttractionMenu();\r\n break;\r\n case \"7\":\r\n showParkUninstallAttractionMenu();\r\n break;\r\n case \"8\":\r\n this.view.print(Park.getInstance().clean());\r\n this.view.waitEnter();\r\n break;\r\n case \"R\":\r\n case \"r\":\r\n this.showMainMenu();\r\n break;\r\n }\r\n showParkMenu();\r\n }",
"@Override\n public void run() {\n Log.i(TAG, getString(R.string.app_name) + \": Starting WorksiteSelectActivity\");\n //Intent mainIntent = new Intent(SplashActivity.this, WorksiteSelectActivity.class);\n Intent mainIntent = new Intent(SplashActivity.this, ControlActivity.class);\n SplashActivity.this.startActivity(mainIntent);\n SplashActivity.this.finish();\n }",
"public void goToFarm() {\r\n Main farmUI = new Main(this);\r\n farmUI.start(primaryStage);\r\n }",
"private static void runPastr() throws GameActionException {\n\t\t\n\t}",
"public void init() {\r\n this.view.debug(APP_NAME + \" - V\" + VERSION);\r\n Park.getInstance().setName(this.view.prompt(\"Nom du parc\"));\r\n this.showMainMenu();\r\n }",
"public void run() {\n provisioningResult = TiviPhoneService.doCmd(\"prov.start=\" + provCode);\n stopProvMonitoring = true;\n }",
"void launchApp();",
"public void startApp() {\n if (!midletPaused) {\n startMIDlet();\n }\n midletPaused = false;\n }",
"public void startApp() {\r\n if (midletPaused) {\r\n resumeMIDlet ();\r\n } else {\r\n initialize ();\r\n startMIDlet ();\r\n }\r\n midletPaused = false;\r\n }",
"public void startApp() {\n if (midletPaused) {\n resumeMIDlet();\n } else {\n initialize();\n startMIDlet();\n }\n midletPaused = false;\n }",
"@Override\n public void runOpMode() throws InterruptedException {\n\n AutoMode = new AutoUC3_Park();\n autoIntake = new Intake(hardwareMap);\n autoArm = new Arm(hardwareMap);\n autoChassis = new Chassis(hardwareMap);\n\n waitForStart();\n\n //Initialize on press of play\n autoChassis.initChassis();\n autoArm.initArm();\n autoIntake.initIntake();\n\n while (opModeIsActive()&& !isStopRequested() && !parked) {\n parked = AutoMode.AutoUC3_Park_Method(\n this,\n playingAlliance,\n parkingPlaceNearSkyBridge,\n startInBuildingZone,\n autoChassis,\n autoArm,\n autoIntake);\n }\n }",
"public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }",
"public void beginGame() {\r\n this.carControllerStage.show();\r\n this.parkingArea.gameBeginned();\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtener una lista de ParticipanteCovid19 de la base de datos | public List<ParticipanteCovid19> getParticipantesCovid19(String filtro, String orden) throws SQLException {
List<ParticipanteCovid19> mParticipanteCovid19s = new ArrayList<ParticipanteCovid19>();
Cursor cursor = crearCursor(Covid19DBConstants.PARTICIPANTE_COVID_TABLE, filtro, null, orden);
if (cursor != null && cursor.getCount() > 0) {
cursor.moveToFirst();
mParticipanteCovid19s.clear();
do{
ParticipanteCovid19 mParticipanteCovid19 = null;
mParticipanteCovid19 = ParticipanteCovid19Helper.crearParticipanteCovid19(cursor);
Participante participante = this.getParticipante(MainDBConstants.codigo + "=" +cursor.getInt(cursor.getColumnIndex(Covid19DBConstants.participante)), null);
mParticipanteCovid19.setParticipante(participante);
mParticipanteCovid19s.add(mParticipanteCovid19);
} while (cursor.moveToNext());
}
if (!cursor.isClosed()) cursor.close();
return mParticipanteCovid19s;
} | [
"public List<ParticipanteCasoCovid19> getParticipantesCasosCovid19(String filtro, String orden) throws SQLException {\n\t\tList<ParticipanteCasoCovid19> mParticipanteCasoCovid19s = new ArrayList<ParticipanteCasoCovid19>();\n\t\tCursor cursor = crearCursor(Covid19DBConstants.COVID_PARTICIPANTES_CASOS_TABLE, filtro, null, orden);\n\t\tif (cursor != null && cursor.getCount() > 0) {\n\t\t\tcursor.moveToFirst();\n\t\t\tmParticipanteCasoCovid19s.clear();\n\t\t\tdo{\n\t\t\t\tParticipanteCasoCovid19 mParticipanteCasoCovid19 = null;\n\t\t\t\tmParticipanteCasoCovid19 = ParticipanteCasoCovid19Helper.crearParticipanteCasoCovid19(cursor);\n\t\t\t\tCasoCovid19 caso = this.getCasoCovid19(Covid19DBConstants.codigoCaso + \"='\" +cursor.getString(cursor.getColumnIndex(Covid19DBConstants.codigoCaso))+\"'\", null);\n\t\t\t\tmParticipanteCasoCovid19.setCodigoCaso(caso);\n\t\t\t\tParticipante participante = this.getParticipante(MainDBConstants.codigo + \"=\" +cursor.getInt(cursor.getColumnIndex(Covid19DBConstants.participante)), null);\n\t\t\t\tmParticipanteCasoCovid19.setParticipante(participante);\n\t\t\t\tmParticipanteCasoCovid19s.add(mParticipanteCasoCovid19);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\t\tif (!cursor.isClosed()) cursor.close();\n\t\treturn mParticipanteCasoCovid19s;\n\t}",
"public List<DataPartido> infoPartidosCompeticion() {\n // Se muestra la informacion de los partidos de la competicion guardada en memoria\n List<DataPartido> listDatasPart = new ArrayList<DataPartido>();\n\n for (Map.Entry<String,Llave> entry : llaves.entrySet()) {\n Llave ll = entry.getValue();\n DataPartido dataPart = ll.obtenerDataPartido(this.id,this.nombre, TipoCompeticion.Copa);\n listDatasPart.add(dataPart);\n\n }\n return listDatasPart; /// TENDRIA QUE RETORNARSE UNA LISTA ORDENADA POR FECHA\n }",
"public List<CuestionarioCovid19> getCuestionariosCovid19(String filtro, String orden) throws SQLException {\n\t\tList<CuestionarioCovid19> mCuestionarioCovid19s = new ArrayList<CuestionarioCovid19>();\n\t\tCursor cursor = crearCursor(Covid19DBConstants.COVID_CUESTIONARIO_TABLE, filtro, null, orden);\n\t\tif (cursor != null && cursor.getCount() > 0) {\n\t\t\tcursor.moveToFirst();\n\t\t\tmCuestionarioCovid19s.clear();\n\t\t\tdo{\n\t\t\t\tCuestionarioCovid19 mCuestionarioCovid19 = null;\n\t\t\t\tmCuestionarioCovid19 = CuestionarioCovid19Helper.crearCuestionarioCovid19(cursor);\n\t\t\t\tParticipante participante = this.getParticipante(MainDBConstants.codigo + \"=\" +cursor.getInt(cursor.getColumnIndex(Covid19DBConstants.participante)), null);\n\t\t\t\tmCuestionarioCovid19.setParticipante(participante);\n\t\t\t\tmCuestionarioCovid19s.add(mCuestionarioCovid19);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\t\tif (!cursor.isClosed()) cursor.close();\n\t\treturn mCuestionarioCovid19s;\n\t}",
"public List<GEPartiesContsts> findAllGEPartiesContst() {\n\t\tlogger.info(\" inside findAllGEPartiesContst() of GeneralElectionsRepository class ..\");\n\t\t//return mongoTemplate.findAll(GEPartiesContsts.class, GE_PARTIES_CONTESTS);\n\t\tQuery query = new Query();\n\t\tquery.with(new Sort(Sort.Direction.ASC, \"year\"));\n\t\treturn mongoTemplate.find(query, GEPartiesContsts.class, GE_PARTIES_CONTESTS);\n\t}",
"public List getListConcursosVigentesPuntos();",
"public List getClasificacionesParticipante();",
"public List<CandidatoSpecializzazione> getLista();",
"public List<CandidatoTransmisionCovid19> getCandidatosTransmisionCovid19(String filtro, String orden) throws SQLException {\n\t\tList<CandidatoTransmisionCovid19> mCandidatoTransmisionCovid19s = new ArrayList<CandidatoTransmisionCovid19>();\n\t\tCursor cursor = crearCursor(Covid19DBConstants.COVID_CANDIDATO_TRANSMISION_TABLE, filtro, null, orden);\n\t\tif (cursor != null && cursor.getCount() > 0) {\n\t\t\tcursor.moveToFirst();\n\t\t\tmCandidatoTransmisionCovid19s.clear();\n\t\t\tdo{\n\t\t\t\tCandidatoTransmisionCovid19 mCandidatoTransmisionCovid19 = null;\n\t\t\t\tmCandidatoTransmisionCovid19 = CandidatoTransmisionCovid19Helper.crearCandidatoTransmisionCovid19(cursor);\n\t\t\t\tParticipante participante = this.getParticipante(MainDBConstants.codigo + \"=\" +cursor.getInt(cursor.getColumnIndex(Covid19DBConstants.participante)), null);\n\t\t\t\tmCandidatoTransmisionCovid19.setParticipante(participante);\n\t\t\t\tmCandidatoTransmisionCovid19s.add(mCandidatoTransmisionCovid19);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\t\tif (!cursor.isClosed()) cursor.close();\n\t\treturn mCandidatoTransmisionCovid19s;\n\t}",
"public ArrayList<ni.org.ics.estudios.appmovil.domain.muestreoanual.EncuestaParticipante> getListaEncuestaParticipantes(Integer codigo) throws SQLException {\n Cursor encparts = null;\n ArrayList<ni.org.ics.estudios.appmovil.domain.muestreoanual.EncuestaParticipante> mEncuestaParticipantes = new ArrayList<ni.org.ics.estudios.appmovil.domain.muestreoanual.EncuestaParticipante>();\n encparts = mDb.query(true, ConstantsDB.ENC_PART_TABLE, null,\n ConstantsDB.CODIGO + \"=\" + codigo, null, null, null, null, null);\n if (encparts != null && encparts.getCount() > 0) {\n encparts.moveToFirst();\n mEncuestaParticipantes.clear();\n do{\n mEncuestaParticipantes.add(crearEncuestaParticipante(encparts));\n } while (encparts.moveToNext());\n }\n encparts.close();\n return mEncuestaParticipantes;\n }",
"public List<VisitaSeguimientoCasoCovid19> getVisitasSeguimientosCasosCovid19(String filtro, String orden) throws SQLException {\n\t\tList<VisitaSeguimientoCasoCovid19> mVisitaSeguimientoCasoCovid19s = new ArrayList<VisitaSeguimientoCasoCovid19>();\n\t\tCursor cursor = crearCursor(Covid19DBConstants.COVID_VISITAS_CASOS_TABLE, filtro, null, orden);\n\t\tif (cursor != null && cursor.getCount() > 0) {\n\t\t\tcursor.moveToFirst();\n\t\t\tmVisitaSeguimientoCasoCovid19s.clear();\n\t\t\tdo{\n\t\t\t\tVisitaSeguimientoCasoCovid19 mVisitaSeguimientoCasoCovid19 = null;\n\t\t\t\tmVisitaSeguimientoCasoCovid19 = VisitaSeguimientoCasoCovid19Helper.crearVisitaSeguimientoCasoCovid19(cursor);\n\t\t\t\tParticipanteCasoCovid19 caso = this.getParticipanteCasoCovid19(Covid19DBConstants.codigoCasoParticipante + \"='\" +cursor.getString(cursor.getColumnIndex(Covid19DBConstants.codigoCasoParticipante)) +\"'\", null);\n\t\t\t\tmVisitaSeguimientoCasoCovid19.setCodigoParticipanteCaso(caso);\n\t\t\t\tmVisitaSeguimientoCasoCovid19s.add(mVisitaSeguimientoCasoCovid19);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\t\tif (!cursor.isClosed()) cursor.close();\n\t\treturn mVisitaSeguimientoCasoCovid19s;\n\t}",
"public java.util.List<Participation> getParticipations();",
"public List<Res_Agente_P> getAgentesParticipanCarreraP(int efiscal, int p){\r\n\t\treturn resAgenteDAO.getAgentesParticipanCarreraP(efiscal, p);\r\n\t}",
"public List<ni.org.ics.estudios.appmovil.domain.muestreoanual.EncuestaParticipante> getListaEncuestaParticipantesSinEnviar() throws SQLException {\n Cursor encparts = null;\n List<ni.org.ics.estudios.appmovil.domain.muestreoanual.EncuestaParticipante> mEncuestaParticipantes = new ArrayList<ni.org.ics.estudios.appmovil.domain.muestreoanual.EncuestaParticipante>();\n encparts = mDb.query(true, ConstantsDB.ENC_PART_TABLE, null,\n ConstantsDB.STATUS + \"= '\" + Constants.STATUS_NOT_SUBMITTED+ \"'\", null, null, null, null, null);\n if (encparts != null && encparts.getCount() > 0) {\n encparts.moveToFirst();\n mEncuestaParticipantes.clear();\n do{\n mEncuestaParticipantes.add(crearEncuestaParticipante(encparts));\n } while (encparts.moveToNext());\n }\n encparts.close();\n return mEncuestaParticipantes;\n }",
"private List<Compra> getCompras(){\n List<Compra> compras = new ArrayList<>();\n for (Conta conta: this.getContas())\n compras.addAll( conta.getCompras() );\n return compras;\n }",
"@Override\r\n\tpublic List<Concurso> listarConcursosParticipanteInscripto(int id_participante) {\r\n\t\tConexionDB conexion_db = new ConexionDB();\r\n\t\tList<Concurso> lista = new ArrayList<Concurso>();\r\n\t\ttry (Connection connect = conexion_db.obtenerConexionBD();\r\n\t\t\t\tPreparedStatement statement = connect\r\n\t\t\t\t\t\t.prepareStatement(this.listaConcursoInscripcionAbiertaInscriptoParticipante)) {\r\n\t\t\tstatement.setInt(1, id_participante);\r\n\t\t\ttry (ResultSet rs = statement.executeQuery()) {\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tlista.add(new Concurso(rs.getInt(\"id\"), rs.getString(\"nombre\")));\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn lista;\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tthrow new RuntimeException(\"Error al cargar la lista de concursos que se inscribio\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new RuntimeException(\"Error al cargar la lista de concursos que se inscribio\");\r\n\t\t}\r\n\t}",
"public List<CasoCovid19> getCasosCovid19(String filtro, String orden) throws SQLException {\n\t\tList<CasoCovid19> mCasoCovid19s = new ArrayList<CasoCovid19>();\n\t\tCursor cursor = crearCursor(Covid19DBConstants.COVID_CASOS_TABLE, filtro, null, orden);\n\t\tif (cursor != null && cursor.getCount() > 0) {\n\t\t\tcursor.moveToFirst();\n\t\t\tmCasoCovid19s.clear();\n\t\t\tdo{\n\t\t\t\tCasoCovid19 mCasoCovid19 = null;\n\t\t\t\tmCasoCovid19 = CasoCovid19Helper.crearCasoCovid19(cursor);\n\t\t\t\tCasaCohorteFamilia cchf = this.getCasaCohorteFamilia(MainDBConstants.codigoCHF + \"='\" + cursor.getString(cursor.getColumnIndex(MainDBConstants.casa)) +\"'\", null);\n\t\t\t\tmCasoCovid19.setCasa(cchf);\n\t\t\t\tmCasoCovid19s.add(mCasoCovid19);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\t\tif (!cursor.isClosed()) cursor.close();\n\t\treturn mCasoCovid19s;\n\t}",
"public List<Person> getWitnessesToCC();",
"List<CourseParticipant> getCourseParticListByRepresentativeUuid(UUID representativeUserUuid);",
"public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method to get the game model | public GameModel getGameModel() {
return gameModel;
} | [
"public GameModelCreation getGameModel() {\n\t\treturn gameModel;\n\t}",
"public GameModel getGame() {\n return game;\n }",
"public GameInfo getGameModel(String version) throws Exception;",
"public static GameModel instance(){\n return CURR_GAME;\n }",
"protected Game getGame() {\n return game;\n }",
"public GameState getGameStateModel() {\n return this.gameStateModel;\n }",
"public static Game getGame() {\n return game;\n }",
"public GameLogic getGame(){\n\t\treturn game;\n\t}",
"public Long getGameModelId() {\n return gameModelId;\n }",
"public PlayerModel getModel() {\r\n return new PlayerModel(id, position, lifeTokens, damageTokens, flagsTaken, direction, getCurrentCard());\r\n }",
"public static Game getGame() {\n\t\treturn game;\n\t}",
"@Override\n\tpublic NetGameModel getGameModel() throws ServerProxyException\n\t{\n if(!userLoggedIn || !userJoinedGame)\n {\n throw new ServerProxyException(\"GetGameModel invalid when user not logged in\");\n }\n \n\t\treturn currentStateOfGame;\n\t}",
"@Override public ZAGame getGame() {\n return game;\n }",
"game.mode.GameBase.GameType getGameType();",
"public Game getGame()\n\t{\n\t\treturn board.getGame();\n\t}",
"public GameSystem getGameSystem(){\n return this.gameSystem;\n }",
"Game getCurrentGame();",
"public String getGameModelKey() {\n return gameModelKey;\n }",
"public game_service getGame() {\n\t\treturn game;\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 POSSalesDetail.POSSalesDetailID | public void setPossalesdetailid(Integer possalesdetailid) {
this.possalesdetailid = possalesdetailid;
} | [
"public Integer getPossalesdetailid() {\r\n return possalesdetailid;\r\n }",
"public void setSalesRep_ID (int SalesRep_ID);",
"public void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);",
"public void setDetailId(Number value) {\n setAttributeInternal(DETAILID, value);\n }",
"public void setIdSeqConvenio(Integer idSeqConvenio) {\n this.idSeqConvenio = idSeqConvenio;\n }",
"public void setGrantDisburseDetailId(Number value) {\r\n setAttributeInternal(GRANTDISBURSEDETAILID, value);\r\n }",
"public void setSaleid(Long saleid) {\r\n this.saleid = saleid;\r\n }",
"public void setIdProductoSucursal(long idProductoSucursal) {\r\n\t\tthis.idProductoSucursal = idProductoSucursal;\r\n\t}",
"public void setResouceId(Integer resouceId) {\n this.resouceId = resouceId;\n }",
"public void setComuneResidenzaCod(int value) {\r\n this.comuneResidenzaCod = value;\r\n }",
"public void setCreditiResidui(int value) {\n this.creditiResidui = value;\n }",
"public void setDetailId(Long detailId) {\n\t\tthis.detailId = detailId;\n\t}",
"public void setSalleID(int newSalleID) {\r\n\t\tthis.SalleID = newSalleID;\r\n\t}",
"public void setEMPRESA_ID(Long EMPRESA_ID) {\n this.EMPRESA_ID = EMPRESA_ID;\n }",
"public Long getSaleid() {\r\n return saleid;\r\n }",
"public void setTblLibrDetail1(TblLibrDetailImpl value) {\r\n setAttributeInternal(TBLLIBRDETAIL1, value);\r\n }",
"public void setFranchisedetailsid(Integer franchisedetailsid) {\n this.franchisedetailsid = franchisedetailsid;\n }",
"public void setId_sedesiap(long id_sedesiap);",
"public void setResId(Long resId)\n\t{\n\t\tthis.resId = resId;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the PWM rate (duty cycle) of the output. | @Override
public double getPWMRate() {
return this.mRate;
} | [
"double getPWMRate();",
"void setPWMRate(double rate);",
"public double getWheelSpeed()\n {\n try\n {\n return wheels1.getSpeed();\n }\n catch(CANTimeoutException e)\n {\n return 0;\n }\n }",
"public double getSpeed() {\r\n return encoder.getRate();\r\n }",
"public double getWheelPerformanceMultiplier() {\n if (onOil == 0) {\n return wheelPerformanceMultiplier;\n } else {\n return wheelPerformanceMultiplier / 10;\n }\n }",
"@Override\n\tpublic int getMotorSpeed() {\n\t\tupdateIR();\n\t\treturn direction*360;\n\t}",
"int getBlinkRate();",
"int getRfPerTick();",
"int getMotionSpeedPercent();",
"public double getWheelSidePerformanceMultiplier() {\n if (onOil == 0) {\n return wheelSidePerformanceMultiplier;\n } else {\n return wheelSidePerformanceMultiplier / 100;\n }\n }",
"public byte getRate() {\n\n buffer[0] = (byte) I2Cdev.readByte(MPU6050_Registers.MPU6050_RA_SMPLRT_DIV);\n\n return buffer[0];\n }",
"public int getClockRate() {\n return clockRate;\n }",
"public Double bitsPerSecond()\n\t{\n\t\treturn getValue(DataRateUnit.BITS_PER_SEC);\n\t}",
"public float getPeriodicRateChange() {\n return periodicRateChange;\n }",
"PCMRandomVariable getWriteProcessingRate();",
"public Double radiansPerSecond()\n\t{\n\t\treturn getValue(AngularVelocityUnit.RADIANS_PER_SEC);\n\t}",
"double getBaseRate();",
"public double getClimbMotorPercentPower() {\n\t\treturn climbMotor2.getMotorOutputPercent();\n\t}",
"int getMPPerSecond();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Number of VM endpoints (i.e., Nics) that can use NAT. optional int32 num_vm_endpoints_with_nat_mappings = 512367468; | public Builder clearNumVmEndpointsWithNatMappings() {
bitField0_ = (bitField0_ & ~0x00000020);
numVmEndpointsWithNatMappings_ = 0;
onChanged();
return this;
} | [
"@java.lang.Override\n public int getNumVmEndpointsWithNatMappings() {\n return numVmEndpointsWithNatMappings_;\n }",
"@java.lang.Override\n public int getNumVmEndpointsWithNatMappings() {\n return numVmEndpointsWithNatMappings_;\n }",
"public Builder setNumVmEndpointsWithNatMappings(int value) {\n\n numVmEndpointsWithNatMappings_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }",
"@java.lang.Override\n public boolean hasNumVmEndpointsWithNatMappings() {\n return ((bitField0_ & 0x00000004) != 0);\n }",
"@java.lang.Override\n public boolean hasNumVmEndpointsWithNatMappings() {\n return ((bitField0_ & 0x00000020) != 0);\n }",
"Integer getPortMappingCount() throws NotDiscoverUpnpGatewayException, UpnpException;",
"public int getUserAllocatedNatIpResourcesCount() {\n return userAllocatedNatIpResources_.size();\n }",
"public int getUserAllocatedNatIpResourcesCount() {\n return userAllocatedNatIpResources_.size();\n }",
"public int getNumOutlets() {\n \t\treturn mOutlets.length;//infor outlet is serviced in maxjava.c\n }",
"public static int numberOfFreeIPs() {\n //go through all nodetypes in the database and find the difference \n //between the total amount of ips(from nodetype counter)\n //and the amount taken(occupied idlist)\n int freeIdCount = 0;\n\n freeIdCount += freeIdCounter(\"database server\");\n freeIdCount += freeIdCounter(\"domain controller\");\n freeIdCount += freeIdCounter(\"file server\");\n freeIdCount += freeIdCounter(\"router\");\n freeIdCount += freeIdCounter(\"web server\");\n //switches don't currently acquire ip addresses though there are 5\n // in the database\n freeIdCount += freeIdCounter(\"wap\");\n freeIdCount += freeIdCounter(\"laptop\");\n freeIdCount += freeIdCounter(\"mobile device\");\n freeIdCount += freeIdCounter(\"PC\");\n\n return freeIdCount;\n\n }",
"public void setNat(com.vmware.converter.HostNatServiceConfig[] nat) {\r\n this.nat = nat;\r\n }",
"public com.vmware.converter.HostNatServiceConfig[] getNat() {\r\n return nat;\r\n }",
"List<InboundNatRulePortMapping> inboundNatRulePortMappings();",
"int sizeOfServiceEndpointMethodMappingArray();",
"public int getAvailableIpAddressCount() {\n return availableIpAddressCount;\n }",
"public void setIPCount(int ipCount) {\n this.numberOfIPs = ipCount;\n }",
"public interface NatGateways {\n /**\n * NAT Gateway 인스턴스 리스트를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws RestException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n */\n void getList(String responseFormatType);\n\n /**\n * NAT Gateway 인스턴스 리스트를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<Void> getListAsync(String responseFormatType, final ServiceCallback<Void> serviceCallback);\n\n /**\n * NAT Gateway 인스턴스 리스트를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<Void> getListAsync(String responseFormatType);\n\n /**\n * NAT Gateway 인스턴스 리스트를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<ServiceResponse<Void>> getListWithServiceResponseAsync(String responseFormatType);\n /**\n * NAT Gateway 인스턴스 리스트를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param regionCode REGION 코드\n * @param natGatewayInstanceNoListN NAT Gateway 인스턴스 번호 리스트\n * @param publicIp 공인 IP 주소\n * @param vpcName VPC 이름\n * @param natGatewayName NAT Gateway 이름\n * @param natGatewayInstanceStatusCode NAT Gateway 인스턴스 상태 코드. Possible values include: 'INIT', 'RUN', 'TERMTING'\n * @param pageNo 페이지 번호\n * @param pageSize 페이지 사이즈\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws RestException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n */\n void getList(String responseFormatType, String regionCode, String natGatewayInstanceNoListN, String publicIp, String vpcName, String natGatewayName, NatGatewayInstanceStatusCode natGatewayInstanceStatusCode, String pageNo, String pageSize);\n\n /**\n * NAT Gateway 인스턴스 리스트를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param regionCode REGION 코드\n * @param natGatewayInstanceNoListN NAT Gateway 인스턴스 번호 리스트\n * @param publicIp 공인 IP 주소\n * @param vpcName VPC 이름\n * @param natGatewayName NAT Gateway 이름\n * @param natGatewayInstanceStatusCode NAT Gateway 인스턴스 상태 코드. Possible values include: 'INIT', 'RUN', 'TERMTING'\n * @param pageNo 페이지 번호\n * @param pageSize 페이지 사이즈\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<Void> getListAsync(String responseFormatType, String regionCode, String natGatewayInstanceNoListN, String publicIp, String vpcName, String natGatewayName, NatGatewayInstanceStatusCode natGatewayInstanceStatusCode, String pageNo, String pageSize, final ServiceCallback<Void> serviceCallback);\n\n /**\n * NAT Gateway 인스턴스 리스트를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param regionCode REGION 코드\n * @param natGatewayInstanceNoListN NAT Gateway 인스턴스 번호 리스트\n * @param publicIp 공인 IP 주소\n * @param vpcName VPC 이름\n * @param natGatewayName NAT Gateway 이름\n * @param natGatewayInstanceStatusCode NAT Gateway 인스턴스 상태 코드. Possible values include: 'INIT', 'RUN', 'TERMTING'\n * @param pageNo 페이지 번호\n * @param pageSize 페이지 사이즈\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<Void> getListAsync(String responseFormatType, String regionCode, String natGatewayInstanceNoListN, String publicIp, String vpcName, String natGatewayName, NatGatewayInstanceStatusCode natGatewayInstanceStatusCode, String pageNo, String pageSize);\n\n /**\n * NAT Gateway 인스턴스 리스트를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param regionCode REGION 코드\n * @param natGatewayInstanceNoListN NAT Gateway 인스턴스 번호 리스트\n * @param publicIp 공인 IP 주소\n * @param vpcName VPC 이름\n * @param natGatewayName NAT Gateway 이름\n * @param natGatewayInstanceStatusCode NAT Gateway 인스턴스 상태 코드. Possible values include: 'INIT', 'RUN', 'TERMTING'\n * @param pageNo 페이지 번호\n * @param pageSize 페이지 사이즈\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<ServiceResponse<Void>> getListWithServiceResponseAsync(String responseFormatType, String regionCode, String natGatewayInstanceNoListN, String publicIp, String vpcName, String natGatewayName, NatGatewayInstanceStatusCode natGatewayInstanceStatusCode, String pageNo, String pageSize);\n\n /**\n * NAT Gateway 인스턴스 상세 정보를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws RestException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n */\n void getDetail(String responseFormatType, String natGatewayInstanceNo);\n\n /**\n * NAT Gateway 인스턴스 상세 정보를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<Void> getDetailAsync(String responseFormatType, String natGatewayInstanceNo, final ServiceCallback<Void> serviceCallback);\n\n /**\n * NAT Gateway 인스턴스 상세 정보를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<Void> getDetailAsync(String responseFormatType, String natGatewayInstanceNo);\n\n /**\n * NAT Gateway 인스턴스 상세 정보를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<ServiceResponse<Void>> getDetailWithServiceResponseAsync(String responseFormatType, String natGatewayInstanceNo);\n /**\n * NAT Gateway 인스턴스 상세 정보를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @param regionCode REGION 코드\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws RestException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n */\n void getDetail(String responseFormatType, String natGatewayInstanceNo, String regionCode);\n\n /**\n * NAT Gateway 인스턴스 상세 정보를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @param regionCode REGION 코드\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<Void> getDetailAsync(String responseFormatType, String natGatewayInstanceNo, String regionCode, final ServiceCallback<Void> serviceCallback);\n\n /**\n * NAT Gateway 인스턴스 상세 정보를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @param regionCode REGION 코드\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<Void> getDetailAsync(String responseFormatType, String natGatewayInstanceNo, String regionCode);\n\n /**\n * NAT Gateway 인스턴스 상세 정보를 조회.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @param regionCode REGION 코드\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<ServiceResponse<Void>> getDetailWithServiceResponseAsync(String responseFormatType, String natGatewayInstanceNo, String regionCode);\n\n /**\n * NAT Gateway 인스턴스를 생성.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param vpcNo VPC 번호\n * @param zoneCode ZONE 코드\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws RestException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n */\n void create(String responseFormatType, String vpcNo, String zoneCode);\n\n /**\n * NAT Gateway 인스턴스를 생성.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param vpcNo VPC 번호\n * @param zoneCode ZONE 코드\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<Void> createAsync(String responseFormatType, String vpcNo, String zoneCode, final ServiceCallback<Void> serviceCallback);\n\n /**\n * NAT Gateway 인스턴스를 생성.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param vpcNo VPC 번호\n * @param zoneCode ZONE 코드\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<Void> createAsync(String responseFormatType, String vpcNo, String zoneCode);\n\n /**\n * NAT Gateway 인스턴스를 생성.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param vpcNo VPC 번호\n * @param zoneCode ZONE 코드\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<ServiceResponse<Void>> createWithServiceResponseAsync(String responseFormatType, String vpcNo, String zoneCode);\n /**\n * NAT Gateway 인스턴스를 생성.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param vpcNo VPC 번호\n * @param zoneCode ZONE 코드\n * @param regionCode REGION 코드\n * @param natGatewayName NAT Gateway 이름\n * @param natGatewayDescription NAT Gateway 설명\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws RestException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n */\n void create(String responseFormatType, String vpcNo, String zoneCode, String regionCode, String natGatewayName, String natGatewayDescription);\n\n /**\n * NAT Gateway 인스턴스를 생성.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param vpcNo VPC 번호\n * @param zoneCode ZONE 코드\n * @param regionCode REGION 코드\n * @param natGatewayName NAT Gateway 이름\n * @param natGatewayDescription NAT Gateway 설명\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<Void> createAsync(String responseFormatType, String vpcNo, String zoneCode, String regionCode, String natGatewayName, String natGatewayDescription, final ServiceCallback<Void> serviceCallback);\n\n /**\n * NAT Gateway 인스턴스를 생성.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param vpcNo VPC 번호\n * @param zoneCode ZONE 코드\n * @param regionCode REGION 코드\n * @param natGatewayName NAT Gateway 이름\n * @param natGatewayDescription NAT Gateway 설명\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<Void> createAsync(String responseFormatType, String vpcNo, String zoneCode, String regionCode, String natGatewayName, String natGatewayDescription);\n\n /**\n * NAT Gateway 인스턴스를 생성.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param vpcNo VPC 번호\n * @param zoneCode ZONE 코드\n * @param regionCode REGION 코드\n * @param natGatewayName NAT Gateway 이름\n * @param natGatewayDescription NAT Gateway 설명\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<ServiceResponse<Void>> createWithServiceResponseAsync(String responseFormatType, String vpcNo, String zoneCode, String regionCode, String natGatewayName, String natGatewayDescription);\n\n /**\n * NAT Gateway 인스턴스를 삭제.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws RestException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n */\n void delete(String responseFormatType, String natGatewayInstanceNo);\n\n /**\n * NAT Gateway 인스턴스를 삭제.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<Void> deleteAsync(String responseFormatType, String natGatewayInstanceNo, final ServiceCallback<Void> serviceCallback);\n\n /**\n * NAT Gateway 인스턴스를 삭제.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<Void> deleteAsync(String responseFormatType, String natGatewayInstanceNo);\n\n /**\n * NAT Gateway 인스턴스를 삭제.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String responseFormatType, String natGatewayInstanceNo);\n /**\n * NAT Gateway 인스턴스를 삭제.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @param regionCode REGION 코드\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws RestException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n */\n void delete(String responseFormatType, String natGatewayInstanceNo, String regionCode);\n\n /**\n * NAT Gateway 인스턴스를 삭제.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @param regionCode REGION 코드\n * @param serviceCallback the async ServiceCallback to handle successful and failed responses.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceFuture} object\n */\n ServiceFuture<Void> deleteAsync(String responseFormatType, String natGatewayInstanceNo, String regionCode, final ServiceCallback<Void> serviceCallback);\n\n /**\n * NAT Gateway 인스턴스를 삭제.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @param regionCode REGION 코드\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<Void> deleteAsync(String responseFormatType, String natGatewayInstanceNo, String regionCode);\n\n /**\n * NAT Gateway 인스턴스를 삭제.\n *\n * @param responseFormatType 반환 데이터 포맷 타입\n * @param natGatewayInstanceNo NAT Gateway 인스턴스 번호\n * @param regionCode REGION 코드\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the {@link ServiceResponse} object if successful.\n */\n Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String responseFormatType, String natGatewayInstanceNo, String regionCode);\n\n}",
"private void connectVirtualSites() { \n int i = 1;\n while (i < gridEdgeLength+1) {\n uf.union(0 , i);\n i++;\n }\n i = gridSize;\n while (i > gridSize-gridEdgeLength) {\n uf.union(gridSize+1 , i);\n i--;\n }\n }",
"public static int size_link_route_addr() {\n return (16 / 8);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'field235' field | public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField235(java.lang.CharSequence value) {
validate(fields()[235], value);
this.field235 = value;
fieldSetFlags()[235] = true;
return this;
} | [
"public void setField235(java.lang.CharSequence value) {\n this.field235 = value;\n }",
"public void setField234(java.lang.CharSequence value) {\n this.field234 = value;\n }",
"public void setField345(java.lang.CharSequence value) {\n this.field345 = value;\n }",
"public void setField123(java.lang.CharSequence value) {\n this.field123 = value;\n }",
"public void setField232(java.lang.CharSequence value) {\n this.field232 = value;\n }",
"public void setField563(java.lang.CharSequence value) {\n this.field563 = value;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField232(java.lang.CharSequence value) {\n validate(fields()[232], value);\n this.field232 = value;\n fieldSetFlags()[232] = true;\n return this; \n }",
"public void setField230(java.lang.CharSequence value) {\n this.field230 = value;\n }",
"public void setField236(java.lang.CharSequence value) {\n this.field236 = value;\n }",
"public void setField321(java.lang.CharSequence value) {\n this.field321 = value;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField230(java.lang.CharSequence value) {\n validate(fields()[230], value);\n this.field230 = value;\n fieldSetFlags()[230] = true;\n return this; \n }",
"public void setField233(java.lang.CharSequence value) {\n this.field233 = value;\n }",
"public void setField231(java.lang.CharSequence value) {\n this.field231 = value;\n }",
"public void setField567(java.lang.CharSequence value) {\n this.field567 = value;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField234(java.lang.CharSequence value) {\n validate(fields()[234], value);\n this.field234 = value;\n fieldSetFlags()[234] = true;\n return this; \n }",
"public void setField354(java.lang.CharSequence value) {\n this.field354 = value;\n }",
"public void setField324(java.lang.CharSequence value) {\n this.field324 = value;\n }",
"public void setField789(java.lang.CharSequence value) {\n this.field789 = value;\n }",
"public void setField336(java.lang.CharSequence value) {\n this.field336 = value;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column sign_detail.discount | public String getDiscount() {
return discount;
} | [
"java.lang.String getDiscount();",
"public Double getDiscount() {\n return Double.valueOf(discount);\n }",
"public Integer getDiscountId() {\n return discountId;\n }",
"public Integer getDiscountid() {\n return discountid;\n }",
"public String getDiscountGoodsDetail( ) {\n\t\treturn this.discountGoodsDetail;\n\t}",
"@Override\r\n public String getDiscountDesc() {\r\n return discountDesc;\r\n }",
"public String getDiscountDesc() {\n return discountDesc;\n }",
"public Long getDiscountPrice() {\n return discountPrice;\n }",
"java.lang.String getSumDiscount();",
"@Nullable\n public String getDiscountCode() {\n return this.discountCode;\n }",
"java.lang.String getDiscountReason();",
"public void setDiscount(Integer discount) {\n this.discount = discount;\n }",
"@Override\n\tpublic int getDiscount() {\n\t\treturn _bookOrder.getDiscount();\n\t}",
"Money getDiscountValue();",
"public Integer getDiscountType() {\n return discountType;\n }",
"@Override\n\tpublic float getDiscount() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\treturn RegularCustomer.discount;\n\t}",
"public MMDecimal getDiscountAmount() {\r\n return this.discountAmount;\r\n }",
"public int getDiscountLevel() {\n return discountLevel;\n }",
"public BigDecimal getDiscountamount() {\n return discountamount;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the locations property: List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location. | public List<String> locations() {
return this.locations;
} | [
"public List<String> getLocations()\n {\n return m_locations;\n }",
"public String getLocationIds() {\n return locationIds;\n }",
"public location[] getMyLocations(){\n\t\treturn myLocations;\n\t}",
"public java.util.List<EncounterLocation> location() {\n return getList(EncounterLocation.class, FhirPropertyNames.PROPERTY_LOCATION);\n }",
"public ArrayList getLocations()\r\n\t\t{\r\n\t\t\treturn locations;\r\n\t\t}",
"public Location[] getLocation() {\r\n return locations;\r\n }",
"public List<Location> getLocations() {\n return locations;\n }",
"public String getLocators() {\n return agentConfig.getLocators();\n }",
"public String[] getLoc()\n {\n return location;\n }",
"public List<String> supportedLocations() {\n return this.supportedLocations;\n }",
"@java.lang.Override\n public java.util.List<com.google.devtools.build.lib.view.proto.Deps.SourceLocation> getLocationList() {\n return location_;\n }",
"public com.google.protobuf.ProtocolStringList getStorageLocationsList() {\n return storageLocations_;\n }",
"public com.google.protobuf.ProtocolStringList getRestrictedLocationsList() {\n return restrictedLocations_;\n }",
"public List<Location> getCompletedLocations();",
"com.google.cloud.accessapproval.v1.AccessLocations getRequestedLocations();",
"java.util.List<com.google.devtools.build.lib.view.proto.Deps.SourceLocation> \n getLocationList();",
"@NonNull\n @Override\n public List<MPLocation> getLocations() {\n return locationsList;\n }",
"@JsonIgnore\r\n public String getLocationIds() {\r\n return OptionalNullable.getFrom(locationIds);\r\n }",
"public static LocationId getLocationIds()\n {\n LocationId locnIds = new LocationId();\n IoTGateway.getGlobalStates().forEach(\n (locn,sv)->{\n locnIds.addId(locn);\n }\n );\n return locnIds;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the priority of controller threads. | public int getControllerThreadPriority() {
return controllerThreadPriority;
} | [
"int getThreadPriorityBoost();",
"public int getRequestorPriority() {\n return _record.getIntField(LockInfoAttribute.REQUESTOR_PRIORITY.name(),\n LockConstants.DEFAULT_PRIORITY_INT);\n }",
"public static native synchronized int getThreadPriority(long pthreadId);",
"public int getPriority() {\r\n return (isNMI?-0x10000:0) + (icr << 8) + interruptNumber;\r\n }",
"public int getPriority();",
"public int getEffectivePriority() {\n Lib.assertTrue(Machine.interrupt().disabled());\n\n\n return getWinningPriority();\n }",
"public final int getClientThreadPriority() {\n return client_priority;\n }",
"public Long getTasksPriority() {\n return this.TasksPriority;\n }",
"public Integer getPriority() {\n return _record\n .getIntField(LockInfoAttribute.PRIORITY.name(), LockConstants.DEFAULT_PRIORITY_INT);\n }",
"@DISPID(1610874911) //= 0x6004001f. The runtime will prefer the VTID if present\r\n @VTID(61)\r\n int getPriority();",
"public int getPriority() {\n\t\treturn systemPriority;\n\t}",
"public int priority() {\n\t\treturn 1;\n\t}",
"public int getPriorityNumber();",
"public byte getPriority()\n\t{\n\t\treturn priority;\n\t}",
"public int minPriority();",
"com.google.protobuf.Int32Value getPriority();",
"public String getPriority() {\n\t\treturn ticketPriority;\n\t}",
"public Priority getPriority() {\n return this.priorityTask;\n }",
"public int getEffectivePriority() {\r\n\t\trefresh();\r\n\t return priorityCache;\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the player vision | public int[][] getPlayerVision(){
return this.playerVision;
} | [
"public Vision getVision() {\n return m_vision;\n }",
"public PlayerView getPlayerView() {\n return playerView;\n }",
"public Visibility<P> getCurrentVisibility()\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().getVisibility();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}",
"public GameLayerVisibility getVisibility() {\n return gameLayerVisibility;\n }",
"public SpriteV2 getPlayer() {\r\n return player;\r\n }",
"com.huya.ig.jump.protocol.Player getPlayer();",
"public PlayerView getCaptain() {\n\t\treturn captain;\n\t}",
"protected Visualizer getVis() {\n\t\treturn myVis;\n\t}",
"public boolean getVictory()\n\t{\n\t\treturn blnPlayerVictory;\n\t\t\n\t}",
"public DevelCardsOfPlayerVisualizer getDevelCardsOfPlayerVisualizer() {\n return develCardsOfPlayerVisualizer;\n }",
"public int getVisionRadius() {\n return visionRadius;\n }",
"public int getPlayerLayer( ) {\n\n return playerLayer;\n }",
"Object getVideoControl(Object player) {\n return impl.getVideoControl(player);\n }",
"public String getVideourl() {\n return videourl;\n }",
"public Player getPlayer() { return player; }",
"public Researcher getPlayer() {\n\t\treturn this.player;\n\t}",
"public Player getPlayer() {\n return humanPlayer;\n }",
"public int vid() {\n return this.vid;\n }",
"Player getCurrentPlayer();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this method will load all the specials; | private void initAllSpecials(){
// NOW LOAD ALL THE TILES FROM A SPRITE SHEET
PropertiesManager props = PropertiesManager.getPropertiesManager();
SpriteType sT;
String tilesSpriteSheetFile = props.getProperty(PathXPropertyType.IMAGE_SPECIAL_SHEET);
String imgPath = props.getProperty(PathXPropertyType.PATH_IMG);
ArrayList<BufferedImage> tileImages = loadSpriteSheetImagesWithColorKey(imgPath + tilesSpriteSheetFile,
16, 4, 4, 0, 0, COLOR_KEY);
// System.out.println(tileImages.get(0).getHeight()+" "
// +tileImages.get(0).getWidth());
for (int i = 0; i < tileImages.size(); i++){
BufferedImage img = tileImages.get(i);
int col = i%4;
int row = i/4;
// WE'LL MAKE A NEW SPRITE TYPE FOR EACH GROUP OF SIMILAR LOOKING TILES
sT = new SpriteType(SPECIAL_TYPE + i );
// LET'S GENERATE AN IMAGE FOR EACH STATE FOR EACH SPRITE
sT.addState(PathXTileState.VISIBLE_STATE.toString(), img);
sT.addState(PathXTileState.MOUSE_OVER_STATE.toString(),img);
sT.addState(PathXTileState.INVISIBLE_STATE.toString(), img);
//now new A sprite
Sprite s = new Sprite(sT,14+31*col,211+row*36,0,0,PathXTileState.INVISIBLE_STATE.toString());
s.setEnabled(false);
guiButtons.put(SPECIAL_TYPE + i ,s);
}
} | [
"private void loadStaticData(){\n this.specialisaties = this.dbFacade.getAllSpecialisaties();\n this.jComboBoxSpecialisatie.setModel(new DefaultComboBoxModel(this.specialisaties.toArray()));\n this.SpecialisatieSitueert = this.dbFacade.getAllSitueert();\n this.jComboBoxSitueert.setModel(new DefaultComboBoxModel(this.SpecialisatieSitueert.toArray()));\n }",
"private void loadVets() {\n // establish the Map of all vets\n List vets = doFindVets();\n vetsMap = mapEntityList(vets);\n\n // establish the map of all the possible specialties\n specialtiesMap = mapEntityList(doFindSpecialties());\n\n // establish each vet's List of specialties\n Iterator vi = vets.iterator();\n while (vi.hasNext()) {\n Vet vet = (Vet) vi.next();\n List vetSpecialtiesIds = doFindVetSpecialties(vet);\n List vetSpecialties = new ArrayList();\n Iterator vsi = vetSpecialtiesIds.iterator();\n while (vsi.hasNext()) {\n Integer specialtyId = (Integer) vsi.next();\n NamedEntity specialty =\n (NamedEntity) specialtiesMap.get(specialtyId);\n vetSpecialties.add(specialty.getName());\n }\n if (vetSpecialties.size() == 0)\n vetSpecialties.add(\"none\");\n vet.setSpecialties(vetSpecialties);\n }\n\n }",
"public void loadRecipes(){}",
"protected void loadbang()\n{\n\n}",
"private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }",
"@PostConstruct\n\tprotected void init() {\n\t\tLOGGER.info(\"GalleryModel init Start\");\n\t\tcharacterList.clear();\n\t\ttry {\n\t\t\tif (resource != null && !resource.getPath().contains(\"conf\")) {\n\t\t\t\t\tresolver = resource.getResourceResolver();\n\t\t\t\t\thomePagePath=TrainingHelper.getHomePagePath(resource);\n\t\t\t\t\tif(homePagePath!=null){\n\t\t\t\t\tlandinggridPath = homePagePath;\n\t\t\t\t\tif (!linkNavigationCheck) {\n\t\t\t\t\t\tlinkNavOption = \"\";\n\t\t\t\t\t}\n\t\t\t\t\tcheckLandingGridPath();\n\t\t\t\t\tif (!\"products\".equals(galleryFor)) {\n\t\t\t\t\t\tcharacterList = tileGalleryAndLandingService.getAllTiles(landinggridPath, galleryFor, \"landing\",\n\t\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"Exception Occured\", e);\n\t\t}\n\t\tLOGGER.info(\"GalleryModel init End\");\n\t}",
"protected void loadAll() {\n\t\ttry {\n\t\t\tloadGroups(this.folder, this.cls, this.cachedOnes);\n\t\t\t/*\n\t\t\t * we have to initialize the components\n\t\t\t */\n\t\t\tfor (Object obj : this.cachedOnes.values()) {\n\t\t\t\t((Component) obj).getReady();\n\t\t\t}\n\t\t\tTracer.trace(this.cachedOnes.size() + \" \" + this + \" loaded.\");\n\t\t} catch (Exception e) {\n\t\t\tthis.cachedOnes.clear();\n\t\t\tTracer.trace(\n\t\t\t\t\te,\n\t\t\t\t\tthis\n\t\t\t\t\t\t\t+ \" pre-loading failed. No component of this type is available till we successfully pre-load them again.\");\n\t\t}\n\t}",
"public void preload() {\n // Retrieve the map of category ids to category objects\n Map<String,Category> categoriesMap = getCategoriesMap();\n // Retrieve the map of template ids to template objects\n Map<String,Template> templatesMap = getTemplatesMap();\n\n // For each of the categorizations\n for (Categorization categorization : getCategorizations()) {\n // Retrieve the associated category from the map\n Category category = categoriesMap.get(categorization.getCategoryId());\n // Retrieve the associated template from the map\n Template template = templatesMap.get(categorization.getTemplateId());\n // If the category and template both exist, associate the two objects\n if (category != null && template != null) {\n category.addTemplate(template);\n template.addCategory(category);\n }\n }\n\n // Retrieve all attributes for templates that belong to this catalog\n List<TemplateAttribute> templateAttributes = TemplateAttribute.findByCatalogId(context, getId());\n // For each of the template attribute lists\n for (TemplateAttribute attribute : templateAttributes) {\n // Set the template attributes for the template if it exists\n Template template = templatesMap.get(attribute.getTemplateId());\n if (template != null) {\n template.addAttribute(attribute);\n }\n }\n }",
"public Specials[] getAllSpecials() {\n Specials[] listOfSpecials = {medSpecial, stemSpecial, humSpecial};\n return listOfSpecials;\n }",
"public void loadOreCollection() {\r\n\r\n oreCollection.clear();\r\n Map<String, Object> oreList = getYamlMap(\"ore-spawn\");\r\n\r\n for (Map.Entry<String, Object> entry : oreList.entrySet()) {\r\n String oreType = entry.getKey();\r\n Double orePercentage = Double.parseDouble(entry.getValue().toString()); // Very dodgy indeed\r\n oreCollection.add(orePercentage, oreType);\r\n }\r\n\r\n }",
"public void loadAllTextures() {\n loadEntityTextures();\n loadDynamicEntityTextures();\n loadTileTextures();\n loadLiveTileTextures();\n }",
"protected abstract void loadItemsInternal();",
"protected void loadChildren() {\n\t\t// I don't use this...subclasses might\n\t}",
"private void loadQuests()\n {\n //It will load up the NPC quests normally if the file doesn't exist. This is for unsaved startups.\n if (!questConfiguration.getFile().exists()) return;\n\n List<BasicQuest> allowedQuests = new ArrayList<BasicQuest>();\n for (BasicQuest quest : this.entityNPC.getCurrentQuests())\n {\n if (questConfiguration.doesLineExists(quest.getQuestName()))\n {\n allowedQuests.add(quest);\n }\n }\n this.entityNPC.setCurrentQuests(allowedQuests);\n\n }",
"private void loadItemsMaps()\n {\n _icons=new HashMap<String,List<Item>>(); \n _names=new HashMap<String,List<Item>>(); \n List<Item> items=ItemsManager.getInstance().getAllItems();\n for(Item item : items)\n {\n String icon=item.getIcon();\n if (icon!=null)\n {\n registerMapping(_icons,icon,item);\n String mainIconId=icon.substring(0,icon.indexOf('-'));\n registerMapping(_icons,mainIconId,item);\n String name=item.getName();\n registerMapping(_names,name,item);\n }\n }\n }",
"@Override\n\tprotected void loadData() {\n\t\tupgradeTypes = upgradeTypeBo.findAll();\n\t}",
"public void prepareTileLoading() {\n for (TileAsset resource : TileAsset.values()) {\n assetManager.load(resource.getPath(), Texture.class);\n }\n }",
"abstract void loadObjects();",
"public static void loadTiles() {\n\t\tTILE_SETS.put(\"grass\", TileSet.loadTileSet(\"plains\"));\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Operations // makes the picture that was built by writePixel the file is store in project path | public void writeToimage(){
File ouFile = new File(PROJECT_PATH + "/" + _imageName + ".jpg");
try
{
ImageIO.write(_image, "jpg", ouFile);
}
catch (IOException e)
{
e.printStackTrace();
}
} | [
"@Test\n void writeToImage() {\n String imagename = \"img\";\n int width = 1600;\n int height = 1000;\n int nx =500;\n int ny =800;\n ImageWriter imageWriter = new ImageWriter(imagename, width, height, nx, ny);\n for (int col = 0; col < ny; col++) {\n for (int row = 0; row < nx; row++) {\n if (col % 10 == 0 || row % 10 == 0) {\n imageWriter.writePixel(row, col, Color.blue);\n }\n }\n }\n imageWriter.writeToImage();\n }",
"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 writePicture(Picture p){\n //Generate Pixel 2D array\n Pixel[][] copiedP = new Pixel[p.height()][p.width()];\n for(int j = 0; j < copiedP.length; j++){\n for(int i = 0; i < copiedP[j].length; i++){\n copiedP[j][i] = new Pixel(i, j, p);\n }\n }\n //Modify the Pixels\n for(int j = 0; j < generatorGrid.length; j++){\n for(int i = 0; i < generatorGrid[j].length; i++){\n try{\n copiedP[startY+j][startX+i]=\n generatorGrid[j][i].predictPixel(copiedP[startY+j][startX+i-1], \n copiedP[startY+j-1][startX+i-1],copiedP[startY+j-1][startX+i]); \n }catch(ArrayIndexOutOfBoundsException e){\n System.out.println(\"i: \"+i+\"; j: \"+j);\n System.out.println(\"startX: \"+startX+\"; startY: \"+startY);\n }\n }\n }\n //Displayed the predicted pixels on the picture\n for(int j = 0; j < copiedP.length; j++){\n for(int i = 0; i < copiedP[j].length; i++){\n copiedP[j][i].show(p);\n }\n }\n }",
"public void saveImage () {\n ContextWrapper cw = new ContextWrapper(getApplicationContext());\n File directory = cw.getDir(\"draw\"+(folder), Context.MODE_PRIVATE);\n try {\n File file = new File(directory.getAbsolutePath(), protocol + cornice + \".png\");\n OutputStream fOut = new FileOutputStream(file);\n Bitmap pictureBitmap = drawView.getDrawingCache();\n pictureBitmap.compress(Bitmap.CompressFormat.PNG, 100, fOut);\n fOut.flush();\n fOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void writeToImage() \r\n\t{\r\n\r\n\t\t_imageWriter.writeToImage();\r\n\r\n\t}",
"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}",
"private void writeImage(String output) throws IOException {\n System.out.println(\"Image counter: \" + idx);\n Integer x = 0;\n for(int i = 0; i < imgDebug.size(); i++, x++){\n File file = new File(output + x.toString() + \".jpg\");\n ImageIO.write(imgDebug.get(i), \"jpg\", file);\n }\n// ImageIO.write(binarized, \"jpg\", file);\n }",
"public void writeToImage() {\n imageWriter.writeToImage();\n }",
"public void writeToImage() {\n _imageWriter.writeToImage();\n }",
"FileImage createFileImage();",
"public void testWrite() throws IOException\n {\n Pic pic;\n ByteArrayOutputStream stream;\n\n pic = new Pic(ImageIO.read(new File(\"src/test/resources/pic/test.png\")));\n stream = new ByteArrayOutputStream();\n pic.write(stream);\n\n assertEquals(new File(\"src/test/resources/pic/test.pic\"), stream\n .toByteArray());\n }",
"public static void saveImage(int[][][] imagePixels, String saveName){\n int height = imagePixels.length;\n int width = imagePixels[0].length;\n int[][] flat = new int[width*height][4];\n \n // Ask the user for the name of the output file.\n// try{\n// saveName = imageMain.console.readLine();\n// }\n// catch(IOException e){ \n// System.out.println(e);\n// System.exit(1);\n// }\n\n // If saveName does not already end in .bmp, then add .bmp to saveName.\n saveName=bmpTack(saveName);\n\n // Flatten the image into a 2D array.\n int index=0;\n for(int row=0; row<height; row++) {\n for(int col=0; col<width; col++) {\n for(int rgbo=0; rgbo<4; rgbo++) {\n flat[index][rgbo]=imagePixels[row][col][rgbo];\n }\n index++;\n } // for col\n } // for row\n\n // Combine the 8-bit red, green, blue, offset values into 32-bit words.\n int[] outPixels = new int[flat.length];\n for(int j=0; j<flat.length; j++) {\n outPixels[j] = ((flat[j][0]&0xff)<<16) | ((flat[j][1]&0xff)<<8)\n | (flat[j][2]&0xff) | ((flat[j][3]&0xff)<<24);\n } // for j\n\n // Write the data out to file with the name given by string saveName.\n BMPFile bmpf = new BMPFile();\n bmpf.saveBitmap(saveName, outPixels, width, height);\n System.out.println(\"Saved \" + saveName);\n }",
"private void writeFileShapeFile() {\n LGCommand lgCommand = new LGCommand(ActionBuildCommandUtility.buildWriteShapeFile(),\n LGCommand.CRITICAL_MESSAGE, (String result) -> {\n });\n LGConnectionManager lgConnectionManager = LGConnectionManager.getInstance();\n lgConnectionManager.startConnection();\n lgConnectionManager.addCommandToLG(lgCommand);\n }",
"@Override\n public void execute() {\n FileChooser fileChooser = new FileChooser();\n File outFile = fileChooser.showSaveDialog(null);\n if (outFile != null) {\n String outPath = outFile.getAbsolutePath();\n String out = outPath + \".\" + format;\n /* \"bmp\" can't be converted from some of other formats, so convert the image to \"jpg\" first\n * to ensure successful conversion to \"bmp\" format.\n */\n if (format.equalsIgnoreCase(\"bmp\")) {\n image = new javaxt.io.Image(image.getByteArray(\"jpg\"));\n }\n image.saveAs(out);\n }\n }",
"public void writePPMRGB(Picture picture, String filename) {\n\n\n filename += \".ppm\";\n //int sizeX = picture.getAllPixelsInPictureArray()[0].length;\n //int sizeY = picture.getAllPixelsInPictureArray().length;\n int sizeX = picture.getChannel1().getNumCol();\n int sizeY = picture.getChannel1().getNumRow();\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(filename));\n\n bw.write(\"P3\");\n bw.newLine();\n bw.write(\"# \" + filename);\n bw.newLine();\n bw.write(sizeX + \" \" + sizeY);\n bw.newLine();\n bw.write(\"255\");\n bw.newLine();\n for (int i = 0; i < sizeY; i++) {\n for (int j = 0; j < sizeX; j++) {\n //bw.write(\" \" + (int) picture.getAllPixelsInPictureArray()[i][j].getItem1() + \" \");\n //bw.write(\" \" + (int) picture.getAllPixelsInPictureArray()[i][j].getItem2() + \" \");\n //bw.write(\" \" + (int) picture.getAllPixelsInPictureArray()[i][j].getItem3() + \" \");\n bw.write(\" \" + (int) picture.getChannel1().getElement(i, j) + \" \");\n bw.write(\" \" + (int) picture.getChannel2().getElement(i, j) + \" \");\n bw.write(\" \" + (int) picture.getChannel3().getElement(i, j) + \" \");\n bw.write(\" \");\n }\n bw.newLine();\n }\n\n bw.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public void Func_imagefile(){\n\n\t\tswf_env.containImg = true;\n\n\n\t\tthis.value = new SWFValue(\"Func\");\n\n\t\tString path = this.getAtt(\"path\", \".\");\n\t\tString filename = this.getAtt(\"default\");\n\t\tString type = \"auto\";\n\t\tvalue.instanceName = \"img\"+ Integer.toString(swf_env.instanceID);\n\t\tvalue.data = \"\";\n\t\tvalue.imgpath = path + \"/\" + filename;\n\t\tvalue.inter_imgpath = path + \"/\" + filename;\n\t\tvalue.inter_name = \"intimg\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.tmp = \"tmp\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.lnum = Integer.toString(swf_env.visibleflag_counter);\n\n\n\t\tif(!path.startsWith(\"/\")) {\n\t\t\tString basedir = GlobalEnv.getBaseDir();\n\t\t\tLog.out(\"basedir= \" +basedir);\n\t\t\tif(basedir != null && basedir != \"\") {\n\t\t\t\tpath = basedir + path;\n\t\t\t}\n\t\t}\n\n\t\tString filepath = path + \"/\" + filename;\n\n\n\t\tsetDecoration1();\n\t\tvalue.margin = margin;\n\n\n\t\tSystem.out.println(\"filepath = \"+filepath);\n\t\tint img = swf_env.open_image_file(type, filepath);\n\t\tvalue.img = img;\n\n\t\tdata_width = swf_env.get_value(\"imagewidth\", img);\n\t\tdata_height = swf_env.get_value(\"imageheight\", img);\n\t\tSystem.out.println(\"imagesize: \"+data_width+\" \"+data_height);\n\t\twidth = data_width + margin * 2;\n\t\theight = data_height + margin * 2;\n\n\n\t\tsetDecoration2();\n\n\t\tif(data_width > width){\n\t\t\tint original_width = data_width;\n\t\t\tdata_width = width - margin * 2;\n\t\t\tint scale = data_width / original_width;\n\t\t\tdata_height = data_height * scale;\n\t\t\theight = data_height + margin * 2;\n\t\t}\n\t\tif(data_height > height){\n\t\t\tint original_height = data_height;\n\t\t\tdata_height = height - margin * 2;\n\t\t\tint scale = data_height / original_height;\n\t\t\tdata_width = data_width * scale;\n\t\t\twidth = data_width + margin * 2;\n\t\t}\n\n\t\tvalue.data_width = data_width;\n\t\tvalue.data_height = data_height;\n\t\tvalue.width = width;\n\t\tvalue.height = height;\n\t\t//morya wrote\n\t\tvalue.int_w = width;\n\t\tvalue.int_h = height;\n\n\n\t\tsetDecoration3();\n\n\t\tswf_env.tmp_width = width;\n\t\tswf_env.tmp_height = height;\n\n\n\t\tswf_env.instanceID++;\n\n\t}",
"public void storeColorImage(String filename)throws IOException\r\n\t{ \r\n\t \r\n\t int rows, cols, pixel, alpha, red, green,blue;\r\n\t \r\n\t \r\n \r\n\t \r\n //Open up file\t\r\n FileOutputStream file_output = new FileOutputStream(filename);\r\n DataOutputStream DO = new DataOutputStream(file_output);\r\n \r\n \r\n //Write out each pixel as integers\r\n rows = img.getHeight(this);\r\n cols = img.getWidth(this);\r\n int pixels[] = new int[rows*cols];\r\n PixelGrabber pg = new PixelGrabber(img, 0,0, cols, rows, pixels, 0, cols);\r\n try{ pg.grabPixels();}\r\n catch(InterruptedException e) {\r\n \t System.err.println(\"interrupted waiting for pixels!\");\r\n \t}\r\n\t\r\n System.out.println(\"...storing as color, \"+rows +\" x \" + cols);\r\n \r\n for(int r=0; r<rows; r++)\r\n\t for(int c=0; c<cols; c++) {\r\n pixel = pixels[r*cols + c];\r\n\t alpha = (pixel >> 24) & 0xff;\r\n red = (pixel >> 16) & 0xff;\r\n green = (pixel >> 8) & 0xff;\r\n blue = (pixel ) & 0xff;\r\n if(verbose)//verbose\r\n \t {System.out.println(\"value: \" + (int)((red+green+blue)/3));\r\n \t System.out.println(\" R,G,B: \" + red +\",\" + green +\",\" + blue); }\r\n\t \r\n \t DO.writeByte(red);\r\n \t DO.writeByte(green);\r\n \t DO.writeByte(blue);\r\n }\t\r\n\r\n //flush Stream\r\n DO.flush();\r\n //close Stream\r\n DO.close();\r\n\r\n }",
"public void analyzePhoto()\n {\n //Assign the pixels first\n\n }",
"public void createImage() {\n\t\tthis.piece.setIcon(new ImageIcon(imageFilePath));\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to change an avatar (updates the database, returns true if update was successful) | public boolean changeAvatar(String username, int avatar); | [
"void changeUserAvatar(Connection c, String email, int avatar);",
"void changeAvatar(byte[] avatarImage);",
"void changeUserAvatar(byte[] avatarImage, int userId);",
"String updateMyAvatar(String pictureFilePath);",
"public void updateAvatar() {\n\t\tMember memberTemp = new Member();\n\t\tmemberTemp = getMember();\n\t\tString filename = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"filename\");\n\t\tString newFileName = this.memberService.memberImageNameProcess(memberTemp.getUsername());\n\t\tthis.memberService.deleteLogo(memberTemp.getAvatar());\n\t\tString newLogoFilename = this.memberService.renameLogo(filename, newFileName);\n\t\tmemberTemp.setAvatar(newLogoFilename);\n\t\tthis.memberService.update(memberTemp);\n\t}",
"public void updateAvatar(User user, InputStream avatar) throws IOException {\n avatarRepository.updateAvatar(user, avatar);\n }",
"User setAvatar(long idUser, String avatarPath) throws ServiceException;",
"private void changeImage(){\n if(currentProfile!=null){\n GImage image = null; \n try { \n if(containsLetters(pic.getText())==true){\n image = new GImage(pic.getText());\n currentProfile.setImage(image);\n canvas.displayProfile(currentProfile);\n canvas.showMessage(\"Picture updated\");\n } else{\n \tcanvas.showMessage(\"Unable to open image file: \"+pic.getText());\n }\n } catch (ErrorException ex) {\n canvas.showMessage(\"Unable to open image file: \"+pic.getText());\n }\n } else{\n canvas.showMessage(\"Please select a profile to change picture\");\n }\n }",
"public void updateProfilePicture(String photo) { this.photo = photo; }",
"protected void setNewAvatar(Avatar avatar)\r\n\t{\r\n\t\tGame.avatar = new Avatar(avatar);\r\n\t}",
"@Override\n\tpublic void update() {\n\t\tif( this.avatar != null ) {\n\t\t\tsuper.update();\n\t\t}\n\t}",
"boolean updateUserImagePath(User user);",
"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}",
"public void updateByUser(Avatar avatar) {\n if (avatar.getUser() != null) {\n getUser().updateByUser(avatar.getUser());\n }\n }",
"@Override\n\tpublic void updateAvatar(CommonsMultipartFile fileUpload, String username) throws IOException {\n\t\tString savePath = imageConfiguration.getAvatarPackage(username);\n\t\tif (imageRepository.findImageNameByUsername(username) != null) {\n\t\t\tfileUpload.transferTo(new File(savePath));\n\t\t} else {\n\t\t\tUser user = findOne(username);\n\t\t\tImage image = new Image();\n\t\t\timage.setUser(user);\n\t\t\timage.setImageName(user.getUsername());\n\t\t\timage.setImageLocation(savePath);\n\t\t\timageService.create(image);\n\t\t\tfileUpload.transferTo(new File(savePath));\n\t\t}\n\t}",
"public void setAvatar(byte[] value) {\n this.avatar = value;\n }",
"User updateProfile(MultipartFile image, String email) throws Exception;",
"private void saveAvatar(Bitmap avatar) {\n String strAvatarFilename = \"avatar.jpg\";\r\n try {\r\n avatar.compress(CompressFormat.JPEG,\r\n 100, openFileOutput(strAvatarFilename, MODE_PRIVATE));\r\n } catch (FileNotFoundException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n// TODO: Determine the Uri to the local avatar.jpg file\r\n\r\n// TODO: Save the Uri path as a String preference\r\n Uri imageUri = Uri.fromFile(new File(getFilesDir(), strAvatarFilename));\r\n// TODO: Update the ImageButton with the new image\r\n ImageButton ava = (ImageButton) findViewById(R.id.avatar);\r\n\r\n ava.setImageURI(imageUri);\r\n String curimg = imageUri.getPath().toString();\r\n\r\n Editor edit = mGameSettings.edit();\r\n edit.putString(GAME_PREFERENCES_AVATAR, curimg);\r\n edit.commit();\r\n\r\n String userName = mGameSettings.getString(GAME_PREFERENCES_USERNAME, null);\r\n String avatarName = userName + \"Avatar\";\r\n String filePath = curimg;\r\n String description = \"My player avatar \";\r\n App42API.initialize(this, \"33febecb03a579e972755eccde307dd94a279b5cfe348f845b8762f8e3feb2d6\",\r\n \"b5be405b4e76d40a94cdc01250311205b5a7c7b2dc4d003714f24d0df3e219f8\");\r\n AvatarService avatarService = App42API.buildAvatarService();\r\n App42API.setOfflineStorage(true);\r\n avatarService.createAvatar(avatarName, userName, filePath, description, new App42CallBack() {\r\n public void onSuccess(Object response) {\r\n Avatar avatar = (Avatar) response;\r\n System.out.println(\"avatarName is :\" + avatar.getName());\r\n System.out.println(\"url is :\" + avatar.getURL());\r\n System.out.println(\"tinyUrl is :\" + avatar.getTinyURL());\r\n System.out.println(\"createdOn is :\" + avatar.getCreatedOn());\r\n System.out.println(\"Description is :\" + avatar.getDescription());\r\n System.out.println(\"Is Current :\" + avatar.isCurrent());\r\n System.out.println(\"UserName is :\" + avatar.getUserName());\r\n }\r\n\r\n public void onException(Exception ex) {\r\n System.out.println(\"Exception Message\" + ex.getMessage());\r\n }\r\n });\r\n\r\n\r\n }",
"protected void setAvatar(Avatar avatar)\r\n\t{\r\n\t\tGame.avatar = avatar;\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return this instance of KineZikService so clients can call public methods | public KineZikService getService() {
return KineZikService.this;
} | [
"private ObjectService getObjectService() {\n return new ObjectService(this);\n }",
"public ZkClient getZk() {\r\n\t\treturn zk;\r\n\t}",
"MyService getService() {\n return MyService.this;\n }",
"public MyService getservice(){\n return MyService.this;\n }",
"public ZkClient getZkClient() {\n return zkClient;\n }",
"private ZooKeeper getZooKeeper() {\n synchronized (this) {\n return zk;\n }\n }",
"MainService getService() {\n return MainService.this;\n }",
"public static KgssService getInstance() {\n if (kgssService == null) {\n kgssService = new KgssServiceImpl();\n }\n return kgssService;\n }",
"go.micro.runtime.RuntimeOuterClass.Service getService();",
"private BusinessObjectService getBusinessObjectService() {\n return KraServiceLocator.getService(BusinessObjectService.class);\n }",
"public Factory() {\n this(getInternalClient());\n }",
"private BusinessObjectService getBusinessObjectService() {\n return KraServiceLocator.getService(BusinessObjectService.class);\n }",
"public StockService getStockService(){\n return new BasicStockService(); \n }",
"public WServiceChain getAsServiceChain () { return (WServiceChain) this; }",
"public ServiceInstance getServiceInstance()\r\n\t{\r\n\t return si;\r\n\t}",
"MyService01 GetAndrewClass(){\n return MyService01.this;\n }",
"public Klinik getKlinik() {\r\n return klinik;\r\n }",
"public interface KeelClient\n{\n\t/**\n\t * The key used to store the Keel-client class in the context\n\t */\n\tpublic static final String CLIENT_CLASS = \"keel.client.class\";\n\n\t/**\n\t * The key used to store the keel-client config string in the context\n\t */\n\tpublic static final String CLIENT_CONFIG = \"keel.client.config\";\n\n\t/**\n\t * The key used to store the keel config directory in the context\n\t */\n\tpublic static final String CONFIG_DIR = \"keel.config.dir\";\n\n\t/**\n\t * Run a business-process, using a request/response architecture\n\t * @param req The request to pass to Keel\n\t * @return Keel response\n\t * @throws ModelException\n\t * @throws IOException\n\t */\n\tpublic KeelResponse execute(KeelRequest req) throws ModelException, IOException;\n\n\t/**\n\t * Set the client id\n\t * @param newId The ID to set\n\t */\n\tpublic void setId(int newId);\n\n\t/**\n\t * Retrieve the client id\n\t * @return The client ID\n\t */\n\tpublic int getId();\n\n\t/**\n\t * Start the client.\n\t *\n\t * @throws ModelException\n\t * @throws Exception\n\t */\n\tpublic void start() throws ModelException, Exception;\n\n\t/**\n\t * Stop the client.\n\t *\n\t * @throws ModelException\n\t * @throws Exception\n\t */\n\tpublic void stop() throws ModelException, Exception;\n}",
"public STKPushService mpesaService() {\n return getRestAdapter().create(STKPushService.class);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the index of active figure. | int getActiveFigure() {
return activeFigure;
} | [
"public int getPanelIndex(){\n\t\treturn tabbedPane.getSelectedIndex();\n\t}",
"public int getActiveIndex() {\n\t\treturn activeIndex;\n\t}",
"int getCurFrameIndex();",
"public int getActiveFrameIndex(){\n\t\treturn activeFrameIndex;\n\t}",
"int getTabVisualIndex();",
"public int getSelectedImageIndex() {\r\n\t\treturn list.getSelectedIndex();\r\n\t}",
"public int getCurrentPaneIndex() {\n\t\treturn itsCurrentPaneIndex;\n\t}",
"public int getCurImageIndex() {\r\n\t\treturn curImageIndex;\r\n\t}",
"int getActConjureFrameIndex();",
"public int getActiveDayPosition() {\n final int activeWeekPos = getActiveWeekPosition();\n if (activeWeekPos == -1) {\n return -1;\n }\n final List<ExerciseDay> exerciseDays = get(activeWeekPos).getDayIds();\n final int count = exerciseDays.size();\n for (int i = 0; i < count; i++) {\n if(exerciseDays.get(i).isActive()) {\n return i;\n }\n }\n return -1;\n }",
"public int getSelectedIndex() {\n\t\treturn getObject().getPanes().indexOf(getObject().getExpandedPane());\n\t}",
"public int getCurrentIndex() {\n\tif (objectIndex == objectCount)\n\t return -1 ;\n\telse\n\t return objectIndex ;\n }",
"int getFrameIndex();",
"public int getActiveFace() {\n return activeFace;\n }",
"public int getShapePointIndex();",
"public int getCurrentIdx() {\n\t\treturn currentIdx;\n\t}",
"public int getCurrentGridIndex() {\n\t\treturn this.currentIndex;\n\t}",
"int index()\n {\n\t if(cursor == null)\n\t {\n\t\t return -1;\n\t }\n\t return index;\n }",
"public int getSelectedIndex() {\n int selectedIndex = -1;\n if (selection.size() != 0) {\n selectedIndex = ((ClickableIcon) selection.get(0)).getIndex();\n }\n\n return selectedIndex;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For multiple orders, this method updates the hasArrays to remove the ID's who's parts have been used to create an item | public void updateHasArrays(ArrayList<ArrayList<String>> hasArr, ArrayList<String> IDs){
for (int a =0; a<IDs.size();a++){
for (int j =0; j<hasArr.size();j++) {
if (hasArr.get(j).get(0).equals(IDs.get(a))) {
hasArr.remove(j);
return;
}
}
}
} | [
"public static void update(){\n ITEMS_RECEIVED.clear();\n for (int i = 0; i <RecieveOrders.orderList.size(); i++) {\n addItemReceived(createOrderReceivedItem(i));\n }\n }",
"public void checkExtraParts() { // done before deleting\n\t\tString[] full = new String[this.bestCombination.length];\n\t\tString[] unique = Arrays.stream(this.bestCombination).distinct().toArray(String[]::new);\n\t\tString[] temp = new String[this.foundRequest[0].length];\n\t\tString[] newTemp = new String[this.foundRequest[0].length];\n\n\t\tfor (String id : unique) {// sets temp[] to the row in foundRequest matching the id;\n\t\t\tfor (String[] row : this.foundRequest) { // goes through each row in foundRequest\n\t\t\t\tList<String> list = Arrays.asList(row); // converts the row to a list\n\t\t\t\tif (list.contains(id)) { // if the row represents the desired id\n\t\t\t\t\tint i = 0;\n\t\t\t\t\tfor (String element : row) {\n\t\t\t\t\t\ttemp[i++] = element; // copying each element in the row to temp\n\t\t\t\t\t}\n\t\t\t\t\t// Example: temp = [id, type, y/n, y/n, y/n, y/n, price, manID]\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < full.length; i++) { // For each element in full\n\t\t\t\tif (temp[i + 2].equals(\"Y\") && full[i] == null) {\n\t\t\t\t\tfull[i] = \"Y\";\n\t\t\t\t\ttemp[i + 2] = \"N\";\n\t\t\t\t} else if (temp[i + 2].equals(\"Y\") && full[i].equals(\"Y\")) {\n\t\t\t\t\tnewTemp = formatTemp(temp, full); // changes temp comparing to full: yn -> n and yy->y and nn-> n\n\t\t\t\t\taddExtraPieces(newTemp); // adds temp[] to extraPieces** ADDED METHOD TO ADD temp TO foundRequest\n\t\t\t\t\t\t\t\t\t\t\t\t// pass by value\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void whenReplacesItemThenArrayItem() {\n Tracker tracker = new Tracker();\n Item item = new Item(null, \"item\", \"item\", 11032017, \"item\");\n Item item1 = new Item(null, \"Item1\", \"item1...\", 11032017, \"item1\");\n Item item2 = new Item(null, \"item2\", \"item2...\", 11032017, \"item2\");\n tracker.add(item);\n tracker.add(item1);\n List<Item> afterItems = new ArrayList<>();\n afterItems.add(item2);\n afterItems.add(item1);\n item2.setId(tracker.getItems().get(0).getId());\n tracker.update(item2);\n assertThat(tracker.getItems(), is(afterItems));\n }",
"public void processOrders() \n\t{\n\t\tfor(int index = 0; index < orderList.size(); index++)\n\t\t{\t\n\t\t\t//process the order and possibly promote the customer object\n\t\t\tcustomerArrayHolder.processOrder(orderList.get(index));\n\t\t}\n\t\torderList.clear(); //should prevent memory leaks, not sure if necessary\n\t}",
"@Test\n public void whenDeleteItemThenArrayItem() {\n Tracker tracker = new Tracker();\n Item item = new Item(null, \"item\", \"item\", 11032017, \"item\");\n Item item1 = new Item(null, \"Item1\", \"item1...\", 11032017, \"item1\");\n tracker.add(item);\n tracker.add(item1);\n List<Item> afterItems = new ArrayList<>();\n afterItems.add(item1);\n tracker.delete(item);\n assertThat(tracker.getItems(), is(afterItems));\n }",
"void updateBodyParts(List<BodyPart> parts) {\n\n List<Integer> curPartIDs = new ArrayList<Integer>();\n for (BodyPart x : parts) {\n curPartIDs.add(checkID(x));\n if (!checkEffected(x)) {\n addEffected(x);\n effect(x);\n }\n }\n //implement later (lel)\n //removeEffected(curPartIDs, getEffected());\n\n }",
"private void updateAllParts() {\r\n modProdInStock.setItems(getParts());\r\n }",
"private HashSet<Item> parcelableArrayToHashSet(Parcelable[] parcelables) {\n //Order to write or read into/out of parcel: set, listUuid, creatorUuid, name\n if (parcelables == null || parcelables.length == 0) {\n return new HashSet<>();\n } else {\n HashSet<Item> items = new HashSet<>();\n for (Parcelable parcelable : parcelables) {\n items.add((Item) parcelable);\n }\n return items;\n }\n }",
"public void updateIds()\n {\n this.id = Id.create();\n }",
"public void addOrders() {\n\t\torders.stream()\n\t\t\t.forEach(db::store);\n\t}",
"public void clearOrders();",
"void recalcID() {\n\t\tfor (int i = 0; i < quads.size(); i++) {\n\t\t\tPolygon quad = quads.get(i); //\n\t\t\tquad.id = i;\n\t\t}\n\t\tselectedQuad = 0; // !!!!!\n\t\t// System.out.println(\"[notice ] ids resorted\");\n\t}",
"public void addRemoveOrder() \n\t{\n\t\tTable t = new Table();\n\t\tint tableID;\n\t\tint orderid = 0;\n\t\tint ind = 0;\n\t\tif(tm.printUnpaidTable()){\n\t\t\tSystem.out.print(\"Table ID: \");\n\t\t\ttableID = customScanner.onlyTableID(sc, orderList);\n\t\t\tif(tableID==-1)\n\t\t\t\treturn;\n\t\t\tOrdering currOrder = new Ordering();\n\t\t\tOrdering cloneOrder = new Ordering(); \n\t\t\t\n\t\t\tint i = -1;\n\t\t\tfor(Ordering or : orderList)\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t\tif(or.getTableID() == (tableID))\n\t\t\t\t{\n\t\t\t\t\tind = i;\n\t\t\t\t\torderid = or.getOrderID(); \n\t\t\t\t\tcloneOrder = Ordering.cloning(or);\n\t\t\t\t\tcloneOrder.printOrderInput();\n\t\t\t\t}\n\t\t\t}\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"+--------------------------------+\");\n\t\t\tSystem.out.println(\"|ADD/REMOVE ORDER ITEM SELECTION:|\");\n\t\t\tSystem.out.println(\"+--------------------------------+\");\n\t\t\tSystem.out.println(\"|1. Add Item |\");\n\t\t\tSystem.out.println(\"|2. Remove Item |\");\n\t\t\tSystem.out.println(\"|3. Remove Whole Order |\");\n\t\t\tSystem.out.println(\"|4. Back |\");\n\t\t\tSystem.out.println(\"+--------------------------------+\");\n\t\t\tSystem.out.println(\"Please Enter Your Choice: \");\n\t\t\tint ch = 0;\n\t\t\tdo {\n\t\t\t\tch = customScanner.readOnlyIntegers(sc);\n\t\t\tswitch(ch){\n\t\t\t\tcase 1: case 2:\n\t\t\t\t\torderList = cloneOrder.addRemoveOrder(mainmenu,orderList,ind,ch);\n\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.print(\"Confirm Removal of Order (Y/N): \");\n\t\t\t\t\tchar conf2 = sc.next().charAt(0);\n\t\t\t\t\tif(conf2 == 'Y' || conf2=='y')\n\t\t\t\t\t{\n\t\t\t\t\t\t//Remove order object here \n\t\t\t\t\t\torderList.remove(ind);\n\t\t\t\t\t\tSystem.out.println(\"Order Succesfully Removed!\");\n\t\t\t\t\t\ttm.freeTable(tableID);\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tcase 4: case -1:\n\t\t\t\t\treturn;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Invalid input!\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}while(ch<1 || ch >4);\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private void removeFromQueue (Parcel[] packagesAssigned){\n\n }",
"public void clearOrders()\r\n\t{\r\n\t\tsubOrders.clear();\r\n\t\tstance = UnitOrders.STANCE_DEFAULT;\r\n\t\tthis.bChanged = true;\r\n\t}",
"public void setOrders(ArrayList<Order> orders) {\n this.orders = orders;\n }",
"public void clearPhoneOrders() {\n phoneOrders.clear();\n }",
"public void addID(String[] unique) {\n\t\tString[] newID; // create an array\n\n\t\tif (orderedIDs == null) { // if orderedIDs has not been set yet:\n\t\t\torderedIDs = new String[unique.length]; // orderedIDs is set to same size as unique\n\t\t\tSystem.arraycopy(unique, 0, orderedIDs, 0, unique.length); // copy values of unique to orderedIDs\n\t\t} else {\n\t\t\tint newIdLength = unique.length + orderedIDs.length;\n\t\t\tnewID = new String[newIdLength]; // newID has length of combined unique and orderedIDs\n\t\t\tSystem.arraycopy(unique, 0, newID, 0, unique.length); // copy unique to part of newID\n\t\t\tSystem.arraycopy(orderedIDs, 0, newID, unique.length, orderedIDs.length); // copy orderedIDs to part of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// newID\n\n\t\t\torderedIDs = new String[newIdLength]; // orderedIDs has new length of combined array\n\t\t\tSystem.arraycopy(newID, 0, orderedIDs, 0, newID.length); // copy back values of newID to orderedIDs\n\t\t}\n\t}",
"public void setArrayListOfItemsToBeDeletedViaNotificationModal() {\n List<WebElement> itemsToBeRemoved = UnavailableItems_Modal.findElements(By.xpath(\".//*[@class='mjr-product-name']\"));\n for (WebElement item : itemsToBeRemoved) {\n listOfDeletedItemNameShoppingCart.add(UtilityHelper.elementGetText(item));\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calls fiftyPercentAlgorithm and assigns the output to heads | public boolean Flip() {
heads = FiftyPercentAlgorithm.Calculate();
return heads;
} | [
"public void CoinFlip(int totalFlip) {\n\n //variables\n int count = 0;\n int head = 0;\n int tail = 0;\n\n //computation\n while (count != totalFlip) {\n double flip = Math.random();\n System.out.println(flip);\n\n if (flip < 0.5) {\n System.out.println(\"Print Head\");\n head++;\n\n } else {\n System.out.println(\"Print Tail\");\n tail++;\n }\n count++;\n }\n\n System.out.println(\"number of heads wins: \" + head);\n System.out.println(\"numberof tails wins:\" + tail);\n\n int perHaid = (head * 100 / totalFlip);\n int perTail = (tail * 100 / totalFlip);\n System.out.println(\"the percentage of head win:\" + perHaid);\n System.out.println(\"the percentage of tail win:\" + perTail);\n\n\n }",
"public void percentageHead(double noOfToss)\n\t{\n\t\tdouble ramdomNum = Math.random();\n\t\tint noOfTails = 0, noOfHeads = 0;\n\t\tdouble percTails=0;\n\t\tif(ramdomNum < 0.5)\n\t\t\tnoOfTails++;\n\t\telse\n\t\t\tnoOfHeads++;\n\t\tpercTails = noOfTails/noOfToss*100;\n\t\tSystem.out.println(\"Percentage of Tail: \"+percTails);\n\t\tSystem.out.println(\"Percentage of Head: \"+(100 - percTails));\n\t}",
"public abstract double percentFat();",
"int getPercentageHeated();",
"public void computePercent() {\n\t\tSystem.out.println(\"Please enter the name of the item you would like to price out:\");\n\t\tname = scan.nextLine();\n\t\tSystem.out.println(\"Please enter the original price:\");\n\t\togPrice = scan.nextDouble();\n\t\tscan.nextLine();\n\t\t\n\t\trandPercent = 0.05 *(1 + gen.nextInt(15));\n\t}",
"double getPercent(double percentOf, double total);",
"int getPercent();",
"public double calculateHpPercent();",
"Amount getProgressInPercent();",
"private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}",
"public double calculatePercentSuccessHits ()\r\n\t{\r\n\t\treturn ((numberOfTimesHitBasic + numberOfTimesHitBounceBall + numberOfTimesHitShrinkBall) / (double)totalClicks) * 100; \r\n\t}",
"private float calculateTip( float amount, int percent, int totalPeople ) {\n\t\tfloat result = (float) ((amount * (percent / 100.0 )) / totalPeople);\n\t\treturn result;\n\t}",
"float getPercentCorrect() {\n return (float) correctCount / (float) iterations * (float) 100.0;\n }",
"public static float calculatePercent(float numOfSpecificTrees, float totalTrees){\n\t\tfloat percent= numOfSpecificTrees/totalTrees*100;\n\t\treturn percent;\n\t\t\n\t}",
"public void PokerStats(int handSize, int numTrials)\n {\n double startTime = System.currentTimeMillis();\n System.out.println(\"\\f\");\n Deck d=new Deck();\n d.shuffle();\n double royalFlushCount=0.0;\n double straightFlushCount=0.0;\n double fourOfAKindCount=0.0;\n double fullHouseCount=0.0;\n double flushCount=0.0;\n double straightCount=0.0;\n double threeOfAKindCount=0.0;\n double twoPairCount=0.0;\n double pairCount=0.0;\n double bustCount=0.0;\n double n=numTrials;\n\n for(int i=0;i<n;i++)\n {\n PokerHand p=d.dealHand(handSize);\n String s=p.evaluate();\n\n if(s.equals(\"Junk\"))\n {\n bustCount++; \n }\n else if(s.equals(\"Pair\"))\n {\n pairCount++; \n }\n else if(s.equals(\"Two Pair\"))\n {\n twoPairCount++; \n }\n else if(s.equals(\"Three of a Kind\"))\n {\n threeOfAKindCount++; \n }\n else if(s.equals(\"Straight\"))\n {\n straightCount++; \n }\n else if(s.equals(\"Flush\"))\n {\n flushCount++; \n }\n else if(s.equals(\"Full House\"))\n {\n fullHouseCount++; \n }\n else if(s.equals(\"Four of a Kind\"))\n {\n fourOfAKindCount++; \n }\n else if(s.equals(\"Straight Flush\"))\n {\n straightFlushCount++; \n }\n else if(s.equals(\"Royal Flush\"))\n {\n royalFlushCount++; \n }\n \n d.addHand(p);\n d.shuffle();\n }\n System.out.println(\"\\f\");\n System.out.println(\" Hand \"+\"Statistic\");\n System.out.println(\"_______________________________\");\n System.out.println(\"Royal Flush: | \"+royalFlushCount/n);\n System.out.println(\"Straight Flush: | \"+straightFlushCount/n);\n System.out.println(\"Four of a Kind: | \"+fourOfAKindCount/n);\n System.out.println(\"Full House: | \"+fullHouseCount/n);\n System.out.println(\"Flush: | \"+flushCount/n);\n System.out.println(\"Straight: | \"+straightCount/n);\n System.out.println(\"Three of a Kind: | \"+threeOfAKindCount/n);\n System.out.println(\"Two Pair: | \"+twoPairCount/n);\n System.out.println(\"Pair: | \"+pairCount/n);\n System.out.println(\"Junk: | \"+bustCount/n);\n System.out.println(\"\");\n \n double sum=royalFlushCount/n+straightFlushCount/n+fourOfAKindCount/n+fullHouseCount/n\n +flushCount/n+straightCount/n+threeOfAKindCount/n+twoPairCount/n+pairCount/n+bustCount/n;\n \n System.out.println(\"Sum of probabilities: \"+sum);\n double elapsedTime = System.currentTimeMillis() - startTime;\n double elapsedSeconds = elapsedTime / 1000;\n System.out.println(\"\");\n System.out.println(\"Elapsed time: \"+elapsedSeconds+\" seconds\");\n }",
"public int getRequiredPercent();",
"public static float percentageF(float n, float total) {\r\n return n * 100f / total;\r\n }",
"void onPercent(int percentAmount);",
"public double getPercentComplete();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sifiso Changes:Added:2016/08/14:Delete a record from the TELECENTRE_AVAILABLE_HRS table | public int deleteFromTelecentreAvailHrs(String teleId) throws Exception{
try{
String sql="DELETE FROM TELECENTRE_AVAILABLE_HRS"+
" WHERE TELE_ID="+teleId;
JdbcTemplate jdt=new JdbcTemplate(getDataSource());
int result=jdt.update(sql);
return result;
}catch (Exception ex){
throw new Exception("TelecentreDAO.java, 'deleteFromTelecentreAvailHrs("+teleId+")':"+ex);
}
} | [
"public void delete(HrDOvertimetotal entity);",
"public void testDelete_from_timetable() throws Exception {\r\n System.out.println(\"delete_from_timetable\");\r\n Connection conn = null;\r\n String place = \"\";\r\n //Timetablebase.delete_from_timetable(conn, place);\r\n \r\n }",
"public static void deleteTimeButtonClicked() {\n ObservableList<Occasion> allTimes;\n allTimes = tableHoliday.getItems();\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n allTimes.remove(occasion);\n OccasionCommunication.removeOccasion(occasion.getId());\n }",
"public void deleteEntryCaloricTable(CaloricTableEntry caloricEntry);",
"public void performDelete(boolean syncRequired){\r\n // delete investigator row after confirmation\r\n int selectedRow = investigatorForm.tblInvestigator.getSelectedRow();\r\n if( selectedRow != -1 ){\r\n InvestigatorBean invBean = investigatorTableModel.getInvestigatorBean(selectedRow);\r\n String name = \"\";\r\n String personId=\"\";\r\n if( invBean != null ) {\r\n name = invBean.getPersonName();\r\n personId = invBean.getPersonId();\r\n }\r\n \r\n if(name != null && name.trim().length()>0){\r\n int selectedOption\r\n = showDeleteConfirmMessage(\r\n \"Are you sure you want to remove \"+name+\r\n \" and associated units?\");\r\n if( selectedOption == JOptionPane.YES_OPTION ){\r\n //Added for COEUSQA-2037 : Software allows you to delete an investigator who is assigned credit in the credit split window - Start\r\n //When there is only one investigator exists, removes the investigator without check the credit split\r\n //When multiple investigator exists, Checks for the investigator credit split information,\r\n //until split set to '0' won't allow to delete the investigator\r\n if(investigatorForm.tblInvestigator.getRowCount() > 1 && checkInvHasAddsToHundredCreditSplit(personId)){\r\n int selectedOpt = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(CREDIT_SPLIT_EXISTS_FOR_INV) ,\r\n CoeusOptionPane.OPTION_YES_NO,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if(selectedOpt == JOptionPane.YES_OPTION){\r\n if(selectedOpt == JOptionPane.YES_OPTION){\r\n if(isDataChanged()){\r\n MessageFormat formatter = new MessageFormat(\"\");\r\n String message = formatter.format(\r\n coeusMessageResources.parseMessageKey(SAVE_BEFORE_OPEN_CREDIT_SPILT),\r\n this.moduleText);\r\n CoeusOptionPane.showInfoDialog(message);\r\n }else{\r\n performCreditSplitAction();\r\n }\r\n }\r\n \r\n }\r\n }else{\r\n //COEUSQA-2037 : End\r\n if(personId != null && personId.trim().length()>0){\r\n cvInvestigator.remove(selectedRow);\r\n// String acType = invBean.getAcType();\r\n// if( null == acType || UPDATE_RECORD.equals(acType)){\r\n // Added for COEUSQA-3642 : Issues with COEUSQA-1676 Credit Split Infrastructure project - Start\r\n if(CoeusGuiConstants.AWARD_MODULE.equals(moduleName)){\r\n deleteInvAndUnitCreditSplit(invBean.getPersonId(),invBean.getAcType());\r\n }\r\n // Added for COEUSQA-3642 : Issues with COEUSQA-1676 Credit Split Infrastructure project - End\r\n invBean.setAcType(DELETE_RECORD);\r\n invBean.setSyncRequired(syncRequired);//2796\r\n deletedInvestigators.add(invBean);\r\n// }\r\n if(hmDeletedUnits.containsKey(personId)){\r\n hmDeletedUnits.remove(personId);\r\n }\r\n investigatorTableModel.fireTableDataChanged();\r\n }\r\n dataChanged = true;\r\n }\r\n }\r\n }else{\r\n// int selectedOption = showDeleteConfirmMessage(coeusMessageResources.parseMessageKey(\r\n// \"protoInvForm_exceptionCode.1221\"));\r\n// if( selectedOption == JOptionPane.YES_OPTION ){\r\n cvInvestigator.remove(selectedRow);\r\n investigatorTableModel.fireTableDataChanged();\r\n dataChanged = true;\r\n// }\r\n }\r\n if( investigatorForm.tblInvestigator.getRowCount() <= 0 ){\r\n /* if there are no investigator rows after deleting this\r\n particular row then clear all entries in unit table */\r\n investigatorForm.btnDelete.setEnabled( false );\r\n investigatorForm.btnDelSyncInv.setEnabled(false);//2796\r\n //Case 2106 Start 4\r\n investigatorForm.btnCreditSplit.setEnabled(false);\r\n //Case 2106 End 4\r\n //Added for Case#2136 Enhancement start 3\r\n investigatorForm.btnAdminType.setEnabled( false );\r\n //Added for Case#2136 Enhancement end 3\r\n \r\n unitTableModel.setData(null);\r\n unitTableModel.fireTableDataChanged();\r\n investigatorForm.tblInvestigator.requestFocusInWindow();\r\n investigatorForm.btnAdd.requestFocusInWindow();\r\n investigatorForm.btnDelUnit.setEnabled( false );\r\n investigatorForm.btnAddUnit.setEnabled( false );\r\n investigatorForm.btnFindUnit.setEnabled( false );\r\n }\r\n \r\n int newRowCount = investigatorForm.tblInvestigator.getRowCount();\r\n int newSelRow = 0;\r\n if(newRowCount >0){\r\n if(newRowCount > selectedRow){\r\n investigatorForm.tblInvestigator.setRowSelectionInterval(selectedRow,\r\n selectedRow);\r\n newSelRow = selectedRow;\r\n }else{\r\n investigatorForm.tblInvestigator.setRowSelectionInterval(\r\n newRowCount - 1,newRowCount - 1);\r\n newSelRow = newRowCount - 1;\r\n }\r\n// investigatorForm.tblInvestigator.requestFocusInWindow();\r\n// investigatorForm.tblInvestigator.editCellAt(newSelRow,1);\r\n// investigatorForm.tblInvestigator.getEditorComponent().requestFocusInWindow();\r\n }\r\n }else{\r\n showWarningMessage(\r\n coeusMessageResources.parseMessageKey(\r\n \"protoInvFrm_exceptionCode.1066\") );\r\n }\r\n }",
"public void delete(HrCSchool entity);",
"public void delete(String tableName, int hrid) {\n dao.connect();\n dao.setAutoCommit(false);\n dao.executeSQLNonQuery(\"DELETE FROM \" + tableName + \" WHERE HRID = \" + hrid);\n dao.executeSQLNonQuery(\"DELETE FROM HumResource WHERE HRID = \" + hrid);\n dao.commit();\n dao.disconnect();\n }",
"public void deleteReservationFromReservedTables(int table_id, int time_index) throws SQLException {\r\n \t\tResultSet rs = getReservedInfo(table_id);\r\n \t\tString str = rs.getString(\"reserveInfo\");\r\n \t\tchar[] ch = str.toCharArray();\r\n \t\tch[time_index] = '0';\r\n \t\tstr = new String(ch);\r\n \t\tstmt.executeUpdate(\"update reservedtables set reserveInfo = '\"+str+\"' where id = \"+table_id);\r\n \t}",
"void deleteLeaderInformation(String componentId);",
"private void delete() {\n\t\tresControl.deleteReservation(resnr);\n\t}",
"public void testDelete_Accuracy() throws Exception {\n entry = new TimeEntry();\n entry.setDescription(DESCRIPTION);\n entry.setDate(CREATION_DATE);\n entry.setTaskTypeId(type.getPrimaryId());\n entry.setTimeStatusId(status.getPrimaryId());\n\n for (int i = 0; i < reasons.length; i++) {\n entry.addRejectReason(reasons[i]);\n }\n\n timeEntryDAO.create(entry, CREATION_USER);\n\n timeEntryDAO.delete(entry.getPrimaryId());\n\n // check whether the record has been added\n List returnTimeEntrys = AccuracyTestHelper.selectTimeEntries(conn);\n assertEquals(\"record was not properly deleted in the database\", 0, returnTimeEntrys.size());\n\n // The links should also be deleted from the time_reject_reason table\n Statement statement = conn.createStatement();\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM time_reject_reason order by reject_reason_id\");\n assertFalse(\"The links should also be deleted from the time_reject_reason table.\", resultSet.next());\n statement.close();\n }",
"public boolean deleteTimeForTask(CountedTime countedTime) throws SQLException;",
"public void delete(HrJBorrowcontract entity);",
"public void getFacilityDeletion(Hashtable parameter) throws cwException {\n if (parameter == null)\n parameter = new Hashtable();\n\n this.getCurrentUser(parameter);\n parameter.put(\"fac_id\", new Integer(getIntParameter(\"fac_id\")));\n \n String reqTime = req.getParameter(\"fac_upd_timestamp\");\n if(reqTime.length() == 22){ reqTime += \"0\"; }else if(reqTime.length() == 21){ reqTime += \"00\"; }else if(reqTime.length() == 19){ reqTime += \".000\"; }\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n\t\tTimestamp time = null;\n\t\ttry { time = new Timestamp(format.parse(reqTime).getTime()); } catch (ParseException e) { \n\t\t\tCommonLog.error(e.getMessage(),e);\n\t\t}\n parameter.put(\"fac_upd_timestamp\", time);\n\n return;\n }",
"void deleteEmployeeHealthInsuranceById(String empid);",
"public void delete_record(SlottedPage cur_page)\n {\n //Make its free as 0 and update the update the meta data file for holes.\n }",
"static void test_delete_Table(){\n String createtable_idplayers_stats = \"CREATE TABLE temphands_nicks ( time_hand bigint PRIMARY KEY, cards_hero smallint, position_hero smallint, stacks float4[], nicks text[] );\";\n\n try {\n //stmt_of_db.executeUpdate(delete);\n stmt_of_db.executeUpdate(createtable_idplayers_stats);\n\n\n\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }",
"public void delete(HrCContractterm entity);",
"public void deleteTeacher_info(Teacher_info teacher_info){\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 xt_specialty.d_code | public String getdCode() {
return dCode;
} | [
"public BigDecimal getSPECIAL_CODE() {\r\n return SPECIAL_CODE;\r\n }",
"public String getdCode() {\n\t\treturn dCode;\n\t}",
"public int getBd_code() {\r\n return Bd_code;\r\n }",
"String getAdditionalCode();",
"String getCodeColumn();",
"public String getCustCode() {\n return custCode;\n }",
"public String getCustCode() {\n return custCode;\n }",
"public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}",
"public String getJP_BankDataCustomerCode1();",
"public String getJP_BankDataCustomerCode2();",
"public String getDsCode() {\n return dsCode;\n }",
"public String getDataCode() {\r\n return dataCode;\r\n }",
"java.lang.String getSqlCode();",
"public java.lang.String getSpecial_company_code() {\n return special_company_code;\n }",
"public BigDecimal getCode() {\n return (BigDecimal) getAttributeInternal(CODE);\n }",
"public void setdCode(String dCode) {\n\t\tthis.dCode = dCode;\n\t}",
"public java.lang.String getCodeField() {\n return codeField;\n }",
"@AutoEscape\n\tpublic String getDataCode();",
"public Long getCode() {\n return code;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets array of all "realmCode" element | public void setRealmCodeArray(com.walgreens.rxit.ch.cda.CS[] realmCodeArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(realmCodeArray, REALMCODE$0);
}
} | [
"public void setRealmCodeArray(int i, com.walgreens.rxit.ch.cda.CS realmCode)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.CS target = null;\n target = (com.walgreens.rxit.ch.cda.CS)get_store().find_element_user(REALMCODE$0, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(realmCode);\n }\n }",
"public com.walgreens.rxit.ch.cda.CS[] getRealmCodeArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(REALMCODE$0, targetList);\n com.walgreens.rxit.ch.cda.CS[] result = new com.walgreens.rxit.ch.cda.CS[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public void set_capsule_code(byte[] value) {\n for (int index0 = 0; index0 < value.length; index0++) {\n setElement_capsule_code(index0, value[index0]);\n }\n }",
"public void setCode(byte[] code);",
"public void setRealmCode(Code realmCode) {\n\t\tthis.realmCode = realmCode;\n\t}",
"public void setGameCode(ArrayList<Integer> gameCode) {\n this.gameCode = gameCode;\n }",
"public void setCode(String code);",
"public void setRegionCode(int rc){\n ByteBuffer bb = ByteBuffer.allocate(4).order(ByteOrder.BIG_ENDIAN).putInt(rc);\n authorityID[2]=bb.get(2);\n authorityID[3]=bb.get(3);\n }",
"public void setRole(de.tif.jacob.core.definition.impl.jad.castor.CastorRole[] roleArray)\n {\n //-- copy array\n _roleList.removeAllElements();\n for (int i = 0; i < roleArray.length; i++) {\n _roleList.addElement(roleArray[i]);\n }\n }",
"public void setAuthorityCode(int bc){\n ByteBuffer bb = ByteBuffer.allocate(4).order(ByteOrder.BIG_ENDIAN).putInt(bc);\n authorityID[6]=bb.get(2);\n authorityID[7]=bb.get(3);\n }",
"public void setCode(String newVal) {\n if ((newVal != null && this.code != null && (newVal.compareTo(this.code) == 0)) || \n (newVal == null && this.code == null && code_is_initialized)) {\n return; \n } \n this.code = newVal; \n code_is_modified = true; \n code_is_initialized = true; \n }",
"public int sizeOfRealmCodeArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(REALMCODE$0);\n }\n }",
"public Code getRealmCode() {\n\t\treturn realmCode;\n\t}",
"Code[] getCodes();",
"public void setCMCCPrd(java.lang.Object[] CMCCPrdArray)\n {\n //-- copy array\n _CMCCPrdList.removeAllElements();\n for (int i = 0; i < CMCCPrdArray.length; i++) {\n _CMCCPrdList.addElement(CMCCPrdArray[i]);\n }\n }",
"public void SetCombValues(){\n ArrayList<String> a = new ArrayList<String>();\n for (int i = 0; i < SystemDatabase.appointmentArray.size(); i++) {\n if (\"Unverified\".equals(SystemDatabase.appointmentArray.get(i).getStatus())) {\n a.add(SystemDatabase.appointmentArray.get(i).getPatientID());\n } \n } \n for (String value : a) {\n CombPatientID.addItem(value); \n }\n }",
"IFProMutableOperator setCodeAsChar(char[] code);",
"public SetCode(DataDescriber<StringValue> code, Identifier<DataTable> table) {\n\t\tthis.code = code;\n\t\tthis.table = table;\n\t}",
"public abstract void setNativeCodeDescriptions(SortedSet<NativeCodeDescription> nativeCodeDescriptions) throws BundleException;"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allows for a hook to determine the MultiTenant site for this user from the ctx, username, and authorities. Default is to return null (no site). Implementors may wish to subclass this to determine the Site from the context. If the user is not associated with the current site, or if there is a problem determining the Site, an instance of org.springframework.security.core.AuthenticationException should be thrown. | protected Site determineSite(DirContextOperations ctx, String username, Collection<? extends GrantedAuthority> authorities) {
return null;
} | [
"Site getSite();",
"public AptlySite getSite() {\n AptlySite[] sites = DESCRIPTOR.getSites();\n if (repoSiteName == null && sites.length > 0) {\n // default\n return sites[0];\n }\n for (AptlySite site : sites) {\n if (site.getDisplayName().equals(repoSiteName)) {\n return site;\n }\n }\n return null;\n }",
"public UrbanDeploySite getSite() {\r\n UrbanDeploySite[] sites = DESCRIPTOR.getSites();\r\n if (siteName == null && sites.length > 0) {\r\n // default\r\n return sites[0];\r\n }\r\n for (UrbanDeploySite site : sites) {\r\n if (site.getDisplayName().equals(siteName)) {\r\n return site;\r\n }\r\n }\r\n return null;\r\n }",
"public static Site getSite(HttpServletRequest request) {\n\t\tObject site = request.getAttribute(SITE_ATTRIBUTE);\n\t\tif (site == null) {\n\t\t\tsite = resolveSite(request);\n\t\t\texposeSite((Site) site, request);\n\t\t}\n\t\tif (site == null || site == NOT_FOUND) {\n\t\t\treturn null;\n\t\t}\n\t\tSite result = (Site) site;\n\t\tresult.refreshIfDetached();\n\t\treturn result; \n\t}",
"@Override\n\tpublic void syncSiteMemberships(String contextGuid, Site site) throws LTIException {\n\n\t\tlog.debug(\"synchSiteMemberships\");\n\n\t\tif (!serverConfigurationService.getBoolean(PlusService.PLUS_ROSTER_SYCHRONIZATION, PlusService.PLUS_ROSTER_SYCHRONIZATION_DEFAULT)) {\n\t\t\tlog.info(\"LTI Memberships synchronization disabled.\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (isEmpty(contextGuid) ) {\n\t\t\tlog.error(\"Context GUID is required. Memberships will NOT be synchronized.\");\n\t\t\treturn;\n\t\t}\n\n\t\tOptional<Context> optContext = contextRepository.findById(contextGuid);\n\t\tContext context = null;\n\t\tif ( optContext.isPresent() ) {\n\t\t\tcontext = optContext.get();\n\t\t}\n\n\t\tif ( context == null ) {\n\t\t\tlog.info(\"Context notfound {}\", contextGuid);\n\t\t\treturn;\n\t\t}\n\n\t\tString tenantGuid = context.getTenant().getId();\n\t\tString contextMemberships = context.getContextMemberships();\n\n\t\tif (isEmpty(tenantGuid)) {\n\t\t\tlog.info(\"Context {} does not have a tenant. Memberships will NOT be synchronized.\", contextGuid);\n\t\t\treturn;\n\t\t}\n\n\t\tif (isEmpty(contextMemberships)) {\n\t\t\tlog.info(\"Context {} does not have Memberships URL. Memberships will NOT be synchronized.\", contextGuid);\n\t\t\treturn;\n\t\t}\n\n\t\t// Load the Tenant\n\t\tOptional<Tenant> optTenant = tenantRepository.findById(tenantGuid);\n\t\tTenant tenant = null;\n\t\tif ( optTenant.isPresent() ) {\n\t\t\ttenant = optTenant.get();\n\t\t}\n\n\t\tif ( tenant == null ) {\n\t\t\tlog.info(\"Tenant notfound {}\", tenantGuid);\n\t\t\treturn;\n\t\t}\n\n\t\tString clientId = tenant.getClientId();\n\t\tString deploymentId = context.getDeploymentId();\n\t\tString oidcTokenUrl = tenant.getOidcToken();\n\t\tString oidcAudience = tenant.getOidcAudience();\n\t\tif ( isEmpty(oidcAudience) ) oidcAudience = oidcTokenUrl;\n\n\t\tif (isEmpty(clientId)) {\n\t\t\tlog.info(\"Tenant {} does not have clientId. Memberships will NOT be synchronized.\", tenantGuid);\n\t\t\treturn;\n\t\t}\n\n\t\tif (isEmpty(deploymentId)) {\n\t\t\tlog.info(\"Context {} does not have deploymentId. Memberships will NOT be synchronized.\", contextGuid);\n\t\t\treturn;\n\t\t}\n\n\t\tif (isEmpty(oidcTokenUrl)) {\n\t\t\tlog.info(\"Tenant {} does not have an OIDC Token URL. Memberships will NOT be synchronized.\", tenantGuid);\n\t\t\treturn;\n\t\t}\n\n\t\tboolean isEmailTrustedConsumer = ! Boolean.FALSE.equals(tenant.getTrustEmail());\n\n\t\t// Prepare for Per-Context log\n\t\tContextLog cLog = new ContextLog();\n\t\tcLog.setContext(context);\n\t\tcLog.setType(ContextLog.LOG_TYPE.NRPS_TOKEN);\n\t\tcLog.setAction(\"syncSiteMemberships getting access token from context=\"+context.getId()+\" tenant=\"+context.getTenant()+\" oidcTokenUrl=\"+oidcTokenUrl);\n\t\tcLog.setSuccess(Boolean.FALSE);\n\n\t\t// Paging through multiple Requests - Avoid infinite loop from broken LMS.\n\t\tint max_pages = 10;\n\t\twhile( StringUtils.isNotEmpty(contextMemberships) ) {\n\t\t\tlog.debug(\"Loading contextMemberships={}\", contextMemberships);\n\t\t\tif ( max_pages-- <= 0 ) {\n\t\t\t\tlog.error(\"Paging stopped after 10 pages context={} link={}\", context.getId(), contextMemberships);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Looks like we have the requisite strings in variables :)\n\t\t\tKeyPair keyPair = SakaiKeySetUtil.getCurrent();\n\t\t\tStringBuffer dbs = new StringBuffer();\n\t\t\tdbs.append(\"Getting NRPS Token...\\n\");\n\t\t\tAccessToken nrpsAccessToken = LTI13AccessTokenUtil.getNRPSToken(oidcTokenUrl, keyPair, clientId, deploymentId, oidcAudience, dbs);\n\t\t\tif ( nrpsAccessToken == null || isEmpty(nrpsAccessToken.access_token) ) {\n\t\t\t\tlog.error(dbs.toString());\n\t\t\t\tlog.error(\"Could not retrieve NRPS (Names and Roles) token from {}. Memberships will NOT be synchronized.\", oidcTokenUrl);\n\t\t\t\tcLog.setDebugLog(dbs.toString());\n\t\t\t\tcontextLogRepository.save(cLog);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif ( verbose(tenant) ) {\n\t\t\t\tlog.info(\"Debug Log:\\n{}\", dbs.toString());\n\t\t\t} else {\n\t\t\t\tlog.debug(\"Debug Log:\\n{}\", dbs.toString());\n\t\t\t}\n\n\t\t\tcLog.setAction(\"syncSiteMemberships context=\"+context.getId()+\" tenant=\"+context.getTenant()+\" contextMemberships=\"+contextMemberships+\" access_token=\"+nrpsAccessToken.access_token);\n\n\t\t\tMap<String, String> headers = new TreeMap<>();\n\t\t\theaders.put(\"Authorization\", \"Bearer \"+nrpsAccessToken.access_token);\n\t\t\theaders.put(\"Accept\", LTI13ConstantsUtil.MEDIA_TYPE_MEMBERSHIPS);\n\t\t\theaders.put(\"Content-Type\", LTI13ConstantsUtil.MEDIA_TYPE_MEMBERSHIPS); // TODO: Remove when certification is fixed\n\n\t\t\t// Get ready\n\t\t\tcontext.setNrpsStart(Instant.now());\n\t\t\tcontext.setNrpsFinish(null);\n\t\t\tcontext.setNrpsCount(Long.valueOf(0));\n\t\t\tcontext.setNrpsStatus(\"Started\");\n\t\t\tcontextRepository.save(context);\n\n\t\t\tdbs = new StringBuffer();\n\t\t\tdbs.append(\"Loading Context Memberships...\\n\");\n\t\t\tInputStream is;\n\t\t\t try {\n\t\t\t\tHttpResponse<InputStream> response = HttpClientUtil.sendGetStream(contextMemberships, null, headers, dbs);\n\t\t\t\tif ( verbose(tenant) ) {\n\t\t\t\t\tlog.info(\"Debug Log:\\n{}\", dbs.toString());\n\t\t\t\t} else {\n\t\t\t\t\tlog.debug(\"Debug Log:\\n{}\", dbs.toString());\n\t\t\t\t}\n\t\t\t\tis = response.body();\n\n\t\t\t\tHttpHeaders responseHeaders = response.headers();\n\t\t\t\tList<String> allValuesOfLink = responseHeaders.allValues(\"Link\");\n\t\t\t\tString nextLink = HttpUtil.extractLinkByRel(allValuesOfLink, \"next\");\n\t\t\t\t// If this is not null, we will loop back up and continue to page in results for multi-request NRPS\n\t\t\t\tcontextMemberships = null;\n\t\t\t\tif ( isNotEmpty(nextLink) ) {\n\t\t\t\t\tlog.debug(\"Received Link / next header {}\", nextLink);\n\t\t\t\t\tcontextMemberships = nextLink;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.error(\"Error retrieving NRPS (Names and Roles) data from {}\", contextMemberships);\n\t\t\t\tcLog.setStatus(\"Error retrieving NRPS (Names and Roles) data\");\n\t\t\t\tcLog.setDebugLog(dbs.toString());\n\t\t\t\tcontextLogRepository.save(cLog);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// https://cassiomolin.com/2019/08/19/combining-jackson-streaming-api-with-objectmapper-for-parsing-json/\n\t\t\t// Create and configure an ObjectMapper instance\n\t\t\tObjectMapper mapper = JacksonUtil.getLaxObjectMapper();\n\n\t\t\tcLog = new ContextLog();\n\t\t\tcLog.setContext(context);\n\t\t\tcLog.setType(ContextLog.LOG_TYPE.NRPS_LIST);\n\t\t\tcLog.setStatus(\"Started syncSiteMemberships at=\"+Instant.now());\n\t\t\tcLog.setSuccess(Boolean.TRUE);\n\t\t\tdbs = new StringBuffer();\n\n\t\t\tLong count = Long.valueOf(0);\n\t\t\t// Create a JsonParser instance\n\t\t\ttry {\n\t\t\t\tJsonParser jsonParser = mapper.getFactory().createParser(is);\n\n\t\t\t\t// Check the first token\n\t\t\t\tString lastText = null;\n\t\t\t\tJsonToken nextToken = null;\n\t\t\t\twhile (true) {\n\t\t\t\t\tnextToken = jsonParser.nextToken();\n\t\t\t\t\tif ( nextToken == null ) break;\n\t\t\t\t\tif ( nextToken == JsonToken.START_ARRAY && \"members\".equals(lastText) ) break;\n\t\t\t\t\tlastText = jsonParser.getText();\n\t\t\t\t}\n\n\t\t\t\twhile (true) {\n\t\t\t\t\tnextToken = jsonParser.nextToken();\n\t\t\t\t\tif ( nextToken == null ) break;\n\t\t\t\t\tif ( nextToken == JsonToken.END_ARRAY ) break;\n\t\t\t\t\tMember member = mapper.readValue(jsonParser, Member.class);\n\n\t\t\t\t\tif ( verbose(tenant) ) {\n\t\t\t\t\t\tlog.info(\"processing member={}\",member.email);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlog.debug(\"processing member={}\",member.email);\n\t\t\t\t\t}\n\n\t\t\t\t\tcount = count + 1;\n\n\t\t\t\t\tif ( count < 200 ) {\n\t\t\t\t\t\tdbs.append(\"processing member=\"+member.email+\" user_id=\"+member.user_id+\" count=\"+count+\"\\n\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSakaiLaunchJWT launchJWT = new SakaiLaunchJWT();\n\t\t\t\t\tlaunchJWT.subject = member.user_id;\n\t\t\t\t\tlaunchJWT.email = member.email;\n\t\t\t\t\tlaunchJWT.given_name = member.given_name;\n\t\t\t\t\tlaunchJWT.family_name = member.family_name;\n\t\t\t\t\tlaunchJWT.roles = member.roles;\n\n\t\t\t\t\tSubject subject = createOrUpdateSubject(tenant, member.user_id, launchJWT);\n\t\t\t\t\tif ( subject == null ) {\n\t\t\t\t\t\tlog.error(\"Failed createOrUpdateSubject subject={}\", member.user_id);\n\t\t\t\t\t\tdbs.append(\"Failed createOrUpdateSubject subject=\"+member.user_id);\n\t\t\t\t\t\tcLog.setSuccess(Boolean.FALSE);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Upsert the roles\n\t\t\t\t\tMembership membership = new Membership();\n\t\t\t\t\tmembership.setSubject(subject);\n\t\t\t\t\tmembership.setContext(context);\n\t membership.setUpdatedAt(Instant.now());\n\t\t\t\t\tString ltiRoles = launchJWT.getLTI11Roles();\n\t\t\t\t\tif ( StringUtils.isNotBlank(ltiRoles) ) membership.setLtiRoles(ltiRoles);\n\t\t\t\t\tmembership = membershipRepository.upsert(membership);\n\n\t\t\t\t\tMap<String, String> payload = getPayloadFromLaunchJWT(tenant, launchJWT);\n\t\t\t\t\tpayload.put(\"tenant_guid\", contextGuid);\n\t\t\t\t\tpayload.put(\"subject_guid\", subject.getId());\n\n\t\t\t\t\tUser user = userFinderOrCreator.findOrCreateUser(payload, false, isEmailTrustedConsumer);\n\t\t\t\t\tif ( user == null ) {\n\t\t\t\t\t\tlog.error(\"Failed findOrCreateUser subject={}\", member.user_id);\n\t\t\t\t\t\tdbs.append(\"Failed findOrCreateUser subject=\"+member.user_id);\n\t\t\t\t\t\tcLog.setSuccess(Boolean.FALSE);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tconnectSubjectAndUser(subject, user);\n\n\t\t\t\t\tsiteEmailPreferenceSetter.setupUserEmailPreferenceForSite(payload, user, site, false);\n\n\t\t\t\t\tsite = siteMembershipUpdater.addOrUpdateSiteMembership(payload, false, user, site);\n\n\t\t\t\t\tcLog.setStatus(\"Completed syncSiteMemberships count=\"+count+\" at=\"+Instant.now());\n\t\t\t\t}\n\t\t\t} catch (IOException | LTIException e) {\n\t\t\t\tlog.error(\"Error processing contextMemberships stream context={}\", contextGuid, e);\n\t\t\t\tcLog.setSuccess(Boolean.FALSE);\n\t\t\t\tcLog.setStatus(\"Exception processing Names and Roles data=\"+e.getMessage());\n\t\t\t}\n\n\t\t\t// If this is the last page, clean up inactive entries (i.e. like a week since the last NRPS retrieval)\n\t\t\t// We may be in a thread / task instead of a login context...\n\t\t\tif ( isEmpty(contextMemberships) ) {\n\n\t\t\t\t// setup a security advisor\n\t\t\t\tSecurityAdvisor adv = new SecurityAdvisor() {\n\t\t\t\t\tpublic SecurityAdvice isAllowed(String userId, String function,\n\t\t\t\t\t\t\tString reference) {\n\t\t\t\t\t\treturn SecurityAdvice.ALLOWED;\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tsecurityService.pushAdvisor(adv);\n\t\t\t\ttry {\n\t\t\t\t\tint minutes = getInactiveExpireMinutes(context);\n\t\t\t\t\tList<Membership> deleted_memberships = removeSiteUsersMinutesOld(context, minutes);\n\t\t\t\t\tif ( deleted_memberships.size() > 0 ) {\n\t\t\t\t\t\tlog.info(\"Inactive memberships removed {} from {}\", deleted_memberships.size(), site.getId());\n\t\t\t\t\t\tdbs.append(\"Inactive memberships removed \"+deleted_memberships.size()+\" from \"+site.getId());\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tsecurityService.popAdvisor(adv);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Update the job status\n\t\t\tcontext.setNrpsFinish(Instant.now());\n\t\t\tcontext.setNrpsCount(count);\n\t\t\tcontext.setNrpsStatus(\"Done\");\n\n\t\t\t// Store the log entry\n\t\t\tcLog.setDebugLog(dbs.toString());\n\t\t\tcontextRepository.save(context);\n\t\t\tcontextLogRepository.save(cLog);\n\t\t} /* end while paging loop */\n\n\t}",
"public String getSite() {\r\n return site;\r\n }",
"GetSiteResult getSite(GetSiteRequest getSiteRequest);",
"private ISiteEntry getRootSite() {\n \t\tISitePolicy defaultPolicy = createSitePolicy(DEFAULT_POLICY_TYPE, DEFAULT_POLICY_LIST);\n \t\tURL siteURL = null;\n \t\ttry {\n \t\t\tsiteURL = new URL(PlatformURLBaseConnection.PLATFORM_URL_STRING); // try using platform-relative URL\n \t\t} catch (MalformedURLException e) {\n \t\t\tsiteURL = BootLoader.getInstallURL(); // ensure we come up ... use absolute file URL\n \t\t}\n \t\tISiteEntry defaultSite = createSiteEntry(siteURL, defaultPolicy);\n \t\treturn defaultSite;\n \t}",
"public UserContext getUserContext();",
"private Site getSite(String siteId){\n\t\tSite site = null;\n\t\ttry {\n\t\t\tsite = this.m_siteService.getSite(siteId);\n\t\t} catch (IdUnusedException e) {\n\t\t\tM_log.error(\"Error retrieving site information: \" + siteId + \" \" + e.getMessage());\n\t\t}\n\t\treturn site;\n\t}",
"public Long getSiteId() {\r\n return siteId;\r\n }",
"public String getSite() {\n return site;\n }",
"public final String getSiteId() {\n return this.siteId;\n }",
"@GET(CoreConstant.CORE_PUBLIC_API_V1 + \"/people/{personId}/sites/{siteId}\")\n Call<SiteRoleRepresentation> getSiteMembershipForPersonCall(@Path(\"personId\") String personId,\n @Path(\"siteId\") String siteId);",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPortalUser();",
"public Integer getSiteId() {\r\n return siteId;\r\n }",
"User getCurrentLoggedInUser();",
"java.lang.String getSiteId();",
"public String getSiteEffectiveId(Site site)\n\t{\n\t\tif (siteService.isUserSite(site.getId()))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString userId = siteService.getSiteUserId(site.getId());\n\t\t\t\tString eid = userDirectoryService.getUserEid(userId);\n\t\t\t\t// SAK-31889: if your EID has special chars, much easier to just use your uid\n\t\t\t\tif (StringUtils.isAlphanumeric(eid)) {\n\t\t\t\t\treturn siteService.getUserSiteId(eid);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (UserNotDefinedException e)\n\t\t\t{\n\t\t\t\tlog.warn(\"getSiteEffectiveId: user eid not found for user site: \"\n\t\t\t\t+ site.getId());\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString displayId = portal.getSiteNeighbourhoodService().lookupSiteAlias(site.getReference(), null);\n\t\t\tif (displayId != null)\n\t\t\t{\n\t\t\t\treturn displayId;\n\t\t\t}\n\t\t}\n\n\t\treturn site.getId();\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends the uploadItem to the Mule Server via HTTP POST | private void transferFile(final UploadItem uploadItem) throws IOException {
CommonsMultipartFile fileData = uploadItem.getFileData();
List<String> muleDeployUrls = getMuleDeployUrls();
String originalFileName = fileData.getFileItem().getName();
for (String muleDeployUrl : muleDeployUrls) {
final File tempFile = moveTempFile(fileData, originalFileName);
sendToMule(tempFile, muleDeployUrl);
tempFile.delete();
}
} | [
"private void sendToMule(final File file, final String muleDeployUrl) {\n FileDataBodyPart fdp = new FileDataBodyPart(\"file\", file, MediaType.APPLICATION_OCTET_STREAM_TYPE);\n FormDataMultiPart formDataMultiPart = new FormDataMultiPart();\n formDataMultiPart.bodyPart(fdp);\n WebResource webResource = Client.create().resource(muleDeployUrl);\n String resultServer = webResource.type(MediaType.MULTIPART_FORM_DATA).accept(MediaType.TEXT_HTML)\n .post(String.class, formDataMultiPart);\n logger.info(\"Output from Mule server: {}\", resultServer);\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 }",
"private void sendItemReq(String builedURL) throws IOException {\n URL url = new URL(builedURL);\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setDoOutput(true);\n con.setRequestMethod(\"PUT\");\n OutputStreamWriter out = new OutputStreamWriter(\n con.getOutputStream());\n out.write(\"Resource content\");\n out.close();\n con.getInputStream();\n }",
"public void upload_json_post(JSONObject json, String destination, Handler mHandler) {\n HttpResponse httpresponse;\n DefaultHttpClient httpclient = new DefaultHttpClient();\n HttpPost post = new HttpPost(destination);\n StringEntity se = null;\n String line = \"\";\n\n try {\n //convert json to string and add to post request\n se = new StringEntity(json.toString());\n se.setContentType(\"application/json;charset=UTF-8\");\n se.setContentEncoding(new BasicHeader(HTTP.CONTENT_TYPE, \"application/json;charset=UTF-8\"));\n post.setEntity(se);\n\n //send post request\n httpresponse = httpclient.execute(post);\n\n //read response\n InputStreamReader isr = new InputStreamReader(httpresponse.getEntity().getContent());\n BufferedReader reader = new BufferedReader(isr);\n StringBuilder sb = new StringBuilder();\n\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n\n if (mHandler != null) {\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(BlueMixApplication.getAppContext(), \"Submission complete\", Toast.LENGTH_LONG).show();\n }\n });\n }\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (ClientProtocolException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (NullPointerException e) {\n }\n }",
"@Test(priority = 1, description = \"podio {uploadFile} integration test positive case.\")\n public void testUploadFile() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:uploadFile\");\n esbRequestHeadersMap.put(\"Authorization\", \"Bearer \" + connectorProperties.getProperty(\"accessToken\"));\n \n String multipartProxyUrl = getProxyServiceURL(\"podio_uploadFile\");\n String requestString = multipartProxyUrl + \"?apiUrl=\" + apiUrl;\n MultipartFormdataProcessor multipartProcessor =\n new MultipartFormdataProcessor(requestString, esbRequestHeadersMap);\n \n File file = new File(pathToResourcesDirectory + connectorProperties.getProperty(\"uploadSourcePath\"));\n multipartProcessor.addFileToRequest(\"source\", file);\n multipartProcessor.addFormDataToRequest(\"filename\", connectorProperties.getProperty(\"uploadSourcePath\"));\n RestResponse<JSONObject> esbRestResponse = multipartProcessor.processForJsonResponse();\n \n String fileId = esbRestResponse.getBody().getString(\"file_id\");\n connectorProperties.put(\"fileId\", fileId);\n \n String apiEndPoint = apiUrl + \"/file/\" + fileId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"created_on\"),\n apiRestResponse.getBody().getString(\"created_on\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_via\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_via\").getString(\"name\"));\n esbRequestHeadersMap.remove(\"Authorization\");\n esbRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n }",
"public Long createFileUpload(FileUpload fileUpload, InputStream fileInputStream) throws AppException;",
"public void testFileUpload()\n throws IOException, FileUploadException\n {\n \tbyte[] request = newRequest();\n List fileItems = parseUpload(request);\n Iterator fileIter = fileItems.iterator();\n int add = 16;\n int num = 0;\n for (int i = 0; i < 16384; i += add) {\n if (++add == 32) {\n add = 16;\n }\n FileItem item = (FileItem) fileIter.next();\n assertEquals(\"field\" + (num++), item.getFieldName());\n byte[] bytes = item.get();\n assertEquals(i, bytes.length);\n for (int j = 0; j < i; j++) {\n assertEquals((byte) j, bytes[j]);\n }\n }\n assertTrue(!fileIter.hasNext());\n }",
"public Long upload(MusicUploadData music) throws MusicAppException;",
"public void publish(IssueMeta meta) {\n\t\tHttpPost post = getPost();\n\t\t\n\t\tMap<String, String> params = getParams(\n\t\t\t\tnew Pair(PARAM_UPLOAD_PHASE, UploadPhase.PUBLISH), \n\t\t\t\tnew Pair(PARAM_ISSUEID, meta.getReferenceId()),\n\t\t\t\tnew Pair(PARAM_UPLOAD_TYPE,UploadType.PROTECTED));\n\n List<NameValuePair> nvps = new ArrayList <NameValuePair>(); \n \n for(Map.Entry<String, String> param : params.entrySet()) {\n \t nvps.add(new BasicNameValuePair(param.getKey(), param.getValue()));\n }\n \n try {\n\t\t\tpost.setEntity(new UrlEncodedFormEntity(nvps));\n\t\t\tclient.sendRequest(post);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"@Test\n public void testUploadOK() throws Exception {\n String fileName = \"orig\";\n String content = \"bar\";\n MockMultipartFile file = new MockMultipartFile(\"file\", fileName, MediaType.APPLICATION_OCTET_STREAM_VALUE, content.getBytes());\n doUploadTest(file, \"{}\", \"\", status().isOk());\n Mockito.verify(broadcastService, atLeastOnce()).broadcastMessageToUID(anyString(), any(ClientAction.class));\n }",
"@POST\n @Path(\"\")\n @Consumes(\"multipart/form-data\")\n public Response uploadFile(MultipartFormDataInput input, @javax.ws.rs.core.Context HttpServletRequest request) {\n\n String fileName = \"unknown\";\n String uri = RestUriMinter.getInstance().mintUri(null); // Create dataset uri\n ThingSession ts = c.getThingSession();\n Thing t = ts.newThing(Resource.uriRef(uri));\n UriRef creator = Resource.uriRef((String) request.getAttribute(\"userid\"));\n\n try {\n\n PermissionCheck p = new PermissionCheck(creator, Permission.UPLOAD_DATA);\n if (!p.userHasPermission()) {\n return p.getErrorResponse();\n }\n //Get API input data\n Map<String, List<InputPart>> uploadForm = input.getFormDataMap();\n\n for (Entry<String, List<InputPart>> parts : uploadForm.entrySet() ) {\n for (InputPart part : parts.getValue() ) {\n log.debug(\"Processing: \" + parts.getKey());\n if (parts.getKey().equals(\"datablob\")) {\n //get filename...\n if (log.isDebugEnabled()) {\n listHeaders(part);\n }\n String disp = part.getHeaders().get(\"Content-Disposition\").get(0);\n log.debug(disp);\n int start = disp.indexOf(\"filename=\\\"\") + \"filename\\\"\".length() + 1;\n fileName = disp.substring(start);\n log.debug(\"Start : \" + start + fileName);\n int end = fileName.indexOf(\"\\\"\");\n fileName = fileName.substring(0, end);\n log.debug(\"Filename: \" + end + fileName);\n\n InputStream is = part.getBody(InputStream.class, null);\n try {\n // mimetype\n String contentType = part.getHeaders().get(\"Content-Type\").get(0);\n if (contentType != null) {\n // httpclient also gives the content type a \"charset\"; ignore that.\n contentType = contentType.replaceFirst(\"; charset=.*\", \"\");\n if (MimeMap.UNKNOWN_TYPE.equals(contentType)) {\n contentType = TupeloStore.getInstance().getMimeMap().getContentTypeFor(fileName);\n }\n // update context with new mime-type potentially\n TupeloStore.getInstance().getMimeMap().checkMimeType(contentType);\n }\n //Add blob and file-related metadata to Thing t (not saved here)\n BeanFiller.fillDataBean(c, t, fileName, contentType, creator, new Date(), is);\n\n } catch (NoSuchAlgorithmException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n } else {\n //Should only be one val per Key...\n log.debug(\"Adding: \" + parts.getKey() + \" : \" + part.getBodyAsString());\n addMetadataItem(t, parts.getKey(), part.getBodyAsString(), part.getMediaType(), creator);//Should only be one val per Key...\n }\n\n }\n\n }\n t.save();\n ts.clear();\n }\n\n catch (OperatorException oe) {\n log.error(\"Error uploading dataset: \", oe);\n return Response.status(500).entity(uri).build();\n } catch (IOException ie) {\n log.error(\"Error uploading dataset: \", ie);\n return Response.status(500).entity(uri).build();\n\n }\n\n // submit to extraction service unless we're big\n try {\n if (!TupeloStore.getInstance().getConfiguration(ConfigurationKey.BigData).equals(\"true\")) {\n TupeloStore.getInstance().extractPreviews(uri);\n }\n } catch (Exception e) {\n log.info(\"Could not submit uri to extraction service, is it down?\", e);\n }\n\n return Response.status(200)\n .entity(uri).build();\n }",
"@Override\n public void upload(String name, Integer type, String path, Integer pid, String md5, Integer createUserId, String caseNo, MultipartFile file) throws IOException {\n }",
"HttpStatus uploadProject(ProjectRequestBody request);",
"private void uploadFileUsingHTTPClient(Operation operation, String uploadURL, final String userName,\n final String password,\n String fileLocation) throws AndroidAgentException {\n\n int serverResponseCode;\n HttpURLConnection connection = null;\n DataOutputStream dataOutputStream = null;\n final String lineEnd = \"\\r\\n\";\n final String twoHyphens = \"--\";\n final String boundary = \"*****\";\n\n int bytesRead, bytesAvailable, bufferSize;\n byte[] buffer;\n int maxBufferSize = 1024 * 1024; // 1 MB\n File selectedFile = new File(fileLocation);\n final String fileName = selectedFile.getName();\n FileInputStream fileInputStream = null;\n\n try {\n fileInputStream = new FileInputStream(selectedFile);\n URL url = new URL(uploadURL);\n connection = getHttpConnection(url, userName, password);\n connection.setRequestProperty(\"uploaded_file\", fileLocation);\n\n dataOutputStream = new DataOutputStream(connection.getOutputStream());\n dataOutputStream.writeBytes(twoHyphens + boundary + lineEnd);\n dataOutputStream.writeBytes(\"Content-Disposition: form-data; name=\\\"file\\\";filename=\\\"\"\n + fileName + \"\\\"\" + lineEnd);\n dataOutputStream.writeBytes(lineEnd);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n buffer = new byte[bufferSize];\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n\n //loop repeats till bytesRead = -1, i.e., no bytes are left to read\n while (bytesRead > 0) {\n //write the bytes read from inputStream\n dataOutputStream.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n dataOutputStream.writeBytes(lineEnd);\n dataOutputStream.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);\n\n serverResponseCode = connection.getResponseCode();\n if (Constants.DEBUG_MODE_ENABLED) {\n Log.d(TAG, \"Server Response is: \" + connection.getResponseMessage() + \": \" + serverResponseCode);\n }\n if (serverResponseCode == 200) {\n operation.setStatus(resources.getString(R.string.operation_value_completed));\n operation.setOperationResponse(\"File uploaded from the device completed ( \" +\n fileName + \" ).\");\n }\n } catch (IOException e) {\n handleOperationError(operation, fileTransferExceptionCause(e, fileName), e, resources);\n } finally {\n if (connection != null) {\n connection.disconnect();\n }\n cleanupStreams(null, null, fileInputStream, null, null, null, null, dataOutputStream);\n }\n }",
"private File processMultipartForm() {\n\n File storeDirectory = Configuration\n .getParameterValueAsFile(PENDING_DIR);\n\n int fileSizeLimit = Configuration\n .getParameterValueAsInt(METADATA_MAX_BYTES);\n\n DiskFileItemFactory factory = new DiskFileItemFactory();\n factory.setSizeThreshold(fileSizeLimit);\n\n RestletFileUpload upload = new RestletFileUpload(factory);\n\n List<FileItem> items;\n\n try {\n Request request = getRequest();\n items = upload.parseRequest(request);\n } catch (FileUploadException e) {\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, e\n .getMessage(), e);\n }\n\n for (FileItem fi : items) {\n if (fi.getName() != null) {\n String uuid = UUID.randomUUID().toString();\n File file = new File(storeDirectory, uuid);\n try {\n fi.write(file);\n return file;\n } catch (Exception consumed) {\n }\n }\n }\n\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST,\n \"no valid file uploaded\");\n }",
"public final void sendTaskInputFile(final int idtask,\n final File uploadFile1,\n final File uploadFile2) throws IOException {\n String requestURL = fgURL + \"/v1.0/tasks/\" + idtask + \"/input\";\n String charset = \"UTF-8\";\n System.out.println(\"\\nSending POST request to \" + requestURL);\n\n try {\n MultipartUtility multipart = new MultipartUtility(requestURL,\n charset, token);\n\n multipart.addFilePart(\"file[]\", uploadFile1);\n multipart.addFilePart(\"file[]\", uploadFile2);\n\n List<String> response3 = multipart.finish();\n\n System.out.println(\"SERVER REPLIED:\");\n\n for (String line : response3) {\n System.out.println(line);\n }\n } catch (IOException ex) {\n System.err.println(\"Failed to send task input files\");\n ex.printStackTrace();\n }\n }",
"public void addFilePart(String fieldName, File uploadFile) throws IOException {\n String fileName = uploadFile.getName();\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"--\" + boundary).append(LINE_FEED);\n sb.append(\"Content-Disposition: form-data; name=\\\"\" + fieldName + \"\\\"; filename=\\\"\" + fileName\n + \"\\\"\").append(LINE_FEED);\n sb.append(\"Content-Type: \" + URLConnection.guessContentTypeFromName(fileName)).append(LINE_FEED);\n sb.append(\"Content-Transfer-Encoding: binary\").append(LINE_FEED);\n sb.append(LINE_FEED);\n writer.append(sb.toString());\n writer.flush();\n\n FileInputStream inputStream = new FileInputStream(uploadFile);\n byte[] buffer = new byte[4096];\n int bytesRead = -1;\n int i = 0;\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n try {\n bos.write(buffer, 0, bytesRead);\n bos.flush();\n Log.e(\"Punisher\", \"#\" + bytesRead + \" # \" + i++);\n } catch (OutOfMemoryError e){\n Runtime.getRuntime().gc();\n }\n }\n outputStream.flush();\n inputStream.close();\n writer.append(LINE_FEED);\n writer.append(LINE_FEED).flush();\n }",
"boolean uploadAttachment(String targetSpace, String pageName, String attachmentName, String contentType, InputStream data);",
"void storeMediaItemPoster(Long itemId, Long albumId, BizContext context);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Applies certain skills to ingame player attributes. Other skills are applied during actions, while these are somewhat passive skills. | public void applyAttributes(Player player) {
applyVitality(player);
applyDexterity(player);
applyStrength(player);
applyAthleticism(player);
applyArmorer(player);
} | [
"public void transformedSkills()\r\n\t{\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false);\r\n\t\t// Cancel Gatekeeper Transformation\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(8248, 1), false);\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5656, 1), false);//Update by rocknow\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5657, 1), false);//Update by rocknow\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5658, 1), false);//Update by rocknow\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5659, 1), false);//Update by rocknow\r\n\r\n\t\tgetPlayer().setTransformAllowedSkills(SKILLS);\r\n\t}",
"public void upgradeSkills() {\n\t}",
"@Override\r\n public void applyAttributes() {\r\n super.applyAttributes();\r\n getEntity().setColor(color);\r\n getEntity().setOwner(MbPets.getInstance().getServer().getPlayer(getOwner()));\r\n getEntity().setAgeLock(true);\r\n\r\n if (isBaby) {\r\n getEntity().setBaby();\r\n } else {\r\n getEntity().setAdult();\r\n }\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_ATTACK_WOLF);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_FOLLOW_CARAVAN);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.TRADER_LLAMA_DEFEND_WANDERING_TRADER);\r\n }",
"private void updateSkill()\n {\n for ( int i = 0; i < NUMBER_OF_PLAYERS; i++ )\n {\n int change = 0;\n double d = Math.random();\n if ( ( skill[i] == 2 && d > 0.5 ) || ( d < 0.1 && skill[i] != -1 ) )\n {\n change = -1;\n }\n else if ( d > 0.7 && skill[i] != 2 )\n {\n change = 1;\n }\n skill[i] += change;\n }\n }",
"public Skill(Player player){\n this.player = player;\n this.name = player.name;\n this.intellect = player.intellect;\n this.defense = player.defense;\n this.attack = player.attack;\n this.weapon = player.weapon;\n this.armor = player.armor;\n this.defense = player.defense;\n\n }",
"public void interactWith(Player player) {\n\t\tif (player.getJokingSkill() > JOKING_THRESHOLD) {\n\t\t\twon = true;\n\t\t\tplayer.increaseScore(this.getBonus());\n\t\t} else if (player.getFightingSkill() > FIGHTING_THRESHOLD) {\n\t\t\twon = true;\n\t\t\tplayer.increaseScore(this.getBonus());\n\t\t}\n\t}",
"@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n beginnerSkills.add(SkillFactory.SCRATCH);\n beginnerSkills.add(SkillFactory.PLAY_NICE);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(4, new ArrayList<Integer>(Arrays.asList(SkillFactory.LEER)));\n levelUpSkills.put(7, new ArrayList<Integer>(Arrays.asList(SkillFactory.LICK)));\n levelUpSkills.put(10, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_GUN)));\n levelUpSkills.put(13, new ArrayList<Integer>(Arrays.asList(SkillFactory.FURY_SWIPES)));\n levelUpSkills.put(16, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_SPORT)));\n levelUpSkills.put(19, new ArrayList<Integer>(Arrays.asList(SkillFactory.BITE)));\n levelUpSkills.put(22, new ArrayList<Integer>(Arrays.asList(SkillFactory.SCALD)));\n //22 TAUNT\n //28 FLING\n levelUpSkills.put(31, new ArrayList<Integer>(Arrays.asList(SkillFactory.ACROBATICS)));\n levelUpSkills.put(34, new ArrayList<Integer>(Arrays.asList(SkillFactory.BRINE)));\n //37 RECYCLE\n //40 NATURAL GIFT\n levelUpSkills.put(43, new ArrayList<Integer>(Arrays.asList(SkillFactory.CRUNCH)));\n }",
"@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n beginnerSkills.add(SkillFactory.SPLASH);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(15, new ArrayList<Integer>(Arrays.asList(SkillFactory.TACKLE)));\n levelUpSkills.put(30, new ArrayList<Integer>(Arrays.asList(SkillFactory.FLAIL)));\n levelUpSkills.put(40, new ArrayList<Integer>(Arrays.asList(SkillFactory.BOUNCE)));\n }",
"void applyExperience(Player player, EntityStack entityStack);",
"void updateSkill(Skill skill);",
"protected abstract void applySkillEffects(T source, T target);",
"@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n //ION DELUGE\n beginnerSkills.add(SkillFactory.QUICK_ATTACK);\n beginnerSkills.add(SkillFactory.TAIL_WHIP);\n beginnerSkills.add(SkillFactory.CHARGE);\n beginnerSkills.add(SkillFactory.THUNDER_WAVE);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(4, new ArrayList<Integer>(Arrays.asList(SkillFactory.TAIL_WHIP)));\n levelUpSkills.put(8, new ArrayList<Integer>(Arrays.asList(SkillFactory.CHARGE)));\n levelUpSkills.put(11, new ArrayList<Integer>(Arrays.asList(SkillFactory.SHOCK_WAVE)));\n levelUpSkills.put(15, new ArrayList<Integer>(Arrays.asList(SkillFactory.THUNDER_WAVE)));\n levelUpSkills.put(18, new ArrayList<Integer>(Arrays.asList(SkillFactory.FLAME_CHARGE)));\n levelUpSkills.put(22, new ArrayList<Integer>(Arrays.asList(SkillFactory.PURSUIT)));\n levelUpSkills.put(25, new ArrayList<Integer>(Arrays.asList(SkillFactory.SPARK)));\n levelUpSkills.put(31, new ArrayList<Integer>(Arrays.asList(SkillFactory.STOMP)));\n levelUpSkills.put(36, new ArrayList<Integer>(Arrays.asList(SkillFactory.DISCHARGE)));\n levelUpSkills.put(42, new ArrayList<Integer>(Arrays.asList(SkillFactory.AGILITY)));\n levelUpSkills.put(47, new ArrayList<Integer>(Arrays.asList(SkillFactory.WILD_CHARGE)));\n levelUpSkills.put(53, new ArrayList<Integer>(Arrays.asList(SkillFactory.THRASH)));\n //58 ION DELUGE\n }",
"@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n beginnerSkills.add(SkillFactory.VICEGRIP);\n beginnerSkills.add(SkillFactory.STRING_SHOT);\n beginnerSkills.add(SkillFactory.MUD_SLAP);\n beginnerSkills.add(SkillFactory.BITE);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(4, new ArrayList<Integer>(Arrays.asList(SkillFactory.STRING_SHOT)));\n levelUpSkills.put(7, new ArrayList<Integer>(Arrays.asList(SkillFactory.MUD_SLAP)));\n levelUpSkills.put(10, new ArrayList<Integer>(Arrays.asList(SkillFactory.BITE)));\n levelUpSkills.put(13, new ArrayList<Integer>(Arrays.asList(SkillFactory.BUG_BITE)));\n levelUpSkills.put(16, new ArrayList<Integer>(Arrays.asList(SkillFactory.SPARK)));\n levelUpSkills.put(19, new ArrayList<Integer>(Arrays.asList(SkillFactory.ACROBATICS)));\n levelUpSkills.put(25, new ArrayList<Integer>(Arrays.asList(SkillFactory.CRUNCH)));\n levelUpSkills.put(31, new ArrayList<Integer>(Arrays.asList(SkillFactory.X_SCISSOR)));\n levelUpSkills.put(37, new ArrayList<Integer>(Arrays.asList(SkillFactory.DIG)));\n levelUpSkills.put(43, new ArrayList<Integer>(Arrays.asList(SkillFactory.DISCHARGE)));\n levelUpSkills.put(49, new ArrayList<Integer>(Arrays.asList(SkillFactory.IRON_DEFENSE)));\n initEvolutionSkills();\n }",
"@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n beginnerSkills.add(SkillFactory.ICE_FANG);\n beginnerSkills.add(SkillFactory.FIRE_FANG);\n beginnerSkills.add(SkillFactory.THUNDER_FANG);\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.SAND_ATTACK);\n beginnerSkills.add(SkillFactory.BITE);\n beginnerSkills.add(SkillFactory.YAWN);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(7, new ArrayList<Integer>(Arrays.asList(SkillFactory.BITE)));\n levelUpSkills.put(13, new ArrayList<Integer>(Arrays.asList(SkillFactory.YAWN)));\n List<Integer> thirteen = new ArrayList<Integer>();\n thirteen.add(SkillFactory.TAKE_DOWN);\n thirteen.add(SkillFactory.DIG);\n levelUpSkills.put(19, thirteen);\n levelUpSkills.put(25, new ArrayList<Integer>(Arrays.asList(SkillFactory.SAND_TOMB)));\n levelUpSkills.put(31, new ArrayList<Integer>(Arrays.asList(SkillFactory.CRUNCH)));\n levelUpSkills.put(40, new ArrayList<Integer>(Arrays.asList(SkillFactory.EARTHQUAKE)));\n levelUpSkills.put(50, new ArrayList<Integer>(Arrays.asList(SkillFactory.DOUBLE_EDGE)));\n levelUpSkills.put(60, new ArrayList<Integer>(Arrays.asList(SkillFactory.FISSURE)));\n }",
"public void callSkill(L2Skill skill, L2Character... targets)\r\n\t{\r\n\t\tL2Weapon activeWeapon = getActiveWeaponItem();\r\n\r\n\t\tL2PcInstance player = getActingPlayer();\r\n\r\n\t\tfor (L2Object trg : targets)\r\n\t\t{\r\n\t\t\tif (player != null && trg instanceof L2PcInstance && Config.SIEGE_ONLY_REGISTERED)\r\n\t\t\t{\r\n\t\t\t\tif (!((L2PcInstance) trg).canBeTargetedByAtSiege(player))\r\n\t\t\t\t{\r\n\t\t\t\t\t//quick fix should be just removed from targetlist\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (trg instanceof L2Character)\r\n\t\t\t{\r\n\t\t\t\t// Set some values inside target's instance for later use\r\n\t\t\t\tL2Character target = (L2Character) trg;\r\n\r\n\t\t\t\t// Check Raidboss attack and\r\n\t\t\t\t// check buffing chars who attack raidboss. Results in mute.\r\n\t\t\t\tL2Character targetsAttackTarget = null;\r\n\t\t\t\tL2Character targetsCastTarget = null;\r\n\t\t\t\tif (target.hasAI())\r\n\t\t\t\t{\r\n\t\t\t\t\ttargetsAttackTarget = target.getAI().getAttackTarget();\r\n\t\t\t\t\ttargetsCastTarget = target.getAI().getCastTarget();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!Config.ALT_DISABLE_RAIDBOSS_PETRIFICATION\r\n\t\t\t\t&& getSkillLevel(L2Boss.BOSS_PENALTY_RESISTANCE) == -1\r\n\t\t\t\t&& ((target.isRaid() && getLevel() > target.getLevel() + 8) || (!skill.isOffensive() && targetsAttackTarget != null && targetsAttackTarget.isRaid()\r\n\t\t\t\t&& targetsAttackTarget.getAttackByList().contains(target) // has attacked raid\r\n\t\t\t\t&& getLevel() > targetsAttackTarget.getLevel() + 8) || (!skill.isOffensive() && targetsCastTarget != null && targetsCastTarget.isRaid()\r\n\t\t\t\t&& targetsCastTarget.getAttackByList().contains(target) // has attacked raid\r\n\t\t\t\t&& getLevel() > targetsCastTarget.getLevel() + 8 )))\r\n\t\t\t\t{\r\n\t\t\t\t\tif (skill.isMagic())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tL2Skill tempSkill = SkillTable.getInstance().getInfo(L2Boss.BOSS_PENALTY_SILENCE, 1);\r\n\t\t\t\t\t\tif (tempSkill != null)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tabortAttack();\r\n\t\t\t\t\t\t\tabortCast();\r\n\t\t\t\t\t\t\tgetAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);\r\n\t\t\t\t\t\t\ttempSkill.getEffects(target, this);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t_log.warn(\"Skill \" + L2Boss.BOSS_PENALTY_SILENCE + \" at level 1 is missing in DP.\");\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\tL2Skill tempSkill = SkillTable.getInstance().getInfo(L2Boss.BOSS_PENALTY_PETRIFICATION, 1);\r\n\t\t\t\t\t\tif (tempSkill != null)\r\n {\r\n\t\t\t\t\t\t\tabortAttack();\r\n\t\t\t\t\t\t\tabortCast();\r\n\t\t\t\t\t\t\tgetAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);\r\n\t\t\t\t\t\t\ttempSkill.getEffects(target, this);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t_log.warn(\"Skill \" + L2Boss.BOSS_PENALTY_PETRIFICATION + \" at level 1 is missing in DP.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Check if over-hit is possible\r\n if (skill.isOverhit())\r\n\t\t\t\t{\r\n\t\t\t\t\tif (target instanceof L2Attackable)\r\n\t\t\t\t\t\t((L2Attackable) target).overhitEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (ChanceSkillList.canTriggerByCast(this, target, skill))\r\n\t\t\t\t{\r\n\t\t\t\t\t// Launch weapon Special ability skill effect if available\r\n\t\t\t\t\tif (activeWeapon != null)\r\n\t\t\t\t\t\tactiveWeapon.getSkillEffectsByCast(this, target, skill);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Maybe launch chance skills on us\r\n\t\t\t\t\tif (_chanceSkills != null)\r\n\t\t\t\t\t\t_chanceSkills.onSkillHit(target, false, skill);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Maybe launch chance skills on target\r\n\t\t\t\t\tif (target.getChanceSkills() != null)\r\n\t\t\t\t\t\ttarget.getChanceSkills().onSkillHit(this, true, skill);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Launch the magic skill and calculate its effects\r\n\t\tSkillHandler.getInstance().useSkill(this, skill, targets);\r\n\r\n\t\tif (skill.useSpiritShot() && !skill.hasEffectWhileCasting())\r\n\t\t\tuseSpiritshotCharge();\r\n\r\n\t\trechargeShot();\r\n\r\n\t\tif (player != null)\r\n\t\t{\r\n\t\t\tfinal boolean isAggroReducingSkill = skill.getSkillType() == L2SkillType.AGGREMOVE\r\n\t\t\t\t\t|| skill.getSkillType() == L2SkillType.AGGREDUCE\r\n\t\t\t\t\t|| skill.getSkillType() == L2SkillType.AGGREDUCE_CHAR;\r\n\t\t\t\r\n\t\t\tfor (L2Character target : targets)\r\n\t\t\t{\r\n\t\t\t\tfinal L2PcInstance targetPlayer = L2Object.getActingPlayer(target);\r\n\t\t\t\t\r\n\t\t\t\t// EVT_ATTACKED and PvPStatus\r\n\t\t\t\tif (skill.isNeutral())\r\n\t\t\t\t{\r\n\t\t\t\t\t// no flags\r\n\t\t\t\t}\r\n\t\t\t\telse if (skill.isOffensive())\r\n\t\t\t\t{\r\n\t\t\t\t\tif (targetPlayer != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Signets are a special case, casted on target_self but don't harm self\r\n\t\t\t\t\t\tif (skill.getSkillType() != L2SkillType.SIGNET && skill.getSkillType() != L2SkillType.SIGNET_CASTTIME)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (!isAggroReducingSkill)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t// notify target AI about the attack\r\n\t\t\t\t\t\t\t\ttarget.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// attack of the own pet does not flag player (and vice versa)\r\n\t\t\t\t\t\t\t// triggering trap not flag trap owner\r\n\t\t\t\t\t\t\tif (player != targetPlayer && !(this instanceof L2Trap))\r\n\t\t\t\t\t\t\t\tplayer.updatePvPStatus(targetPlayer);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (target instanceof L2Attackable)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (!isAggroReducingSkill)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tswitch (skill.getId())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcase 51: // Lure\r\n\t\t\t\t\t\t\t\tcase 511: // Temptation\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t// add attacker into list\r\n\t\t\t\t\t\t\t\t\ttarget.addAttackerToAttackByList(this);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// notify target AI about the attack\r\n\t\t\t\t\t\t\ttarget.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, this);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif (targetPlayer != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Casting non offensive skill on player with pvp flag set or with karma\r\n\t\t\t\t\t\tif (player != targetPlayer && (targetPlayer.getPvpFlag() > 0 || targetPlayer.getKarma() > 0))\r\n\t\t\t\t\t\t\tplayer.updatePvPStatus();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (target instanceof L2Attackable)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tswitch (skill.getSkillType())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcase SUMMON:\r\n\t\t\t\t\t\t\tcase BEAST_FEED:\r\n\t\t\t\t\t\t\tcase UNLOCK:\r\n\t\t\t\t\t\t\tcase DELUXE_KEY_UNLOCK:\r\n\t\t\t\t\t\t\tcase HEAL_MOB:\r\n\t\t\t\t\t\t\tcase MAKE_KILLABLE:\r\n\t\t\t\t\t\t\tcase MAKE_QUEST_DROPABLE:\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\tplayer.updatePvPStatus();\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tnotifyMobsAboutSkillCast(skill, targets);\r\n\t\t}\r\n\t}",
"public void apply(){\n\t\tthis.itemInteractions();\n\t\tthis.enemyInteractions();\n\t\tthis.tileInteractions();\n\t\tthis.bulletInteractions();\n\t}",
"public void setSkills(String skills) {\n this.skills = skills;\n }",
"public void setSkills(java.lang.String skills) {\n this.skills = skills;\n }",
"public final void enableAllSkills()\r\n\t{\r\n\t\tif (_log.isDebugEnabled())\r\n\t\t\t_log.debug(\"all skills enabled\");\r\n\t\t_allSkillsDisabled = false;\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns number of "sup" element | public int sizeOfSupArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SUP$4);
}
} | [
"protected long doGetNumberOfSupertypes() {\r\n\t\treturn getParentIndex().getSupertypes().size();\r\n\t}",
"org.apache.xmlbeans.XmlString xgetCount();",
"int getLimite_sup();",
"int getElementCount();",
"Integer nbElements();",
"public int getTagCount();",
"int getUpCnt();",
"org.apache.xmlbeans.XmlInt xgetTotalProductCount();",
"Long getNumberOfElement();",
"void countTagStatistics(){\t\n\t\thtmlParsed.traverse(new NodeVisitor() {\n\t\t\tdouble count = 0.;\n\t\t\tString tagName = \"\";\n\t\t public void head(Node node, int depth) {\n\t\t \tif (node instanceof Element) {\n\t\t \t\ttagName = ((Element) node).tagName();\n\t\t \t\tif(countTags.containsKey(tagName)){\n\t\t \t\t\tcount = countTags.get(tagName) + 1.;\n\t\t \t\t\tcountTags.put(tagName, count);\n\t\t \t\t}\n\t\t \t\telse if(tagName.matches(\"^[a-zA-Z:]+\"))\n\t\t \t\t\t\tcountTags.put(tagName, 1.);\n\t\t \t}\n\t\t }\n\t\t public void tail(Node node, int depth) {\n\t\t }\n\t\t});\t\n\t\t\t\n\t}",
"int getSuperClassesCount();",
"public NM getPsl14_NumberOfItemsPerUnit() { \r\n\t\tNM retVal = this.getTypedField(14, 0);\r\n\t\treturn retVal;\r\n }",
"protected long doGetNumberOfSupertypes(Topic type) {\r\n\t\treturn getParentIndex().getSupertypes(type).size();\r\n\t}",
"@Basic\n @Override\n public final int getNbOccurrencesOf(Object element) {\n // Re-implementation for reasons of efficiency.\n return (getRootElement().equals(element) ? 1 : 0);\n }",
"public int calculateCountExpression() {\r\n int count = 1;\r\n String countEx = this.getValue();\r\n if (countEx != null) {\r\n// Element parent = (Element)this.getParent();\r\n// if (parent != null) {\r\n// parent.removeAttribute(parent.getAttribute(CountExpressionAttribute.NAME));\r\n// }\r\n if (countEx.startsWith(\"gaussian\")) {\r\n countEx = countEx.substring(\"gaussian\".length());\r\n int[] counts = parseCount(countEx);\r\n if (counts.length != 2 || counts[0] <= 3 || counts[1] < 1 || \r\n counts[0] / counts[1] < 3) {\r\n throw new RuntimeException(\"Bad gaussian: \"+countEx);\r\n }\r\n throw new RuntimeException(\"gaussian NYI\");\r\n } else if (countEx.startsWith(\"range\")) {\r\n countEx = countEx.substring(\"range\".length());\r\n int[] counts = parseCount(countEx);\r\n if (counts.length != 2 || counts[0] <= 0 || counts[0] >= counts[1]) {\r\n throw new RuntimeException(\"Bad range: \"+countEx);\r\n }\r\n double mid2 = (counts[1] + counts[0])/2.;\r\n double delta2 = (counts[1] - counts[0])/2.;\r\n double dd = mid2 + delta2 * (0.5 - Math.random());\r\n count = (int) Math.round(dd);\r\n } else if (countEx.startsWith(S_STAR)) {\r\n countEx = countEx.substring(S_STAR.length());\r\n int[] counts = parseCount(countEx);\r\n if (counts.length != 1) {\r\n throw new RuntimeException(\"Bad range: \"+countEx);\r\n }\r\n count = counts[0];\r\n } else {\r\n throw new RuntimeException(\"Bad count expression: \"+countEx);\r\n }\r\n }\r\n return count;\r\n }",
"int getTagSize();",
"public String getSupNo() {\n return supNo;\n }",
"String getSuperscript();",
"int getScaleCount();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ merges the source to target by only copyinng the promitive datatypes TODO add ignore id and version fields | public static Object merge(Object source, Object target) {
for (Field field : ReflectionUtils.getAllFields(source.getClass())) {
if (!DataType.DEFAULT.equals(ReflectionUtils.getDataType(field))) {
mergeField(source, target, field);
}
}
return target;
} | [
"boolean updateBaseIncludeNull(TVoPriVo source, TVoPriVo target);",
"public Navajo merge(Navajo with) throws NavajoException;",
"void copyMetasToProperties( Object sourceAndTarget );",
"void copyMetasToProperties( Object source, Object target );",
"void merge();",
"@Override\n protected void mergeModelBase_Repositories( ModelBase target, ModelBase source, boolean sourceDominant,\n Map<Object, Object> context )\n {\n List<Repository> src = source.getRepositories();\n if ( !src.isEmpty() )\n {\n List<Repository> tgt = target.getRepositories();\n Map<Object, Repository> merged = new LinkedHashMap<Object, Repository>( ( src.size() + tgt.size() ) * 2 );\n \n List<Repository> dominant, recessive;\n if ( sourceDominant )\n {\n dominant = src;\n recessive = tgt;\n }\n else\n {\n dominant = tgt;\n recessive = src;\n }\n \n for ( Iterator<Repository> it = dominant.iterator(); it.hasNext(); )\n {\n Repository element = it.next();\n Object key = getRepositoryKey( element );\n merged.put( key, element );\n }\n \n for ( Iterator<Repository> it = recessive.iterator(); it.hasNext(); )\n {\n Repository element = it.next();\n Object key = getRepositoryKey( element );\n if ( !merged.containsKey( key ) )\n {\n merged.put( key, element );\n }\n }\n \n target.setRepositories( new ArrayList<Repository>( merged.values() ) );\n }\n }",
"void copyPropertiesToMetas( Object source, Object target );",
"public static void copyPropertiesWithOnlyPopulated(Object src, Object target) {\n\n\n BeanUtils.copyProperties(src, target,getNullPropertyNames(src));\n }",
"void merge(HeapStruct heap);",
"public abstract void merge(Statistics obj);",
"@Override\n\tprotected void merge(HashSet<Value> source1, HashSet<Value> source2, HashSet<Value> dest) {\n\t\t// Set union\n\t\tdest.clear();\n\t\tdest.addAll(source1);\n\t\tdest.addAll(source2);\n\t}",
"public T merge ( T object );",
"Merge createMerge();",
"@SuppressWarnings( \"unchecked\" )\n\tprivate Object convertToPObjects( Object sourceObject )\n\t{\n\t\tObject targetObject = sourceObject;\n\t\t\n\t\tif ( sourceObject != null )\n\t\t{\n\t\t\tif ( sourceObject instanceof PObjectOID )\n\t\t\t{\n\t\t\t\ttargetObject = convertPObjectOIDToPObject( (PObjectOID)sourceObject );\n\t\t\t}\n\t\t\telse if ( sourceObject instanceof Collection )\n\t\t\t{\n\t\t\t\tCollection< ? > sourceObjectAsCollection = (Collection< ? >)sourceObject;\n\t\t\t\tIterator< ? > iter = sourceObjectAsCollection.iterator();\n\t\t\t\t\n\t\t\t\tif ( iter.hasNext() && iter.next() instanceof PObjectOID )\n\t\t\t\t\ttargetObject = convertPObjectOIDsToPObjects( (Collection< PObjectOID >)sourceObjectAsCollection );\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn targetObject;\n\t}",
"@Test\n public void testMergeBasic() throws Exception {\n Builder b1 = new Builder(\"default\")\n .addSchemaField(\"field_1\", Type.STRING)\n .addSchemaField(\"field_2\", Type.BOOLEAN);\n Builder b2 = new Builder(\"default\")\n .addSchemaField(\"field_3\", Type.BYTE)\n .addSchemaField(\"field_4\", Type.STRING);\n\n Stream s1 = b1.build();\n Stream s2 = b2.build();\n\n Stream sm = s1.merge(s2);\n Schema s = sm.getSchema();\n\n // Assert that two different schemae are merged.\n Assert.assertEquals(4, s.size());\n Assert.assertTrue(s.containsKey(\"field_1\"));\n Assert.assertTrue(s.containsKey(\"field_2\"));\n Assert.assertTrue(s.containsKey(\"field_3\"));\n Assert.assertTrue(s.containsKey(\"field_4\"));\n\n // Assert that the invoker's streamId is the same.\n Assert.assertEquals(\"default\", sm.getStreamId());\n\n // Assert that the invoker's 'direct' flag is the same.\n Assert.assertFalse(sm.isDirect());\n }",
"private void copyFields(NetcdfRecordInfo src, Set<String> excludedFields) {\n Iterator<String> keyIter = src.beanMap.keyIterator();\n Object val;\n while (keyIter.hasNext()) {\n String key = keyIter.next();\n if (this.beanMap.getWriteMethod(key) != null\n && !excludedFields.contains(key)) {\n val = src.beanMap.get(key);\n if (val != null) {\n this.beanMap.put(key, val);\n }\n }\n }\n }",
"void copyPropertiesToMetas( Object sourceAndTarget, String... blackList );",
"void copyMetasToProperties( Object source, Object target, String... blackList );",
"RefDataValueProxy merge(final RefDataValueProxy additionalProxy);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Methode qui appelle la methode "void closeStage (VBox elmStage)". Elle permet de fermer la fenetre sur laquelle se trouve l'utilisateur. | protected void fermerFenetre(VBox elmStage) {
closeStage(elmStage);
} | [
"public void closeAddPatientUI() {\r\n Stage stage = (Stage) saveButton.getScene().getWindow();\r\n stage.close();\r\n }",
"@FXML\r\n protected void close_openDataStage() {\r\n Stage stage = (Stage) btnClose.getScene().getWindow();\r\n stage.close();\r\n }",
"public void showSignUpUserDialog(){\n try {\n // Load the fxml file and create a new stage for the popup dialog.\n FXMLLoader loader = new FXMLLoader(getClass().getClassLoader().getResource(\"FXML/SignUpUserDialog.fxml\"));\n System.out.println(loader.getLocation());\n AnchorPane page = (AnchorPane) loader.load();\n\n // Create the dialog Stage.\n Stage dialogStage = new Stage();\n dialogStage.setTitle(\"Sign Up new User\");\n dialogStage.initModality(Modality.WINDOW_MODAL);\n dialogStage.initOwner(primaryStage);\n Scene scene = new Scene(page);\n dialogStage.setScene(scene);\n\n dialogStage.getIcons().add(new Image(\"file:../ZHAW-SharingApp-2020/src/main/resources/images/iconLogin.png\"));\n\n // Set the person into the controller.\n SignUpUserDialogController controller = loader.getController();\n controller.setDialogStage(dialogStage);\n controller.setUserService(this.userService); /*Sets the reference of the UserService to communicate with the server*/\n\n // Show the dialog and wait until the user closes it\n dialogStage.showAndWait();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void displayPopupUserInfo(User usr){\n Stage popup = new Stage();\n popup.initModality(Modality.APPLICATION_MODAL);\n popup.setTitle(\"User information\");\n\n Label fname = new Label(\"First name : \" + usr.getFirstName());\n Label lname = new Label(\"Last name : \" + usr.getLastName());\n Label isManager = new Label(\"Is Manager : \" + usr.getIsManager().toString());\n\n Button b = new Button(\"Close\");\n b.setOnAction(actionEvent -> popup.close());\n VBox layout = new VBox(10);\n layout.getChildren().addAll(fname,lname,isManager,b);\n layout.setAlignment(Pos.CENTER);\n\n Scene scene = new Scene(layout,200,150);\n popup.setScene(scene);\n popup.showAndWait();\n\n }",
"public void closeBtnClicked(){\n Stage stage = (Stage) closeBtn.getScene().getWindow();\n stage.close();\n }",
"public void delete_stage() {\r\n\t\tSelectStageDialog s = new SelectStageDialog(this,true);\r\n\t\ts.setAlwaysOnTop(true);\r\n\t\ts.setLocationRelativeTo(null);\r\n\t\ts.setVisible(true);\r\n\t}",
"@FXML\r\n\tvoid openCreateUser(ActionEvent event) {\r\n\t\tParent root = null;\r\n\t\tnewWindow = new Stage();\r\n\t\ttry {\r\n\t\t\troot = FXMLLoader.load(getClass().getResource(\"3.1-AddISUsersScreen.fxml\"));\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tISUsers = new Scene(root);\r\n\t\tnewWindow.setTitle(\"Create IS User\");\r\n\t\tnewWindow.setScene(ISUsers);\r\n\t\tnewWindow.setResizable(false);\r\n\t\tnewWindow.initOwner((Stage) ((Node) event.getSource()).getScene().getWindow());\r\n\t\tnewWindow.initModality(Modality.WINDOW_MODAL);\r\n\t\tnewWindow.show();\r\n\t}",
"public void closeEvent() {\n\n Stage primaryStage = (Stage) mainCanvas.getScene().getWindow();\n primaryStage.close();\n }",
"public void initStage(Parent root, User user){\n LOGGER.info(\"Products window opening.\");\n this.user = user;\n Scene scene = new Scene(root);\n stage.setScene(scene);\n\n //Some properties of the stage\n stage.setTitle(\"Products\");\n stage.setResizable(false);\n stage.onCloseRequestProperty().set(this::handleCloseRequest);\n \n \n //El botón Edit (btn_edit) está deshabilitado.\n btn_edit.setDisable(true);\n btn_edit.setOnAction(this::handleButtonAction);\n \n //El botón Delete (btn_delete) está deshabilitado.\n btn_delete.setDisable(true);\n btn_delete.setOnAction(this::handleButtonAction);\n \n //El botón Search (btn_search) está habilitado.\n btn_search.setDisable(false);\n btn_search.setOnAction(this::handleButtonAction);\n\n //El botón New (btn_new) está habilitado.\n btn_new.setDisable(false);\n btn_new.setOnAction(this::handleButtonAction);\n\n /*Los campos Name (txt_name), Last date (dat_date) y opciones de\n menu Logo(meb_main), Products(meb_products), Utensils(meb_utensils), \n Projects(meb_projects), Profile(meb_profile), LogOut(meb_logout).*/\n txt_name.setDisable(false);\n txt_name.textProperty().addListener(this::handleTextChange);\n //Set to able the DatePicker if there is time\n meb_main.setDisable(false);\n meb_main.setOnAction(this::handleButtonAction);\n meb_products.setDisable(false);\n meb_products.setOnAction(this::handleButtonAction);\n meb_utensils.setDisable(false);\n meb_utensils.setOnAction(this::handleButtonAction);\n meb_projects.setDisable(false);\n meb_projects.setOnAction(this::handleButtonAction);\n meb_userlist.setDisable(false);\n meb_userlist.setOnAction(this::handleButtonAction);\n meb_profile.setDisable(false);\n meb_profile.setOnAction(this::handleButtonAction);\n meb_logout.setDisable(false);\n meb_logout.setOnAction(this::handleButtonAction);\n \n /*Campo Danger (spl_danger) está habilitado y cargado con los niveles \n de peligro.*/\n loadDanger();\n \n /*Campo privilege(txt_privilege) está habilitado y cargado con el \n privilegio del usuario conectado.*/\n lbl_privilege.setText(this.user.getPrivilege().toString());\n \n /*Opción de menú User List(meb_userlist) visible y habilitado si \n los privilegios del usuario conectado son de “RESPONSIBLE”.*/\n meb_userlist.setVisible(true);\n meb_userlist.setDisable(true);\n if(user.getPrivilege().equals(UserPrivilege.RESPONSIBLE))\n meb_userlist.setDisable(false);\n \n /*Tabla productos(tbv_table) está habilitado y carga los datos \n de todos los productos.*/\n //Method to load the table depending of the parameters\n tbv_table.setDisable(false);\n tbv_table.getSelectionModel().selectedItemProperty()\n .addListener(this::handleProductSelectedChanged);\n //Table factories\n tbc_name.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n tbc_description.setCellValueFactory(\n new PropertyValueFactory<>(\"description\"));\n tbc_danger.setCellValueFactory(new PropertyValueFactory<>(\"danger\"));\n tbc_amount.setCellValueFactory(new PropertyValueFactory<>(\"amount\"));\n //Load the table with data\n loadTable(null,\"ANY\");\n \n //Se enfoca el campo Name(txt_name).\n txt_name.requestFocus();\n\n //Show the stage\n stage.show();\n }",
"@FXML\r\n private void handleButtonLogOut() {\r\n sessionContent.remove(\"activeId\");\r\n user = null;\r\n MobileApplication.getInstance().switchView(LOGIN_VIEW);\r\n }",
"protected void creationUserControlTop(VBox elmStage, String nomPage){\n try {\n MonUserControlTop Uc = new MonUserControlTop(nomPage);\n elmStage.getChildren().add(Uc);\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@FXML\n public void newUser(ActionEvent event) {\n client.newUser.Main.show(Main.stage);\n }",
"public void handleDelete(ActionEvent event) throws InterruptedException{\r\n \t tempUser.removeUser(currentUser);\r\n \t feedback_Manage.setText(\"User Remove Successful!\");\r\n \t this.changeView(\"../view/Login.fxml\");\r\n }",
"@FXML\r\n private void handleSubmitButton() {\r\n Database_Statements.removeUser(employeeNumberField.getText().trim());\r\n }",
"@FXML\n public void exit(){\n try {\n InventoryData.getInstance().storePartIdIndex();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Stage stage = (Stage) cancelButton.getScene().getWindow();\n stage.close();\n PassableData.setIsModifyPart(false);\n }",
"public void initStage(Parent root) {\n LOGGER.info(\"Initializing user View stage.\");\n\n Scene scene = new Scene(root);//Crear la escena a la raiz del nodo root.\n stage = new Stage();\n //Asociamos la escena a la ventana\n stage.setScene(scene);\n //Vamos hacerla modal\n stage.initModality(Modality.APPLICATION_MODAL);\n \n //Le vamos a dar un titulo a la ventana. \n stage.setTitle(\"User View\");\n\n //Para que la ventana no sea redimensionable\n stage.setResizable(false);\n\n // Configurar los manejadores de eventos de la ventana\n stage.setOnShowing(this::handleWindowShowing);\n\n //Para ver la ventana\n stage.show();\n }",
"public static <T extends Labeled> void goBackToLogInFormProtoType(T label, Stage stageInstance) {\r\n label.setOnMouseClicked(new EventHandler<MouseEvent>() {\r\n @Override\r\n public void handle(MouseEvent event) {\r\n stageInstance.hide();\r\n try {\r\n LoginFormProtoType.getInstance().show();\r\n // when going back to LoginFormProtoType, play music again\r\n audio.play();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.out.println(\"Can't Logout, Reason: \" + e.getMessage());\r\n }\r\n }\r\n });\r\n }",
"public void cancelButton(){\n Stage stage = (Stage) cancel_button.getScene().getWindow();\n stage.close();\n }",
"public void display(CardHolder currUser, Stop currStop) {\n Stage chooseStage = setSize();\n chooseStage.initModality(Modality.APPLICATION_MODAL);\n GridPane gridOfChoose = new GridPane();\n gridOfChoose.setPadding(new Insets(50));\n gridOfChoose.setVgap(8);\n gridOfChoose.setHgap(10);\n\n addLabelGrid(\"Choose your card:\", gridOfChoose, 0, 0);\n ChoiceBox wallet = addWalletChoiceBox(currUser);\n GridPane.setConstraints(wallet, 1, 0);\n gridOfChoose.getChildren().add(wallet);\n\n //Confirm button will do the choose card process base on the input of choice box wallet\n //and goes to vehicle type window to find whether the user tap in the subway or bus\n Button confirm = addButtonGrid(\"Confirm\", gridOfChoose, 0, 8);\n confirm.setOnAction(e -> {\n int id = (int) wallet.getValue();\n Card currCard = currUser.getWallet().get(id);\n chooseStage.close();\n VehicleTypeBox typePage = new VehicleTypeBox();\n typePage.display(currCard, currStop);\n });\n\n //back button will return back to station window and close current card choose window\n Button back = addButtonGrid(\"back\", gridOfChoose, 1, 8);\n back.setOnAction(\n e -> {\n e.consume();\n chooseStage.close();\n StationBox stationPage = new StationBox();\n stationPage.display(currUser, currStop);\n });\n\n chooseStage.setTitle(\"Choose Card\");\n Scene chooseScene = new Scene(gridOfChoose, 1024, 720);\n chooseStage.setScene(chooseScene);\n chooseStage.show();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new bound error help. | public BoundErrorHelp() {
} | [
"public ErrorClass() {\r\n\r\n\t}",
"public HelpOnlyException() {\n\t super(\"User only asked for help\");\n\t}",
"PointerByReference rs2_create_error(String what, String name, String args, int type);",
"public static IErrorDialogBuilder createErrorBuilder() {\r\n return new ErrorDialogBuilder();\r\n }",
"protected BindingException( VarBindingDef binding)\n {\n setBinding( binding);\n }",
"Help createHelp();",
"public ScrObjErrorMsg() {\n\t\tthis(\"SCR_OBJ_ERROR_MSG\", null);\n\t}",
"private EmbedBuilder getErrorEmbed() {\n EmbedBuilder errorEmbed = new EmbedBuilder();\n errorEmbed.setColor(Color.RED);\n errorEmbed.setTitle(\"\\u2757 Error \\u2757\"); \n errorEmbed.setDescription(\"Invalid parameters. \\nFor more clarification please see !help for addition commands\");\n return errorEmbed;\n }",
"Diagnostic createDiagnostic();",
"public AlreadyBoundFactoryException() {\n\t}",
"public ErrorGUI(int num) {\n\t\terror = new Error();\n\t\tthis.generateMessage(num);\n\n\t}",
"public BindingFault createBindingFault();",
"ExceptionDef createExceptionDef();",
"public ErrorMessage() {\r\n\t\tsuper();\r\n\t}",
"protodef.b_error.info getError();",
"private ModelValidationException constructClassException (String className, \n\t\tObject relatedField, String keyBase)\n\t{\n\t\treturn constructClassException(ModelValidationException.ERROR, \n\t\t\tclassName, relatedField, keyBase);\n\t}",
"public BoundaryViolationException() {\n }",
"public abstract String getErrorBrief();",
"public ScoreBowlingValidationException(String pErrorKey, String pExceptionMsg) {\n super(pExceptionMsg);\n this.mErrorKey = pErrorKey; \n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Contexts: TypeGeneric returns TypeGeneric Constraint: (name=ID elements+=Element elements+=Element) | protected void sequence_TypeGeneric(ISerializationContext context, TypeGeneric semanticObject) {
genericSequencer.createSequence(context, semanticObject);
} | [
"public interface Generified {\n\n\n /**\n * @return The information about this entity generification.<br>\n * The generics metadata for this element\n */\n Generics generic();\n\n}",
"private void addTypeArguments(Error error, Action action) {\n\t\tEGenericTypeImpl genericType = (EGenericTypeImpl) error.getContexts().get(0);\n\t\tgenericType.getETypeArguments().add(genericType);\n\t\taction.setId(88888);\n\t\taction.setName(\"getETypeArguments().add(genericType)\");\n\t}",
"public interface TypeContext<NAMETYPE extends Name> {\n\n /**\n * Returns the type of the tensor with this name.\n *\n * @return returns the type of the tensor which will be returned by calling getTensor(name)\n * or null if getTensor will return null.\n */\n TensorType getType(NAMETYPE name);\n\n /**\n * Returns the type of the tensor with this name by converting from a string name.\n *\n * @return returns the type of the tensor which will be returned by calling getTensor(name)\n * or null if getTensor will return null.\n */\n TensorType getType(String name);\n\n\n}",
"Set<GraphQLType> buildAdditionalTypes(BuildContext buildCtx) {\n TypeDefinitionRegistry typeRegistry = buildCtx.getTypeRegistry();\n\n Set<String> detachedTypeNames = getDetachedTypeNames(buildCtx);\n\n Set<GraphQLType> additionalTypes = new LinkedHashSet<>();\n // recursively record detached types on the ctx and add them to the additionalTypes set\n typeRegistry.types().values().stream()\n .filter(typeDefinition -> detachedTypeNames.contains(typeDefinition.getName()))\n .forEach(typeDefinition -> {\n TypeName typeName = TypeName.newTypeName().name(typeDefinition.getName()).build();\n\n if (typeDefinition instanceof InputObjectTypeDefinition) {\n if (buildCtx.hasInputType(typeDefinition) == null) {\n buildCtx.putInputType((GraphQLNamedInputType) buildInputType(buildCtx, typeName));\n }\n additionalTypes.add(buildCtx.inputGTypes.get(typeDefinition.getName()));\n } else {\n if (buildCtx.hasOutputType(typeDefinition) == null) {\n buildCtx.putOutputType(buildOutputType(buildCtx, typeName));\n }\n additionalTypes.add(buildCtx.outputGTypes.get(typeDefinition.getName()));\n }\n });\n\n typeRegistry.scalars().values().stream()\n .filter(typeDefinition -> detachedTypeNames.contains(typeDefinition.getName()))\n .forEach(scalarTypeDefinition -> {\n if (ScalarInfo.isGraphqlSpecifiedScalar(scalarTypeDefinition.getName())) {\n return;\n }\n\n if (buildCtx.hasInputType(scalarTypeDefinition) == null && buildCtx.hasOutputType(scalarTypeDefinition) == null) {\n buildCtx.putOutputType(buildScalar(buildCtx, scalarTypeDefinition));\n }\n if (buildCtx.hasInputType(scalarTypeDefinition) != null) {\n additionalTypes.add(buildCtx.inputGTypes.get(scalarTypeDefinition.getName()));\n } else if (buildCtx.hasOutputType(scalarTypeDefinition) != null) {\n additionalTypes.add(buildCtx.outputGTypes.get(scalarTypeDefinition.getName()));\n }\n });\n\n return additionalTypes;\n }",
"static Object resolveGeneric (FXLocal.Context context, Type typ) {\n if (typ instanceof ParameterizedType) {\n ParameterizedType ptyp = (ParameterizedType) typ;\n Type raw = ptyp.getRawType();\n Type[] targs = ptyp.getActualTypeArguments();\n if (raw instanceof Class) {\n String rawName = ((Class) raw).getName();\n if (FXClassType.SEQUENCE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return new FXSequenceType(context.makeTypeRef(targs[0]));\n }\n if (FXClassType.OBJECT_VARIABLE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return context.makeTypeRef(targs[0]);\n }\n if (FXClassType.SEQUENCE_VARIABLE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return new FXSequenceType(context.makeTypeRef(targs[0]));\n }\n if (rawName.startsWith(FXClassType.FUNCTION_CLASSNAME_PREFIX)) {\n FXType[] prtypes = new FXType[targs.length-1];\n for (int i = prtypes.length; --i >= 0; )\n prtypes[i] = context.makeTypeRef(targs[i+1]);\n FXType rettype;\n if (targs[0] == java.lang.Void.class)\n rettype = FXPrimitiveType.voidType;\n else\n rettype = context.makeTypeRef(targs[0]);\n return new FXFunctionType(prtypes, rettype);\n }\n }\n \n typ = raw;\n }\n if (typ instanceof WildcardType) {\n WildcardType wtyp = (WildcardType) typ;\n Type[] upper = wtyp.getUpperBounds();\n Type[] lower = wtyp.getLowerBounds();\n typ = lower.length > 0 ? lower[0] : wtyp.getUpperBounds()[0];\n if (typ instanceof Class) {\n String rawName = ((Class) typ).getName();\n // Kludge, because generics don't handle primitive types.\n FXType ptype = context.getPrimitiveType(rawName);\n if (ptype != null)\n return ptype;\n }\n return context.makeTypeRef(typ);\n }\n if (typ instanceof GenericArrayType) {\n FXType elType = context.makeTypeRef(((GenericArrayType) typ).getGenericComponentType());\n return new FXJavaArrayType(elType);\n }\n if (typ instanceof TypeVariable) {\n // KLUDGE\n typ = Object.class;\n }\n return typ;\n }",
"<C> TypeExp<C> createTypeExp();",
"void add_type( String name, TypeNil t ) { _scope.add_type(name,t); }",
"public <T extends java.lang.Object> scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.Attribute> attributesFor (scala.reflect.api.TypeTags.TypeTag<T> evidence$1) ;",
"WithFlexibleName withTypeVariables(ElementMatcher<? super Generic> matcher, Transformer<TypeVariableToken> transformer);",
"@Override\r\n \tprotected void appendClassGenericTypeVariables(Appendable appendable, ClassDescriptor inputClass)\r\n \t\t\tthrows IOException\r\n \t{\r\n \t\tArrayList<GenericTypeVar> genericTypeVars = inputClass.getGenericTypeVars();\r\n \t\tappendGenericTypeVariablesHelper(appendable, genericTypeVars, true);\r\n \t}",
"public Type createdType() {\n\t\tType result = elementType;\n\t\tfor (int i = 0; i < levels.size(); i++) {\n\t\t\tresult = new ArrayType(result, new NodeList<>());\n\t\t}\n\t\treturn result;\n\t}",
"@Test\n public void testAdd_int_GenericType() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n int expResult = 8;\n instance.add(2, 9);\n assertEquals(expResult, instance.size());\n }",
"TupleTypeElement createTupleTypeElement();",
"TypedLiteralType createTypedLiteralType();",
"@SuppressWarnings(\"deprecation\")\npublic interface TypeConstraintMappingContext<C> extends Constrainable<TypeConstraintMappingContext<C>>,\n\t\tConstraintMappingTarget,\n\t\tPropertyTarget,\n\t\tMethodTarget,\n\t\tConstructorTarget,\n\t\tAnnotationProcessingOptions<TypeConstraintMappingContext<C>>,\n\t\tAnnotationIgnoreOptions<TypeConstraintMappingContext<C>> {\n\n\t/**\n\t * Defines that all annotations for this type should be ignored.\n\t *\n\t * @return The current creational context following the method chaining pattern.\n\t */\n\tTypeConstraintMappingContext<C> ignoreAllAnnotations();\n\n\t/**\n\t * Defines the default group sequence for current type.\n\t *\n\t * @param defaultGroupSequence the default group sequence.\n\t *\n\t * @return The current creational context following the method chaining pattern.\n\t */\n\tTypeConstraintMappingContext<C> defaultGroupSequence(Class<?>... defaultGroupSequence);\n\n\t/**\n\t * Defines the default group sequence provider for the current type.\n\t *\n\t * @param defaultGroupSequenceProviderClass The default group sequence provider class.\n\t *\n\t * @return The current creational context following the method chaining pattern.\n\t */\n\tTypeConstraintMappingContext<C> defaultGroupSequenceProviderClass(\n\t\t\tClass<? extends DefaultGroupSequenceProvider<? super C>> defaultGroupSequenceProviderClass);\n}",
"EGenericType getELowerBound();",
"InstrumentedType withInterfaces(TypeList.Generic interfaceTypes);",
"private void addTypeableInstances() {\r\n \r\n if (currentModuleTypeInfo.isExtension()) {\r\n //don't add instances again for an adjunct module.\r\n return;\r\n }\r\n \r\n final ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n //this uses the fact that Prelude.Typeable is a public class, and all modules must import the Prelude.\r\n final TypeClass typeableTypeClass = currentModuleTypeInfo.getVisibleTypeClass(CAL_Prelude.TypeClasses.Typeable);\r\n \r\n SortedSet<TypeClass> constraintSet = TypeClass.makeNewClassConstraintSet();\r\n constraintSet.add(typeableTypeClass);\r\n constraintSet = Collections.unmodifiableSortedSet(constraintSet);\r\n \r\n for (int i = 0, nTypeConstructors = currentModuleTypeInfo.getNTypeConstructors(); i < nTypeConstructors; ++i) {\r\n \r\n final TypeConstructor typeCons = currentModuleTypeInfo.getNthTypeConstructor(i);\r\n \r\n //we only add a Typeable instance for type constructors all of whose type arguments have arity *.\r\n if (typeCons.getKindExpr().isSimpleKindChain()) {\r\n \r\n final int arity = typeCons.getTypeArity(); \r\n final TypeExpr[] args = new TypeExpr[arity];\r\n \r\n for (int j = 0; j < arity; ++j) {\r\n \r\n args[j] = TypeVar.makeTypeVar(null, constraintSet, false);\r\n }\r\n \r\n final TypeConsApp typeConsApp = new TypeConsApp(typeCons, args);\r\n \r\n final ClassInstance classInstance = new ClassInstance(currentModuleName, typeConsApp, typeableTypeClass, null, ClassInstance.InstanceStyle.INTERNAL);\r\n \r\n currentModuleTypeInfo.addClassInstance(classInstance);\r\n }\r\n } \r\n }",
"void store(ETypeParameter element);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to add translated phrases to the database. | public boolean insertTranslatedLanguages(String selectedPhrase,String selectedLanguage, String TranslatedWord ){
SQLiteDatabase db = this.getWritableDatabase();
ContentValues contentValues = new ContentValues();
contentValues.put(CHOSEN_LANGUAGE,selectedLanguage);
contentValues.put(CHOSEN_PHRASE,selectedPhrase);
contentValues.put(TRANSLATED_WORD,TranslatedWord);
long result = db.insert(TRANSLATED_PHRASES, null, contentValues);
return result != -1;
} | [
"void updatePhrases();",
"void addPhrase(String phrase);",
"@Override\n public void onCreate(SQLiteDatabase db) {\n db. execSQL (\" CREATE TABLE \" + TABLE_NAME + \" (\"\n + PHRASE + \" TEXT PRIMARY KEY NOT NULL );\");\n\n // creating a database to store all the languages available\n db. execSQL (\" CREATE TABLE \" + TABLE_LANGUAGES_NAME + \" (\"\n + NAME + \" TEXT PRIMARY KEY NOT NULL ,\" + CODE + \" TEXT\"+ \");\");\n\n // creating a database to store all the subscribed languages\n db.execSQL(\" CREATE TABLE \" + SELECTED_LANGUAGES + \" (\"\n + LANGUAGE_NAME + \" TEXT NOT NULL ,\"+ LANGUAGE_POSITION + \" INT NOT NULL\"+\" );\");\n\n // create a table to store translated words and the language\n db.execSQL(\" CREATE TABLE \"+ TRANSLATED_PHRASES+\" (\"\n + _ID + \" INTEGER PRIMARY KEY AUTOINCREMENT , \"\n + CHOSEN_LANGUAGE + \" TEXT NOT NULL , \"\n + CHOSEN_PHRASE + \" TEXT NOT NULL , \"\n + TRANSLATED_WORD + \" TEXT NOT NULL );\");\n\n // executing a rollback by using a transaction for inserting a large amount of data to the database\n // reference (add large amount of data in SQLite android)-https://stackoverflow.com/questions/27226105/add-large-amount-of-data-in-sqlite-android\n db.beginTransaction();\n try {\n insertLanguages(db);\n db.setTransactionSuccessful();\n }finally {\n db.endTransaction();\n }\n\n }",
"public void addPhrase(Phrase phrase){\n\t\tthis.phrases.add(phrase);\n\t}",
"public ScorePhrase() {\n\t\tmyPhrases.add(\"AND HE SCOOOOOOOOOOOOOOOOOOORESSS!!\");\n\t\tmyPhrases.add(\"Yes, yes, again, again, oh dear God, please, once more!\");\n\t\tmyPhrases.add(\"Thank you. When the world is mine, your death shall be quick and painless.\");\n\n\t\t// myPhrases.add();\n\t}",
"public void saveLanguageText(){\n\t\tsaveLanguageTextDeffered(true);\n\t}",
"public static void createListingTranslation(int listingId, String language){EtsyService.postService(\"/listings/\"+listingId+\"/translations/\"+language);}",
"public void addPhrases(String[] thePhrases, Mark marker) {\n for (String curPhrase : thePhrases) {\n Generex generex = new Generex(curPhrase);\n Iterator iterator = generex.iterator();\n int generatedStrings = 0;\n while (iterator.hasNext() && generatedStrings < this.maxGeneratedStrings) {\n String generatedString = iterator.next();\n System.out.println(\"GeneratedString \" + generatedStrings + \":\" + generatedString);\n generatedStrings++;\n }\n }\n }",
"public void addWords();",
"public abstract void addSentenceToWord(int sequenceid);",
"Builder addInLanguage(Text value);",
"public boolean insertData(String phrase){\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues contentValues = new ContentValues();\n contentValues.put(PHRASE,phrase);\n long result = db.insert(TABLE_NAME, null, contentValues);\n return result != -1;\n }",
"public void saveWord() {\n if (checkWordExists()) {\n return;\n }\n if (languageSelect.getValue() == null) {\n Notification.show(\"Select language\", Notification.Type.WARNING_MESSAGE);\n return;\n }\n String word = wordField.getValue().toLowerCase();\n Language lang = LanguageProvider.getLanguage((String) languageSelect.getValue());\n if (word.length() > 0) {\n Word newWord = WordFactory.getWord(\n WordProvider.getNextId(),\n word,\n LanguageProvider.getLanguage((String) languageSelect.getValue()),\n explanations.isEmpty() ? null : explanations\n );\n WordProvider.flush(newWord);\n Word testNewWord = WordProvider.getWord(newWord.getId());\n if (testNewWord != null && testNewWord.getWord().equals(newWord.getWord())) {\n Notification.show(\"Word \" + word + \" added\");\n window.close();\n }\n }\n }",
"public void add(ArrayList<String> phrase) {\t\t\r\n\t\tfor (int i = 0 ; i < phrase.size(); i++) {\r\n\t\t\tWordTrieNode cur = root;\r\n\t\t\tfor (int j = i; j < phrase.size(); j++) {\r\n\t\t\t\tString word = phrase.get(j);\r\n\t\t\t\tif (!cur.getMap().containsKey(word)) {\r\n\t\t\t\t\tcur.getMap().put(word, new WordTrieNode(word));\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcur = cur.getMap().get(word);\r\n\t\t\t\tcur.increaseFrequence();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void ini_Translations()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_Translations\");\r\n\t\tnew Translation(\"data\", FileType.Internal);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tTranslation.LoadTranslation(\"data/lang/en-GB/strings.ini\");\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void translate() throws FileNotFoundException {\n\t\t// Create object and store the filename to use\n\t\tTranslator t = new Translator(fileName, sentence);\n\t\tt.readCorpus();\n\t\tSystem.out.println(t.translate());\n\n\t}",
"private void SetTextInDb(SubtitleFile subtitleFile){\n String req = \"INSERT INTO `sous_titres`(`id_film`, `numero_sous_titre`, `texte`, `texte_traduit`, `start_time`, `end_time`) VALUES (?,?,?,?,?,?)\";\n PreparedStatement preparedStatement = null;\n\n try {\n //boucle de parcours de tous les sous-titres du fichier de sous-titres\n for (Subtitle subtitle : subtitleFile.getSubtitles()) {\n\n int idFilm = subtitleFile.getIdFilm();\n int number = subtitle.getNumber();\n String text = subtitle.getText();\n String translatedText = subtitle.getTranslatedText();\n String startTime = subtitle.getStartTime();\n String endTime = subtitle.getEndTime();\n preparedStatement = connection.prepareStatement(req);\n\n preparedStatement.setInt(1, idFilm);\n preparedStatement.setInt(2, number);\n preparedStatement.setString(3, text);\n preparedStatement.setString(4, translatedText);\n preparedStatement.setString(5, startTime);\n preparedStatement.setString(6, endTime);\n\n preparedStatement.executeUpdate();\n }\n\n\n } catch (SQLException e) {\n e.printStackTrace();\n System.out.println(\"SaveSubFilesInDB : fail\");\n }\n }",
"private void addWordToPhrase() {\n if (word.length() > 0) {\n if (phrase.length() > 0) {\n phrase.append(' ');\n }\n phrase.append(word);\n word = new StringBuilder();\n }\n }",
"private void updatephrase() {\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Push element on top of the stack. | @Override
public void push(E element)
{
stack.add(element, stack.getLength());
} | [
"public void push(E object) {stackList.insertAtFront(object);}",
"public void push(Object element){\n int temp = stack.size() - 1;\n stack.add(0, element);\n }",
"@Override\n\tpublic void push(T element) {\n\t\tif(top == stack.length) \n\t\t\texpandCapacity();\n\t\t\n\t\tstack[top] = element;\n\t\ttop++;\n\n\t}",
"public void push (T element)\r\n {\r\n if (size() == stack.length) \r\n expandCapacity();\r\n\r\n stack[top] = element;\r\n top++;\r\n }",
"@Override\n\t//Pushes an element to the top of the stack \n\t//A new stack is created out of the element added to the old stack as well as the old stack. \n\tpublic void push(T topElem) {\n\t\toldStack = new StackAsList(oldStack, this.topElem);\n\t\t\n\t\t//saving the new element as top element\n\t\tthis.topElem = topElem;\n\t}",
"public void push(E element) {\r\n \r\n StackNode newTop = new StackNode(element);\r\n \r\n newTop.link = topOfStack;\r\n \r\n topOfStack = newTop; \r\n \r\n count++; \r\n }",
"public void push(T element) {\n if(isFull()) {\n throw new IndexOutOfBoundsException();\n }\n this.stackArray[++top] = element;\n }",
"Stack<T> push(T ele);",
"public void push(E inValue)\n {\n stack.insertFirst(inValue);\n }",
"public void push (T element){\r\n stack[stackSize++] = element;\r\n if(stackSize > stack.length/2){\r\n resizeStack(stack.length*2);\r\n }\r\n }",
"@SuppressWarnings( \"unchecked\" )\n public void push( T theElement )\n {\n // increase array size if necessary\n if( top == stack.length - 1 )\n {\n T[] old = stack;\n stack = ( T[] ) new Object[ 2 * stack.length ];\n System.arraycopy( old, 0, stack, 0, old.length );\n }\n\n // put theElement at the top of the stack\n stack[ ++top ] = theElement;\n }",
"public void push(T object){\n stackList.insertAtFront(object);\n }",
"public void push(T value) {\n \tstack.add(value);\n }",
"private final void push(Object ob) {\r\n\t\teval_stack.add(ob);\r\n\t}",
"protected void pushParent(Object anObj) { _parentStack.addFirst(anObj); }",
"public void push(T pushValue) {\n\t\tif (top == stackArr.length - 1)\n\t\t\tresize(2 * stackArr.length);\n\n\t\tstackArr[++top] = pushValue;\n\t}",
"public void push(Item item){\n this.stack.add(item);\n\n }",
"public void push(Object newElement)\n {\n elements[stackPointer++] = (X) newElement;\n }",
"public void push(T data) {\n top = new StackNode(data, top);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch records that have create_time BETWEEN lowerInclusive AND upperInclusive | public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchRangeOfCreateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
return fetchRange(UserEmail.USER_EMAIL.CREATE_TIME, lowerInclusive, upperInclusive);
} | [
"public List<com.wuda.foundation.jooq.code.generation.commons.tables.pojos.PropertyValue> fetchRangeOfCreateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {\n return fetchRange(PropertyValue.PROPERTY_VALUE.CREATE_TIME, lowerInclusive, upperInclusive);\n }",
"public List<com.wuda.foundation.jooq.code.generation.commons.tables.pojos.TaskPhase> fetchRangeOfCreateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {\n return fetchRange(TaskPhase.TASK_PHASE.CREATE_TIME, lowerInclusive, upperInclusive);\n }",
"public List<com.wuda.foundation.jooq.code.generation.commons.tables.pojos.MenuItemCore> fetchRangeOfCreateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {\n return fetchRange(MenuItemCore.MENU_ITEM_CORE.CREATE_TIME, lowerInclusive, upperInclusive);\n }",
"public List<com.wuda.foundation.user.impl.jooq.generation.tables.pojos.Role> fetchRangeOfCreateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {\n return fetchRange(Role.ROLE.CREATE_TIME, lowerInclusive, upperInclusive);\n }",
"public LogEntrySet createTimeStampCondition(long lower, long upper)\n {\n LogEntrySet result = new LogEntrySet();\n \n for (LogEntry obj : this)\n {\n if (lower <= obj.getTimeStamp() && obj.getTimeStamp() <= upper)\n {\n result.add(obj);\n }\n }\n \n return result;\n }",
"public List<TaskEntity> fetchRangeOfStartTime(Long lowerInclusive, Long upperInclusive) {\n return fetchRange(Task.TASK.START_TIME, lowerInclusive, upperInclusive);\n }",
"public List<com.wuda.foundation.jooq.code.generation.commons.tables.pojos.TaskPhase> fetchRangeOfCreateUserId(ULong lowerInclusive, ULong upperInclusive) {\n return fetchRange(TaskPhase.TASK_PHASE.CREATE_USER_ID, lowerInclusive, upperInclusive);\n }",
"public List<cn.edu.nju.teamwiki.jooq.tables.pojos.Document> fetchRangeOfUploadedTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {\n return fetchRange(Document.DOCUMENT.UPLOADED_TIME, lowerInclusive, upperInclusive);\n }",
"List<Ticket> findAllByDateTimeBetween(LocalDateTime minDateTime, LocalDateTime maxDateTime);",
"@Query(\"select t from Ticket t where t.dateTime between ?1 and ?2\")\n List<Ticket> fetchAllTicketsBetweenDates(LocalDateTime minDate, LocalDate maxDate);",
"public LogEntrySet filterTimeStamp(long lower, long upper)\n {\n LogEntrySet result = new LogEntrySet();\n \n for (LogEntry obj : this)\n {\n if (lower <= obj.getTimeStamp() && obj.getTimeStamp() <= upper)\n {\n result.add(obj);\n }\n }\n \n return result;\n }",
"List<Record> getFilteredRecords(LocalDateTime from, LocalDateTime to);",
"List<Visitor> getAllByEnterTimeBetween(LocalDateTime startTime, LocalDateTime endTime);",
"List<Record> getFilteredRecords(long userId, LocalDateTime from, LocalDateTime to);",
"List<Alert> getAlertsInCreatedRange(Instant inclusiveStart, Instant inclusiveEnd, List<String> wellFilter, int limit) throws SQLException;",
"public List<UUID> findPostUUIDsByTimeRange( DateTime start, DateTime end ) {\n // this method assumes the number of keys for the range is \"not too big\" so as to blow\n // out thrift's frame buffer or cause cassandra to take too long and \"time out\"\n DateTime firstRow = calculatePostTimeGranularity(start);\n DateTime lastRow = calculatePostTimeGranularity(end);\n\n MultigetSliceQuery<String, UUID, byte[]> q = HFactory.createMultigetSliceQuery(keyspace, StringSerializer.get(), UUIDSerializer.get(), BytesArraySerializer.get());\n q.setColumnFamily(CF_POSTS_BY_TIME);\n\n // determine all the rows required to satisfy the time range and set as the 'row keys' for the query\n // each row key is \"pre-decided\" to be hours of the day\n DateTime current = firstRow;\n List<String> rowKeys = new LinkedList<String>();\n while ( current.isBefore(lastRow) || current.isEqual(lastRow) ) {\n rowKeys.add(hourFormatter.print(current));\n current = current.plusHours(1);\n }\n q.setKeys(rowKeys);\n q.setRange(null, null, false, 1000); // this is an assumption that there will not be more than 1000 posts in one hour\n\n QueryResult<Rows<String, UUID, byte[]>> qr = q.execute();\n Rows<String, UUID, byte[]> rows = qr.get();\n if ( null == rows || 0 == rows.getCount() ) {\n return null;\n }\n\n long startAsLong = start.getMillis();\n long endAsLong = end.getMillis();\n\n // loop over result rows, only adding to uuidList if Post time is between range\n List<UUID> uuidList = new LinkedList<UUID>();\n for ( Row<String, UUID, byte[]> row : rows ) {\n ColumnSlice<UUID, byte[]> slice = row.getColumnSlice();\n for ( HColumn<UUID, byte[]> col : slice.getColumns() ) {\n long t = TimeUUIDUtils.getTimeFromUUID(col.getName());\n if ( t > endAsLong ) {\n break;\n }\n\n if ( t >= startAsLong ) {\n uuidList.add(col.getName());\n }\n }\n }\n\n return uuidList;\n }",
"public List<Measurement> findMeasurementsByTimeRange(Date fromDate, Date toDate) {\n return entityManager.createQuery(\"SELECT m from \" +\n \"Measurement m where m.date >= :fromDate and m.date <= :toDate\", Measurement.class)\n .setParameter(\"fromDate\", fromDate)\n .setParameter(\"toDate\", toDate)\n .getResultList();\n\n }",
"List<Reservation> getReservationsByInterval(LocalDateTime fromTime, LocalDateTime tillTime);",
"public List<com.wuda.foundation.jooq.code.generation.commons.tables.pojos.PropertyValue> fetchRangeOfCreateUserId(ULong lowerInclusive, ULong upperInclusive) {\n return fetchRange(PropertyValue.PROPERTY_VALUE.CREATE_USER_ID, lowerInclusive, upperInclusive);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ gets the Creature in the Vertex at Point p if p is a valid point | public BaseCreature getCreature(Point p) {
if(getVertex(p) != null) {
return getVertex(p).getCritter();
}
return null;
} | [
"private Vertex getVertex(Point p) {\n \tif(inRange(p)) {\n \t\tfor(Vertex v: myWorld) {\n \t\t\tif(v.getPoint().x == p.x && v.getPoint().y == p.y) {\n \t\t\t\treturn v;\n \t\t\t}\n \t\t}\n \t}\n \treturn null;\n }",
"public abstract BaseCreature getCreature(Point p);",
"public void removeCreature(Point p) {\n \tif(getVertex(p) == null) {\n\t\t\treturn;\n \t}\n \tgetVertex(p).addCritter(null);\n }",
"public void addCreature(Point p, BaseCreature critter) {\n \tif(getVertex(p) == null) {\n\t\t\treturn;\n \t}\n \tgetVertex(p).addCritter(critter);\n }",
"public Vertex getTeleport() {\n return teleport;\n }",
"public Vertex findVertex(Pair p) {\n\t\tMyVertex tempVertex = new MyVertex();\n\t\tfor (int i = 0; i < vertices.size(); i++) {\n\t\t\ttempVertex = (MyVertex) vertices.get(i);\n\t\t\tif (tempVertex.getElement() == p)\n\t\t\t\treturn tempVertex;\n\t\t}\n\t\treturn null;\n\t}",
"public Vector3d spawnPoint() {\n V8Array array = $.js.spawnPoint();\n try {\n return new Vector3d(array.getDouble(0), array.getDouble(1), array.getDouble(2));\n } finally {\n array.release();\n }\n }",
"public SpawnPoint getSpawnPoint(Color color){\n for(SpawnPoint sp : spawnPoints){\n if(sp.getColor() == color)\n return sp;\n\n }\n return null;\n }",
"public Point3 getPoint(int pointNr);",
"public ITown getTownAt(VertexLocation vertexLoc);",
"public Unit getUnitAt(Position p);",
"public Object getObjectAtLocation(Point p);",
"public ArrayList<E> getAt(Point p) {\n\t\tArrayList<E> result = new ArrayList<E>();\n\t\tfor (E e : entities)\n\t\t\tif (e.getBounds().contains(p))\n\t\t\t\tresult.add(e);\n\t\treturn result;\n\t}",
"public abstract void removeCreature(Point p);",
"public Creature(Point p, GridRenderer renderer, StateBasedEntityManager entityManager) {\n\t\tthis.renderer = renderer;\n\t\tthis.entityManager = entityManager;\n\t\tpos = p;\n\t\tif(testing()) return;\n\t\t\n\t\tthis.entity = new Entity(\"Creature\");\n\t\tentity.setPosition(renderer.gameCoordsToPx(pos));\n\t\tentity.setSize(new Vector2f(35, 35));\n\t\tentityManager.addEntity(Pacman.GAMEPLAY, this.entity);\n\t\tentity.setPassable(true);\n\t\t\n\t\tupdateImage();\n\t}",
"public boolean isValidSpawnPoint(Point p) {\n\t\treturn isValidPoint(p.x, p.y);\n\t}",
"public Vector3f getPoint(float t) {\r\n\t\tVector3f point = new Vector3f();\r\n\t\tpoint.scaleAdd(t, mDirection, mOrigin);\r\n\t\treturn point;\r\n\t}",
"public abstract boolean entityUnderPoint(Point point);",
"boolean resultingCellHasCreature(MazePoint point, Direction dir,\r\n CreatureType creatureType, int distance);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
///////////////////////////////Status and Gender cheking , "mr/mrs"/////////////////////////////////// | public String toStringMrMrs() {
String outfowt = "";
if(aCustomer.getGender().equals("M") || aCustomer.getGender().equals("m"))
outfowt += String.format("Mr.");
else if((aCustomer.getStatus().equals("S") || aCustomer.getStatus().equals("s")) && aCustomer.getGender().equals("F") || aCustomer.getGender().equals("f"))
outfowt += String.format("Ms.");
else if((aCustomer.getStatus().equals("Ma") || aCustomer.getStatus().equals("ma")) && aCustomer.getGender().equals("F") || aCustomer.getGender().equals("f"))
outfowt += String.format("Mrs.");
return outfowt;
} | [
"String tellGender();",
"com.madhouse.media.momo.MomoExchange.BidRequest.User.Gender getGender();",
"private String getGender() {\n\t\tswitch (rgGender.getCheckedRadioButtonId()) {\n\t\tcase R.id.rdAddMale:\n\t\t\taGender = \"Мужчина\";\n\t\t\tbreak;\n\t\tcase R.id.rdAddFemale:\n\t\t\taGender = \"Женщина\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn aGender;\n\t}",
"private String genderToString(String gender) {\r\n String lowerCase = gender.toLowerCase();\r\n\r\n if (lowerCase.equals(\"m\")) {\r\n return \"Male\";\r\n }\r\n return \"Female\";\r\n }",
"public String getGender(){\n return this.gender;\n }",
"public String getGenderAsString(){\n String genderString;\n if (gender == 'f'){\n genderString=\"female\";\n }\n else {\n genderString=\"male\";\n }\n return genderString;\n }",
"java.lang.String getPatStatus();",
"java.lang.String getPatStatusName();",
"void changeGender();",
"private Integer updateGender(String gender) {\r\n\t\tgender = gender.toUpperCase();\r\n\t\tif (gender.charAt(0) == 'M') {\r\n\t\t\treturn 0;\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t}",
"boolean hasGenderInfo();",
"public void generateGender() {\n\n }",
"boolean isMale();",
"protected String generateGender()\n {\n\n if(rand.nextBoolean() == true) {\n Gender = \"male\";\n }else{\n Gender = \"female\";\n }\n return Gender;\n }",
"public String getMarriedstatus() {\n return marriedstatus;\n }",
"private static String getGender(AnalyzedTokenReadings token) {\n int nMatches = 0;\n String ret = \"\";\n if(token.matchesPosTagRegex(\".*:SIN:FEM.*\")) {\n ret += \"SIN:FEM\";\n nMatches++;\n }\n if(token.matchesPosTagRegex(\".*:SIN:MAS.*\")) {\n if(nMatches > 0) {\n ret += \"|\";\n }\n ret += \"SIN:MAS\";\n nMatches++;\n }\n if(token.matchesPosTagRegex(\".*:SIN:NEU.*\")) {\n if(nMatches > 0) {\n ret += \"|\";\n }\n ret += \"SIN:NEU\";\n nMatches++;\n }\n if(token.matchesPosTagRegex(\".*:PLU.*\")) {\n if(nMatches > 0) {\n ret += \"|\";\n }\n ret += \"PLU\";\n nMatches++;\n }\n if(nMatches > 1) {\n ret = \"(\" + ret + \")\";\n }\n return ret;\n }",
"public java.lang.String getMaritalStatus()\r\n {\r\n return this.maritalStatus;\r\n }",
"public java.lang.CharSequence getMaritalStatus() {\n return marital_status;\n }",
"public void setRequiredGender(String requiredGender);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ unlock adress ip | @GetMapping("/unlock")
public String unblockAddress(HttpServletRequest request) {
addressService.deleteByAddress(request.getRemoteAddr());
return "redirect:/login";
} | [
"public boolean unban(InetAddress address);",
"void unsetAddress();",
"void releaseIp(IpPrefix cidr, IpAddress ip);",
"public void UnbanIp(String ip)\n\t{\n\t\tThreadConnection con = null;\n\t\tFiltredPreparedStatement statement = null;\n\t\ttry\n\t\t{\n\t\t\tcon = L2DatabaseFactory.getInstance().getConnection();\n\t\t\tstatement = con.prepareStatement(\"DELETE FROM banned_ips WHERE ip=?\");\n\t\t\tstatement.setString(1, ip);\n\t\t\tstatement.execute();\n\t\t\t_log.warning(\"Removed ban for ip: \" + ip);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t_log.info(\"error2 while reading banned_ips\");\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tDatabaseUtils.closeDatabaseCS(con, statement);\n\t\t\tLog.LoginLog(Log.Login_UnBanIp, \"\", ip, \"\", 0, 0);\n\t\t}\n\t}",
"public void unlockServers() {\n gameServer.setServerLock( false );\n accountServer.setServerLock( false );\n gatewayServer.setServerLock( false );\n\n Debug.signal(Debug.NOTICE,null,\"ServerManager unlocked access to local servers...\");\n }",
"@MemberAction(@Permission(module = \"memberAccess\", operation = \"unblockPin\"))\n @IgnoreMember\n void unblockMyPin();",
"public void releasePingLock() {\r\n\t\tbeingPinged.set(false);\r\n\t}",
"void unlock(Integer id);",
"public void unlockTeleport() {\r\n teleportLock.unlock();\r\n }",
"boolean unlock(int key);",
"K8sIpam removeAvailableIp(String ipamId);",
"void unlock(Portal portal);",
"void removeAddress() throws Exception;",
"public boolean releasePublicIpAddress(long id, long userId, Account caller);",
"void unsetHost();",
"protected void unlockAccept() {\n java.net.Socket s = null;\n try {\n // Need to create a connection to unlock the accept();\n if (address == null) {\n s = new java.net.Socket(\"127.0.0.1\", port);\n } else {\n s = new java.net.Socket(address, port);\n // setting soLinger to a small value will help shutdown the\n // connection quicker\n s.setSoLinger(true, 0);\n }\n } catch(Exception e) {\n if (log.isDebugEnabled()) {\n log.debug(sm.getString(\"endpoint.debug.unlock\", \"\" + port), e);\n }\n } finally {\n if (s != null) {\n try {\n s.close();\n } catch (Exception e) {\n // Ignore\n }\n }\n }\n }",
"public String unlock(String id_key);",
"public void unlock() {\n islandLocked = false;\n }",
"public abstract void sendUnlockRequest ( long agentId, String passphrase, Object targetNode, PublicKey nodeEncryptionKey ) throws L2pSecurityException;"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A Grid user has many Gridlets or jobs to be processed. This method will show you how to create Gridlets with and without GridSimRandom class. | private static GridletList createGridlet()
{
// Creates a container to store Gridlets
GridletList list = new GridletList();
// We create three Gridlets or jobs/tasks manually without the help
// of GridSimRandom
int id = 0;
double length = 3500.0;
long file_size = 300;
long output_size = 300;
Gridlet gridlet1 = new Gridlet(id, length, file_size, output_size);
id++;
Gridlet gridlet2 = new Gridlet(id, 5000, 500, 500);
id++;
Gridlet gridlet3 = new Gridlet(id, 9000, 900, 900);
// Store the Gridlets into a list
list.add(gridlet1);
list.add(gridlet2);
list.add(gridlet3);
// We create 5 Gridlets with the help of GridSimRandom and
// GriSimStandardPE class
Random random = new Random();
// sets the PE MIPS Rating
GridSimStandardPE.setRating(100);
// creates 5 Gridlets
int count = 5;
double min_range = 0.10;
double max_range = 0.50;
for (int i = 1; i < count+1; i++)
{
// the Gridlet length determines from random values and the
// current MIPS Rating for a PE
length = GridSimStandardPE.toMIs(random.nextDouble()*output_size);
// determines the Gridlet file size that varies within the range
// 100 + (10% to 50%)
file_size = (long) GridSimRandom.real(100, min_range, max_range,
random.nextDouble());
// determines the Gridlet output size that varies within the range
// 250 + (10% to 50%)
output_size = (long) GridSimRandom.real(250, min_range, max_range,
random.nextDouble());
// creates a new Gridlet object
Gridlet gridlet = new Gridlet(id + i, length, file_size,
output_size);
// add the Gridlet into a list
list.add(gridlet);
}
return list;
} | [
"private void createGridlet(int userID, int numGridlet)\r\n {\r\n int data = 5000;\r\n for (int i = 0; i < numGridlet; i++)\r\n {\r\n // Creates a Gridlet\r\n Gridlet gl = new Gridlet(i, data, data, data);\r\n gl.setUserID(userID);\r\n\r\n // add this gridlet into a list\r\n this.list_.add(gl);\r\n }\r\n }",
"private void SetupGrids() {\n\n // Making Original Grid\n int randomNumber1, randomNumber2;\n\n // Setting all the elements in both the Grids to false\n for (int i = 0; i < GRID_EDGE; ++i)\n for (int j = 0; j < GRID_EDGE; ++j) {\n userGrid[i][j] = false;\n originalGrid[i][j] = false;\n }\n\n // Simulating any random 100 clicks to make Original Grid\n for (int i = 0; i < GRID_EDGE * GRID_EDGE; ++i) {\n\n // Generating 2 random numbers to click any element in originalGrid [][]\n Random r1 = new Random();\n Random r2 = new Random();\n\n randomNumber1 = (r1.nextInt(GRID_EDGE));\n randomNumber2 = (r2.nextInt(GRID_EDGE));\n\n clickGridCell(originalGrid, randomNumber1, randomNumber2);\n }\n }",
"public void createGrid() {\n\t\tint[][] neighbours = getIo().getNeighbours();\n\t\tsetGrid(new GridAlg(neighbours, animals));\n\t\tgetGrid().setStep(getStep());\n\t}",
"public static void main(String[] args) {\n\t\tint numUser = 1;\n\t\tCalendar cal = Calendar.getInstance();\n\t\tboolean traceFlag = false;\n\t\tCloudSim.init(numUser, cal, traceFlag);\n\t\t// TODO Create the data center and define the the policies for the allocating and scheduling\n\t\tDatacenter datacenter = CreateDataCenter();\n\t\t// TODO Create the data center broker\n\t\tDatacenterBroker datacenterBroker = CreateDataCenterBroker();\n\t\t// TODO Create Cloudlet\n\t\tList<Cloudlet> cloudletList = new ArrayList<Cloudlet>();\n\t\t//Try to set the random number for the cloudlet length\n\t\tlong cloudletLength = 40000;\n\t\tint pesNumber = 1;\n\t\tlong cloudletFileSize = 300;\n\t\tlong cloudletOutputSize = 400;\n\t\tUtilizationModel utilizationModelCpu = new UtilizationModelFull();\n\t\tUtilizationModel utilizationModelRam = new UtilizationModelFull();\n\t\tUtilizationModel utilizationModelBw = new UtilizationModelFull();\n\t\tfor (int cloudletId = 0; cloudletId < 40; cloudletId++) {\n\t\t\tCloudlet cloudlet = new Cloudlet(cloudletId, cloudletLength, pesNumber, cloudletFileSize, cloudletOutputSize,\n\t\t\t\t\tutilizationModelCpu, utilizationModelRam, utilizationModelBw);\n\t\t\tcloudlet.setUserId(datacenterBroker.getId());\n\t\t\tcloudletList.add(cloudlet);\n\t\t}\n\t\t// TODO Create Virtual Machines and define the Procedure for task scheduling algorithm\n\t\tList<Vm> vmList = new ArrayList<Vm>();\n\t\tint userId = 0;\n\t\tdouble mips = 1000;\n\t\tint numberOfPes = 1;\n\t\tint ram = 2000;\n\t\tlong bandwidth = 1000;\n\t\tlong diskSize = 20000;\n\t\tString vmm = \"XEN\";\n\t\tCloudletScheduler cloudletScheduler = new CloudletSchedulerTimeShared();\n\t\tfor (int id = 0; id < 10; id++) {\n\t\t\tVm virtualMachine = new Vm(id, datacenterBroker.getId(), mips, numberOfPes, ram, bandwidth, diskSize, vmm,\n\t\t\t\t\tcloudletScheduler);\n\t\t\tvmList.add(virtualMachine);\n\t\t}\n\t\tdatacenterBroker.submitCloudletList(cloudletList);\n\t\tdatacenterBroker.submitVmList(vmList);\n\t\t// TODO Implement the Power classes\n\t\tCloudSim.startSimulation();\n\t\tList<Cloudlet> finalCloudletExecutionResults = datacenterBroker.getCloudletReceivedList();\n\t\tCloudSim.stopSimulation();\n\t\t// TODO Test the demo and Print the result\n\t\tfor (Cloudlet cloudlet : finalCloudletExecutionResults) {\n\t\t\tLog.printLine(\"Cloudlet: \" + cloudlet.getCloudletId() + \" VM: \" + cloudlet.getVmId() + \n\t\t\t\t\t\" Status: \" + cloudlet.getStatus() + \" Execution Time: \" + cloudlet.getActualCPUTime() + \n\t\t\t\t\t\" Start Time \" + cloudlet.getExecStartTime() + \" Finished Time: \" + cloudlet.getFinishTime());\n\t\t\tLog.printLine(\"----------------------------------------------------------------------------------------------------\");\n\t\t}\n\t}",
"public void createJobs(){\n \t\n \tjobSimulator.simulateJobs(this.list, this.timeToPlay);\n\n }",
"public static void createCloudlet(int userId) {\n //cloudlet parameters\n long length = 10; //100\n long fileSize = 30; // 300\n long outputSize = 30; // 300\n int pesNumber = 1;\n UtilizationModel utilizationModel = new UtilizationModelFull();\n\n HzCloudlet cloudlet;\n\n int noOfCloudlets = ConfigReader.getNoOfCloudlets();\n\n for (int i = 0; i < noOfCloudlets; i++) {\n int f = (int) ((Math.random() * 40) + 1);\n cloudlet = new HzCloudlet(i, length * f, pesNumber, fileSize, outputSize, utilizationModel,\n utilizationModel, utilizationModel);\n // setting the owner of these Cloudlets\n cloudlet.setUserId(userId);\n objectCollection.getUserCloudletList().put(i, cloudlet);\n }\n }",
"public void createNextGeneration()\n {\n /** You will need to read the documentation for the World, Grid, and Location classes\n * in order to implement the Game of Life algorithm and leverage the GridWorld framework.\n */\n \n // create the grid, of the specified size, that contains Actors\n Grid<Actor> grid = world.getGrid();\n BoundedGrid<Actor> newGrid = new BoundedGrid<Actor>(ROWS, COLS);\n \n \n // insert magic here...\n for (int row = 0; row < ROWS; row++)\n {\n for (int col = 0; col < COLS; col++)\n {\n Location location = new Location(row, col);\n Actor cell = grid.get(location);\n ArrayList<Actor>neighbor = new ArrayList<Actor>();\n neighbor = grid.getNeighbors(location);\n int neighbors = neighbor.size();\n if (cell == null)\n {\n if (neighbors == 3)\n {\n newGrid.put(location, new Rock());\n }\n }\n else\n {\n if (neighbors == 2 || neighbors == 3)\n {\n newGrid.put(location, new Rock());\n }\n }\n }\n }\n world.setGrid(newGrid);\n world.show();\n }",
"protected void submitCloudlets()\n {\n\tdouble selectedVm1=0;\n\tdouble selectedVm2=0;\n\tdouble selectedHost1= 0;\n\tdouble selectedHost2=0;\n\t double allocatedHost_id = 0;\n\t double allocatedVm_id = 0;\n\t double result1=0;\n\t double result2=0;\n\t double allocated = 0;\n\t double diff;\n\tint k= 0;\n\tVm allocatedVm = null;\n\tVm allocatedVm2 = null;\n\tint datacenterId = 0;\n\tHost allocatedHost = null;\n\tdouble t1 = 0;\n\tdouble t2 = 0;\n\tdouble t11 = 0;\n\tdouble t22 = 0;\n\t\n for (Cloudlet cloudlet : getCloudletList()) \n {\n// if user didn't bind this cloudlet and it has not been executed yet\n \n\tpopulatin p= new populatin();\n\n\n\tg.vmcreate=getVmList();\n\n\t//if (result == CloudSimTags.TRUE) {\n\tSystem.out.println(\"--------------------------------------------------------------\");\n\tSystem.out.println(\"cloudlet no \"+ cloudlet.getCloudletId());\n\t/*\n\t p.task.add(getCloudletList().get(c));\n\t p.task.add(c);\n\t p.vm.add(g.GSO(getCloudletList().get(c)));\n\t c.setVmId(g.GSO(c).getId());\n\t */\n\tint i=0;\n\n\tdo\n\t {\n\t//g.updateLuciferin(getCloudletList().get(c));\n\n\tif( i==0)\n\t{\n\t \n\t//getCloudletList().get(c).setVmId(g.GSO(getCloudletList().get(c)).getId());\n\tallocatedVm= g.GSO(cloudlet);\n\tselectedVm1= allocatedVm.getId();\n\tSystem.out.println(\"selected vm 1 \" + selectedVm1);\n\n\n\n\t \n\t \n\t t1= (cloudlet.getCloudletLength() / (allocatedVm.getMips()* allocatedVm.getNumberOfPes())+ allocatedVm.start_time/3600) * allocatedVm.getCost();\n\n\t System.out.println(\"cloudlet length is \" + cloudlet.getCloudletLength()+ \"vm mips \" + allocatedVm.getMips()+ \"execution time is \" + t1);\n\n\t//if (result == CloudSimTags.TRUE) {\n\t // getVmsToDatacentersMap().put(allocatedVm.getId(), datacenterId);\n\t//getVmsCreatedList().add(VmList.getById(getVmList(), allocatedVm.getId()));\n\n\tLog.printLine(CloudSim.clock() + \": \" + getName() + \": VM # \" +allocatedVm.getId()\n\t// + vm.getId()\n\t+ \" has been created in Datacenter #\" + datacenterId + \", Host #\"+\n\t VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getId() );\n\n\tselectedHost1 = VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getId();\n\tSystem.out.println(\"selected host 1 \" + selectedHost1);\n\n\t// t2 = VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().start_time+(VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getTotalMips()- VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getAvailableMips())/ VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getTotalMips(); \n\t t2 = VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().start_time+ VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getAvailableMips(); \n\n\tSystem.out.println(\"total mips \" + VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getTotalMips()+ \" availble mips \"+ VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getAvailableMips()); \n\tSystem.out.println(\"available mips t2 \" + t2);\n\n\t result1 = (t1 * 0.5) + (t2 * 0.5);\n\tSystem.out.println(\"integration result before iteration \" + result1);\n\t}\n\t System.out.println(\"ITERATION \"+ i);\n\n\t// System.out.println(\"allocated host \" + allocatedHost_id);\n\n\t// for(int o=0;o<config.getmax_iteration();o++)\n\t// {\n\t // p.vm.add(g.GSO(getCloudletList().get(c)));\n\tallocatedVm= g.GSO(cloudlet);\n\n\t // p.vm.add(g.GSO(c));\n\t // getCloudletList().get(c).setVmId(g.GSO(getCloudletList().get(c)).getId());\n\t // p.host.add(v.GSO(getVmList().get(0))); \n\t selectedVm2= allocatedVm.getId();\n\n\t t11= (cloudlet.getCloudletLength() / (allocatedVm.getMips()* allocatedVm.getNumberOfPes())+ allocatedVm.start_time/3600) * allocatedVm.getCost();\n\t System.out.println(\"selected vm 2 \" + selectedVm2);\n\n\tSystem.out.println(\"cloudlet length is \" + cloudlet.getCloudletLength()+ \"vm mips \" + getVmList().get(allocatedVm.getId()).getMips()+ \"execution time is \" + t11); \n\t // System.out.println(\"cloudlet length is \" + c.getCloudletLength()+ \"vm mips \" + getVmList().get(vmId).getMips()+ \"execution time is \" + t11);\n\t //getVmsToDatacentersMap().put(allocatedVm.getId(), datacenterId);\n\t \n\t\t getVmsCreatedList().add(VmList.getById(getVmList(), allocatedVm.getId()));\n\n\t\t Log.printLine(CloudSim.clock() + \": \" + getName() + \": VM # \" +allocatedVm.getId()\n\t\t + \" has been created in iteration in Datacenter #\" + datacenterId + \", Host #\"+\n\t VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getId() ); \n\t\tselectedHost2 = VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getId();\n\tSystem.out.println(\"selected host 2 \" + selectedHost2);\n\n//\t \tVmList.getById(getVmsCreatedList(), vmId).getHost().start_time = VmList.getById(getVmsCreatedList(), vmId).getHost().start_time+(VmList.getById(getVmsCreatedList(), vmId).getHost().getTotalMips()- VmList.getById(getVmsCreatedList(), vmId).getHost().getAvailableMips())/ VmList.getById(getVmsCreatedList(), vmId).getHost().getTotalMips();\n\t// VmList.getById(getVmsCreatedList(), vmId).getHost().start_time+ \n\t // t22 =VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().start_time+(VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getTotalMips()- VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getAvailableMips())/ VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getTotalMips(); \n\t t22 =VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().start_time+ VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getAvailableMips(); \n\n\t System.out.println(\"total mips \" + VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getTotalMips()+ \" availble mips \"+ VmList.getById(getVmsCreatedList(), allocatedVm.getId()).getHost().getAvailableMips()); \n\n\t System.out.println(\"available mips t22 \" + t22);\n\n\t result2 = (t11*0.5)+ (t22*0.5);\n\t System.out.println(\"integration result in iteration \" + result2);\n\n\tif(i==0)\n\t{\n\tif (result1> result2)\n\t{\n\tallocatedVm_id=selectedVm2;\n\tallocatedHost_id=selectedHost2;\n\n\tallocated=result2;\n\tdiff=result1-result2;\n\n\t}\n\telse\n\t{ \n\tallocatedVm_id=selectedVm1;\n\tallocatedHost_id=selectedHost1;\n\n\tallocated=result1;\n\tdiff=result2-result1;\n\n\n\t}\n\n\ti++; \n\t}\n\t\n\telse\n\t{ if(allocated>result2)\n\t{\n\tallocatedVm_id=selectedVm2;\n\tallocatedHost_id=selectedHost2;\n\n\tdiff=allocated-result2;\n\tallocated=result2;\n\n\t}\n\n\n\telse\n\t{\n\tdiff=allocated-result2;\n\t//diff=result2- allocated;\n\n\t}\n\t}\n\tk++;\n\n\t // double diff = result2 - result1;\n\t System.out.println(\"diff between two integrations \" + diff);\n\t//g.updateSensorRanges();\n\t // && k<=config.maxIterations\n\t } while(diff>0.5 ); \n\t// } // end of iterations (outer loop)\n\n \n\t \n\n\t // }\n\t//}// end if result\n\n\t/*\n\telse {\n\tLog.printLine(CloudSim.clock() + \": \" + getName() + \": Creation of VM #\" + vmId\n\t+ \" failed in Datacenter #\" + datacenterId);\n\t}\n\t*/\n\t // try\n\t//vm = getVmsCreatedList().get(vmIndex);\n \n Log.printLine(\"subit cloudlet\"); \n \n\n if(allocatedVm!=null)\n {\nLog.printLine(CloudSim.clock() + \": \" + getName() + \": Sending cloudlet \"\n+ cloudlet.getCloudletId() + \" to VM #\" + allocatedVm.getId()+\"-\"+allocatedVm.getState());\n\ncloudlet.setVmId(allocatedVm.getId());\nLog.printLine(\"CHECK HERE\");\n\nsendNow(getVmsToDatacentersMap().get(allocatedVm.getId()), CloudSimTags.CLOUDLET_SUBMIT, cloudlet);\nLog.printLine(\"OR HERE\");\n\ncloudletsSubmitted++;\n//vmIndex = (vmIndex + 1) % getVmsCreatedList().size();\ngetCloudletSubmittedList().add(cloudlet);\nLog.printLine(\"DONE\");\n }\n }\n// remove submitted cloudlets from waiting list\nfor (Cloudlet cloudlet : getCloudletSubmittedList()) \n {\n \n getCloudletList().remove(cloudlet);\n Log.printLine(\"REMOVE CLOUDLET\");\n\n \n }\n}",
"public void randomInit() {\n Plain plain = new Plain(width + 2);\n grid = new Living[width + 2][width + 2];\n for (int i = 1; i < grid.length - 1; i++) {\n for (int j = 1; j < grid[i].length - 1; j++) {\n int randomNum = (int) (Math.random() * 5);\n switch (randomNum) {\n case 0:\n grid[i][j] = new Badger(plain, i, j, 0);\n break;\n case 1:\n grid[i][j] = new Empty(plain, i, j);\n break;\n case 2:\n grid[i][j] = new Fox(plain, i, j, 0);\n break;\n case 3:\n grid[i][j] = new Grass(plain, i, j);\n break;\n case 4:\n grid[i][j] = new Rabbit(plain, i, j, 0);\n break;\n }\n }\n }\n }",
"public ComputationTest()\n {\n grid = new Grid(4,4);\n }",
"public static void main(String[] args) {\r\n int n = getUserInput(\"Please enter the desired size of the numbers array:\", MAX_ELEMNTS_ALLOWED);\r\n int m = getUserInput(\"Please enter the desired number of threads:\", MAX_THREADS_ALLOWED);\r\n ExecutorService executorService = Executors.newCachedThreadPool();\r\n NumbersPool pool = new NumbersPool(n);\r\n pool.populatePool();\r\n createThreads(executorService, pool, m);\r\n }",
"private static ResourceUserList createGridUser(GridletList list)\n {\n ResourceUserList userList = new ResourceUserList();\n \n userList.add(0); // user ID starts from 0\n userList.add(1);\n userList.add(2);\n\n int userSize = userList.size();\n int gridletSize = list.size();\n int id = 0;\n \n // assign user ID to particular Gridlets\n for (int i = 0; i < gridletSize; i++)\n {\n if (i != 0 && i % userSize == 0)\n id++;\n\n ( (Gridlet) list.get(i) ).setUserID(id);\n }\n \n return userList;\n }",
"protected void createVmsAndCloudlets(){\n\t\t\t\t\n//\t\t\t for (int i = 0; i < SimulationConstParameters.HOST_SUPER*SimulationConstParameters.DC_SUPER; i++) {\n//\t\t\t Vm vm = createVm(vmList.size(), 32768,1000,16);\n//\t\t\t vmList.add(vm);\n//\t\t\t for (int j = 0; j < SimulationConstParameters.CLOUDLETS_PER_VM; j++) {\n//\t\t\t Cloudlet cloudlet = createCloudlet(cloudletList.size(), vm);\n//\t\t\t cloudletList.add(cloudlet);\n//\t\t\t }\n//\t\t\t }\n//\t\t\t for (int i = 0; i < SimulationConstParameters.HOST_MID*SimulationConstParameters.DC_MID; i++) {\n//\t\t\t Vm vm = createVm(vmList.size(), 16348,2500,6);\n//\t\t\t vmList.add(vm);\n//\t\t\t for (int j = 0; j < SimulationConstParameters.CLOUDLETS_PER_VM; j++) {\n////\t\t\t Cloudlet cloudlet = createCloudlet(cloudletList.size(), broker, vm);\n////\t\t\t cloudletList.add(cloudlet);\n//\t\t\t }\n//\t\t\t }\n//\t\t\t for (int i = 0; i < SimulationConstParameters.HOST_STANDARD*SimulationConstParameters.DC_STANDARD; i++) {\n//\t\t\t Vm vm = createVm(vmList.size(), 8192,1000,4);\n//\t\t\t vmList.add(vm);\n//\t\t\t for (int j = 0; j < SimulationConstParameters.CLOUDLETS_PER_VM; j++) {\n////\t\t\t Cloudlet cloudlet = createCloudlet(cloudletList.size(), broker, vm);\n////\t\t\t cloudletList.add(cloudlet);\n//\t\t\t }\n//\t\t\t }\n//\t\t\t brokers.get(0).submitVmList(vmList);\n\t\t\t \n\t\t\t}",
"private TileGrid generateGrid() {\n RegionalGenerator gridGenerator = new RegionalGenerator(gridSize);\n return gridGenerator.makeGrid(new TileProducer());\n }",
"private void generateGrid() {\n int i,j;\n\n for (i = 0;i<SIZE_GRID;i++) {\n for (j = 0;j<SIZE_GRID;j++){\n\n switch (this.model.getXY(i,j)){\n case 1:\n this.LeftPanel.add(new JLabel(RED, JLabel.CENTER));\n break;\n case 2:\n this.LeftPanel.add(new JLabel(GREEN, JLabel.CENTER));\n break;\n case 3:\n this.LeftPanel.add(new JLabel(BLUE, JLabel.CENTER));\n break;\n case 4:\n this.LeftPanel.add(new JLabel(PURPLE, JLabel.CENTER));\n break;\n case 5:\n this.LeftPanel.add(new JLabel(YELLOW, JLabel.CENTER));\n break;\n case 6:\n this.LeftPanel.add(new JLabel(GOLD, JLabel.CENTER));\n break;\n }\n }\n }\n }",
"public static void startSpawning(Grid grid, BlockManager<Block> blockManager) {\n BlockSpawner s = new BlockSpawner(grid, blockManager);\n //grid.setManager(blockManager);\n grid.setSpawner(s);\n s.run();\n }",
"private void createGrid()\n {\n grid = new GreenfootImage(\"UI/UIgrid.png\");\n setImage(grid);\n changeImage();\n }",
"private void newPool() {\n genes = new Config[POOL_SIZE];\n geneScores = new int[POOL_SIZE];\n gene = 0;\n /* Seed the pool with something reasonable. */\n genes[0] = new Config(Minimax.getConfig(\"default\"));\n for (int i = 1; i < POOL_SIZE; i++) {\n genes[i] = create();\n }\n }",
"public void randomInit() // each living object is set to age 0 or with no age\n\t{\n\t\tRandom generator = new Random(); \n\t\tfor(int i = 0; i < width; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < width; j++)\n\t\t\t{\n\t\t\t\tint rand = generator.nextInt(5); // get the random integer from 0-4\n\t\t\t\tif(rand == 0) //badger\n\t\t\t\t{\n\t\t\t\t\tLiving b = new Badger(this,i,j,0);\n\t\t\t\t\tgrid[i][j]=b;\n\t\t\t\t}\n\t\t\t\telse if(rand == 1) //fox\n\t\t\t\t{\n\t\t\t\t\tLiving f = new Fox(this,i,j,0);\n\t\t\t\t\tgrid[i][j]=f;\n\t\t\t\t}\n\t\t\t\telse if(rand == 2) //rabbit\n\t\t\t\t{\n\t\t\t\t\tLiving r = new Rabbit(this,i,j,0);\n\t\t\t\t\tgrid[i][j]=r;\n\t\t\t\t}\n\t\t\t\telse if(rand == 3) //grass\n\t\t\t\t{\n\t\t\t\t\tLiving g = new Grass(this,i,j);\n\t\t\t\t\tgrid[i][j]=g;\n\t\t\t\t}\n\t\t\t\telse if(rand == 4) //empty\n\t\t\t\t{\n\t\t\t\t\tLiving e = new Empty(this,i,j);\n\t\t\t\t\tgrid[i][j]=e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compress the log collection in a single file. | public String compressLogCollection(); | [
"private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}",
"private void compressArchive() throws Exception {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Compressing archive: \" + path);\n\t\t}\n\n\t\tFileOutputStream fout = new FileOutputStream(path + \".gz\");\n\t\tGZIPOutputStream gout = new GZIPOutputStream(fout);\n\t\tFileInputStream fin = new FileInputStream(path);\n\t\tbyte[] buf = new byte[blockSize];\n\t\tint len;\n\t\twhile ((len = fin.read(buf)) > 0) {\n\t\t\tgout.write(buf, 0, len);\n\t\t}\n\t\tfin.close();\n\n\t\t// flush and close gzip file\n\t\tgout.finish();\n\t\tgout.close();\n\n\t\t// unlink original archive\n\t\tFile file = new File(path);\n\t\tfile.delete();\n\t}",
"void logFilestoreWrite(File outFile);",
"@FXML private void exportLogs() {\r\n File selected = selectFile(\"ZIP\", \"*.zip\", \"save\");\r\n if (selected != null) {\r\n try (ZipOutputStream out = new ZipOutputStream(new FileOutputStream(selected))) {\r\n File[] files = Kernel.APPLICATION_LOGS.listFiles();\r\n if (files != null) {\r\n byte[] bytes;\r\n for (File file : files) {\r\n ZipEntry entry = new ZipEntry(file.getName());\r\n out.putNextEntry(entry);\r\n bytes = Files.readAllBytes(file.toPath());\r\n out.write(bytes);\r\n out.closeEntry();\r\n }\r\n }\r\n kernel.showAlert(Alert.AlertType.INFORMATION, null, Language.get(35) + System.lineSeparator() + selected.getAbsolutePath());\r\n } catch (IOException ex) {\r\n kernel.showAlert(Alert.AlertType.ERROR, null, Language.get(35) + '\\n' + selected.getAbsolutePath());\r\n }\r\n }\r\n }",
"void compression(Serializable data) throws ApplicationException;",
"@Override\n public File compress() throws Exception\n {\n File dest = File.createTempFile(\"TMP\",\".tar.gz\");\n FileOutputStream fos = new FileOutputStream( dest );\n BufferedOutputStream bos = new BufferedOutputStream(fos);\n TarOutputStream out = new TarOutputStream(bos);\n tarFolder( null, folder.getAbsolutePath(), out );\n out.close();\n return dest;\n }",
"public void outputLog() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(fileLocation + \".log\", true)));\n\t\t\tfor (LogElement le : log) {\n\t\t\t\tout.println(le.toString());\n\t\t\t}\n\t\t\tout.close();\n\t\t} catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n\t}",
"public void uploadLogCollection();",
"Path compress(Path directory) throws IOException;",
"public void serializeLogs();",
"void compress( File input, File output, int level, int language )\r\n throws CompressionException;",
"@Test\n\tpublic void generateCompressedFile() throws Exception {\n\t\tint sourceRecords = 10000000;\n\t\tint bufferSize = 1000;\n\t\tAssert.isTrue(sourceRecords % bufferSize == 0); // make sure its divisible without the remainder\n\t\tfinal int outerLoop = sourceRecords / bufferSize;\n\t\tfinal CountDownLatch latch = new CountDownLatch(outerLoop);\n\t\t\n\t\tExecutorService executor = Executors.newFixedThreadPool(8);\n\n\t\tfinal FileOutputStream fos = new FileOutputStream(new File(\"source/compressed.txt\"));\n\t\tfinal BufferedReader br = new BufferedReader(new FileReader(\"source/source.txt\"));\n\t\t\n\t\tfinal ArrayBlockingQueue<String> recordQueue = new ArrayBlockingQueue<String>(outerLoop);\n\t\texecutor.execute(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < outerLoop; i++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfos.write(recordQueue.poll(1000, TimeUnit.MILLISECONDS).getBytes());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tlatch.countDown();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tlong start = System.currentTimeMillis();\n\t\tfor (int i = 0; i < outerLoop; i++) {\n\t\t\tStringBuffer buffer = new StringBuffer(bufferSize * 230);\n\t\t\tfor (int j = 0; j < bufferSize; j++) {\n\t\t\t\tString line = br.readLine();\n\t\t\t\tbuffer.append(line + \"\\n\");\n\t\t\t}\n\t\t\tfinal String bufferString = buffer.toString();\n\t\t\t\n\t\t\texecutor.execute(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString compressedRecord = compressRecord(bufferString) + \"\\n\";\n\t\t\t\t\t\trecordQueue.offer(compressedRecord);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t}\n\n\t\tlatch.await();\n\t\tlong stop = System.currentTimeMillis();\n\t\tSystem.out.println(\"Compressed and written \" + sourceRecords + \" records in \" + (stop - start) + \" milliseconds\");\n\t\tfos.close();\n\t\tbr.close();\n\t}",
"public void compressWrite() throws Exception{\n byte[] data = ZLibUtils.compress(value.getBytes());\n FileOutputStream fos = new FileOutputStream(path + File.separator + key);\n fos.write(data);\n fos.close();\n }",
"boolean compress(Path archive, List<Path> items);",
"public void writeZipFile(File sourceFolder, ArrayList<File> fileList, File targetFolder) {\n\n try {\n File zipFile = new File(targetFolder+ZIP_FILE_NAME);\n Log.e(\"Ziped to\", zipFile.getAbsolutePath());\n zipFile.createNewFile();\n FileOutputStream fos = new FileOutputStream(zipFile);\n ZipOutputStream zos = new ZipOutputStream(fos);\n\n\n for (File fileInFolder : fileList) {\n FileInputStream fis = new FileInputStream(fileInFolder);\n String zippedPath = fileInFolder.getCanonicalPath().replace(sourceFolder.getCanonicalPath(), \"\");\n Log.e(\"Zipped to\", fileInFolder.getName() + \" :\" + zippedPath);\n ZipEntry zipEntry = new ZipEntry(zippedPath);\n zos.putNextEntry(zipEntry);\n\n byte[] bufByte = new byte[1048];\n int count;\n while ((count = fis.read(bufByte)) >= 0) {\n zos.write(bufByte, 0, count);\n }\n\n zos.closeEntry();\n fis.close();\n }\n zos.close();\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public HDF5GenericStorageFeatureBuilder compress()\n {\n super.compress();\n return this;\n }",
"public void compressCodeStream(CompressionConfig config, String inputFile, String outputFile) throws IOException;",
"void storeLogFiles(Collection<AppLogs> appLogs,\n DataOutputStream checkPointStream) throws IOException {\n long totalEntries = 0L;\n for (AppLogs appLog : appLogs) {\n totalEntries += appLog.summaryLogs.size();\n }\n checkPointStream.writeLong(totalEntries);\n for (AppLogs appLog : appLogs) {\n for (LogInfo summaryLog : appLog.summaryLogs) {\n new Text(summaryLog.getAttemptDirName()).write(checkPointStream);\n new Text(summaryLog.getFilename()).write(checkPointStream);\n new LongWritable(summaryLog.getLastProcessedTime()).write(checkPointStream);\n new LongWritable(summaryLog.getOffset()).write(checkPointStream);\n }\n }\n LOG.info(\"Stored {} summarylog files into checkPointFile\", totalEntries);\n }",
"private void publishDataStream(DataSourceClient dsc, CCWebAPICalls ccWebAPICalls, AuthResponse ar,\n DataStream dsMetadata, DatabaseLogger dbLogger) {\n Log.d(\"abc\", \"upload start... id=\" + dsc.getDs_id() + \" source=\" + dsc.getDataSource().getType());\n boolean cont = true;\n int BLOCK_SIZE_LIMIT = Constants.DATA_BLOCK_SIZE_LIMIT;\n long count = 0;\n while (cont) {\n cont = false;\n\n//Computed Data Store\n List<RowObject> objects;\n\n objects = dbLogger.queryLastKey(dsc.getDs_id(), Constants.DATA_BLOCK_SIZE_LIMIT);\n count = dbLogger.queryCount(dsc.getDs_id(), true).getSample();\n\n if (objects.size() > 0) {\n String outputTempFile = FileManager.getDirectory(context, FileManager.INTERNAL_SDCARD_PREFERRED) + randomUUID().toString() + \".gz\";\n File outputfile = new File(outputTempFile);\n try {\n FileOutputStream output = new FileOutputStream(outputfile, false);\n Writer writer = new OutputStreamWriter(new GZIPOutputStream(output), \"UTF-8\");\n\n for (RowObject obj : objects) {\n writer.write(obj.csvString() + \"\\n\");\n }\n writer.close();\n output.close();\n } catch (IOException e) {\n Log.e(\"CerebralCortex\", \"Compressed file creation failed\" + e);\n e.printStackTrace();\n return;\n }\n\n messenger(\"Offloading data: \" + dsc.getDs_id() + \"(Remaining: \" + count + \")\");\n Boolean resultUpload = ccWebAPICalls.putArchiveDataAndMetadata(ar.getAccessToken().toString(), dsMetadata, outputTempFile);\n if (resultUpload) {\n try {\n dbLogger.setSyncedBit(dsc.getDs_id(), objects.get(objects.size() - 1).rowKey);\n } catch (Exception ignored) {\n Log.e(TAG, \"Error uploading file: \" + outputTempFile + \" for SQLite database dump\");\n return;\n }\n // delete the temporary file here\n outputfile.delete();\n } else {\n Log.e(TAG, \"Error uploading file: \" + outputTempFile + \" for SQLite database dump\");\n return;\n }\n }\n if (objects.size() == BLOCK_SIZE_LIMIT) {\n cont = true;\n }\n }\n Log.d(TAG, \"upload done... prune... id=\" + dsc.getDs_id() + \" source=\" + dsc.getDataSource().getType());\n\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__BoolOperation__Group__14__Impl" $ANTLR start "rule__BoolOperation__Group__15" InternalBSQL2Java.g:1541:1: rule__BoolOperation__Group__15 : rule__BoolOperation__Group__15__Impl rule__BoolOperation__Group__16 ; | public final void rule__BoolOperation__Group__15() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalBSQL2Java.g:1545:1: ( rule__BoolOperation__Group__15__Impl rule__BoolOperation__Group__16 )
// InternalBSQL2Java.g:1546:2: rule__BoolOperation__Group__15__Impl rule__BoolOperation__Group__16
{
pushFollow(FOLLOW_3);
rule__BoolOperation__Group__15__Impl();
state._fsp--;
pushFollow(FOLLOW_2);
rule__BoolOperation__Group__16();
state._fsp--;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__BoolOperation__Group__14() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1518:1: ( rule__BoolOperation__Group__14__Impl rule__BoolOperation__Group__15 )\n // InternalBSQL2Java.g:1519:2: rule__BoolOperation__Group__14__Impl rule__BoolOperation__Group__15\n {\n pushFollow(FOLLOW_26);\n rule__BoolOperation__Group__14__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__15();\n\n state._fsp--;\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__BoolOperation__Group__16() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1572:1: ( rule__BoolOperation__Group__16__Impl rule__BoolOperation__Group__17 )\n // InternalBSQL2Java.g:1573:2: rule__BoolOperation__Group__16__Impl rule__BoolOperation__Group__17\n {\n pushFollow(FOLLOW_27);\n rule__BoolOperation__Group__16__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__17();\n\n state._fsp--;\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__BoolOperation__Group__17() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1599:1: ( rule__BoolOperation__Group__17__Impl rule__BoolOperation__Group__18 )\n // InternalBSQL2Java.g:1600:2: rule__BoolOperation__Group__17__Impl rule__BoolOperation__Group__18\n {\n pushFollow(FOLLOW_27);\n rule__BoolOperation__Group__17__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__18();\n\n state._fsp--;\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__BoolOperation__Group__11() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1437:1: ( rule__BoolOperation__Group__11__Impl rule__BoolOperation__Group__12 )\n // InternalBSQL2Java.g:1438:2: rule__BoolOperation__Group__11__Impl rule__BoolOperation__Group__12\n {\n pushFollow(FOLLOW_24);\n rule__BoolOperation__Group__11__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__12();\n\n state._fsp--;\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__BoolOperation__Group_17__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1950:1: ( rule__BoolOperation__Group_17__1__Impl )\n // InternalBSQL2Java.g:1951:2: rule__BoolOperation__Group_17__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group_17__1__Impl();\n\n state._fsp--;\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__BoolOperation__Group__13() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1491:1: ( rule__BoolOperation__Group__13__Impl rule__BoolOperation__Group__14 )\n // InternalBSQL2Java.g:1492:2: rule__BoolOperation__Group__13__Impl rule__BoolOperation__Group__14\n {\n pushFollow(FOLLOW_3);\n rule__BoolOperation__Group__13__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__14();\n\n state._fsp--;\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__BoolOperation__Group__20() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1680:1: ( rule__BoolOperation__Group__20__Impl )\n // InternalBSQL2Java.g:1681:2: rule__BoolOperation__Group__20__Impl\n {\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__20__Impl();\n\n state._fsp--;\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__BoolOperation__Group__18() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1626:1: ( rule__BoolOperation__Group__18__Impl rule__BoolOperation__Group__19 )\n // InternalBSQL2Java.g:1627:2: rule__BoolOperation__Group__18__Impl rule__BoolOperation__Group__19\n {\n pushFollow(FOLLOW_29);\n rule__BoolOperation__Group__18__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__19();\n\n state._fsp--;\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__BoolOperation__Group__17__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1611:1: ( ( ( rule__BoolOperation__Group_17__0 )* ) )\n // InternalBSQL2Java.g:1612:1: ( ( rule__BoolOperation__Group_17__0 )* )\n {\n // InternalBSQL2Java.g:1612:1: ( ( rule__BoolOperation__Group_17__0 )* )\n // InternalBSQL2Java.g:1613:2: ( rule__BoolOperation__Group_17__0 )*\n {\n before(grammarAccess.getBoolOperationAccess().getGroup_17()); \n // InternalBSQL2Java.g:1614:2: ( rule__BoolOperation__Group_17__0 )*\n loop6:\n do {\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==33) ) {\n alt6=1;\n }\n\n\n switch (alt6) {\n \tcase 1 :\n \t // InternalBSQL2Java.g:1614:3: rule__BoolOperation__Group_17__0\n \t {\n \t pushFollow(FOLLOW_28);\n \t rule__BoolOperation__Group_17__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop6;\n }\n } while (true);\n\n after(grammarAccess.getBoolOperationAccess().getGroup_17()); \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__BoolOperation__Group__12() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1464:1: ( rule__BoolOperation__Group__12__Impl rule__BoolOperation__Group__13 )\n // InternalBSQL2Java.g:1465:2: rule__BoolOperation__Group__12__Impl rule__BoolOperation__Group__13\n {\n pushFollow(FOLLOW_25);\n rule__BoolOperation__Group__12__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__13();\n\n state._fsp--;\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__BoolOperation__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1302:1: ( rule__BoolOperation__Group__6__Impl rule__BoolOperation__Group__7 )\n // InternalBSQL2Java.g:1303:2: rule__BoolOperation__Group__6__Impl rule__BoolOperation__Group__7\n {\n pushFollow(FOLLOW_21);\n rule__BoolOperation__Group__6__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__7();\n\n state._fsp--;\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__BoolOperation__Group_17__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1923:1: ( rule__BoolOperation__Group_17__0__Impl rule__BoolOperation__Group_17__1 )\n // InternalBSQL2Java.g:1924:2: rule__BoolOperation__Group_17__0__Impl rule__BoolOperation__Group_17__1\n {\n pushFollow(FOLLOW_3);\n rule__BoolOperation__Group_17__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group_17__1();\n\n state._fsp--;\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__BoolOperation__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1248:1: ( rule__BoolOperation__Group__4__Impl rule__BoolOperation__Group__5 )\n // InternalBSQL2Java.g:1249:2: rule__BoolOperation__Group__4__Impl rule__BoolOperation__Group__5\n {\n pushFollow(FOLLOW_19);\n rule__BoolOperation__Group__4__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__5();\n\n state._fsp--;\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__BoolOperation__Group__10() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1410:1: ( rule__BoolOperation__Group__10__Impl rule__BoolOperation__Group__11 )\n // InternalBSQL2Java.g:1411:2: rule__BoolOperation__Group__10__Impl rule__BoolOperation__Group__11\n {\n pushFollow(FOLLOW_7);\n rule__BoolOperation__Group__10__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__11();\n\n state._fsp--;\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__BoolOperation__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1221:1: ( rule__BoolOperation__Group__3__Impl rule__BoolOperation__Group__4 )\n // InternalBSQL2Java.g:1222:2: rule__BoolOperation__Group__3__Impl rule__BoolOperation__Group__4\n {\n pushFollow(FOLLOW_19);\n rule__BoolOperation__Group__3__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__4();\n\n state._fsp--;\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__BoolOperation__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1140:1: ( rule__BoolOperation__Group__0__Impl rule__BoolOperation__Group__1 )\n // InternalBSQL2Java.g:1141:2: rule__BoolOperation__Group__0__Impl rule__BoolOperation__Group__1\n {\n pushFollow(FOLLOW_18);\n rule__BoolOperation__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__1();\n\n state._fsp--;\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__BoolOperation__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1275:1: ( rule__BoolOperation__Group__5__Impl rule__BoolOperation__Group__6 )\n // InternalBSQL2Java.g:1276:2: rule__BoolOperation__Group__5__Impl rule__BoolOperation__Group__6\n {\n pushFollow(FOLLOW_20);\n rule__BoolOperation__Group__5__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__6();\n\n state._fsp--;\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__BoolOperation__Group__8() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1356:1: ( rule__BoolOperation__Group__8__Impl rule__BoolOperation__Group__9 )\n // InternalBSQL2Java.g:1357:2: rule__BoolOperation__Group__8__Impl rule__BoolOperation__Group__9\n {\n pushFollow(FOLLOW_22);\n rule__BoolOperation__Group__8__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__9();\n\n state._fsp--;\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__BoolOperation__Group__19() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1653:1: ( rule__BoolOperation__Group__19__Impl rule__BoolOperation__Group__20 )\n // InternalBSQL2Java.g:1654:2: rule__BoolOperation__Group__19__Impl rule__BoolOperation__Group__20\n {\n pushFollow(FOLLOW_30);\n rule__BoolOperation__Group__19__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__BoolOperation__Group__20();\n\n state._fsp--;\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"
]
]
}
} |
Close form using the method of click on close label in form | public void closeClick() {
closeTitle.click();
} | [
"public void close() {\n getCloseButton().click();\n }",
"private void closeActionPerformed(java.awt.event.ActionEvent evt) {\n this.dispose();\n }",
"public void clickClose()\n {\n click(CLOSE_BUTTON);\n }",
"public void close() {\r\n\t\tpages.Utill().click_element(\"//a[@class='rwCloseButton']\");\r\n\t}",
"@Override\n\tpublic void closeForms() {\n\t\tshowDieta = false;\n\t\tsuper.closeForms();\n\t}",
"public void closeCustomerForm() {\n\t\tcustomerListViewPanel.setEnabled(true);\n\t\tcustomerFormFrame.setVisible(false);\n\t}",
"private void closeBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_closeBtnActionPerformed\n this.dispose();\n Controller.openMainMenu();// TODO add your handling code here:\n }",
"public void btnClose_Click()\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.dispose( );\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception excError)\r\n\t\t\t\t{\r\n\t\t\t\t\tCUtilities.WriteLog( excError );\r\n\t\t\t\t}\r\n\t\t\t}",
"public void closeNewSignupModal() {\n FrameworkControl btnCloseModal = new FrameworkControl(By.xpath(\"//div[@id='new-sign-up-modal']//button[@class='close']\"), \"New Sign In Close\");\n if (btnCloseModal.exists(2) && btnCloseModal.isDisplayed()) {\n btnCloseModal.click();\n }\n }",
"public void clickOnCloseButton(){\n\t\tDynamicFramePage.dynamicFrameForPanchart();\n\t\tDynamicFramePage.switchtoFraFrame();\n\t\tSeleniumUtil.getElementWithFluentWait(panProfileCloseicon).click();\n\t}",
"public static void closeSignInForm()\n {\n signIn.dispose(); \n }",
"public static void closeBtnPressed () {\r\n PCNMClientStart.switchPanels(new NetMapSCR());\r\n }",
"private final void closePanel() {\r\n\r\n\t\tthis.pnlMain.getRootPane().getParent().setVisible(false);\r\n\t\t\r\n\t}",
"public void closeFrame() {\r\n\t\tsetVisible(false);\r\n\t\tfieldHostAddress.setText(\"\");\r\n\t\tfieldPort.setText(\"\");\r\n\t}",
"public void closeUI(){\n\t\ttaxi.setVisible(false);\n\t}",
"public void closeHerokuProjectForm() {\n projectForm.clickProjectHerokuCloseBtn();\n projectForm.waitDisappearHerokuProjectForm();\n }",
"private void closeEditBuildingPopUpForm() {\n\n Stage stage = (Stage) txtBuildingName.getScene().getWindow();\n System.out.println(\"Succeed editing of the building - closing pop up form\");\n stage.close();\n\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setHeaderText(\"Update successfully!\");\n alert.setContentText(\"Record Update successful!\\nPlease refresh the screen to view changes\");\n alert.show();\n }",
"public void windowClose();",
"public static void closeRegisterForm()\n {\n register.dispose();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column TFSTRX_EXTENDED.NOSTRO_MARGIN_SL | public void setNOSTRO_MARGIN_SL(BigDecimal NOSTRO_MARGIN_SL) {
this.NOSTRO_MARGIN_SL = NOSTRO_MARGIN_SL;
} | [
"public BigDecimal getNOSTRO_MARGIN_SL() {\r\n return NOSTRO_MARGIN_SL;\r\n }",
"public void setNOSTRO_MARGIN_GL(BigDecimal NOSTRO_MARGIN_GL) {\r\n this.NOSTRO_MARGIN_GL = NOSTRO_MARGIN_GL;\r\n }",
"public BigDecimal getNOSTRO_MARGIN_GL() {\r\n return NOSTRO_MARGIN_GL;\r\n }",
"public void setNOSTRO_MARGIN_CY(BigDecimal NOSTRO_MARGIN_CY) {\r\n this.NOSTRO_MARGIN_CY = NOSTRO_MARGIN_CY;\r\n }",
"public void setNOSTRO_MARGIN_BR(BigDecimal NOSTRO_MARGIN_BR) {\r\n this.NOSTRO_MARGIN_BR = NOSTRO_MARGIN_BR;\r\n }",
"public BigDecimal getNOSTRO_MARGIN_CY() {\r\n return NOSTRO_MARGIN_CY;\r\n }",
"public void setNOSTRO_MARGIN_CIF(BigDecimal NOSTRO_MARGIN_CIF) {\r\n this.NOSTRO_MARGIN_CIF = NOSTRO_MARGIN_CIF;\r\n }",
"public BigDecimal getNOSTRO_MARGIN_BR() {\r\n return NOSTRO_MARGIN_BR;\r\n }",
"public BigDecimal getNOSTRO_MARGIN_CIF() {\r\n return NOSTRO_MARGIN_CIF;\r\n }",
"public void setSL_NO(BigDecimal SL_NO) {\r\n this.SL_NO = SL_NO;\r\n }",
"public void setCLT_SL_NO(BigDecimal CLT_SL_NO) {\r\n this.CLT_SL_NO = CLT_SL_NO;\r\n }",
"public BigDecimal getSL_NO() {\r\n return SL_NO;\r\n }",
"public BigDecimal getCLT_SL_NO() {\r\n return CLT_SL_NO;\r\n }",
"public org.LNDCDC_ADS_PRPSL.PRPSL_OTLT.apache.nifi.LNDCDC_ADS_PRPSL_PRPSL_OTLT.Builder clearSECUNITLGTHID() {\n SEC_UNIT_LGTH_ID = null;\n fieldSetFlags()[9] = false;\n return this;\n }",
"public void setOTDFLTROSSRIND(java.lang.CharSequence value) {\n this.OT_DFLT_ROS_SR_IND = value;\n }",
"public void setTRX_NO_CUSTOM(String TRX_NO_CUSTOM)\r\n {\r\n\tthis.TRX_NO_CUSTOM = TRX_NO_CUSTOM == null ? null : TRX_NO_CUSTOM.trim();\r\n }",
"public void setTRX_NO_CUSTOM(String TRX_NO_CUSTOM) {\r\n this.TRX_NO_CUSTOM = TRX_NO_CUSTOM == null ? null : TRX_NO_CUSTOM.trim();\r\n }",
"public void setMARGIN_REQUIRED(BigDecimal MARGIN_REQUIRED) {\r\n this.MARGIN_REQUIRED = MARGIN_REQUIRED;\r\n }",
"public org.LNDCDC_ADS_PRPSL.PROPOSAL_LINE.apache.nifi.LNDCDC_ADS_PRPSL_PROPOSAL_LINE.Builder clearSRCCDCOPERNM() {\n SRC_CDC_OPER_NM = null;\n fieldSetFlags()[38] = false;\n return this;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Os Collect Object Expression'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseOsCollectObjectExpression(OsCollectObjectExpression object) {
return null;
} | [
"public T caseOsCollectExpression(OsCollectExpression object) {\n return null;\n }",
"public T caseOsCollectClause(OsCollectClause object) {\n return null;\n }",
"public T caseOsCollectFieldExpression(OsCollectFieldExpression object) {\n return null;\n }",
"public T caseOsExpression(OsExpression object) {\n return null;\n }",
"public T caseObjectOp(ObjectOp object)\n {\n return null;\n }",
"public T caseOsQueryExpression(OsQueryExpression object) {\n return null;\n }",
"public T caseOclExpression(OclExpression object) {\n\t\treturn null;\n\t}",
"public T caseOsDotExpression(OsDotExpression object) {\n return null;\n }",
"public T caseTerminalExpression(TerminalExpression object)\n {\n return null;\n }",
"public T caseEcore_OCLExpression(org.eclipse.ocl.ecore.OCLExpression object) {\n return null;\n }",
"public T caseExpr(Expr object)\n {\n return null;\n }",
"public T caseExpression_ProcessRef(Expression_ProcessRef object)\r\n {\r\n return null;\r\n }",
"public T caseOsVariable(OsVariable object) {\n return null;\n }",
"public T caseExpressionStatement(ExpressionStatement object) {\n\t\treturn null;\n\t}",
"public T caseOsCollectAllFieldsExpression(OsCollectAllFieldsExpression object) {\n return null;\n }",
"public T caseExpression(Expression object)\n {\n return null;\n }",
"public <C> T caseOCLExpression(OCLExpression<C> object) {\n return null;\n }",
"public T caseExpressionOrVector(ExpressionOrVector object)\n {\n return null;\n }",
"public T caseValueExpression(ValueExpression object) {\n\t\treturn null;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SQL delete DELETE FROM contact WHERE password=:password and type=:type Where parameters: :passwordis mapped to method's parameter password :typeis mapped to method's parameter type | @Override
public void deleteCompactRaw(String password, ContactType type) {
if (deleteCompactRawPreparedStatement1==null) {
// generate static SQL for statement
String _sql="DELETE FROM contact WHERE password=? and type=?";
deleteCompactRawPreparedStatement1 = KriptonDatabaseHelper.compile(_context, _sql);
}
KriptonContentValues _contentValues=contentValuesForUpdate(deleteCompactRawPreparedStatement1);
_contentValues.addWhereArgs(SQLTypeAdapterUtils.toString(PasswordAdapterType.class, password));
_contentValues.addWhereArgs(SQLTypeAdapterUtils.toString(EnumAdapterType.class, type));
// generation CODE_001 -- BEGIN
// generation CODE_001 -- END
// log section BEGIN
if (_context.isLogEnabled()) {
// display log
Logger.info("DELETE FROM contact WHERE password=? and type=?");
// log for where parameters -- BEGIN
int _whereParamCounter=0;
for (String _whereParamItem: _contentValues.whereArgs()) {
Logger.info("==> param%s: '%s'",(_whereParamCounter++), StringUtils.checkSize(_whereParamItem));
}
// log for where parameters -- END
}
// log section END
int result = KriptonDatabaseHelper.updateDelete(deleteCompactRawPreparedStatement1, _contentValues);
} | [
"@Override\n public long deleteJQLRaw(long id, ContactType type) {\n if (deleteJQLRawPreparedStatement3==null) {\n // generate static SQL for statement\n String _sql=\"DELETE FROM contact WHERE id=? and type=?\";\n deleteJQLRawPreparedStatement3 = KriptonDatabaseHelper.compile(_context, _sql);\n }\n KriptonContentValues _contentValues=contentValuesForUpdate(deleteJQLRawPreparedStatement3);\n _contentValues.addWhereArgs(String.valueOf(id));\n _contentValues.addWhereArgs(SQLTypeAdapterUtils.toString(EnumAdapterType.class, type));\n\n // generation CODE_001 -- BEGIN\n // generation CODE_001 -- END\n // log section BEGIN\n if (_context.isLogEnabled()) {\n\n // display log\n Logger.info(\"DELETE FROM contact WHERE id=? and type=?\");\n\n // log for where parameters -- BEGIN\n int _whereParamCounter=0;\n for (String _whereParamItem: _contentValues.whereArgs()) {\n Logger.info(\"==> param%s: '%s'\",(_whereParamCounter++), StringUtils.checkSize(_whereParamItem));\n }\n // log for where parameters -- END\n }\n // log section END\n int result = KriptonDatabaseHelper.updateDelete(deleteJQLRawPreparedStatement3, _contentValues);\n return result;\n }",
"public void deleteBySubject(int id, TripletType type) throws DAOException;",
"void deleteAsync(Class<? extends RealmObject> type, HashMap<String, String> params);",
"public void accountTypeDelete(AccountType accountType);",
"public void deleteByComplement(int id, TripletType type) throws DAOException;",
"public void deleteUserByUsernameAndPassword(String username, String password);",
"void deletePhone(String mail, String phone) throws DBException;",
"int delete(String statement, Object parameter);",
"public void delete(Type type);",
"public void deleteRecordByOptionAndType(String option, String type)\n\t{\n\t\tStringBuilder sqlBuilder = new StringBuilder(1024);\n\t\tJdbcTemplate updateTemplate;\n\n\t\tsqlBuilder.append(\"DELETE FROM \");\n\t\tsqlBuilder.append(getTableName());\n\t\tsqlBuilder.append(\" WHERE \");\n\t\tsqlBuilder.append(\"GAZOID ='\");\n\t\tsqlBuilder.append(option);\n\t\tsqlBuilder.append(\"' AND GAZTYP = '\");\n\t\tsqlBuilder.append(type);\n\t\tsqlBuilder.append(\"'\");\n\n\t\tupdateTemplate = getJdbcTemplate();\n\n\t\tif (LOG.isDebugEnabled())\n\t\t{\n\t\t\tLOG.debug(new StringBuilder(\"The executed sql is: \").append(sqlBuilder.toString()).toString());\n\t\t}\n\t\tupdateTemplate.update(sqlBuilder.toString());\n\n\t\tif (isAutocommitable())\n\t\t{\n\t\t\tcommit();\n\t\t}\n\t}",
"public void deleteByAll(int idSubject, int idRelation, int idComplement, TripletType typeSubject, TripletType typeComplement) throws DAOException;",
"public void deleteRoomtype(Roomtype roomtype);",
"public void deleteUserCredentials(String login) throws SQLException;",
"public String deleteActivity(ActivityTypeTable at) throws SQLException {\n String sql = \"DELETE FROM ActivityType WHERE activityType = ?\";\n PreparedStatement deleteStm = connectionSQL().prepareStatement(sql);\n deleteStm.setString(1, at.getActivityType());\n deleteStm.execute();\n deleteStm.close();\n return sql;\n }",
"public int deleteAccount(Account deleteAccount);",
"public static void DeleteTelefonesDecoradora(String decoradora, String tel){\r\n \r\n conn = DB_Connection.connect();\r\n \r\n try{\r\n String delete = \"DELETE FROM TELEFONES_DECORADORA \"\r\n + \"WHERE DEC = ? AND TELEFONE = ?\"; \r\n \r\n pstmt = conn.prepareStatement(delete);\r\n \r\n pstmt.setString(1, decoradora);\r\n pstmt.setString(2, tel);\r\n\r\n \r\n pstmt.executeUpdate();\r\n \r\n \r\n } catch(SQLException e){\r\n e.printStackTrace();\r\n \r\n } finally{\r\n try{\r\n \r\n \r\n \r\n pstmt.close();\r\n conn.close();\r\n System.out.println(\"CONEXAO ENCERRADA\");\r\n } catch(SQLException ex){\r\n ex.printStackTrace();\r\n \r\n }\r\n \r\n }\r\n \r\n }",
"protected abstract String deleteByRouteQuery();",
"Parameters deleteByName(String name);",
"void deleteActivityType(int id) throws DataAccessException;"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs an instance for posting data to the specified Solr URL (ie: " | public SimplePostTool(URL solrUrl) {
this.solrUrl = solrUrl;
warn("Make sure your XML documents are encoded in " + POST_ENCODING
+ ", other encodings are not currently supported");
} | [
"public SimplePostTool(URL solrUrl) {\n this.solrUrl = solrUrl;\n }",
"public void postData(Reader data, Writer output) {\n\n HttpURLConnection urlc = null;\n try {\n urlc = (HttpURLConnection) solrUrl.openConnection();\n try {\n urlc.setRequestMethod(\"POST\");\n } catch (ProtocolException e) {\n throw new PostException(\"Shouldn't happen: HttpURLConnection doesn't support POST??\", e);\n }\n urlc.setDoOutput(true);\n urlc.setDoInput(true);\n urlc.setUseCaches(false);\n urlc.setAllowUserInteraction(false);\n urlc.setRequestProperty(\"Content-type\", \"text/xml; charset=\" + POST_ENCODING);\n \n OutputStream out = urlc.getOutputStream();\n \n try {\n Writer writer = new OutputStreamWriter(out, POST_ENCODING);\n pipe(data, writer);\n writer.close();\n } catch (IOException e) {\n throw new PostException(\"IOException while posting data\", e);\n } finally {\n if(out!=null) out.close();\n }\n \n InputStream in = urlc.getInputStream();\n try {\n Reader reader = new InputStreamReader(in);\n pipe(reader, output);\n reader.close();\n } catch (IOException e) {\n throw new PostException(\"IOException while reading response\", e);\n } finally {\n if(in!=null) in.close();\n }\n \n } catch (IOException e) {\n fatal(\"Connection error (is Solr running at \" + solrUrl + \" ?): \" + e);\n \n } finally {\n if(urlc!=null) urlc.disconnect();\n }\n }",
"private SolrProxy() {\r\n\r\n\t\t/*\r\n\t\t * Connect to Apache Solr\r\n\t\t */\r\n\t\ttry {\r\n\r\n\t\t\tString endpoint = bundle.getString(GlobalConstants.SEARCH_ENDPOINT);\r\n\t\t\tserver = new CommonsHttpSolrServer(endpoint);\r\n\t\t\t\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"@org.junit.Test\n public void mtasRequestHandlerCollection3() throws IOException {\n // post\n ModifiableSolrParams paramsPost = new ModifiableSolrParams();\n paramsPost.set(\"q\", \"*:*\");\n paramsPost.set(\"mtas\", \"true\");\n paramsPost.set(\"mtas.collection\", \"true\");\n paramsPost.set(\"mtas.collection.0.key\", \"setCreatedByPost\");\n paramsPost.set(\"mtas.collection.0.action\", \"post\");\n paramsPost.set(\"mtas.collection.0.id\", \"setCreatedByPost\");\n paramsPost.set(\"mtas.collection.0.post\", \"[1,3,4]\");\n SolrRequest<?> requestPost = new QueryRequest(paramsPost);\n try {\n server.request(requestPost, \"collection1\");\n } catch (SolrServerException e) {\n throw new IOException(e);\n }\n // import\n ModifiableSolrParams paramsImport = new ModifiableSolrParams();\n paramsImport.set(\"q\", \"*:*\");\n paramsImport.set(\"mtas\", \"true\");\n paramsImport.set(\"mtas.collection\", \"true\");\n paramsImport.set(\"mtas.collection.0.key\", \"setCreatedByImport\");\n paramsImport.set(\"mtas.collection.0.action\", \"post\");\n paramsImport.set(\"mtas.collection.0.id\", \"setCreatedByImport\");\n paramsImport.set(\"mtas.collection.0.post\", \"[1,3,4]\");\n SolrRequest<?> requestImport = new QueryRequest(paramsImport);\n try {\n server.request(requestImport, \"collection1\");\n } catch (SolrServerException e) {\n throw new IOException(e);\n }\n // query post\n ModifiableSolrParams paramsSelect1 = new ModifiableSolrParams();\n paramsSelect1.set(\"q\", \"{!mtas_join field=\\\"\" + MtasSolrBase.FIELD_ID\n + \"\\\" collection=\\\"setCreatedByPost\\\"}\");\n paramsSelect1.set(\"rows\", \"0\");\n SolrRequest<?> request1 = new QueryRequest(paramsSelect1);\n NamedList<Object> response1;\n try {\n response1 = server.request(request1, \"collection1\");\n } catch (SolrServerException e) {\n throw new IOException(e);\n }\n long n1 = MtasSolrBase.getNumFound(response1);\n assertTrue(\"no matching documents for posted set: \" + n1, n1 > 0);\n // query import\n ModifiableSolrParams paramsSelect2 = new ModifiableSolrParams();\n paramsSelect2.set(\"q\", \"{!mtas_join field=\\\"\" + MtasSolrBase.FIELD_ID\n + \"\\\" collection=\\\"setCreatedByImport\\\"}\");\n paramsSelect2.set(\"rows\", \"0\");\n SolrRequest<?> request2 = new QueryRequest(paramsSelect2);\n NamedList<Object> response2;\n try {\n response2 = server.request(request2, \"collection1\");\n } catch (SolrServerException e) {\n throw new IOException(e);\n }\n long n2 = MtasSolrBase.getNumFound(response2);\n assertTrue(\"no matching documents for imported set: \" + n2, n2 > 0);\n // compare\n assertTrue(\"posted set and imported set give different results : \" + n1\n + \" and \" + n2, n1 == n2);\n }",
"abstract WebRequest createPostRequest(String url, String postBody);",
"public void postData(InputStream data, Integer length, OutputStream output, String type, URL url) {\n if(type == null)\n type = DEFAULT_CONTENT_TYPE;\n HttpURLConnection urlc = null;\n try {\n try {\n urlc = (HttpURLConnection) url.openConnection();\n try {\n urlc.setRequestMethod(\"POST\");\n } catch (ProtocolException e) {\n fatal(\"Shouldn't happen: HttpURLConnection doesn't support POST??\"+e);\n \n }\n urlc.setDoOutput(true);\n urlc.setDoInput(true);\n urlc.setUseCaches(false);\n urlc.setAllowUserInteraction(false);\n urlc.setRequestProperty(\"Content-type\", type);\n\n if (null != length) urlc.setFixedLengthStreamingMode(length);\n\n } catch (IOException e) {\n fatal(\"Connection error (is Solr running at \" + solrUrl + \" ?): \" + e);\n }\n \n OutputStream out = null;\n try {\n out = urlc.getOutputStream();\n pipe(data, out);\n } catch (IOException e) {\n fatal(\"IOException while posting data: \" + e);\n } finally {\n try { if(out!=null) out.close(); } catch (IOException x) { /*NOOP*/ }\n }\n \n InputStream in = null;\n try {\n if (HttpURLConnection.HTTP_OK != urlc.getResponseCode()) {\n warn(\"Solr returned an error #\" + urlc.getResponseCode() + \n \" \" + urlc.getResponseMessage());\n }\n\n in = urlc.getInputStream();\n pipe(in, output);\n } catch (IOException e) {\n warn(\"IOException while reading response: \" + e);\n } finally {\n try { if(in!=null) in.close(); } catch (IOException x) { /*NOOP*/ }\n }\n \n } finally {\n if(urlc!=null) urlc.disconnect();\n }\n }",
"public WordSearch( String url )\n {\n super(url);\n this.url = url;\n }",
"public SolrClient getSolr(String url) {\r\n\t\tsolr.setBaseURL(url);\r\n\t\tsolr.setParser(new XMLResponseParser());\r\n\t\tsolr.setMaxTotalConnections(4);\r\n\t\treturn solr;\r\n\t}",
"QueryResponse query(SolrParams solrParams) throws SolrServerException;",
"public void createURL(){\n\t\t//Concatenate separate portions\n\t\tthis.url = new String(this.base_url + this.query_url + this.keyword);\n\t}",
"public HZEventFilter() {\n solrBaseURL = Settings.getConfiguration().getString(\"solr.base.uri\", \"http://localhost:8983/solr/search_core\");\n logger.info(\"HZEvetFilter.constructor - the base url is \"+solrBaseURL);\n client = new HttpSolrClient(solrBaseURL);\n }",
"String postRequest(String url);",
"public DocumentAnalysisRequest() {\n super(METHOD.POST, \"/analysis/document\");\n }",
"public URLParametersParser (String query){\n\tinit (query);\n }",
"private Object searchDocument(Request request) {\n\t\tSystem.out.println(\"##==> Search Document: \" + request);\n\t\treturn restTemplate.postForObject(\"http://209.249.189.32:9005//solr/services/document/search\", request,\n\t\t\t\tObject.class);\n\t}",
"public static void main(String[] args) throws IOException, SolrServerException {\n\n\n CloudSolrClient cloudSolrClient = new CloudSolrClient(args[0]);\n cloudSolrClient.setDefaultCollection(args[1]);\n cloudSolrClient.connect();\n\n SolrInputDocument solrInputDocument = new SolrInputDocument();\n String id = Long.toString(System.currentTimeMillis());\n solrInputDocument.addField(\"id\", id);\n\n// Test Special character Removal\n String testString = \"ZB*2227*2Z4\";\n solrInputDocument.addField(\"whitespace\", testString);\n solrInputDocument.addField(\"standard\", testString);\n\n// Test Special character Removal\n// Test hello this phrasing\n SolrInputDocument solrInputDocument2 = new SolrInputDocument();\n String id2 = Long.toString(System.currentTimeMillis());\n solrInputDocument2.addField(\"id\", id2);\n\n String testString2 = \"Hello, this! @ [at] <sat> {here}\";\n solrInputDocument2.addField(\"whitespace\", testString2);\n solrInputDocument2.addField(\"standard\", testString2);\n\n// Test hello this phrasing\n// Test hello this word a phrase slop phrasing\n SolrInputDocument solrInputDocument3 = new SolrInputDocument();\n String id3 = Long.toString(System.currentTimeMillis());\n solrInputDocument3.addField(\"id\", id3);\n\n String testString3 = \"hello, this is a test!\";\n solrInputDocument3.addField(\"whitespace\", testString3);\n solrInputDocument3.addField(\"standard\", testString3);\n\n\n// Test hello this word a phrase slop phrasing\n SolrInputDocument solrInputDocument4 = new SolrInputDocument();\n String id4 = Long.toString(System.currentTimeMillis());\n solrInputDocument4.addField(\"id\", id4);\n\n String testString4 = \"hello, this word a test!\";\n solrInputDocument4.addField(\"whitespace\", testString4);\n solrInputDocument4.addField(\"standard\", testString4);\n\n cloudSolrClient.add(solrInputDocument);\n cloudSolrClient.add(solrInputDocument2);\n cloudSolrClient.add(solrInputDocument3);\n cloudSolrClient.add(solrInputDocument4);\n cloudSolrClient.commit();\n }",
"@POST\n @Path(\"/import/{surl}\")\n public Response importDataset(@PathParam(\"surl\") String surl, @javax.ws.rs.core.Context HttpServletRequest request) {\n Map<String, Object> result = new LinkedHashMap<String, Object>();\n try {\n String decodedUrl = URLDecoder.decode(surl, \"UTF-8\");\n log.debug(\"Importing: \" + decodedUrl);\n final URL url = new URL(decodedUrl);\n final UriRef creator = Resource.uriRef((String) request.getAttribute(\"userid\"));\n\n PermissionCheck p = new PermissionCheck(creator, Permission.UPLOAD_DATA);\n if (!p.userHasPermission()) {\n return p.getErrorResponse();\n }\n\n final String id = RestUriMinter.getInstance().mintUri(null); // Create dataset uri\n final ThingSession ts = c.getThingSession();\n\n new Thread(new Runnable() {\n public void run() {\n try {\n\n UriRef s = Resource.uriRef(id);\n Thing t = ts.newThing(s);\n\n InputStream is = getDataStream(url);\n String fileName = url.getPath().substring(url.getPath().lastIndexOf('/') + 1);\n // mimetype\n String contentType = TupeloStore.getInstance().getMimeMap().getContentTypeFor(fileName);\n // update context with new mime-type potentially\n TupeloStore.getInstance().getMimeMap().checkMimeType(contentType);\n\n try {\n BeanFiller.fillDataBean(c, t, fileName, contentType, creator, new Date(), is);\n\n t.addValue(Resource.uriRef(\"http://www.w3.org/ns/prov#hadPrimarySource\"), Resource.uriRef(url.toExternalForm()));\n } catch (NoSuchAlgorithmException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n t.save();\n ts.clear();\n log.debug(\"Created dataset from \" + url.getPath());\n } catch (IOException io) {\n log.warn(\"IO error retrieving \" + url.toExternalForm() + \" for dataset \" + id);\n if (log.isDebugEnabled()) {\n io.printStackTrace();\n }\n } catch (OperatorException e) {\n log.warn(\"OperatorError retrieving \" + url.toExternalForm() + \" for dataset \" + id);\n if (log.isDebugEnabled()) {\n e.printStackTrace();\n }\n }\n\n }\n\n private InputStream getDataStream(URL url) throws IOException {\n\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setReadTimeout(10000);\n conn.addRequestProperty(\"Accept-Language\", \"en-US,en;q=0.8\");\n\n boolean redirect = false;\n\n // normally, 3xx is redirect\n int status = conn.getResponseCode();\n if (status != HttpURLConnection.HTTP_OK) {\n if (status == HttpURLConnection.HTTP_MOVED_TEMP\n || status == HttpURLConnection.HTTP_MOVED_PERM\n || status == HttpURLConnection.HTTP_SEE_OTHER) {\n redirect = true;\n }\n }\n\n if (redirect) {\n\n // get redirect url from \"location\" header field\n String newUrl = conn.getHeaderField(\"Location\");\n\n // If the first site has set a cookie, pass it on in the redirect\n String cookies = conn.getHeaderField(\"Set-Cookie\");\n\n // open the new connection\n conn = (HttpURLConnection) new URL(newUrl).openConnection();\n conn.setRequestProperty(\"Cookie\", cookies);\n conn.addRequestProperty(\"Accept-Language\", \"en-US,en;q=0.8\");\n status = conn.getResponseCode();\n\n }\n if (status == HttpURLConnection.HTTP_OK) {\n return conn.getInputStream();\n } else {\n throw new IOException(\"Remote server response for \" + conn.getURL().toExternalForm() + \" : \" + status);\n }\n }\n }).start();\n //TO be clear - success means we've done the job of making the call to the remote URL to get the data, not that that call(s) have succeeded.\n //FixMe - could add the feedback service developed for the internal upload (showing state of the upload as it progresses.\n result.put(\"Success\", \"Object is imported as: \" + id);\n return Response.status(200).entity(result).build();\n } catch (Exception e) {\n log.error(\"Error importing dataset from \" + surl, e);\n result.put(\"Failure\", \"Error importing dataset [\" + e.getMessage() + \"]\");\n return Response.status(500).entity(result).build();\n }\n }",
"@org.junit.Test\n public void mtasRequestHandlerCollection2() throws IOException {\n // post\n ModifiableSolrParams paramsPost = new ModifiableSolrParams();\n paramsPost.set(\"q\", \"*:*\");\n paramsPost.set(\"mtas\", \"true\");\n paramsPost.set(\"mtas.collection\", \"true\");\n paramsPost.set(\"mtas.collection.0.key\", \"postKey1\");\n paramsPost.set(\"mtas.collection.0.action\", \"post\");\n paramsPost.set(\"mtas.collection.0.id\", \"postSet1\");\n paramsPost.set(\"mtas.collection.0.post\", \"[1,3,4]\");\n paramsPost.set(\"mtas.collection.1.key\", \"postKey2\");\n paramsPost.set(\"mtas.collection.1.action\", \"post\");\n paramsPost.set(\"mtas.collection.1.id\", \"postSet2\");\n paramsPost.set(\"mtas.collection.1.post\", \"[2]\");\n paramsPost.set(\"mtas.collection.2.key\", \"createKey1\");\n paramsPost.set(\"mtas.collection.2.action\", \"create\");\n paramsPost.set(\"mtas.collection.2.id\", \"createSet1\");\n paramsPost.set(\"mtas.collection.2.field\", MtasSolrBase.FIELD_ID);\n SolrRequest<?> requestPost = new QueryRequest(paramsPost);\n NamedList<Object> responsePost;\n try {\n responsePost = server.request(requestPost, \"collection1\");\n } catch (SolrServerException e) {\n throw new IOException(e);\n }\n MtasSolrBase.getFromMtasCollection(responsePost, \"post\");\n // query set1\n ModifiableSolrParams paramsSelect1 = new ModifiableSolrParams();\n paramsSelect1.set(\"q\", \"{!mtas_join field=\\\"\" + MtasSolrBase.FIELD_ID\n + \"\\\" collection=\\\"postSet1\\\"}\");\n paramsSelect1.set(\"rows\", \"0\");\n SolrRequest<?> request1 = new QueryRequest(paramsSelect1);\n NamedList<Object> response1;\n try {\n response1 = server.request(request1, \"collection1\");\n } catch (SolrServerException e) {\n throw new IOException(e);\n }\n long n1 = MtasSolrBase.getNumFound(response1);\n assertTrue(\"incorrect number of matching documents : \" + n1, n1 == 2);\n // query set2\n ModifiableSolrParams paramsSelect2 = new ModifiableSolrParams();\n paramsSelect2.set(\"q\", \"{!mtas_join field=\\\"\" + MtasSolrBase.FIELD_ID\n + \"\\\" collection=\\\"postSet2\\\"}\");\n paramsSelect2.set(\"rows\", \"0\");\n SolrRequest<?> request2 = new QueryRequest(paramsSelect2);\n NamedList<Object> response2;\n try {\n response2 = server.request(request2, \"collection1\");\n } catch (SolrServerException e) {\n throw new IOException(e);\n }\n long n2 = MtasSolrBase.getNumFound(response2);\n assertTrue(\"incorrect number of matching documents : \" + n2, n2 == 1);\n // query set3\n ModifiableSolrParams paramsSelect3 = new ModifiableSolrParams();\n paramsSelect3.set(\"q\", \"{!mtas_join field=\\\"\" + MtasSolrBase.FIELD_ID\n + \"\\\" collection=\\\"createSet1\\\"}\");\n paramsSelect3.set(\"rows\", \"0\");\n SolrRequest<?> request3 = new QueryRequest(paramsSelect3);\n NamedList<Object> response3;\n try {\n response3 = server.request(request3, \"collection1\");\n } catch (SolrServerException e) {\n throw new IOException(e);\n }\n long n3 = MtasSolrBase.getNumFound(response3);\n assertTrue(\"incorrect number of matching documents : \" + n3, n3 == 3);\n // query set1 or set2\n ModifiableSolrParams paramsSelect4 = new ModifiableSolrParams();\n paramsSelect4.set(\"q\",\n \"({!mtas_join field=\\\"\" + MtasSolrBase.FIELD_ID\n + \"\\\" collection=\\\"postSet1\\\"}) OR ({!mtas_join field=\\\"\"\n + MtasSolrBase.FIELD_ID + \"\\\" collection=\\\"postSet2\\\"})\");\n paramsSelect4.set(\"rows\", \"0\");\n SolrRequest<?> request4 = new QueryRequest(paramsSelect4);\n NamedList<Object> response4;\n try {\n response4 = server.request(request4, \"collection1\");\n } catch (SolrServerException e) {\n throw new IOException(e);\n }\n long n4 = MtasSolrBase.getNumFound(response4);\n assertTrue(\"incorrect number of matching documents : \" + n4, n4 == 3);\n }",
"public Request<E, T> buildHttpPost ()\n\t{\n\t\treturn new HttpPostRequest<E, T>(this);\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/! It sets the value of the firmware version data that is present in the enzo3G/StarStim firmware version frame. \param value The firmwareVersion value. | public void firmwareVersion(int value){
_firmwareVersion = value;
} | [
"public void setVersionValue(String value)\r\n {\r\n getSemanticObject().setProperty(swb_versionValue, value);\r\n }",
"public void setVersion(int value) {\n this.version = value;\n }",
"public void setFirmwareVersion(String firmwareVersion)\r\n\t{\r\n\t\tthis.firmwareVersion = firmwareVersion;\r\n\t}",
"public void setFilmlisteVersion(byte value) {\n this.filmlisteVersion = value;\n }",
"public void setVersionFile(String value)\r\n {\r\n getSemanticObject().setProperty(swb_versionFile, value);\r\n }",
"public void setVersionNumber(int value)\r\n {\r\n getSemanticObject().setIntProperty(swb_versionNumber, value);\r\n }",
"public void setVersion(java.lang.Integer value) {\n this.Version = value;\n }",
"public void setNextVersion(org.semanticwb.model.VersionInfo value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_nextVersion, value.getSemanticObject());\r\n }else\r\n {\r\n removeNextVersion();\r\n }\r\n }",
"void visitVersionValue(VersionValue value);",
"private void setChromeVersion(org.chromium.components.paint_preview.common.proto.PaintPreview.ChromeVersionProto value) {\n value.getClass();\n chromeVersion_ = value;\n bitField0_ |= 0x00000004;\n }",
"public void set_capsule_version(long value) {\n setUIntElement(offsetBits_capsule_version(), 32, value);\n }",
"private void setBeanVersion(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(BEANVERSION_PROP.get(), value);\n }",
"public void setApplicationVersion(final String value)\n\t{\n\t\tsetApplicationVersion( getSession().getSessionContext(), value );\n\t}",
"public void setVersionNo(String value) {\n setAttributeInternal(VERSIONNO, value);\n }",
"public void setExtensionsSchemaVersion(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(EXTENSIONSSCHEMAVERSION_PROP.get(), value);\n }",
"public void setFormatVersion(int value) {\n this.formatVersion = value;\n }",
"public Energistics.Etp.v12.Protocol.Core.RequestSession.Builder setApplicationVersion(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.applicationVersion = value;\n fieldSetFlags()[1] = true;\n return this;\n }",
"public void setVersion(int version)\n {\n encryptionDictionary.setInt( \"V\", version );\n }",
"public void setExtensionsSchemaVersion(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(EXTENSIONSSCHEMAVERSION_PROP.get(), value);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use cpx_item.newBuilder() to construct. | private cpx_item(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
} | [
"private CartItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Item(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public GIPIQuoteItemMC( \tfinal Integer quoteId, \t\tfinal Integer itemNo, \t\tfinal String plateNo,\n \t\t\t \t\t\t\t\tfinal String motorNo, \t\tfinal String serialNo, \t\tfinal String sublineTypeCd,\n \t\t\t \t\t\t\t\tfinal Integer motType, \t\tfinal Integer carCompanyCd, final Integer cocYy,\n \t\t\t \t\t\t\t\tfinal Integer cocSeqNo, \tfinal Integer cocSerialNo, \tfinal String cocType,\n \t\t\t \t\t\t\t\tfinal BigDecimal repairLim, final String color, \t\tfinal String modelYear, \n \t\t\t \t\t\t\t\tfinal String make,\t\t\tfinal BigDecimal estValue, \tfinal BigDecimal towing, \t\n \t\t\t \t\t\t\t\tfinal String assignee,\t\tfinal Integer noOfPass, \tfinal String tariffZone, \t\n\t\t\t\t\t \t\t\tfinal Date cocIssueDate,\tfinal String mvFileNo, \t\tfinal String acquiredFrom, \t\n\t\t\t\t\t \t\t\tfinal String ctvTag,\t\tfinal Integer typeOfBodyCd, final String unladenWt, \t\n\t\t\t\t\t \t\t\tfinal Integer makeCd,\t\tfinal Integer seriesCd,\t \tfinal String basicColorCd,\t\n\t\t\t\t\t \t\t\tfinal Integer colorCd,\t\tfinal String origin, \t\tfinal String destination, \t\n\t\t\t\t\t \t\t\tfinal String cocAtcn,\t\tfinal String userId, \t\tfinal Date lastUpdate, \t\t\n\t\t\t\t\t \t\t\tfinal String sublineCd)\t{\n \t\t\n \t\tthis.quoteId = quoteId;\n \t\tthis.itemNo = itemNo;\n \t\tthis.plateNo = plateNo;\n \t\tthis.motorNo = motorNo;\n \t\tthis.serialNo = serialNo;\n \t\tthis.sublineTypeCd = sublineTypeCd;\n \t\tthis.motType = motType;\n \t\tthis.carCompanyCd = carCompanyCd;\n \t\tthis.cocYy = cocYy;\n \t\tthis.cocSeqNo = cocSeqNo;\n \t\tthis.cocSerialNo = cocSerialNo;\n \t\tthis.cocType = cocType;\n \t\tthis.repairLim = repairLim;\n \t\tthis.color = color;\n \t\tthis.modelYear = modelYear;\n \t\tthis.make = make;\n \t\tthis.estValue = estValue;\n \t\tthis.towing = towing;\n \t\tthis.assignee = assignee;\n \t\tthis.noOfPass = noOfPass;\n \t\tthis.tariffZone = tariffZone;\n \t\tthis.cocIssueDate = cocIssueDate;\n \t\tthis.mvFileNo = mvFileNo;\n \t\tthis.acquiredFrom = acquiredFrom;\n \t\tthis.ctvTag = ctvTag;\n \t\tthis.typeOfBodyCd = typeOfBodyCd;\n \t\tthis.unladenWt = unladenWt;\n \t\tthis.makeCd = makeCd;\n \t\tthis.seriesCd = seriesCd;\n \t\tthis.basicColorCd = basicColorCd;\n \t\tthis.colorCd = colorCd;\n \t\tthis.origin = origin;\n \t\tthis.destination = destination;\n \t\tthis.cocAtcn = cocAtcn;\n \t\tsuper.setUserId(userId);\n \t\tsuper.setLastUpdate(lastUpdate);\n \t\tthis.sublineCd = sublineCd;\n \t\t\n \t}",
"private Item(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ItemProto(Builder builder) {\n super(builder);\n }",
"private InventoryItemProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"protected Item createCtorItem() {\n Item item = new Item( \n i18n( \"ctorItem_title\" ), i18n( \"ctorItem_description\" ),\n null, null, false, false );\n return item;\n }",
"private SCBuyHutItem(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"Item(Item item) {\r\n\t\tthis.itemName = item.itemName;\r\n\t\tthis.quantity = item.quantity;\r\n\t\tthis.itemPrice = item.itemPrice;\r\n\t\tthis.itemVAT = item.itemVAT;\r\n\t}",
"private GoodsItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private CatalogItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private RestockItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static avro.Item.Builder newBuilder() {\n return new avro.Item.Builder();\n }",
"private CSBuyHutItem(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public VIACHeadItem()\r\n {\r\n\r\n }",
"public static ItemBuilder create() {\n return new ItemBuilder();\n }",
"private RequestItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private SCGiftHutItem(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private MyMessageItem(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method which renders the exit button's positioning, size and active and inactive versions of the sprite | private void exitButton(int x) {
if (Gdx.input.getX() < x + EXIT_BUTTON_WIDTH && Gdx.input.getX() > x
&& PrisonBreakout.HEIGHT - Gdx.input.getY() < EXIT_BUTTON_Y + EXIT_BUTTON_HEIGHT
&& PrisonBreakout.HEIGHT - Gdx.input.getY() > EXIT_BUTTON_Y) {
exitButtonActive.setPosition(x, EXIT_BUTTON_Y);
exitButtonActive.setSize(EXIT_BUTTON_WIDTH, EXIT_BUTTON_HEIGHT);
exitButtonActive.draw(game.getGameController().getSpriteBatch());
Boolean muted = MainMenu.getInstance(game).checkSoundMuted();
if (buttonActive) {
if (checkExitButtonMouseOver == false) {
Sound getMouseOverSound = MainMenu.getInstance(game).mouseOverSound();
if (muted == true) {
getMouseOverSound.stop();
} else {
getMouseOverSound.play(1f);
}
checkExitButtonMouseOver = true;
}
if (Gdx.input.isTouched()) {
Gdx.app.exit();
}
}
} else {
checkExitButtonMouseOver = false;
exitButtonInActive.setPosition(x, EXIT_BUTTON_Y);
exitButtonInActive.setSize(EXIT_BUTTON_WIDTH, EXIT_BUTTON_HEIGHT);
exitButtonInActive.draw(game.getGameController().getSpriteBatch());
}
} | [
"private void setupExitButton() {\n exitButton = ButtonFactory.makeButton(game,\"backButtonUp.png\",\"backButtonDown.png\",SCREEN_WIDTH/2,\n SCREEN_HEIGHT*1.15f/9, (int)(SCREEN_WIDTH*0.75), (int)(SCREEN_HEIGHT*0.13));\n\n exitButton.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent event, float x, float y) {\n playButtonSound();\n game.activateMenu(MenuFactory.makeMenu(game, TYPE.MAIN));\n }\n });\n }",
"private void drawExit() {\n \tExitModel exit = GameModel.getInstance().getCurrentLevel().getExit();\n \tExitView exitView = (ExitView) ViewFactory.makeView(game, exit);\n \texitView.draw(game.getSpriteBatch());\n }",
"public static Rectangle getExitButton() {\r\n\t\treturn exitButton;\r\n\t}",
"void createExitBoardBtn() {\r\n exitBtn = new Button(\"Exit\");\r\n exitBtn.setMinWidth(80);\r\n exitBtn.setMinHeight(40);\r\n exitBtn.setLayoutX(400);\r\n exitBtn.setLayoutY(120);\r\n }",
"private void setExitButton(){\n exitButton.setTranslateX(640);\n exitButton.setTranslateY(415);\n root.getChildren().add(exitButton);\n exitButton.setOnMouseClicked(event-> System.exit(0));\n }",
"private void render_interface_end_btn(BaseActor infoButtonSelector, \n Map<HeroineEnum.ActionButtonEnum, BaseActor> mapActionButtons,\n Map<HeroineEnum.ActionButtonEnum, Boolean> mapActionButtonEnabled,\n HashMap<HeroineEnum.SelectPosEnum, Float> mapSelectorPosX,\n HashMap<HeroineEnum.SelectPosEnum, Float> mapSelectorPosY)\n {\n \n // The function performs display-related logic related to buttons at the conclusion of combat.\n \n // 1. Hide attack, run, and other action buttons.\n // 2. Disable attack and run buttons.\n // 3. Move selector to information button.\n // 4. Hide selector.\n \n HeroineEnum.ActionButtonEnum actionButtonEnum; // Enumeration value related to current action button \n // in loop.\n Set<Map.Entry<HeroineEnum.ActionButtonEnum, BaseActor>> entrySetActionButtons; // Set view of the \n // action buttons in the hash map.\n \n // 1. Disable attack and run buttons.\n mapActionButtonEnabled.put(HeroineEnum.ActionButtonEnum.ACTION_BUTTON_ATTACK, false);\n mapActionButtonEnabled.put(HeroineEnum.ActionButtonEnum.ACTION_BUTTON_RUN, false);\n \n // 2. Hide action buttons.\n \n // Store a set view of the action button mappings for the hash map.\n entrySetActionButtons = mapActionButtons.entrySet();\n \n // Loop through action buttons.\n for (Map.Entry entryActionButton : entrySetActionButtons)\n {\n \n // Store enumeration value for current action button in loop.\n actionButtonEnum = (HeroineEnum.ActionButtonEnum)entryActionButton.getKey();\n \n // Hide current button.\n mapActionButtons.get(actionButtonEnum).setVisible(false);\n \n } // End ... Loop through action buttons.\n \n // 3. Move selector to information button. Hide selector.\n \n // Position the selector around the information button.\n infoButtonSelector.setPosition(mapSelectorPosX.get(HeroineEnum.SelectPosEnum.BUTTON_POS_INFO), \n mapSelectorPosY.get(HeroineEnum.SelectPosEnum.BUTTON_POS_INFO));\n \n // 4. Hide selector.\n infoButtonSelector.setVisible(false);\n \n }",
"private void setupExitButton() {\r\n\t\texitButton = new Button(\"\");\r\n\t\texitButton.setId(\"close_help\");\r\n\t\texitButton.setPrefSize(25, 25);\r\n\t\texitButton.setTranslateX(40);\r\n\t\texitButton.setTranslateY(3);\r\n\t\texitButton.setOnMouseClicked(new EventHandler<MouseEvent>() {\r\n\t\t\tpublic void handle(MouseEvent e) {\r\n\t\t\t\thelpStage.close();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"private void initializeExitBtnImage() {\n\n try {\n ImageIcon img = createImageIcon(\"/images/exitBtn.png\", \"btnPicture\");\n Image titleImage = img.getImage(); // convert it into an image\n Image finalTitleImage = titleImage.getScaledInstance(355, 130, java.awt.Image.SCALE_SMOOTH);\n img = new ImageIcon(finalTitleImage);\n exitBtn.setIcon(img);\n\n } catch (Exception ex) {\n System.out.println(\"NO IMAGE??\");\n }\n }",
"public ExitRenderer(TileRenderer tileRenderer, boolean isDark) {\r\n super(tileRenderer, isDark);\r\n\r\n imageSize = (int) (size * 0.8);\r\n }",
"public void renderButtons() {\n batch.draw(PvPbtn, hitboxes[0].x, hitboxes[0].y, hitboxes[0].width, hitboxes[0].height);\n batch.draw(PvEbtn, hitboxes[1].x, hitboxes[1].y, hitboxes[1].width, hitboxes[1].height);\n batch.draw(Exitbtn, hitboxes[2].x, hitboxes[2].y, hitboxes[2].width, hitboxes[2].height);\n }",
"@Override\r\n public void drawExit()\r\n {\r\n\tdraw();\r\n\tif (_transition != null)\r\n\t _transition.draw();\r\n }",
"private void createBackButton() {\n\t\tbackButton = ButtonFactory.makeButton(game.getAssetManager().get(\"backButtonUp.png\", Texture.class),\n\t\t\t \t \t\t\t\t\t\t\t game.getAssetManager().get(\"backButtonDown.png\", Texture.class), \n\t\t\t \t \t\t\t\t\t\t\t SCREEN_WIDTH/2, \n\t\t\t \t \t\t\t\t\t\t\t SCREEN_HEIGHT/7, \n\t\t\t \t \t\t\t\t\t\t\t (int)(SCREEN_WIDTH*3/10), \n\t\t\t\t\t\t\t\t\t\t\t (int)(SCREEN_HEIGHT/8));\n\t\t\n\t\tstage.addActor(backButton);\n\t}",
"public void onMouseExit(Location point) {\n if(Hcounter == 1) {\n block.removeFromCanvas(); //Removes block\n ((JDrawingCanvas)canvas).setBackground(Color.white); //Canvas normal\n inverted = false; //Reset inverted boolean\n flipped = false; //Reset flipped boolean\n }\n instr1.hide();\n instr2.hide();\n instr3.hide();\n instr4.hide();\n }",
"public JButton getExitButton() {\n\t\treturn exitButton;\n\t}",
"public void draw(SpriteBatch batch) {\n// If there is no image (word button)\n if (texture == null) {\n\n// If any menu cursor...\n for (MenuCursor cursor : Main.cursors) {\n\n// Is over the button, change the colour to the \"selected\" version\n if (isCursorOver(cursor)) {\n layout.setText(Main.menuFont, string, selectedColor, 0, Align.center, false);\n break;\n\n// Is not over the button, change the colour to the \"unselected\" version\n } else {\n layout.setText(Main.menuFont, string, unselectedColor, 0, Align.center, false);\n }\n }\n\n// Draw the text\n Main.menuFont.draw(batch, layout, pos.x, pos.y);\n\n// If there is an image\n } else {\n\n// If there is no cursors\n if (Main.cursors.size() == 0) {\n\n// If previously selected draw regular texture\n if (prevSelect) {\n batch.draw(texture, buttonRect.x, buttonRect.y);\n\n// Otherwise, draw the selected texture\n } else {\n batch.draw(selectTexture, buttonRect.x, buttonRect.y);\n }\n\n// If there is a cursor\n } else {\n\n// Cycle through all cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor is over the button, draw the selected texture\n if (isCursorOver(cursor)) {\n batch.draw(selectTexture, buttonRect.x, buttonRect.y);\n prevSelect = false;\n break;\n\n// Otherwise, draw the regular texture, previously selected is now true\n } else {\n batch.draw(texture, buttonRect.x, buttonRect.y);\n prevSelect = true;\n }\n }\n }\n }\n }",
"void destroySprite(final JHelpImage parent)\n {\n this.sprite.setVisible(false);\n parent.removeSprite(this.sprite);\n this.sprite = null;\n }",
"private void createQuitButton()\r\n {\r\n // Instantiate the CustomYellowButtons class and give it the text for the button.\r\n CustomBlueButtons quitGameButton = new CustomBlueButtons(\"QUIT\");\r\n // Adds the quit button to the menu of buttons.\r\n addBlueButtonsToMenu(quitGameButton);\r\n // Adds an on action listener to the button.\r\n quitGameButton.setOnAction(new EventHandler<ActionEvent>()\r\n {\r\n @Override\r\n public void handle(ActionEvent event) \r\n {\r\n // If the button is clicked then exit the game.\r\n System.exit(0);\r\n }\r\n });\r\n }",
"private JButton getExitjButton() {\n\t\tif (exitjButton == null) {\n\t\t\texitjButton = new JButton();\n\t\t\texitjButton.setBounds(new java.awt.Rectangle(614,247,144,37));\n\t\t\texitjButton.setText(\"退出\");\n\t\t\texitjButton.addActionListener(this);\n\t\t}\n\t\treturn exitjButton;\n\t}",
"public void unloadSprite(JButton b) {\n if (b.getIcon() != null) {\n b.setIcon(null);\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Send a Character as a message | <T> Promise<Message<T>> send(String address, Character message); | [
"void send(Command command);",
"public void send(String text);",
"public Buffer putChar(char value);",
"public static void write(int c) {\n lcdUart.sendByte(c); // send the character\n }",
"public void sendMessage(String position) {\n output.println(position);\n }",
"public Message addChar(char c)\n\t{\n\t\tincreaseBuffer(2);\n\t\tbuffer.putChar(c);\n\t\treturn(this);\n\t}",
"public void Recieve(int c) {\n comwritebyte((char) c);\n }",
"void writeChar(char value);",
"void setChar(char c) {\n if (c < message.charAt(charIdx)) {\n message.setCharAt(charIdx, c);\n }\n }",
"void onCharacter(Terminal terminal, char data);",
"private void send(){\n\t\tString msg = input.getText();\n\t\ttry{\n\t\t\t//displayOutput(msg);\n\t\t\tstreamOut.writeUTF(msg);\n\t\t\tstreamOut.flush();\n\t\t\tif(msg.equalsIgnoreCase(\"bye\")){\n\t\t\t\tquit.setEnabled(false);\n\t\t\t\tconnect.setEnabled(true);\n\t\t\t\tsend.setEnabled(false);\n\t\t\t\tclose();\n\t\t\t}\n\t\t\tinput.setText(\"\");\n\t\t}\n\t\tcatch(IOException ioe){\n\t\t\tdisplayOutput(\"Sending error \"+ioe.getMessage());\n\t\t\tclose();\n\t\t}\n\t}",
"void send(String msg) throws IOException;",
"public void writeChar(char c){\n\t\tpw.print(c);\n\t}",
"public void sendControl(char control) {\n }",
"private void sendMsg(String msg) throws IOException \n { \n\t\tByteBuffer buffer = encoder_S.encode(CharBuffer.wrap(msg));\n\t\tserverChannel_.write(buffer);\n }",
"public void sendCommand(Command cmd);",
"public void sendCell(String c) {\n sendMessage(Prefix.CELL, c);\n }",
"String sendCommand(String command);",
"void nextChar() {\n message.append(MAX_CHAR);\n charIdx++;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AboutMe__Group__4" $ANTLR start "rule__AboutMe__Group__4__Impl" InternalLPDSL.g:2595:1: rule__AboutMe__Group__4__Impl : ( ( rule__AboutMe__DescriptionAssignment_4 ) ) ; | public final void rule__AboutMe__Group__4__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalLPDSL.g:2599:1: ( ( ( rule__AboutMe__DescriptionAssignment_4 ) ) )
// InternalLPDSL.g:2600:1: ( ( rule__AboutMe__DescriptionAssignment_4 ) )
{
// InternalLPDSL.g:2600:1: ( ( rule__AboutMe__DescriptionAssignment_4 ) )
// InternalLPDSL.g:2601:2: ( rule__AboutMe__DescriptionAssignment_4 )
{
before(grammarAccess.getAboutMeAccess().getDescriptionAssignment_4());
// InternalLPDSL.g:2602:2: ( rule__AboutMe__DescriptionAssignment_4 )
// InternalLPDSL.g:2602:3: rule__AboutMe__DescriptionAssignment_4
{
pushFollow(FOLLOW_2);
rule__AboutMe__DescriptionAssignment_4();
state._fsp--;
}
after(grammarAccess.getAboutMeAccess().getDescriptionAssignment_4());
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__Operation__Group_4__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalXModel.g:2115:1: ( ( ( rule__Operation__DescriptionAssignment_4_1 ) ) )\n // InternalXModel.g:2116:1: ( ( rule__Operation__DescriptionAssignment_4_1 ) )\n {\n // InternalXModel.g:2116:1: ( ( rule__Operation__DescriptionAssignment_4_1 ) )\n // InternalXModel.g:2117:2: ( rule__Operation__DescriptionAssignment_4_1 )\n {\n before(grammarAccess.getOperationAccess().getDescriptionAssignment_4_1()); \n // InternalXModel.g:2118:2: ( rule__Operation__DescriptionAssignment_4_1 )\n // InternalXModel.g:2118:3: rule__Operation__DescriptionAssignment_4_1\n {\n pushFollow(FOLLOW_2);\n rule__Operation__DescriptionAssignment_4_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getOperationAccess().getDescriptionAssignment_4_1()); \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__Property__Group_4__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalXModel.g:1710:1: ( ( ( rule__Property__DescriptionAssignment_4_1 ) ) )\n // InternalXModel.g:1711:1: ( ( rule__Property__DescriptionAssignment_4_1 ) )\n {\n // InternalXModel.g:1711:1: ( ( rule__Property__DescriptionAssignment_4_1 ) )\n // InternalXModel.g:1712:2: ( rule__Property__DescriptionAssignment_4_1 )\n {\n before(grammarAccess.getPropertyAccess().getDescriptionAssignment_4_1()); \n // InternalXModel.g:1713:2: ( rule__Property__DescriptionAssignment_4_1 )\n // InternalXModel.g:1713:3: rule__Property__DescriptionAssignment_4_1\n {\n pushFollow(FOLLOW_2);\n rule__Property__DescriptionAssignment_4_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPropertyAccess().getDescriptionAssignment_4_1()); \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__EPolicyDefinitionBody__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:5838:1: ( ( ( rule__EPolicyDefinitionBody__DescriptionAssignment_1_1 ) ) )\n // InternalAADMParser.g:5839:1: ( ( rule__EPolicyDefinitionBody__DescriptionAssignment_1_1 ) )\n {\n // InternalAADMParser.g:5839:1: ( ( rule__EPolicyDefinitionBody__DescriptionAssignment_1_1 ) )\n // InternalAADMParser.g:5840:2: ( rule__EPolicyDefinitionBody__DescriptionAssignment_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEPolicyDefinitionBodyAccess().getDescriptionAssignment_1_1()); \n }\n // InternalAADMParser.g:5841:2: ( rule__EPolicyDefinitionBody__DescriptionAssignment_1_1 )\n // InternalAADMParser.g:5841:3: rule__EPolicyDefinitionBody__DescriptionAssignment_1_1\n {\n pushFollow(FOLLOW_2);\n rule__EPolicyDefinitionBody__DescriptionAssignment_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEPolicyDefinitionBodyAccess().getDescriptionAssignment_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Property__Group_4__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalXModel.g:1684:1: ( ( 'description' ) )\n // InternalXModel.g:1685:1: ( 'description' )\n {\n // InternalXModel.g:1685:1: ( 'description' )\n // InternalXModel.g:1686:2: 'description'\n {\n before(grammarAccess.getPropertyAccess().getDescriptionKeyword_4_0()); \n match(input,29,FOLLOW_2); \n after(grammarAccess.getPropertyAccess().getDescriptionKeyword_4_0()); \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__Items__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalLPDSL.g:2193:1: ( ( ( rule__Items__DescriptionAssignment_2 ) ) )\r\n // InternalLPDSL.g:2194:1: ( ( rule__Items__DescriptionAssignment_2 ) )\r\n {\r\n // InternalLPDSL.g:2194:1: ( ( rule__Items__DescriptionAssignment_2 ) )\r\n // InternalLPDSL.g:2195:2: ( rule__Items__DescriptionAssignment_2 )\r\n {\r\n before(grammarAccess.getItemsAccess().getDescriptionAssignment_2()); \r\n // InternalLPDSL.g:2196:2: ( rule__Items__DescriptionAssignment_2 )\r\n // InternalLPDSL.g:2196:3: rule__Items__DescriptionAssignment_2\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Items__DescriptionAssignment_2();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getItemsAccess().getDescriptionAssignment_2()); \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__AADM_Model__Group_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:3543:1: ( ( ( rule__AADM_Model__DescriptionAssignment_0_1 ) ) )\n // InternalAADMParser.g:3544:1: ( ( rule__AADM_Model__DescriptionAssignment_0_1 ) )\n {\n // InternalAADMParser.g:3544:1: ( ( rule__AADM_Model__DescriptionAssignment_0_1 ) )\n // InternalAADMParser.g:3545:2: ( rule__AADM_Model__DescriptionAssignment_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAADM_ModelAccess().getDescriptionAssignment_0_1()); \n }\n // InternalAADMParser.g:3546:2: ( rule__AADM_Model__DescriptionAssignment_0_1 )\n // InternalAADMParser.g:3546:3: rule__AADM_Model__DescriptionAssignment_0_1\n {\n pushFollow(FOLLOW_2);\n rule__AADM_Model__DescriptionAssignment_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAADM_ModelAccess().getDescriptionAssignment_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__ECapabilityDefinitionBody__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:17558:1: ( ( ( rule__ECapabilityDefinitionBody__DescriptionAssignment_1_1 ) ) )\n // InternalAADMParser.g:17559:1: ( ( rule__ECapabilityDefinitionBody__DescriptionAssignment_1_1 ) )\n {\n // InternalAADMParser.g:17559:1: ( ( rule__ECapabilityDefinitionBody__DescriptionAssignment_1_1 ) )\n // InternalAADMParser.g:17560:2: ( rule__ECapabilityDefinitionBody__DescriptionAssignment_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getECapabilityDefinitionBodyAccess().getDescriptionAssignment_1_1()); \n }\n // InternalAADMParser.g:17561:2: ( rule__ECapabilityDefinitionBody__DescriptionAssignment_1_1 )\n // InternalAADMParser.g:17561:3: rule__ECapabilityDefinitionBody__DescriptionAssignment_1_1\n {\n pushFollow(FOLLOW_2);\n rule__ECapabilityDefinitionBody__DescriptionAssignment_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getECapabilityDefinitionBodyAccess().getDescriptionAssignment_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EDataTypeBody__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:6682:1: ( ( ( rule__EDataTypeBody__DescriptionAssignment_1_1_1 ) ) )\n // InternalAADMParser.g:6683:1: ( ( rule__EDataTypeBody__DescriptionAssignment_1_1_1 ) )\n {\n // InternalAADMParser.g:6683:1: ( ( rule__EDataTypeBody__DescriptionAssignment_1_1_1 ) )\n // InternalAADMParser.g:6684:2: ( rule__EDataTypeBody__DescriptionAssignment_1_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEDataTypeBodyAccess().getDescriptionAssignment_1_1_1()); \n }\n // InternalAADMParser.g:6685:2: ( rule__EDataTypeBody__DescriptionAssignment_1_1_1 )\n // InternalAADMParser.g:6685:3: rule__EDataTypeBody__DescriptionAssignment_1_1_1\n {\n pushFollow(FOLLOW_2);\n rule__EDataTypeBody__DescriptionAssignment_1_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEDataTypeBodyAccess().getDescriptionAssignment_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EOperationDefinitionBody__Group_1_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:15317:1: ( ( ( rule__EOperationDefinitionBody__DescriptionAssignment_1_0_1 ) ) )\n // InternalAADMParser.g:15318:1: ( ( rule__EOperationDefinitionBody__DescriptionAssignment_1_0_1 ) )\n {\n // InternalAADMParser.g:15318:1: ( ( rule__EOperationDefinitionBody__DescriptionAssignment_1_0_1 ) )\n // InternalAADMParser.g:15319:2: ( rule__EOperationDefinitionBody__DescriptionAssignment_1_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEOperationDefinitionBodyAccess().getDescriptionAssignment_1_0_1()); \n }\n // InternalAADMParser.g:15320:2: ( rule__EOperationDefinitionBody__DescriptionAssignment_1_0_1 )\n // InternalAADMParser.g:15320:3: rule__EOperationDefinitionBody__DescriptionAssignment_1_0_1\n {\n pushFollow(FOLLOW_2);\n rule__EOperationDefinitionBody__DescriptionAssignment_1_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEOperationDefinitionBodyAccess().getDescriptionAssignment_1_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__EPropertyDefinitionBody__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:13778:1: ( ( ( rule__EPropertyDefinitionBody__DescriptionAssignment_1_1 ) ) )\n // InternalAADMParser.g:13779:1: ( ( rule__EPropertyDefinitionBody__DescriptionAssignment_1_1 ) )\n {\n // InternalAADMParser.g:13779:1: ( ( rule__EPropertyDefinitionBody__DescriptionAssignment_1_1 ) )\n // InternalAADMParser.g:13780:2: ( rule__EPropertyDefinitionBody__DescriptionAssignment_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEPropertyDefinitionBodyAccess().getDescriptionAssignment_1_1()); \n }\n // InternalAADMParser.g:13781:2: ( rule__EPropertyDefinitionBody__DescriptionAssignment_1_1 )\n // InternalAADMParser.g:13781:3: rule__EPropertyDefinitionBody__DescriptionAssignment_1_1\n {\n pushFollow(FOLLOW_2);\n rule__EPropertyDefinitionBody__DescriptionAssignment_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEPropertyDefinitionBodyAccess().getDescriptionAssignment_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EInterfaceTypeBody__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:8303:1: ( ( ( rule__EInterfaceTypeBody__DescriptionAssignment_1_1_1 ) ) )\n // InternalAADMParser.g:8304:1: ( ( rule__EInterfaceTypeBody__DescriptionAssignment_1_1_1 ) )\n {\n // InternalAADMParser.g:8304:1: ( ( rule__EInterfaceTypeBody__DescriptionAssignment_1_1_1 ) )\n // InternalAADMParser.g:8305:2: ( rule__EInterfaceTypeBody__DescriptionAssignment_1_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEInterfaceTypeBodyAccess().getDescriptionAssignment_1_1_1()); \n }\n // InternalAADMParser.g:8306:2: ( rule__EInterfaceTypeBody__DescriptionAssignment_1_1_1 )\n // InternalAADMParser.g:8306:3: rule__EInterfaceTypeBody__DescriptionAssignment_1_1_1\n {\n pushFollow(FOLLOW_2);\n rule__EInterfaceTypeBody__DescriptionAssignment_1_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEInterfaceTypeBodyAccess().getDescriptionAssignment_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__IXIT__Group__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:16574:1: ( ( ( rule__IXIT__DescriptionAssignment_1 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:16575:1: ( ( rule__IXIT__DescriptionAssignment_1 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:16575:1: ( ( rule__IXIT__DescriptionAssignment_1 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:16576:1: ( rule__IXIT__DescriptionAssignment_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getIXITAccess().getDescriptionAssignment_1()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:16577:1: ( rule__IXIT__DescriptionAssignment_1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:16577:2: rule__IXIT__DescriptionAssignment_1\r\n {\r\n pushFollow(FOLLOW_rule__IXIT__DescriptionAssignment_1_in_rule__IXIT__Group__1__Impl33696);\r\n rule__IXIT__DescriptionAssignment_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.getIXITAccess().getDescriptionAssignment_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__EArtifactTypeBody__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:7256:1: ( ( ( rule__EArtifactTypeBody__DescriptionAssignment_1_1_1 ) ) )\n // InternalAADMParser.g:7257:1: ( ( rule__EArtifactTypeBody__DescriptionAssignment_1_1_1 ) )\n {\n // InternalAADMParser.g:7257:1: ( ( rule__EArtifactTypeBody__DescriptionAssignment_1_1_1 ) )\n // InternalAADMParser.g:7258:2: ( rule__EArtifactTypeBody__DescriptionAssignment_1_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEArtifactTypeBodyAccess().getDescriptionAssignment_1_1_1()); \n }\n // InternalAADMParser.g:7259:2: ( rule__EArtifactTypeBody__DescriptionAssignment_1_1_1 )\n // InternalAADMParser.g:7259:3: rule__EArtifactTypeBody__DescriptionAssignment_1_1_1\n {\n pushFollow(FOLLOW_2);\n rule__EArtifactTypeBody__DescriptionAssignment_1_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEArtifactTypeBodyAccess().getDescriptionAssignment_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EParameterDefinitionBody__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:16559:1: ( ( ( rule__EParameterDefinitionBody__DescriptionAssignment_1_1_1 ) ) )\n // InternalAADMParser.g:16560:1: ( ( rule__EParameterDefinitionBody__DescriptionAssignment_1_1_1 ) )\n {\n // InternalAADMParser.g:16560:1: ( ( rule__EParameterDefinitionBody__DescriptionAssignment_1_1_1 ) )\n // InternalAADMParser.g:16561:2: ( rule__EParameterDefinitionBody__DescriptionAssignment_1_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEParameterDefinitionBodyAccess().getDescriptionAssignment_1_1_1()); \n }\n // InternalAADMParser.g:16562:2: ( rule__EParameterDefinitionBody__DescriptionAssignment_1_1_1 )\n // InternalAADMParser.g:16562:3: rule__EParameterDefinitionBody__DescriptionAssignment_1_1_1\n {\n pushFollow(FOLLOW_2);\n rule__EParameterDefinitionBody__DescriptionAssignment_1_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEParameterDefinitionBodyAccess().getDescriptionAssignment_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EPolicyTypeBody__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:8958:1: ( ( ( rule__EPolicyTypeBody__DescriptionAssignment_1_1_1 ) ) )\n // InternalAADMParser.g:8959:1: ( ( rule__EPolicyTypeBody__DescriptionAssignment_1_1_1 ) )\n {\n // InternalAADMParser.g:8959:1: ( ( rule__EPolicyTypeBody__DescriptionAssignment_1_1_1 ) )\n // InternalAADMParser.g:8960:2: ( rule__EPolicyTypeBody__DescriptionAssignment_1_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEPolicyTypeBodyAccess().getDescriptionAssignment_1_1_1()); \n }\n // InternalAADMParser.g:8961:2: ( rule__EPolicyTypeBody__DescriptionAssignment_1_1_1 )\n // InternalAADMParser.g:8961:3: rule__EPolicyTypeBody__DescriptionAssignment_1_1_1\n {\n pushFollow(FOLLOW_2);\n rule__EPolicyTypeBody__DescriptionAssignment_1_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEPolicyTypeBodyAccess().getDescriptionAssignment_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XAssignment__Group_1_1_0__0() 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:17420:1: ( rule__XAssignment__Group_1_1_0__0__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17421:2: rule__XAssignment__Group_1_1_0__0__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0__0__Impl_in_rule__XAssignment__Group_1_1_0__035351);\r\n rule__XAssignment__Group_1_1_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Assignment__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMGPL.g:3068:1: ( rule__Assignment__Group__2__Impl )\n // InternalMGPL.g:3069:2: rule__Assignment__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Assignment__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__EAttributeDefinitionBody__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:14399:1: ( ( ( rule__EAttributeDefinitionBody__DescriptionAssignment_1_1 ) ) )\n // InternalAADMParser.g:14400:1: ( ( rule__EAttributeDefinitionBody__DescriptionAssignment_1_1 ) )\n {\n // InternalAADMParser.g:14400:1: ( ( rule__EAttributeDefinitionBody__DescriptionAssignment_1_1 ) )\n // InternalAADMParser.g:14401:2: ( rule__EAttributeDefinitionBody__DescriptionAssignment_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEAttributeDefinitionBodyAccess().getDescriptionAssignment_1_1()); \n }\n // InternalAADMParser.g:14402:2: ( rule__EAttributeDefinitionBody__DescriptionAssignment_1_1 )\n // InternalAADMParser.g:14402:3: rule__EAttributeDefinitionBody__DescriptionAssignment_1_1\n {\n pushFollow(FOLLOW_2);\n rule__EAttributeDefinitionBody__DescriptionAssignment_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEAttributeDefinitionBodyAccess().getDescriptionAssignment_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__ENodeTypeBody__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:12043:1: ( ( ( rule__ENodeTypeBody__DescriptionAssignment_1_1_1 ) ) )\n // InternalAADMParser.g:12044:1: ( ( rule__ENodeTypeBody__DescriptionAssignment_1_1_1 ) )\n {\n // InternalAADMParser.g:12044:1: ( ( rule__ENodeTypeBody__DescriptionAssignment_1_1_1 ) )\n // InternalAADMParser.g:12045:2: ( rule__ENodeTypeBody__DescriptionAssignment_1_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getENodeTypeBodyAccess().getDescriptionAssignment_1_1_1()); \n }\n // InternalAADMParser.g:12046:2: ( rule__ENodeTypeBody__DescriptionAssignment_1_1_1 )\n // InternalAADMParser.g:12046:3: rule__ENodeTypeBody__DescriptionAssignment_1_1_1\n {\n pushFollow(FOLLOW_2);\n rule__ENodeTypeBody__DescriptionAssignment_1_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getENodeTypeBodyAccess().getDescriptionAssignment_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Field__Group__4" $ANTLR start "rule__Field__Group__4__Impl" InternalDomain.g:1740:1: rule__Field__Group__4__Impl : ( ( rule__Field__Group_4__0 )? ) ; | public final void rule__Field__Group__4__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDomain.g:1744:1: ( ( ( rule__Field__Group_4__0 )? ) )
// InternalDomain.g:1745:1: ( ( rule__Field__Group_4__0 )? )
{
// InternalDomain.g:1745:1: ( ( rule__Field__Group_4__0 )? )
// InternalDomain.g:1746:2: ( rule__Field__Group_4__0 )?
{
before(grammarAccess.getFieldAccess().getGroup_4());
// InternalDomain.g:1747:2: ( rule__Field__Group_4__0 )?
int alt11=2;
int LA11_0 = input.LA(1);
if ( (LA11_0==27) ) {
alt11=1;
}
switch (alt11) {
case 1 :
// InternalDomain.g:1747:3: rule__Field__Group_4__0
{
pushFollow(FOLLOW_2);
rule__Field__Group_4__0();
state._fsp--;
}
break;
}
after(grammarAccess.getFieldAccess().getGroup_4());
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
restoreStackSize(stackSize);
}
return ;
} | [
"public final void rule__Field__Group_4__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDomain.g:1813:1: ( rule__Field__Group_4__1__Impl )\n // InternalDomain.g:1814:2: rule__Field__Group_4__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Field__Group_4__1__Impl();\n\n state._fsp--;\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__Field__Group_4__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDomain.g:1786:1: ( rule__Field__Group_4__0__Impl rule__Field__Group_4__1 )\n // InternalDomain.g:1787:2: rule__Field__Group_4__0__Impl rule__Field__Group_4__1\n {\n pushFollow(FOLLOW_19);\n rule__Field__Group_4__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Field__Group_4__1();\n\n state._fsp--;\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__Rule__Group_4__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:8889:1: ( rule__Rule__Group_4__1__Impl )\n // InternalDsl.g:8890:2: rule__Rule__Group_4__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Rule__Group_4__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Rules__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:8619:1: ( rule__Rules__Group__4__Impl )\n // InternalDsl.g:8620:2: rule__Rules__Group__4__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Rules__Group__4__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Field__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDomain.g:1624:1: ( rule__Field__Group__0__Impl rule__Field__Group__1 )\n // InternalDomain.g:1625:2: rule__Field__Group__0__Impl rule__Field__Group__1\n {\n pushFollow(FOLLOW_13);\n rule__Field__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Field__Group__1();\n\n state._fsp--;\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__Rule__Group_4__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:8862:1: ( rule__Rule__Group_4__0__Impl rule__Rule__Group_4__1 )\n // InternalDsl.g:8863:2: rule__Rule__Group_4__0__Impl rule__Rule__Group_4__1\n {\n pushFollow(FOLLOW_35);\n rule__Rule__Group_4__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Rule__Group_4__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Field__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1836:1: ( rule__Field__Group__1__Impl )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1837:2: rule__Field__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__Field__Group__1__Impl_in_rule__Field__Group__13627);\n rule__Field__Group__1__Impl();\n\n state._fsp--;\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__Rule__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:8766:1: ( ( ( rule__Rule__Group_4__0 )? ) )\n // InternalDsl.g:8767:1: ( ( rule__Rule__Group_4__0 )? )\n {\n // InternalDsl.g:8767:1: ( ( rule__Rule__Group_4__0 )? )\n // InternalDsl.g:8768:2: ( rule__Rule__Group_4__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRuleAccess().getGroup_4()); \n }\n // InternalDsl.g:8769:2: ( rule__Rule__Group_4__0 )?\n int alt66=2;\n int LA66_0 = input.LA(1);\n\n if ( (LA66_0==79) ) {\n alt66=1;\n }\n switch (alt66) {\n case 1 :\n // InternalDsl.g:8769:3: rule__Rule__Group_4__0\n {\n pushFollow(FOLLOW_2);\n rule__Rule__Group_4__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRuleAccess().getGroup_4()); \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__Field__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1805:1: ( rule__Field__Group__0__Impl rule__Field__Group__1 )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1806:2: rule__Field__Group__0__Impl rule__Field__Group__1\n {\n pushFollow(FOLLOW_rule__Field__Group__0__Impl_in_rule__Field__Group__03566);\n rule__Field__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Field__Group__1_in_rule__Field__Group__03569);\n rule__Field__Group__1();\n\n state._fsp--;\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__Module__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:2575:1: ( rule__Module__Group__4__Impl )\n // InternalMyDsl.g:2576:2: rule__Module__Group__4__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Module__Group__4__Impl();\n\n state._fsp--;\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__Module__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.tpt.aadl.ramses.transformation.trc.xtext.ui/src-gen/fr/tpt/aadl/ramses/transformation/trc/xtext/ui/contentassist/antlr/internal/InternalTRC.g:1568:1: ( rule__Module__Group__4__Impl )\n // ../fr.tpt.aadl.ramses.transformation.trc.xtext.ui/src-gen/fr/tpt/aadl/ramses/transformation/trc/xtext/ui/contentassist/antlr/internal/InternalTRC.g:1569:2: rule__Module__Group__4__Impl\n {\n pushFollow(FOLLOW_rule__Module__Group__4__Impl_in_rule__Module__Group__43215);\n rule__Module__Group__4__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__FieldDecl__Group_1_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:5810:1: ( rule__FieldDecl__Group_1_0__1__Impl )\r\n // InternalGo.g:5811:2: rule__FieldDecl__Group_1_0__1__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__FieldDecl__Group_1_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__Field__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDomain.g:1732:1: ( rule__Field__Group__4__Impl rule__Field__Group__5 )\n // InternalDomain.g:1733:2: rule__Field__Group__4__Impl rule__Field__Group__5\n {\n pushFollow(FOLLOW_18);\n rule__Field__Group__4__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Field__Group__5();\n\n state._fsp--;\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__Interface__Group__4__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5322:1: ( ( ( rule__Interface__Group_4__0 )? ) )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5323:1: ( ( rule__Interface__Group_4__0 )? )\r\n {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5323:1: ( ( rule__Interface__Group_4__0 )? )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5324:1: ( rule__Interface__Group_4__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getInterfaceAccess().getGroup_4()); \r\n }\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5325:1: ( rule__Interface__Group_4__0 )?\r\n int alt37=2;\r\n int LA37_0 = input.LA(1);\r\n\r\n if ( (LA37_0==49) ) {\r\n alt37=1;\r\n }\r\n switch (alt37) {\r\n case 1 :\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5325:2: rule__Interface__Group_4__0\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group_4__0_in_rule__Interface__Group__4__Impl10826);\r\n rule__Interface__Group_4__0();\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.getInterfaceAccess().getGroup_4()); \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__IfDef__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:20364:1: ( rule__IfDef__Group__4__Impl )\n // InternalDsl.g:20365:2: rule__IfDef__Group__4__Impl\n {\n pushFollow(FOLLOW_2);\n rule__IfDef__Group__4__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__DomainModel__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDomain.g:421:1: ( ( ( rule__DomainModel__Group_4__0 )? ) )\n // InternalDomain.g:422:1: ( ( rule__DomainModel__Group_4__0 )? )\n {\n // InternalDomain.g:422:1: ( ( rule__DomainModel__Group_4__0 )? )\n // InternalDomain.g:423:2: ( rule__DomainModel__Group_4__0 )?\n {\n before(grammarAccess.getDomainModelAccess().getGroup_4()); \n // InternalDomain.g:424:2: ( rule__DomainModel__Group_4__0 )?\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==18) ) {\n alt3=1;\n }\n switch (alt3) {\n case 1 :\n // InternalDomain.g:424:3: rule__DomainModel__Group_4__0\n {\n pushFollow(FOLLOW_2);\n rule__DomainModel__Group_4__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getDomainModelAccess().getGroup_4()); \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__JeeProject__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:5264:1: ( rule__JeeProject__Group__4__Impl )\n // InternalMyDsl.g:5265:2: rule__JeeProject__Group__4__Impl\n {\n pushFollow(FOLLOW_2);\n rule__JeeProject__Group__4__Impl();\n\n state._fsp--;\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__Constraints__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:12939:1: ( rule__Constraints__Group__4__Impl )\n // InternalDsl.g:12940:2: rule__Constraints__Group__4__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Constraints__Group__4__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Module__Group_4_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.tpt.aadl.ramses.transformation.trc.xtext.ui/src-gen/fr/tpt/aadl/ramses/transformation/trc/xtext/ui/contentassist/antlr/internal/InternalTRC.g:1731:1: ( rule__Module__Group_4_2__1__Impl )\n // ../fr.tpt.aadl.ramses.transformation.trc.xtext.ui/src-gen/fr/tpt/aadl/ramses/transformation/trc/xtext/ui/contentassist/antlr/internal/InternalTRC.g:1732:2: rule__Module__Group_4_2__1__Impl\n {\n pushFollow(FOLLOW_rule__Module__Group_4_2__1__Impl_in_rule__Module__Group_4_2__13531);\n rule__Module__Group_4_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Usado para seleccionar pieza, es llamada gracias al evento de clic del raton. | public void seleccionarPieza(java.awt.event.MouseEvent evt) {
// Se pasa como parametro el evento
CuadroPieza t = ((CuadroPieza) evt.getComponent());//Averiguo en que cuadro sucedio el evento
if (t.getPieza() != null) {//Veo si el cuadro no esta vacio.
if (t.getPieza().getColor() == getTurno()) {//Veo si es del mismo color del turno que actualmente le toca.
cuadroSeleccionado = t;
/*
* Con esto hago que se resalten los posibles movimientos en todo el tablero.
*/
for (int x = 0; x < 8; x++) {
for (int y = 0; y < 8; y++) {
tablero[x][y].opacarPieza();//Si hay piezas seleccionadas, las opaco
if (isSeleccionarAlternativas()) {//Resalto los posibles movimientos.
if (cuadroSeleccionado.getPieza().validarMovimiento(tablero[x][y], this)) {
tablero[x][y].resaltarPieza(tablero[x][y].getPieza() != null ? getAlerta() : null);
}
}
}
}
/*
* Resalto el cuadro que ha sido seleccionado para que el usuario sepa que cuadro selecciono
*/
cuadroSeleccionado.resaltarPieza(getSeleccionado());
/*
* Establesco la imagen de la pieza que ha sido seleccionada al label.
*/
tmp.setIcon(cuadroSeleccionado.getPieza().getImagenPieza());
/*
* borro la imagen de la pieza del cuadro.
*/
cuadroSeleccionado.lbl.setIcon(null);
/*
* Establesco la nueva posicion del label, que tiene la imagen de la pieza.
*/
tmp.setLocation(cuadroSeleccionado.getLocation().x + evt.getX() - 18, cuadroSeleccionado.getLocation().y + evt.getY() - 28);
}
}
} | [
"public void Seleccionar(){\n if (Enmesa) {\n jugadortv.setBackgroundResource(R.drawable.jugadorseleccionadotop);\n jugadortvdown.setText(\"X \"+String.valueOf(CPPLogin.manip.verValorFicha()));\n jugadortvdown.setBackgroundResource(R.drawable.jugadorseleccionadodown);\n jugadortvcirculo.setBackgroundResource(R.drawable.jugadorseleccionadocirculo);\n jugadortvcirculo.setTextColor(tablero.dato.getResources().getColor(R.color.Dorado3));\n jugadortvdown.setTextColor(tablero.dato.getResources().getColor(R.color.Negro1));\n jugadortv.setTextColor(tablero.dato.getResources().getColor(R.color.Negro1));\n jugadortv.setEnabled(true);\n seleccionado = true;\n }\n }",
"public void procesaClickOpcion() {\n // Obtiene cuál ha sido la opción seleccionada y se la manda al gestor de interfaz\n GestorUI.getInstanciaSingleton().gestionaVistaOpcion(vista.getOpcionSeleccionada());\n }",
"private void seleccionarFila(){\n \t\ttablaDetalleRemito.setRowFactory( tv -> {\r\n \t\t\tTableRow<DetalleRemitoFX> row = new TableRow<>();\r\n \t\t\trow.setOnMouseClicked(event -> {\r\n\t \t\r\n\t if (event.getButton() == MouseButton.PRIMARY){\r\n\t \tbtnDeshacer.setDisable(false);\r\n\t }\r\n\t });\r\n\t return row ;\r\n\t\t});\r\n\t}",
"public void selectPile() { clicked = 1; }",
"public void irAPanelAbierto() {\r\n //Seleccionar PerfilPanel\r\n itemClicked(jpanePerfil, jpaneActivePerfil, jlblPerfil, 1);\r\n }",
"void seleccionarEmisora(int boton);",
"public void afficherEcranSelectionJoueur() {\n gestionnaireJoueurs.chargerJoueurs();\n ecranSelectionJoueur.rechargerListeJoueur();\n CardLayout cl = (CardLayout) (container.getLayout());\n cl.show(container, \"EcranSelectionJoueur\");\n }",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t// Recupero il controllore e invoco il metodo per tornare alla schermata principale.\r\n\t\tCCreaRichiestaSoggiorno richiestaSoggiorno = CCreaRichiestaSoggiorno.getInstance();\r\n\t\trichiestaSoggiorno.annullaRichiestaSoggiorno();\r\n\t\t\r\n\t}",
"@Override\r\n\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\tselectTipoAsesoria = Utilidades.tipo_asesoria[which];\r\n\t\t\t// System.out.println(\"selectTipoAsesoria \" + selectTipoAsesoria);\r\n\t\t\t// System.out.println(\"Evento\");\r\n\t\t}",
"@Override\n public void selectGolem(int id) {\n }",
"public void setSelectedPie(int i);",
"public void modificaciones(){\n VentanaDibujo vi= (VentanaDibujo)Escritorio.getSelectedFrame();\n //Veamos si tenemos ventana seleccionada\n if(vi!=null){\n //Vemos que herramienta estamos usando\n if(vi.getLienzo().getTipoActual() == 0)//Punto\n this.jToggleButtonPunto.setSelected(true);\n else if (vi.getLienzo().getTipoActual() == 1)//LINEA\n this.ToggleButtonLinea.setSelected(true);\n else if (vi.getLienzo().getTipoActual() == 2)//Rectangulo\n this.ToggleButtonRectangulo.setSelected(true);\n else if (vi.getLienzo().getTipoActual() == 3)//Elipse\n this.ToggleButtonOvalo.setSelected(true);\n else if (vi.getLienzo().getTipoActual() == 4)//CurvaPuntocontrol\n this.ToggleButtonCPControl.setSelected(true);\n else if (vi.getLienzo().getTipoActual() == 5)//Poligono\n this.ToggleButtonPoligono.setSelected(true); \n \n \n //vemos el tipo de trazo que usamos\n if(vi.getLienzo().getContinua()==true)\n this.ComboBoxTipoTrazo.setSelectedIndex(0);\n else\n this.ComboBoxTipoTrazo.setSelectedIndex(1);\n \n //tipo de Relleno\n if(vi.getLienzo().getTipoRelleno()==0)//Sin relleno\n this.jComboBoxTipoRelleno.setSelectedIndex(0);\n else if(vi.getLienzo().getTipoRelleno()==1)//Relleno liso\n this.jComboBoxTipoRelleno.setSelectedIndex(1);\n else//Degradao\n this.jComboBoxTipoRelleno.setSelectedIndex(2);\n \n //Para el alisado\n if(vi.getLienzo().getAlisar() == false)\n this.ButtonAlisado.setSelected(false);\n else\n this.ButtonAlisado.setSelected(true);\n \n \n this.SpinnerGrosor.setValue(vi.getLienzo().getGrosorTrazo());\n this.ButtonColorTrazo.setBackground(vi.getLienzo().getColorTrazo()); \n this.jButtonColorRelleno.setBackground(vi.getLienzo().getColorRelleno());\n this.jButtonColorGradiente.setBackground(vi.getLienzo().getColorGradiente()); \n \n this.jSliderTransparencia.setValue((int) (10*vi.getLienzo().getTransparencia())); \n \n } \n \n this.repaint();\n }",
"public void mouseClicked(MouseEvent e) {\n Graphics g = getGraphics();\n int xs = e.getX();\n int ys = e.getY();\n System.out.println(\"Clic souris en \"+xs+\",\"+ys);\n Point p = new Point(xs,ys);\n courant.dessine(g,p,col,colFond);\n if (courant.isComplete()){\n memory.add(courant);\n }\n }",
"public void selectPiece() {\n\t\tPuzzle puzzle = model.getPuzzle();\n\t\tPiece selectedPiece = puzzle.getPieceAtPosition((int)mouseCursor.getX(), (int)mouseCursor.getY());\n\t\tif (selectedPiece == null) return;\n\t\t\n\t\tpuzzle.selectPiece(selectedPiece);\n\t\t\n\t\tapp.getPuzzleView().refresh();\n\t}",
"private Cartography choixCarto() {\n\t\tSystem.out.println(\"Choix de Cartographie :\\n\"\n\t\t\t\t+ \" HAUT : Type 1\\n\"\n\t\t\t\t+ \" BAS : Type 2\\n\"\n\t\t\t\t+ \" GAUCHE: EN ATTENTE DE RECEPTION\\n\");\n\t\tCartography carto;\t\n\t\tint check = Button.waitForAnyPress();\n\t\tswitch (check) {\n\t\t\tcase Button.ID_UP: \n\t\t\t\tSystem.out.println(\"Type 1 choisi\");\n\t\t\t\tcarto = new Cartography(this.robot, this);\n\t\t\t\treturn carto;\n\t\t\tcase Button.ID_DOWN:\n\t\t\t\tSystem.out.println(\"Type 2 choisi\");\n\t\t\t\treturn null;\n\t\t\tcase Button.ID_LEFT:\n\t\t\t\tSystem.out.println(\"Lancement du transfert MACHINALE\");\n\t\t\t\tRecepteur.receptionJeu();\n\t\t\t\treturn null;\n\t\t\tdefault : \n\t\t\t\tSystem.out.println(\"error\");\n\t\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n public void onClickPosition(int pos) {\n listener.onNoticiaSeleccionada(pos);\n }",
"@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t\tif(e.getButton() == 1) {\n\t\tCoord sel = board.onClick(new Vector(e.getX(), e.getY()));\n\t\tif (sel == null) {\n\t\t\treturn;\n\t\t}\n\t\tif (selected.size() == 0) {\n\t\t\tselected.add(sel);\n\t\t} else if (selected.size() == 1) {\n\t\t\tif (selected.get(0).equals(sel)) {\n\t\t\t\tselected.remove(0);\n\t\t\t} else {\n\t\t\t\tselected.add(sel);\n\t\t\t}\n\t\t}\n\t\t} else if(e.getButton() == 2) {\n\t\t\trotations = new Vector(-65, 0, 0);\n\t\t}\n\t\t\n\t}",
"private void jTablePesquisaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTablePesquisaMouseClicked\n // Salva a posição da linha selecionada na tabela de pesquisa\n int linhaSelecionada = jTablePesquisa.getSelectedRow();\n Object id_genero = jTablePesquisa.getValueAt(linhaSelecionada, 1);\n System.out.println(id_genero);\n Integer id_generow = (Integer) id_genero;\n jT0Id.setText(jTablePesquisa.getValueAt(linhaSelecionada, 0).toString());\n jComboBox1.setSelectedItem(id_generow);\n //jComboBox1.setName(jTablePesquisa.getValueAt(linhaSelecionada, 1).toString());\n jT2Exemplar.setText((String) jTablePesquisa.getValueAt(linhaSelecionada, 2));\n jT3Autor.setText((String) jTablePesquisa.getValueAt(linhaSelecionada, 3));\n jT4Edicao.setText(jTablePesquisa.getValueAt(linhaSelecionada, 4).toString());\n jT5Ano.setText(jTablePesquisa.getValueAt(linhaSelecionada, 5).toString());\n jT6Status.setText((String) jTablePesquisa.getValueAt(linhaSelecionada, 6));\n\n // Ao selecionar um registro, os campos são ativados possibilitando fazer alterações\n habilitaCampos();\n }",
"static void selecionaTela(String nomeDaTela){\r\n\t\tlayout.show(panel, nomeDaTela);\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleOpMulti" $ANTLR start "entryRuleXUnaryOperation" ../org.xtext.lwc.instances.ui/srcgen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:742:1: entryRuleXUnaryOperation : ruleXUnaryOperation EOF ; | public final void entryRuleXUnaryOperation() throws RecognitionException {
try {
// ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:743:1: ( ruleXUnaryOperation EOF )
// ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:744:1: ruleXUnaryOperation EOF
{
if ( state.backtracking==0 ) {
before(grammarAccess.getXUnaryOperationRule());
}
pushFollow(FOLLOW_ruleXUnaryOperation_in_entryRuleXUnaryOperation1514);
ruleXUnaryOperation();
state._fsp--;
if (state.failed) return ;
if ( state.backtracking==0 ) {
after(grammarAccess.getXUnaryOperationRule());
}
match(input,EOF,FOLLOW_EOF_in_entryRuleXUnaryOperation1521); if (state.failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
} | [
"public final void entryRuleOpUnary() throws RecognitionException {\n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:684:1: ( ruleOpUnary EOF )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:685:1: ruleOpUnary EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryRule()); \n }\n pushFollow(FOLLOW_ruleOpUnary_in_entryRuleOpUnary1392);\n ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpUnary1399); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final void entryRuleOpUnary() throws RecognitionException {\n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:771:1: ( ruleOpUnary EOF )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:772:1: ruleOpUnary EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryRule()); \n }\n pushFollow(FOLLOW_ruleOpUnary_in_entryRuleOpUnary1574);\n ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpUnary1581); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final void entryRuleOpUnary() throws RecognitionException {\n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:880:1: ( ruleOpUnary EOF )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:881:1: ruleOpUnary EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryRule()); \n }\n pushFollow(FOLLOW_ruleOpUnary_in_entryRuleOpUnary1812);\n ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpUnary1819); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final void entryRuleOpUnary() throws RecognitionException {\r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2394:1: ( ruleOpUnary EOF )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2395:1: ruleOpUnary EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpUnaryRule()); \r\n }\r\n pushFollow(FOLLOW_ruleOpUnary_in_entryRuleOpUnary5055);\r\n ruleOpUnary();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpUnaryRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpUnary5062); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"public final void entryRuleOpUnary() throws RecognitionException {\r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1138:1: ( ruleOpUnary EOF )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1139:1: ruleOpUnary EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpUnaryRule()); \r\n }\r\n pushFollow(FOLLOW_ruleOpUnary_in_entryRuleOpUnary2358);\r\n ruleOpUnary();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpUnaryRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpUnary2365); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"public final void entryRuleXUnaryOperation() throws RecognitionException {\n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:656:1: ( ruleXUnaryOperation EOF )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:657:1: ruleXUnaryOperation EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationRule()); \n }\n pushFollow(FOLLOW_ruleXUnaryOperation_in_entryRuleXUnaryOperation1332);\n ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXUnaryOperation1339); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final void entryRuleOpUnary() throws RecognitionException {\n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:796:1: ( ruleOpUnary EOF )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:797:1: ruleOpUnary EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpUnaryRule()); \n }\n pushFollow(FOLLOW_ruleOpUnary_in_entryRuleOpUnary1632);\n ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpUnaryRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpUnary1639); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final void entryRuleXUnaryOperation() throws RecognitionException {\n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:852:1: ( ruleXUnaryOperation EOF )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:853:1: ruleXUnaryOperation EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationRule()); \n }\n pushFollow(FOLLOW_ruleXUnaryOperation_in_entryRuleXUnaryOperation1752);\n ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXUnaryOperation1759); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final void entryRuleXUnaryOperation() throws RecognitionException {\r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2366:1: ( ruleXUnaryOperation EOF )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:2367:1: ruleXUnaryOperation EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationRule()); \r\n }\r\n pushFollow(FOLLOW_ruleXUnaryOperation_in_entryRuleXUnaryOperation4995);\r\n ruleXUnaryOperation();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleXUnaryOperation5002); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"public final void entryRuleOpUnary() throws RecognitionException {\r\n try {\r\n // InternalDroneScript.g:930:1: ( ruleOpUnary EOF )\r\n // InternalDroneScript.g:931:1: ruleOpUnary EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpUnaryRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleOpUnary();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpUnaryRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"public final void entryRuleXUnaryOperation() throws RecognitionException {\n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:768:1: ( ruleXUnaryOperation EOF )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:769:1: ruleXUnaryOperation EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationRule()); \n }\n pushFollow(FOLLOW_ruleXUnaryOperation_in_entryRuleXUnaryOperation1572);\n ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXUnaryOperation1579); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final String entryRuleOpUnary() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleOpUnary = null;\n\n\n try {\n // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:1388:2: (iv_ruleOpUnary= ruleOpUnary EOF )\n // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:1389:2: iv_ruleOpUnary= ruleOpUnary EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getOpUnaryRule()); \n }\n pushFollow(FOLLOW_ruleOpUnary_in_entryRuleOpUnary3456);\n iv_ruleOpUnary=ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleOpUnary.getText(); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpUnary3467); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final void entryRuleUnaryOperator() throws RecognitionException {\n try {\n // InternalOCLlite.g:254:1: ( ruleUnaryOperator EOF )\n // InternalOCLlite.g:255:1: ruleUnaryOperator EOF\n {\n before(grammarAccess.getUnaryOperatorRule()); \n pushFollow(FOLLOW_1);\n ruleUnaryOperator();\n\n state._fsp--;\n\n after(grammarAccess.getUnaryOperatorRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final void entryRuleUnaryOpExp() throws RecognitionException {\n try {\n // InternalOCLlite.g:504:1: ( ruleUnaryOpExp EOF )\n // InternalOCLlite.g:505:1: ruleUnaryOpExp EOF\n {\n before(grammarAccess.getUnaryOpExpRule()); \n pushFollow(FOLLOW_1);\n ruleUnaryOpExp();\n\n state._fsp--;\n\n after(grammarAccess.getUnaryOpExpRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final void rule__XUnaryOperation__FeatureAssignment_0_1() 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:12430:1: ( ( ( ruleOpUnary ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12431:1: ( ( ruleOpUnary ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12431:1: ( ( ruleOpUnary ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12432:1: ( ruleOpUnary )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12433:1: ( ruleOpUnary )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12434:1: ruleOpUnary\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \n }\n pushFollow(FOLLOW_ruleOpUnary_in_rule__XUnaryOperation__FeatureAssignment_0_124946);\n ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XUnaryOperation__FeatureAssignment_0_1() 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:15473:1: ( ( ( ruleOpUnary ) ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15474:1: ( ( ruleOpUnary ) )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15474:1: ( ( ruleOpUnary ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15475:1: ( ruleOpUnary )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15476:1: ( ruleOpUnary )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:15477:1: ruleOpUnary\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \n }\n pushFollow(FOLLOW_ruleOpUnary_in_rule__XUnaryOperation__FeatureAssignment_0_131142);\n ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XUnaryOperation__FeatureAssignment_0_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:30657:1: ( ( ( ruleOpUnary ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:30658:1: ( ( ruleOpUnary ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:30658:1: ( ( ruleOpUnary ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:30659:1: ( ruleOpUnary )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:30660:1: ( ruleOpUnary )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:30661:1: ruleOpUnary\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_ruleOpUnary_in_rule__XUnaryOperation__FeatureAssignment_0_161666);\r\n ruleOpUnary();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final EObject ruleXUnaryOperation() throws RecognitionException {\n EObject current = null;\n\n AntlrDatatypeRuleToken lv_feature_1_0 = null;\n\n EObject lv_operand_2_0 = null;\n\n EObject this_XCastedExpression_3 = null;\n\n\n enterRule(); \n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_SL_COMMENT\", \"RULE_WS\");\n \n try {\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2335:28: ( ( ( () ( (lv_feature_1_0= ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | ( ( ruleXCastedExpression )=>this_XCastedExpression_3= ruleXCastedExpression ) ) )\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2336:1: ( ( () ( (lv_feature_1_0= ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | ( ( ruleXCastedExpression )=>this_XCastedExpression_3= ruleXCastedExpression ) )\n {\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2336:1: ( ( () ( (lv_feature_1_0= ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | ( ( ruleXCastedExpression )=>this_XCastedExpression_3= ruleXCastedExpression ) )\n int alt53=2;\n alt53 = dfa53.predict(input);\n switch (alt53) {\n case 1 :\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2336:2: ( () ( (lv_feature_1_0= ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) )\n {\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2336:2: ( () ( (lv_feature_1_0= ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) )\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2336:3: () ( (lv_feature_1_0= ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) )\n {\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2336:3: ()\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2337:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(),\n current);\n \n }\n\n }\n\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2342:2: ( (lv_feature_1_0= ruleOpUnary ) )\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2343:1: (lv_feature_1_0= ruleOpUnary )\n {\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2343:1: (lv_feature_1_0= ruleOpUnary )\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2344:3: lv_feature_1_0= ruleOpUnary\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getXUnaryOperationAccess().getFeatureOpUnaryParserRuleCall_0_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleOpUnary_in_ruleXUnaryOperation5095);\n lv_feature_1_0=ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getXUnaryOperationRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"feature\",\n \t\tlv_feature_1_0, \n \t\t\"OpUnary\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2360:2: ( (lv_operand_2_0= ruleXUnaryOperation ) )\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2361:1: (lv_operand_2_0= ruleXUnaryOperation )\n {\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2361:1: (lv_operand_2_0= ruleXUnaryOperation )\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2362:3: lv_operand_2_0= ruleXUnaryOperation\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleXUnaryOperation_in_ruleXUnaryOperation5116);\n lv_operand_2_0=ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getXUnaryOperationRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"operand\",\n \t\tlv_operand_2_0, \n \t\t\"XUnaryOperation\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2379:6: ( ( ruleXCastedExpression )=>this_XCastedExpression_3= ruleXCastedExpression )\n {\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2379:6: ( ( ruleXCastedExpression )=>this_XCastedExpression_3= ruleXCastedExpression )\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2379:7: ( ruleXCastedExpression )=>this_XCastedExpression_3= ruleXCastedExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleXCastedExpression_in_ruleXUnaryOperation5151);\n this_XCastedExpression_3=ruleXCastedExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XCastedExpression_3; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return current;\n }",
"public final String entryRuleOpUnary() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleOpUnary = null;\n\n\n try {\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2400:2: (iv_ruleOpUnary= ruleOpUnary EOF )\n // ../com.euclideanspace.pbase/src-gen/com/euclideanspace/pbase/parser/antlr/internal/InternalTutorial.g:2401:2: iv_ruleOpUnary= ruleOpUnary EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getOpUnaryRule()); \n }\n pushFollow(FOLLOW_ruleOpUnary_in_entryRuleOpUnary5192);\n iv_ruleOpUnary=ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleOpUnary.getText(); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpUnary5203); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates poll in the DB | public boolean updatePoll(Connection conn) {
if(!checkValid()) return false;
try {
PreparedStatement st = conn.prepareStatement("UPDATE question SET idQuestionGroup=?,QuestionTitle=?,max_answers=?,QuestionDesc=?,enabled=?,anonymous=?,expired=? WHERE idQuestion=?");
st.setString(1, idquestionaire);
st.setString(2, title);
st.setInt(3, max_answers);
st.setString(4, description);
st.setString(5, enabled);
st.setString(6, anonymous);
st.setString(7, expired);
st.setInt(8, id);
int n = st.executeUpdate();
if(n>0) {
status = "Poll is updated";
VoteOption op;
Vector<VoteOption> np = new Vector<VoteOption>();
String cl = "0";
for(int i=0;i<options.size();i++) {
op = (VoteOption)options.elementAt(i);
if(op.getPollid()<1) {
if(op.getOptionid()<1) {
//Batch new entries
np.add(op);
} else {
//Insert
st = conn.prepareStatement("INSERT INTO subquestion VALUES(?,?,?,0)");
st.setInt(1, id);
st.setInt(2, op.getOptionid());
st.setString(3, op.getOptiontext());
cl = cl + "," + op.getOptionid();
}
} else {
if(op.getOptionid()<1) {
//Batch new entries
np.add(op);
} else {
//Update
st = conn.prepareStatement("UPDATE subquestion SET SubQuestionTitle=? WHERE idQuestion=? AND idSubQuestion=?");
st.setInt(2, id);
st.setInt(3, op.getOptionid());
st.setString(1, op.getOptiontext());
cl = cl + "," + op.getOptionid();
}
}
//Execute update if not batched
if(op.getOptionid()>0) {
try {
st.executeUpdate();
} catch(Exception e) {
e.printStackTrace();
status = "Error updating option";
}
}
}
try {
//Clear deleted options
st = conn.prepareStatement("DELETE FROM subquestion WHERE idQuestion=? AND idSubQuestion NOT IN (" + cl + ")");
st.setInt(1, id);
st.executeUpdate();
} catch(Exception e) {
status = "Cannot delete obsolete options";
e.printStackTrace();
}
if(np.size()>0) {
//Process batched entries
//Get new option id base
st = conn.prepareStatement("SELECT MAX(idSubQuestion) AS ob FROM subquestion WHERE idQuestion=?");
st.setInt(1, id);
ResultSet rs = st.executeQuery();
int ob = 1;
if(rs.next()) {
ob = rs.getInt("ob");
}
//Insert new entry
st = conn.prepareStatement("INSERT INTO subquestion VALUES(?,?,?,0)");
st.setInt(1, id);
for(int i=0;i<np.size();i++) {
op = (VoteOption)np.elementAt(i);
st.setInt(2, ob+i+1);
st.setString(3, op.getOptiontext());
try {
st.executeUpdate();
} catch(Exception e) {
e.printStackTrace();
status = "Error inserting option";
}
}
}
return true;
} else {
status = "Cannot update Poll";
}
st.close();
} catch (SQLException e) {
status = "SQLException";
System.out.println(status);
e.printStackTrace();
}
return false;
} | [
"Poll savePoll(Poll newPoll);",
"TimeSeriesDatabaseConnection.Update update();",
"public void update(Triplet t) throws DAOException;",
"void votedOnPoll(String pollId);",
"Booking updateBooking(Booking booking);",
"public Hoppy update(Hoppy hoppy) throws DataAccessException;",
"public boolean updateOffer(Offer offer);",
"public void update (Employee employee);",
"boolean updateAlert(Alert alert) throws SQLException;",
"public boolean updateTask(Task task) throws SQLException;",
"Poll createPoll();",
"int updateByPrimaryKey(TParklotstatusFile record);",
"@Test\n\tpublic void updateAnswers() {\n\t\tMonitoringsMockDatabase ds = MonitoringsMockDatabase.getSingleton();\n\n\t\tList<String> newAnswers = Arrays.asList(\"another ridiculous answer\", \"silly answer again\");\n\n\t\tMonitoringDTO before = ds.selectStarByMonitoringID(1);\n\t\tassertNotEquals(before.getAnswers(), newAnswers);\n\n\t\tds.updateAnswersByMonitoringID(1, newAnswers);\n\n\t\tMonitoringDTO after = ds.selectStarByMonitoringID(1);\n\t\tassertEquals(after.getAnswers(), newAnswers);\n\t}",
"public void update() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.update(this); // routine now uses leaseDao to get CampLease class\r\n\t}",
"public int updateById(WeChatPublic wp);",
"private void updateData() {\n List<Task> allTasks = null;\n TaskService taskService = new TaskServiceImpl();\n try {\n allTasks = taskService.loadLocalTasks();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n taskService.saveAllTasksToDistanceBase(allTasks);\n AdminTasksTableController.getDistanceUpdateStage().close();\n }",
"private void update(AppDatabase appDb, MyTripInfo tripInfo) {\n\n new UpdateMyTripInfo(appDb, result -> {\n if (result) {\n Toasty.success(getApplicationContext(), getString(R.string.update_success)).show();\n syncTripInfo.syncUpdateTripInfo(TOKEN, tripInfo);\n goToMyTripList();\n resetData();\n return;\n }\n Toasty.error(getApplicationContext(), getString(R.string.update_failed)).show();\n }).execute(tripInfo);\n }",
"void update(Hotel hotel);",
"public void updaterest(rest thehotel) throws SQLException {\n\t\tPreparedStatement myStmt = null;\n\t\t\n\n\t\ttry {\n\t\t\t// prepare statement\n\t\t\tmyStmt = myconn.prepareStatement(\"update restaurants\"\n\t\t\t\t\t+ \" set r_name= ?, cuisine= ?, addr= ?, zip= ?, rating= ?, r_range= ?\"\n\t\t\t\t\t+ \" where id = ?\");\n\t\t\t\n\t\t\t// set parameters\n\t\t\t\n\t\t\tmyStmt.setString(1, thehotel.getRName());\n\t\t\tmyStmt.setString(2, thehotel.getcuisine());\n\t\t\tmyStmt.setString(3, thehotel.getaddr());\n\t\t\tmyStmt.setInt(4, thehotel.getzip());\n\t\t\tmyStmt.setDouble(5, thehotel.getrating());\n\t\t\tmyStmt.setString(6, thehotel.getrange());\n\t\t\tmyStmt.setInt(7, thehotel.getId());\n\t\t\t// execute SQL\n\t\t\tmyStmt.executeUpdate();\t\t\t\n\t\t}\n\t\tfinally {\n\t\t\tclose(myStmt);\n\t\t}\n\t\t\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Master timetable service interface. | public interface MasterTimetableManager {
/**
* Get master timetables by date.
*
* @param date specified date.
* @param masterId specified master id.
* @return list of timetables.
*/
List<Timetable> getMasterTimetableByDate(Date date, int masterId) throws DBException;
/**
* Change booking status to done.
*
* @param bookingId specified booking id.
* @return true if change status, otherwise false.
*/
boolean setBookingDone(int bookingId);
} | [
"public interface TimeTableSynchronizingService {\n\n /**\n * @param schema aktualni schema db\n * @param folder slozka, ve ktere jsou ulozene jizdni rady (.txt soubory)\n * @throws Throwable throwable\n */\n void generateTimeTableToDatabases(String schema, String folder) throws Throwable;\n\n}",
"protected abstract TimeBase getMasterTimeBase();",
"public interface SectionTimetableService {\n\n\t/**\n\t * Find section timetables by section object id.\n\t * \n\t * @param sectionId\n\t * section object id.\n\t * @return collection of section timetables by section object id.\n\t * @throws BusinessException In case of exception.\n\t */\n\tCollection<SectionTimetable> findSectionTimetablesByScetionId(Long sectionId) throws BusinessException ;\n\n\t/**\n\t * Find section timetables by section object id.\n\t * \n\t * @param sectionId\n\t * section object id.\n\t * @param scheduleDate\n\t * scheduleDate.\n\t * @return collection of section timetables by section object id and\n\t * scheduleDate.\n\t * @throws BusinessException In case of exception.\n\t */\n\tCollection<SectionTimetable> findSectionTimetablesByScetionIdAndScheduleDate(Long sectionId, final Date scheduleDate) throws BusinessException ;\n\n\t/**\n\t * Find section timetables by section object id.\n\t * \n\t * @param sectionId\n\t * section object id.\n\t * @param startDate\n\t * startDate.\n\t * @param endDate\n\t * endDate.\n\t * @return collection of section timetables by section object id and\n\t * scheduleDate.\n\t * @throws BusinessException In case of exception.\n\t */\n\tCollection<SectionTimetable> findSectionTimetablesByScetionIdBetweenDates(Long sectionId, final Date startDate,\n\t\t\tfinal Date endDate) throws BusinessException ;\n\n\t/**\n\t * Find section timetable by section object id and employee id.\n\t * \n\t * @param sectionId\n\t * section object id.\n\t * @param employeeId\n\t * employee id.\n\t * @return section timetable by section object id and employee id.\n\t * @throws BusinessException In case of exception.\n\t */\n\tCollection<SectionTimetable> findSectionTimetableByScetionIdAndEmployeeId(Long sectionId, Long employeeId)throws BusinessException ;\n\n\t/**\n\t * Find section timetable by section object id and employee id.\n\t * \n\t * @param sectionId\n\t * section object id.\n\t * @param employeeId\n\t * employee id.\n\t * @param scheduleDate\n\t * scheduleDate.\n\t * @return section timetable by section object id and employee id and\n\t * scheduleDate.\n\t * @throws BusinessException In case of exception.\n\t */\n\tCollection<SectionTimetable> findSectionTimetableByScetionIdAndEmployeeIdAndScheduleDate(Long sectionId,\n\t\t\tLong employeeId, final Date scheduleDate)throws BusinessException ;\n\n\t/**\n\t * Retrieve section timetable by object id.\n\t * \n\t * @param id\n\t * id of section timetable.\n\t * @return section timetable by object id.\n\t * @throws BusinessException In case of exception.\n\t */\n\tSectionTimetable findSectionTimetableById(Long id) throws BusinessException;\n\n\t/**\n\t * Saves supplied section timetable.\n\t * \n\t * @param SectionTimetable\n\t * section timetable.\n\t * @return section timetable.\n\t * @throws BusinessException In case of exception.\n\t * @throws InvalidArgumentException\n\t */\n\tSectionTimetable saveSectionTimetable(SectionTimetable sectionTimetable) throws BusinessException,\n\t\t\tInvalidArgumentException;\n\n\t/**\n\t * Removes section timetable.\n\t * \n\t * @param SectionTimetable\n\t * section timetable to be removed.\n\t * @throws BusinessException In case of exception.\n\t */\n\tvoid removeSectionTimetable(SectionTimetable sectionTimetable) throws BusinessException;\n\n\t/**\n\t * Retrieves all section timetable.\n\t * \n\t * @return collection of all section timetable.\n\t * @throws BusinessException In case of exception.\n\t */\n\tCollection<SectionTimetable> findAllSectionTimetables() throws BusinessException;\n\n\t/**\n\t * Saves supplied section timetable.\n\t * \n\t * @param SectionTimetable\n\t * section timetable.\n\t * @return section timetable.\n\t * @throws BusinessException In case of exception.\n\t * @throws InvalidArgumentException\n\t */\n\tCollection<SectionTimetable> saveSectionTimetables(Collection<SectionTimetable> sectionTimetables)\n\t\t\tthrows BusinessException, InvalidArgumentException;\n\n\t/**\n\t * Validates schedule events for time overlapping in section.\n\t * \n\t * @return true the timetable event is valid.\n\t * @throws BusinessException In case of exception.\n\t */\n\tCollection<SectionTimetable> getOverLappingTimeTableForSection(final Long sectionId, final Date scheduleStartDate,\n\t\t\tfinal Date scheduleEndDate, final Date scheduleStartTime, final Date scheduleEndTime)throws BusinessException ;\n\n\t/**\n\t * Validates schedule events for time overlapping for teacher.\n\t * \n\t * @return true the timetable event is valid.\n\t * @throws BusinessException In case of exception.\n\t */\n\tCollection<SectionTimetable> getOverLappingTimeTableForTeacher(final Long teacherId, final Date scheduleStartDate,\n\t\t\tfinal Date scheduleEndDate, final Date scheduleStartTime, final Date scheduleEndTime) throws BusinessException;\n\n\t/**\n\t * Create section timetables based on start date and end date supplied and\n\t * section timetable.\n\t * \n\t * @param scheduleStartDate schedule start date.\n\t * @param scheduleEndDate schedule end date.\n\t * @param sectionTimetable section timetable.\n\t * @param weekDaysAllowed week days allowed. \n\t * @return\n\t * @throws BusinessException In case of exception.\n\t * @throws InvalidArgumentException\n\t */\n\tCollection<SectionTimetable> createSectionTimetables(final Date scheduleStartDate, final Date scheduleEndDate,\n\t\t\tfinal SectionTimetable sectionTimetable, final Collection<WeekDayConstant> weekDaysAllowed)\n\t\t\tthrows BusinessException, InvalidArgumentException;\n\n}",
"public interface TimesheetService {\n\n\t//파트타임 일정별 시간 (activity 별 시간)\n\tList<Map> getMyActTime(Map<String, String> map) throws Exception;\n\n\t//타임시트 리스트\n\tList<Map> getTimesheetAll(Map<String, String> map) throws Exception;\n\n\t//타임시트 헤더 저장\n\tint doSaveTsHeader(Map<String, Object> map) throws Exception;\n\n\t//타임시트 상세 저장\n\tint doSaveTsDetail(Map<String, Object> dtlMap) throws Exception;\n\n\t//타임시트 정보(상세 정보)\n\tList<Map> getTimesheetInfo(Map<String, String> map) throws Exception;\n\n\t//타임시트 상태변경\n\tint doChngTsStatus(Map<String, Object> map) throws Exception;\n\n\t//타임시트 헤더 정보\n\tList<Map> getTimesheetHeaderInfo(Map<String, Object> map) throws Exception;\n\n\t//타임시트 관리자 화면 리스트\n\tList<Map> getTsListAdmin(Map<String, String> map) throws Exception;\n\n\t//타임시트 마감처리 상태 변경(한주간 타임시트 전체)\n\tint doCloseWeekTs(Map<String, Object> map) throws Exception;\n\n\t//타임시트 승인자 화면(부서 타임시트) 리스트\n\tList<Map> getTimesheetInDept(Map<String, String> map) throws Exception;\n\n\t//부서원 타임시트 상세보기 (한주간)\n\tList<Map> getTsOneWeekInDept(Map<String, String> map) throws Exception;\n\n\t//승인 반려 처리\n\tint doChngTsApprov(Map<String, Object> map) throws Exception;\n\t\n}",
"public List<Timetable> getAllTimetable() throws Exception;",
"List<Timetable> getMasterTimetableByDate(Date date, int masterId) throws DBException;",
"public interface SchedulerProvider {\n Scheduler background();\n Scheduler ui();\n}",
"@Override\n public HistoricalTimeSeriesMaster getHistoricalTimeSeriesMaster() {\n return _toolContext.getHistoricalTimeSeriesMaster();\n }",
"protected TimeService getTimeService() {\r\n\t\treturn timeService;\r\n\t}",
"public interface TimerManager extends RemoteService{\n /**\n * This method is called in order to register an event on the database.\n *\n * @param JNDI This is a string for the JNDI of the daemon that is to be\n * called by the event.\n * @param month The month of the event. -1 will occur monthly.\n * @param day The day of the event. -1 will occur daily.\n * @param hour The hour of the event. -1 will occur hourly.\n * @param minute The minute of the event. -1 will occur every minute.\n * @param event This is a serializable object used to identify an individual\n * event.\n * @param recure The value of this indicates whether an event will occur\n * more then once of be deleted from the database after a single\n * occurence. True will cause it to recure, false will result in it\n * being deleted after a single occurence\n */\n public void register(String JNDI, int month, int day, int hour, int minute,\n String event, boolean recure)\n throws TimerManagerException;\n \n \n /**\n * This method returns a list of all the events currently stored in the\n * database.\n *\n * @return The method returns a List of TimerEvent objects. The TimerEvent\n * object contains all the properties of an event from the\n * database.\n */\n public TimerEvent[] listEvents() throws TimerManagerException;\n\n\n /**\n * This method deletes the event identified by the string.\n *\n * @param event The event to delete.\n * @throws com.rift.coad.script.client.files.TimerManagerException\n */\n public void deleteEvent(String event) throws TimerManagerException;\n}",
"public interface ITimeService {\n\n /**\n\t * Get current time.\n\t * \n\t * @return Long current time in milliseconds since Jan 1, 1970. Will not\n\t * return <code>null</code>.\n\t */\n public Long getCurrentTime();\n}",
"public interface Timestamper {\n\n /*\n45: * Connects to the TSA and requests a timestamp.\n46: *\n47: * @param tsQuery The timestamp query.\n48: * @return The result of the timestamp query.\n49: * @throws IOException The exception is thrown if a problem occurs while\n50: * communicating with the TSA.\n51: */\n public TSResponse generateTimestamp(TSRequest tsQuery)\n throws IOException;\n }",
"public abstract SchedulerManager getInstance();",
"public void master() {\n\t\tnew Timer(true).scheduleAtFixedRate(new TimerTask() {\n\t\t\tpublic void run() {\n\t\t\t\tcheckHeartbeatAndWorkload();\n\t\t\t}\n\t\t}, 0, MasterPeriod);\n\n\t\t// TODO: RPC methods\n\t\tnew Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\theartbeatListener();\n\t\t\t}\n\t\t}).start();\n\n\t\t// Prompt to receive administrators command\n\t\tnew Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tprompt();\n\t\t\t}\n\t\t}).start();\n\t}",
"public interface ScheduledTasksManagerService {\n\n /**\n * Adds a new handler that runs when a task is ready\n *\n * @author Kevin Guanche Darias <kevin@kevinguanchedarias.com>\n * @since 0.8.1\n */\n void addHandler(String event, Consumer<ScheduledTask> consumer);\n\n /**\n * Registers an event that will run after certain time\n *\n * @return The id that represents the job\n * @author Kevin Guanche Darias <kevin@kevinguanchedarias.com>\n * @since 0.8.1\n */\n String registerEvent(ScheduledTask task, long deliverAfterSeconds);\n\n /**\n * Cancels an event before it even fires\n *\n * @author Kevin Guanche Darias <kevin@kevinguanchedarias.com>\n * @since 0.8.1\n */\n void cancelEvent(String id, String event);\n\n}",
"Scheduler getScheduler();",
"public interface RemoteTemporalService extends TemporalService {\n /**\n * Turns this service into one that is aware how long transmission took.\n *\n * E.g. implementation of now() calls a remote server and takes 5 seconds to finish, because connection is bad;\n * when called at 12:00:00 (server time), it will return at 12:00:05 (server time) and return datetime\n * representing 12:00:00.\n * As result of this method is aware of that transmission, it should take those 5 seconds into account and\n * return 12:00:05 instead.\n *\n * @return Transmission-time aware version of this instance\n */\n TemporalService accountingForTransmissionTime();\n}",
"public interface ITimetableDAO {\n\n /**\n * Get all the timetable element of <code>Timetable</code> object <br>\n *\n * @return all the list of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getAllTimetable() throws Exception;\n\n /**\n * Get all the list element has search of <code>Timetable</code> object<br>\n *\n * @param from is the date of <code>Timetable</code> object\n * @param to is the date of <code>Timetable</code> object\n * @return all the list has search of <code>Timetable</code> object\n * @throws Exception\n */\n public List<Timetable> getListSearch(String from, String to) throws Exception;\n\n /**\n * Add the all the element of Timetable to database\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param slot the slot of Timetable object, it is an int\n * @param classes the classes of Timetable object, it is a string\n * @param teacher the teacher of Timetable object, it is a string\n * @param room the room of Timetable object, it is an int\n * @throws Exception\n */\n public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param room the room of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;\n\n /**\n * Paginate by number of timetable in <code>Timetable</code> object <br>\n *\n * @param pageIndex the index of page, it is an <code>int</code>\n * @param pageSize the size of page, it is an <code>int</code>\n * @return list of timetable, it is a <code>java.util.List</code> object.\n * @throws java.lang.Exception\n */\n public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;\n\n /**\n * Get number of result <code>Gallery</code> object by id\n *\n * @return number result of Gallery object, it is an int\n * @throws java.lang.Exception\n */\n public int numberOfResult() throws Exception;\n\n /**\n * Function to check Timetable exist before add\n *\n * @param date the date of Timetable object, it is an\n * <code>java.sql.Date</code>\n * @param classes the slot of Timetable object, it is an int\n * @param teacher the teacher of Timetable object, it is a string\n * @return object of Timetable or null when check exist timetable\n * @throws Exception\n */\n public Timetable checkExistTeacherTimeTable(String date, String classes, String teacher) throws Exception;\n\n}",
"public interface TimerProvider {\n\n\t/**\n\t * Grabs the providers timers\n\t * @return A hashset of the timers\n\t */\n\tHashSet<Timer> getTimers();\n\n\t/**\n\t * Starts a timer with the provider\n\t * @param timer The timer\n\t */\n\tvoid startTimer(Timer timer);\n\n\t/**\n\t * Stops/cancels a timer with the provider\n\t * @param timer The timer\n\t */\n\tvoid cancelTimer(Timer timer);\n\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public setter Indicates whether eBay replaced the response with a message that the response was removed. | public void setResponseReplaced(Boolean responseReplaced) {
this.responseReplaced = responseReplaced;
} | [
"public Boolean getResponseReplaced() {\n\t return this.responseReplaced;\n\t}",
"public void setResponseMessage(String responseMessage) { this.responseMessage = responseMessage; }",
"public void setBeenRemoved(boolean value) {\n beenRemoved = value;\n }",
"public void setResponseMessage( String responseMessage ) {\n this.responseMessage = responseMessage;\n }",
"public void setSentOut(boolean newValue)\r\n\t{\r\n\t\tthis.sentOut = newValue;\r\n\t}",
"public void setResponseDescription(String value) {\n if (value == null) {\n Element child = getLastChild(root, \"responsedescription\"); //$NON-NLS-1$\n if (child != null)\n root.removeChild(child);\n } else\n setChild(root, \"responsedescription\", value, childNames, false); //$NON-NLS-1$\n }",
"public void setResponse(java.lang.String response)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RESPONSE$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RESPONSE$2);\n }\n target.setStringValue(response);\n }\n }",
"boolean isMarkAsResponse();",
"public void setResponseMessage(String responseMessage) {\n this.responseMessage = responseMessage;\n }",
"public void setIsResponse(boolean value) {\n this.isResponse = value;\n }",
"void xsetResponded(org.apache.xmlbeans.XmlBoolean responded);",
"private void setResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n bitField0_ |= 0x00000002;\n }",
"public void xsetResponse(org.apache.xmlbeans.XmlString response)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RESPONSE$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(RESPONSE$2);\n }\n target.set(response);\n }\n }",
"public Boolean getObsolete() {\n return obsolete;\n }",
"public void unsetResponse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(RESPONSE$2, 0);\n }\n }",
"void setResponded(boolean responded);",
"public void setResponseMessage(java.lang.String responseMessage) {\n this.responseMessage = responseMessage;\n }",
"public void setResponseDescription(String responseDescription) {\n this.responseDescription = responseDescription;\n }",
"boolean hasReplacePlayerResponse();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .com.ctrip.flight.intl.agg.flighttypes.v3.FareType Fare = 1; | public com.ctrip.flight.intl.agg.flighttypes.v3.FareTypeOrBuilder getFareOrBuilder(
int index) {
return fare_.get(index);
} | [
"public java.util.List<? extends com.ctrip.flight.intl.agg.flighttypes.v3.FareTypeOrBuilder> \n getFareOrBuilderList() {\n return fare_;\n }",
"public java.util.List<com.ctrip.flight.intl.agg.flighttypes.v3.FareType> getFareList() {\n return fare_;\n }",
"@Schema(description = \"type of fare part. If there is only one farepart and this field is missing, it should be assumed it is 'FIXED'. In all other situations this field is mandatory.\")\n \n public TypeEnum getType() {\n return type;\n }",
"public com.ctrip.flight.intl.agg.flighttypes.v3.FareType getFare(int index) {\n if (fareBuilder_ == null) {\n return fare_.get(index);\n } else {\n return fareBuilder_.getMessage(index);\n }\n }",
"public Builder addFare(com.ctrip.flight.intl.agg.flighttypes.v3.FareType value) {\n if (fareBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFareIsMutable();\n fare_.add(value);\n onChanged();\n } else {\n fareBuilder_.addMessage(value);\n }\n return this;\n }",
"public void setFare1()\r\n {\r\n adult_fare = 5.00; // Adult fare for machine 1.\r\n child_fare = 2.50; // Child fare for machine 1.\r\n }",
"com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightOrBuilder getFlightdetailsOrBuilder();",
"public void setFare(double fare) {\n this.fare = fare;\n }",
"public void setFare2()\r\n {\r\n adult_fare = 6.25; // Adult fare for machine 1.\r\n child_fare = 3.75; // Child fare for machine 1.\r\n }",
"@Test\n public void test18() throws Throwable {\n Thoroughfare thoroughfare0 = new Thoroughfare();\n thoroughfare0.setThoroughfareLeadingType((ThoroughfareLeadingTypeType) null);\n assertNull(thoroughfare0.getDependentThoroughfaresType());\n }",
"public double getFare() {\n return fare;\n }",
"com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLegOrBuilder getReturnFlightLegOrBuilder();",
"public String getFOREX_TYPE()\r\n {\r\n\treturn FOREX_TYPE;\r\n }",
"com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight getFlightdetails();",
"@Test\n public void test5() throws Throwable {\n Thoroughfare thoroughfare0 = new Thoroughfare();\n FirmType firmType0 = new FirmType();\n thoroughfare0.setFirm(firmType0);\n assertNull(thoroughfare0.getType());\n }",
"public Byte getFreightType() {\r\n return freightType;\r\n }",
"@ApiModelProperty(value = \"The type of Fundamental\")\n public TypeEnum getType() {\n return type;\n }",
"int getFighthType();",
"com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg getReturnFlightLeg();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert a SI unit name to a CCSDS name. | String siToCcsdsName(String siName); | [
"public static final double cubiccm2SI(double d) {\n return d*SI_CUBICCM;\n }",
"public String getSIunit() {\n\t\tStringBuffer b = new StringBuffer(64);\n\t\ttoSI(b, 0);\n\t\treturn(\"\"+b);\n\t}",
"public static final double cubicft2SI(double d) {\n return d*SI_CUBICFT;\n }",
"public void setCosNm(String cosNm) {\n this.cosNm = cosNm;\n }",
"public String getCSTName();",
"private Card convertStringToCard(String c) {\r\n String[] s = c.split(\" of \");\r\n CardRank rank = CardRank.valueOf(s[0]);\r\n CardSuit suit = CardSuit.valueOf(s[1]);\r\n return new Card(rank, suit);\r\n }",
"public String convertToName(PSSecurityToken tok, long id)\n throws PSException;",
"public static final double SI2cubiccm(double d) {\n return d/SI_CUBICCM;\n }",
"private static double asSIunit(double value, Unit unit){\n switch (unit){\n case KELVIN: return value;\n case CELSIUS: return value + 273.15;\n case FAHRENHEIT: return (value + 459.67)* 5.0/9.0;\n }\n throw new IllegalArgumentException(\"Invalid unit type for Temperature\");\n }",
"public void setToStationName(String toStationName);",
"private static double toSI(final String field, final Unit unit) {\n return unit.toSI(Double.parseDouble(field));\n }",
"public static final double[] cubiccm2SI(double[] da) {\n for (int n = 0; n < da.length; n++) {\n da[n] *= SI_CUBICCM;\n }\n return da;\n }",
"public static final double SI2cubicft(double d) {\n return d/SI_CUBICFT;\n }",
"private Double convertCups (Double quantity, String outUnit) {\n\n switch (outUnit) {\n case (\"ozfl\") : return (quantity * 8);\n\n case (\"tsp\") : return (quantity * 48);\n\n case (\"tbsp\") : return (quantity * 16);\n\n case (\"ml\") : return (quantity * 236.588);\n\n case (\"liters\") : return (quantity * 0.236588);\n\n default : return 0.0;\n }\n\n }",
"public static String toChineseCurrency(Object o) {\n if (o instanceof Number) {\n String s = new DecimalFormat(\"#.00\").format(o);\n s = s.replaceAll(\"\\\\.\", \"\");\n char[] digit = {'零', '壹', '贰', '叁', '肆', '伍', '陆',\n '柒', '捌', '玖'};\n String unit = \"仟佰拾兆仟佰拾亿仟佰拾万仟佰拾元角分\";\n int l = unit.length();\n StringBuffer sb = new StringBuffer(unit);\n for (int i = s.length() - 1; i >= 0; i--) {\n sb = sb.insert(l - s.length() + i,\n digit[(s.charAt(i) - 0x30)]);\n }\n s = sb.substring(l - s.length(), l + s.length());\n s = s.replaceAll(\"零[拾佰仟]\", \"零\")\n .replaceAll(\"零{2,}\", \"零\")\n .replaceAll(\"零([兆万元])\", \"$1\")\n .replaceAll(\"零[角分]\", \"\");\n return s;\n } else {\n throw new NumberFormatException();\n }\n }",
"private static String convertArtistName(String artistName) {\n\t\tString familyName = artistName.substring(0, artistName.indexOf(\",\"));\n\t\tString name = artistName.substring(artistName.indexOf(\",\")+2,artistName.length());\n\t\t\n\t\tString artistName_ = name.substring(0,1).toUpperCase() + name.substring(1,name.length());\n\t\t\n\t\tif (artistName.length() > artistName.indexOf(\",\") + 1) {\n\t\t\tartistName_ += \" \" + familyName.substring(0,1).toUpperCase() + familyName.substring(1,familyName.length());\n\t\t}\n\t\n\t\treturn artistName_;\n\t}",
"public static String toNcName(String name) {\n\t\treturn toNcName(name, '_');\n\t}",
"public static String toDisplayName(String s) {\n if (isSafeBytecodeName(s)) {\n boolean isuid = Character.isUnicodeIdentifierStart(s.charAt(0));\n for (int i = 1, slen = s.length(); i < slen; i++) {\n if (!Character.isUnicodeIdentifierPart(s.charAt(0)))\n { isuid = false; break; }\n }\n if (isuid)\n return s;\n String ss = toSourceName(s);\n if (s.equals(toBytecodeName(ss)))\n return quoteDisplay(ss);\n }\n // Try to demangle a prefix, up to the first dangerous char.\n int dci = indexOfDangerousChar(s, 0);\n if (dci > 0) {\n // At least try to demangle a prefix.\n String p = s.substring(0, dci);\n String ps = toSourceName(p);\n if (p.equals(toBytecodeName(ps))) {\n String t = s.substring(dci+1);\n return quoteDisplay(toSourceName(p)) + s.charAt(dci) + (t.equals(\"\") ? \"\" : toDisplayName(t));\n }\n }\n return \"?\"+quoteDisplay(s);\n }",
"private static DCINameEnumeration getDCINameFromString(String dciName)\n throws IllegalArgumentException {\n if (dciName == null) {\n throw new IllegalArgumentException(\"Unknown dci name detected (\"\n + dciName + \")\");\n }\n\n DCINameEnumeration name = DCINameEnumeration.fromValue(dciName.toLowerCase());\n if (name == null) {\n throw new IllegalArgumentException(\"Unknown dci name detected (\"\n + dciName + \")\");\n }\n\n return name;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks to see if a time is in this tutor's schedule | public boolean isTimeInSchedule(int time)
{
for(int i = 0; i < startTimes.length; i++)
{
if(time >= startTimes[i] && time <= endTimes[i])
{
return true;
}
}
return false;
} | [
"public boolean checkTime() {\n \tCalendar current = Calendar.getInstance();\n \tif(current.getTimeInMillis() < start.getTimeInMillis())\n \t\treturn false;\n \telse\n \t\treturn true;\n }",
"boolean hasValidUntilTime();",
"public boolean isDuringTime() {\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HHmm\");\r\n\t\tint now = Integer.parseInt( sdf.format(new Date()) );\r\n for ( int i = 0; i < openTime.length; i++ )\r\n\t\t\tif ( now >= openTime[i] && now <= closeTime[i])\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}",
"private boolean checkSchedule() {\n String scheduleName = nameField.getText();\n Calendar calendar = graphicalOrganizationApp.getCalendar();\n\n if (calendar.getSchedule(scheduleName) != null) {\n broadcast(\"Schedule already exists\");\n return true;\n }\n\n return false;\n }",
"Boolean isavaiblestarttime(String appointerid, Calendar localdate);",
"boolean isSetSchedule();",
"boolean hasBasedTime();",
"public boolean isMorning() {\r\n return hours >= 6 && hours <= 9;\r\n }",
"boolean hasDoctorInAppointmentSchedule(Doctor doctor);",
"public boolean verifySchedule(Meeting meeting)\n\t{\n\t\tArrayList<Meeting> meetingsL = this.meetings;\n\t\tfor(Meeting m: meetingsL)\n\t\t{\n\t\t\tif(!(checkMeeting(meeting.getStartTime(), meeting.getStopTime(), m.getStartTime(), m.getStopTime())))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isInside(long time) {\n return from <= time && time <= to;\n }",
"boolean isFreeTime(int idHall, LocalDate startDate, LocalTime startTime, LocalTime endTime, int idSchedule) throws DaoException;",
"private boolean isScheduledDowntime() {\n\t\treturn _timeSource.now() <= _scheduledDowntimeUntil;\n\t}",
"public boolean contains(long time) {\n\t\treturn ((start <= time) && (time <= end));\n\t}",
"private Boolean TimeInRange(String time){\n \n String[] t = time.split(\":\");\n \n int hours = Integer.parseInt(t[0]);\n int minutes = Integer.parseInt(t[1]);\n int seconds = Integer.parseInt(t[2]);\n \n if(hours == 11 && minutes == 59 && (seconds >= 55)){\n return true;\n }\n \n return false;\n \n }",
"private boolean isUserInSchedule(String username, Schedule attendeeSchedule) {\n for (ScheduleTime time : attendeeSchedule.getSchedule().keySet()) {\n for (String room : attendeeSchedule.getSchedule().get(time).keySet()) {\n if (scheduleManager.getEvent(attendeeSchedule.getSchedule().get(time).get(room)).getAttendees().contains(username)) {\n return true;\n }\n }\n }\n return false;\n }",
"public boolean isSetSchedule() {\n return this.schedule != null;\n }",
"boolean hasPatientInAppointmentSchedule(Patient patient);",
"public boolean timeValidated(Event e) {\n\t\tLocalDate date = e.sDate;\n\t\tLocalTime stime = e.sTime;\n\t\tLocalTime etime = e.eTime;\n\t\tArrayList<Event> list = new ArrayList<Event>();\n\t\tif(map.containsKey(date)) {\n\t\t\tlist = map.get(date);\n\n\t\t\tfor(int i = 0; i<list.size(); i++) {\n\t\t\t\tEvent evnt = list.get(i);\n\n\t\t\t\tif(e.sTime.equals(evnt.sTime) || e.eTime.equals(evnt.eTime)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t//check for start times\n\t\t\t\tif(e.sTime.isBefore(evnt.sTime)) {\n\t\t\t\t\tif(!e.eTime.isBefore(evnt.sTime)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//check for end time\n\t\t\t\tif(e.sTime.isAfter(evnt.sTime)) {\n\t\t\t\t\tif(!e.sTime.isAfter(evnt.eTime)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends the supplied value to the list of values of the parameter with supplied name. If the parameter does not exist it creates an entry for it and sets the value as parameter value. | public void appendParameter(String name, Object value); | [
"public void addParamValue(String name, String value)\n\t{\n\t\tif(name == null)\n\t\t\tthrow new RequiredException(\"name\");\n\t\t\n\t\tCollection<String> values = this.parameters.get(name);\n\t\t\n\t\tif(values == null)\n\t\t\tvalues = newValues();\n\t\t\n\t\tvalues.add(value);\n\t\t\n\t\tthis.parameters.put(name.toUpperCase(), values);\n\t\t\n\t}",
"public void addParam(String name, String value) {\r\n if (params == null) {\r\n params = new ArrayList();\r\n }\r\n Param param = new Param(name, value);\r\n params.add(param);\r\n }",
"private void addParameter(String name , Object value)\n \t{\n \t\tif(value != null && value.toString().length() > 0)\n \t\t{\n \t\t\tm_parameters.add(name);\n \t\t\tm_values.add(value);\n \t\t}\t\t\n \t}",
"public static void appendValue(String name, String value) {\n\t\tStringBuffer sB = new StringBuffer();\n\t\tString paths = null;\n\t\t//get existing paths\n\t\tpaths = getExistingPaths(name);\n\t\t//if values exist\n\t\tif (paths.length()!=0) {\n\t\t\t//if the value is reasonable\n\t\t\tif (!value.equalsIgnoreCase(\"\") && value.length()!=0) { //$NON-NLS-1$\n\t\t\t\t//if the paths doesn't contain the new value\n\t\t\t\tif (!paths.contains(value)) {\n\t\t\t\t\t//append existing paths to the string buffer\n\t\t\t\t\tsB.append(paths);\n\t\t\t\t\t//add a path separator in the end if it doesn't exists\n\t\t\t\t\tif (paths.charAt(paths.length()-1)!=Separators.getPathSeparator().charAt(0)) {\n\t\t\t\t\t\tsB.append(Separators.getPathSeparator());\n\t\t\t\t\t}\n\t\t\t\t\t//append the new value to end of the list\n\t\t\t\t\tsB.append(value);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t} else { //no existing values\n\t\t\t//if the value is reasonable\n\t\t\tif (!value.equalsIgnoreCase(\"\") && value.length()!=0) { //$NON-NLS-1$\n\t\t\t\t//append a new path to the string buffer\n\t\t\t\tsB.append(value);\n\t\t\t}\n\t\t}\n\t\tString newValues = sB.toString();\n\t\tif (newValues.length()!=0) {\n\t\t\t//set the new preference store value\n\t\t\tsetPreferenceStoreValue(name, newValues);\t\t\t\n\t\t}\n\t}",
"public Href addParameter(String name, Object value)\r\n {\r\n this.parameters.put(name, ObjectUtils.toString(value, null));\r\n return this;\r\n }",
"public void addParam(String name, String value) {\n if (name == null) {\n throw new NullPointerException(\"name\");\n }\n if (value == null) {\n throw new NullPointerException(\"value\");\n }\n params.add(new Param(name, value));\n }",
"public void addParameter(Object value) {\n\t\tparameters.add(value);\n\t}",
"void addParameter(String name, String value) throws CheckerException;",
"public void addTag(String name, String value){\n\t\tlock.writeLock().lock();\n\t\ttry {\n\t\t\t// Obtaining maximum history size\n\t\t\tint tagHistorySize = MoskitoConfigurationHolder.getConfiguration().getTaggingConfig().getTagHistorySize();\n\n\t\t\tLinkedList<String> tagValues = tags.get(name);\n\t\t\tif (tagValues == null) {\n\t\t\t\ttagValues = new LinkedList<>();\n\t\t\t}\n\n\t\t\t// Currently addTag() method may be called several times in a row with one value because it's called in filter\n\t\t\t// So, for now we will avoid duplicated values in history\n\t\t\tif (tagValues.peekLast() != null && tagValues.peekLast().equals(value)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// If we have more then maximum allowed tag values, remove first\n\t\t\tif (tagValues.size() >= tagHistorySize) {\n\t\t\t\ttagValues.removeFirst();\n\t\t\t}\n\n\t\t\t// Add new value to history\n\t\t\ttagValues.add(value != null ? value : \"\");\n\t\t\ttags.put(name, tagValues);\n\t\t} finally {\n\t\t\tlock.writeLock().unlock();\n\t\t}\n\t}",
"void appendQueryParam(String name, Object value) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n }\n if (value == null) {\n throw new IllegalArgumentException(\"Value cannot be null\");\n }\n queryParams.add(new Param(name, String.valueOf(value)));\n }",
"public void addConfigParameter(String name, String value)\r\n\t\tthrows ConfigParameterAlreadySetException {\r\n\t\tif (!configParameters.containsKey(name)) {\r\n\t\t\tconfigParameters.put(name, value);\r\n\t\t} else {\r\n\t\t\tthrow new ConfigParameterAlreadySetException(\r\n\t\t\t\t\"Configuration parameter is already set for this agent: name \"\r\n\t\t\t\t\t\t\t+ name + \" value \" + value);\r\n\t\t}\r\n\t}",
"protected void addParameter(Query query, String name, Object value) {\n\t\tif (value != null) {\n\t\t\tquery.setParameter(name, value);\n\t\t}\n\t}",
"public PostRequestBodyBuffer addParamIfNotNull(String name, String value) {\n return value != null ? addParam(name, value) : this;\n }",
"private void addQueryParameter(String name, String value)\n {\n if(_query.length() > 0)\n _query.append('&');\n _query.append(encode(name));\n _query.append('=');\n _query.append(encode(value));\n }",
"public void addParameter( String value )\n {\n addParameterWithType(value, null);\n }",
"@Override\n public StandardURIBuilder addQueryParameter(String name, String value) {\n Preconditions.notNull(name, \"name\");\n\n this.queryParameters.add(new QueryParameter(name, value));\n List<String> multiMapValues = this.queryParametersMultiMap.get(name);\n if (multiMapValues == null) {\n multiMapValues = new ArrayList<>();\n this.queryParametersMultiMap.put(name, multiMapValues);\n }\n multiMapValues.add(value);\n\n this.rawQueryString = buildQueryStringFromQueryParameters(this.queryParameters);\n return this;\n }",
"public void addParameter(String key, Object value) {\r\n if (key != null) {\r\n Map params = getParameters();\r\n\r\n if (value == null) {\r\n params.remove(key);\r\n } else {\r\n params.put(key, value);\r\n }\r\n }\r\n }",
"public void addParameter(final String key, final Object value) {\n parameters.put(key, value);\n }",
"public void addParameterLike(String param, Object value) {\n this.parameters.put(param, \"%\" + value + \"%\");\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.institution | public void setInstitution(Long institution) {
this.institution = institution;
} | [
"public void setInstitutionNum(String institutionNum) {\n this.institutionNum = institutionNum;\n }",
"public void setInstitution_id(Long institution_id) {\n this.institution_id = institution_id;\n }",
"public void setInstitutionid(Integer newVal) {\n if ((newVal != null && this.institutionid != null && (newVal.compareTo(this.institutionid) == 0)) || \n (newVal == null && this.institutionid == null && institutionid_is_initialized)) {\n return; \n } \n this.institutionid = newVal; \n institutionid_is_modified = true; \n institutionid_is_initialized = true; \n }",
"public String getInstitutionNum() {\n return institutionNum;\n }",
"public Long getInstitution() {\n return institution;\n }",
"public Long getInstitution_id() {\n return institution_id;\n }",
"public void setInstitutionCode(String institutionCode) {\n\t\tthis.institutionCode = institutionCode;\n\t}",
"public Integer getInstitutionid()\n {\n return institutionid; \n }",
"public void setInstitutionid(int newVal) {\n setInstitutionid(new Integer(newVal));\n }",
"@ManyToOne\r\n\t@JoinColumn(name=\"idinstitution\")\r\n\tpublic Institution getInstitution() {\r\n\t\treturn this.institution;\r\n\t}",
"public void setInstitutionId(Integer institutionId) {\n\t\tthis.institutionId = institutionId;\n\t}",
"public static String getInstitutionId() {\n\n//\t\treturn \"02500\";\n\t\treturn operator_institution_id;\n\t}",
"public Integer getInstitutionId() {\n\t\treturn institutionId;\n\t}",
"public String getInstitutionCode() {\n\t\treturn institutionCode;\n\t}",
"public void setInstitutionName(String institutionName) {\n this.institutionName = institutionName;\n }",
"public void setInstitutionPrefix(String institutionPrefix) {\n this.institutionPrefix = institutionPrefix;\n }",
"public void setIdInstitution(String idInstitution) {\n this.idInstitution = UUID.fromString(idInstitution);\n }",
"public static void setInstitutionId(String id) {\n\t\toperator_institution_id = id;\n\t}",
"public InstitutionBean save(InstitutionBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n StringBuffer _sql = null;\n\n try\n {\n c = getConnection();\n if (pObject.isNew())\n { // SAVE \n if (!pObject.isInstitutionidModified())\n {\n ps = c.prepareStatement(\"SELECT nextval('institutionid_seq')\");\n ResultSet rs = null;\n try\n {\n rs = ps.executeQuery();\n if(rs.next())\n pObject.setInstitutionid(Manager.getInteger(rs, 1));\n else\n getManager().log(\"ATTENTION: Could not retrieve generated key!\");\n }\n finally\n {\n getManager().close(ps, rs);\n ps=null;\n }\n }\n beforeInsert(pObject); // listener callback\n int _dirtyCount = 0;\n _sql = new StringBuffer(\"INSERT into institution (\");\n \n if (pObject.isInstitutionidModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"institutionid\");\n _dirtyCount++;\n }\n\n if (pObject.isNameModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"name\");\n _dirtyCount++;\n }\n\n if (pObject.isAddressModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"address\");\n _dirtyCount++;\n }\n\n if (pObject.isCodeModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"code\");\n _dirtyCount++;\n }\n\n if (pObject.isProviderModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"provider\");\n _dirtyCount++;\n }\n\n if (pObject.isHeaderlogoModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"headerlogo\");\n _dirtyCount++;\n }\n\n if (pObject.isIsoModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"iso\");\n _dirtyCount++;\n }\n\n if (pObject.isFullnameModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"fullname\");\n _dirtyCount++;\n }\n\n if (pObject.isPhoneModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"phone\");\n _dirtyCount++;\n }\n\n if (pObject.isUrlModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"url\");\n _dirtyCount++;\n }\n\n if (pObject.isParentidModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"parentid\");\n _dirtyCount++;\n }\n\n if (pObject.isCompanyidModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"companyid\");\n _dirtyCount++;\n }\n\n _sql.append(\") values (\");\n if(_dirtyCount > 0) {\n _sql.append(\"?\");\n for(int i = 1; i < _dirtyCount; i++) {\n _sql.append(\",?\");\n }\n }\n _sql.append(\")\");\n\n ps = c.prepareStatement(_sql.toString(), ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n _dirtyCount = 0;\n\n if (pObject.isInstitutionidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n }\n \n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n \n if (pObject.isAddressModified()) {\n ps.setString(++_dirtyCount, pObject.getAddress());\n }\n \n if (pObject.isCodeModified()) {\n ps.setString(++_dirtyCount, pObject.getCode());\n }\n \n if (pObject.isProviderModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getProvider());\n }\n \n if (pObject.isHeaderlogoModified()) {\n ps.setString(++_dirtyCount, pObject.getHeaderlogo());\n }\n \n if (pObject.isIsoModified()) {\n ps.setString(++_dirtyCount, pObject.getIso());\n }\n \n if (pObject.isFullnameModified()) {\n ps.setString(++_dirtyCount, pObject.getFullname());\n }\n \n if (pObject.isPhoneModified()) {\n ps.setString(++_dirtyCount, pObject.getPhone());\n }\n \n if (pObject.isUrlModified()) {\n ps.setString(++_dirtyCount, pObject.getUrl());\n }\n \n if (pObject.isParentidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getParentid());\n }\n \n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n ps.executeUpdate();\n \n pObject.isNew(false);\n pObject.resetIsModified();\n afterInsert(pObject); // listener callback\n }\n else \n { // UPDATE \n beforeUpdate(pObject); // listener callback\n _sql = new StringBuffer(\"UPDATE institution SET \");\n boolean useComma=false;\n\n if (pObject.isInstitutionidModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"institutionid\").append(\"=?\");\n }\n\n if (pObject.isNameModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"name\").append(\"=?\");\n }\n\n if (pObject.isAddressModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"address\").append(\"=?\");\n }\n\n if (pObject.isCodeModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"code\").append(\"=?\");\n }\n\n if (pObject.isProviderModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"provider\").append(\"=?\");\n }\n\n if (pObject.isHeaderlogoModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"headerlogo\").append(\"=?\");\n }\n\n if (pObject.isIsoModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"iso\").append(\"=?\");\n }\n\n if (pObject.isFullnameModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"fullname\").append(\"=?\");\n }\n\n if (pObject.isPhoneModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"phone\").append(\"=?\");\n }\n\n if (pObject.isUrlModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"url\").append(\"=?\");\n }\n\n if (pObject.isParentidModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"parentid\").append(\"=?\");\n }\n\n if (pObject.isCompanyidModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"companyid\").append(\"=?\");\n }\n _sql.append(\" WHERE \");\n _sql.append(\"institution.institutionid=?\");\n ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n int _dirtyCount = 0;\n\n if (pObject.isInstitutionidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n }\n\n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n\n if (pObject.isAddressModified()) {\n ps.setString(++_dirtyCount, pObject.getAddress());\n }\n\n if (pObject.isCodeModified()) {\n ps.setString(++_dirtyCount, pObject.getCode());\n }\n\n if (pObject.isProviderModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getProvider());\n }\n\n if (pObject.isHeaderlogoModified()) {\n ps.setString(++_dirtyCount, pObject.getHeaderlogo());\n }\n\n if (pObject.isIsoModified()) {\n ps.setString(++_dirtyCount, pObject.getIso());\n }\n\n if (pObject.isFullnameModified()) {\n ps.setString(++_dirtyCount, pObject.getFullname());\n }\n\n if (pObject.isPhoneModified()) {\n ps.setString(++_dirtyCount, pObject.getPhone());\n }\n\n if (pObject.isUrlModified()) {\n ps.setString(++_dirtyCount, pObject.getUrl());\n }\n\n if (pObject.isParentidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getParentid());\n }\n\n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n if (_dirtyCount == 0) {\n return pObject;\n }\n \n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n ps.executeUpdate();\n pObject.resetIsModified();\n afterUpdate(pObject); // listener callback\n }\n \n return pObject;\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the minimum value found in a float array. | public static float min(final float[] data) {
float min = Float.MAX_VALUE;
for (final float element : data) {
if (min > element) {
min = element;
}
}
return min;
} | [
"public static float min(float[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n float min = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(Float.isNaN(array[i])){\n return Float.NaN;\n }\n if(array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"public T findLowest(){\n T lowest = array[0]; \n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()<lowest.doubleValue())\n {\n lowest = array[i]; \n } \n }\n return lowest;\n }",
"public static float getMinValueInArray(float[] inputArray){\n\t\t/*\n\t\t * Iterting the Array\n\t\t */\n\t\tfloat maxValue = inputArray[0];\n\t\tfor(int i=0;i<inputArray.length;i++){\n\t\t\tif(maxValue > inputArray[i]){ //If maxValue is less then current element\n\t\t\t\tmaxValue = inputArray[i];\n\t\t\t}\n\t\t}\n\t\treturn maxValue;\n\t}",
"private double getArrayMinValue(double[] array) {\r\n if (array == null)\r\n return -1;\r\n double min = Double.MAX_VALUE;\r\n for (int i = 0; i < 12; i++)\r\n if (array[i] < min)\r\n min = array[i];\r\n return min;\r\n }",
"public static double min(double[] arr){\n double min = arr[0];\n\n for(double each : arr) {\n if (each < min) {\n min = each;\n }\n }\n\n return min;\n }",
"private double findMin(double[] array) {\n\t\tdouble lowest = 1000000000;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (array[i] < lowest) {\n\t\t\t\tlowest = array[i];\n\t\t\t}\n\t\t}\n\t\treturn lowest;\n\t}",
"public static double min(double[] array) {\n\t\tdouble min = array[0];\n\t\tfor (double x : array) {\n\t\t\tif (x < min)\n\t\t\t\tmin = x;\n\t\t}\n\t\treturn min;\n\t}",
"public static double min(double[] array){\n double min = array[0];\n for(double each: array) {\n min= Math.min(each, min);\n }\n return min;\n }",
"public static double minimum( Object array ) {\n try {\n int n = Array.getLength( array );\n double min = Double.NaN;\n for ( int i = 0; i < n; i++ ) {\n double d = Array.getDouble( array, i );\n if ( ! Double.isNaN( d ) && ! ( d > min ) ) {\n min = d;\n }\n }\n return min;\n }\n catch ( RuntimeException e ) {\n return Double.NaN;\n }\n }",
"public double getMin(int[] array) {\n double min = array[0];\n for (int a = 1; a < array.length; a++) {\n if (min > array[0])\n min = array[a];\n }\n return min;\n }",
"public static double getMin (double[] array)\n\t{\n\t\tdouble val = 1.e30;\n\t\tif (array == null) return val;\n\n\t\tint size = array.length;\n\t\tif (size == 0) return val;\n\n\t\tfor (int i=0; i<size; i++) {\n\t\t\tif (array[i] < val) val = array[i];\n\t\t}\n\n\t\treturn val;\n\n\t}",
"public static float min(float [] array, boolean [] isValid)\r\n\t{\r\n\t\tfloat minValude = Float.MAX_VALUE;\r\n\t\tfor (int i = 0; i < isValid.length; i++)\r\n\t\t{\r\n\t\t\tif (isValid[i])\r\n\t\t\t{\r\n\t\t\t\tminValude = array[i];\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] < minValude && isValid[i])\r\n\t\t\t{\r\n\t\t\t\tminValude = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn minValude;\r\n\t}",
"public static double minElement1(double[] array) {\n double minVal = 0;\n if (array != null && array.length > 0) { //NOTE\n minVal = array[0];\n for (int i = 1; i < array.length; i++) {\n if (array[i] < minVal) {\n minVal = array[i];\n } \n }\n }\n return minVal; \n }",
"public static double min(double[] data) {\n double min = data[0];\n\n for (int i = 1; i < data.length; i++) {\n if (data[i] < min) {\n min = data[i];\n }\n }\n\n return min;\n }",
"public Float getMinimumPoint();",
"public double min() {\n\t\tif (data.length == 0) {\n\t\t\treturn Double.NaN;\n\t\t}\n\t\tdouble min = data[0];\n\t\tfor (int i = 1; i < data.length; i++) {\n\t\t\tif (data[i] < min) {\n\t\t\t\tmin = data[i];\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}",
"private int minIndex(double[] arr) {\r\n\t\tint index = 0;\r\n\t\tdouble value = Double.MAX_VALUE;\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tif (arr[i] < value) {\r\n\t\t\t\tindex = i;\r\n\t\t\t\tvalue = arr[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn index;\r\n\t}",
"public static int indexFirstMin1(double[] array) {\n int minIndex = -1;\n if (array != null && array.length > 0) {\n minIndex = 0;\n for (int i = 1; i < array.length; i++) {\n if (array[i] < array[minIndex]) {\n minIndex = i;\n } \n }\n }\n return minIndex;\n }",
"public double min(){\r\n\t\t//variable for min val\r\n\t\tdouble min = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the minimum is more than the current index, change min to that value\r\n\t\t\tif (min > this.data[i]){\r\n\t\t\t\tmin = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the minimum val\r\n\t\treturn min;\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Public ReplicatedMetaRelationship index access | public int indexOfReplicatedMetaRelationshipPR( EAIMMCtxtIfc theCtxt, com.dosmil_e.m3.core.ifc.M3RelationshipIfc theReplicatedMetaRelationship) throws EAIException {
if( !hasReplicatedMetaRelationshipPR( theCtxt, theReplicatedMetaRelationship)) { return -1;}
return 0;
} | [
"public abstract MetaIndex getMetaIndex();",
"public int indexOfReplicatedMetaRelationship( EAIMMCtxtIfc theCtxt, com.dosmil_e.m3.core.ifc.M3RelationshipIfc theReplicatedMetaRelationship) throws EAIException {\r\n if( theCtxt == null) { throw new EAIFlatTransactionWrongUseException();}\r\n\r\n int aResult = -1;\r\n\r\n EAIFlatTransactionMgrIfc aTrxMgr = theCtxt.getFlatTrxMgr();\r\n if( aTrxMgr == null) { return aResult;}\r\n if( aTrxMgr.inTransaction()) {\r\n aResult = indexOfReplicatedMetaRelationshipPR( theCtxt, theReplicatedMetaRelationship);\r\n return aResult;\r\n }\r\n\r\n EAIFlatTrxBlockId aBlockId = theCtxt.getFlatTrxMgr().newBlockId();\r\n if( aBlockId == null) { throw new EAIFlatTransactionWrongUseException();}\r\n boolean anIsDone = false;\r\n try {\r\n try {\r\n aResult = indexOfReplicatedMetaRelationshipPR( theCtxt, theReplicatedMetaRelationship);\r\n anIsDone = true;\r\n }\r\n finally {\r\n if( !anIsDone) {\r\n theCtxt.getFlatTrxMgr().blockInterrupted( aBlockId);\r\n }\r\n else {\r\n theCtxt.getFlatTrxMgr().blockCompleted( aBlockId);\r\n }\r\n }\r\n }\r\n catch( EAIFlatTransactionCancelException anException) {\r\n theCtxt.getFlatTrxMgr().trappedCancelTransactionException( anException, aBlockId);\r\n }\r\n\r\n return aResult;\r\n }",
"IndexMetadata getIndexMetadata();",
"public abstract PostingIndex<?> getDirectIndex();",
"io.dstore.engine.MetaInformation getMetaInformation(int index);",
"public abstract boolean index(String identifier, Map<String,String> metadata);",
"Metadata.Artist getRelated(int index);",
"Metadata.Album getRelated(int index);",
"public boolean isRestfulIndexRelated() {\n return \"GET\".equals(httpMethod) && isParentChildPath() ;\n }",
"public abstract boolean isIndexable();",
"public com.dosmil_e.m3.core.priv.M3RelationshipPriv getReplicatedMetaRelationshipPrivileged( EAIMMCtxtIfc theCtxt) throws EAIException {\r\n return vrReplicatedMetaRelationship;\r\n }",
"BusinessViewInnerJoinRelationship getBusinessViewInnerJoinRelationshipAtOccurrenceNumber(PhysicalTable physicalTable, int index);",
"public String getMetaReplicaID();",
"public abstract DocumentIndex getDocumentIndex();",
"Object getIndexData();",
"StorableIndexInfo getIndexInfo();",
"@Override\n \tpublic Object getIndexInOwner(String entity, String property, Object childEntity, Map mergeMap) {\n \n \t\tEntityPersister persister = session.getFactory()\n \t\t\t\t.getEntityPersister(entity);\n \t\tCollectionPersister cp = session.getFactory()\n \t\t\t\t.getCollectionPersister(entity + '.' + property);\n \n \t // try cache lookup first\n \t Object parent = parentsByChild.get(childEntity);\n \t\tif (parent != null) {\n \t\t\tfinal EntityEntry entityEntry = entityEntries.get(parent);\n \t\t\t//there maybe more than one parent, filter by type\n \t\t\tif ( persister.isSubclassEntityName( entityEntry.getEntityName() ) ) {\n \t\t\t\tObject index = getIndexInParent(property, childEntity, persister, cp, parent);\n \n \t\t\t\tif (index==null && mergeMap!=null) {\n \t\t\t\t\tObject unmergedInstance = mergeMap.get(parent);\n \t\t\t\t\tObject unmergedChild = mergeMap.get(childEntity);\n \t\t\t\t\tif ( unmergedInstance!=null && unmergedChild!=null ) {\n \t\t\t\t\t\tindex = getIndexInParent(property, unmergedChild, persister, cp, unmergedInstance);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif (index!=null) {\n \t\t\t\t\treturn index;\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tparentsByChild.remove(childEntity); // remove wrong entry\n \t\t\t}\n \t\t}\n \n \t\t//Not found in cache, proceed\n \t\tfor ( Entry<Object, EntityEntry> me : IdentityMap.concurrentEntries( entityEntries ) ) {\n \t\t\tEntityEntry ee = me.getValue();\n \t\t\tif ( persister.isSubclassEntityName( ee.getEntityName() ) ) {\n \t\t\t\tObject instance = me.getKey();\n \n \t\t\t\tObject index = getIndexInParent(property, childEntity, persister, cp, instance);\n \n \t\t\t\tif (index==null && mergeMap!=null) {\n \t\t\t\t\tObject unmergedInstance = mergeMap.get(instance);\n \t\t\t\t\tObject unmergedChild = mergeMap.get(childEntity);\n \t\t\t\t\tif ( unmergedInstance!=null && unmergedChild!=null ) {\n \t\t\t\t\t\tindex = getIndexInParent(property, unmergedChild, persister, cp, unmergedInstance);\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\tif (index!=null) return index;\n \t\t\t}\n \t\t}\n \t\treturn null;\n \t}",
"public abstract IborIndex getIndex();",
"IndexMetadata newIndexMetadata();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Selects the kth maximum value from the array a. This method throws IllegalArgumentException if a is null, has zero length, or if there is no kth maximum value. Note that there is no kth maximum value if k a.length, or if k is larger than the number of distinct values in the array. The array a is not changed by this method. | public static int kmax(int[] a, int k) throws IllegalArgumentException {
if (ktest(a, k)) {
throw new IllegalArgumentException();
}
int[] array = Arrays.copyOf(a, a.length);
int element;
int increment = 1;
Arrays.sort(array);
element = array[array.length - 1];
for (int i = array.length - 1; i > -1; i--) {
if (element > array[i]) {
element = array[i];
increment ++;
}
if (k == increment) {
return element;
}
}
throw new IllegalArgumentException();
} | [
"public static int findNextHigher(int[] a, int k) {\n\t int low = 0; \n\t int high = a.length - 1;\n\t \n\t int result = Integer.MAX_VALUE;\n\t while (low <= high) {\n\t int mid = (low + high) / 2;\n\t \n\t if (a[mid] > k) {\n\t result = a[mid]; /*update the result and continue*/\n\t high = mid - 1;\n\t } else {\n\t low = mid + 1;\n\t }\n\t } \n\t \n\t return result;\n\t}",
"public static int findNextHigherIndex(int[] a, int k) {\n\t\tint start = 0, end = a.length - 1; \n\t \n int ans = -1; \n while (start <= end) { \n int mid = (start + end) / 2; \n \n // Move to right side if target is \n // greater. \n if (a[mid] <= k) { \n start = mid + 1; \n } \n \n // Move left side. \n else { \n ans = mid; \n end = mid - 1; \n } \n } \n return ans;\n\t}",
"public int[] getMaxSub(int[] array, int k) {\r\n int out[] = new int[k];\r\n int idx = 0;\r\n for (int i = 0; i < array.length; i++) {\r\n // move the pointer back only when both condition happens\r\n // 1. current element is larger than last one in candidate\r\n // 2. there are enough elements in rest of array\r\n while (idx > 0 && array.length - i + idx > k && out[idx-1] < array[i]) {\r\n idx--;\r\n }\r\n if (idx < k)\r\n out[idx++] = array[i];\r\n }\r\n return out;\r\n }",
"public int findKthLargest(int[] nums, int k) {\n Arrays.sort(nums);\n return nums[nums.length - k];\n }",
"public int getKthVariantDimension(final int k) {\n int n = k - 1;\n\n if (n > dimensions) {\n System.out.println(\"ERROR: Non-existent dimension requested\");\n\n return -1;\n }\n\n boolean[] pastGreatest = new boolean[dimensions];\n double[] variances = new double[dimensions];\n ArrayList<Integer> ret = new ArrayList<Integer>();\n\n /* Make an array of variances and populate booles */\n for (int i = 0; i < dimensions; i++) {\n Double var = new Double(getCovariance(i, i));\n\n // System.out.println(\"[\" + i + \"]=\" + var);\n variances[i] = var.doubleValue();\n pastGreatest[i] = false;\n }\n\n /* Find k-th maximium variance */\n for (int i = 0; i <= n; i++) {\n double max = 0;\n int greatest = 0;\n\n for (int j = 0; j < dimensions; j++) {\n if (pastGreatest[j]) {\n continue;\n }\n\n if (variances[j] > max) {\n max = variances[j];\n greatest = j;\n }\n }\n\n pastGreatest[greatest] = true;\n ret.add(greatest);\n }\n\n return ret.get(n);\n }",
"public static int findKthLargest(int[] nums, int k) { \n\t\t//sorts the array\n\t\tArrays.sort(nums);\n\t\t//determines kth largest\n\t\tint kthLargest = nums.length - k;\n\t\treturn nums[kthLargest];\n\t}",
"public HeapElement removeKthMax (int k) {\n\t\t\n\t\t// make sure \"k\" is in range\n\t\tif (k > size) {\n\t\t\tthrow new HeapException(\"You cannot remove more elements that the existing ammount\");\n\t\t} else if (k < 1) {\n\t\t\tthrow new HeapException(\"You cannot remove non positive number of elements\");\n\t\t}\n\t\t\n\t\t// Save the max element\n\t\tHeapElement max = elementsArray[1];\n\t\t\n\t\t// A loop running k times and delete the max every time\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tmax = deleteMax();\n\t\t}\n\t\treturn max;\n\t}",
"public int findKthLargest(int[] nums, int k) {\n if (nums == null || nums.length == 0 || k < 1 || k > nums.length) return -1;\n return findKthLargestQuickSort(nums,0,nums.length-1,nums.length-k);\n }",
"static void print_max(int a[], int n, int k) \r\n\t{ \r\n\t\t// max_upto array stores the index \r\n\t\t// upto which the maximum element is a[i] \r\n\t\t// i.e. max(a[i], a[i + 1], ... a[max_upto[i]]) = a[i] \r\n\r\n\t\tint[] max_upto = new int[n]; \r\n\r\n\t\t// Update max_upto array similar to \r\n\t\t// finding next greater element \r\n\t\tStack<Integer> s = new Stack<>(); \r\n\t\ts.push(0); \r\n\t\tfor (int i = 1; i < n; i++) \r\n\t\t{ \r\n\t\t\twhile (!s.empty() && a[s.peek()] < a[i]) \r\n\t\t\t{ \r\n\t\t\t\tmax_upto[s.peek()] = i - 1; \r\n\t\t\t\ts.pop(); \r\n\t\t\t} \r\n\t\t\ts.push(i); \r\n\t\t} \r\n\t\twhile (!s.empty()) \r\n\t\t{ \r\n\t\t\tmax_upto[s.peek()] = n - 1; \r\n\t\t\ts.pop(); \r\n\t\t} \r\n\t\tint j = 0; \r\n\t\tfor (int i = 0; i <= n - k; i++) \r\n\t\t{ \r\n\r\n\t\t\t// j < i is to check whether the \r\n\t\t\t// jth element is outside the window \r\n\t\t\twhile (j < i || max_upto[j] < i + k - 1) \r\n\t\t\t{ \r\n\t\t\t\tj++; \r\n\t\t\t} \r\n\t\t\tSystem.out.print(a[j] + \" \"); \r\n\t\t} \r\n\t\tSystem.out.println(); \r\n\t}",
"public int removeKthLargest(int k) throws Exception{\n\n\t\tif(k > this.size() || k <= 0)\n\t\t\tthrow new Exception(\"Index is out of bound...\");\n\n\t\tk = this.size() - k + 1;\n\n\t\tHeap<E> temp = new Heap<E>();\n\n\t\tfor(int i=0; i<this.size(); i++){\n\t\t\ttemp.offer(this.arr[i].getData());\n\t\t\tif(temp.size() > k){\n\t\t\t\ttemp.poll();\n\t\t\t}\n\t\t}\n\n\t\tthis.removeByValue(temp.peek());\n\n\t\treturn temp.poll();\n\n\t}",
"public static int majority3(int[] a, int k) {\n\t\tMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tint cur = a[i];\n\t\t\tif (map.containsKey(cur)) {\n\t\t\t\t// the map contains cur\n\t\t\t\tmap.put(cur, map.get(cur) + 1);\n\t\t\t} else {\n\t\t\t\t// the map doesn't contain cur\n\t\t\t\tif (map.size() == k) {\n\t\t\t\t\tIterator<Map.Entry<Integer, Integer>> iter = map.entrySet()\n\t\t\t\t\t\t\t.iterator();\n\t\t\t\t\twhile (iter.hasNext()) {\n\t\t\t\t\t\tMap.Entry<Integer, Integer> entry = iter.next();\n\t\t\t\t\t\tif (entry.getValue() - 1 == 0) {\n\t\t\t\t\t\t\titer.remove();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tmap.put(entry.getKey(), entry.getValue() - 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(cur, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint max = 0;\n\t\tint result = 0;\n\t\tfor (Map.Entry<Integer, Integer> entry : map.entrySet()) {\n\t\t\tif (entry.getValue() > max) {\n\t\t\t\tmax = entry.getValue();\n\t\t\t\tresult = entry.getKey();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public static <T> T kmax(Collection<T> coll, int k, Comparator<T> comp) {\n if ((coll == null) || (comp == null)) {\n throw new IllegalArgumentException();\n }\n if (coll.isEmpty() || k < 1 || k > coll.size()) {\n throw new NoSuchElementException();\n }\n if (coll.size() == 1 && k == 1) {\n return coll.iterator().next();\n }\n \n ArrayList<T> newArray = new ArrayList<T>(coll);\n java.util.Collections.sort(newArray, java.util.Collections.reverseOrder(comp));\n \n if (k > newArray.size() || k <= 0) {\n throw new NoSuchElementException();\n }\n \n int newCounter = 0;\n int finalCounter = 0;\n int size = newArray.size();\n \n for (int i = 0; i < newArray.size() - 1; i++) {\n while (newArray.size() > 1 && i < newArray.size() - 1\n && newArray.get(i) == newArray.get(i + 1)) {\n newArray.remove(i);\n newCounter++;\n }\n \n }\n finalCounter = size - newCounter;\n \n if ( k > finalCounter) {\n throw new NoSuchElementException();\n }\n \n \n return newArray.get(k - 1); \n \n }",
"public int findKthMaxElementHeapSort(int array[], int k) {\n\t\tbuldheap(array);\n\t\tif (k > array.length) {\n\t\t\treturn -1;\n\t\t}\n\t\tfor(int i=array.length-1;i>=0;i--) {\n\t\t\tint tmp = array[0];\n\t\t\tarray[0] = array[i];\n\t\t\tarray[i] = tmp;\n\t\t\theapify(array, 0, i);\n\t\t}\n\t\t\n\t\tint indexFromLast = (array.length-k);\n\t\treturn array[indexFromLast];\n\t}",
"private int[] getMaxNumber(int[] nums, int k) {\n if (nums.length <= k)\n return nums;\n int[] ans = new int[k];\n for (int i = 0, j = 0; i < nums.length; i++) { // j is the number of\n // elements in stack\n while (j > 0 && ans[j - 1] < nums[i] && j + nums.length - i > k) {\n j--;\n }\n if (j < k)\n ans[j++] = nums[i];\n }\n\n return ans;\n }",
"public int findKthLargest(int[] nums, int k) {\n //nums = [3,2,1,5,6,4], k = 2\n //sort [1,2,3,4,5,6]\n //and find kth element from the end (assume no repeats)\n //N-k th smallest element from the start\n //Min heap...k elements...for (n-k) elements O(k)\n //O(nlogk)\n PriorityQueue<Integer> pq = new PriorityQueue<Integer>();\n for(int i=0;i<nums.length;i++){\n pq.add(nums[i]);\n if(pq.size()>k){\n pq.poll();\n }\n }\n return pq.poll();\n }",
"public int maxResult(int[] nums, int k) {\n final int[] f = new int[nums.length];\n int lastMax = -1;\n f[0] = nums[0];\n f[1] = nums[0] + nums[1];\n for (int j = 2; j < nums.length; j++) {\n int max = Integer.MIN_VALUE;\n if (lastMax == -1 || j - lastMax > k) {\n for (int i = 1; i <= k; i++) {\n if (j - i >= 0 && max < f[j - i]) {\n max = f[j - i];\n lastMax = j - i;\n }\n }\n } else {\n for (int i = lastMax; i <= j; i++) {\n if (i >= 0 && max < f[i]) {\n max = f[i];\n lastMax = i;\n }\n }\n }\n\n f[j] = nums[j] + max;\n }\n return f[nums.length - 1];\n }",
"private int max1(int[] input, int k) {\n\tint left=0; int right=0;\n\tfor(int i=0;i<input.length;i++) {\n\tif(input[i]==0) k--;\n\n\tif(k<0) {\n\tif(input[left]==0) {\n\tk++;\n\t}\n\tleft++;\n\t}\n\tright++;\n\t}\n\n\treturn right-left;\n\t}",
"public static int kmin(int[] a, int k) throws IllegalArgumentException {\n if (ktest(a, k)) {\n throw new IllegalArgumentException();\n }\n int[] array = Arrays.copyOf(a, a.length);\n int increment = 1;\n int element;\n \n Arrays.sort(array);\n element = array[0];\n \n for (int i = 0; i < array.length; i++) {\n if (element < array[i]) {\n element = array[i];\n increment ++;\n }\n if (k == increment) {\n return element;\n }\n }\n throw new IllegalArgumentException();\n }",
"public int literalForAtMost(int k) {\n\t\tif (k < 0 || k >= n) return 0;\n\t\treturn -output[n-k-1];\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns whether the state is ambiguous or not. | boolean isAmbiguousState(int state); | [
"@Override\n public boolean isAmbiguousState(int state) {\n return (state < 0 || state >= stateCount);\n }",
"public boolean isAmbiguous() {\n return positionMap.size() > 1;\n }",
"private boolean hasUniqueState()\n {\n return (getExternalArcState() == getMiddleArcState() && getExternalArcState() == getInternalArcState() && getExternalArcState() == getCircleState());\n }",
"public boolean isAmbiguous(EntityOccurrence occurrence) {\n String text = occurrence.getDisplayText();\n return (text.indexOf(\"(\") == -1 && text.indexOf(\",\") == -1);\n }",
"protected boolean isAlgorithmState(int state) {\n return algorithmState == state;\n }",
"public boolean sameState(State s){\n\t\tint i = s.getHound1();\n\t\tint j = s.getHound2();\n\t\tint k = s.getHound3();\n\t\tint hare = s.getHare();\n\t\tif(hare==r){\n\t\t\tif((i==h1||i==h2||i==h3)&&(j==h1||j==h2||j==h3)&&(k==h1||k==h2||k==h3)){\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isStateKnown(){\n\t\treturn (state != null);\n\t}",
"public final static boolean isAmbiguous(final Calendar cal) {\r\n return isAmbiguous(getDSTChange(cal));\r\n }",
"@Override\n public boolean isConflicting() {\n if ((state.M().inTrail(-moving)) && (state.M().inTrail(-fixed))) {\n return true;\n }\n\n // Otherwise, clause is not conflicting\n return false;\n }",
"protected boolean isFieldAmbiguous(ModelContext context, String fieldName)\n {\n boolean ambiguous = false;\n \n // check whether there is a property and association definition\n // for the given field name\n if (context.getPropertyDefinitions().get(fieldName) != null &&\n context.getAssociationDefinitions().get(fieldName) != null)\n {\n ambiguous = true;\n \n if (logger.isWarnEnabled())\n logger.warn(\"\\\"\" + fieldName + \"\\\" is ambiguous, a property and an association exists with this name,\" +\n \t\t \" prefix with either \\\"prop:\\\" or \\\"assoc:\\\" to uniquely identify the field\");\n }\n \n return ambiguous;\n }",
"private static boolean isSameState(Value value, PneumaticState state) {\r\n return (value == Value.kForward && state == PneumaticState.DEPLOYED) ||\r\n (value == Value.kReverse && state == PneumaticState.STOWED);\r\n }",
"@Override\n\tpublic boolean checkState(ActorState state) {\n\t\treturn myStates.contains(state);\n\t}",
"private boolean isSimilar(ColumnState[] state) {\n\t\tif (state.length != getColumnCount() + hiddenCols.size())\n\t\t\treturn false;\n\t\ttry {\n\t\t\tfor (ColumnState colState : state) {\n\t\t\t\tif (!hiddenCols.containsKey(colState.getColId()))\n\t\t\t\t\tgetColumnIndex(colState.getColId());\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (IllegalArgumentException e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isInState(State<T> state) {\n System.out.println(this.currentState.getClass());\n return this.currentState.getClass() == state.getClass();\n }",
"public boolean isNotNullAlternateName() {\n return cacheValueIsNotNull(CacheKey.alternateName);\n }",
"private boolean statesAreEqual(State s1, State s2) {\n return (s1 == null && s2 == null)\n || s1 != null && s2 != null &&\n s1.turned_on == s2.turned_on &&\n s1.orientation == s2.orientation &&\n (s1.position == null && s2.position == null ||\n s1.position != null && s2.position != null &&\n s1.position.x == s2.position.x &&\n s1.position.y == s2.position.y);\n }",
"public boolean isGoalState(){\r\n int count = 0;\r\n for(Integer integer: getStateList()){\r\n if(integer != count) {\r\n return false;\r\n }\r\n count++;\r\n }\r\n return true;\r\n }",
"public boolean hasAccidental() {\n\tswitch (this) {\n\tcase C_SHARP:\n\tcase D_SHARP:\n\tcase F_SHARP:\n\tcase G_SHARP:\n\tcase A_SHARP:\n\t return true;\n\tcase C:\n\tcase D:\n\tcase E:\n\tcase F:\n\tcase G:\n\tcase A:\n\tcase B:\n\t return false;\n\t}\n\tthrow new IllegalArgumentException();\n }",
"public boolean isAmbiguous(EntityOccurrence occurrence) {\n Person person = (Person) occurrence.getEntity();\n int nameCount = person.getNames().size();\n \n String displayText = occurrence.getDisplayText();\n return (nameCount >= displayText.split(\"\\\\s+\").length);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use SetAppPushConfReqMsg.newBuilder() to construct. | private SetAppPushConfReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private PushDevConfReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private SetNotificationChannelReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private PushDevConfRspMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private NotifyDevConfChangedReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private FetchDevConfReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public io.confluent.developer.InterceptTest.Builder setReqMessage(java.lang.String value) {\n validate(fields()[1], value);\n this.req_message = value;\n fieldSetFlags()[1] = true;\n return this;\n }",
"private ReqPushSetting(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private NotifyDevConfSyncedReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@NonNull\n private Builder addConfigRequest(IkeConfigAttribute configReq) {\n mConfigRequestList.add(configReq);\n return this;\n }",
"private NotifyChatMessageReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder setC2GPushRequest(com.timberliu.chat.server.message.protobuf.ProtobufMessage.C2GPushRequest value) {\n if (c2GPushRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n content_ = value;\n onChanged();\n } else {\n c2GPushRequestBuilder_.setMessage(value);\n }\n contentCase_ = 20;\n return this;\n }",
"private PushConf(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ModifyPraiseReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private SpeakEventReqProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private PushSubscribeReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private NotifyMicroChatEmoticonReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private GetQrcReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"com.hwl.imcore.improto.ImAckMessageRequestOrBuilder getAckMessageRequestOrBuilder();",
"private NotifyGroupChatMessageReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a copy of the internally maintained collection of method calls that should be updated to new targets, and clears the original collection. | @NotNull
/*package*/ Map<SNode, SNode> collectMethodCallsToUpdate() {
Map<SNode, SNode> result = myMethodCallsToUpdate;
myMethodCallsToUpdate = new HashMap<SNode, SNode>();
return result;
} | [
"public abstract Collection/*<jq_Method>*/ getNewInstanceTargets(jq_Method n);",
"public Collection/*<jq_Method>*/ getTargetMethods(ProgramLocation callSite) {\n return getTargetMethods(null, callSite);\n }",
"public Iterable<MethodDescription> getProxiedMethods() {\n return new TypeWriter.SameThreadCoModifiableIterable<MethodDescription>(orderedAccessorMethods);\n }",
"public Collection getCallees(ControlFlowGraph cfg) {\n LinkedHashSet result = new LinkedHashSet();\n for (QuadIterator i = new QuadIterator(cfg); i.hasNext(); ) {\n Quad q = i.nextQuad();\n if (q.getOperator() instanceof Invoke) {\n ProgramLocation p = new ProgramLocation.QuadProgramLocation(cfg.getMethod(), q);\n result.addAll(getTargetMethods(p));\n }\n }\n return result;\n }",
"private List<Method> getTargetMethods(Class<? extends Annotation> ann) {\n List<List<Method>> list = mutableCopy(\n removeShadowed(removeOverrides(annotatedWith(allTargetMethods, ann))));\n \n // Reverse processing order to super...clazz for befores\n if (ann == Before.class || ann == BeforeClass.class) {\n Collections.reverse(list);\n }\n \n // Shuffle at class level.\n Random rnd = new Random(runnerRandomness.seed);\n for (List<Method> clazzLevel : list) {\n Collections.shuffle(clazzLevel, rnd);\n }\n \n return flatten(list);\n }",
"void refreshAll(Collection objs, OpCallbacks call);",
"public synchronized Object reify(MethodCall mc) throws InvocationTargetException {\n // System.out.println(\"A method is called : \\\"\" + mc.getName() + \"\\\" on\n // \" + this.memberList.size() + \" membres.\");\n if (Profiling.TIMERS_COMPILED) {\n TimerWarehouse\n .startXAndDisable(\n PAActiveObject.getBodyOnThis().getID(),\n ((mc.isOneWayCall() || (mc.getReifiedMethod().getReturnType() == Void.TYPE)) ? TimerWarehouse.GROUP_ONE_WAY_CALL\n : TimerWarehouse.GROUP_ASYNC_CALL));\n }\n \n ExceptionListException exceptionList = null;\n \n /* if the method called is toString, apply it to the proxy, not to the members */\n if ((\"toString\".equals(mc.getName())) && (mc.getNumberOfParameter() == 0)) {\n return this.toString();\n }\n \n /* if the method called is hashCode, apply it to the proxy, not to the members */\n if ((\"hashCode\".equals(mc.getName())) && (mc.getNumberOfParameter() == 0)) {\n return Integer.valueOf(this.hashCode());\n }\n \n if (\"equals\".equals(mc.getName()) && (mc.getNumberOfParameter() == 1)) {\n return Boolean.valueOf(this.equals(mc.getParameter(0)));\n }\n \n // there may be some reorganization of the parameters\n // redistributeParameters(mc);\n \n /*\n * result will be a stub on a proxy for group representing the group of results\n */\n Object result = null;\n \n /*\n * check if the threadpool is big enough to make the call (is there is not enough thread,\n * create new ones)\n */\n // this.threadpool.checkNumberOfThreads(this.memberList.size());\n // dispatcher.checkPoolSize(memberList.size());\n // if (doneSignal == null) {\n // doneSignal = new CountDownLatch(memberList.size());\n // }\n //\n // -- BEGIN ForgetOnSend Control --\n //\n Body sourceBody = LocalBodyStore.getInstance().getContext().getBody();\n // Check if this sending is \"legal\" regarding its sterility, otherwise raise an\n // IOException\n if (sourceBody.isSterile()) {\n // A sterile body is only authorized to send sterile requests to himself or its\n // parent\n throw new InvocationTargetException(new java.io.IOException(\"Unable to send \" + mc.getName() +\n \"(): the current service is sterile.\"), \"A sterile body cannot send request to a group.\");\n }\n \n // Retrieve the SendingQueue attached to the local body (can be null if FOS never used)\n SendingQueue sendingQueue = ((AbstractBody) sourceBody).getSendingQueue();\n \n if (sendingQueue != null) {\n // Some FOS have been declared on the local body\n \n // Retrieve the SQP attached to this proxy (and creates it if needed)\n SendingQueueProxy sqp = sendingQueue.getSendingQueueProxyFor(this);\n \n /* If we use FOS strategy to send this call, the methodcall must be sterile */\n mc.setSterility(sqp.isFosRequest(mc.getName()));\n }\n //\n // -- END ForgetOnSend Control --\n //\n \n /* if OneWay : do not construct result */\n if (mc.isOneWayCall()) {\n exceptionList = new ExceptionListException();\n this.oneWayCallOnGroup(mc, exceptionList);\n }\n /*\n * Special case : the method returns void but is Synchronous because it throws Exception\n */\n else if (mc.getReifiedMethod().getReturnType() == Void.TYPE) {\n exceptionList = new ExceptionListException();\n this.oneWayCallOnGroup(mc, exceptionList);\n }\n /*\n * if the call is asynchronous the group of result will be a group a future\n */\n else { // with group in general case : SYNC == ASYNC !!!!\n result = this.asynchronousCallOnGroup(mc);\n }\n \n /*\n * A barrier of synchronisation to ensure that all calls are done before continuing the\n * execution\n */\n // try {\n // doneSignal.await();\n // } catch (InterruptedException e) {\n // throw new InvocationTargetException(e, \"Group invocation failed due\n // to a synchronization issue\");\n // }\n if (Profiling.TIMERS_COMPILED) {\n TimerWarehouse.enableAndStopX(PAActiveObject.getBodyOnThis().getID(), ((mc.isOneWayCall() || (mc\n .getReifiedMethod().getReturnType() == Void.TYPE)) ? TimerWarehouse.GROUP_ONE_WAY_CALL\n : TimerWarehouse.GROUP_ASYNC_CALL));\n }\n \n /*\n * Early returned exceptions are assumed to be caused by a rendez-vous failure There is a\n * race condition, if an application exception comes back too early it can be taken for a\n * rendez-vous failure.\n */\n if (this.autoPurge) {\n purge(result, exceptionList);\n } else if ((exceptionList != null) && (exceptionList.size() != 0)) {\n throw exceptionList;\n }\n \n return result;\n }",
"public List<ObjectChangeSet> getRemoves();",
"public abstract Collection/*<jq_Method>*/ getTargetMethods(Object context, ProgramLocation callSite);",
"public void cleanupCalls() {\n // no base implementation\n }",
"protected void clearMethodCache() {\r\n LOG.info(\"clearing spring method cache ...\");\r\n\r\n if (cacheAdminstrators != null) {\r\n for (GeneralCacheAdministrator cache : cacheAdminstrators) {\r\n cache.flushAll();\r\n }\r\n }\r\n }",
"private void replaceMethods() {\n\t\t\tclassGen.setMethods(new Method[0]);\n\t\t\tfor (var method: methods) {\n\t\t\t\tmethod.setMaxLocals();\n\t\t\t\tmethod.setMaxStack();\n\t\t\t\tremoveUselessAttributes(method);\n\t\t\t\tif (!method.isAbstract()) {\n\t\t\t\t\tmethod.getInstructionList().setPositions();\n\t\t\t\t\tStackMapReplacer.of(method);\n\t\t\t\t}\n\t\t\t\tclassGen.addMethod(method.getMethod());\n\t\t\t}\n\t\t}",
"public ReflectedMethod[] getAllMethods() {\n Method[] methods = underlyingClass.getDeclaredMethods();\n ReflectedMethod[] methods1 = new ReflectedMethod[methods.length];\n for (int i = 0; i < methods.length; i++)\n methods1[i] = new ReflectedMethod(methods[i], this);\n return methods1;\n }",
"public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}",
"private void mapAllMethods() {\n DiffManualMappingBuilder<?> mapping = new DiffMappingFieldBuilderImpl<>(context);\n\n for (Method method : context.getOfType().getMethods()) {\n if (!method.isAnnotationPresent(DiffIgnore.class)) {\n mapping.map(method.getName());\n }\n }\n }",
"public ArrayList<Action> actionsUpdatedUrl() {\n\t\tif(updateUrlMap==null || updateUrlMap.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tArrayList<Action> result = new ArrayList<Action>();\n\t\tfor(WebInputCrawlJax inp:inputList) {\n\t\t\tfor(Action act:inp.actions()) {\n\t\t\t\tif(updateUrlMap.containsValue(act.getActionID()) &&\n\t\t\t\t\t\t!result.contains(act)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tresult.add(act.clone());\n\t\t\t\t\t} catch (CloneNotSupportedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"private Set<String> getReachableMethods() {\n\t\tSet<String> reachableMethods = new HashSet<String>();\n\t\t\n\t\tMap<String, Set<String>> referencedMethods = new HashMap<String, Set<String>>();\n\t\tFajitaReachableMethodDiscoveryVisitor reachableMethodDiscoveryVisitor =\n\t\t\tnew FajitaReachableMethodDiscoveryVisitor(getClassMethods(), referencedMethods);\n\t\tTreeWalker treeWalker = new TreeWalker(compilationUnit);\n\t\twhile (treeWalker.next())\n\t\t\ttreeWalker.getProgramElement().accept(reachableMethodDiscoveryVisitor);\n\n\t\tSet<String> remainingMethods = new HashSet<String>();\n\t\tremainingMethods.add(configuration.getMethodToCheck());\n\t\t\n\t\twhile (!remainingMethods.isEmpty()) {\n\t\t\tString method = remainingMethods.iterator().next();\n\t\t\tremainingMethods.remove(method);\n\t\t\tif (reachableMethods.add(method) && referencedMethods.containsKey(method))\n\t\t\t\tremainingMethods.addAll(referencedMethods.get(method));\n\t\t}\n\t\t\n\t\treturn reachableMethods;\n\t}",
"public Set/*jq_Method*/ calculateReachableMethods(Collection roots) {\n HashWorklist worklist = new HashWorklist(true);\n worklist.addAll(roots);\n while (!worklist.isEmpty()) {\n jq_Method m = (jq_Method) worklist.pull();\n Collection c = getCallees(m);\n worklist.addAll(c);\n }\n return worklist.getVisitedSet();\n }",
"public ImmutableSet<Target> getTargets() {\n return ImmutableSet.copyOf(targets.values());\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Recurses down a directory and its subdirectories to look for files to add to the Zip. If the current file being looked at is not a directory, the method adds it to the Zip file. | private static void recurseFiles(File file)
throws IOException, FileNotFoundException
{
if (file.isDirectory()) {
//Create an array with all of the files and subdirectories
//of the current directory.
String[] fileNames = file.list();
if (fileNames != null) {
//Recursively add each array entry to make sure that we get
//subdirectories as well as normal files in the directory.
for (int i=0; i<fileNames.length; i++){
recurseFiles(new File(file, fileNames[i]));
}
}
}
//Otherwise, a file so add it as an entry to the Zip file.
else {
byte[] buf = new byte[1024];
int len;
//Create a new Zip entry with the file's name.
ZipEntry zipEntry = new ZipEntry(file.toString());
//Create a buffered input stream out of the file
//we're trying to add into the Zip archive.
FileInputStream fin = new FileInputStream(file);
BufferedInputStream in = new BufferedInputStream(fin);
zos.putNextEntry(zipEntry);
//Read bytes from the file and write into the Zip archive.
while ((len = in.read(buf)) >= 0) {
zos.write(buf, 0, len);
}
//Close the input stream.
in.close();
//Close this entry in the Zip stream.
zos.closeEntry();
}
} | [
"private static void zipDirectory(File dir, ZipOutputStream sink, String prefix, byte[] buffer)\n throws IOException {\n File[] files = dir.listFiles();\n if (files == null)\n throw new IOException(\"file listing failed: \" + dir);\n\n // add files in the directory\n for (int i = 0; i < files.length; i++) {\n File file = files[i];\n\n if (file.isDirectory())\n zipDirectory(file, sink, prefix + WebModuleBuilder.SEPARATOR + file.getName(), buffer);\n else\n zipFile(file, sink, prefix, buffer);\n }\n }",
"public static void recurseFiles(File file, String zipPath, ZipOutputStream zos, boolean includeSubDir)\n throws IOException, FileNotFoundException\n {\n if (file.isDirectory()) {\n //Create an array with all of the files and subdirectories\n //of the current directory.\n if (includeSubDir) {\n String[] fileNames = file.list();\n if (fileNames != null) {\n //Recursively add each array entry to make sure that we get \n //subdirectories as well as normal files in the directory.\n for (int i=0; i<fileNames.length; i++) {\n recurseFiles(new File(file, fileNames[i]), zipPath, zos, includeSubDir);\n }\n }\n }\n }\n //Otherwise, a file so add it as an entry to the Zip file.\n else {\n byte[] buf = new byte[1024];\n int len;\n\n //Create a new Zip entry with the file's name.\n String filePath = file.toString();\n int index = -1;\n \n if ((index = filePath.indexOf(zipPath, index)) == 0) {\n filePath = filePath.substring(index + zipPath.length() + 1);\n }\n \n// ZipEntry zipEntry = new ZipEntry(filePath);\n ZipEntry zipEntry = new ZipEntry(filePath.replace(File.separatorChar,'/'));\n\n //Create a buffered input stream out of the file\n //we're trying to add into the Zip archive.\n FileInputStream fin = new FileInputStream(file);\n BufferedInputStream in = new BufferedInputStream(fin);\n zos.putNextEntry(zipEntry);\n\n //Read bytes from the file and write into the Zip archive.\n while ((len = in.read(buf)) >= 0) {\n zos.write(buf, 0, len);\n }\n //Close the input stream.\n in.close();\n //Close this entry in the Zip stream.\n zos.closeEntry();\n }\n }",
"private void addDirContents( ZipOutputStream output, File dir, String prefix, boolean compress ) throws IOException {\n String[] contents = dir .list();\n for ( int i = 0; i < contents .length; ++i ) {\n String name = contents[i];\n File file = new File( dir, name );\n if ( file .isDirectory() ) {\n addDirContents( output, file, prefix + name + '/', compress );\n }\n else {\n addFile( output, file, prefix, compress );\n }\n }\n }",
"private static void zip(File directory, File zipfile) throws IOException {\n\n URI base = directory.toURI();\n Deque<File> queue = new LinkedList<File>();\n queue.push(directory);\n OutputStream out = new FileOutputStream(zipfile);\n Closeable res = out;\n\n try {\n ZipOutputStream zout = new ZipOutputStream(out);\n res = zout;\n while (!queue.isEmpty()) {\n directory = queue.pop();\n for (File kid : directory.listFiles()) {\n String name = base.relativize(kid.toURI()).getPath();\n if (kid.isDirectory()) {\n queue.push(kid);\n name = name.endsWith(\"/\") ? name : name + \"/\";\n zout.putNextEntry(new ZipEntry(name));\n }\n else {\n if(kid.getName().contains(\".docx\"))\n continue;\n zout.putNextEntry(new ZipEntry(name));\n copy(kid, zout);\n zout.closeEntry();\n }\n }\n }\n }\n finally {\n res.close();\n }\n }",
"private void compressTree(ZipOutputStream zos, String path, File basedir, File dir) throws IOException {\n\t\tif (!dir.isDirectory())\n\t\t\treturn;\n\n\t\tfor (File f : dir.listFiles()) {\n\t\t\tif (f.isDirectory()) {\n\t\t\t\tString newpath = path + f.getName() + \"/\";\n\t\t\t\tZipEntry entry = new ZipEntry(newpath);\n\t\t\t\tzos.putNextEntry(entry);\n\t\t\t\tzos.closeEntry();\n\t\t\t\tcompressTree(zos, newpath, basedir, f);\n\t\t\t} else {\n\t\t\t\tZipEntry ze = new ZipEntry(\n\t\t\t\t\t\tf.getAbsolutePath().substring(basedir.getAbsolutePath().length() + 1).replaceAll(\"\\\\\\\\\", \"/\"));\n\t\t\t\tzos.putNextEntry(ze);\n\t\t\t\t// read the file and write to ZipOutputStream\n\t\t\t\tFileInputStream fis = new FileInputStream(f);\n\t\t\t\tbyte[] buffer = new byte[1024];\n\t\t\t\tint len;\n\t\t\t\twhile ((len = fis.read(buffer)) > 0) {\n\t\t\t\t\tzos.write(buffer, 0, len);\n\t\t\t\t}\n\t\t\t\tzos.closeEntry();\n\t\t\t\tfis.close();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected void handleDirectoryEnd(final File directory, final int depth, final Collection<File> results) {\n results.add(directory);\n }",
"private void addFilesToExistingZip(File zipFile, String[] dirs, File[] files) throws IOException {\n File tempFile = new File(zipFile.getAbsoluteFile() + \".temp\");\n if (tempFile.exists()) tempFile.delete();\n boolean renameOk = zipFile.renameTo(tempFile);\n if (!renameOk) {\n throw new RuntimeException(\"Could not rename the file \" + zipFile.getAbsolutePath() + \" to \" + tempFile.getAbsolutePath());\n }\n ZipInputStream zin = new ZipInputStream(new FileInputStream(tempFile));\n ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFile));\n ZipEntry entry = zin.getNextEntry();\n byte[] buf = new byte[1024];\n while (entry != null) {\n String entryName = entry.getName();\n boolean inFiles = false;\n for (int i = 0; i < files.length; i++) {\n String fileName = dirs[i] + \"/\" + files[i].getName();\n if (fileName.equals(entryName)) {\n inFiles = true;\n break;\n }\n }\n if (!inFiles) {\n out.putNextEntry(new ZipEntry(entryName));\n int len;\n while ((len = zin.read(buf)) > 0) out.write(buf, 0, len);\n }\n entry = zin.getNextEntry();\n }\n zin.close();\n for (int i = 0; i < files.length; i++) {\n InputStream in = new FileInputStream(files[i]);\n out.putNextEntry(new ZipEntry(dirs[i] + \"/\" + files[i].getName()));\n int len;\n while ((len = in.read(buf)) > 0) out.write(buf, 0, len);\n out.closeEntry();\n in.close();\n }\n out.close();\n tempFile.delete();\n }",
"private DirNode load(ErrorHandler handler) throws IOException {\n DirTree zipTree = new DirTree( (new File(zipFileName)).getName() );\n \n try ( ZipFile zip = new ZipFile(zipFileName) ) {\n\n java.util.Enumeration <? extends ZipEntry> entries = zip.entries(); \n while (entries.hasMoreElements()) {\n ZipEntry ze = entries.nextElement();\n String path = ze.getName();\n // strip leading slash\n if (path.length() > 0 && path.charAt(0) == '/' ) {\n path = path.substring(1);\n } \n \n DirTree currTree = zipTree; // current directory starts at top\n while (path.length() > 0) {\n int iNextSlash = path.indexOf('/');\n if ( iNextSlash < 0 ) {\n // note that directories should end with /. so this is not a directory\n // add FileNode to current directory\n ZipFileNode fileNode = new ZipFileNode(ze);\n if ( currTree.haveLeafWithName(fileNode.getName())) {\n // ZipFile seems to lookup zip entries by name, it is not clear\n // which copy will be used if there are duplicates\n ZipException e = new ZipException(\n MessageFormat.format(\n Messages.getString(\"ZipTreeBuilder.duplicate_name_in_zip\"),\n zipFileName,\n ze.getName()\n )\n );\n if ( ! handler.handleError(e) ) {\n throw e;\n }\n } else { \n currTree.addLeaf(fileNode);\n }\n break;\n }\n else if ( iNextSlash == 0 ) {\n break; // trailing slash of directory zip entry. nothing more to do \n } else {\n // use slash separated dir component to shift currTree into dir for path component \n String dir = path.substring(0, iNextSlash); \n currTree = currTree.addChild(dir);\n path = path.substring(iNextSlash+1);\n }\n }\n }\n }\n // next step is to convert the dirTree into dirNodes\n DirNode dirNode = dirTree2DirNode(zipTree);\n dirNode.setRoot(zipFileName);\n return dirNode;\n }",
"public void addDirectories( File base ) {\n if( base.isDirectory() ) {\n repository.add( base );\n File[] files = base.listFiles();\n\n for( int i = 0; i < files.length; i++ ) {\n addDirectories( files[i] );\n }\n }\n }",
"private void gatherDirectoryFiles(String dirFullPath, DependencyOrigin origin) {\n File dir = new File(dirFullPath);\n \n /*\n if (!dir.exists()) {\n try {\n String failsafe = Class.forName(fileClasses.get(0).className).getProtectionDomain().getCodeSource().getLocation().toString();\n dir = new File(failsafe);\n } catch (ClassNotFoundException x) { }\n }\n */\n if (dir.isDirectory()) {\n for (String fileName : dir.list()) {\n try {\n if (fileName.endsWith(\".java\")) {\n //addPath(dirPath + '/' + fileName, origin);\n addPath((new File(dir, fileName)).getCanonicalPath(), origin);\n } /* else if (origin != DependencyOrigin.CURRENTDIRECTORY && // AK 12/18/10 8:00 don't recurse directories\n !fileName.contains(\".\")) { // support for recursively calling subdirectories\n try {\n fileName = fileName.replaceAll(\"\\\\s\", \"\\\\ \"); // escape all spaces so we don't make a bunch of new directories\n File subDir = new File(dir, fileName);\n if (subDir.isDirectory()) {\n gatherDirectoryFiles(subDir.getCanonicalPath(), origin);\n }\n } catch (NullPointerException e) {\n }\n } */\n } catch (IOException i) { }\n }\n }\n }",
"private static void replaceInAllFiles(File dir) throws IOException\r\n {\r\n if (dir.isDirectory())\r\n {\r\n IOFileFilter fileFilter = FileFilterUtils.trueFileFilter();\r\n IOFileFilter notTargetFileFilter = FileFilterUtils.notFileFilter(FileFilterUtils.nameFileFilter(\"target\"));\r\n IOFileFilter dirFilter = FileFilterUtils.and(FileFilterUtils.makeSVNAware(null), notTargetFileFilter);\r\n Collection<File> files = FileUtils.listFiles(dir, fileFilter, dirFilter);\r\n for (File file : files)\r\n {\r\n if (file.isFile())\r\n {\r\n boolean process = false;\r\n // Check files against extensions filter\r\n for (String ext : extensions)\r\n {\r\n if (file.getName().endsWith(\".\" + ext))\r\n {\r\n process = true;\r\n break;\r\n }\r\n }\r\n if (process)\r\n {\r\n // do the replacements\r\n // for .zip files, unzip, replace, and put back in archive\r\n if (file.getName().endsWith(\".zip\"))\r\n {\r\n replaceInArchive(file);\r\n }\r\n else\r\n {\r\n replaceInFile(file);\r\n }\r\n }\r\n }\r\n \r\n // recursively call on subdirectories\r\n else if (file.isDirectory())\r\n {\r\n replaceInAllFiles(file);\r\n }\r\n }\r\n }\r\n if (dir.isFile())\r\n {\r\n if (dir.getName().endsWith(\".zip\"))\r\n {\r\n replaceInArchive(dir);\r\n }\r\n else\r\n {\r\n replaceInFile(dir);\r\n }\r\n }\r\n }",
"private static void zipFolder(ZipOutputStream out, File folder) throws IOException {\n\n final int BUFFER = 2048;\n\n File[] fileList = folder.listFiles();\n BufferedInputStream origin;\n\n for (File file : fileList) {\n if (file.isDirectory()) {\n zipFolder(out, file);\n } else {\n byte data[] = new byte[BUFFER];\n\n String unmodifiedFilePath = file.getPath();\n FileInputStream fi = new FileInputStream(unmodifiedFilePath);\n\n origin = new BufferedInputStream(fi, BUFFER);\n ZipEntry entry = new ZipEntry(file.getName());\n\n out.putNextEntry(entry);\n\n int count;\n while ((count = origin.read(data, 0, BUFFER)) != -1) {\n out.write(data, 0, count);\n }\n\n out.closeEntry();\n origin.close();\n }\n }\n\n // Finish the zip stream and close it\n out.finish();\n out.close();\n }",
"private void grabFilesAndDirs(String file, List<String> dirs, List<String> files) throws IOException {\n File zipFile = new File(file);\n if (!zipFile.exists()) {\n getLogger().error(\"JarArchive skipping non-existing file: \" + zipFile.getAbsolutePath());\n } else if (zipFile.isDirectory()) {\n getLogger().info(\"JarArchiver skipping indexJar \" + zipFile + \" because it is not a jar\");\n } else {\n try (ZipFile zf = new ZipFile(file, \"utf-8\")) {\n Enumeration<ZipArchiveEntry> entries = zf.getEntries();\n HashSet<String> dirSet = new HashSet<>();\n while (entries.hasMoreElements()) {\n ZipArchiveEntry ze = entries.nextElement();\n String name = ze.getName();\n // avoid index for manifest-only jars.\n if (!name.equals(META_INF_NAME)\n && !name.equals(META_INF_NAME + '/')\n && !name.equals(INDEX_NAME)\n && !name.equals(MANIFEST_NAME)) {\n if (ze.isDirectory()) {\n dirSet.add(name);\n } else if (!name.contains(\"/\")) {\n files.add(name);\n } else {\n // a file, not in the root\n // since the jar may be one without directory\n // entries, add the parent dir of this file as\n // well.\n dirSet.add(name.substring(0, name.lastIndexOf(\"/\") + 1));\n }\n }\n }\n dirs.addAll(dirSet);\n }\n }\n }",
"public void zipFolder() {\n File sourcePath = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DOCUMENTS + SOURCE_DIR_FOLDER);\n File targetPath = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DOCUMENTS + ZIP_DIR_FOLDER);\n if(!targetPath.exists()){\n targetPath.mkdirs();\n }\n ArrayList<File> fileList = new ArrayList();\n getAndZipFiles(sourcePath, fileList);\n writeZipFile(sourcePath, fileList, targetPath);\n Log.e(\"Zipping\", \"Zipping folder \");\n }",
"private static void createFiles(String destDirectory, ZipInputStream zipIn, ZipEntry entry, boolean recursive) throws IOException {\n\n String filePath = destDirectory + File.separator + entry.getName();\n\n if (!entry.isDirectory()) {\n\n boolean isZipFile = filePath.endsWith(\".zip\");\n boolean isJavaFile = filePath.endsWith(\".java\");\n\n if (isZipFile || isJavaFile) {\n\n writeFile(zipIn, filePath);\n\n if (recursive) {\n File file = new File(filePath);\n\n String parts[] = entry.getName().split(\"/\");\n String studentName;\n\n if (parts.length > 1) {\n studentName = parts[1].split(\"_\")[0];\n } else {\n studentName = entry.getName().split(\"_\")[0];\n }\n\n String studentDir = file.getParentFile().getAbsolutePath() + \"/\" + studentName;\n File dir = new File(studentDir);\n dir.mkdir();\n\n students.add(new Student(studentName, studentDir));\n\n unzip(filePath, studentDir, false, false);\n }\n }\n\n } else {\n File dir = new File(filePath);\n dir.mkdir();\n }\n }",
"private void zipSubFolder(ZipOutputStream out, File folder,\n int basePathLength) throws IOException {\n\n final int BUFFER = 2048;\n\n File[] fileList = folder.listFiles();\n BufferedInputStream origin = null;\n for (File file : fileList) {\n if (file.isDirectory()) {\n zipSubFolder(out, file, basePathLength);\n } else {\n byte data[] = new byte[BUFFER];\n String unmodifiedFilePath = file.getPath();\n String relativePath = unmodifiedFilePath\n .substring(basePathLength);\n FileInputStream fi = new FileInputStream(unmodifiedFilePath);\n origin = new BufferedInputStream(fi, BUFFER);\n ZipEntry entry = new ZipEntry(relativePath);\n entry.setTime(file.lastModified()); // to keep modification time after unzipping\n out.putNextEntry(entry);\n int count;\n while ((count = origin.read(data, 0, BUFFER)) != -1) {\n out.write(data, 0, count);\n }\n origin.close();\n }\n }\n }",
"public static void makeZip(String fileName)\r\n throws IOException, FileNotFoundException\r\n {\r\n File file = new File(fileName);\r\n zos = new ZipOutputStream(new FileOutputStream(file + \".zip\"));\r\n //Call recursion.\r\n\r\n\r\nrecurseFiles(file);\r\n //We are done adding entries to the zip archive,\r\n\r\n\r\n//so close the Zip output stream.\r\n\r\n\r\nzos.close();\r\n }",
"private static void zipSubFolder(ZipOutputStream out, File folder, int basePathLength) throws IOException {\n final int BUFFER = 2048;\n File[] fileList = folder.listFiles();\n BufferedInputStream origin;\n for (File file : fileList) {\n if (file.isDirectory()) {\n zipSubFolder(out, file, basePathLength);\n } else {\n byte data[] = new byte[BUFFER];\n String unmodifiedFilePath = file.getPath();\n String relativePath = unmodifiedFilePath\n .substring(basePathLength);\n FileInputStream fi = new FileInputStream(unmodifiedFilePath);\n origin = new BufferedInputStream(fi, BUFFER);\n ZipEntry entry = new ZipEntry(relativePath);\n out.putNextEntry(entry);\n int count;\n while ((count = origin.read(data, 0, BUFFER)) != -1) {\n out.write(data, 0, count);\n }\n origin.close();\n }\n }\n }",
"public void addDirectory(File directory, File baseDirectory) {\r\n final PharDirectory entry = new PharDirectory();\r\n entry.setDirectory(directory);\r\n entry.setBaseDirectory(baseDirectory);\r\n this.entries.add(entry);\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this.eventService .orderEvent(eventOrderBindingModel.getEventId(), principal.getName(), eventOrderBindingModel.getTickets()); | @PostMapping("/order")
public ModelAndView order(@ModelAttribute EventOrderBindingModel eventOrderBindingModel, Principal principal, ModelAndView modelAndView) {
Map<String, Object> jmsArguments = new HashMap<>() {{
put("tickets", eventOrderBindingModel.getTickets());
put("eventId", eventOrderBindingModel.getEventId());
put("username", principal.getName());
}};
jmsTemplate.setDefaultDestinationName("order-event-listener");
jmsTemplate.convertAndSend(jmsArguments);
return this.redirect("all");
} | [
"void onEvent(ContractEventDetails eventDetails);",
"@Override\n\tpublic void executeOrder(Event event) {\n\t\t\n\t\tif(event.getType() != \"ORDER\")\n\t\t\treturn;\n\t\tOrderEvent orderEvent = (OrderEvent) event;\n\t\tFillEvent fillEvent = new FillEvent(new Date().getTime(), orderEvent.getSymbol(), \"ARCA\", orderEvent.getQuantity(), orderEvent.getDirection(), new BigDecimal(\"0\"), null);\n\t\tmessageBus.publishEvent(fillEvent);\n\t}",
"void handleOrder();",
"List<Ticket> getPurchasedTicketsForEvent(Event event, LocalDateTime dateTime);",
"public void consultHistoricOrder(ActionEvent e) {\n router.activate(\"HistoricOrder\");\n }",
"DispatchOutcome dispatchEvent(EventEnvelope event);",
"TrackingOrderDetails trackingOrderDetails(String username, int order_id, String role);",
"public interface EventManagementServiceImplOperations \n{\n String login (String userName);\n String addEvent (String eventID, String eventType, int bookingCapacity);\n String removeEvent (String eventID, String eventType);\n String listEventAvailability (String eventType);\n String bookEvent (String customerID, String eventID, String eventType);\n String getBookingSchedule (String customerID);\n String cancelEvent (String customerID, String eventID, String eventType);\n String swapEvent (String customerID, String eventID, String eventType, String oldEventID, String oldEventType);\n void shutdown ();\n}",
"@Bean\n public DirectExchange orderExchange(){\n return new DirectExchange(orderExchange);\n }",
"@Virtual(59) \n\tpublic native void OnRtnOrder(Pointer<CThostFtdcOrderField > pOrder);",
"public static String createCalEvent(HttpServletRequest request, HttpServletResponse response) {\r\n Delegator delegator = (Delegator) request.getAttribute(\"delegator\");\r\n LocalDispatcher dispatcher = (LocalDispatcher) request.getAttribute(\"dispatcher\");\r\n Map<String,Object> params = UtilHttp.getParameterMap(request);\r\n String returnValue = ModelService.RESPOND_SUCCESS;\r\n Map<String, Object> result = null;\r\n Map<String, Object> context = new HashMap<String,Object>();\r\n \ttry {\r\n \t\tcontext.put(\"partyId\", params.get(\"partyId\"));\r\n \t\tcontext.put(\"roleTypeId\", \"CAL_OWNER\");\r\n \t\tcontext.put(\"statusId\", \"PRTYASGN_ASSIGNED\");\r\n \t\tcontext.put(\"workEffortName\", params.get(\"workEffortName\"));\r\n \t\tcontext.put(\"description\", params.get(\"description\"));\r\n \t\tcontext.put(\"currentStatusId\", params.get(\"currentStatusId\"));\r\n \t\tcontext.put(\"scopeEnumId\", params.get(\"scopeEnumId\"));\r\n \t\tcontext.put(\"estimatedStartDate\", params.get(\"estimatedStartDate\"));\r\n \t\tcontext.put(\"estimatedCompletionDate\", params.get(\"estimatedCompletionDate\"));\r\n \t\tcontext.put(\"workEffortTypeId\", params.get(\"workEffortTypeId\"));\r\n// \t\tGenericValue userLogin = delegator.findOne(\"UserLogin\", UtilMisc.toMap(\"userLoginId\", \"system\"), true);\r\n \t\tGenericValue userLogin = (GenericValue) request.getSession().getAttribute(\"userLogin\");\r\n \t\tcontext.put(\"userLogin\", userLogin);\r\n \t\t\r\n \t\t//call create work effort service\r\n\t\t\t\tresult = dispatcher.runSync(\"createWorkEffortAndPartyAssign\", context);\r\n\t\t\t\tcontext.clear();\r\n\t\t\t\tString workEffortId =null;\r\n\t\t\t\tworkEffortId=(String) result.get(\"workEffortId\");\r\n\t\t\t\t\r\n\t\t\t\t//call service for create Content\r\n\t\t\t\tif(workEffortId!=null)\r\n\t \t{\r\n\t \t\tcontext.put(\"contentId\", workEffortId);\r\n\t \t\tcontext.put(\"dataResourceId\", workEffortId);\r\n\t \t\tcontext.put(\"userLogin\", userLogin);\r\n\t \t\t//call service for create DataResource\r\n\t \t\tresult = dispatcher.runSync(\"createDataResource\", context);\r\n\t \t\tif(result.get(\"dataResourceId\")!=null)\r\n\t \t\t{\t\r\n\t \t\t\tcontext.put(\"ownerContentId\", \"TI_EVENT\");\r\n\t \t\t\t//call service for create content\r\n\t \t\t\tresult = dispatcher.runSync(\"createContent\", context);\r\n\t \t\t\tString contentId= (String) result.get(\"contentId\");\r\n\t \t\t\tif(contentId!=null)\r\n\t \t\t\t{\r\n\t \t\t\t\tcontext.put(\"textData\", params.get(\"textData\"));\r\n\t \t\t\t\t//call service for create Electronic text\r\n\t \t\t\t\tresult = dispatcher.runSync(\"createElectronicText\", context);\r\n\t \t\t\t\tif(result.get(\"dataResourceId\")!=null)\r\n\t \t\t\t\t{\r\n\t \t\t\t\t\tcontext.clear();\r\n\t \t\t\t\t\tcontext.put(\"workEffortId\", workEffortId);\r\n\t \t\t\t\t\tcontext.put(\"contentId\", contentId);\r\n\t \t\t\t\t\tcontext.put(\"workEffortContentTypeId\", \"TI_EVENT_TEXT\");\r\n\t \t\t\t\t\tcontext.put(\"fromDate\",new Timestamp(System.currentTimeMillis()));\r\n\t \t\t\t\t\tcontext.put(\"thruDate\",new Timestamp(System.currentTimeMillis()));\r\n\t \t\t\t\t\t//service for associate content to workeffort \r\n\t \t\t\t\t\tGenericValue workEffortContent= delegator.create(\"WorkEffortContent\", context);\r\n\t \t\t\t\t}\t \t\t\t\t\r\n\t \t\t\t}\r\n\t \t\t}\r\n\t \t\t\r\n\t \t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t\r\n \r\n if(UtilValidate.isNotEmpty(result)){\r\n\t if (!result.containsKey(ModelService.RESPONSE_MESSAGE)) {\r\n\t \treturnValue = ModelService.RESPOND_SUCCESS;\r\n\t } else {\r\n\t \treturnValue = (String) result.get(ModelService.RESPONSE_MESSAGE);\r\n\t }\r\n }\r\n request.setAttribute(\"responseMessage\", \"Event created..\");\r\n return returnValue;\r\n }",
"void bookTicket(Ticket ticket);",
"public interface IIncludedOpenTicket {\r\n\t\r\n\t/**\r\n\t * Gets the departure date.\r\n\t *\r\n\t * @return the departure date\r\n\t */\r\n\tpublic Date getDepartureDate();\r\n\r\n\t/**\r\n\t * Sets the departure date.\r\n\t *\r\n\t * @param departureDate the new departure date\r\n\t */\r\n\tpublic void setDepartureDate(Date departureDate);\r\n\r\n\t/**\r\n\t * Gets the arrival date.\r\n\t *\r\n\t * @return the arrival date\r\n\t */\r\n\tpublic Date getArrivalDate() ;\r\n\r\n\t/**\r\n\t * Sets the arrival date.\r\n\t *\r\n\t * @param arrivalDate the new arrival date\r\n\t */\r\n\tpublic void setArrivalDate(Date arrivalDate);\r\n\r\n\r\n\t/**\r\n\t * Gets the product id.\r\n\t *\r\n\t * @return the product id\r\n\t */\r\n\tpublic String getProductId() ;\r\n\r\n\t/**\r\n\t * Sets the product id.\r\n\t *\r\n\t * @param productId the new product id\r\n\t */\r\n\tpublic void setProductId(String productId) ;\r\n\r\n\t/**\r\n\t * Gets the product owner.\r\n\t *\r\n\t * @return the product owner\r\n\t */\r\n\tpublic String getProductOwner();\r\n\r\n\t/**\r\n\t * Sets the product owner.\r\n\t *\r\n\t * @param productOwner the new product owner\r\n\t */\r\n\tpublic void setProductOwner(String productOwner);\r\n\r\n\t/**\r\n\t * Gets the external issuer.\r\n\t *\r\n\t * @return the external issuer\r\n\t */\r\n\tpublic int getExternalIssuer();\r\n\t\r\n\t/**\r\n\t * Sets the external issuer.\r\n\t *\r\n\t * Identification of the issuer provided by an external carrier\r\n\t * \r\n\t * @param externalIssuer the new external issuer\r\n\t */\r\n\tpublic void setExternalIssuer(int externalIssuer);\r\n\t\r\n\t/**\r\n\t * Gets the authorization code.\r\n\t *\r\n\t * Authorization code given by a carrier to the product owner to allow the sale\r\n\t *\r\n\t * @return the authorization code\r\n\t */\r\n\tpublic int getAuthorizationCode();\r\n\t\r\n\t/**\r\n\t * Sets the authorization code.\r\n\t *\r\n\t * An authorization code given by a carrier to the product owner to allow the sale\t \r\n\t *\r\n\t * @param authorizationCode the new authorization code\r\n\t */\r\n\tpublic void setAuthorizationCode(int authorizationCode);\r\n\r\n\t/**\r\n\t * Gets the station code table.\r\n\t *\r\n\t * Defines the station code table to be used to retrieve station information. \r\n\t * Default in this case is the UIC station codes table for standard UIC \r\n\t * station code from MERITS (UIC country code + 5 digit local code) \r\n\t * \r\n\t * @return the station code table\r\n\t */\r\n\tpublic IStationCodeTable getStationCodeTable();\r\n\r\n\t/**\r\n\t * Sets the station code table.\r\n\t *\r\n\t * Defines the station code table to be used to retrieve station information. \r\n\t * Default in this case is the UIC station codes table for standard UIC \r\n\t * station code from MERITS (UIC country code + 5 digit local code) \r\n\t * \t\r\n\t * @param stationCodeTable the new station code table\r\n\t */\r\n\tpublic void setStationCodeTable(IStationCodeTable stationCodeTable);\r\n\r\n\t/**\r\n\t * Gets the from station code.\r\n\t *\r\n\t * @return the from station code\r\n\t */\r\n\tpublic String getFromStation();\r\n\r\n\t/**\r\n\t * Sets the from station code.\r\n\t *\r\n\t * @param fromStation the new from station code\r\n\t */\r\n\tpublic void setFromStation(String fromStation);\r\n\r\n\t/**\r\n\t * Gets the to station code.\r\n\t *\r\n\t * @return the to station code\r\n\t */\r\n\tpublic String getToStation();\r\n\r\n\t/**\r\n\t * Sets the to station code.\r\n\t *\r\n\t * @param toStation the new to station code\r\n\t */\r\n\tpublic void setToStation(String toStation);\r\n\r\n\t/**\r\n\t * Gets the from station name.\r\n\t *\r\n\t * @return the from station name\r\n\t */\r\n\tpublic String getFromStationName();\r\n\r\n\t/**\r\n\t * Sets the from station name.\r\n\t *\r\n\t * @param fromStationName the new from station name\r\n\t */\r\n\tpublic void setFromStationName(String fromStationName);\r\n\r\n\t/**\r\n\t * Gets the to station name.\r\n\t *\r\n\t * @return the to station name\r\n\t */\r\n\tpublic String getToStationName();\r\n\r\n\t/**\r\n\t * Sets the to station name.\r\n\t *\r\n\t * @param toStationName the new to station name\r\n\t */\r\n\tpublic void setToStationName(String toStationName);\r\n\r\n\t/**\r\n\t * Gets the valid region description.\r\n\t *\r\n\t * @return the valid region desc\r\n\t */\r\n\tpublic String getValidRegionDesc();\r\n\r\n\t/**\r\n\t * Sets the valid region description.\r\n\t *\r\n\t * @param validRegionDesc the new valid region description\r\n\t */\r\n\tpublic void setValidRegionDesc(String validRegionDesc);\r\n\r\n\t/**\r\n\t * Gets the list of valid regions.\r\n\t *\r\n\t * @return the list of valid regions\r\n\t */\r\n\tpublic Collection<IRegionalValidity> getValidRegionList();\r\n\r\n\t/**\r\n\t * Adds a valid region.\r\n\t *\r\n\t * @param validRegion the valid region\r\n\t */\r\n\tpublic void addValidRegionList(IRegionalValidity validRegion);\r\n\r\n\t/**\r\n\t * Gets the valid from date and time.\r\n\t *\r\n\t * @return the valid from date and time.\r\n\t */\r\n\tpublic Date getValidFrom();\r\n\r\n\t/**\r\n\t * Sets the valid from date and time.\r\n\t *\r\n\t * @param validFrom the new valid from date and time.\r\n\t */\r\n\tpublic void setValidFrom(Date validFrom);\r\n\r\n\t/**\r\n\t * Gets the valid until date and time.\r\n\t *\r\n\t * @return the valid until date and time.\r\n\t */\r\n\tpublic Date getValidUntil();\r\n\r\n\t/**\r\n\t * Sets the valid until date and time.\r\n\t *\r\n\t * @param validUntil the new valid until date and time.\r\n\t */\r\n\tpublic void setValidUntil(Date validUntil);\r\n\r\n\t/**\r\n\t * Gets the travel class code.\r\n\t *\r\n\t * @return the travel class code\r\n\t */\r\n\tpublic ITravelClassType getClassCode();\r\n\r\n\t/**\r\n\t * Sets the travel class code.\r\n\t *\r\n\t * @param classCode the new travel class code\r\n\t */\r\n\tpublic void setClassCode(ITravelClassType classCode);\r\n\r\n\t/**\r\n\t * Gets the carriers included in the transport contract.\r\n\t *\r\n\t * @return the included carriers\r\n\t */\r\n\tpublic Collection<String> getIncludedCarriers();\r\n\r\n\t/**\r\n\t * Adds the included carrier.\r\n\t *\r\n\t * @param includedCarrier the included carrier\r\n\t */\r\n\tpublic void addIncludedCarrier(String includedCarrier);\r\n\r\n\t/**\r\n\t * Gets the included service brands on which the ticket is valid\r\n\t *\r\n\t * The list should be omitted in case all service brands are \r\n\t * included or a list of excluded service brands is provided.\r\n\t *\r\n\t * @return the included service brands\r\n\t */\r\n\tpublic Collection<Integer> getIncludedServiceBrands();\r\n\r\n\t/**\r\n\t * Adds an included service brand.\r\n\t *\r\n\t * The list should be omitted in case all service brands are \r\n\t * included or a list of excluded service brands is provided.\r\n\t * \r\n\t * @param includedServiceBrand the included service brand\r\n\t */\r\n\tpublic void addIncludedServiceBrand(Integer includedServiceBrand);\r\n\r\n\t/**\r\n\t * Gets the list of excluded service brands.\r\n\t *\r\n\t * The list should be omitted in case a complete \r\n\t * list of included service brands is provided.\t \r\n\t *\r\n\t * @return the list of excluded service brands\r\n\t */\r\n\tpublic Collection<Integer> getExcludedServiceBrands();\r\n\r\n\t/**\r\n\t * Adds an excluded service brand.\r\n\t *\r\n\t * The list should be omitted in case a complete \r\n\t * list of included service brands is provided.\t \r\n\t * \r\n\t * @param excludedServiceBrand the excluded service brand\r\n\t */\r\n\tpublic void addExcludedServiceBrand(Integer excludedServiceBrand);\r\n\t\r\n\t\r\n\t/**\r\n\t * Gets the list of excluded Transport Types.\r\n\t *\r\n\t * The list should be omitted in case a complete \r\n\t * list of included transport types is provided.\t \r\n\t *\r\n\t * @return the list of excluded transport types\r\n\t */\r\n\tpublic Collection<Integer> getExcludedTransportTypes();\r\n\r\n\t/**\r\n\t * Adds an excluded service brand.\r\n\t *\r\n\t * The list should be omitted in case a complete \r\n\t * list of included TransportTypes is provided.\t \r\n\t * \r\n\t * @param excluded TransportType the excluded TransportTypes\r\n\t */\r\n\tpublic void addExcludedTransportType(Integer excludedTransportType);\r\n\r\n\r\n\t/**\r\n\t * Gets the list of excluded Transport Types.\r\n\t *\r\n\t * The list should be omitted in case a complete \r\n\t * list of included transport types is provided.\t \r\n\t *\r\n\t * @return the list of included transport types\r\n\t */\r\n\tpublic Collection<Integer> getIncludedTransportTypes();\r\n\r\n\t/**\r\n\t * Adds an excluded service brand.\r\n\t *\r\n\t * The list should be omitted in case a complete \r\n\t * list of included TransportTypes is provided.\t \r\n\t * \r\n\t * @param excluded TransportType the excluded TransportTypes\r\n\t */\r\n\tpublic void addInludedTransportType(Integer includedTransportType);\r\n\r\n\t/**\r\n\t * Gets the tariffs.\r\n\t *\r\n\t * @return the tariffs\r\n\t */\r\n\tpublic Collection<ITariff> getTariffs();\r\n\t\r\n\t/**\r\n\t * Adds the tariff.\r\n\t *\r\n\t * @param tariff the tariff\r\n\t */\r\n\tpublic void addTariff(ITariff tariff);\r\n\r\n\t/**\r\n\t * Gets the info text.\r\n\t *\r\n\t * @return the info text\r\n\t */\r\n\tpublic String getInfoText();\r\n\r\n\t/**\r\n\t * Sets the info text.\r\n\t *\r\n\t * @param infoText the new info text\r\n\t */\r\n\tpublic void setInfoText(String infoText);\r\n\r\n\t/**\r\n\t * Gets the extension.\r\n\t *\r\n\t * @return the extension\r\n\t */\r\n\tpublic IExtension getExtension() ;\r\n\r\n\t/**\r\n\t * Sets the extension.\r\n\t *\r\n\t * @param extension the new extension\r\n\t */\r\n\tpublic void setExtension(IExtension extension);\r\n\t\r\n\t\r\n\t/**\r\n\t * Sets the until date and time.\r\n\t *\r\n\t * @param date the new until date and time\r\n\t */\r\n\tpublic void setUntilDate(Date date);\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Gets the validFrom date time offset to UTC in units of 15 minutes.\r\n\t *\r\n\t * @return the validFrom date time UTC offset\r\n\t */\r\n\tpublic Long getValidFromUTCoffset();\r\n\t\r\n\t/**\r\n\t * Sets the validFrom date time.\r\n\t *\r\n\t * @param validFromDateTime the new validFrom date time\r\n\t */\r\n\tpublic void setValidFromUTCoffset(Long validFromUTCoffset) ;\r\n\t\r\n\t/**\r\n\t * Gets the validUntil date time offset to UTC in units of 15 minutes.\r\n\t *\r\n\t * @return the validUntil date time UTC offset\r\n\t */\r\n\tpublic Long getValidUntilUTCoffset();\r\n\t\r\n\t/**\r\n\t * Sets the validUntil date time.\r\n\t *\r\n\t * @param validUntilDateTime the new validUntil date time\r\n\t */\r\n\tpublic void setValidUntilUTCoffset(Long validUntilUTCoffset) ;\r\n\t\r\n\t\r\n\tpublic String getServiceLevel();\r\n\t\r\n\tpublic void setServiceLevel(String serviceLevel);\r\n\r\n}",
"@CodeCompletion(preferredCase=\"createEvent\")\n public abstract PortletEvent createevent(String name);",
"@SpaceDataEvent\t//\tThis annotation marks the method as the event listener.\n public OrderEvent validatesOrderEvent(OrderEvent orderEvent) {\n \t \t\n \t// sleep to simluate some work\n try {\n Thread.sleep(workDuration);\n } catch (InterruptedException e) {\n // do nothing\n }\n \n System.out.println(\"---[Validator: Validating orderEvent:\"+orderEvent+\" ]---\");\n \n //\tGetting the AccountData object matching the orderEvent userName through the DAO\n boolean isAccountFound = accountDataDAO.isAccountFound(orderEvent.getUserName()); \n if (isAccountFound == true){\n \t//\tMatching accountData found - changing orderEvent status to pending.\n \torderEvent.setStatus(\"Pending\");\n \tSystem.out.println(\"---[Validator: OrderEvent approved, status set to PENDING]---\");\t\n }\n else {\n \t//\tNo matching accountData found - changing orderEvent status to account not found.\n \torderEvent.setStatus(\"AccountNotFound\");\n \tSystem.out.println(\"---[Validator: OrderEvent rejected, ACCOUNT NOT FOUND]---\");\n }\n \n // orderID is declared as primary key and as auto-generated. \n \t//\tIt must be null before writing an operation.\n \torderEvent.setOrderID(null);\n \t\n return orderEvent;\n }",
"public void submitOrder(BeverageOrder order);",
"public void queueEvent(FacesEvent e) {\n if (e instanceof ActionEvent) {\n if (isImmediate()) {\n e.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);\n } else {\n e.setPhaseId(PhaseId.INVOKE_APPLICATION);\n }\n }\n super.queueEvent(e);\n }",
"String getOrderId();",
"void addOrder(Order o);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new category with a deep clone of the categorial classes' tree (and categorial attributes). DE entities and paths are not cloned. Info regarding subcategories is not copied. | private Category cloneCategorialClasses(Category category) {
Category clone = new Category();
CategorialClass clonedRootCatClass = cloneCategorialClass(category.getRootClass());
clone.setRootClass(clonedRootCatClass);
clonedRootCatClass.setCategory(clone);
clonedRootCatClass.setParent(null);
List<CategorialClass> currOrigCatClasses = new ArrayList<CategorialClass>();
currOrigCatClasses.add(category.getRootClass());
List<CategorialClass> currClonedCatClasses = new ArrayList<CategorialClass>();
currClonedCatClasses.add(clone.getRootClass());
while (!currOrigCatClasses.isEmpty()) {
List<CategorialClass> nextOrigCatClasses = new ArrayList<CategorialClass>();
List<CategorialClass> nextClonedCatClasses = new ArrayList<CategorialClass>();
for (int i = 0; i < currOrigCatClasses.size(); i++) {
CategorialClass currOrigCatClass = currOrigCatClasses.get(i);
CategorialClass currClonedCatClass = currClonedCatClasses.get(i);
for (CategorialClass origChildCatClass : currOrigCatClass.getChildren()) {
CategorialClass clonedChildCatClass = cloneCategorialClass(origChildCatClass);
clonedChildCatClass.setCategory(clone);
currClonedCatClass.addChildCategorialClass(clonedChildCatClass, origChildCatClass
.getPathFromParent());
nextOrigCatClasses.add(origChildCatClass);
nextClonedCatClasses.add(clonedChildCatClass);
}
}
currOrigCatClasses = nextOrigCatClasses;
currClonedCatClasses = nextClonedCatClasses;
}
return clone;
} | [
"@Override\n public FinancialCategory clone() {\n FinancialCategory f = new FinancialCategory();\n f.setId(id);\n f.setCostUnits(getCostUnits());\n f.setBudgetCosts(getBudgetCosts());\n f.setName(name);\n f.setYear(year);\n return f;\n }",
"@Override\n public Category apply(CategoryDto productCategory) {\n return new Category(productCategory.getId(), productCategory.getName(), productCategory.getParentName());\n }",
"private Bnet cloneClassifier(Bnet classifier) throws IllegalArgumentException {\n Bnet newClassifier;\n try {\n // copy the network\n newClassifier = classifier.copyBnet();\n // copy the relations\n Vector<Relation> relationsCopy = new Vector<Relation>();\n for (Enumeration e = classifier.getRelationList().elements(); e.hasMoreElements();) {\n Relation r = (Relation)e.nextElement();\n // copy the relation\n Relation copyR = r.copy();\n // make sure we duplicate the node list (not done in copy)\n NodeList duplicate = r.getVariables().duplicate();\n copyR.setVariables(duplicate);\n copyR.getValues().setVariables(duplicate.getNodes());\n // in case this is a classifier with continues nodes\n if (copyR.getValues() instanceof PotentialContinuousPT) {\n // make sure we duplicate the case vars\n\t cloneContinuousPotential(((PotentialContinuousPT)copyR.getValues()).getTree());\n }\n // and set the relation\n relationsCopy.add(copyR);\n }\n newClassifier.setRelationList(relationsCopy);\n } catch (Throwable t) {\n throw new IllegalArgumentException(\"The classifier can not be cloned: \"+t.getMessage());\n }\n return newClassifier;\n }",
"@Before\n\tpublic void buildCategories()\n\t{\n\t\t// make a root node for the tree (i.e. like a franchise in the CR data set\n\t\tCategoryNode rootParent = null;\n\t\taRootCategory = new CategoryNode(\"rootCategoryId\", \"rootCategoryName\", rootParent);\n\t\t\n\t\t// Add a subtree containing a singleton. The singleton should get removed\n\t\tCategoryNode singleton = new CategoryNode(\"singletonId\", \"singletonName\", aRootCategory);\n\t\taRootCategory.addSubcategory(singleton);\n\t\tCategoryNode childOfSingleton = new CategoryNode(\"childOfSingletonId\", \"childOfSingletonName\", singleton);\n\t\tsingleton.addSubcategory(childOfSingleton);\n\t\tCategoryNode leaf0 = new CategoryNode(\"leaf0Id\", \"leaf0Name\", childOfSingleton);\n\t\tchildOfSingleton.addSubcategory(leaf0);\n\t\tCategoryNode leaf1 = new CategoryNode(\"leaf1Id\", \"leaf1Name\", childOfSingleton);\n\t\tchildOfSingleton.addSubcategory(leaf1);\n\t\t\n\t\t// Add a subtree will have similar leaves, so the subtree should be turned into an equivalence class\n\t\tCategoryNode equivalenceClass = new CategoryNode(\"equivalenceClassId\", \"equivalenceClassName\", aRootCategory);\n\t\taRootCategory.addSubcategory(equivalenceClass);\n\t\tCategoryNode similarNode0 = new CategoryNode(\"similarNode0Id\", \"similarNode0Name\", equivalenceClass);\n\t\tequivalenceClass.addSubcategory(similarNode0);\n\t\tCategoryNode similarNode1 = new CategoryNode(\"similarNode1Id\", \"similarNode1Name\", equivalenceClass);\n\t\tequivalenceClass.addSubcategory(similarNode1);\n\t\t\n\t\t// This subtree has dissimilar leaves, so the subtree shouldn't be turned into an equivalence class\n\t\tCategoryNode nonEquivalenceClass = new CategoryNode(\"nonEquivalenceClassId\", \"nonEquivalenceClassName\", aRootCategory);\n\t\taRootCategory.addSubcategory(nonEquivalenceClass);\n\t\tCategoryNode dissimilarNode0 = new CategoryNode(\"dissimilarNode0Id\", \"dissimilarNode0Name\", nonEquivalenceClass);\n\t\tnonEquivalenceClass.addSubcategory(dissimilarNode0);\n\t\tCategoryNode dissimilarNode1 = new CategoryNode(\"dissimilarNode1Id\", \"dissimilarNode1Name\", nonEquivalenceClass);\n\t\tnonEquivalenceClass.addSubcategory(dissimilarNode1);\n\t}",
"DCategory create(DCategory dCategory);",
"Category populateChildenCategory(Category parentCategory, int recursionDepth, FetchGroupLoadTuner loadTuner);",
"public void addNewCategorySet() {\n selectedCategorySet = new CategorySetEntity();\n categories = new ArrayList<>();\n }",
"@Override\r\n\tpublic Tree clone() {\r\n\r\n\t\t// Normal deep cloning\r\n\t\ttry {\r\n\t\t\treturn new Tree(null, key, DeepCloner.clone(value));\r\n\t\t} catch (Exception ignored) {\r\n\r\n\t\t\t// Unknown and/or unserializable objects\r\n\t\t}\r\n\r\n\t\t// JSON-based deep cloning\r\n\t\ttry {\r\n\t\t\treturn new Tree(toString(null, false, true));\r\n\t\t} catch (Exception cause) {\r\n\t\t\tthrow new IllegalArgumentException(\"Unable to clone node!\", cause);\r\n\t\t}\r\n\t}",
"Component deepClone();",
"Category createCategory();",
"public abstract Type treeCopy();",
"public void newCategory() {\n btNewCategory().push();\n }",
"AttributesType getCategoryTree(String parentId, String storeView) throws ExceptionType;",
"@Override\n\tpublic DataType clone(DataTypeManager dtm) {\n\t\tStructureDataType struct =\n\t\t\tnew StructureDataType(getCategoryPath(), getName(), getLength(), getUniversalID(),\n\t\t\t\tgetSourceArchive(), getLastChangeTime(), getLastChangeTimeInSourceArchive(), dtm);\n\t\tstruct.setDescription(getDescription());\n\t\tstruct.replaceWith(this);\n\t\treturn struct;\n\t}",
"Category createCategory(String name);",
"private EClassifier clone (EClassifier classifier) {\n\t\tif (classifier instanceof EClass) return clone ((EClass) classifier);\n\t\tif (classifier instanceof EEnum) return clone ((EEnum) classifier);\n\t\tif (classifier instanceof EDataType) return clone ((EDataType)classifier);\n\t\treturn null;\n\t}",
"public void setNewCategory() {\n }",
"public Object clone()\n\t{\n\t\treturn new Tree();\n\t}",
"public QueryNode cloneTree() throws CloneNotSupportedException;"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends and returns a new empty "OrderResponse" element | org.hl7.fhir.OrderResponse addNewOrderResponse(); | [
"@Nonnull\n public static UBL23WriterBuilder <OrderResponseType> orderResponse ()\n {\n return UBL23WriterBuilder.create (OrderResponseType.class);\n }",
"public com.hotel.rooms.ResponseDocument.Response addNewResponse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.hotel.rooms.ResponseDocument.Response target = null;\n target = (com.hotel.rooms.ResponseDocument.Response)get_store().add_element_user(RESPONSE$0);\n return target;\n }\n }",
"public edu.itq.soa.ResponseDocument.Response addNewResponse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.itq.soa.ResponseDocument.Response target = null;\n target = (edu.itq.soa.ResponseDocument.Response)get_store().add_element_user(RESPONSE$0);\n return target;\n }\n }",
"@Nonnull public static UBL23ReaderBuilder<OrderResponseType> orderResponse(){return UBL23ReaderBuilder.create(OrderResponseType.class);}",
"@Nonnull\n public static UBL23WriterBuilder <OrderResponseSimpleType> orderResponseSimple ()\n {\n return UBL23WriterBuilder.create (OrderResponseSimpleType.class);\n }",
"public void appendToRequestList(Order newOrder){\n }",
"org.hl7.fhir.OrderResponse getOrderResponse();",
"void unsetOrderResponse();",
"public ResponseBody addResponse() {\n Element response = addChild(root, \"response\", childNames, true); //$NON-NLS-1$\n try {\n return new ResponseBody(response);\n } catch (MalformedElementException e) {\n Assert.isTrue(false, Policy.bind(\"assert.internalError\")); //$NON-NLS-1$\n return null; // Never reached.\n }\n }",
"public by.makedon.axis.AddResponseDocument.AddResponse addNewAddResponse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n by.makedon.axis.AddResponseDocument.AddResponse target = null;\n target = (by.makedon.axis.AddResponseDocument.AddResponse)get_store().add_element_user(ADDRESPONSE$0);\n return target;\n }\n }",
"void setOrderResponse(org.hl7.fhir.OrderResponse orderResponse);",
"private ShipOrderResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@Nonnull public static UBL23ReaderBuilder<OrderResponseSimpleType> orderResponseSimple(){return UBL23ReaderBuilder.create(OrderResponseSimpleType.class);}",
"public ws.simple.exp.TotalAmountResponseDocument.TotalAmountResponse addNewTotalAmountResponse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ws.simple.exp.TotalAmountResponseDocument.TotalAmountResponse target = null;\n target = (ws.simple.exp.TotalAmountResponseDocument.TotalAmountResponse)get_store().add_element_user(TOTALAMOUNTRESPONSE$0);\n return target;\n }\n }",
"org.hl7.fhir.Order addNewOrder();",
"protected void buildResponse() {\r\n appendResponse(\"<?xml version=\\\"1.0\\\" standalone=\\\"no\\\"?>\\r\\n\");\r\n appendResponse(\"<!DOCTYPE RETS SYSTEM \\\"RETS-20021015.dtd\\\">\\r\\n\");\r\n appendResponse(\"<RETS ReplyCode=\\\"\");\r\n appendResponse(replyCode);\r\n appendResponse(\"\\\" ReplyText=\\\"\");\r\n appendResponse(replyText);\r\n appendResponse(\"\\\"\");\r\n\r\n if (getReplyCode() != REPLY_CODE_SUCCESS) {\r\n cat.debug(\"*****ERROR\");\r\n appendResponse(\" />\");\r\n } else {\r\n appendResponse(\" >\\n\");\r\n\r\n fillContent();\r\n\r\n appendResponse(\"</RETS>\\r\\n\");\r\n }\r\n\r\n cat.debug(\"RESPONSE ::\" + this.response.toString());\r\n }",
"private PlaceOrderResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@Nonnull\n public static UBL22ValidatorBuilder <OrderResponseType> orderResponse ()\n {\n return UBL22ValidatorBuilder.create (OrderResponseType.class);\n }",
"public void addDeliveredElement(Object order);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'known_flags' field. metricslib/RelayNetworkStatusVote: SortedSet getKnownFlags() | public trans.encoders.relayVote.RelayVote.Builder setKnownFlags(java.util.List<java.lang.String> value) {
validate(fields()[14], value);
this.known_flags = value;
fieldSetFlags()[14] = true;
return this;
} | [
"public void setKnownFlags(java.util.List<java.lang.String> value) {\n this.known_flags = value;\n }",
"public trans.encoders.relayVote.RelayVote.Builder clearKnownFlags() {\n known_flags = null;\n fieldSetFlags()[14] = false;\n return this;\n }",
"public java.util.List<java.lang.String> getKnownFlags() {\n return known_flags;\n }",
"public java.util.List<java.lang.String> getKnownFlags() {\n return known_flags;\n }",
"public void setFlags(org.apache.axis.types.UnsignedInt flags) {\n this.flags = flags;\n }",
"public void setFlags(int flags);",
"public boolean hasKnownFlags() {\n return fieldSetFlags()[14];\n }",
"public EnumSet<Flag> getWeakFlags();",
"public static native void UnsignedNodeAnnouncement_set_features(long this_ptr, long val);",
"public abstract void setFlags(int flags);",
"abstract protected EnumSet<Parser.Flag> getParserFlags();",
"public static native void NodeAnnouncementInfo_set_features(long this_ptr, long val);",
"public boolean hasVoteStatus() {\n return fieldSetFlags()[3];\n }",
"private Set<E> parse( int flags ) {\n\t\tEnumSet<E> set = EnumSet.noneOf( enumClass );\n\t\t\t\t\n\t\tfor( Map.Entry<Integer, E> entry : bits2enums.entrySet() ) {\n\t\t\tint bits = entry.getKey();\n\t\t\tE e = entry.getValue();\n\t\t\t\n\t\t\tif(( flags & bits ) != 0 ) set.add( e );\n\t\t}\n\t\t\n\t\treturn set;\n\t}",
"public static native void UnsignedChannelUpdate_set_flags(long this_ptr, byte val);",
"public static native void UnsignedChannelAnnouncement_set_features(long this_ptr, long val);",
"EdgeIteratorState setFlags(IntsRef edgeFlags);",
"void setFlags(EnumSet<MessageFlag> messageFlags);",
"@ApiModelProperty(value = \"(optional) comma separated list of detection flags: bestface - return only face with highest detection score, , centerface - same as bestface but gives preference to face closest to image center, basicpoints - 22 basic points detection, propoints - 101 pro points detection, classifiers - face classification and attributes, extended - extended color and geometric measurements, content - image content detection. for example: \\\"basicpoints,propoints,classifiers,content\\\"\")\n public String getDetectionFlags() {\n return detectionFlags;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the validationLevel property. | public void setValidationLevel(int value) {
this.validationLevel = value;
} | [
"public int getValidationLevel() {\n return validationLevel;\n }",
"public void setObjectLevelAllowedValidation(Validation objectLevelAllowedValidation) {\n this.objectLevelAllowedValidation = objectLevelAllowedValidation;\n }",
"public void setValidationValue() {\n\n\t}",
"public void setValidationEnabled(boolean validationEnabled);",
"public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setErrorLevel(java.lang.String value) {\n validate(fields()[5], value);\n this.errorLevel = value;\n fieldSetFlags()[5] = true;\n return this;\n }",
"public void setLevel(LogLevel level)\r\n\t{\r\n\t\tthis.level = level;\r\n\t}",
"public void setLogLevel(int level) {\n\t\t// only change if a valid level\n\t\tif (isValidLogLevel(level)) this.logLevel = level;\n\t}",
"public void setValidationFailed(String validation) {\r\n validationFailed = validation;\r\n }",
"void setLevel(Level level);",
"private void setLevel(float level)\n\t{\n\t\trole.level = level;\n\t}",
"public void setLevel(DiagnosticLevel level) {\n setProperty(Constants.COMMONFIELDS_EVENT_LEVEL, level.getValue());\n }",
"@Override\n public void setLevel(int level) {\n _gameScore.setLevel(level);\n }",
"public static int validate(int level) {\n if (validLevels.contains(level)) {\n return level;\n } else {\n throw new IllegalArgumentException(\"Invalid level\");\n }\n }",
"public void setLanguageLevel(int level) {\n if (level == 2 || level == 3) {\n this.languageLevel = level;\n } else {\n throw new IllegalArgumentException(\"Only language levels 2 or 3 are allowed/supported\");\n }\n }",
"public void setValidation(String validation) {\n this.validation = validation;\n }",
"public void setValidationType(java.lang.String validationType) {\r\n this.validationType = validationType;\r\n }",
"public void setGameLevel(int level) {\n this.gameLevel = level;\n }",
"public void setCheckLevel(final int checkLevel) {\n this.checkLevel = checkLevel;\n }",
"public void setValidationState(ValidationState state);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Wrap an existing preprepare message. | public PrePrepareWrapper(final int sender, final MessageProto.Message.Builder message)
{
super(sender, message);
} | [
"public PrePrepareWrapper(final IServer sender, final MessageProto.PrePrepare message)\n {\n this(sender.getServerData().getId(), MessageProto.Message.newBuilder().setPrePrepare(message));\n }",
"public static PrePrepareWrapper createPrePrepareWrapper(final Server sender, final List<MessageProto.PersistClientMessage> data)\n {\n final MessageProto.PrePrepare.Builder prePrepareBuilder = MessageProto.PrePrepare.newBuilder();\n\n final GlobalView view = sender.getView();\n prePrepareBuilder.setView(view.processViewToProto());\n\n for (final MessageProto.PersistClientMessage message : data)\n {\n prePrepareBuilder.addInput(message);\n }\n\n return new PrePrepareWrapper(sender, prePrepareBuilder.build());\n }",
"public PrePrepareWrapper(final int sender, final MessageProto.Message.Builder message, final boolean signedAlready)\n {\n super(sender, message);\n this.alreadySigned = signedAlready;\n }",
"public PBFTPrepare createPrepareMessage(PBFTPrePrepare pp){\n PBFTPrepare p = new PBFTPrepare(pp, getLocalServerID());\n return p;\n }",
"PRE createPRE();",
"protected void prepare ()\n {\n send ();\n }",
"protected Message prepareNewMessage(Message message) {\n // Check file uploading\n if (messageInputController.isUploadingFile()) {\n message.user = Chat.getInstance().getClient().getCurrentUser();\n String clientSideID = generateMessageID();\n message.setId(clientSideID);\n message.setCreatedAt(new Date());\n //TODO: llc check sync\n //message.setSyncStatus(Sync.LOCAL_UPDATE_PENDING);\n } else {\n message.getAttachments().addAll(LlcMigrationUtils.getAttachments(messageInputController.getSelectedAttachments()));\n }\n\n return message;\n }",
"protected static String prependMetadata (String message, JSONObject metadata) {\n try {\n if (null != metadata) {\n String clazz = \"\";\n String method = \"\";\n String file = \"\";\n String line = \"\";\n if (metadata.has (\"$class\")) {\n clazz = metadata.getString (\"$class\");\n clazz = clazz.substring (clazz.lastIndexOf ('.') + 1, clazz.length ());\n }\n if (metadata.has (\"$method\")) {\n method = metadata.getString (\"$method\");\n }\n if (metadata.has (\"$file\")) {\n file = metadata.getString (\"$file\");\n }\n if (metadata.has (\"$line\")) {\n line = metadata.getString (\"$line\");\n }\n if (!(clazz + method + file + line).equals (\"\")) {\n // we got something...\n message = clazz + \".\" + method + \" in \" + file + \":\" + line + \" :: \" + message;\n }\n }\n } catch (Exception e) {\n // ignore... it's best effort anyway\n }\n return message;\n }",
"public T casePreprocess(Preprocess object)\n\t{\n\t\treturn null;\n\t}",
"public T caseCommon_Preprocess(at.jku.weiner.c.common.common.Preprocess object)\n\t{\n\t\treturn null;\n\t}",
"public void prependMessage(String message) {\n if (iMessage == null) {\n iMessage = message;\n } else if (message != null) {\n iMessage = message + \": \" + iMessage;\n }\n }",
"ReusableParameterizedMessage reserve() {\n reserved = true;\n return this;\n }",
"public com.vodafone.global.er.decoupling.binding.request.ModifyPrepayFlag createModifyPrepayFlag()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ModifyPrepayFlagImpl();\n }",
"@java.lang.Override\n public long getPreMessageId() {\n return preMessageId_;\n }",
"private void setPreMessageId(long value) {\n bitField0_ |= 0x00000080;\n preMessageId_ = value;\n }",
"public void initReplacingMessage()\n {\n setMessageKey(\"\", \"\");\n }",
"@Test\n @Override\n public void testPrepare()\n throws NoSuchAlgorithmException,\n NoSuchProviderException,\n InvalidAlgorithmParameterException {\n // prepare context\n context.setSelectedProtocolVersion(ProtocolVersion.TLS12);\n context.setSelectedCipherSuite(CipherSuite.TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256);\n context.setClientRandom(ArrayConverter.hexStringToByteArray(RANDOM));\n context.setServerRandom(ArrayConverter.hexStringToByteArray(RANDOM));\n // set server ECDH-parameters\n context.getConfig().setDefaultSelectedNamedGroup(NamedGroup.SECP192R1);\n context.setSelectedGroup(NamedGroup.SECP192R1);\n context.setServerEcPublicKey(\n Point.createPoint(\n new BigInteger(\n \"1336698681267683560144780033483217462176613397209956026562\"),\n new BigInteger(\n \"4390496211885670837594012513791855863576256216444143941964\"),\n NamedGroup.SECP192R1));\n context.getConfig().setDefaultClientEcPrivateKey(new BigInteger(\"3\"));\n\n preparator.prepare();\n assertNotNull(message.getComputations().getPublicKeyX());\n assertNotNull(message.getComputations().getPublicKeyY());\n assertArrayEquals(\n PREMASTER_SECRET, message.getComputations().getPremasterSecret().getValue());\n assertNotNull(message.getPublicKeyLength().getValue());\n assertNotNull(message.getPublicKey());\n assertNotNull(message.getComputations().getClientServerRandom());\n assertArrayEquals(\n ArrayConverter.concatenate(\n ArrayConverter.hexStringToByteArray(RANDOM),\n ArrayConverter.hexStringToByteArray(RANDOM)),\n message.getComputations().getClientServerRandom().getValue());\n }",
"protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null)\n\t\t\t\t;\n\t\t\telse if (name.equals(\"C_Order_ID\"))\n\t\t\t\tp_C_Order_ID = para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"prepare - Unknown Parameter: \" + name);\n\t\t}\n\t}",
"@Override\n protected AmqpTextMessage prepareUnderlyingAmqpMessageForSending(AmqpTextMessage amqpMessage)\n {\n return amqpMessage;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
selecting date with different formats you can give with any one following selectDate("23 Jun 1991"); selectDate("23061991"); selectDate("23/Jun/1991"); selectDate("23/06/1991"); selectDate("23 Jun 1991"); | public void selectDate(String format) {
//driver.findElement(By.className("ui-datepicker-trigger")).click();
// identifying format
String date[] = null;
if (format.contains("-")) {
date = format.split("-");
} else if (format.contains("/")) {
date = format.split("/");
} else if (format.contains(" ")) {
date = format.split(" ");
}
// Splitting data
String day = date[0];
String month = date[1];
String year = date[2];
// Selecting data based on format
if (month.length() == 2) {
// selecting month if you are giving input format as dd-mm-yyyy
//new Select(driver.findElement(By.className("ui-datepicker-month"))).selectByIndex(Integer.parseInt(month) - 1);
} else if (month.length() != 2) {
// selecting month if you are giving input format as dd-mmm-yyyy
//new Select(driver.findElement(By.className("ui-datepicker-month"))).selectByVisibleText(month);
}
// selecting year
//new Select(driver.findElement(By.xpath("//select[@class='ui-datepicker-year']"))).selectByVisibleText(year);
// click on day
//driver.findElement(By.linkText(day)).click();
} | [
"protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }",
"public String format (Date date , String dateFormat) ;",
"public static String getDateSQL() {\r\n\t\t\tString month = getInput(\"month(mm):\");\r\n\t\t\tString day = getInput(\"day(dd):\");\r\n\t\t\tString year = getInput(\"year(yyyy):\");\r\n\t\t\tString dateString = \"TO_DATE('\" + month +\"-\"+day+\"-\"+year+\"', 'MM-DD-YYYY')\";\r\n\t\t\treturn dateString;\r\n\t\t\t\r\n\t\t}",
"private String formatDateStr(String str) {\n \n // Initial Calendar object\n Calendar cal = Calendar.getInstance();\n str = str.replaceAll(\"/\", \"\");\n try {\n // Set date with input value\n cal.set(Integer.valueOf(str.substring(0,4)), Integer.valueOf(str.substring(4,6))-1, Integer.valueOf(str.substring(6)));\n // translatet to yyddd format\n return String.format(\"%1$02d%2$03d\", cal.get(Calendar.YEAR)%100, cal.get(Calendar.DAY_OF_YEAR));\n } catch (Exception e) {\n // if tranlate failed, then use default value for date\n return formatDateStr(defValD);\n }\n }",
"private String getSelectedDate(){\n \n if (DateChooser.GET_MONTH < 10) {\n return calendar.getSelectedDate(DateChooser.GET_YEAR) + \"-0\"\n + calendar.getSelectedDate(DateChooser.GET_MONTH) + \"-\"\n + calendar.getSelectedDate(DateChooser.GET_DAY);\n } else {\n return calendar.getSelectedDate(DateChooser.GET_YEAR) + \"-\"\n + calendar.getSelectedDate(DateChooser.GET_MONTH) + \"-\"\n + calendar.getSelectedDate(DateChooser.GET_DAY);\n }\n\n \n }",
"public Date getSelectedDate();",
"private static String getDate() {\n Scanner input = new Scanner(System.in);\n\n String monthName = input.next();\n int month = monthNum(monthName);\n int day = input.nextInt();\n String date = \"'2010-\" + month + \"-\" + day + \"'\";\n return date;\n }",
"public String filterDate(String datestr, String inDateFormat, String outDateFormat) {\n try{\n SimpleDateFormat sdfb = new SimpleDateFormat(inDateFormat);\n SimpleDateFormat sdfa = new SimpleDateFormat(outDateFormat);\n return sdfa.format(sdfb.parse(datestr));\n }catch(Exception ex){\n return \"\";\n }\n }",
"Date getDateFromStringDate(String date);",
"String getStringDateFromDate(Date date);",
"public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }",
"private static void formatDate(Date i) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tAnswer = formatter.format(i);\n\t}",
"public static String convertDate(String dbDate) throws ParseException //yyyy-MM-dd\n {\n String convertedDate = \"\";\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dbDate);\n\n convertedDate = new SimpleDateFormat(\"MM/dd/yyyy\").format(date);\n\n return convertedDate ;\n }",
"public void pickDateDisplayDay();",
"private static void validateMultipleDateFormat(String inputDate) {\n if (true == isValidDateFormat(\"MM/dd/yyyy\", inputDate)) {\n //System.out.println(\"date valid1\");\n } else if (true == isValidDateFormat(\"M/dd/yyyy\", inputDate)) {\n //System.out.println(\"date valid2\");\n } else if (true == isValidDateFormat(\"MM/d/yyyy\", inputDate)) {\n //System.out.println(\"date valid3\");\n } else if (true == isValidDateFormat(\"M/d/yyyy\", inputDate)) {\n //System.out.println(\"date valid4\");\n } else {\n errorPrintUsageAndExit(INVALID_DATE);\n }\n }",
"protected String getDateSelectMenu(){\n\t\tString ss = \"<script language=\\\"JavaScript\\\" id=\\\"cal\\\">\";\n\t\tss += \"var cal = new CalendarPopup(\\\"dateselect\\\")\";\n\t\tss += \"cal.showNavigationDropdowns()\";\n\t\tss += \"</script>\";\n\t\tss += \"<input type=\\\"text\\\" name=\\\"date\\\" value=\\\"\\\" size=15>\";\n\t\tss += \"<a href=\\\"#\\\" onClick=\\\"cal.select(document.forms[0].date,'anchor','dd/MM/yyyy'); return false;\\\" title=\\\"cal.select(document.forms[0].date,'anchor','dd/MM/yyyy'); return false;\\\" name=\\\"anchor\\\" id=\\\"anchor\\\">V</a>\";\n\t\treturn ss;\n\t}",
"public void selectFromDate() {\n oSelUtility.waitForElementVisible(fromDateBox, 5, driver);\n oSelUtility.clickOnElement(fromDateBox, \"From Date Option\");\n oSelUtility.waitForElementVisible(fromDatesCalender, 5, driver);\n oSelUtility.clickOnElement(fromDatesCalender, \"From Date Calender\");\n oSelUtility.clickOnElement(from_date, \"From Date \");\n oActions.doubleClick().build().perform();\n }",
"public static String getSPARQLDateString(String s) throws Exception{\n\t\t// try all formatters until find one that works\n\t\tfor (DateTimeFormatter formatter : DATE_FORMATTERS){ \n\t try{ \t\n\t \tLocalDate dateObj = LocalDate.parse(s, formatter);\n\t\t\t\treturn dateObj.format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd\")); \t\n\t }catch (Exception e) {\n\t \t// try the next one\n\t }\n\t\t}\t\t\t\t\n\t\tthrow new Exception(\"Cannot parse \" + s + \" using available formatters\");\n\t}",
"public static String SQLtoDate (String sql){\n\n String result = \"\";\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n try {\n Date data = format.parse(sql);\n format.applyPattern(\"dd-MM-yyyy\");\n result = format.format(data);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return result;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
read nfc from intent | private void readFromIntent(Intent intent){
String action = intent.getAction();
if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(action)
|| NfcAdapter.ACTION_TECH_DISCOVERED.equals(action)
|| NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)) {
Parcelable[] rawMsgs = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);
NdefMessage[] msgs = null;
if (rawMsgs != null) {
msgs = new NdefMessage[rawMsgs.length];
for (int i = 0; i < rawMsgs.length; i++){
msgs[i] = (NdefMessage) rawMsgs[i];
}
}
buildTagViews(msgs);
}
} | [
"void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n String payload = new String(msg.getRecords()[0].getPayload());\n Toast.makeText(this, payload, Toast.LENGTH_LONG).show();\n Log.i(TAG, payload);\n }",
"void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n String s = new String(msg.getRecords()[0].getPayload());\n nfcTagCode = s.substring(3);\n\n textView.setText(nfcTagCode); // Sets the textview as the Text read from NFC TAG\n }",
"protected abstract void readIntent();",
"void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n menuInfo = new String(msg.getRecords()[0].getPayload());\n \n Toast.makeText(getApplicationContext(), menuInfo, Toast.LENGTH_LONG).show();\n }",
"private void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n InetAddress inet = null;\n // record 0 contains the MIME type, record 1 is the AAR, if present\n byte[] bytes = msg.getRecords()[0].getPayload();\n try {\n ByteArrayInputStream bin = new ByteArrayInputStream(bytes);\n ObjectInput in = null;\n in = new ObjectInputStream(bin);\n Object o = in.readObject();\n inet = (InetAddress) o;\n Log.wtf(TAG, inet.getHostAddress());\n } catch (Exception e) {\n Log.e(TAG, \"reading InetAddress failed\");\n }\n\n if (inet != null) {\n connectToHost(inet);\n }\n }",
"@Override\n public void onNewIntent (Intent intent){\n Card c = getCardFromNdefMessage(intent);\n startActivity(putCardInfoToIntent(c));\n }",
"private Card getCardFromNdefMessage(Intent intent){\n Card card = null;\n NdefMessage[] msgs = null;\n Parcelable[] rawMsg = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n if (rawMsg != null){\n msgs = new NdefMessage[rawMsg.length];\n for (int i = 0; i < rawMsg.length; i++){\n msgs[i] = (NdefMessage)rawMsg[i];\n }\n }\n // if there will be 3 NDEF records in NDEF message take payload from first two records (card details and logoImg)\n if (msgs[0].getRecords().length == 3){\n card = getCardFromJSON(msgs[0].getRecords()[0].getPayload());\n card.setLogoImgPath(new String(msgs[0].getRecords()[1].getPayload()));\n card.setId(0);\n }\n // if there will be 2 NDEF records in NDEF message take payload from first record (card details)\n else if (msgs[0].getRecords().length == 2){\n card = getCardFromJSON(msgs[0].getRecords()[0].getPayload());\n card.setId(0);\n }\n // if there will less than 2 NDEF records in NDEF message set default values\n else{\n card = new Card(\"null\",\"card_name\",\"card_mobile\",\"card_phone\",\"card_fax\",\"card_email\",\"card_web\",\"card_company\",\n \"card_address\",\"card_job\",\"card_facebook\",\"card_tweeter\",\"card_skype\",\"card_other\");\n card.setId(0);\n }\n\n Log.d(\"CardNFC\",\"Received NDEF message (\" + msgs[0].getRecords().length + \" records)\");\n\n return card;\n }",
"@Override\n protected void onResume() {\n super.onResume();\n Intent intent = getIntent();\n String action = intent.getAction();\n if(NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)){\n Parcelable[] parcelables = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n NdefMessage inNdefMessage = (NdefMessage)parcelables[0];\n NdefRecord[] inNdefRecords = inNdefMessage.getRecords();\n NdefRecord NdefRecord_0 = inNdefRecords[0];\n String msgReceived = new String(NdefRecord_0.getPayload());\n\n // Split the received message and populate the fields accordingly\n String[] msgArr = msgReceived.split(\",\");\n for (int i = 0; i < msgArr.length; i++) {\n String[] detailsArr = msgArr[i].split(\":\");\n\n if (\"FirstName\".equals(detailsArr[0])) {\n firstName.setText(detailsArr[1]);\n } else if (\"LastName\".equals(detailsArr[0])) {\n lastName.setText(detailsArr[1]);\n } else if (\"AccNum\".equals(detailsArr[0])) {\n accNum.setText(detailsArr[1]);\n } else if (\"MobileNum\".equals(detailsArr[0])) {\n mobileNum.setText(detailsArr[1]);\n } else if (\"EmailId\".equals(detailsArr[0])) {\n emailId.setText(detailsArr[1]);\n }\n }\n }\n }",
"@Override\n protected void onNewIntent(Intent intent){\n\n //If the new intent matches the filtered NFC intent, read in the tag's raw data.\n if(NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) {\n mytag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n //Display a visible notification showing the object has been found.\n Toast.makeText(this, \"Object Found.\", Toast.LENGTH_LONG).show();\n\n //If the new story is ready to be written\n if (newStoryReady) {\n\n //Initialize success boolean which returns true only if the nfc interaction has been successful\n boolean success = false;\n success = nfcInteraction.doWrite(mytag, tag_data);\n\n //If the nfc write process has succeeded, take the following action\n if (success) {\n\n //Return the value of newStoryReady to false as current ready story has been written\n newStoryReady = false;\n //Stop the clickability of the current range of image views\n disableViewClickability();\n //Stop any active commentary\n commentaryInstruction.stopPlaying();\n //Cancel idleSaveStoryToArchiveHandler which automatically saves the current story to the archive\n cancelIdleStoryCountdown();\n //Reset the camera to a new preview\n resetCamera();\n //Release current camera instance\n releaseCamera();\n// nfcInteraction.Complete(success);\n //Complete the process by navigating to back to HomeScreen activity which will play the new story\n Complete(success);\n } else {\n\n newStoryReady = true;\n }\n }\n }\n }",
"@Override\n public void onResume() {\n super.onResume();\n // Check if there is any any NDEF is discovered to process the TAG\n if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(getIntent().getAction())) {\n processIntent(getIntent()); // If NDEF is discovered, It calls prcoessIntent method to get the NFC TAG Code\n }\n }",
"@Override\n protected void onResume() {\n super.onResume();\n NfcAdapter nfcAdapter = NfcAdapter.getDefaultAdapter(this);\n // enableCatchingNfcIntents function must be called in onResume methode.\n //L'option FLAG_RECEIVER_REPLACE_PENDING permet a WriteActivity de rester au premier plan\n Intent intent = new Intent(this, MapsActivity.class).addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);\n //Argument 1 pour enableForegroundDIspatch\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0);\n //Argument 2 pour enableForegroundDIspatch\n IntentFilter[] intentFilter = new IntentFilter[]{};\n //Permet de gérer les évenements NFC sur cette activité\n nfcAdapter.enableForegroundDispatch(this, pendingIntent, intentFilter, null);\n\n }",
"void ReadModeOn(NfcAdapter adapter, PendingIntent pendingIntent, IntentFilter readTagFilters[]){\n\n adapter.enableForegroundDispatch(activity, pendingIntent, readTagFilters, null);\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n final String action = intent.getAction();\n\n Log.d(\"BROADCAST_RECEIVER_NEW\",action);\n\n\n\n if (BluetoothLeService.ACTION_DATA_AVAILABLE.equals(action)) {\n displayData(intent.getStringExtra(BluetoothLeService.EXTRA_DATA));\n }\n\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n Log.i(\"INFO\",\"action is \"+action);\n\n if (Intent.ACTION_NEW_OUTGOING_CALL.equals(action)) {\n //\"android.intent.extra.PHONE_NUMBER\"\n String outgoingNum = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);\n Log.i(\"Seven\", \"It's outgoing call. Number is:\" + outgoingNum);\n return;\n }\n\n //State is RINGING/OFFHOOK/IDLE\n String state = intent.getStringExtra(\"state\");\n\n //Only state is Ringing can get the incoming_number\n String incomingNum = intent.getStringExtra(\"incoming_number\");\n\n //MTK add for dual SIM support\n String simId = intent.getStringExtra(\"simId\");\n\n Log.i(\"INFO\", \"state is \"+state);\n Log.i(\"INFO\", \"incomingNum is \"+incomingNum);\n Log.i(\"INFO\", \"simId is \"+simId);\n\n Toast.makeText(context, incomingNum, Toast.LENGTH_LONG).show();\n }",
"IntentFilter getBroadcastIntentChannel();",
"private Intent getMessageReadIntent(int id, String contact_tn, String contact_name) {\n return new Intent()\n .addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES)\n .setAction(READ_ACTION)\n .putExtra(CONVERSATION_ID, id)\n .putExtra(CONVERSATION_TN, contact_tn)\n .putExtra(CONVERSATION_NAME, contact_name);\n }",
"public void gettingDataFromIntent() {\n Intent intent = getIntent();\n verb = intent.getStringExtra(\"Verb\");\n meaning = intent.getStringExtra(\"Meaning\");\n type = intent.getStringExtra(\"Type\");\n present = intent.getStringExtra(\"Present\");\n perfect = intent.getStringExtra(\"Perfect\");\n imperfect = intent.getStringExtra(\"Imperfect\");\n pluperfect= intent.getStringExtra(\"Pluperfect\");\n potential = intent.getStringExtra(\"Potential\");\n potentialperfect = intent.getStringExtra(\"PotentialPerfect\");\n conditional = intent.getStringExtra(\"Conditional\");\n infinitive2 = intent.getStringExtra(\"Infinitive2\");\n infinitive3 = intent.getStringExtra(\"Infinitive3\");\n Log.d(\"RECEIVE\", present);\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n\n MainActivity activity = (MainActivity) context;\n\n\n String action = intent.getAction();\n if (BluetoothDevice.ACTION_FOUND.equals(action));\n {\n\n Log.d(\"receive\",\"action found\");\n try {\n\n // rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI, Short.MIN_VALUE);\n\n\n BluetoothDevice bluetoothDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n Short rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI,Short.MIN_VALUE);\n\n activity.setDisciveredDevice(bluetoothDevice,rssi);\n\n Log.d(\"receive\", \" Name = \"+bluetoothDevice.getName() );\n Log.d(\"receive\", \" Address = \"+bluetoothDevice.getAddress() );\n\n Toast.makeText(context,\"action found\",Toast.LENGTH_SHORT).show();\n\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n }\n\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n if(\"com.example.brdcst_rec.toast\".equals(intent.getAction())){\n Integer received = intent.getIntExtra(\"com.example.brdcst_rec.text\", -1);\n Intent in = new Intent(context, BrowserActivity.class);\n in.putExtra(\"number\", received);\n context.startActivity(in);\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Home interface for Enterprise Bean: CfgDocument | public interface CfgDocumentHome extends javax.ejb.EJBHome {
/**
* Creates an instance from a key for Entity Bean: CfgDocument
*/
/*
public com.hps.july.persistence.CfgDocument create(
int document,
com.hps.july.persistence.Organization argOwner,
com.hps.july.persistence.StoragePlace argTo,
com.hps.july.persistence.Organization argContragent,
com.hps.july.persistence.StoragePlace argFrom,
com.hps.july.persistence.Worker argStorageManager)
throws javax.ejb.CreateException, java.rmi.RemoteException;
*/
/**
* Finds an instance using a key for Entity Bean: CfgDocument
*/
public com.hps.july.persistence.CfgDocument findByPrimaryKey(
com.hps.july.persistence.DocumentKey primaryKey)
throws javax.ejb.FinderException, java.rmi.RemoteException;
public com.hps.july.persistence.CfgDocument create(
int argDocument,
Integer argOwner,
Integer argFrom,
Integer argTo,
java.sql.Date argBlankDate,
int argBlankindex,
String argBlankNumber,
String argState,
Boolean argProcessSource,
Boolean argProcessDestination,
int SavconfigIdOld,
int SavconfigIdNew)
throws javax.ejb.CreateException, java.rmi.RemoteException;
} | [
"public interface CfgDocument extends com.hps.july.persistence.Document, com.ibm.ivj.ejb.runtime.CopyHelper {\n\n\n\n\t/**\n\t * Get accessor for persistent attribute: savconfigidold\n\t */\n\tpublic int getSavconfigidold() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: savconfigidold\n\t */\n\tpublic void setSavconfigidold(int newSavconfigidold)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: savconfigidnew\n\t */\n\tpublic int getSavconfigidnew() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: savconfigidnew\n\t */\n\tpublic void setSavconfigidnew(int newSavconfigidnew)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: storedem\n\t */\n\tpublic java.lang.Integer getStoredem() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: storedem\n\t */\n\tpublic void setStoredem(java.lang.Integer newStoredem)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: storebad\n\t */\n\tpublic java.lang.Integer getStorebad() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: storebad\n\t */\n\tpublic void setStorebad(java.lang.Integer newStorebad)\n\t\tthrows java.rmi.RemoteException;\n}",
"public void startDocument() {\n\t\tserverIndexBean = new Bean(\"SERVER INDEX\");\r\n\t\tbean.addFilho(serverIndexBean);\r\n\t}",
"public interface IConfiguration extends ISessionAwareObject {\n\n\tString ENV_SOPECO_HOME = \"SOPECO_HOME\";\n\n\tString CONF_LOGGER_CONFIG_FILE_NAME = \"sopeco.config.loggerConfigFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION_FILE_NAME = \"sopeco.config.measurementSpecFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION = \"sopeco.config.measurementSpecification\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_URI = \"sopeco.config.measurementControllerURI\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_CLASS_NAME = \"sopeco.config.measurementControllerClassName\";\n\n\tString CONF_APP_NAME = \"sopeco.config.applicationName\";\n\n\tString CONF_MAIN_CLASS = \"sopeco.config.mainClass\";\n\n\tString CONF_MEC_ACQUISITION_TIMEOUT = \"sopeco.config.MECAcquisitionTimeout\";\n\n\n\tString CONF_MEC_SOCKET_RECONNECT_DELAY = \"sopeco.config.mec.reconnectDelay\";\n\n\tString CONF_HTTP_PROXY_HOST = \"sopeco.config.httpProxyHost\";\n\t\n\tString CONF_HTTP_PROXY_PORT = \"sopeco.config.httpProxyPort\";\n\n\t\n\tString CONF_DEFINITION_CHANGE_HANDLING_MODE = \"sopeco.config.definitionChangeHandlingMode\";\n\tString DCHM_ARCHIVE = \"archive\";\n\tString DCHM_DISCARD = \"discard\";\n\n\tString CONF_SCENARIO_DEFINITION_PACKAGE = \"sopeco.config.xml.scenarioDefinitionPackage\";\n\t/** Holds the path to the root folder of SoPeCo. */\n\tString CONF_APP_ROOT_FOLDER = \"sopeco.config.rootFolder\";\n\tString CONF_EXPERIMENT_EXECUTION_SELECTION = \"sopeco.engine.experimentExecutionSelection\";\n\t/**\n\t * Holds the path to the plugins folder, relative to the root folder of\n\t * SoPeCo.\n\t */\n\tString CONF_PLUGINS_DIRECTORIES = \"sopeco.config.pluginsDirs\";\n\n\tString CLA_EXTENSION_ID = \"org.sopeco.config.commandlinearguments\";\n\n\t/** Folder for configuration files relative to the application root folder */\n\tString DEFAULT_CONFIG_FOLDER_NAME = \"config\";\n\n\tString DEFAULT_CONFIG_FILE_NAME = \"sopeco-defaults.conf\";\n\n\tString DIR_SEPARATOR = \":\";\n\t\n\tString EXPERIMENT_RUN_ABORT = \"org.sopeco.experiment.run.abort\";\n\n\t/**\n\t * Export the configuration as a key-value map. Both, the default ones and the ones in the\n\t * system environment are included.\n\t * \n\t * @return a key-value representation of the configuration\n\t * \n\t * @deprecated Use {@code exportConfiguration()} and {@code exportDefaultConfiguration}.\n\t */\n\t@Deprecated\n\tMap<String, Object> getProperties();\n\t\n\t/**\n\t * Exports the configuration as a key-value map. The default configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportConfiguration();\n\t\n\t/**\n\t * Exports the default configuration as a key-value map. The actual configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportDefaultConfiguration();\n\t\n\t/**\n\t * Imports the configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Imports the default configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid overwriteConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the default configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the default configuration\n\t */\n\tvoid overwriteDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Returns the configured value of the given property in SoPeCo.\n\t * \n\t * It first looks up the current SoPeCo configuration, if there is no value\n\t * defined there, looks up the system properties, if no value is defined\n\t * there, then loads it from the default values; in case of no default\n\t * value, returns null.\n\t * \n\t * @param key\n\t * property key\n\t * @return Returns the configured value of the given property in SoPeCo.\n\t */\n\tObject getProperty(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a String.\n\t * \n\t * This method calls the {@link Object#toString()} of the property value and\n\t * is for convenience only. If the given property is not set, it returns\n\t * <code>null</code>.\n\t * \n\t * @param key\n\t * property key\n\t * \n\t * @see #getProperty(String)\n\t * @return Returns the configured value of the given property as a String.\n\t */\n\tString getPropertyAsStr(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a Boolean value.\n\t * \n\t * This method uses the {@link #getPropertyAsStr(String)} and interprets\n\t * values 'yes' and 'true' (case insensitive) as a Boolean <code>true</code>\n\t * value and all other values as <code>false</code>. If the value of the\n\t * given property is <code>null</code> it returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a boolean\n\t * \n\t * @see #getProperty(String)\n\t */\n\tboolean getPropertyAsBoolean(String key, boolean defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Long value.\n\t * \n\t * This method uses the {@link Long.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a long\n\t * \n\t * @see #getProperty(String)\n\t */\n\tlong getPropertyAsLong(String key, long defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Double value.\n\t * \n\t * This method uses the {@link Double.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a double\n\t * \n\t * @see #getProperty(String)\n\t */\n\tdouble getPropertyAsDouble(String key, double defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as an Integer value.\n\t * \n\t * This method uses the {@link Integer.#parseInt(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as an int\n\t * \n\t * @see #getProperty(String)\n\t */\n\tint getPropertyAsInteger(String key, int defaultValue);\n\n\t/**\n\t * Sets the value of a property for the current run.\n\t * \n\t * @param key\n\t * property key\n\t * @param value\n\t * property value\n\t */\n\tvoid setProperty(String key, Object value);\n\n\t/**\n\t * Clears the value of the given property in all layers of configuration,\n\t * including the system property environment.\n\t * \n\t * @param key the property\n\t */\n\tvoid clearProperty(String key);\n\n\t/**\n\t * Returns the default value (ignoring the current runtime configuration)\n\t * for a given property.\n\t * \n\t * @param key\n\t * porperty key\n\t * \n\t * @return Returns the default value for a given property.\n\t */\n\tObject getDefaultValue(String key);\n\n\t/**\n\t * Processes the given command line arguments, the effects of which will\n\t * reflect in the global property values.\n\t * \n\t * @param args\n\t * command line arguments\n\t * @throws ConfigurationException\n\t * if there is any problem with command line arguments\n\t */\n\tvoid processCommandLineArguments(String[] args) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadDefaultConfiguration(ClassLoader, String)} for loading\n\t * default configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * \n\t */\n\tvoid loadDefaultConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadDefaultConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadConfiguration(ClassLoader, String)} for loading default\n\t * configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finally the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Performs any post processing of configuration settings that may be\n\t * required.\n\t * \n\t * This method can be called after manually making changes to the\n\t * configuration values. It should be called automatically after a call to\n\t * {@link IConfiguration#loadConfiguration(String)}.\n\t */\n\tvoid applyConfiguration();\n\n\t/**\n\t * Sets the value of scenario description file name.\n\t * \n\t * @param fileName\n\t * file name\n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tvoid setScenarioDescriptionFileName(String fileName);\n\n\t/**\n\t * Sets the sceanrio description as the given object. This property in\n\t * effect overrides the value of scenario description file name (\n\t * {@link IConfiguration#CONF_SCENARIO_DESCRIPTION_FILE_NAME}).\n\t * \n\t * @param sceanrioDescription\n\t * an instance of a scenario description\n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tvoid setScenarioDescription(Object sceanrioDescription);\n\n\t/**\n\t * Sets the measurement controller URI.\n\t * \n\t * @param uriStr\n\t * a URI as an String\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tvoid setMeasurementControllerURI(String uriStr) throws ConfigurationException;\n\n\t/**\n\t * Sets the measurement controller class name. This also sets the\n\t * measurement controller URI to be '<code>class://[CLASS_NAME]</code>'.\n\t * \n\t * @param className\n\t * the full name of the class\n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tvoid setMeasurementControllerClassName(String className);\n\n\t/**\n\t * Sets the application name for this executable instance.\n\t * \n\t * @param appName\n\t * an application name\n\t */\n\tvoid setApplicationName(String appName);\n\n\t/**\n\t * Sets the main class that runs this thread. This will also be used in\n\t * finding the root folder\n\t * \n\t * @param mainClass\n\t * class to be set as main class\n\t */\n\tvoid setMainClass(Class<?> mainClass);\n\n\t/**\n\t * Sets the logger configuration file name and triggers logger\n\t * configuration.\n\t * \n\t * @param fileName\n\t * a file name\n\t */\n\tvoid setLoggerConfigFileName(String fileName);\n\n\t/**\n\t * @return Returns the application root directory.\n\t */\n\tString getAppRootDirectory();\n\n\t/**\n\t * Sets the application root directory to the given folder.\n\t * \n\t * @param rootDir\n\t * path to a folder\n\t */\n\tvoid setAppRootDirectory(String rootDir);\n\n\t/**\n\t * @return Returns the application's configuration directory.\n\t */\n\tString getAppConfDirectory();\n\n\t/**\n\t * @return Returns the value of scenario description file name.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tString getScenarioDescriptionFileName();\n\n\t/**\n\t * @return returns the sceanrio description as the given object.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tObject getScenarioDescription();\n\n\t/**\n\t * @return Returns the measurement controller URI.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tURI getMeasurementControllerURI();\n\n\t/**\n\t * @return Returns the measurement controller URI as a String.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tString getMeasurementControllerURIAsStr();\n\n\t/**\n\t * @return Returns the measurement controller class name.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tString getMeasurementControllerClassName();\n\n\t/**\n\t * @return Returns the application name for this executable instance.\n\t */\n\tString getApplicationName();\n\n\t/**\n\t * @return Returns the main class that runs this thread. This value must\n\t * have been set by a call to\n\t * {@link IConfiguration#setMainClass(Class)}.\n\t */\n\tClass<?> getMainClass();\n\n\t/**\n\t * Writes the current configuration values into a file.\n\t * \n\t * @param fileName\n\t * the name of the file\n\t * @throws IOException\n\t * if exporting the configuration fails\n\t */\n\tvoid writeConfiguration(String fileName) throws IOException;\n\n\t/**\n\t * Overrides the values of this configuration with those of the given\n\t * configuration.\n\t * \n\t * @param configuration\n\t * with the new values\n\t */\n\t void overwrite(IConfiguration configuration);\n\n\t /**\n\t * Adds a new command-line extension to the configuration component. \n\t * \n\t * The same extension will not be added twice. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void addCommandLineExtension(ICommandLineArgumentsExtension extension);\n\t \n\t /**\n\t * Removes a new command-line extension from the configuration component. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void removeCommandLineExtension(ICommandLineArgumentsExtension extension);\n}",
"public interface IDocAlertManagerHome\n extends EJBHome\n{\n /**\n * Create the DocAlertManagerBean.\n *\n * @returns EJBLObject for the DocAlertManagerBean.\n */\n public IDocAlertManagerObj create()\n throws CreateException, RemoteException;\n}",
"public manageDoc() {\r\r\r\n\r\r\r\n }",
"public interface EavropDocumentService {\n\t\n\n\t/**\n\t * Adds to the eavrop an externally received document, will potentially affect the start date of the eavrop assessment period \n\t *\n\t * @param aCommand\n\t */\n\tpublic boolean addReceivedExternalDocument(AddReceivedExternalDocumentsCommand aCommand);\n\n\t/**\n\t * Adds to the eavrop an internally received document \n\t *\n\t * @param aCommand\n\t */\n\tpublic void addReceivedInternalDocument(AddReceivedInternalDocumentCommand aCommand);\n\n\t/**\n\t * Adds to the eavrop a requested document\n\t * @param aCommand\n\t */\n\tpublic RequestedDocument addRequestedDocument(AddRequestedDocumentCommand aCommand);\n\n}",
"public interface DocStoreUpdateContext extends DocUpdateContext {\n\n}",
"public interface SiteConfigService extends ConfigLookup\n{\n\tString getProperty(String property);\n}",
"public interface DocumentDefinition extends NodeDefinition {\n\n String getContentPath();\n\n String getMimeType();\n\n String getEncoding();\n}",
"public interface DocumentService {\n\n /**\n * Imports a document inclusive its binary content into DOX.\n *\n * @param physicalDocument the document to create in DOX.\n * @return The document reference that was created in DOX\n * @throws ValidationException\n * @throws DocumentDuplicationException\n * @throws DocumentClassNotFoundException if the document class cannot be found\n */\n DocumentReference importDocument(PhysicalDocument physicalDocument) throws ValidationException, DocumentDuplicationException, DocumentClassNotFoundException;\n\n /**\n * Find a document reference using the unique identifier (ID)\n *\n * @param id unique identifier\n * @return the document reference with all its metadata\n * @throws DocumentNotFoundException if the document does not exist\n */\n DocumentReference findDocumentReference(Long id) throws DocumentNotFoundException;\n\n /**\n * Works like finding a document reference but returns also the binary content of a document.\n *\n * @param id id of the physical document to retrieve\n * @return returns the physical document\n * @throws DocumentNotFoundException if there is no document for that ID\n * @throws DocumentNotInStoreException if there is a document in the database registered but the binary content cannot be found in the underlying data store that DOX uses.\n * @see DocumentService#findDocumentReference(Long)\n */\n PhysicalDocument findPhysicalDocument(Long id) throws DocumentNotFoundException, DocumentNotInStoreException;\n\n Set<DocumentReference> findDocumentReferences(Map<String, Object> queryParams, String documentClassShortName) throws DocumentClassNotFoundException;\n\n /**\n * Implement a search à la Google. Uses a single String to find document references.\n *\n * @param queryString a simple query string (e.g. a keyword 'taxes' or a date '01.12.2012')\n * @return all documents that are holding this keyword as a part of an index\n */\n Set<DocumentReference> findDocumentReferences(String queryString);\n\n Set<DocumentClass> findDocumentClasses();\n\n /**\n * Finds all attributes assigned to the given document class. It returns the global and the document class specific attributes.\n *\n * @param documentClass document class to retrieve the attributes from\n * @return all attributes to the given document class\n * @throws DocumentClassNotFoundException if the document class does not exist\n */\n SortedSet<Attribute> findAttributes(DocumentClass documentClass) throws DocumentClassNotFoundException;\n\n /**\n * Updates the index values of an existing document reference\n *\n * @param reference the document reference containing the new index values\n * @return returns the up to date document reference\n * @throws DocumentNotFoundException\n */\n DocumentReference updateIndices(DocumentReference reference) throws DocumentNotFoundException;\n}",
"public void parseDocumentConfig(Document doc);",
"public Object getDocumentBusinessObject();",
"public String getDocumentEndpoint();",
"public conversorDOC(){\n }",
"public accionDocumentos() {\n \n }",
"public DocCompanion ()\n {\n super(\"Docs\", DESC);\n\n if (Installer.hasUI()) {\n view = new BasicCompanionView(this, 60);\n }\n }",
"@PublicSPI\npublic interface ConfigMaster extends ChangeProvider {\n\n /**\n * Gets a document by unique identifier.\n * <p>\n * The identifier version string will be used to return the correct historic version providing\n * that the master supports history.\n * \n * @param uniqueId the unique identifier, not null\n * @return the document, not null\n * @throws IllegalArgumentException if the request is invalid\n * @throws DataNotFoundException if there is no document with that unique identifier\n */\n ConfigDocument<?> get(UniqueId uniqueId);\n\n /**\n * Gets a document by object identifier and version-correction locator.\n * <p>\n * The version-correction will be used to return the correct historic version providing\n * that the master supports history.\n * \n * @param objectId the object identifier, not null\n * @param versionCorrection the version-correction locator to search at, not null\n * @return the document, not null\n * @throws IllegalArgumentException if the request is invalid\n * @throws DataNotFoundException if there is no document with that unique identifier\n */\n ConfigDocument<?> get(ObjectIdentifiable objectId, VersionCorrection versionCorrection);\n\n /**\n * Gets a document by unique identifier.\n * <p>\n * The identifier version string will be used to return the correct historic version providing\n * that the master supports history.\n * \n * @param <T> the configuration element type\n * @param clazz the class of the configuration element\n * @param uniqueId the unique identifier, not null\n * @return the document, not null\n * @throws IllegalArgumentException if the request is invalid\n * @throws DataNotFoundException if there is no document with that unique identifier\n */\n <T> ConfigDocument<T> get(UniqueId uniqueId, Class<T> clazz);\n\n /**\n * Gets a document by object identifier and version-correction locator.\n * <p>\n * The version-correction will be used to return the correct historic version providing\n * that the master supports history.\n * \n * @param <T> the configuration element type\n * @param clazz the class of the configuration element\n * @param objectId the object identifier, not null\n * @param versionCorrection the version-correction locator to search at, not null\n * @return the document, not null\n * @throws IllegalArgumentException if the request is invalid\n * @throws DataNotFoundException if there is no document with that unique identifier\n */\n <T> ConfigDocument<T> get(ObjectIdentifiable objectId, VersionCorrection versionCorrection, Class<T> clazz);\n\n /**\n * Adds a document to the data store.\n * <p>\n * The version instant, correction instant and identifier will be set in the response.\n *\n * @param <T> the configuration element type\n * @param document the document, not null\n * @return the added document, may be an update of the input document, not null\n * @throws IllegalArgumentException if the request is invalid\n */\n <T> ConfigDocument<T> add(ConfigDocument<T> document);\n\n /**\n * Updates a document in the data store.\n * <p>\n * The specified document must contain the unique identifier.\n * If the identifier has a version it must be the latest version.\n * The version instant, correction instant and identifier will be set in the response.\n * <p>\n * A full master will store detailed historic information on documents.\n * Thus, an update does not prevent retrieval or correction of an earlier version.\n * \n * @param <T> the configuration element type\n * @param document the document, not null\n * @return the current state of the document, may be an update of the input document, not null\n * @throws IllegalArgumentException if the request is invalid\n * @throws DataNotFoundException if there is no document with that unique identifier\n */\n <T> ConfigDocument<T> update(ConfigDocument<T> document);\n\n /**\n * Corrects a document in the data store.\n * <p>\n * A full master will store detailed historic information on documents\n * and will support correction of each version.\n * To update a document with a new version, use {@link #update}.\n * To correct a previously stored version, use this method.\n * Older versions and corrections can be accessed using a versioned identifier.\n * <p>\n * The specified document must contain the unique identifier.\n * The unique identifier must specify the last correction of a specific version of the document.\n * \n * @param <T> the configuration element type\n * @param document the document, not null\n * @return the corrected state of the version, may be an update of the input document, not null\n * @throws IllegalArgumentException if the request is invalid\n * @throws DataNotFoundException if there is no document with that unique identifier\n */\n <T> ConfigDocument<T> correct(ConfigDocument<T> document);\n\n /**\n * Queries the meta-data about the master.\n * <p>\n * This can return information that is useful for drop-down lists.\n * \n * @param request the search request, not null\n * @return the requested meta-data, not null\n */\n ConfigMetaDataResult metaData(ConfigMetaDataRequest request);\n\n /**\n * Searches for configuration documents matching the specified search criteria.\n * \n * @param <T> the configuration element type\n * @param request the search request, not null\n * @return the search result, not null\n * @throws IllegalArgumentException if the request is invalid\n */\n <T> ConfigSearchResult<T> search(ConfigSearchRequest<T> request);\n\n /**\n * Queries the history of a single piece of configuration.\n * <p>\n * The request must contain an object identifier to identify the configuration.\n * \n * @param <T> the configuration element type\n * @param request the history request, not null\n * @return the configuration history, not null\n * @throws IllegalArgumentException if the request is invalid\n */\n <T> ConfigHistoryResult<T> history(ConfigHistoryRequest<T> request);\n\n /**\n * Removes a document from the data store.\n * <p>\n * A full master will store detailed historic information on documents.\n * Thus, a removal does not prevent retrieval or correction of an earlier version.\n * <p>\n * If the identifier has a version it must be the latest version.\n * \n * @param uniqueId the unique identifier to remove, not null\n * @throws IllegalArgumentException if the request is invalid\n * @throws DataNotFoundException if there is no document with that unique identifier\n */\n void remove(final UniqueId uniqueId);\n\n}",
"public interface SearchAdminBean\n{\n\n\t/**\n\t * Get the Title of the index\n\t * \n\t * @return\n\t */\n\tString getTitle();\n\n\t/**\n\t * get an HTML fragment representing the status of the index\n\t * \n\t * @param statusFormatString\n\t * {0} is the Last Load time {1} is how long it took to load {2} is\n\t * the current worker node (none if none) {3} is the Latest time of\n\t * completion of the worker\n\t * @return\n\t * @throws PermissionException\n\t * if the user does not have permissions to perform the action\n\t * @deprecated\n\t */\n\tString getIndexStatus(String statusFormatString) throws PermissionException;\n\n\t/**\n\t * @param rowFormat\n\t * {0} is the worker name {1} is the latest time the node should\n\t * reaapear, after which time the node will be considered overdue and\n\t * removed from the list of worker nodes.\n\t * @return\n\t * @deprecated\n\t */\n\tString getWorkers(String rowFormat);\n\n\t/**\n\t * Get admin options formatted according to pattern\n\t * \n\t * @param adminOptionsFormat\n\t * format pattern {0} is the URL, {1} is the text\n\t * @return\n\t * @deprecated\n\t */\n\tString getAdminOptions(String adminOptionsFormat);\n\n\t/**\n\t * get a BIG list of all documents in the index\n\t * \n\t * @param rowFormat\n\t * @return\n\t * @deprecated\n\t */\n\tString getIndexDocuments(String rowFormat);\n\n\t/**\n\t * get a list of Global Master documents\n\t * \n\t * @param rowFormat\n\t * @return\n\t * @deprecated\n\t */\n\tString getGlobalMasterDocuments(String rowFormat);\n\n\t/**\n\t * get a list of Site Master Documents\n\t * \n\t * @param rowFormat\n\t * @return\n\t * @deprecated\n\t */\n\tString getSiteMasterDocuments(String rowFormat);\n\n\t/**\n\t * get feedback from the command\n\t * @return\n\t */\n\tString getCommandFeedback();\n\n\t/**\n\t * \n\t * @param rowFormat\n\t * @return\n\t * @deprecated\n\t */\n\tString getSegmentInfo(String rowFormat);\n\n /**\n * @return all of the names of the different index builders\n */\n Set<String> getIndexBuilderNames();\n\n\t/**\n\t * @return get a list of options for the admin user that only apply\n * to the default index or to all index builders\n\t */\n\tList<AdminOption> getDefaultOptions();\n\n\t/**\n\t * @return get a list of options for the admin user that only apply\n * to the one index builder at a time (requires selecting which\n * index builder to use)\n\t */\n\tList<AdminOption> getIndexSpecificOptions();\n\n\t/**\n\t * get the search status\n\t * @return\n\t */\n\tList<SearchStatus> getSearchStatus();\n\n\t/**\n\t * get a list of master objects \n\t * @return\n\t */\n\tList<MasterRecord> getGlobalMasterRecords();\n\n\t/**\n\t * get a list of site master records\n\t * @return\n\t */\n\tList<MasterRecord> getSiteMasterRecords();\n\n\t/**\n\t * get a list of segments\n\t * @return\n\t */\n\tList<Segment> getSegments();\n\n\t/**\n\t * get a list of worker threads\n\t * @return\n\t */\n\tList<WorkerThread> getWorkerThreads();\n\n\t/**\n\t * @return\n\t */\n\tboolean isRedirectRequired();\n\n\t/**\n\t * returns true if search isEnabled\n\t * @return\n\t */\n\tboolean isEnabled();\n}",
"public interface DocbookTemplateService {\n\n /**\n * Creates a Docbook XML from a {@link Resume}.\n *\n * @param resume The resume to fill the template\n * @param levels List of available levels\n * @param photoFilename The photoFilename that is used in the template\n * @return The Docbook XML as {@link String}\n * @throws DocbookCreationException\n */\n String createDocbookXml(Resume resume, List<Level> levels, String photoFilename, Boolean anonymous)\n throws DocbookCreationException;\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set a field's value by id. Primitive types must be "boxed" in the appropriate object wrapper type. | public void setFieldValue(int fieldId, Object value); | [
"public void setField(int fieldId, Object value)\n {\n instructions.add(new Instruction(OP_SET,fieldId,value));\n }",
"public void setIdField(int value) {\n this.idField = value;\n }",
"void setValue(Object object, String fieldName, Object value);",
"protected abstract void setFieldValue(Field field, Object value) throws IllegalAccessException;",
"public void setValueForId(String id, Object value) {\n for (IArgument a : this) {\n if (a.getId().equals(id) && !a.isReadOnly()) {\n a.setValue(value);\n }\n }\n }",
"public abstract <T> void setField(T value, int pos);",
"public void setFieldId(String fieldId);",
"@Field\n public void setIdField(String idField) {\n this.idField = idField;\n }",
"protected void setFieldWithObject(int fieldNum, Object val) {\r\n\r\n\t\tSystem.out.println(\"setFieldWithObject \" + fieldNum + \" \" + val);\r\n\t\tif (val == null) {\r\n\t\t\tsetFieldWithString(fieldNum, \"\");\r\n\t\t} else {\r\n\t\t\tsetFieldWithString(fieldNum, val.toString());\r\n\t\t}\r\n//\t\tswitch (fieldNum) {\r\n//\t\t//case 0: setBooleanOperator(1 - ((Integer) val).intValue());\tbreak;\r\n//\t\t//case 1: setBooleanOperator(((Integer) val).intValue());\t\tbreak;\r\n//\r\n//\t\tdefault:\r\n//\t\t}\r\n\t}",
"void setValue(String childID, Object value) throws ConverterException, IllegalAccessException;",
"void setInt( Rtbl rtbl, java.lang.reflect.Field f, Object val )\n throws RdbException\n {\n if( val == null ){\n try{\n f.setInt( rtbl, 0 );\n }\n catch( IllegalAccessException ex ){\n throw new RdbException( \"Cannot set integer in \" +\n rtbl.getClass() + \" field \" +\n f, ex );\n }\n return;\n }\n if( val.getClass() == Integer.class ){\n try{\n f.setInt( rtbl, ((Integer)val).intValue() );\n }\n catch( IllegalAccessException ex ){\n throw new RdbException( \"Cannot set integer in \" +\n rtbl.getClass() + \" field \" +\n f, ex );\n }\n return;\n }\n int v = Integer.parseInt( String.valueOf( val ).trim(), 10 );\n try{\n f.setInt( rtbl, v );\n }\n catch( IllegalAccessException ex ){\n throw new RdbException( \"Cannot set integer in \" +\n rtbl.getClass() + \" field \" +\n f, ex );\n }\n }",
"private void setObjFldVal(Object object, String fldName, Object fldVal)\r\n {\r\n try\r\n {\r\n Field field = object.getClass().getField(fldName);\r\n field.set(object, fldVal);\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }",
"<T> void setField(final T object, final String value) {\n\t\tObject typedValue = valueOfType(value, field.getType());\n\t\tSane.invokeMethod(setter, object, typedValue);\n\t}",
"public void setValue(String fieldName, Object value) {\n try {\n Field field = FieldUtils.getField(object.getClass(), fieldName, true);\n if (field != null) {\n FieldUtils.writeField(field, object, value, true);\n } else {\n logger.error(\"Unable to set value on field because the field does not exits on class: \" + object.getClass());\n }\n } catch (IllegalAccessException e) {\n logger.error(e);\n }\n }",
"public Object getFieldValue(String fieldId);",
"public Object getFieldValue(int fieldId);",
"void updateElement(String type, String id, String field, Number value);",
"public void addFieldValue(int fieldId, Object value)\n {\n instructions.add(new Instruction(OP_ADD,fieldId,value));\n }",
"public void setFieldId(Integer fieldId) {\n this.fieldId = fieldId;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the fxSpotMargen property. | public void setFxSpotMargen(double value) {
this.fxSpotMargen = value;
} | [
"public void setFxUfSpot(double value) {\r\n this.fxUfSpot = value;\r\n }",
"public double getFxSpotMargen() {\r\n return fxSpotMargen;\r\n }",
"public void setFxSpotCliente(double value) {\r\n this.fxSpotCliente = value;\r\n }",
"public void setFxFwdMargen(double value) {\r\n this.fxFwdMargen = value;\r\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder setVar230(java.lang.Float value) {\n validate(fields()[231], value);\n this.var230 = value;\n fieldSetFlags()[231] = true;\n return this;\n }",
"public void setFxUfTasaMargen(double value) {\r\n this.fxUfTasaMargen = value;\r\n }",
"public void setSpotExponent(float exp) {\n\t\tthis.spotExponent = exp;\n\t\tthis.hasSpotExponent = true;\n\t\tenable(this);\n\t}",
"public void setSpot(ParkingSpot spot) {\n this.spot = spot;\n }",
"void setCurrentFare(double fare) {\n this.currentFare = fare;\n }",
"public void setJumpSpot(int spot)\n{\n jumpSpot = spot;\n}",
"public void setSpotsize(float spotsize) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 248, spotsize);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 204, spotsize);\n\t\t}\n\t}",
"void setFx(Fx fx);",
"public void setSetpoint(float setpoint) {\r\n m_setpoint = setpoint;\r\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder setVar176(java.lang.Float value) {\n validate(fields()[177], value);\n this.var176 = value;\n fieldSetFlags()[177] = true;\n return this;\n }",
"public void setFabLoc(PathPoint newLoc) {\n\n mFab.setTranslationX(newLoc.mX);\n\n\n if (mRevealFlag)\n mFab.setTranslationY(newLoc.mY - (mFabSize / 2));\n else\n mFab.setTranslationY(newLoc.mY);\n }",
"void setFloat(float val);",
"public void setSpotCutOff(float cutoff) {\n\t\tthis.spotCutoff = cutoff;\n\t\tthis.hasSpotCutoff = true;\n\t\tenable(this);\n\t}",
"public com.dj.model.avro.LargeObjectAvro.Builder setVar131(java.lang.Float value) {\n validate(fields()[132], value);\n this.var131 = value;\n fieldSetFlags()[132] = true;\n return this;\n }",
"public void setFat(double fat);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Activates the remove episode template | private void action_remove_episode(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
TemplateResult result = new TemplateResult(getServletContext());
if (SecurityLayer.checkSession(request) != null) {
User user = getDataLayer().getUser(SecurityLayer.checkNumeric((request.getSession().getAttribute("userid")).toString()));
if (user.getGroup().getID() != Group.ADMIN) {
action_error(request, response, "Non hai i permessi per effettuare questa operazione!");
System.err.println("Errore in SeriesManagement.java, nel metodo action_remove_episode: Utente senza permessi da amministratore");
return;
}
request.setAttribute("strip_slashes", new SplitSlashesFmkExt());
request.setAttribute("user", user);
RESTUtility.checkNotifications(user, request, response);
request.setAttribute("series", getDataLayer().getSeries());
request.setAttribute("episodes", RESTSortLayer.sortEpisodeBySeriesAndNumber(getDataLayer().getEpisodes()));
request.setAttribute("backContent_tpl", "removeEpisode.ftl.html");
result.activate("../back/backOutline.ftl.html", request, response);
} else {
//User session is no longer valid
request.setAttribute("error", "Devi essere loggato per eseguire quest'azione!");
result.activate("logIn.ftl.html", request, response);
}
} catch (NumberFormatException ex) {
//User id is not a number
action_error(request, response, "Riprova di nuovo!");
System.err.println("Errore in SeriesManagement.java, nel metodo action_remove_episode: NumberFormatException");
}
} | [
"private void action_delete_episode(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n try {\n TemplateResult result = new TemplateResult(getServletContext());\n if (SecurityLayer.checkSession(request) != null) {\n User user = getDataLayer().getUser(SecurityLayer.checkNumeric((request.getSession().getAttribute(\"userid\")).toString()));\n if (user.getGroup().getID() != Group.ADMIN) {\n action_error(request, response, \"Non hai i permessi per effettuare questa operazione!\");\n System.err.println(\"Errore in SeriesManagement.java, nel metodo action_delete_episode: Utente senza permessi da amministratore\");\n return;\n }\n request.setAttribute(\"user\", user);\n request.setAttribute(\"strip_slashes\", new SplitSlashesFmkExt());\n if (request.getParameterValues(\"episodes\") == null || request.getParameterValues(\"episodes\").length <= 0) {\n request.setAttribute(\"error\", \"Non hai selezionato alcun episodio!\");\n action_remove_episode(request, response);\n return;\n }\n Episode ep;\n for (String e : request.getParameterValues(\"episodes\")) {\n ep = getDataLayer().getEpisode(SecurityLayer.checkNumeric(e));\n if (ep == null) {\n action_error(request, response, \"Riprova di nuovo!\");\n System.err.println(\"Errore in SeriesManagement.java, nel metodo action_delete_episode: un ID di un episodio passato non corrisponde a nessun episodio sul Database\");\n return;\n }\n getDataLayer().removeEpisode(ep);\n }\n\n request.setAttribute(\"success\", \"Rimozione episodi completata!\");\n action_remove_episode(request, response);\n } else {\n //User session is no longer valid\n request.setAttribute(\"error\", \"Devi essere loggato per eseguire quest'azione!\");\n result.activate(\"logIn.ftl.html\", request, response);\n }\n } catch (NumberFormatException ex) {\n //User id or episode number or episode season is not a number\n action_error(request, response, \"Riprova di nuovo!\");\n System.err.println(\"Errore in SeriesManagement.java, nel metodo action_delete_episode: NumberFormatException\");\n }\n\n }",
"private void actionRemoveEpisode() {\r\n\r\n int option = JOptionPane.showConfirmDialog(null,\r\n \"Remove Selected Episode? \\n\" + episodeJTF.getText(),\r\n \"Remove Episode\",\r\n JOptionPane.YES_NO_OPTION);\r\n\r\n if (option == JOptionPane.YES_OPTION) {\r\n\r\n try {\r\n boolean flag = libraryServer.removeEpisode(seriesSeasonJTF.getText(), episodeJTF.getText());\r\n if (flag) {\r\n refreshTree();\r\n System.out.println(\"From server, removed episode, \" + episodeJTF.getText() + \", from the library.\");\r\n }\r\n\r\n } catch (Exception ex) {\r\n System.out.println(\"Exception removing Episode: \" + ex.getMessage());\r\n ex.printStackTrace();\r\n }\r\n }\r\n }",
"private void action_delete_channelEpisode(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n try {\n TemplateResult result = new TemplateResult(getServletContext());\n if (SecurityLayer.checkSession(request) != null) {\n User user = getDataLayer().getUser(SecurityLayer.checkNumeric((request.getSession().getAttribute(\"userid\")).toString()));\n if (user.getGroup().getID() != Group.ADMIN) {\n action_error(request, response, \"Non hai i permessi per effettuare questa operazione!\");\n System.err.println(\"Errore in SeriesManagement.java, nel metodo action_delete_channelEpisode: Utente senza permessi da amministratore\");\n return;\n }\n request.setAttribute(\"where\", \"back\");\n request.setAttribute(\"user\", user);\n request.setAttribute(\"strip_slashes\", new SplitSlashesFmkExt());\n if (!(checkChannelEpisodeInputData(request, response))) {\n request.setAttribute(\"error\", \"Uno dei campi è vuoto!\");\n action_remove_channelEpisode(request, response);\n return;\n }\n if (SecurityLayer.checkNumeric(request.getParameter(\"channel\")) == 0) {\n request.setAttribute(\"error\", \"Non hai selezionato alcun canale!\");\n action_remove_channelEpisode(request, response);\n return;\n } else if (SecurityLayer.checkNumeric(request.getParameter(\"episode\")) == 0) {\n request.setAttribute(\"error\", \"Non hai selezionato alcun episodio!\");\n action_remove_channelEpisode(request, response);\n return;\n }\n Channel c = getDataLayer().getChannel(SecurityLayer.checkNumeric(request.getParameter(\"channel\")));\n Episode e = getDataLayer().getEpisode(SecurityLayer.checkNumeric(request.getParameter(\"episode\")));\n if (c == null || e == null) {\n action_error(request, response, \"Riprova di nuovo!\");\n System.err.println(\"Errore in SeriesManagement.java, nel metodo action_delete_channelEpisode: gli ID di canale o episodio passati non corrispondono a nessun canale o episodio sul Database\");\n return;\n }\n Calendar cl = Calendar.getInstance();\n cl.clear();\n cl.set(0, 0, 0, 0, 0, 0);\n cl.setTimeInMillis((SecurityLayer.checkDate(request.getParameter(\"date\")).getTimeInMillis() + SecurityLayer.checkTime(request.getParameter(\"time\"))));\n ChannelEpisode ce = getDataLayer().getChannelEpisode(c, e, cl.getTime());\n if (ce == null) {\n request.setAttribute(\"error\", \"Questo canale e questo episodio non sono associati!\");\n action_remove_channelEpisode(request, response);\n return;\n }\n getDataLayer().removeChannelEpisode(ce);\n\n request.setAttribute(\"success\", \"Canale ed episodio separati correttamente!\");\n action_remove_channelEpisode(request, response);\n } else {\n //User session is no longer valid\n request.setAttribute(\"error\", \"Devi essere loggato per eseguire quest'azione!\");\n result.activate(\"logIn.ftl.html\", request, response);\n }\n } catch (NumberFormatException ex) {\n //User id or channel id or episode id is not a number or date is not valid or time is not valid\n action_error(request, response, \"Riprova di nuovo!\");\n System.err.println(\"Errore in SeriesManagement.java, nel metodo action_delete_channelEpisode: NumberFormatException\");\n }\n }",
"private void action_remove_channelEpisode(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n try {\n TemplateResult result = new TemplateResult(getServletContext());\n if (SecurityLayer.checkSession(request) != null) {\n User user = getDataLayer().getUser(SecurityLayer.checkNumeric((request.getSession().getAttribute(\"userid\")).toString()));\n if (user.getGroup().getID() != Group.ADMIN) {\n action_error(request, response, \"Non hai i permessi per effettuare questa operazione!\");\n System.err.println(\"Errore in SeriesManagement.java, nel metodo action_remove_channelEpisode: Utente senza permessi da amministratore\");\n return;\n }\n request.setAttribute(\"where\", \"back\");\n request.setAttribute(\"user\", user);\n RESTUtility.checkNotifications(user, request, response);\n request.setAttribute(\"strip_slashes\", new SplitSlashesFmkExt());\n request.setAttribute(\"channels\", getDataLayer().getChannels());\n request.setAttribute(\"episodes\", RESTSortLayer.sortEpisodeBySeriesAndNumber(getDataLayer().getEpisodes()));\n request.setAttribute(\"backContent_tpl\", \"removeChannelEpisode.ftl.html\");\n result.activate(\"../back/backOutline.ftl.html\", request, response);\n } else {\n //User session is no longer valid\n request.setAttribute(\"error\", \"Devi essere loggato per eseguire quest'azione!\");\n result.activate(\"logIn.ftl.html\", request, response);\n }\n } catch (NumberFormatException ex) {\n //User id is not a number\n action_error(request, response, \"Riprova di nuovo!\");\n System.err.println(\"Errore in SeriesManagement.java, nel metodo action_remove_channelEpisode: NumberFormatException\");\n }\n }",
"private void delete(ActionEvent event) {\n deleteTask = taskTable.getSelectionModel().getSelectedItem();\n Parent parent = null;\n FXMLLoader fxmlLoader = new FXMLLoader();\n fxmlLoader.setLocation(getClass().getResource(\"/view/DeleteWindow.fxml\"));\n try {\n parent = fxmlLoader.load();\n } catch (IOException e) {\n e.printStackTrace();\n }\n deleteStage = new Stage();\n Scene scene = new Scene(parent);\n parent.getStylesheets().add(\"css/btn.css\");\n deleteStage.setScene(scene);\n deleteStage.initModality(Modality.WINDOW_MODAL);\n Window window = ((Node) event.getSource()).getScene().getWindow();\n deleteStage.initOwner(window);\n deleteStage.show();\n\n deleteStage.setOnHiding(e -> load());\n }",
"@FXML\n void confirmDelete () {\n\n// cycles through all Elements to be deleted\n for (Element element : app.deleteElements) {\n\n// if it is a Timeline, it removes it\n if (element instanceof Timeline) {\n app.timelines.remove(element);\n }\n\n// if it is an Event, it finds the relevant Timeline, then removes the Event\n if (element instanceof Event) {\n for (Timeline timeline : app.timelines) {\n if (timeline == ((Event) element).timeline) {\n timeline.events.remove(element);\n }\n }\n }\n }\n\n exitDeleteWindow();\n\n// creates a message for the user\n setMessage(\"Exited Delete Mode: \" + app.deleteElements.size() + \" elements deleted\", false);\n }",
"private void deletePanel()\n\t{\n\t\tdeleteView = new JPanel();\n\t\tdeleteView.setBackground(Color.WHITE);\n\t\t\n\t\tJButton delete = new JButton(\"Delete Events Occuring During Selected Hour?\");\n\t\tchangeFontSize(delete, 10);\n\t\tformatButton(delete);\n\t\tdeleteView.add(delete, BorderLayout.NORTH);\n\t\t\n\t}",
"void deletePodcast(ActionEvent event){\n //removes context menu that was displaed\n cm.hide();\n //Creates and shows a pop-up that will prompt user to decide what happens to podcast\n Alert alert = new Alert(Alert.AlertType.NONE, \"Delete \"+this.podcast.getTitle()+\"?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.showAndWait();\n\n //CASE: YES, deletes podcast\n if(alert.getResult() == ButtonType.YES){\n if(model.DEBUG)\n System.err.println(\"[LibCell] Deleting \"+this.podcast.getTitle());\n\n Main.model.deletePodcast(this.podcast);\n //CASE: NO, hides alert\n } else {\n alert.hide();\n }\n }",
"public void updateDeleteButtonClicked(){\n loadNewScene(apptStackPane, \"Update_Delete_Appointment.fxml\");\n }",
"@FXML\n private void editTemplate(ActionEvent event) {\n final PresentationEngine presentation = Presentations.getCurrentDisplayedPresentation();\n\n if (presentation != null) {\n final var engine = new TemplateEngine();\n engine.setWorkingDirectory(presentation.getWorkingDirectory());\n\n this.showTemplateBuilder(engine);\n }\n }",
"private void deleteSchedule() {\n\n if(clientSession.isTeacherRole())\n return;\n\n LinkedTreeMap scheduleItemMap = (LinkedTreeMap) packet.getArgument(\"scheduleItem\");\n SchedulerItem schedulerItem = SchedulerItem.parse(scheduleItemMap);\n\n LinkedTreeMap scheduleMap = (LinkedTreeMap) packet.getArgument(\"schedule\");\n Schedule schedule = Schedule.parse(scheduleMap);\n\n if(schedulerItem == null || schedule == null)\n return;\n\n if(clientDatabase.removeSchedule(schedule)) {\n\n Packet deleteScheduleConfirmationPacket = new PacketBuilder()\n .ofType(PacketType.DELETESCHEDULE.getConfirmation())\n .addArgument(\"uuid\", schedulerItem.getUuid())\n .addArgument(\"scheduleItem\", schedulerItem)\n .build();\n\n clientRepository.sendPacketIO(channel, deleteScheduleConfirmationPacket);\n\n } else {\n\n Packet deleteScheduleErrorPacket = new PacketBuilder()\n .ofType(PacketType.REMOVESCHEDULEITEM.getError())\n .addArgument(\"uuid\", schedulerItem.getUuid())\n .addArgument(\"message\", \"No se ha podido eliminar ese schedule\")\n .build();\n\n clientRepository.sendPacketIO(channel, deleteScheduleErrorPacket);\n\n }\n\n }",
"public void removeBtnHandler(MouseEvent event){\n RemoveScreenStarter r = new RemoveScreenStarter(); //Open remove windwo\n r.start(null);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n try {\n if (e.getActionCommand().equals(\"remove\")) {\n if (rdbtnAppointment.isSelected()) {\n menu.removeAppointment(Integer.parseInt(index.getText()));\n } else if (rdbtnAccomplishment.isSelected()) {\n menu.removeAccomplishment(Integer.parseInt(index.getText()));\n } else if (rdbtnTask.isSelected()) {\n menu.removeToDo(Integer.parseInt(index.getText()));\n }\n journalWindow.displayAchievements();\n journalWindow.displayToDos();\n journalWindow.displayAppointments();\n }\n } catch (InvalidTaskNumberException exception) {\n JOptionPane.showMessageDialog(null, \"Invalid task number, try again.\");\n }\n }",
"void removeFromQueue(ActionEvent event){\n model.getQueueList().remove(podcast);\n podcast.setQueued(false);\n podcast.togglePlaying();\n cm.hide();\n }",
"public void remove(View view)\n {\n Intent intent = new Intent(this, removeEventActivity.class);\n startActivity(intent);\n }",
"public void onPressRemoveFromCalendar() {\r\n new ActionConfirmationFragment(this, this)\r\n .setTitle(getString(R.string.event_confirmation_delete_event_calendar_entry))\r\n .setMessage(getString(R.string.action_confirmation_cannot_be_undone))\r\n .setRequestID(REQUEST_CONFIRMATION_DELETE_EVENT_CALENDAR_ENTRY)\r\n .show(getSupportFragmentManager(), null);\r\n }",
"public void deleteTask() {\r\n int selected = list.getSelectedIndex();\r\n if (selected >= 0) {\r\n Task task = myTodo.getTaskByIndex(selected + 1);\r\n myTodo.getTodo().remove(task.getHashKey());\r\n playSound(\"click.wav\");\r\n }\r\n todoListGui();\r\n }",
"public ITemplateStep removeStep(ITemplateStep stepToRemove);",
"public void removeEpisode(Episodes epi){\n\t\tepDB.removeMedia(epi);\n\t\tprocessEvent(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, \"Remove Episode\"));\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Combines files specified in resources config json and creates a nonminified and minified version for every walltime timezone. Third party libraries should include "min" version along with nonminified in its directory in auraresources. | public void generate() throws IOException {
LOG.info("Generating combined third party libraries resource files");
Path resourcesSourceDir = Paths.get(AuraImplFiles.AuraResourcesSourceDirectory.getPath());
Path destDir = Paths.get(AuraImplFiles.AuraResourcesClassDirectory.getPath());
Path configPath = resourcesSourceDir.resolve(CONFIG_FILE);
BufferedReader br = Files.newBufferedReader(configPath, StandardCharsets.UTF_8);
Gson gson = new Gson();
ResourcesConfig config = gson.fromJson(br, ResourcesConfig.class);
List<String> existingTimezones = Lists.newArrayList();
// Create destination folder if doesn't already exist
File destination = destDir.toFile();
if (!destination.exists()) {
destination.mkdirs();
} else if (!destination.isDirectory()) {
throw new IOException(destination.getPath() + " is supposed to be a directory");
}
Path walltimeLocaleDirectory = resourcesSourceDir.resolve(config.walltimeLocaleDir);
try (DirectoryStream<Path> directoryStream = Files.newDirectoryStream(walltimeLocaleDirectory)) {
for (Path path : directoryStream) {
String fileName = path.getFileName().toString();
if (!fileName.endsWith(".js")) {
continue;
}
String ending = fileName.substring(fileName.indexOf("_"), fileName.length());
int extIndex = ending.lastIndexOf(".");
String timezone = ending.substring(1, extIndex);
if (timezone.endsWith(".min")) {
// skip minified files to prevent duplicates
continue;
}
existingTimezones.add(timezone.replace("-", "/"));
}
}
LOG.info("Generating equivalent timezones json");
String timezonesJson = generateEquivalentTimezonesJson(existingTimezones, gson);
Files.write(destDir.resolve("timezones.json"), timezonesJson.getBytes());
LOG.info("Finished generating resource files in " + destDir.toString());
} | [
"private List<String> findResourcesToMerge(HttpServletRequest request) {\n \n String contextPath = request.getContextPath();\n \n String requestURI = request.getRequestURI(); //w/o hostname, starts with context. eg. /context/path/subpath/a,b,/anotherpath/c.js\n \n String extension = Utils.detectExtension(requestURI);\n \n logger.info(\"Detected extension : \" + extension);\n \n requestURI = requestURI.replace(contextPath, \"\").replace(extension, \"\");//remove the context path & ext. will become /path/subpath/a,b,/anotherpath/c\n \n String[] resourcesPath = requestURI.split(\",\");\n \n List<String> resources = new ArrayList<String>();\n \n String currentPath = \"/\"; //default\n \n for (String filePath : resourcesPath) {\n if (filePath == null) continue;\n \n if(filePath.startsWith(\"./\")){\n filePath = filePath.replaceFirst(\"./\",\"\");\n }\n \n if(filePath.contains(\"/./\")){\n filePath = filePath.replaceAll(\"/./\",\"\");\n }\n \n String path = \"\";\n \n if (filePath.startsWith(\"/\")) { //absolute\n path = filePath + extension;\n } else if(filePath.startsWith(\"../\")){\n while(filePath.startsWith(\"../\")){\n filePath = filePath.replaceFirst(\"../\",\"\");\n currentPath = new File(currentPath).getParent();\n }\n path = currentPath + File.separator + filePath + extension;\n }else{\n path = currentPath + File.separator + filePath + extension;\n }\n \n path = path.replaceAll(\"//\",\"/\");\n \n currentPath = new File(path).getParent();\n \n logger.info(\"Adding path: \" + path + \"(Path for next relative resource will be : \" + currentPath + \")\");\n \n if(!resources.contains(path)){\n resources.add(path);\n }\n }\n logger.info(\"Found \" + resources.size() + \" resources to process and merge.\");\n return resources;\n }",
"private void createLocalizeFilesJson(Map<String, LocalFile> localFiles) throws IOException {\n LOG.debug(\"Create and copy {}\", Constants.Files.LOCALIZE_FILES);\n Location location = createTempLocation(Constants.Files.LOCALIZE_FILES);\n\n // Serialize the list of LocalFiles, except the one we are generating here, as this file is used by AM only.\n // This file should never use LocationCache.\n try (Writer writer = new OutputStreamWriter(location.getOutputStream(), StandardCharsets.UTF_8)) {\n new GsonBuilder().registerTypeAdapter(LocalFile.class, new LocalFileCodec())\n .create().toJson(localFiles.values(), new TypeToken<List<LocalFile>>() {\n }.getType(), writer);\n }\n LOG.debug(\"Done {}\", Constants.Files.LOCALIZE_FILES);\n localFiles.put(Constants.Files.LOCALIZE_FILES, createLocalFile(Constants.Files.LOCALIZE_FILES, location));\n }",
"protected void initMergedResources()\n {\n // Tell fiftyfive-wicket-js where to find custom JS libs for this app\n // (i.e. those that can be referenced via //= require <lib>).\n // This corresponds to src/main/resources/.../scripts.\n JavaScriptDependencySettings.get().addLibraryPath(\n WicketApplication.class, \"scripts\"\n );\n \n // Mount merged JS\n new MergedJavaScriptBuilder()\n .setPath(\"/scripts/all.js\")\n .addJQueryUI()\n .addLibrary(\"cookies\")\n .addLibrary(\"strftime\")\n .addLibrary(\"55_utils\")\n .addLibrary(\"jquery.55_utils\")\n .addAssociatedScript(BasePage.class)\n .addWicketAjaxLibraries()\n .build(this);\n }",
"public static void mergeAllFiles() {\n\n\t\tProperties configProperties = BytesStreamsAndHexFileUtil.getConfigProperties();\n\t\tBytesStreamsAndHexFileUtil.log(\"================================================\");\n\t\tBytesStreamsAndHexFileUtil.log(\"Started Programming: 1. Merging input files... \");\n\t\tBytesStreamsAndHexFileUtil.log(\"================================================\");\n\t\t// Input File#1 SX3 Base firmware file (.img)\n\t\tFile baseImageFile = BytesStreamsAndHexFileUtil.getBaseImageFile(configProperties);\n\t\tbyte[] readBaseFirmwareImgFileByteData = BytesStreamsAndHexFileUtil.readBaseFirmwareImgFile(baseImageFile);\n\n\t\t// check foe SX3 Configuration json file, if not exist do not merge.\n\t\tFile sx3ConfigJsonFile = BytesStreamsAndHexFileUtil.getConfigJsonFile();\n\t\tif (!sx3ConfigJsonFile.exists()) {\n\t\t\tBytesStreamsAndHexFileUtil.log(\"SX3 Configuration Json file not found, Unable to create merge file\");\n\t\t\treturn;\n\t\t}\n\t\t// Input File#2 SX3 Configuration Table Raw Data File (Generated hex\n\t\t// file)\n\t\tFile sx3ConfigHexFile = SX3ConfigHexFileUtil.getSX3ConfigHexFile();\n\t\tbyte[] sx3ConfigUtilityDataOutputByteData = new byte[0];\n\t\tif (sx3ConfigHexFile.exists()) {\n\t\t\tsx3ConfigUtilityDataOutputByteData = BytesStreamsAndHexFileUtil.readAlternateImpl(sx3ConfigHexFile);\n\t\t} else {\n\t\t\tBytesStreamsAndHexFileUtil.log(\"Generated Hex file not found. \" + SX3PropertiesConstants.NO_PART_OF_DATA);\n\t\t}\n\n\t\t// Input File#3 VideoSourceConfig files uploaded to GUI by user.\n\t\t// This file should be converted to hex.\n\t\tbyte[] videoSourceConfigByteData = new byte[0];\n\t\tList<File> videoSoureConfigFiles = SX3ConfigHexFileUtil.getVideoSoureConfigFiles(sx3ConfigJsonFile);\n\t\tif (videoSoureConfigFiles != null && !videoSoureConfigFiles.isEmpty()) {\n\t\t\tfor (File videoSourceConfigFile : videoSoureConfigFiles) {\n\t\t\t\tif (videoSourceConfigFile != null && videoSourceConfigFile.exists()) {\n\t\t\t\t\tFile videoSourceHexFile = SX3ConfigHexFileUtil.getVideoSourceConfigHexFile(\n\t\t\t\t\t\t\tBytesStreamsAndHexFileUtil.getFileNameWithoutExtension(videoSourceConfigFile));\n\t\t\t\t\tvideoSourceConfigByteData = BytesStreamsAndHexFileUtil.readAlternateImpl(videoSourceHexFile);\n\t\t\t\t} else {\n\t\t\t\t\tBytesStreamsAndHexFileUtil\n\t\t\t\t\t\t\t.log(SX3PropertiesConstants.VIDEO_SOURCE_CONFIG_FILE_PATH_NOT_ADDED_IN_JSON\n\t\t\t\t\t\t\t\t\t+ SX3PropertiesConstants.NO_PART_OF_DATA);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tBytesStreamsAndHexFileUtil.log(SX3PropertiesConstants.NO_FILE_PATHS_ADDED_FOR_VIDEO_SOURCE_CONFIG\n\t\t\t\t\t+ SX3PropertiesConstants.NO_PART_OF_DATA);\n\t\t}\n\n\t\t// Input File#4 FPGA Bit File (.bit)\n\t\tFile fifoBitFile = getFifoMasterGitFile(sx3ConfigJsonFile);\n\t\t\tbyte[] fifoMasterByteData = BytesStreamsAndHexFileUtil.readAlternateImpl(fifoBitFile);\n\t\t\n\t\t// Merge all the byte data's and write it into final .img file\n\t\ttry {\n\t\t\tbyte[] combinedData = addAll(readBaseFirmwareImgFileByteData, sx3ConfigUtilityDataOutputByteData,\n\t\t\t\t\tvideoSourceConfigByteData, fifoMasterByteData);\n\t\t\tFile sx3MergedHexFile = getSX3MergedHexFile();\n\t\t\tBytesStreamsAndHexFileUtil.write(combinedData, sx3MergedHexFile);\n\t\t} catch (Exception e) {\n\t\t\tBytesStreamsAndHexFileUtil.log(e);\n\t\t}\n\n\t}",
"public void ConcatenateScripts() throws IOException {\n \n \t\tDenizen plugin = (Denizen) Bukkit.getPluginManager().getPlugin(\"Denizen\");\t\t\n \t\t\n \t\ttry {\n \t\t\n \t\tPrintWriter pw = new PrintWriter(new FileOutputStream(plugin.getDataFolder() + File.separator + \"read-only-scripts.yml\"));\n \t\tFile file = new File(plugin.getDataFolder() + File.separator + \"scripts\");\n \t\tFile[] files = file.listFiles();\n \t\tfor (int i = 0; i < files.length; i++) {\n \n \t\t\tString fileName = files[i].getName();\n\t\t\tif (fileName.substring(fileName.length() - 4, fileName.length() - 1).equalsIgnoreCase(\"YML\")) {\n \t\t\t\n \t\t\tSystem.out.println(\"Processing \" + files[i].getPath() + \"... \");\n \t\t\tBufferedReader br = new BufferedReader(new FileReader(files[i]\n \t\t\t\t\t.getPath()));\n \t\t\tString line = br.readLine();\n \t\t\twhile (line != null) {\n \t\t\t\tpw.println(line);\n \t\t\t\tline = br.readLine();\n \t\t\t}\n \t\t\tbr.close();\n \t\t\t\n \t\t\t}\n \t\t}\n \t\tpw.close();\n \t\tSystem.out.println(\"OK! Scripts loaded!\");\n \t\t\n \t\t} catch (Throwable error) {\n \t\t\tSystem.out.println(\"Woah! No scripts to load!\");\t\t\n \t\t}\n \t\t\n \t}",
"public void copyResources() throws IOException {\r\n\t\t\r\n\t\tList<String> styleFiles = Arrays.asList(\"seleniumRobot.css\", \"seleniumtests_test1.gif\",\r\n\t\t\t\t\t\t\t\t\t\t\t\"seleniumtests_test2.gif\", \"seleniumtests_test3.gif\", \"seleniumRobot.js\");\r\n\t\tstyleFiles = new ArrayList<>(styleFiles);\r\n\t\t\r\n\t\tif (!SeleniumTestsContextManager.getGlobalContext().getOptimizeReports()) {\r\n\t\t\tstyleFiles.add(\"bootstrap.min.css\");\r\n\t\t\tstyleFiles.add(\"bootstrap.min.css.map\");\r\n\t\t\tstyleFiles.add(\"bootstrap.bundle.min.js\");\r\n\t\t\tstyleFiles.add(\"bootstrap.bundle.min.js.map\");\r\n\t\t\tstyleFiles.add(\"Chart.min.js\");\r\n\t\t\tstyleFiles.add(\"jquery-3.4.1.min.js\");\r\n\t\t\tstyleFiles.add(\"AdminLTE.min.css\");\r\n\t\t\tstyleFiles.add(\"lobsterTwo.css\");\r\n\t\t\tstyleFiles.add(\"css/font-awesome.min.css\");\r\n\t\t\tstyleFiles.add(\"fonts/fontawesome-webfont.eot\");\r\n\t\t\tstyleFiles.add(\"fonts/fontawesome-webfont.svg\");\r\n\t\t\tstyleFiles.add(\"fonts/fontawesome-webfont.ttf\");\r\n\t\t\tstyleFiles.add(\"fonts/fontawesome-webfont.woff\");\r\n\t\t\tstyleFiles.add(\"fonts/fontawesome-webfont.woff2\");\r\n\t\t\tstyleFiles.add(\"fonts/FontAwesome.otf\");\r\n\t\t} \r\n\t\t\r\n\t\tfor (String fileName: styleFiles) {\r\n\t\t\tFile destFile = Paths.get(outputDirectory, RESOURCES_DIR, \"templates\", fileName).toFile();\r\n\t\t\t\r\n\t\t\t// do not copy resources if it has already been done\r\n\t\t\tif (destFile.exists()) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tFileUtils.copyInputStreamToFile(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"reporter/templates/\" + fileName), \r\n\t\t\t\t\tdestFile);\r\n\t\t}\r\n\t}",
"public void extractResources() throws IOException {\n if (!cacheDir.isDirectory()) {\n if (!cacheDir.mkdirs()) {\n //debug(\"Failed to create cachedJar dir for dependent resources: \" + cachedir);\n }\n }\n if (null != resourcesList) {\n //debug(\"jar manifest lists resources: \" + resourcesList + \" for file: \" + pluginJar);\n\n extractJarContents(resourcesList, cacheDir);\n for (final String s : resourcesList) {\n File libFile = new File(cacheDir, s);\n libFile.deleteOnExit();\n }\n } else {\n //debug(\"using resources dir: \" + resDir + \" for file: \" + pluginJar);\n ZipUtil.extractZip(zipFile.getAbsolutePath(), cacheDir, resourcesBasedir, resourcesBasedir);\n }\n }",
"void cleanupResources(List<String> cleanupPatterns) {\n //get list of files from glob patterns\n final String applicationPath = _app.getAppDir().getAbsolutePath();\n final Set<Path> filesFromGlob = new HashSet<>();\n for (String cleanupPattern : cleanupPatterns) {\n filesFromGlob.addAll(FileUtil.getFilePathsByGlob(applicationPath, cleanupPattern));\n }\n\n //filter out files contained in resources\n Set<Path> rsrcs = new HashSet<>();\n for (Resource resource : _app.getAllActiveResources()) {\n rsrcs.add(resource.getLocal().toPath().toAbsolutePath());\n }\n\n final Set<Path> cleanupSet = new HashSet<>();\n for (Path path : filesFromGlob) {\n if (!rsrcs.contains(path)) {\n cleanupSet.add(path);\n }\n }\n\n if (!cleanupSet.isEmpty()) {\n for (Path path : cleanupSet) {\n path.toFile().delete();\n }\n }\n }",
"public static void deOptimizeFiles(String systemFolder, String workingDir) {\r\n File bootOat = new File(MiscUtil.path(systemFolder, \"framework\", \"arm\", \"boot.oat\"));\r\n if (!bootOat.exists()) {\r\n File bootOat64 = new File(MiscUtil.path(systemFolder, \"framework\", \"arm64\", \"boot.oat\"));\r\n if (!bootOat64.exists()) {\r\n LLog.i(bootOat + \" not found\");\r\n return;\r\n } else {\r\n bootOat = bootOat64;\r\n LLog.i(\"Using 64-bit boot oat \" + bootOat);\r\n }\r\n }\r\n String outputJarFolder = MiscUtil.path(workingDir, FOLDER_RESULT_JAR);\r\n try {\r\n bootOat2Jar(bootOat.getAbsolutePath(),\r\n MiscUtil.path(systemFolder, \"framework\"),\r\n outputJarFolder);\r\n } catch (IOException ex) {\r\n LLog.ex(ex);\r\n }\r\n }",
"private void createResourcesJar(ApplicationBundler bundler, Map<String, LocalFile> localFiles) throws IOException {\n if (resources.isEmpty()) {\n return;\n }\n\n LOG.debug(\"Create and copy {}\", Constants.Files.RESOURCES_JAR);\n Location location = createTempLocation(Constants.Files.RESOURCES_JAR);\n bundler.createBundle(location, Collections.<Class<?>>emptyList(), resources);\n LOG.debug(\"Done {}\", Constants.Files.RESOURCES_JAR);\n localFiles.put(Constants.Files.RESOURCES_JAR, createLocalFile(Constants.Files.RESOURCES_JAR, location, true));\n }",
"public static void copyDefaultLanguageFiles() {\n URL main = Main.class.getResource(\"Main.class\");\n try {\n JarURLConnection connection = (JarURLConnection) main.openConnection();\n JarFile jar = new JarFile(URLDecoder.decode( connection.getJarFileURL().getFile(), \"UTF-8\" ));\n Plugin gameBox = Bukkit.getPluginManager().getPlugin(\"LMGTFY\");\n for (Enumeration list = jar.entries(); list.hasMoreElements(); ) {\n JarEntry entry = (JarEntry) list.nextElement();\n if (entry.getName().split(\"/\")[0].equals(\"language\")) {\n String[] pathParts = entry.getName().split(\"/\");\n if (pathParts.length < 2 || !entry.getName().endsWith(\".yml\")) {\n continue;\n }\n File file = new File(gameBox.getDataFolder().toString() + File.separatorChar + entry.getName());\n if (!file.exists()) {\n file.getParentFile().mkdirs();\n gameBox.saveResource(entry.getName(), false);\n }\n }\n }\n jar.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}",
"@Test\n void check_mappingConfigFromJsonFile_key_priority_json_json() {\n MappingConfig externalMappingConfig =\n new MergeableMappingConfigSupplier(new ArrayList<String>() {\n {\n add(\"src/test/resources/json/mappingconfig2.json\");\n add(\"src/test/resources/json/mappingconfig3.json\");\n }\n }).get();\n\n assertEquals(\"com.kobylynskyi.graphql.testconfigjson\", externalMappingConfig.getPackageName());\n assertEquals(externalMappingConfig.getGenerateToString(), true);\n }",
"private void loadResourceMaps() throws BuildException {\n Locale locale = new Locale(bundleLanguage,\n bundleCountry,\n bundleVariant);\n String language = locale.getLanguage().length() > 0\n ? \"_\" + locale.getLanguage() : \"\";\n String country = locale.getCountry().length() > 0\n ? \"_\" + locale.getCountry() : \"\";\n String variant = locale.getVariant().length() > 0\n ? \"_\" + locale.getVariant() : \"\";\n String bundleFile = bundle + language + country + variant;\n processBundle(bundleFile, BUNDLE_SPECIFIED_LANGUAGE_COUNTRY_VARIANT, false);\n \n bundleFile = bundle + language + country;\n processBundle(bundleFile, BUNDLE_SPECIFIED_LANGUAGE_COUNTRY, false);\n \n bundleFile = bundle + language;\n processBundle(bundleFile, BUNDLE_SPECIFIED_LANGUAGE, false);\n \n bundleFile = bundle;\n processBundle(bundleFile, BUNDLE_NOMATCH, false);\n \n //Load default locale bundle files\n //using default file encoding scheme.\n locale = Locale.getDefault();\n \n language = locale.getLanguage().length() > 0\n ? \"_\" + locale.getLanguage() : \"\";\n country = locale.getCountry().length() > 0\n ? \"_\" + locale.getCountry() : \"\";\n variant = locale.getVariant().length() > 0\n ? \"_\" + locale.getVariant() : \"\";\n bundleEncoding = System.getProperty(\"file.encoding\");\n \n bundleFile = bundle + language + country + variant;\n processBundle(bundleFile, BUNDLE_DEFAULT_LANGUAGE_COUNTRY_VARIANT, false);\n \n bundleFile = bundle + language + country;\n processBundle(bundleFile, BUNDLE_DEFAULT_LANGUAGE_COUNTRY, false);\n \n bundleFile = bundle + language;\n processBundle(bundleFile, BUNDLE_DEFAULT_LANGUAGE, true);\n }",
"void compressRDateComponents(final VTimeZone vtz) {\n // Map the similar sub-components together\n final Map<SimilarMapKey, List<Component>> similarMap = new HashMap<>();\n\n for (final Object o: vtz.getObservances()) {\n final Component comp = (Component)o;\n final SimilarMapKey key = new SimilarMapKey(comp);\n\n if (comp.getProperty(Property.RDATE) != null) {\n List<Component> comps = similarMap.get(key);\n\n if (comps == null) {\n comps = new ArrayList<>();\n similarMap.put(key, comps);\n }\n comps.add(comp);\n }\n }\n\n // Merge similar\n for (final List<Component> values: similarMap.values()) {\n if (values.size() > 1) {\n Component mergeTo = null;\n for (final Component mergeFrom: values) {\n if (mergeTo == null) {\n mergeTo = mergeFrom;\n continue;\n }\n\n // Copy RDATE from to and remove from actual timezone\n final Property prop = mergeFrom.getProperty(Property.RDATE);\n mergeTo.getProperties().add(prop);\n vtz.getObservances().remove(mergeFrom);\n }\n }\n }\n }",
"public static Map<String, Map<RDotTxtEntry.RType, Set<RDotTxtEntry>>> mergePackageRTypeResourceMap(List<PackageRTypeResourceMap> packageRTypeResourceMapList) {\n Map<String, Map<RDotTxtEntry.RType, Set<RDotTxtEntry>>> packageRTypeResourceMergeMap = new HashMap<String, Map<RDotTxtEntry.RType, Set<RDotTxtEntry>>>();\n Map<String, AaptResourceCollector> aaptResourceCollectorMap = new HashMap<String, AaptResourceCollector>();\n for (PackageRTypeResourceMap packageRTypeResourceMap : packageRTypeResourceMapList) {\n String packageName = packageRTypeResourceMap.packageName;\n Map<RDotTxtEntry.RType, Set<RDotTxtEntry>> rTypeResourceMap = packageRTypeResourceMap.rTypeResourceMap;\n AaptResourceCollector aaptResourceCollector = null;\n if (aaptResourceCollectorMap.containsKey(packageName)) {\n aaptResourceCollector = aaptResourceCollectorMap.get(packageName);\n } else {\n aaptResourceCollector = new AaptResourceCollector();\n aaptResourceCollectorMap.put(packageName, aaptResourceCollector);\n }\n Iterator<Entry<RDotTxtEntry.RType, Set<RDotTxtEntry>>> iterator = rTypeResourceMap.entrySet().iterator();\n while (iterator.hasNext()) {\n Entry<RDotTxtEntry.RType, Set<RDotTxtEntry>> entry = iterator.next();\n RDotTxtEntry.RType rType = entry.getKey();\n Set<RDotTxtEntry> rDotTxtEntrySet = entry.getValue();\n for (RDotTxtEntry rDotTxtEntry : rDotTxtEntrySet) {\n if (rDotTxtEntry.idType.equals(RDotTxtEntry.IdType.INT)) {\n aaptResourceCollector.addIntResourceIfNotPresent(rType, rDotTxtEntry.name);\n } else if (rDotTxtEntry.idType.equals(RDotTxtEntry.IdType.INT_ARRAY)) {\n aaptResourceCollector.addResource(rType, rDotTxtEntry.idType, rDotTxtEntry.name, rDotTxtEntry.idValue.trim());\n }\n }\n }\n }\n Iterator<Entry<String, AaptResourceCollector>> iterator = aaptResourceCollectorMap.entrySet().iterator();\n while (iterator.hasNext()) {\n Entry<String, AaptResourceCollector> entry = iterator.next();\n packageRTypeResourceMergeMap.put(entry.getKey(), entry.getValue().getRTypeResourceMap());\n }\n return packageRTypeResourceMergeMap;\n }",
"private void compileFiles (java.util.List<File> _list) {\n // Get the source directory and path\n File sourceDirectory = new File (userDir,OsejsCommon.SOURCE_DIR_PATH);\n String sourceDirectoryPath = FileUtils.getPath(sourceDirectory);\n \n // Create the list of XML files either in the list or in the indicated directories\n java.util.List<Object> primaryList = new ArrayList<Object>();\n for (File file : _list) {\n if (file.isDirectory()) {\n for (File subFile : JarTool.getContents(file)) {\n if (OsejsCommon.isEJSfile(subFile)) {\n String relPath = FileUtils.getRelativePath(FileUtils.getPath(subFile), sourceDirectoryPath, false);\n primaryList.add(new PathAndFile(relPath,subFile));\n }\n }\n }\n else {\n if (OsejsCommon.isEJSfile(file)) {\n String relPath = FileUtils.getRelativePath(FileUtils.getPath(file), sourceDirectoryPath, false);\n primaryList.add(new PathAndFile(relPath,file));\n }\n }\n }\n\n // Ask for JAR export after compilation\n JLabel prefixLabel = new JLabel (res.getString(\"EjsConsole.PrefixForExport\"));\n prefixLabel.setBorder(new EmptyBorder(0,3,0,3));\n final JTextField prefixField = new JTextField(compressPrefix,10);\n prefixField.setEditable(true);\n JPanel prefixPanel = new JPanel (new BorderLayout());\n prefixPanel.add(prefixLabel,BorderLayout.WEST);\n prefixPanel.add(prefixField,BorderLayout.CENTER);\n\n JCheckBox compressFiles = new JCheckBox(res.getString(\"EjsConsole.ExportAfterCompilation\"),true);\n compressFiles.addItemListener(new ItemListener() {\n public void itemStateChanged(ItemEvent _evt) {\n prefixField.setEditable(_evt.getStateChange()==ItemEvent.SELECTED);\n }\n });\n \n JPanel jarcompanionPanel = new JPanel (new BorderLayout());\n jarcompanionPanel.add(compressFiles,BorderLayout.WEST);\n jarcompanionPanel.add(prefixPanel,BorderLayout.CENTER);\n\n // Ask for ZIP export after compilation\n JLabel zipprefixLabel = new JLabel (res.getString(\"EjsConsole.PrefixForZIPExport\"));\n zipprefixLabel.setBorder(new EmptyBorder(0,3,0,3));\n final JTextField zipprefixField = new JTextField(zipPrefix,10);\n zipprefixField.setEditable(true);\n JPanel zipprefixPanel = new JPanel (new BorderLayout());\n zipprefixPanel.add(zipprefixLabel,BorderLayout.WEST);\n zipprefixPanel.add(zipprefixField,BorderLayout.CENTER);\n\n JCheckBox zipFiles = new JCheckBox(res.getString(\"EjsConsole.ZIPExportAfterCompilation\"),true);\n zipFiles.addItemListener(new ItemListener() {\n public void itemStateChanged(ItemEvent _evt) {\n zipprefixField.setEditable(_evt.getStateChange()==ItemEvent.SELECTED);\n }\n });\n \n JPanel zipcompanionPanel = new JPanel (new BorderLayout());\n zipcompanionPanel.add(zipFiles,BorderLayout.WEST);\n zipcompanionPanel.add(zipprefixPanel,BorderLayout.CENTER);\n\n JPanel companionPanel = new JPanel (new GridLayout(0,1));\n companionPanel.add(jarcompanionPanel,BorderLayout.WEST);\n companionPanel.add(zipcompanionPanel,BorderLayout.CENTER);\n\n // Now confirm the list\n java.util.List<?> confirmedList = EjsTool.ejsConfirmList(frame,res.getDimension(\"Package.ConfirmList.Size\"),\n res.getString(\"EjsConsole.ProcessList\"),res.getString(\"EjsConsole.ProcessTitle\"),primaryList,companionPanel);\n if (confirmedList==null) return;\n tabbedPanel.setSelectedComponent(outputPanel);\n filesToProcess.clear();\n for (Iterator<?> it=confirmedList.iterator(); it.hasNext(); ) {\n PathAndFile paf = (PathAndFile) it.next();\n filesToProcess.add(paf.getPath());\n }\n for (String filename : filesToProcess) println (res.getString(\"EjsConsole.WillProcess\")+\" \"+filename);\n justCompiling = true;\n compressAfterCompilation = compressFiles.isSelected();\n compressPrefix = prefixField.getText().trim();\n zipAfterCompilation = zipFiles.isSelected();\n zipPrefix = zipprefixField.getText().trim();\n \n if (filesToProcess.size()>0) {\n createReportWindow();\n reportWindow.reportProgress(filesToProcess.get(0));\n runEjs(filesToProcess.get(0));\n }\n }",
"public List<Resource> createDefaultResources(BiomeConfig config)\n {\n List<Resource> resources = new ArrayList<Resource>(32);\n\n // Small water lakes\n if (this.defaultWaterLakes)\n {\n resources.add(Resource.createResource(config, SmallLakeGen.class, DefaultMaterial.WATER.id, TCDefaultValues.SmallLakeWaterFrequency.intValue(), TCDefaultValues.SmallLakeWaterRarity.intValue(), TCDefaultValues.SmallLakeMinAltitude.intValue(), TCDefaultValues.SmallLakeMaxAltitude.intValue()));\n }\n\n // Small lava lakes\n resources.add(Resource.createResource(config, SmallLakeGen.class, DefaultMaterial.LAVA.id, TCDefaultValues.SmallLakeLavaFrequency.intValue(), TCDefaultValues.SmallLakeLavaRarity.intValue(), TCDefaultValues.SmallLakeMinAltitude.intValue(), TCDefaultValues.SmallLakeMaxAltitude.intValue()));\n\n // Underground lakes\n resources.add(Resource.createResource(config, UndergroundLakeGen.class, TCDefaultValues.undergroundLakeMinSize.intValue(), TCDefaultValues.undergroundLakeMaxSize.intValue(), TCDefaultValues.undergroundLakeFrequency.intValue(), TCDefaultValues.undergroundLakeRarity.intValue(), TCDefaultValues.undergroundLakeMinAltitude.intValue(), TCDefaultValues.undergroundLakeMaxAltitude.intValue()));\n\n // Dungeon\n resources.add(Resource.createResource(config, DungeonGen.class, TCDefaultValues.dungeonFrequency.intValue(), TCDefaultValues.dungeonRarity.intValue(), TCDefaultValues.dungeonMinAltitude.intValue(), this.worldHeight));\n\n // Dirt\n resources.add(Resource.createResource(config, OreGen.class, DefaultMaterial.DIRT.id, TCDefaultValues.dirtDepositSize.intValue(), TCDefaultValues.dirtDepositFrequency.intValue(), TCDefaultValues.dirtDepositRarity.intValue(), TCDefaultValues.dirtDepositMinAltitude.intValue(), this.worldHeight, DefaultMaterial.STONE.id));\n\n // Gravel\n resources.add(Resource.createResource(config, OreGen.class, DefaultMaterial.GRAVEL.id, TCDefaultValues.gravelDepositSize.intValue(), TCDefaultValues.gravelDepositFrequency.intValue(), TCDefaultValues.gravelDepositRarity.intValue(), TCDefaultValues.gravelDepositMinAltitude.intValue(), this.worldHeight, DefaultMaterial.STONE.id));\n\n // Coal\n resources.add(Resource.createResource(config, OreGen.class, DefaultMaterial.COAL_ORE.id, TCDefaultValues.coalDepositSize.intValue(), TCDefaultValues.coalDepositFrequency.intValue(), TCDefaultValues.coalDepositRarity.intValue(), TCDefaultValues.coalDepositMinAltitude.intValue(), this.worldHeight, DefaultMaterial.STONE.id));\n\n // Iron\n resources.add(Resource.createResource(config, OreGen.class, DefaultMaterial.IRON_ORE.id, TCDefaultValues.ironDepositSize.intValue(), TCDefaultValues.ironDepositFrequency.intValue(), TCDefaultValues.ironDepositRarity.intValue(), TCDefaultValues.ironDepositMinAltitude.intValue(), this.worldHeight / 2, DefaultMaterial.STONE.id));\n\n // Gold\n resources.add(Resource.createResource(config, OreGen.class, DefaultMaterial.GOLD_ORE.id, TCDefaultValues.goldDepositSize.intValue(), TCDefaultValues.goldDepositFrequency.intValue(), TCDefaultValues.goldDepositRarity.intValue(), TCDefaultValues.goldDepositMinAltitude.intValue(), this.worldHeight / 4, DefaultMaterial.STONE.id));\n\n // Redstone\n resources.add(Resource.createResource(config, OreGen.class, DefaultMaterial.REDSTONE_ORE.id, TCDefaultValues.redstoneDepositSize.intValue(), TCDefaultValues.redstoneDepositFrequency.intValue(), TCDefaultValues.redstoneDepositRarity.intValue(), TCDefaultValues.redstoneDepositMinAltitude.intValue(), this.worldHeight / 8, DefaultMaterial.STONE.id));\n\n // Diamond\n resources.add(Resource.createResource(config, OreGen.class, DefaultMaterial.DIAMOND_ORE.id, TCDefaultValues.diamondDepositSize.intValue(), TCDefaultValues.diamondDepositFrequency.intValue(), TCDefaultValues.diamondDepositRarity.intValue(), TCDefaultValues.diamondDepositMinAltitude.intValue(), this.worldHeight / 8, DefaultMaterial.STONE.id));\n\n // Lapislazuli\n resources.add(Resource.createResource(config, OreGen.class, DefaultMaterial.LAPIS_ORE.id, TCDefaultValues.lapislazuliDepositSize.intValue(), TCDefaultValues.lapislazuliDepositFrequency.intValue(), TCDefaultValues.lapislazuliDepositRarity.intValue(), TCDefaultValues.lapislazuliDepositMinAltitude.intValue(), this.worldHeight / 8, DefaultMaterial.STONE.id));\n\n // Emerald ore\n if (defaultEmeraldOre > 0)\n {\n resources.add(Resource.createResource(config, OreGen.class, DefaultMaterial.EMERALD_ORE.id, TCDefaultValues.emeraldDepositSize.intValue(), this.defaultEmeraldOre, TCDefaultValues.emeraldDepositRarity.intValue(), TCDefaultValues.emeraldDepositMinAltitude.intValue(), this.worldHeight / 4, DefaultMaterial.STONE.id));\n }\n\n // Under water sand\n resources.add(Resource.createResource(config, UnderWaterOreGen.class, DefaultMaterial.SAND.id, TCDefaultValues.waterSandDepositSize.intValue(), TCDefaultValues.waterSandDepositFrequency.intValue(), TCDefaultValues.waterSandDepositRarity.intValue(), DefaultMaterial.DIRT.id, DefaultMaterial.GRASS.id));\n\n // Under water clay\n if (this.defaultClay > 0)\n {\n resources.add(Resource.createResource(config, UnderWaterOreGen.class, DefaultMaterial.CLAY.id, TCDefaultValues.waterClayDepositSize.intValue(), this.defaultClay, TCDefaultValues.waterClayDepositRarity.intValue(), DefaultMaterial.DIRT.id, DefaultMaterial.CLAY.id));\n\n }\n // Custom objects\n resources.add(Resource.createResource(config, CustomObjectGen.class, \"UseWorld\"));\n\n // Trees\n if (this.defaultTree != null)\n {\n resources.add(Resource.createResource(config, TreeGen.class, this.defaultTree));\n }\n\n if (this.defaultWaterLily > 0)\n {\n resources.add(Resource.createResource(config, AboveWaterGen.class, DefaultMaterial.WATER_LILY.id, this.defaultWaterLily, 100));\n }\n\n if (this.defaultFlowers > 0)\n {\n // Red flower\n resources.add(Resource.createResource(config, PlantGen.class, DefaultMaterial.RED_ROSE.id, this.defaultFlowers, TCDefaultValues.roseDepositRarity.intValue(), TCDefaultValues.roseDepositMinAltitude.intValue(), this.worldHeight, DefaultMaterial.GRASS.id, DefaultMaterial.DIRT.id, DefaultMaterial.SOIL.id));\n\n // Yellow flower\n resources.add(Resource.createResource(config, PlantGen.class, DefaultMaterial.YELLOW_FLOWER.id, this.defaultFlowers, TCDefaultValues.flowerDepositRarity.intValue(), TCDefaultValues.flowerDepositMinAltitude.intValue(), this.worldHeight, DefaultMaterial.GRASS.id, DefaultMaterial.DIRT.id, DefaultMaterial.SOIL.id));\n }\n\n if (this.defaultMushroom > 0)\n {\n // Red mushroom\n resources.add(Resource.createResource(config, PlantGen.class, DefaultMaterial.RED_MUSHROOM.id, this.defaultMushroom, TCDefaultValues.redMushroomDepositRarity.intValue(), TCDefaultValues.redMushroomDepositMinAltitude.intValue(), this.worldHeight, defaultSurfaceBlock, DefaultMaterial.DIRT.id));\n\n // Brown mushroom\n resources.add(Resource.createResource(config, PlantGen.class, DefaultMaterial.BROWN_MUSHROOM.id, this.defaultMushroom, TCDefaultValues.brownMushroomDepositRarity.intValue(), TCDefaultValues.brownMushroomDepositMinAltitude.intValue(), this.worldHeight, defaultSurfaceBlock, DefaultMaterial.DIRT.id));\n }\n\n if (this.defaultGrass > 0)\n {\n // Grass\n resources.add(Resource.createResource(config, GrassGen.class, DefaultMaterial.LONG_GRASS.id, 1, this.defaultGrass, TCDefaultValues.longGrassDepositRarity.intValue(), DefaultMaterial.GRASS.id, DefaultMaterial.DIRT.id));\n }\n\n if (this.defaultDeadBrush > 0)\n {\n // Dead Bush\n resources.add(Resource.createResource(config, GrassGen.class, DefaultMaterial.DEAD_BUSH.id, 0, this.defaultDeadBrush, TCDefaultValues.deadBushDepositRarity.intValue(), DefaultMaterial.SAND.id));\n }\n\n // Pumpkin\n resources.add(Resource.createResource(config, PlantGen.class, DefaultMaterial.PUMPKIN.id, TCDefaultValues.pumpkinDepositFrequency.intValue(), TCDefaultValues.pumpkinDepositRarity.intValue(), TCDefaultValues.pumpkinDepositMinAltitude.intValue(), this.worldHeight, DefaultMaterial.GRASS.id));\n\n if (this.defaultReed > 0)\n {\n // Reed\n resources.add(Resource.createResource(config, ReedGen.class, DefaultMaterial.SUGAR_CANE_BLOCK.id, this.defaultReed, TCDefaultValues.reedDepositRarity.intValue(), TCDefaultValues.reedDepositMinAltitude.intValue(), this.worldHeight, DefaultMaterial.GRASS.id, DefaultMaterial.DIRT.id, DefaultMaterial.SAND.id));\n }\n\n if (this.defaultCactus > 0)\n {\n // Cactus\n resources.add(Resource.createResource(config, CactusGen.class, DefaultMaterial.CACTUS.id, this.defaultCactus, TCDefaultValues.cactusDepositRarity.intValue(), TCDefaultValues.cactusDepositMinAltitude.intValue(), this.worldHeight, DefaultMaterial.SAND.id));\n }\n if (this.defaultHasVines)\n {\n resources.add(Resource.createResource(config, VinesGen.class, TCDefaultValues.vinesFrequency.intValue(), TCDefaultValues.vinesRarity.intValue(), TCDefaultValues.vinesMinAltitude.intValue(), this.worldHeight, DefaultMaterial.VINE.id));\n }\n\n // Water source\n resources.add(Resource.createResource(config, LiquidGen.class, DefaultMaterial.WATER.id, TCDefaultValues.waterSourceDepositFrequency.intValue(), TCDefaultValues.waterSourceDepositRarity.intValue(), TCDefaultValues.waterSourceDepositMinAltitude.intValue(), this.worldHeight, DefaultMaterial.STONE.id));\n\n // Lava source\n resources.add(Resource.createResource(config, LiquidGen.class, DefaultMaterial.LAVA.id, TCDefaultValues.lavaSourceDepositFrequency.intValue(), TCDefaultValues.lavaSourceDepositRarity.intValue(), TCDefaultValues.lavaSourceDepositMinAltitude.intValue(), this.worldHeight, DefaultMaterial.STONE.id));\n\n // Desert wells\n if (this.defaultWell != null)\n {\n resources.add(Resource.createResource(config, WellGen.class, this.defaultWell));\n }\n\n return resources;\n }",
"private static void buildScheduleFromJson(String filepath) {\r\n\t\tScriptEngine engine;\r\n\r\n\t\tScriptEngineManager scriptEngineManager = new ScriptEngineManager();\r\n\t\tengine = scriptEngineManager.getEngineByName(\"javascript\");\r\n\t\t\r\n\t\tString json;\r\n\t\ttry {\r\n\t\t\tjson = new String(Files.readAllBytes(Paths.get(filepath)));\r\n\t\t\tString script = \"Java.asJSONCompatible(\" + json + \")\";\r\n\t\t\tObject result = engine.eval(script);\r\n\r\n\t\t\tif (ConfigurationEnvironment.inDebug()) {\r\n\t\t\t\tSystem.err.println(\"=================== SCHEDULE ===================\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSet<Map.Entry<String, Object>> jsonMap = ((ScriptObjectMirror) result).entrySet();\r\n\r\n\t\t\t// For each item in the first layer (launches)\r\n\t\t\tfor (Entry<String, Object> topEntry : jsonMap) {\r\n\t\t\t\tif (ConfigurationEnvironment.inDebug()) {\r\n\t\t\t\t\tSystem.err.println(topEntry);\r\n\t\t\t\t}\r\n\t\t\t\tif(! topEntry.getKey().equalsIgnoreCase(\"launches\")) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tCollection<Object> launchesCol = ((JSONListAdapter) topEntry.getValue()).values();\r\n\r\n\t\t\t\t// For each launch\r\n\t\t\t\tfor (Object launchesValue : launchesCol) {\t\t\t\t\t\r\n\t\t\t\t\tScriptObjectMirror launchesSOM = (ScriptObjectMirror) launchesValue;\r\n\t\t\t\t\tSet<Map.Entry<String, Object>> launchesMap = launchesSOM.entrySet();\r\n\r\n\t\t\t\t\tString rmName = null;\r\n\t\t\t\t\tString[] sTime = null;\r\n\t\t\t\t\tTime time = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// For each item in launch\r\n\t\t\t\t\tfor(Entry<String, Object> launchEntry : launchesMap) {\r\n\t\t\t\t\t\tif (ConfigurationEnvironment.inDebug()) {\r\n\t\t\t\t\t\t\tSystem.err.println(\" \"+launchEntry);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(launchEntry.getKey().equalsIgnoreCase(\"road\")) {\r\n\t\t\t\t\t\t\trmName = launchEntry.getValue().toString();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(launchEntry.getKey().equalsIgnoreCase(\"time\")) {\r\n\t\t\t\t\t\t\tsTime = launchEntry.getValue().toString().split(\":\");\r\n\t\t\t\t\t\t\tif(sTime.length == 3) {\r\n\t\t\t\t\t\t\t\ttime = new Time(Integer.valueOf(sTime[0]), Integer.valueOf(sTime[1]), Integer.valueOf(sTime[2]));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(rmName != null && sTime != null && time != null) {\r\n\t\t\t\t\t\tScheduleController.addLaunchTrainSchedule(rmName, time);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (ConfigurationEnvironment.inDebug()) {\r\n\t\t\t\t\t\tSystem.err.println();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException | ScriptException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.