query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Sends a message to the given exchange using the routing key calculated from the message.
void send(Message message, String exchange) throws IOException;
[ "void send(Object message, String exchange, String routingKey) throws IOException;", "void send(Object message, String exchange, String routingKey, boolean persistent)\n throws IOException;", "<T> T sendAndReceive(\n Object message, String exchange, String routingKey, boolean persistent, String correl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getSizeY: Get's the size of the island in the Y dimension
public int getSizeY() { return sizeY; }
[ "public java.lang.Integer getSizeY() {\r\n return sizeY;\r\n }", "public int getSizeY(){\r\n\t\treturn size[1];\r\n\t}", "public int getYSize()\n\t{\n\t\treturn this.ySize;\n\t}", "public double getPixelSizeY()\n\t{\n\t\treturn getObject().getPixelSizeY();\n\t}", "public final int getTilesYSize() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'field133' field
public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField133() { field133 = null; fieldSetFlags()[133] = false; return this; }
[ "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField123() {\n field123 = null;\n fieldSetFlags()[123] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField121() {\n field121 = null;\n fieldSetFlags()[121] = false;\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Graceful Shutdown Camel Context
@PreDestroy public void shutdown() { context.stop(); logger.info(">> CamelContext stopped ."); }
[ "@Override\r\n\tpublic void destroy() {\r\n\t\tsuper.destroy();\r\n\t\ttry {\r\n\t\t\tspringContext.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(e);\r\n\t\t}\r\n\t}", "public void shutdown() {\r\n\t\tactorSystem.shutdown();\r\n\t}", "private void cleanupZMQ(){\n\t\tif (feSocket!=null){\n\t\t\tfe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/Se prueba que el valor arrojado por el metodo de la clase employeet cuando el tipo de empleado sea Supervisor, sea el correcto
@Test public void CalculateYearBonusSupervisorTest() { Employee employeetest=new Employee((float) 100.0, "", (float) 10.0, EmployeeType.Supervisor); assertEquals((float) 288.0, employeetest.CalculateYearBonus()); }
[ "private int retrieveEmployeeSupervisorID(String idPersonEmployee) {\r\n int idSupervisor = 0;\r\n if (idPersonEmployee != null && idPersonEmployee.trim().length() > 0) {\r\n idSupervisor = retrieveEmployeeSupervisorID(Integer.valueOf(idPersonEmployee));\r\n }\r\n return idSupervisor;\r\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'field709' field.
public void setField709(java.lang.CharSequence value) { this.field709 = value; }
[ "public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField709(java.lang.CharSequence value) {\n validate(fields()[709], value);\n this.field709 = value;\n fieldSetFlags()[709] = true;\n return this; \n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField720(java....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Hint: Clears the previous mole location and gets a new random location of the next mole location. Sets the new location of the mole. Adds additional mole if the level difficulty is from 6 to 10.
public void setNewMole(Integer difficulty) { if (difficulty>=5) { List<Integer> newmoles = new ArrayList<>(); Random ran = new Random(); while(newmoles.size()!=2){ int randomLocation = ran.nextInt(9); if(newmoles.contains(randomLocation)){...
[ "public void setNewMole()\n { Hint:\n // Clears the previous mole location and gets a new random location of the next mole location.\n // Sets the new location of the mole.\n //\n Random ran = new Random();\n ArrayList<Button>moles = new ArrayList<>();\n int randomLo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo generado automaticamente para agregar las formulas que se encuentran en los eventos de las formulas.
private void addFormulaInFormula() { this.groupFieldGROUP0PERIODO_ACTUAL.addToVectorFormulaInFormula(this.groupFieldGROUP0VENTAS_ACTUAL); this.groupFieldGROUP0PERIODO_ACTUAL.addToVectorFormulaInFormula(this.groupFieldGROUP_MONSUMA_ACT); this.groupFieldGROUP0PERIODO_PASADO.addToVectorFormulaInFormula(this.group...
[ "private void addFormulaInGroup() {\r\n\t}", "public void addFormula(BASE_FORMULA formula) { this.formula = formula; }", "public void makeFormulas() {\n form += (\"P(\" + Query.getName());\n\n if (O.size() > 0) {\n form += \"|\";\n for (int i = 0; i < O.size(); i++) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method to get loginStatus
public String getLoginStatus() { return loginStatus; }
[ "public Integer getLoginStatus() {\n return loginStatus;\n }", "public void getAuthenticationStatus();", "int getLoginFlag();", "boolean getIfLogin();", "int getLoginType();", "SessionStatus getStatus();", "@RequestMapping(method = RequestMethod.GET)\r\n @ResponseBody\r\n public LoginStatus ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets subpackage to the specified value.
public void setSubpackage(Object value) throws DmcValueException { ((ViewDMO) core).setSubpackage(value); }
[ "public void setSubpackage(String value){\n ((ViewDMO) core).setSubpackage(value);\n }", "public trans.encoders.relayVote.RelayVote.Builder setPackage$(java.util.List<java.lang.String> value) {\n validate(fields()[13], value);\n this.package$ = value;\n fieldSetFlags()[13] = true;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This function gets a String, checks if it is a date or time using the supported date formats, and returns the date in Greek words if found If it is not a date, the function returns an empty String ""
public static String dateToGreekWords(String date){ String format=checkFormat(date); if(format.isEmpty()) return ""; return parse(date,format); }
[ "private static String checkFormat(String date){\r\n\t\tif(date.length()==0) return \"\";\r\n\t\tint dateChars=0,timeChars=0;\r\n\t\tchar currenChar;\r\n\t\t\r\n\t\t//check if the first and the last character of the string is a number, it must always be\r\n\t\tif(!Character.isDigit(date.charAt(0))) return \"\";\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a text description of the movement bonuses gained by members of this class.
public String getMovementDesc();
[ "String getMovementComments();", "@Override\n public String getDescription() {\n return String.format(\n \"This is a %s car, its top speed is %.2fkm/h and it can hold %d people\",\n this.getBrand(), this.getSpeed(), this.getNumPassengers()\n );\n }", "public Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
null Object to empty string nullStrToEmpty(null) = &quot;&quot;; nullStrToEmpty(&quot;&quot;) = &quot;&quot;; nullStrToEmpty(&quot;aa&quot;) = &quot;aa&quot;;
public static String nullStrToEmpty(Object str) { return (str == null ? "" : (str instanceof String ? (String)str : str.toString())); }
[ "public String nulltoEmpty(String value){\n\t\tif (value.equals(\"null\")){\n\t\t\treturn \"\";\n\t\t}\n\t\treturn value;\n\t}", "public static String nullStrToEmpty(String str) {\n return (str == null ? \"\" : str);\n }", "private static String emptyIfNull(String str) {\n\t\treturn (str == null) ? ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all the addresses in a factory, starting at the given place If backward, this yields all addresses coming before start
public static AddressSetView getAddressSet(AddressFactory factory, Address start, boolean forward) { AddressSet all = factory.getAddressSet(); if (forward) { Address max = all.getMaxAddress(); return factory.getAddressSet(start, max); } Address min = all.getMinAddress(); return factory.getAddressSet(...
[ "public List<Address> getAllAddresses();", "public List<LocatedObject> getLocatedObjects(Address a);", "public List<Address> getAddresses() {\n\n\t\tList<Address> addresses = null;\n\t\ttry {\n\t\t\t// Start a new trasaction\n\t\t\tem.getTransaction().begin();\n\t\t\t// Get list of addresses\n\t\t\taddresses = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to to get SAML Bearer token from the vCenter Server by using the access token retrieved from CSP.
public static Element getSamlTokenByApiAccessToken(String vCenterServer, String accessToken, String idToken) throws Exception { // Create the REST URL String vcHostnameUri = "https://" + vCenterServer + VCENTER_TOKENEXCHANGE_ENDPOINT; URL url = new URL(vcHostnameUri); // Create the REST Header Map<String,...
[ "public static Result<TokenResponse> getTokenFromSamlResult(SAMLBearerRequest tokenRequest, String envTag) {\n if(tokenClient == null) {\n try {\n HttpClient.Builder clientBuilder = HttpClient.newBuilder()\n .followRedirects(HttpClient.Redirect.NORMAL)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to set product manufacturer, takes a Manufacturer object as a parameter
public void setManufacturer(Manufacturer manufacturer) { this.manufacturer = manufacturer; }
[ "void setManufacturer(java.lang.String manufacturer);", "public void setManufacturer(String manufacturer) {\n this.manufacturer = manufacturer;\n }", "public void setManufacturer(String manufacturer) {\n if (manufacturer == null || manufacturer.length() == 0) {\n this.manufacturer = null;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Declare a boolean function to test whether the part number is unique or not. The function takes 1 parameter Text field that check the field for the part number.
public boolean isUnique(TextField inputPartNumber) { //For each loop to check every product inside products observable array list. for(MotorCycleProduct product:products) { //if the part number inputted by the user exist in the observable list the function returns false ...
[ "boolean isUnique(TextField inputPartNumber);", "boolean hasIsUnique();", "boolean isUnique();", "@objid (\"ef9777b4-ed2a-4341-bb22-67675cddb70a\")\n boolean isIsUnique();", "public boolean isExplicitUniqueCheckRequired();", "abstract public boolean isUniqueSofaMember ();", "boolean isFieldUnique(Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the error key of this PS MBean exception.
public String getErrorKey() { return errorKey; }
[ "public AgnTagErrorKey getErrorKey() {\n\t\treturn errorKey;\n\t}", "public String getError(String key) {\n\t\treturn errors.get(key);\n\t}", "public java.lang.String getErrorId() {\n return errorId;\n }", "public java.lang.String getErrorId() {\n return errorId;\n }", "int getErrorId();", "@O...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check status for whether the unit is creating building
public boolean isBuilding() { return buildingTimer != null && buildingTimer.isRunning(); }
[ "public boolean isBuilding(){\n return false;\n }", "public boolean hasBuilding()\r\n\t{\r\n\t\treturn getBuilding()!=null;\r\n\t}", "public boolean checkStatus() {\r\n return isTiling;\r\n }", "public boolean checkBuildings(){\n\t\tfor(Structure building : this.buildings){\n\t\t\tif(!building.i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the task where uuid = &63; and groupId = &63; or returns null if it could not be found. Uses the finder cache.
@Override public Task fetchByUUID_G(String uuid, long groupId) { return fetchByUUID_G(uuid, groupId, true); }
[ "public static Task fetchByUUID_G(String uuid, long groupId) {\n\t\treturn getPersistence().fetchByUUID_G(uuid, groupId);\n\t}", "@Override\n\tpublic Task fetchByUUID_G(String uuid, long groupId,\n\t\tboolean retrieveFromCache) {\n\t\tObject[] finderArgs = new Object[] { uuid, groupId };\n\n\t\tObject result = nu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of DataSets this Problem contains
public int getDataCount() { return datasets.size(); }
[ "public static long getDataSetCount(){\n return dataSets.get();\n }", "public int readNumberOfDatasetsInDISTable()\n\t{\n\t\tnumberOfDatasetsInDISTable = db.readNumberOfDatasetsInDISTable();\n\t\t\n\t\treturn numberOfDatasetsInDISTable;\n\t}", "public int num_sets() {\n int count = 0;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value(s) for modality (The modality of the instances in the series (0008,0060)). creating it if it does not exist. Will not return null. Definition: The modality of this series sequence
public BoundCodeDt<ModalityEnum> getModalityElement() { if (myModality == null) { myModality = new BoundCodeDt<ModalityEnum>(ModalityEnum.VALUESET_BINDER); } return myModality; }
[ "public Modality getModality() {\n return modality;\n }", "public int getModus();", "public java.util.List<BoundCodeDt<ImagingModalityEnum>> getModality() { \n\t\tif (myModality == null) {\n\t\t\tmyModality = new java.util.ArrayList<BoundCodeDt<ImagingModalityEnum>>();\n\t\t}\n\t\treturn myModality;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Create and return a profile change request for what we expect... we want to install the highest version of the HelloWorld bundle.
private ProfileChangeRequest createExpectedRequest(IQueryResult ius) { ProfileChangeRequest pcr = new ProfileChangeRequest(profile); Iterator it = ius.iterator(); while (it.hasNext()) { IInstallableUnit iu = (IInstallableUnit) it.next(); if ((iu.getId().equals("com.dcns.rsm.hello") && iu.getVersion().e...
[ "private IProfile createProfile() {\n \t\tIProfile profile = getProfile();\n \t\tif (profile == null) {\n \t\t\tMap properties = new HashMap();\n \t\t\tproperties.put(IProfile.PROP_INSTALL_FOLDER, installDescription.getInstallLocation().toString());\n \t\t\tEnvironmentInfo info = (EnvironmentInfo) ServiceHelper.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all the locations where active = &63;.
public static java.util.List<com.services.model.Location> findByActiveLocations( boolean active) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByActiveLocations(active); }
[ "int getLocationActive();", "public int getLocationActive() {\n return locationActive_;\n }", "public List<Location> getCompletedLocations();", "public ArrayList<Location> getVisitedLocations(){\r\n\t\treturn notVisitedLocations;\r\n\t}", "List<Coord> allActiveCells();", "public String[] getAl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the input connections of this neuron.
public NeuronConnectionList getInputConnections() { return inputConnections; }
[ "public List<Connection> getInputConnections() {\n\t\treturn inputConnections;\n\t}", "public NeuronConnectionList getOutputConnections()\r\n\t{\r\n\t\treturn outputConnections;\r\n\t}", "public Iterator<LayerNode> connections() {\n List<LayerNode> lns = new ArrayList<>();\n Iterator<Synapse> enu ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the unreservedIops property.
public long getUnreservedIops() { return unreservedIops; }
[ "public void setUnreservedIops(long value) {\n this.unreservedIops = value;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPremOpsBIPDDeductible();", "public Long getOisOpinstrid() {\n return oisOpinstrid;\n }", "public Integer getAddiopslim() {\r\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENLAST:event_panel_preferences_left_limitsMouseClicked reports button click
private void panel_preferences_left_reportsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panel_preferences_left_reportsMouseClicked panel_preferences_left_general.setBorder(null); panel_preferences_left_filters.setBorder(null); panel_preferences_left_InternetUpdates.set...
[ "private void panel_preferences_left_mainMenuMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panel_preferences_left_mainMenuMouseClicked\n \n panel_preferences_left_general.setBorder(null);\n panel_preferences_left_filters.setBorder(null);\n panel_preferences_left_Internet...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the color of the x slice frame.
public void setSliceXColor( Color color ) { boxSliceX.setColor( color ); if ( parent instanceof ViewJFrameVolumeView ) { if ( ( (ViewJFrameVolumeView) parent ) != null ) { ( (ViewJFrameVolumeView) parent ).setXSliceHairColor( color ); } } }
[ "private void sliceSetColor(int colorPosition) {\n ArrayList<Integer> newPattern = new ArrayList<>(Collections.nCopies(slice.size(), colorPosition)); // Build a new pattern based on this color\n\n // Save the new color\n patternBasic = colorPosition;\n\n // Set the new pattern to slice\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method executed when the Activity is done. Clears the AccountListeners attached to the AccountHandler
@Override public void finish() { super.finish(); if(mAccountHandler != null) { mAccountHandler.clearAccountListeners(); } }
[ "private void clearAccounts() {\n userAccountListController.getUserAccountList().setAccountOfInterest(null);\n userAccountListController.getUserAccountList().setActiveCareProvider(null);\n }", "public void clearAccount(){\n this.account = null;\n }", "@Override\n public void delete...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Walks the list from the top, returning the value of the log id when it gets the specified number of lines or greater.
protected long findLogID(int aLimit, long aStopValue) { int lines = 0; long logID = 0; for (Iterator iter = mLogEntries.iterator(); iter.hasNext() && lines < aLimit;) { AeLogEntry entry = (AeLogEntry) iter.next(); logID = entry.getLogID(); if (logID == aSt...
[ "protected long findTailLogID(long aHeadLogID)\r\n {\r\n // reverse the list to start of the bottom\r\n Collections.reverse(mLogEntries);\r\n long logID = findLogID(mHeadLimit, aHeadLogID);\r\n // put the list back in its proper order\r\n Collections.reverse(mLogEntries);\r\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Change file suffix to dat
public String changeFileSuffix() { // dat格式 String suffix = Book.BOOK_SUFFIX; if (isEpub()) { suffix = Book.EPUB_SUFFIX; // Bug描述:下载epub过程中退出APP,然后重新启动,继续下载,下载完成后点击阅读提示文件丢失 // Bug原因:重启后继续下载完成时没有将mOriginalFilePath也设置成最终的路径名,实际点击读取时读取的却是mOriginalFilePath信息 ...
[ "public String changeFileSuffixToTmp() {\n return changeFileSuffix(Book.TMP_SUFFIX);\n }", "private String getSuffix() {\n String ret = \"\";\n if (file.getName().lastIndexOf(\".\") != -1) {\n ret = file.getName().substring(file.getName().lastIndexOf(\".\"));\n }\n return ret;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for 'Unreviewed Datasets'.
public String getUnreviewedDatasets() { return unreviewedDatasets; }
[ "protected ArrayList<Dataset> getDatasets(){\n return this.datasets;\n }", "public Set<String> getExcludedDataGroupSet() {\n return excludedDataGroupSet;\n }", "public Dataset getDataset() {\n\t\treturn dataset;\n\t}", "public Instances getRawDataSet(){\n\t\treturn aggregator.getDataset();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests TimeEntryManagerSessionBeangetAllTimeEntries() for accuracy.
public void testGetAllTimeEntries() throws Exception { assertEquals("The time_entry table should be empty.", 0, delegate.getAllTimeEntries().length); }
[ "public void testGetTimeEntries() throws Exception {\r\n TimeEntry timeEntry = AccuracyTestHelper.createTimeEntry(null);\r\n delegate.createTimeEntries(new TimeEntry[] {timeEntry}, true);\r\n TimeEntry[] timeEntries = delegate.getTimeEntries(new long[] {timeEntry.getId()});\r\n\r\n asser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
receives a collection of orders. For each order, iterates on the order lines and calculate the total price which is the item's price quantity taxes. For each order, print the total Sales Tax paid and Total price without taxes for this order
public double calculateOrdersTotal(Map<String, Order> allOrders) { if (allOrders == null) return 0; /** * Sort the orders based on orderNames */ SortedSet<String> orderNames = new TreeSet<>(allOrders.keySet()); double grandTotal = 0; /** ...
[ "public double calculate(Map<String, Order> orders) {\n\n\t\t// This is the fix to avoid null pointer exception if Cart has null\n\t\t// orders\n\t\tif (orders == null) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Orders are invalid. Input is null\");\n\t\t}\n\t\t// GrandTotal is initialized outside th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the client's civilStatus
public String getCivilStatus(){ return civilStatus; }
[ "public void setCivilStatus(String civilStatus){\r\n this.civilStatus = civilStatus;\r\n }", "public int getCBRStatus();", "public Map<DiscordClient, UserStatus> getClientStatus() {\n return clientStatus;\n }", "public int getClientStatus(int clientNumber) {\n return clientStatus[client...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column ml_sys_key.KEY_VALUE
public void setKeyValue(Long keyValue) { this.keyValue = keyValue; }
[ "public void setKeyValue(String keyValue) {\n this.keyValue = keyValue;\n }", "public void setSysKey(String sysKey) {\n this.sysKey = sysKey == null ? null : sysKey.trim();\n }", "public com.opentext.bn.converters.avro.entity.ContentKey.Builder setKeyValue(java.lang.String value) {\n va...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the entire list of Tuition Reimbursement Forms
List<TuitionReimbursementForm> getTuitionForms();
[ "public List<ReimbursementForm> getStringReimbursementForms(ServletContext sc, HttpServletRequest request) throws SQLException{\n\t\tEmployee emp = edi.getEmployeeByUsername(request.getSession(false).getAttribute(\"username\").toString(), sc);\n\t\tList<ReimbursementForm> reimburseForms;\n\t\t\n\t\tif (emp.getPosit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the email bind.
public void setEmailBind(int emailBind) { this.emailBind = emailBind; }
[ "public void setBindEmail(boolean bindEmail) {\n this.bindEmail = bindEmail;\n }", "public void setBindAddress(boolean bindAddress) {\n this.bindAddress = bindAddress;\n }", "public void setBindPassword( String bindPassword )\n {\n this.bindPassword = bindPassword;\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update the CF's locks readers count. Do not use only used by runtime.
int update_readers_count(int Value);
[ "public int getReadLockCount() {\n return sync.getReadLockCount();\n }", "@Override\n\t\tpublic void lock() {\n\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (writers > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treaders+...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Rollbacks all changes for a given connection
private void rollbackChanges(ProxyConnection connection) throws SQLException { if (!connection.getAutoCommit()) { connection.rollback(); connection.setAutoCommit(true); } }
[ "public void rollback() {\r\n for (Iterator<Connection> it = connections.values().iterator(); it.hasNext();) {\r\n Connection conn = it.next();\r\n try {\r\n conn.rollback();\r\n } catch (SQLException ex) {\r\n log.severe(\"Partial rollback failu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the last e s f order in the ordered set where description LIKE &63;.
@Override public ESFOrder fetchByDescription_Last(String description, OrderByComparator orderByComparator) throws SystemException { int count = countByDescription(description); if (count == 0) { return null; } List<ESFOrder> list = findByDescription(description, count - 1, count, orderByComparator);...
[ "public it.ethica.esf.model.ESFMatch fetchByDescription_Last(\n\t\tlong description,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public it.ethica.esf.model.ESFMatch findByDescription_Last(\n\t\tlong description,\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Abator for iBATIS. This method corresponds to the database table UPP.TB_UPP_CHECK_STORE_DIVERGENCE
public static String tableName() { return "TB_UPP_CHECK_STORE_DIVERGENCE"; }
[ "io.dstore.values.StringValue getProcedureName();", "@Override\r\n\tpublic NiinItemPrice retrieveNiinItemPrice(String niin7, String store)\r\n\t\t\tthrows PricePersistenceException {\r\n\t\tif(niin7 == null || niin7.isEmpty()|| \r\n\t\t\t\tstore == null || store.isEmpty()){\r\n\t\t\tlogger.error(\"retrieveNiinIte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Emits a boolean that determines whether the participant's avatar image should be hidden.
Observable<Boolean> participantAvatarImageHidden();
[ "@Override\n\tpublic boolean isAvatar() {\n\t\treturn true;\n\t}", "private void hide_imageViewRemoteParticipantWhilstCallingToAnimate(){\r\n\r\n if (this.imageViewRemoteParticipantWhilstCallingToAnimate != null) {\r\n animateView_stop();\r\n this.imageViewRemoteParticipantWhilstCalli...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the "from" square of the arrow.
public Square getFrom() { return from; }
[ "Point getSourceArrowStart();", "Point getTargetArrowEnd();", "public int getArrowLocation() {\n if (arrowhead != null) {\n return arrowhead.getLocation();\n }\n return 0;\n }", "public abstract Point getUpperLeftCorner();", "public BoardPosition getStart()\n\t{\n\t\tretur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
You can get constructor names which user has defined. (since every method in a class could be a constructor it's useful to have a filter)
public List<String> getConstructorNames() { return constructorNames; }
[ "List constructors();", "private void getAllConstructor() {\n\t\tConstructor[] construtors= classObject.getConstructors();\n\t\tSystem.out.println(\"Constructors: \");\n\t\tfor (Constructor c : construtors) {\n\t\t\tSystem.out.println(\"\\t<\"+c.getName()+\">\");\n\t\t\tSystem.out.print(\"\\t\\tparameter types: \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stores an exported interface of a service template into the ToscaReferenceMapper.
protected void storeExportedInterface(CSARID csarID, QName serviceTemplateID, TExportedInterface iface) { ToscaEngineServiceImpl.toscaReferenceMapper.storeExportedInterface(csarID, serviceTemplateID, iface); }
[ "public void storeJAXBObjectIntoToscaReferenceMapper(QName reference, Object objectToStore) {\r\n\t\tNode node = ServiceHandler.xmlSerializerService.getXmlSerializer().marshalToNode(objectToStore);\r\n\t\tToscaEngineServiceImpl.toscaReferenceMapper.storeReference(csarID, reference, node);\r\n\t}", "public interfa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets all org.semanticwb.process.resources.reports.Report with a determined FilterReport
public static java.util.Iterator<org.semanticwb.process.resources.reports.Report> listReportByFilterReport(org.semanticwb.process.resources.reports.FileReport value,org.semanticwb.model.SWBModel model) { org.semanticwb.model.GenericIterator<org.semanticwb.process.resources.reports.Report> it=new o...
[ "public org.semanticwb.model.GenericIterator<org.semanticwb.process.resources.reports.FileReport> listFilterReports()\r\n {\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.process.resources.reports.FileReport>(getSemanticObject().listObjectProperties(rep_hasFilterReport));\r\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The next slot to be sent out.
int getNextSlot();
[ "public int getSlot() {\r\n return slot;\r\n }", "public int getSlot() {\n\t\treturn slot;\n\t}", "public int getSlot() {\n return slot;\n }", "public long getSlot() {\n return slot;\n }", "public long nextSerial()\n\t{\n\t\treturn connection.nextSerial();\n\t}", "public int ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the generated key back to the bean. Only used for inserts with getGeneratedKeys.
public void setGeneratedKey(Object idValue) { if (idValue != null) { // set back to the bean so that we can use the same bean later // for update [refer ebeanIntercept.setLoaded(true)]. idValue = beanDescriptor.convertSetId(idValue, bean); // remember it for logging summary this.idValue = idV...
[ "public static void resetGeneratedKeyIndex()\n\t{\n\t\tgeneratedKeyIndex = 0;\n\t}", "public List getGeneratedKeys() {\n return generatedKeys;\n }", "@Override\n public ResultSet getGeneratedKeys() throws SQLException {\n return null;\n }", "public BigDecimal getLastGeneratedKeyAsBigDec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will return true if the daysPregnant is greater than PREGNANCYDURATION
public boolean isPregnancyDue() { return this.daysPregnant > Turkey.PREGNANCY_DURATION; }
[ "public static boolean midPs_checkDuration(Exam e, byte Pi)\r\n{\r\nif(e.getduration()<= Sol.getPro().getPeriods().get(Pi).getDuration())\r\nreturn true;// means this period can be used to schedule this exam\r\nelse\r\nreturn false;\r\n}", "public boolean isEffective() {\r\n \r\n Calendar now = Calendar.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column eval_imperfection.fj
public String getFj() { return fj; }
[ "@AnyLogicInternalCodegenAPI\n public double _InfectionRisk_DefaultValue_xjal() {\n final Main self = this;\n return \n0.08 \n;\n }", "protected double getInfectionProbability()\n {\n return INFECTION_PROBABILITY;\n }", "protected void onChange_InfectionRisk() {\n onChange_InfectionRisk_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
restores the heap property in a given array between the start and end points
private <E extends Comparable<E>> void restore(E[] array, int start, int end){ int ptr = start; while(leftChild(ptr) <= end){ //while the ptr index still has children int child = (2 * ptr) + 1; //the index of ptr's left child int toSwap = ptr; //beginning the first loop with ptr as the parent index ...
[ "private static void heapify(int[] arr) {\n int start = arr.length /2 -1; //first parent node\n while (start >= 0) {\n sift(arr, start, arr.length-1);\n --start;\n }\n }", "public static void heapify(int[]data){\n for(int i = data.length; i >= 0; i--){ //looping fr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Data Class' reference. If the meaning of the 'Data Class' reference isn't clear, there really should be more of a description here...
DataClass getDataClass();
[ "public ClassData getClassData()\n\t{\n\t\treturn this.clsData;\n\t}", "public Class<?> getDataClass() {\n return dataClass;\n }", "public abstract Class getDataClass();", "public boolean getDataClass()\n{\n\treturn dataClass;\n}", "ExpDataClass getDataClass(@NotNull Container definitionContainer,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find the stem(s) of the provided word
public List<Stem> stem(String word) { return stem(word.toCharArray(), word.length()); }
[ "String stemOf (String word);", "public List<CharsRef> stem(String word) {\n return stem(word.toCharArray(), word.length());\n }", "protected String stem(String term) {\r\n\t\tStemmer stemmer = new Stemmer();\r\n\t\tfor(char a : term.toCharArray()){\r\n\t\t\tstemmer.add(a);\r\n\t\t}\r\n\t\tstemmer.stem();\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the playlist's images/title/description in UI.
public void updateUI(Playlist playlist) { this.playlistTitleTextView.setText(playlist.getName()); this.playlistDescriptionTextView.setText(playlist.getDescription()); ArrayList<String> imageURIs = playlist.getImageURIs(); int currIndex = 0; for (String uri : imageURIs) { ...
[ "public void setPlaylistTitle(String playlistTitle);", "public void setPlaylistTitles()\n {\n playlistTitles.clear();\n for (Playlist playlist : playlists)\n {\n playlistTitles.add(playlist.getTitle());\n }\n\n }", "private void createDefaultPlayLists() {\n tr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column MST_CUST_CONV.AT_Torihiki_Code
public void setAtTorihikiCode(String atTorihikiCode) { this.atTorihikiCode = atTorihikiCode; }
[ "public void setOlTorihikiCode(String olTorihikiCode) {\n this.olTorihikiCode = olTorihikiCode;\n }", "public String getAtTorihikiCode() {\n return atTorihikiCode;\n }", "public abstract void setCod_lote_sap(java.lang.String newCod_lote_sap);", "public String getOlTorihikiCode() {\n return olTorihi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This has to start at minus 2 length because you need at least two elements to shift. Starting at minus 1 length won't allow you to shift anymore to the right of the array, because there will only be one element.
private void shiftElement(int[] arr, int startIndex) { for (int i = arr.length-2; i >= startIndex; i--) { arr[i+1] = arr[i]; } }
[ "public static void shift(){\n int[] x= {1, 5, 10, 7, -2};\n \n for (int i =0; i<x.length-1; i++){\n x[i]=x[i+1];\n }\n x[x.length-1]=0;\n for (int j=0; j<x.length; j++){\n System.out.println(x[j]);\n }\n\n\n\n }", "static void primitiveRightShift(int[] a, int len, int n) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all the Sendables contained within this Room.
public Set<Sendable> getSendables() { Set<Sendable> sendables = new HashSet<>(); for (Entity[] es : this.entities) { for (Entity e : es) { if (e instanceof Sendable) { sendables.add((Sendable) e); } } } return sendables; }
[ "public List<Transmitter> getAllTransmitters() {\n return this.loadAll();\n }", "public Collection getAllReceivables()\n throws RemoteException;", "public ArrayList<WeaponClient> getWeapons() {\n return weapons;\n }", "public com.mgipaypal.ac1211.client.SendAmountInfo getSendAmounts...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Given a string, return a "rotated left 2" version where the first 2 chars are moved to the end. The string length will be at least 2.
public String left2(String str) { return str.substring(2) + str.substring(0, 2); }
[ "public String right2(String str) {\n return str.substring(str.length()-2) + str.substring(0, str.length()-2);\n}", "String rotWord(String s) {\n return s.substring(2) + s.substring(0, 2);\n }", "public String left2(String str) {\n return str.length()<=2 ? str : str.substring(2)+str.substring(0,2)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cluster kind of metadata. .envoy.type.metadata.v3.MetadataKind.Cluster cluster = 3;
io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Cluster getCluster();
[ "io.envoyproxy.envoy.type.metadata.v3.MetadataKind.ClusterOrBuilder getClusterOrBuilder();", "Versioned<ClusterMetadata> getClusterMetadata();", "@ZAttr(id=508)\n public ZAttrProvisioning.ClusterType getClusterType() {\n try { String v = getAttr(Provisioning.A_zimbraClusterType); return v == null ? ZA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
creates a filename to associate with this view name
public String getViewFilename(String viewName) { return viewName + ".ser"; }
[ "private String generateFilename() {\r\n\t\tString s = \"index_\" + Math.abs((new java.util.Date()).hashCode());\r\n\t\tSystem.err.println(s);\r\n\t\treturn s;\r\n\t}", "private String createFileName(){\r\n\t\treturn this.folderPath + \"/R\" + this.sourceFileName;\r\n\t}", "@Override\n\tprotected String buildFi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Delete player request Used to delete player and all player characters If a character is team admin then the team will be deleted as well and thus all the characters inside that team
@RequestMapping(value = "/delete_player", method = RequestMethod.DELETE) public Map<String, Object> deletePlayer(@RequestParam("playerId") Long playerId) { LinkedHashMap<String, Object> map = new LinkedHashMap<>(); Optional<Player> optionalPlayer = playerRepository.findById(playerId); if (!o...
[ "void deletePlayerInfoByTeamAndPlayer(Team team, Player player);", "private void deletePlayer() {\n // Only perform the delete if this is an existing player.\n\n int deletedPlayer = getContentResolver().delete(PlayerEntry.CONTENT_URI, null, null);\n if (deletedPlayer != 0) {\n Toas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Imports all plans from the given file and stores them in the database.
public void importPlans(final File file) throws PlatoException { log.debug("importing file: " + file.getName()); for (Plan p : importPlans(file.getAbsolutePath())) { storeDigitalObjects(p); em.persist(p); } }
[ "public List<Plan> importPlans(final String file) throws PlatoException {\n try {\n return importPlans(new FileInputStream(file));\n } catch (FileNotFoundException e) {\n throw new PlatoException(\"IMPORT FAILED: could not find file \" + file, e);\n }\n }", "public Li...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the text of an explicitly specified textfield with inputChars instead of inputKeys
public void setTextInputChars(String s, TestObject to) { new WTextField(to).setTextInputChars(s); }
[ "public void setTextInputChars(String s) \r\n\t{\t\t\r\n\t\t//get properties need for logging before you click, because otherwise click might take you to another page causing an ObjectNotFoundException\r\n\t\tString sWidgetType = getWidgetType();\r\n\t\tString sWidgetName = getName();\r\n\t\t\r\n\t\tthis.silentClic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Move to next room
public void moveToRoom(Rooms room) { this.currentRoom = room; }
[ "public void nextRoom() {\n room++;\n createRoom();\n }", "public void rightRoom(MouseEvent event){ //Go to next room\n roomCount++;\n if (roomCount != rooms.length){\n roomCount = roomCount % rooms.length;\n }\n loadRoom();\n }", "public void changeRoo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
W W E W W Analyze all row,column or diag based on conditions above and return score of given board state
public int evaluate(PentagoBoardState pbs) { PentagoBoardState.Piece[][] pieces = pbs.getBoard(); int whitescore =0; //keep track of white's total score int blackscore = 0;//keep track of black's total score //Check rows for (int x = 0; x <6 ; x++) { int countWHori...
[ "private double score(Board board)\n \t{\n \t\tdouble score = weightClear * board.clearLines();\n \n \t\tint[] heights = getHeights(board);\n \n \t\tint sumHeight = 0;\n \t\tint minHeight = heights[0];\n \t\tint maxHeight = heights[0];\n \n \t\tfor (int col = 0; col < heights.length; col++) {\n \t\t\tsumHeight = su...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the length of this tincan attachment.
public void setLength(long length);
[ "public void setLength(int value) {\r\n this.length = value;\r\n }", "public void setLength (double len) {\n length = len;\n }", "public void setLength(long length) { \n this.length = length; \n }", "public void setNoteLength ( final int len )\n {\n _root.putInt ( NOTE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets (as xml) the "RutEmisorLibro" element
public void xsetRutEmisorLibro(cl.sii.siiDte.libroboletas.RUTType rutEmisorLibro) { synchronized (monitor()) { check_orphaned(); cl.sii.siiDte.libroboletas.RUTType target = null; target = (cl....
[ "public void setRutEmisorLibro(java.lang.String rutEmisorLibro)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required int32 milliSeconds = 1;
int getMilliSeconds();
[ "Millimeter createMillimeter();", "public int getMilliSeconds() {\n return milliSeconds_;\n }", "int getMillisecond();", "public int Milliseconds() { return milliseconds; }", "long getTimeInMilliSeconds();", "int getMilliseconds();", "long getStartMs();", "long getTimeoutGuideCodeMillisecond()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
On some item groups, typically folders. The grant applies to the folder itself as well as any (direct or indirect) children.
public GrantOn onFolders(ItemGroup<?>... folders) { String[] paths = new String[folders.length]; for (int i = 0; i < folders.length; i++) { paths[i] = Pattern.quote(folders[i].getFullName()) + "(|/.+)"; } return onPaths(paths); }
[ "public void do_grant()\n {\n ThreadCB thread;\n ResourceCB resource;\n int qty;\n\n thread = this.getThread(); // thread que pediu recursos\n resource = this.getResource(); // qual recurso foi pedido\n qty = this.getQuantity(); // quantidade do recurso...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a list of the latest version of each RepositoryItem's that match the freetext search criteria provided.
@GET @Path("search") @Produces(MediaType.TEXT_XML) public JAXBElement<LibraryInfoListType> search(@QueryParam("query") String freeTextQuery, @QueryParam("latestVersion") boolean latestVersionsOnly, @QueryParam("includeDraft") boolean includeDraftVersions, @HeaderParam("Au...
[ "public List<RepositoryPackage> search(SearchOptions options) throws Exception;", "@GET\n @Path(\"search2\")\n @Produces(MediaType.TEXT_XML)\n public JAXBElement<SearchResultsListType> search(@QueryParam(\"query\") String freeTextQuery,\n @QueryParam(\"latestVersion\") boolean latestVersionsOn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Transformation__Group_6_3__0" $ANTLR start "rule__Transformation__Group_6_3__0__Impl" ../fr.tpt.aadl.ramses.transformation.trc.xtext.ui/srcgen/fr/tpt/aadl/ramses/transformation/trc/xtext/ui/contentassist/antlr/internal/InternalTRC.g:2439:1: rule__Transformation__Group_6_3__0__Impl : ( ',' ) ;
public final void rule__Transformation__Group_6_3__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../fr.tpt.aadl.ramses.transformation.trc.xtext.ui/src-gen/fr/tpt/aadl/ramses/transformation/trc/xtext/ui/contentassist/antlr/internal/InternalT...
[ "public final void rule__Transformation__Group_6_3__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/Int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for property doubleCheck.
public void setDoubleCheck(int doubleCheck);
[ "public void setDouble(String property, double value);", "void setDoubleProperty(String name, double value);", "public int getDoubleCheck();", "void setPropertyDouble(\n\t\tString schemaNS,\n\t\tString propName,\n\t\tdouble propValue,\n\t\tPropertyOptions options) throws XMPException;", "public void setDoub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the field at the specified position, throws NullFieldException if the field is null. Used for comparing key fields.
public <T> T getFieldNotNull(int pos) { T field = getField(pos); if (field != null) { return field; } else { throw new NullFieldException(pos); } }
[ "@Nullable\n Field<?> field(int index);", "public Object getField(int pos) {\n\t\treturn fields[pos];\n\t}", "public XI5250Field getField(int idx) {\n try {\n return ivFields.get(idx);\n }\n catch (ArrayIndexOutOfBoundsException ex) {\n return null;\n }\n }", "public final IndexableF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Uses String.split(regexp) to create StringList
public static StringList createFrom(String str, String regexp) { if ((str == null) || (regexp == null)) return null; String strs[] = str.split(regexp); return new StringList(strs); }
[ "String[] split(String input, String regex);", "List<String> split(String message);", "public static List split(String s) {\n return new List(new java.util.StringTokenizer(s));\n }", "public static List<String> split(String searchIn, String regex)\r\n {\r\n if (searchIn.isEmpty()) return new ArrayLis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__TakeStatement__Group__3__Impl" $ANTLR start "rule__TakeStatement__Group__4" ../de.bomzhi.petrinet.ui/srcgen/de/bomzhi/petrinet/ui/contentassist/antlr/internal/InternalPetrinetDsl.g:1305:1: rule__TakeStatement__Group__4 : rule__TakeStatement__Group__4__Impl ;
public final void rule__TakeStatement__Group__4() throws RecognitionException { int stackSize = keepStackSize(); try { // ../de.bomzhi.petrinet.ui/src-gen/de/bomzhi/petrinet/ui/contentassist/antlr/internal/InternalPetrinetDsl.g:1309:1: ( rule__TakeStatement__Group__4__Impl ) ...
[ "public final void rule__TakeStatement__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.bomzhi.petrinet.ui/src-gen/de/bomzhi/petrinet/ui/contentassist/antlr/internal/InternalPetrinetDsl.g:1278:1: ( rule__TakeStatement__Group...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a shared secret error response. WARNING: This is not currently supported.
public static Response createSharedSecretErrorResponse() { throw new UnsupportedOperationException("Shared Secret Support is not currently implemented"); }
[ "public static Response createSharedSecretResponse() {\n throw new UnsupportedOperationException(\"Shared Secret Support is not currently implemented\");\n }", "public static HttpResponse createISEResponse() {\n HttpResponse response = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseSta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column old_users.extended4
public String getExtended4() { return extended4; }
[ "public String getExtend4() {\r\n return extend4;\r\n }", "public String getExtend6() {\n return extend6;\n }", "public String getExtended6() {\r\n\t\treturn extended6;\r\n\t}", "public String getExtend5() {\r\n return extend5;\r\n }", "public String getExtend5() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find all Posts from a particular user name in the database
List<Post> findPostsByUserName(String userName);
[ "public List<Post> findPostsByUserName(String userName) {\n final Post post = new Post();\n post.setUserName(userName);\n final DynamoDBQueryExpression<Post> queryExpression = new DynamoDBQueryExpression<>();\n queryExpression.setHashKeyValues(post);\n queryExpression.setIndexName...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Specifies the status of the EncryptionAtRestOptions.
public EncryptionAtRestOptions getEncryptionAtRestOptions() { return this.encryptionAtRestOptions; }
[ "public void setEncryptionAtRestOptions(EncryptionAtRestOptions encryptionAtRestOptions) {\n this.encryptionAtRestOptions = encryptionAtRestOptions;\n }", "private void setStatus() {\n\t\t// adjust the status of the rest\n\t\tif (rest.getState().equals(RestState.INACTIVE)) {\n\t\t\t// set status to heat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Status of rules in this NAT. repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
@java.lang.Override public com.google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus getRuleStatus(int index) { return ruleStatus_.get(index); }
[ "@java.lang.Override\n public java.util.List<com.google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus>\n getRuleStatusList() {\n return ruleStatus_;\n }", "public com.google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatusOrBuilder\n getRuleStatusOrBuilder(int index) {\n if (ruleSta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the deserialization schema.
protected DeserializationSchema<Row> getDeserializationSchema() { return deserializationSchema; }
[ "public String getSchema()\n {\n return schema;\n }", "public java.lang.String getSchema() {\r\n return schema;\r\n }", "StructType getSchema();", "public Schema getSchema() {\n return schema;\n }", "public String getObject_schema() {\n return object_schema;\n }", "public Stri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if is asynchronous.
public boolean isAsynchronous() { return asynchronous; }
[ "public boolean isAsynchronous() {\n return _socket.getChannel() != null;\n }", "boolean isThreadedAsyncMode();", "private static boolean isApacheAsyncAvailable()\n {\n if (asyncAvailable != null)\n {\n return asyncAvailable;\n }\n\n try\n {\n ClassLoader classLoader = Reques...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__SwitchOptionStatSequence__Group__0__Impl" $ANTLR start "rule__SwitchOptionStatSequence__Group__1" InternalReflex.g:6200:1: rule__SwitchOptionStatSequence__Group__1 : rule__SwitchOptionStatSequence__Group__1__Impl ;
public final void rule__SwitchOptionStatSequence__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalReflex.g:6204:1: ( rule__SwitchOptionStatSequence__Group__1__Impl ) // InternalReflex.g:6205:2: rule__SwitchOptionStatSequence...
[ "public final void rule__SwitchOptionStatSequence__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReflex.g:6177:1: ( rule__SwitchOptionStatSequence__Group__0__Impl rule__SwitchOptionStatSequence__Group__1 )\n // ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
change status in table student by id
@RequestMapping(value="/updateStatus/{id}",method=RequestMethod.PUT) public Response updateStatus(@PathVariable("id") String id){ Response response=new Response(); if(this.studentService.updateStatus(id)) response.setCode(ResponseCode.UPDATE_SUCCESS); else response.setCode(ResponseCode.UPDATE_FAIL); ...
[ "public void setRegistrationStatus(int studentId) throws SQLException;", "public StudentQualifyingData updateStudentStatus(int id, StudentQualifyingData stdStatus) {\n\t\tStudentQualifyingData curStatus = sqdRepository.findByStdAccId(id);\n\t\tif (sqdRepository.findByStdAccId(id).equals(null)) {\n\t\t\tthrow new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a range of all the plano saudes. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If ord...
public java.util.List<PlanoSaude> findAll(int start, int end);
[ "public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);", "@Override\n\tpublic List<Arret> findAll(\n\t\tint start, int end, OrderByComparator<Arret> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "@Override\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the parameter number
int getParameterNumber() { return parameterNumber; }
[ "public Integer getParameterNum() {\n return parameterNum;\n }", "public String getParamNum() {\n return paramNum;\n }", "public int getNumberOfParam();", "Integer getPARAMETER1();", "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"In...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update an existing NominaEmpleado entity
public void updateNominaEmpleado(NominaEmpleado entity) throws Exception;
[ "public void updateDetalleNominaEmpleado(DetalleNominaEmpleado entity)\n throws Exception;", "public void editar(Empleado empleado) {\n\t\tentityManager.getTransaction().begin();\n\t\tentityManager.merge(empleado);\n\t\tentityManager.getTransaction().commit();\n\t\t//JPAUtil.shutdown();\n\t}", "Pgemploye...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Folder__Group_5__4__Impl" $ANTLR start "rule__Folder__Group_5__5" InternalData.g:1245:1: rule__Folder__Group_5__5 : rule__Folder__Group_5__5__Impl ;
public final void rule__Folder__Group_5__5() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalData.g:1249:1: ( rule__Folder__Group_5__5__Impl ) // InternalData.g:1250:2: rule__Folder__Group_5__5__Impl { pushFollo...
[ "public final void rule__Folder__Group_4__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalData.g:1087:1: ( rule__Folder__Group_4__5__Impl )\n // InternalData.g:1088:2: rule__Folder__Group_4__5__Impl\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this function filter the available drive list
@Override protected FilterResults performFiltering(CharSequence constraint) { List<Drive> filteredList = new ArrayList<>();//new list that contained only filtered items if (constraint == null || constraint.length() == 0) {//empty in search filteredList.ad...
[ "public List<Ride> filterByDrive(List<Ride> l, boolean b) {\n \tList<Ride> rl = new ArrayList<Ride>();\n \tfor (int i = 0; i < l.size(); i++) {\n \t\tif (l.get(i).drive == b) {\n \t\t\trl.add(l.get(i));\n \t\t}\n \t}\n \treturn rl;\n }", "private List<DiskResource> filterFolders(List<DiskR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the PremOpsPremiumBasis field. Premium Basis
@gw.internal.gosu.parser.ExtendedProperty public java.lang.String getPremOpsPremiumBasis();
[ "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getProdsCompldOpsPremiumBasis();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getProductWithdrawalPremiumBasis();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getRailroadPremiumBasis();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Responsible to transmit data from a string arraylist to a string arraylist..
private static ArrayList<String> transmit(ArrayList<String> array){ ArrayList<String> ret= new ArrayList<String>(); for (int i = 0; i < array.size(); i++) { ret.add(array.get(i)); } return ret; }
[ "private static ArrayList<String> transmit(String[] array){\n\n\t\tArrayList<String> ret= new ArrayList<String>();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tret.add(array[i]);\n\t\t}\n\t\treturn ret;\t\n\t}", "private static String[] transferListToArray(ArrayList<String> arrayList) {\n String []...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column user.user_real_name
public String getUserRealName() { return userRealName; }
[ "public String getUserRealName() {\n return userRealName;\n }", "public String getUserRealname() {\n return userRealname;\n }", "public String getUserName()\n throws SQLException\n {\n // The SimpleText driver does not support user names\n\n return \"\";\n }", "@...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the default maximum inactive interval (in seconds) for Sessions created by this Manager.
void setMaxInactiveInterval(int interval);
[ "public void setMaxInactiveInterval(int interval);", "public void setSessionMaxAliveTime(int sessionMaxAliveTime);", "public int getMaxInactiveInterval();", "private void setTimeout() {\n ServletWebRequest webRequest = (ServletWebRequest) getRequest();\n\n if (getWebadminSession().isSignedIn()) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of setLapse_rate_factor method, of class Motorization.
@Test public void testSetLapse_rate_factor() { System.out.println("setLapse_rate_factor"); double lapse_rate_factor = 10.0; Motorization instance = new Motorization(); instance.setLapse_rate_factor(lapse_rate_factor); }
[ "@Test\n public void testGetLapse_rate_factor() {\n System.out.println(\"getLapse_rate_factor\");\n Motorization instance = new Motorization();\n double expResult = 10.0;\n instance.setLapse_rate_factor(expResult);\n double result = instance.getLapse_rate_factor();\n ass...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the document manager in this specification
public void setDocumentManager( OntDocumentManager docMgr ) { m_docManager = docMgr; }
[ "public void setManager(Manager manager);", "public void setManager ( Object manager ) {\r\n\t\tgetStateHelper().put(PropertyKeys.manager, manager);\r\n\t\thandleAttribute(\"manager\", manager);\r\n\t}", "public void setManager(Manager aManager) {\n manager = aManager;\n }", "public void setManage...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the resolution for a provided extent (in map units) and size (in pixels).
public native final Double getResolutionForExtent(Extent extent, Size size)/*-{ var res = this.getResolutionForExtent(this.__transformInputExtent(extent), size); return res==null ? null : @java.lang.Double::valueOf(D)(res); }-*/;
[ "public static double calculateResolutionFromScale(ReferencedEnvelope bounds, double scale, int tileWidth) {\n \t if (isLatLong(bounds.getCoordinateReferenceSystem())){\n \t return (DEFAULT_PIXEL_SIZE_METER * DEGREES_PER_METER) * ( (scale*tileWidth) * DEGREES_PER_METER);\n \t } else {\n \t retu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
RETURNS: an empty roster
public static Rosters empty() { List<Player> pList = new ArrayList<Player>(); return new Rosters(pList); }
[ "public Roster readyRoster ()\n\t{\n\t\tList<Player> resultList = new ArrayList<Player>();\n\t\tIterator<Player> it = iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tPlayer p = it.next();\n\t\t\tif(p.available())\n\t\t\t\tresultList.add(p);\n\t\t}\n\t\treturn new Rosters(resultList);\n\t}", "public Location ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Container's getter for RegionsView.
public ViewObjectImpl getRegionsView() { return (ViewObjectImpl) findViewObject("RegionsView"); }
[ "public Regions getRegions () {\n return this.regions;\n }", "public RegionsViewImpl getRegionsView1() {\n return (RegionsViewImpl)findViewObject(\"RegionsView1\");\n }", "public RegionsConfig getRegionsConfig()\n {\n return config;\n }", "public WorldRegions getWorldRegions()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
constructor by color and material
public Geometry(Color emission, Material material) { this._emmision = new Color(emission); this. _material = material; }
[ "public Material() {}", "public Material create();", "public Geometry(Color emmission) {\r\n\t\tthis(emmission, new Material(0, 0, 0));\r\n\t}", "private Material(float[] diffuse, float[] specular, float shininess) {\n this.diffuse = diffuse;\n this.specular = specular;\n this.shininess =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }