query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
produce sum of cosine similarities among the given symbols
public static float similarity(String str) { /*Set<Character> distinct = symbols(str); if (distinct.size() != str.length()) { str = ""; for (Character ch : distinct) str += ch; }*/ Map<Character, Float> bySymbol = new HashMap<Character, Float>(); float sum = 0; for (int i=0; i<str.length()-1; i++) { ...
[ "private double getCosineSim(Mat embedding1, Mat embedding2) {\n // Calculate the similarity between the two embeddings\n double ab = embedding1.dot(embedding2);\n double aa = embedding1.dot(embedding1);\n double bb = embedding2.dot(embedding2);\n double cossim = ab / (Math.sqrt(a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column exam_questions_narrow.show_type
public Integer getShowType() { return showType; }
[ "public String getShowType() {\n return showType;\n }", "public void setShowType(Integer showType) {\n this.showType = showType;\n }", "public void setShowType(String showType) {\n this.showType = showType;\n }", "public String getSpecShowType() {\n return specShowType;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CPU overcommit. Check the CpuOvercommitType enum for the list of possible values. optional string cpu_overcommit_type = 247727959;
com.google.protobuf.ByteString getCpuOvercommitTypeBytes();
[ "java.lang.String getCpuOvercommitType();", "boolean hasCpuOvercommitType();", "java.lang.String getAvailableCpu();", "public void setCpu(int value) {\n this.cpu = value;\n }", "public Integer getOslimbycpu() {\r\n return oslimbycpu;\r\n }", "public void setOslimbycpu(Integer oslimbycp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sum all double values from a list, and keep two decimals.
public static double sum(List<Double> doubleList) { double sum = 0; int size = doubleList.size(); for (int i = 0; i < size; i++) { sum += doubleList.get(i); } return (double) Math.round(sum * 100) / 100;//保留两位小数 }
[ "public static double getSummation(List<Double> list) {\n double accumulated = 0;\n for (int i = 0; i < list.size(); i++) {\n accumulated = accumulated + list.get(i);\n }\n return accumulated;\n }", "public static double sum(Iterable<? extends Number> values) {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Forma con el evento Attach de los fragmentos
@Override public void onAttachFragment(Fragment fragment) { if (fragment instanceof U6022_Fragmento) { U6022_Fragmento headlinesFragment = (U6022_Fragmento) fragment; //headlinesFragment.estableceManejadorEvento(this); headlinesFragment.estableceManejadorEvento(new U6022_...
[ "void attach (ObservateurGenerateurAsync observateur);", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n DetalleFotoFragment detalle = new DetalleFotoFragment();\n detalle.setArguments(getIntent().getExtras());\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for an BaseTypeIdImpl
BaseTypeIdImpl(String SQLTypeName) { this.schemaName = null; this.unqualifiedName = SQLTypeName; }
[ "BaseTypeIdImpl(String schemaName, String unqualifiedName )\n {\n this.schemaName = schemaName;\n this.unqualifiedName = unqualifiedName;\n }", "public CustConfigTableType(java.lang.Integer typeId)\n {\n super(typeId);\n }", "BaseTypes createBaseTypes();", "public StatusType(j...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appends and returns a new empty "hostdashlet" element
public noNamespace.HostdashletDocument.Hostdashlet addNewHostdashlet() { synchronized (monitor()) { check_orphaned(); noNamespace.HostdashletDocument.Hostdashlet target = null; target = (noNamespace.HostdashletDocument.Hostdashlet)get_store().add_element_use...
[ "public void setHostdashlet(noNamespace.HostdashletDocument.Hostdashlet hostdashlet)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.HostdashletDocument.Hostdashlet target = null;\r\n target = (noNamespace.HostdashletDocument.Hostdashl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this tests ensures that we have two roles when we use DataLoader class, and when we register new user, we set his role to the first one
@Test public void findByRoleReturnsTwoRolesWithDataLoader() throws Exception { assertThat( roleDao.findOne(1L), hasProperty("name", equalTo("ROLE_USER")) ); assertThat( roleDao.findOne(2L), hasProperty("name", equalTo("ROLE_ADMI...
[ "@Test public void testResourceDefRoles() throws ObjectExistsException,PasswordException, AccountExistsException\n\t{\n\t\tRoleDefinition role1 = new RoleDefinition(\"role1\");\n\t\tRoleDefinition role2 = new RoleDefinition(\"role2\");\n\t\tRoleDefinition role3 = new RoleDefinition(\"role3\");\n\t\tRoleDefinition r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
processOnline Process Online Payment. implements ProcessCall after standard constructor Called when pressing the Process_Online button in C_Payment
public boolean startProcess (Properties ctx, ProcessInfo pi, Trx trx) { if (log.isLoggable(Level.INFO)) log.info("startProcess - " + pi.getRecord_ID()); boolean retValue = false; // if (pi.getRecord_ID() != get_ID()) { log.log(Level.SEVERE, "startProcess - Not same Payment - " + pi.getRecord_ID());...
[ "public boolean startProcess(Properties ctx, ProcessInfo pi, Trx trx) {\n log.info(\"startProcess - \" + pi.getRecord_ID());\n boolean retValue = false;\n //\n if (pi.getRecord_ID() != get_ID()) {\n log.log(Level.SEVERE, \"startProcess - Not same Payment - \" + pi.getRecord_ID...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts a ConfirmUpdatePacket to a JSONObject
@Override public JSONObject toJSONObject() throws JSONException { JSONObject json = new JSONObject(); Packet.putPacketType(json, getType()); if (returnTo != null) { json.put(RETURNTO, returnTo); } json.put(REQUESTID, requestID); json.put(CCPREQUESTID, CCPRequestID); // store it as an...
[ "public ConfirmUpdatePacket(JSONObject json, Stringifiable<NodeIDType> unstringer) throws JSONException {\n this.type = Packet.getPacketType(json);\n this.returnTo = json.has(RETURNTO) ? unstringer.valueOf(json.getString(RETURNTO)) : null;\n this.requestID = json.getInt(REQUESTID);\n this.CCPRequestID =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the maxprice property.
public int getMaxprice() { return maxprice; }
[ "public BigDecimal maxPrice() {\n return this.maxPrice;\n }", "public double getMaximumPrice() {\r\n return maximumPrice;\r\n }", "public Double getHighestPrice() {\n\t\treturn this.highestPrice;\n\t}", "public int getMaxPrice() {\r\n\t\tsuper.beginDbAction();\r\n\r\n\t\tSession session = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column zmap_r_patient.second_language
public String getSecondLanguage() { return secondLanguage; }
[ "public java.lang.String getSecondaryLang() {\r\n return secondaryLang;\r\n }", "public void setSecondLanguage(String secondLanguage) {\r\n this.secondLanguage = secondLanguage == null ? null : secondLanguage.trim();\r\n }", "public String getSecondaryLanguage(){\n return sharedPrefer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
SecurityLayer.Log(TAG, "Pin changed, new length " + pinLength + " with intermediate pin " + intermediatePin);
@Override public void onPinChange(int pinLength, String intermediatePin) { }
[ "private void changeUserPIN(byte[] apduBuffer, byte len) {\n if (!(len == PIN_LENGTH && allDigits(apduBuffer, ISO7816.OFFSET_CDATA, len))) {\n ISOException.throwIt(ISO7816.SW_WRONG_DATA);\n }\n\n pin.update(apduBuffer, ISO7816.OFFSET_CDATA, len);\n pin.check(apduBuffer, ISO7816.OFFSET_CDATA, len);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If the solving request was valid, run the solver and copy the solved values into the solving array.
public boolean attemptSolve() { if (!solver.checkValidSolveRequest(solvingArray)) { return false; } else { solver.solveArray(solvingArray); System.arraycopy(solver.getSolvedArray(), 0, solvedArray, 0, 81); return true; } }
[ "public void solve() {\r\n\t\tOptimizationStatus status;\r\n\t\tdo {\r\n\t\t\tstatus = iterate();\r\n\t\t} while (status == RUNNING);\r\n\t}", "private void solve() {\n\t\tChatterbox.showSolutions(solver);\n\t\tsolver.findAllSolutions();\n\t\tChatterbox.printStatistics(solver);\n\t}", "public void solve()\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To get Plugin Properties Service.
public PluginPropertiesService getPluginPropertiesService() { return pluginPropertiesService; }
[ "public PluginProperties getProperties();", "public PropertyResourceBundle getPluginProperties() {\r\n\t\tif (pluginProperties == null) {\r\n\t\t\ttry {\r\n\t\t\t\tpluginProperties = JDTUtil.getPluginProperties(getBundle());\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlogger.error(e);\r\n\t\t\t}\r\n\t\t}\r\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function returns if source is assigned to ship
public boolean isEnergyAssigned(Ship ship, AbstractObject source) { boolean result = false; if(energyToShip.containsKey(source.getId()) && !(ship.getId().equals(energyToShip.get(source.getId()).getId()))) { // Check if ship already has beacon result = true; } return result; }
[ "public void setSource(Ship sourceShip){\n this.source = sourceShip;\n }", "private boolean connectedToSourceConstraint() {\n if(isSource() || !isAssigned()) return true;\n return hasPathToSource(new ArrayList<>());\n }", "public boolean isShipAlreadyPiloted() {\t\t\n\t\tfor (ACBaseSh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method for printing the primes that are less than X
private void printFirstXPrimes(int[] primes, int X) { System.out.println("All primes less than " + X + ": "); int counter = 0; while (true) { if (counter < primes.length && primes[counter] < X) { System.out.print(primes[counter] + ", "); counter++; } else { ...
[ "private void printPrimes() {\n System.out.println(\"The prime numbers between 0 and \" \n + (primes.size() - 1) + \" are:\");\n for (int i = 0; i < primes.size(); i++) {\n if (isPrime(i)) {\n System.out.print(i + \" \");\n }\n \n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__InitialNode__Group_3_3__0" $ANTLR start "rule__InitialNode__Group_3_3__0__Impl" InternalActivityDiagram.g:3313:1: rule__InitialNode__Group_3_3__0__Impl : ( ',' ) ;
public final void rule__InitialNode__Group_3_3__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalActivityDiagram.g:3317:1: ( ( ',' ) ) // InternalActivityDiagram.g:3318:1: ( ',' ) { // InternalActivi...
[ "public final void rule__InitialNode__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalActivityDiagram.g:3109:1: ( rule__InitialNode__Group__3__Impl )\n // InternalActivityDiagram.g:3110:2: rule__InitialNode__Gro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional float insertion_cost = 8;
@java.lang.Override public float getInsertionCost() { return insertionCost_; }
[ "float getInsertionCost();", "@java.lang.Override\n public float getInsertionCost() {\n return insertionCost_;\n }", "boolean hasInsertionCost();", "float getCostReduction();", "public void setCost(double d);", "protected abstract double getDefaultCost();", "InitialCost createInitialCost();",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
RelOptCost defines an interface for optimizer cost in terms of number of rows processed, CPU cost, and I/O cost. Optimizer implementations may use all of this information, or selectively ignore portions of it. The specific units for all of these quantities are rather vague; most relational expressions provide a default...
public interface RelOptCost { //~ Methods ---------------------------------------------------------------- /** * @return number of rows processed; this should not be confused with the * row count produced by a relational expression ({@link * org.eigenbase.rel.RelNode#getRows}) */ public...
[ "public RelOptCost plus(RelOptCost cost);", "public void setOptimalCost(double optCost){\r\n\t\tthis.optimalCost = optCost;\r\n\t}", "public abstract double getCost();", "public interface CostReducer {\n /**\n * Get the percent cost reduction, from 0.0 to 1.0\n * @return The percent cost reduction....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the desired weights sum.
public float getWeightSum() { return mWeightSum; }
[ "java.lang.String getTotalWeight();", "public double totalWeight() {\n double weight = 0;\n for (Edge e : mst){\n weight = weight + e.getWeight();\n }\n return weight;\n }", "double getWeight();", "public double getOutcomeWeightSum() { return outcome_w_sum; }", "But...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs an empty DefaultWinComboBoxModel object.
public DefaultWinComboBoxModel() { objects = new Vector<Item>(); }
[ "public DefaultWinComboBoxModel(final Item items[]) {\r\n\t\tobjects = new Vector<Item>();\r\n\t\tobjects.ensureCapacity(items.length);\r\n\r\n\t\tint i, c;\r\n\t\tfor (i = 0, c = items.length; i < c; i++)\r\n\t\t\tobjects.addElement(items[i]);\r\n\r\n\t\tif (getSize() > 0) {\r\n\t\t\tselectedObject = getElementAt(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the terminology manager's identifier for the specified uri. The uri's identifier is usually based on the short version of the uri, if there is any.
public Identifier toIdentifier(URI uri) { return ShortURIImpl.toIdentifier(toShortURI(uri)); }
[ "public Identifier toIdentifier(java.net.URI uri) {\n\t\treturn ShortURIImpl.toIdentifier(toShortURI(uri));\n\t}", "private static long toId(URI uri)\n\t{\n\t\t// Releases are identified by \"<package>.release:<id>\" where <package> is the current package\n\t\t// and <id> is the database identifier.\n\t\tif (!uri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the end cap style (round, flat/butt, square)
public String getEndCapStyle() { return endCapStyle; }
[ "public Cap getStrokeCap() {\n return mStrokeCap;\n }", "public void setEndCapStyle(String endCapStyle) {\n this.endCapStyle = endCapStyle;\n }", "public LineCap getOutlineCap() {\n return borderCap;\n }", "String getEndColor();", "public void setStrokeCap(int cap) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start "base" org/ruleml/api/presentation_syntax_parser/PSOARuleMLPS.g:73:1: base : BASE LPAR IRI_REF RPAR > ^( BASE IRI_REF ) ;
public final PSOARuleMLPSParser.base_return base() throws RecognitionException { PSOARuleMLPSParser.base_return retval = new PSOARuleMLPSParser.base_return(); retval.start = input.LT(1); CommonTree root_0 = null; Token BASE11=null; Token LPAR12=null; Token IRI_REF13=nu...
[ "public final void base() throws RecognitionException {\n\t\ttry {\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/TurtleOBDA.g:346:3: ( AT BASE uriref )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/TurtleOBDA.g:346:5: AT BASE ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
it's initialized create a MazeCoord with the given row and column
public MazeCoord(int row, int col) { this.row = row; this.col = col; }
[ "public Coordinate() { row = col = -1; }", "Cell(int column, int row){\r\n\t\tcoordinate = new Coordinate(column,row);\r\n\t}", "private void constructMaze() {\n Random r = new Random();\r\n // generate random numbers between 0 and dimension (non-inclusive)\r\n int randomStartI = r.nextInt(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the duration of a limited license which expires on a given date.
public void setLimitedLicense ( Date expiration ) throws IllegalConfigException { long start = getNetTime(); long end = expiration.getTime(); if(start >= end) end = start + 2592000000L; pProfile.put("LicenseStart", new Date(start)); pProfile.put("LicenseStartStamp", new Long(...
[ "public void doSetExpirationDate(Date val) {\n this.dtExpiration = val;\n }", "void setExpirationDate(java.lang.String expirationDate);", "public void setExpirationDate(Date val) {\n doSetExpirationDate(val);\n }", "void setExpiredDate(Date expiredDate);", "public void setLicenseExpirationDate(java....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the summarized information of the entries that belong to the entry groups with the given group id list
public LedgerEntryHolder getSummaryByGroupId(Collection groupIdList);
[ "public LedgerEntryHolder getSummaryByGroupId(Collection groupIdList) {\n LOG.debug(\"getSummaryByGroupId() started\");\n\n LedgerEntryHolder ledgerEntryHolder = new LedgerEntryHolder();\n\n if (groupIdList.size() == 0) {\n return ledgerEntryHolder;\n }\n\n return ledge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//GENEND:|39getter|2| //GENBEGIN:|40getter|0|40preInit Returns an initiliazed instance of tfFormParcela component.
public TextField getTfFormParcela() { if (tfFormParcela == null) {//GEN-END:|40-getter|0|40-preInit // write pre-init user code here tfFormParcela = new TextField("Parcela:", "1 de 11 - NAO PAGA", 32, TextField.ANY | TextField.UNEDITABLE);//GEN-LINE:|40-getter|1|40-postInit /...
[ "public TextField getTfFindCodParc() {\n if (tfFindCodParc == null) {//GEN-END:|31-getter|0|31-preInit\n // write pre-init user code here\n tfFindCodParc = new TextField(\"N\\u00FAmero da Parcela\", null, 6, TextField.NUMERIC);//GEN-LINE:|31-getter|1|31-postInit\n // write po...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Returns an ArrayList consisting of top k documents that are relevant to the query
public ArrayList<String> topKDocs(String query, int k, String folder){ pi = new PositionalIndex(folder); String[] topKDocsArray = new String[k]; double[] topKDocsRelevanceScores = new double[k]; String[] allDocs = pi.getAllDocs(); for(int i=0; i<k; i++){ topKDocsRele...
[ "public static Set<String> getTopKDocuments(Set<String> documents, int k) {\n Set<String> topKDocuments = new HashSet<>();\n int count = 0;\n\n for (String document : documents) {\n if (count == k) break;\n topKDocuments.add(document);\n count++;\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Contains the menu for changing a RegisteredCustomer's address according to user input.
public static void changeCustomerAddressMenu() { Scanner in = new Scanner(System.in); int id; String input; String address; for (; ; ) { id = 0; try { System.out.print( "Enter the id of the registered customer you want to change\n" + "To canc...
[ "public static void searchAndPrintCustomerByAddressMenu() {\r\n Scanner in = new Scanner(System.in);\r\n String input;\r\n for (; ; ) {\r\n System.out.print(\r\n \"Enter the address of the registered customer you want to print\\n\"\r\n + \"To cancel, press \\\"enter\\\": \");\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Show the signup form, but keep the transaction on the back stack so that if the user clicks the back button, they are brought back to the login form.
@Override public void onSignUpClicked(String username, String password) { FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); transaction.replace(fragmentContainer, new ParseSignupFragment()); transaction.addToBackStack(null); transaction.commit(); }
[ "public void goBackSignupChooseUniversity() {\n saveToUserSetup();\n FragmentManager manager = getActivity().getSupportFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.setCustomAnimations(R.anim.enter_from_left, R.anim.exit_to_right);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called for each method that may be intercepted by the default interception service. The incoming list is not modifiable. If this method returns null then the original list (the list passed in) will be used asis. If this method does NOT return null then the list returned will be the list that will be used...
public List<MethodInterceptor> modifyMethodInterceptors(Method method, List<MethodInterceptor> currentList);
[ "List<MethodInterceptor> getInterceptors(Method method);", "@Contract\npublic interface InterceptorOrderingService {\n \n /**\n * This method is called for each method that may be intercepted by the default\n * interception service. The incoming list is not modifiable. If this method\n * retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__And__Group_1__0" $ANTLR start "rule__And__Group_1__0__Impl" ../com.blasedef.onpa.ONPA.ui/srcgen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:7100:1: rule__And__Group_1__0__Impl : ( () ) ;
public final void rule__And__Group_1__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:7104:1: ( ( () ) ) // ../com.blasedef.onpa...
[ "public final void rule__And__Group_1__0__Impl() throws RecognitionException {\n int rule__And__Group_1__0__Impl_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 683) ) { return ; }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Processor interface for handling a property of an entity.
public interface PropertyProcessor extends Processor { /** * Reads primitive or complex property from entity. * If the property is single-valued and has the null value, the service responds with 204 No Content. * If the property is not available, for example due to permissions, the service responds with 404...
[ "public interface IProperty {\n\n\n\n /**\n * Return the value associated with the column: entity.\n\t * @return A BaseEntity object (this.entity)\n\t */\n\tBaseEntity getEntity();\n\t\n\n \n /** \n * Set the value related to the column: entity.\n\t * @param entity the entity value you wish to set\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Restart the app after every test class to go back to the main screen and to reset the behavior.
@AfterTest public void restartApp() { driver.resetApp(); }
[ "void resetApp();", "public void resetGame(){\n Log.d(TAG,\"Reset application in Controller\");\n this.setChanged();\n this.notifyObservers(Constants.RESET_GAME);\n }", "public void restartApp() {\n // Create restartIntent.\n Intent restartIntent = getBaseContext().getPack...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets polygon points arr.
public static ArrayList<ArrayList<Point2D>> getPolygonPointsArr() { return polygonPointsArr; }
[ "public Point[] getPolyPoints() {\n\t\tPoint[] temp = new Point[numberOfPoints];\n\n\t\tint[] xPoints = hitBoxPoly.xpoints;\n\t\tint[] yPoints = hitBoxPoly.ypoints;\n\n\t\tfor (int i = 0; i < temp.length; i++) {\n\t\t\ttemp[i] = new Point(xPoints[i], yPoints[i]);\n\t\t}\n\t\treturn temp;\n\n\t}", "private static ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column table84.TD14
public String getTd14() { return td14; }
[ "public String getTd4() {\r\n return td4;\r\n }", "public String getTd11() {\r\n return td11;\r\n }", "public String getTd12() {\r\n return td12;\r\n }", "public T14 t14Value()\n {\n return this.object14;\n }", "public String getTd6() {\r\n return td6;\r\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
IBoardDAO mapper = session.getMapper(IBoardDAO.class); int cnt=mapper.insertBoard(board, session); return cnt;
@Override public int insertBoard(BoardVO board, SqlSession session) { return session.insert("kr.or.ddit.board.dao.IBoardDAO.insertBoard",board); // }
[ "@Test\n public void ItemMapperTest(){\n// item.setItemCode(UUID.randomUUID().toString().substring(0,5));\n// itemMapper.updateByPrimaryKeySelective(item);\n// System.out.println(item.toString());\n\n ItemMapper itemMapper1 = sqlSession.getMapper(ItemMapper.class);\n//\n for(in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Show dialog to create an auction
@Override public void actionPerformed(ActionEvent e) { JFrame frame = (JFrame) SwingUtilities.getRoot(auctionThis); CreateAuctionDialog auctionDialog = new CreateAuctionDialog(frame, modelManager); auctionDialog.setVisible(true); }
[ "private void showDialogueForSaveDeal() {\n CustomDialogForSaveDeal dialogueForSaveDeal = new CustomDialogForSaveDeal(this, () -> {\n String dealId = \"\";\n if (addProductServiceModel != null && addProductServiceModel.getId() != null)\n dealId = addProductServiceModel.ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of series in the dataset.
public int getSeriesCount() { return this.data.getSeriesCount(); }
[ "public int seriesCount() {\n return this.dataset.seriesCount();\n }", "public IntegerDt getNumberOfSeries() { \n\t\tif (myNumberOfSeries == null) {\n\t\t\tmyNumberOfSeries = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfSeries;\n\t}", "@Override\n public int getSeriesCount() {\n return dat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster. Imperative only.
default void promoteCluster( com.google.cloud.alloydb.v1alpha.PromoteClusterRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getPromoteClusterMethod(), responseObserver); }
[ "public void recluster() {\r\n clusterManager.cluster();\r\n }", "private void promoteReplica() throws IOException {\n message(\"top: primary crashed; now pick replica to promote\");\n long maxSearchingVersion = -1;\n NodeProcess replicaToPromote = null;\n\n // We must promote the most curre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
declaring outside the function helps in stopping the listener when request is cancelled recursively find the closest driver in a specific radius
private void findDriver() { DatabaseReference location = FirebaseDatabase.getInstance().getReference().child("driversAvailable"); GeoFire geoFire = new GeoFire(location); query = geoFire.queryAtLocation(new GeoLocation(pickupLoc.latitude, pickupLoc.longitude), radius);//min radius 1 Meter, ma...
[ "private void getClosestDriver() {\n availableDriverDatabaseReference = databaseReference.child(NodeNames.AVAILABLEDRIVERS);\n\n // uses the Firebase Realtime Database for data storage to read and write geo location data to your Firebase database and to create queries\n\n GeoFire geoFire = new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__UseCaseModel__Group__7" $ANTLR start "rule__UseCaseModel__Group__7__Impl" ../br.com.levysiqueira.dsl.textualusecase.ui/srcgen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCase.g:1036:1: rule__UseCaseModel__Group__7__Impl : ( ( rule__UseCaseModel__UseCaseAssi...
public final void rule__UseCaseModel__Group__7__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../br.com.levysiqueira.dsl.textualusecase.ui/src-gen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCase.g:...
[ "public final void rule__UseCaseModel__Group__7() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../br.com.levysiqueira.dsl.textualusecase.ui/src-gen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .proto.RoleInfoVoProto roleVo = 2;
com.funcy.g01.base.proto.bo.GlobalBoProtoBuffer.RoleInfoVoProto getRoleVo();
[ "com.funcy.g01.base.proto.bo.GlobalBoProtoBuffer.RoleInfoVoProtoOrBuilder getRoleVoOrBuilder();", "com.message.MessageInfo.RoleVOOrBuilder getRoleOrBuilder();", "public com.funcy.g01.base.proto.bo.GlobalBoProtoBuffer.RoleInfoVoProtoOrBuilder getRoleVoOrBuilder() {\n return roleVo_;\n }", "public com.f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the default choice.
public void setDefaultChoice(final boolean defaultChoice) { this.defaultChoice = defaultChoice; }
[ "protected void SetDefault() {\r\n\t\tBrickFinder.getDefault().setDefault();\t\t\r\n\t}", "public boolean isDefaultChoice()\r\n\t{\r\n\t\treturn defaultChoice;\r\n\t}", "protected void setDefaultSelected() {\n\t\tRegisterTable algReg = PluginStorage.getRecommenderReg();\n\t\tAlg defaultAlg = algReg.query(\"gfal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the values of this qualifier. The StringVector that is returned is a copy (use addValues (), removeValue () etc. to change the Qualifier), but the String objects inside the vector are not copied so the same String references will occur in all copies.
public StringVector getValues () { if (values == null) { return null; } else { return values.copy (); } }
[ "public StringVector getValuesOfQualifier (String qualifier_name)\n throws InvalidRelationException {\n final Qualifier this_qualifier = getQualifierByName (qualifier_name);\n\n if (this_qualifier == null) {\n return null;\n } else {\n return this_qualifier.getValues ();\n }\n }", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the van ban phap quy with the primary key or returns null if it could not be found.
public static com.dtt.portal.dao.vbpq.model.VanBanPhapQuy fetchByPrimaryKey( long id) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByPrimaryKey(id); }
[ "Questionbank selectByPrimaryKey(Integer qbid);", "@Override\n\tpublic com.dtt.portal.dao.vbpq.model.VanBanPhapQuy getVanBanPhapQuy(long id)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.getVanBa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The most recently invoked evaluation for the processor version. .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8;
public com.google.cloud.documentai.v1beta3.EvaluationReferenceOrBuilder getLatestEvaluationOrBuilder() { if (latestEvaluationBuilder_ != null) { return latestEvaluationBuilder_.getMessageOrBuilder(); } else { return latestEvaluation_ == null ? com.google.cloud.documentai....
[ "@java.lang.Override\n public com.google.cloud.documentai.v1beta3.EvaluationReference getLatestEvaluation() {\n return latestEvaluation_ == null\n ? com.google.cloud.documentai.v1beta3.EvaluationReference.getDefaultInstance()\n : latestEvaluation_;\n }", "public com.google.cloud.documentai.v1be...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the provided item to the batch to be inserted
public abstract void addToBatch(T item);
[ "Item addItem(Item item);", "public void insert(MovieDBItem item) {\n innerList.add(item);\n }", "public Long addToItemStore(String itemKey, Item item);", "public void push(ByteBufferWithInfo item)\n {\n list.addFirst(item);\n }", "@Insert\n long insert(MarkItem item);", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface representing an unmodifiable reached set
public interface UnmodifiableReachedSet extends Iterable<AbstractState> { public Collection<AbstractState> asCollection(); @Override public Iterator<AbstractState> iterator(); public Collection<Precision> getPrecisions(); /** * Returns a subset of the reached set, which contains at least all abstract ...
[ "interface SetOf<T extends LessThanOrEqualTo<T>> extends Iterable<T>, LessThanOrEqualTo<SetOf<T>> {\n T get();\n void add(T e);\n boolean empty();\n boolean member(T e);\n boolean subset(SetOf<T> e);\n SetOf<T> union(SetOf<T> e);\n SetOf<T> intersection(SetOf<T> e);\n SetOf<T> difference(SetOf<T> e);\n}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Patches a single game server deployment rollout.
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> updateGameServerDeploymentRollout( com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest request) { return futureUnaryCall( getChannel() .newCall(getUpdateGame...
[ "public com.google.longrunning.Operation updateGameServerDeploymentRollout(\n com.google.cloud.gaming.v1alpha.UpdateGameServerDeploymentRolloutRequest request) {\n return blockingUnaryCall(\n getChannel(),\n getUpdateGameServerDeploymentRolloutMethodHelper(),\n getCallOptions(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper for calling datastore.writeWatchChange() on the AsyncQueue.
private void writeWatchChange(WatchChange change, SnapshotVersion version) throws Exception { queue.runSync(() -> datastore.writeWatchChange(change, version)); }
[ "private void queueModified() {\n\tmServiceExecutorCallback.queueModified();\n }", "public void sync() {\n //Operation op = createNoOp();\n Operation op = createCommitOperation();\n mWriteQueue.enqueue(op);\n waitForCompletion(op);\n }", "public void markAsWatched() {\n\tDateFo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
a (1 + r)^n
static BigDecimal compound(final BigDecimal a, final BigDecimal r, final int n) { return a.multiply(ONE.add(r).pow(n)); }
[ "private static long binomial(int n, int r) {\n long prod = 1;\n for (int i = 0; i < r; i++) {\n prod = prod * (n - i);\n }\n return prod / factorial(r);\n }", "Integer computeBinomialCoefficient(long n,long r){\r\n\t if(n==r||r==0)\r\n\t\t return 1;\r\n\t else\r\n\t\treturn computeBinomia...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used by the Operation constructor to number operations in order created. It probably should only be used by this constructor.
public int getNewOperNum () { return ++maxOperNum; }
[ "public Operation() {\n super();\n }", "public void incrementOrder() {\n mOrder++;\n }", "Operations createOperations();", "public void incrementOrderNumber()\r\n {\r\n orderNumber = getNextOrderNumber();\r\n nextOrderNumber++;\r\n }", "public SalesOrder()\r\n\t{\r\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column sysfunction.FUNCTION_CLASS
public void setFunctionClass(String functionClass) { this.functionClass = functionClass == null ? null : functionClass.trim(); }
[ "public String getFunctionClass() {\n return functionClass;\n }", "String getDefaultFunctionClass();", "public void setUpdaterFuncClass(String updaterFuncClass) {\n this.updaterFuncClass = updaterFuncClass;\n }", "public String getUDFClassName() {\n return functionClz.getName();\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get accounting From Date
public static String getAccountingFromDate(Record record){ return record.getStringValue(ACCOUNTING_FROM_DATE); }
[ "java.util.Calendar getInvoiceDate();", "public Timestamp getDateAcct();", "java.util.Calendar getTaxPointDate();", "java.lang.String getBillDate();", "Date getInvoicedDate();", "java.lang.String getInvoiceDate();", "private Account getAccountOpenDate(int accountId) {\n\t\treturn dealsRepository.getAcco...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the name of this Owner
public void setName(String name) { if (name.isEmpty()) { System.out.println("Owner name must not be empty"); /** * If Owner name is ever an empty String, a NullPointerException will be thrown when the * listings are loaded in from the JSON file. I believe this is because the JSON parser ...
[ "public void setOwnerName(String name) {\n ((ObjectNode) jsonContent).with(OWNER_KEY).put(OWNER_NAME_KEY, name);\n }", "public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }", "public void setName(String name) {\nSystem.out.println(\"this is the newly set owner name\"+name);\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__JvmTypeReference__Alternatives" $ANTLR start "rule__JvmArgumentTypeReference__Alternatives" ../org.xtext.lwc.instances.ui/srcgen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2418:1: rule__JvmArgumentTypeReference__Alternatives : ( ( ruleJvmTypeReference ) | ( ruleJvmWild...
public final void rule__JvmArgumentTypeReference__Alternatives() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2422:1: ( ( ruleJvmTypeRe...
[ "public final void rule__JvmArgumentTypeReference__Alternatives() 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:3464:1: ( ( ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the index of the lastfound delimiter. indexOfLast("foo.bar/baz.qux", ".", "/") returns the index of ".qux"
public static IndexOfInfo indexOfLast(final String str, final String... delimiters) { return doIndexOfLast(false, str, delimiters); }
[ "private int findIndexOfLastWord (ArrayList<String> parameters) {\n int indexOfLastWord = -1;\n for (int i = 0; i < parameters.size(); i++) {\n if (parameters.get(i).contains(\".\")) {\n indexOfLastWord = i;\n } \n }\n return indexOfLastWord;\n }", "private static String getLast...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a default warning controller which has no warning.
public Warning() { this(new ArrayList()); }
[ "public static LogType WARNING()\n {\n if (g_oWarning == null)\n {\n try\n {\n g_oWarning = new LogType(\"WARNING\", 20);\n }\n catch (Goliath.Exceptions.InvalidParameterException ex)\n {}\n }\n return g_oWarning;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update plans Folders Mirror References when contract designation or company name changes
void updatePlansFolderReferencePath(Collection<Contract> contracts, String contractDesignation, String companyName) throws JackrabbitException;
[ "Update withNewFreeAppServicePlan();", "@Test\n public void testRewriteMiddlePlans() {\n UnboundRelation unboundRelation = new UnboundRelation(RelationUtil.newRelationId(), Lists.newArrayList(\"test\"));\n LogicalProject insideProject = new LogicalProject<>(\n ImmutableList.of(new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests to see if the capacity method works
@Test public void testCapacity() { assertEquals(5, empty.capacity()); assertEquals(5, one.capacity()); assertEquals(5, many.capacity()); }
[ "@Test\n public void capacityTest() {\n // TODO: test capacity\n }", "public void testCapacityUnChanged()\n {\n assertTrue(strList.capacity() == 10000);\n }", "@Test\r\n\tpublic void testCapacityEmpty() \r\n\t{\r\n\t\tDeque12<String> dequeBigger = new Deque12<String>(2 * CAP);\r\n\t\tDeque12<S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the recommendationId property: Recommendation ID of an associated recommendation object tied to the rule, if exists. If such an object doesn't exist, it is set to null.
public RecommendationRuleProperties withRecommendationId(UUID recommendationId) { this.recommendationId = recommendationId; return this; }
[ "public void setRecommendId(Integer recommendId) {\n this.recommendId = recommendId;\n }", "public String getRecommendationId() {\n return this.recommendationId;\n }", "public Integer getRecommendId() {\n return recommendId;\n }", "public UUID recommendationId() {\n return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the statistics of a partition.
CatalogTableStatistics getPartitionStatistics( ObjectPath tablePath, CatalogPartitionSpec partitionSpec) throws PartitionNotExistException, CatalogException;
[ "@ThreadSafe\npublic interface PartitionStatistics extends Mergeable<PartitionStatistics> {\n /**\n * @return the total number of rows in the partition.\n */\n long rowCount();\n\n /**\n * @return the total size of the partition (in bytes).\n */\n long totalSize();\n\n /**\n * @re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if all extras are present in an intent.
public boolean hasAll(Intent intent, String... extras) { for (String extra : extras) { if (!intent.hasExtra(extra)) { return false; } } return true; }
[ "public boolean hasAny(Intent intent, String... extras) {\n for (String extra : extras) {\n if (intent.hasExtra(extra)) {\n return true;\n }\n }\n return false;\n }", "private boolean doesIntentHaveAppToRecieveIt(Intent intent) {\n\t\tPackageManager pac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ ==================================================================== ===========================Video Operations========================= ==================================================================== Store a sent video call.
public abstract void addSentVideo(Video video) throws UnsuportedOperationException;
[ "public abstract void addReceivedVideo(Video video) throws UnsuportedOperationException;", "Call createVideoCall(Contact callee)\n throws OperationFailedException;", "@Override\n public void onVideoTrackAdded(Call call) {\n mAcceptVideo = true;\n }", "private void setVideo(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
applying the rule transaction to the state after validation
protected boolean applyRuleTransaction(StateRuleTransaction tr) { String ruleCode = ((StateRuleTransaction)tr).code; SimpleRule rule = new SimpleRule(ruleCode); boolean isConditionValid = false; for(AccountInterface account: accounts) { if (account.getAddress().equals(rule.account_condition)){ isCond...
[ "ISchedulingRule computeValidateStateRule();", "protected boolean isRuleTransactionValidEx(StateRuleTransaction tr) {\n\t\tString addressEffect = ((StateRuleTransaction)tr).address;\n\t\tString ruleCode = ((StateRuleTransaction)tr).code;\n\t\tint transactionNonce = ((StateRuleTransaction)tr).getNonce();\n\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
parse the Genomic Location information out of the line
private void _parseLocation() { try { String chromosome_name = _line[ _chromosomeField ]; int strand = Integer.parseInt( _line[ _strandField ] ); // set the Genomic Location _location = new GenomicLocation( chromosome_name, strand ); } catch (Exception exception) { Environment.errorMessage("Error ...
[ "private Map<String, String> parseGeoLine(String line) {\n Map<String, String> asInfo = new HashMap<String, String>();\n try {\n StringTokenizer stk = new StringTokenizer(line, \"\\t\");\n asInfo.put(\"as\", stk.nextToken());\n asInfo.put(\"lat\", stk.nextToken());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ API GROUP Untuk mendapatkan daftar API group
@RequestMapping("/api/group") public Response api__group() { Map<String, Map<String, ApiAccess>> apiPrivate = accessService.getPrivateAccess(); List<String> result = new ArrayList<String>(apiPrivate.keySet()); Collections.sort(result); return Response.SUCCESS(result); }
[ "@RequestMapping(\"/api/list\")\n\tpublic Response api__list() {\n\t\tHttpServletRequest request = getRequest();\n\t\tString group = request.getParameter(\"group\");\n\t\tif (group == null) {\n\t\t\treturn Response.ERROR(\"01\", \"Group is required\");\n\t\t}\n\t\tMap<String, Map<String, ApiAccess>> apiPrivate = ac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Maintains the heap properties. When called, minHeapify assumes that the binary trees rooted at left(location) and right(location) are minheaps, but that objectHeap[location] might be larger than its children, thus violating the minHeap property. minHeapify lets the value at objectHeap[location] "float down" the heap so...
private void minHeapify(int location) { int l = left(location); int r = right(location); int smallest; if (l < this.size && this.costHeap[l] < this.costHeap[location]) { smallest = l; } else { smallest = location; } if (r < this.size && this.costHeap[r] < this.costHeap[smallest]) { smal...
[ "@Test\n\tpublic void testLocUpdatedHeapify() {\n\t\t// Test that decrease updates the .loc field\n\t\t//\n\t\tMinHeapValidator<Integer> mhv = genHeap(10);\n\t\tMinHeap<Integer> pq = mhv.pq;\n\t\tfor (int i=1; i <= 6; ++i) {\n\t\t\tmhv.check();\n\t\t\tpq.insert(i);\n\t\t\tmhv.check();\n\t\t}\n\t\tDecreaser<Integer>...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use CSActivityPinTu.newBuilder() to construct.
private CSActivityPinTu() {}
[ "private SCActivityPinTu() {}", "private SCActivityPinTuOpenTile() {}", "private CSActivityPinTuOpenTile() {}", "private SCActivityFanPai() {}", "private CSActivityFanPai() {}", "private ChangePin(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\tsuper(builder);\n\t\t}", "private Activ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Imports threeentry CSV file into a table and checks the entry created using SELECT statement.
@Test public void testThreeLineFileWithEmptyNumericColumn() throws SQLException { int updatesCnt = stmt.executeUpdate( "copy from '" + BULKLOAD_THREE_LINE_CSV_FILE_EMPTY_NUMERIC + "' into " + TBL_NAME + " (_key, age, firstName, lastName)" + " format csv"); ...
[ "@Override\n\tpublic boolean importCSVAsTable(String file, String tableName){\n\t\tString command = \"DROP TABLE \"+ tableName +\" IF EXISTS; CREATE TABLE \"+ tableName +\" AS SELECT * FROM CSVREAD('\" + file + \"');\";\n\t\tDM.addNode(new TableNode(tableName));\n\t\tif(!IDBCutoff){\n\t\treturn DB.arbitrarySQL(comm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter method for property acsProduct.
public String getAcsProduct() { return acsProduct; }
[ "public Object getProduct() {\n return mProduct;\n }", "public String getProduct() \n\t{\n\t\treturn product;\n\t}", "public T getProduct() {\n return this.product;\n }", "public void setAcsProduct(String acsProduct) {\n this.acsProduct = acsProduct;\n }", "public String product() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use BookSubject.newBuilder() to construct.
private BookSubject(Builder builder) { super(builder); }
[ "private SubjectInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Book(String title, Author author){\n this.title = title;\n this.author = author;\n }", "private BookAuthor(Builder builder) {\n super(builder);\n }", "public BookA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an XMLFilter, based on the Templates argument..
public XMLFilter newXMLFilter(Templates templates) throws TransformerConfigurationException { TransformerHandler handler = newTransformerHandler(templates); XMLFilterImpl xmlFilter = new XMLFilterImpl(); xmlFilter.setContentHandler(handler); return xmlFilter; }
[ "public XMLFilter newXMLFilter(Source source)\n throws TransformerConfigurationException \n {\n return newXMLFilter(newTemplates(source));\n }", "private void populateFilter() throws TransformerConfigurationException\r\n\t{\r\n\t\tthis.filter = new AddressSet(\"./filtered.xml\");\r\n\t\tthis.f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the Gson instance used by the connection
void setGson(Gson gson);
[ "public static void setGson(@NonNull final Gson gson) {\n\t\tRest.gson = gson;\n\t}", "public void setGson(Gson gson) {\n JsonLiteral.defaultGson = gson;\n JsonLiteral.defaultBuilder = new JsonLiteralBuilder(NameTranslator.DEFAULT_TRANSLATOR, gson);\n }", "private Gson getGson() {\n if (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The view should return the abstract channel
public absViewChannel getChannel(String channelName){ return channelListing.get(channelName); }
[ "public abstract String channelType();", "@objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();", "java.lang.String getChannel();", "public DataChannel GetChannelDetails ()\n {\n return channelDetails;\n }", "public Channel getChatMode()\r\n {\r\n return channel;\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove the given statistic from the workspace statistics. If a statistic is removed alert listeners that the statistic list has changed.
public boolean removeStatistic(StatisticConfig toRemove) { WorkspaceConfig workspace = mvc.model.getWorkspace(); int cur = getStatistics().indexOf(toRemove); if (cur >= 0) { workspace.statistics.remove(cur); notifyListeners(Type.STATISTICS); return true; } return false; }
[ "void removeStatisticsCalculation(ProcessingUnitStatisticsId statisticsId);", "public void decrementStatistic ( Statistic statistic ) throws IllegalArgumentException {\n\t\texecute ( handle -> handle.decrementStatistic ( statistic ) );\n\t}", "void removeStatustaskmonitorrecord(int i);", "public void removeFr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENLAST:event_jMenuItem_SaveAsActionPerformed Get figure dockable
public FigureDockable getFigureDock() { return this.figuresDock; }
[ "Component getDockable();", "public boolean isDockable() {\n return true;\r\n }", "public boolean isDockable() {\n return ((GenericSheet) sheet.getDetails()).isDockable();\n }", "boolean isDockedLayoutResizable();", "public DockableDragPainter getDockableDragPainter()\r\n\t{\r\n\t\tretur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the title of the song
public String getSongTitle() { return mSongTitle; }
[ "public String getTitle() {\n return mSongTitle;\n }", "public String getSongTitle() {\n return songTitle;\n }", "public String getSongTitle()\n {\n return songTitle;\n }", "public String getPlaylistTitle();", "public String getTitleFromFile(Song song) {\n // check to...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the query status for the given table and query uuid.
public BlurQueryStatus queryStatusById(String table, long uuid) throws BlurException, org.apache.thrift.TException;
[ "public List<Long> queryStatusIdList(String table) throws BlurException, org.apache.thrift.TException;", "QueryJobStatus getCurrentStatus();", "public String getStatusQuery() {\n return \"where \" + IBOUB_OPX_NettingScheduler.SCHEDULERSTATUS + \" = ? \";\n }", "@Override\n\tpublic String getStatusBy...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Selects the 'Single BillCard' radio button.
public void selectSingleBillCardRadioButton(ExtentTest extentedReport) throws Exception { try { GenericUtils.scrollIntoView(driver, radSingleBillCard); radSingleBillCard.click(); Log.message("Selected the 'Single Bill-Card' radio button", extentedReport); WaitUtils.waitForSpinner(driver); } catch (Excep...
[ "public void selectDirectBank() {\n\t\tSystem.out.println(\"this method select the radio button select direct bank. And press the continue button.\");\n\t\tclickJSx2(body_form_radiobutton_direct_banking);\n\t\twaitSleepingTheTread(1500);\n\t\tclickJSx2(body_form_button_continue);\n\t\twaitSleepingTheTread(3000);\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column order_payout.RET_MSG
public void setRetMsg(String retMsg) { this.retMsg = retMsg == null ? null : retMsg.trim(); }
[ "public void setReturnmsg(String returnmsg) {\n this.returnmsg = returnmsg;\n }", "public void setReturnMessage(String msg)\r\n\t{\r\n\t\tthis.returnMessage = msg;\r\n\t}", "public String getReturnmsg() {\n return returnmsg;\n }", "java.lang.String getRetMsg();", "private void setProperR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a monster to the trainer
public void addMonster(Dragon mon){ dragons.add(mon); }
[ "public void addMonster(Monster monster){\n monsters.add(monster);\n }", "public void addMonster(Monster monster) {\r\n monsters.add(monster);\r\n }", "protected void addMonster(MonsterObject monster)\r\n\t{\r\n\t\tmonsters.add(monster);\r\n\t}", "private void addAndCreateMonster() {\n in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Performance profile that can be used to annotate HLO operations in the computation graph. .tensorflow.RunMetadata hlo_metadata = 5;
public org.tensorflow.framework.RunMetadataOrBuilder getHloMetadataOrBuilder() { if (hloMetadataBuilder_ != null) { return hloMetadataBuilder_.getMessageOrBuilder(); } else { return hloMetadata_ == null ? org.tensorflow.framework.RunMetadata.getDefaultInstance() : hloMe...
[ "org.tensorflow.framework.RunMetadata getHloMetadata();", "org.tensorflow.framework.RunMetadataOrBuilder getHloMetadataOrBuilder();", "public org.tensorflow.framework.RunMetadata getHloMetadata() {\n return hloMetadata_ == null ? org.tensorflow.framework.RunMetadata.getDefaultInstance() : hloMetadata_;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Store__ValueAssignment_3" $ANTLR start "rule__Reference__NameAssignment_1" ../eu.quanticol.caspa.ui/srcgen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9734:1: rule__Reference__NameAssignment_1 : ( RULE_LOWER ) ;
public final void rule__Reference__NameAssignment_1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:9738:1: ( ( RULE_LOWER ) ) // ../eu.quantico...
[ "public final void rule__Reference__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2782:1: ( ( ( rule__Reference__NameAssignment_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests getAllMessages(Object object) method with null Object object, IllegalArgumentException should be thrown.
public void testGetAllMessages_NullObject() { try { validator.getAllMessages(null); fail("testGetAllMessages_NullObject is failure."); } catch (IllegalArgumentException iae) { // pass } catch (Exception e) { fail("Unknown exception occurs in...
[ "public void testGetAllMessages2_NullObject() {\r\n try {\r\n validator.getAllMessages(null, 1);\r\n fail(\"testGetAllMessages2_NullObject is failure.\");\r\n } catch (IllegalArgumentException iae) {\r\n // pass\r\n } catch (Exception e) {\r\n fail(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is a stub. Set up the array elements in the hours[][] 2D array. Although some values are 0 to begin with, so they don't need to be set. For example, not setting hours[0][1] will have the same result since hours[0][1] is already initialized as 0.
public void setHours() { hours[0][0] = 8; hours[0][1] = 0; hours[0][2] = 9; hours[1][0] = 8; hours[1][1] = 0; hours[1][2] = 9; hours[2][0] = 8; hours[2][1] = 8; hours[2][2] = 8; hours[3][0] = 8; hours[3][1] = 8; hours[3][2] = 4; hours[4][0] = 8; hours[4][1] = 8; hours[4][2] = 8; }
[ "private void setupTimesTablesArray() {\n for (int i=0; i < ARRAY_SIZE; ++i)\n for (int j=0; j < ARRAY_SIZE; ++j)\n timesTables[i][j] = i * j;\n }", "private void initializeHours(){\n mListHours = new ArrayList<Integer>();\n for(int i=8; i<19; i++){\n mListHo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to get all children of users from db and compare the email adress with entered email adress and check existing user.
private void showData1(DataSnapshot dataSnapshot) { boolean cond = false; String emailaddress2 = email.getText().toString(); for (DataSnapshot ds : dataSnapshot.getChildren()) { User eid = new User(ds.getValue()); eid.setEmail(ds.child("email").getValue().toString()); ...
[ "private User find_owner_of_vehicle(String vehicle_owner_email){\n// for(User user : list_of_users){\n// if (Objects.equals(user.getEmail(), vehicle_owner_email)){\n// return user;\n// }\n// }\n return null;\n }", "public void getFriends(){\n\n /...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get raw offset of this token. Raw offset must be preprocessed before obtaining the real offset.
public final int rawOffset() { return rawOffset; }
[ "int getRawOffset();", "org.apache.xmlbeans.XmlInt xgetRawOffset();", "public int getOffset() {\r\n\t\treturn s.getOffset();\r\n\t}", "public int getOffset()\n {\n \t// return getStartLocation();\n \t// https://bugs.eclipse.org/bugs/show_bug.cgi?id=253200 fixed\n \treturn astNode_.getOffset(); \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove the keyvalue pair associated with the given key. Shrink if needed, according to `BETA`. Make sure the number of buckets doesn't go below `MIN_BUCKETS`. Do nothing if the key is not in the map.
@Override public V remove(Object key) { // TODO // hint: use chooseBucket to determine which bucket the key would be // hint: use rehash() to appropriately grow the hashmap if needed if (!containsKey(key)) return null; V oldValue = null; LinkedList<Entry> bucket = cho...
[ "@Override\n public V remove(Object key) {\n \t\n \tLinkedList<Entry> tempBucket = chooseBucket(key);\n \t\n \tfor(int i=0;i<tempBucket.size();i++) {\n\t \tEntry tempEntry = tempBucket.get(i);\n\t \t\t\n\t \tif(tempEntry.getKey() == key) {\n\t \t\tV returnValue = tempEntry.getValue();\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an empty map for use as default parameter
private static Map<String, Object> emptyMap() { return new HashMap<String, Object>(); }
[ "public static FMap emptyMap(){\n return new Empty();\n }", "protected abstract Map<?,?> createMap();", "HashMap<String, Object> getEmptyMap();", "public static <K, V> MyMap<K, V> empty() {\n return new EmptyMap<K, V>();\n }", "private static Map<Node, Node> emptyElementMapping()\n {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column storage_device.storage_type
public String getStorageType() { return storageType; }
[ "public String getStorageType() {\n return this.storageType;\n }", "public Integer getStorageType() {\n return storageType;\n }", "public short getStorageType() {\n\treturn storageType;\n }", "public void setStorageType(Integer storageType) {\n this.storageType = storageType;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
List findByLeaveTypeAndStatus(String leaveType, String status); List findBySlAlLeaveAndStatus(String leaveType, String status);
List<UserDetailsLeave> updateEmployeeListByLeaveStatus(String leaveStatus, List<UserDetailsLeave> userDetailsLeaveList);
[ "Long LeaveStatusCountByLeaveType(String leaveType,String status);", "List<MedicalLeave> findByStartDate(Date startDate);", "public Collection selectLeaveEntryList(String leaveTypeName,Date startDate, Date endDate, String[] userId, String applicantId, String leaveType, String[] status, Boolean credit, Boolean a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the motorsafety mode of the master motor controller
public void setMasterMotorSafety(boolean enabled);
[ "void setMotorsMode(DcMotor.RunMode runMode);", "public void setMecanumMode() {\n \t// Set the global variable\n \tthis.m_isInMecanumMode = true;\n \t\n \t// Set the piston state\n\t\tthis.solenoid.set(false); // release the pneumatics; gravity + \"springs\" will drop us back onto default mecanum whee...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Registers gps sensor listener and handles gps changes.
public void registerGspSensorListener() { if (null != locationListener) return; lm = (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE); locationListener = new LocationListener() { @Override public void onLocationChanged(Location location) { ...
[ "private void registerLocationListeners() {\n// SharedPreferences perfs = PreferenceManager\n// .getDefaultSharedPreferences(getApplicationContext());\n// if (perfs.getBoolean(getString(R.string.gps_pref_key), false)) {\n// registerForGPS();\n// } else {\n// ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column t_customer.comeinchannel
public void setComeinchannel(String comeinchannel) { this.comeinchannel = comeinchannel == null ? null : comeinchannel.trim(); }
[ "public void setCIF_INCOME(BigDecimal CIF_INCOME)\r\n {\r\n\tthis.CIF_INCOME = CIF_INCOME;\r\n }", "public String getComeinchannel() {\n return comeinchannel;\n }", "void setChannel(int newChannel) {\n\t\tif (on && newChannel >= 1 && newChannel <= 120) {\n\t\t\tchannel = newChannel;\n\t\t}\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructors Create a detached CollarFirmwaresRecord
public CollarFirmwaresRecord() { super(com.petpace.db.jooq.tables.CollarFirmwares.COLLAR_FIRMWARES); }
[ "public Record() {\n\t}", "public MailAttachmentRecord() {\n super(MailAttachment.MAIL_ATTACHMENT);\n }", "public StudentRecord() {}", "public PackDriverRecord() {\n this(DSL.name(\"pack_driver_record\"), null);\n }", "public ProductRecord() {\n super(Product.PRODUCT);\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes a layer from this model.
void removeLayer(int whichLayer);
[ "public void removeLayer(Layer layer){\n _layers.remove(layer);\n }", "void removeLayer(String layerName);", "@Override\n public BoardLayerView removeLayer(int index) {\n return this.layers.remove(index);\n }", "public void on_remove_layer() {\r\n\t\tLayerManager.get_instance().remove( this);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }