query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
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> ur...
{ "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(offsetBi...
{ "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("C...
[ "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 bat...
{ "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(Outpu...
[ "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.Generate...
{ "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 con...
[ "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 (comm...
{ "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 elementD...
{ "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 ) ) ...
[ "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__Typ...
{ "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)/100...
[ "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_P...
{ "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 (chec...
{ "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\...
{ "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) { thi...
[ "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 = patleng...
{ "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() {\...
{ "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: ( () ( '.' | ( ( '?.' ) ) | ( ( '...
[ "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 }...
{ "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 { Off...
[ "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.printl...
{ "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<?...
{ "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...
[ "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...
{ "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_datase...
{ "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.M...
{ "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 ) )...
[ "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...
{ "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 n...
[ "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 s...
{ "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....
[ "@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 ...
{ "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 Pa...
{ "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 && c...
[ "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, ...
{ "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 ...
{ "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 }", "pu...
{ "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 en...
{ "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) ...
{ "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...
{ "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\tr...
{ "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...
{ "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 ...
{ "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...
{ "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(PathXPropertyTy...
[ "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(...
{ "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 f...
{ "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 = getMe...
{ "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 }", "pub...
{ "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() {...
{ "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[t...
{ "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 ...
{ "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("Tele...
[ "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 ...
{ "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 cust...
{ "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);...
{ "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 Sit...
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(repoS...
{ "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...
[ "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 WebResourc...
{ "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)...
{ "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.XmlI...
{ "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 mergeMode...
{ "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 sho...
{ "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 }...
{ "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....
{ "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(CHOSE...
[ "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 availab...
{ "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...
{ "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.founda...
{ "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 r...
{ "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().e...
[ "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...
{ "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().getConnectio...
{ "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; lon...
[ "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 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<...
{ "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__BoolOpe...
[ "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:...
{ "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[@cla...
{ "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 }", "p...
{ "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(OsExp...
{ "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(_cont...
[ "@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 ...
{ "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 (Protocol...
{ "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 = firmwareVe...
{ "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 p...
{ "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); exitButto...
[ "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 @Overri...
{ "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 ...
{ "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__DescriptionAssignm...
[ "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...
{ "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 )? ) { ...
[ "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 ...
{ "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() == ...
[ "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 ...
{ "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/...
[ "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/xt...
{ "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....
[ "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 updateOffe...
{ "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; /** ...
[ "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...
{ "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 ...
{ "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. ...
{ "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(St...
{ "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 Simp...
{ "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(nam...
{ "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.insti...
{ "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 ...
{ "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 =...
{ "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 met...
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]; ...
[ "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*...
{ "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() == getMiddleArcSt...
{ "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.GeneratedMessa...
{ "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.Sam...
{ "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) { ...
[ "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....
{ "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",...
[ "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\", ord...
{ "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...
[ "@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...
{ "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 ...
{ "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> g...
{ "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 set...
{ "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.Pers...
{ "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(" ")) {...
[ "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(sel...
{ "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 ...
[ "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 A...
{ "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....
[ "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: savconf...
{ "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 setFieldValu...
{ "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 ...
{ "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 = getDat...
[ "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...
{ "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()); P...
[ "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.de...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }