query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Searches for all words with "ck" substrings. Prints all the words when the substring "ck" is found
static void searchSubstring(TrieNode root, int level, char[] collectLetters, String substring) { boolean found=false; // True if Substring "ck" is found in a word if (root == null) return; // loop over all the children of TrieNode for (int i = 0; i < root.chi...
[ "protected void findString(String k){\n\n String s = k.replaceAll(\"[.,;:?!]\", \"\");\n s = s.toLowerCase(); // These two changes will remove the symbols and make every word in lowercase to prevent issues.\n\n // Adding typo words to a typowords container\n if(dictionary.contains(s)) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Page<Loan> uncontractLoans(Page<Loan> page) { List<Loan> list = contractDao.uncontractLoans(page); page.setResults(list); return page; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Emerald on 8/28/2016.
public interface Pojo extends Serializable { }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n return 0;\n }", "@Override\r\n\tpublic void hablar() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the alert timestamp.
public void setAlertTimestamp(String alertTimestamp) { this.alertTimestamp = alertTimestamp; }
[ "public id.co.danamon.schema.AlertNotification.Builder setTimestamp(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.timestamp = value;\n fieldSetFlags()[3] = true;\n return this;\n }", "public void setTimestamp(){\n\t\tif(this.timestamp == null){\n\t\t\tthis.timestamp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns a char orientation
public char getOrientation() { return orientation; }
[ "public final char getHorizontal() {\r\n\t\treturn iniReader.getPropertyChar(\"Console\", \"Char Horizontal\", DEFAULT_CHAR_HORIZONTAL);\r\n\t}", "public static int getCharacter() {\r\n\t\treturn CHARACTER;\r\n\t}", "public String getCharacter();", "public char getCharacter(int rotation) {\n return (ch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by the VisualAge for Java Access Bean SmartGuide. Warning: Modifications will be lost when this part is regenerated.
private com.hps.july.persistence.Task ejbRef() throws java.rmi.RemoteException { if ( ejbRef == null ) return null; if ( __ejbRef == null ) __ejbRef = (com.hps.july.persistence.Task) PortableRemoteObject.narrow(ejbRef, com.hps.july.persistence.Task.class); return __ejbRe...
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void wydaj() {\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Executes a Lang Message for the Sender.
public void sendLangMessage(final String nodeLocation, final CommandSender sender, final String...placeHolder) { Player player = null; if (sender instanceof Player) { player = (Player) sender; } String langMessage = this.getLangMessage(nodeLocation); String prefix = Utils.getUtils().translateLay...
[ "public static void sendMessage(Object target, Messages msg){\n DataStore dataStore = BeaconPlugin.dataStore;\n\n String argTranslated = dataStore.getMessage(msg);\n sendMessage(target, argTranslated);\n\n }", "void langBroadcast( String message, HasMessagePlaceholders placeholders );", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end of declarationBreaker method
protected Set firstViolationManager(TreeRefactorItContext context, final TransformationManager manager, RuleViolation violation) { CompilationUnit compilationUnit = violation.getCompilationUnit(); BinItemVisitable variable = ((EarlyDeclarationViolation) violation).var; BinLocalVariableDeclarat...
[ "public void declarations_1()\n {\n __filler5_OF_bmsepico.declare(_memory,44,12,null,null,null,bmsepico,null,__filler6_OF_bmsepico,Variable.FLAG_FILLER|Variable.FLAG_TYPE_ALPHANUMERIC);\n __filler6_OF_bmsepico.declare(_memory,56,3,null,null,null,bmsepico,null,epictrno_OF_bmsepico,Variab...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the number of columns in the board.
public int getNumCols() { return this.numCols; }
[ "@Override\r\n\tpublic final int numColumns() {\r\n\t\treturn board[0].length;\r\n\t}", "public int getColumns() {\n return this.board.length;\n }", "int getBoardColumnCount();", "public int getCols() {\r\n\t\treturn board[0].length;\r\n\t}", "int ncol();", "public int getNumberOfColumns() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Da el nombre y el correo de los intermediarios asociados al usuario
public ArrayList<String> darIntermediariosmios(String correo) throws SQLException{ return dao.darIntermediariosmios(correo); }
[ "public Usuario buscarCorreo(String correo);", "@Override\n\tpublic String getUsername() {\n\t\treturn this.correo;\n\t}", "private void recuperaDadosUsuario() {\n\n if(usuarioAtual != null){\n String txtCirculo = String.valueOf(usuarioAtual.getNome().charAt(0));\n textoNome.setText...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the start time and the end time of a passed exercise when started at the time passed to the method
public static LocalTime[] schedule(AerobicExercise exercise, LocalTime startTime){ ; LocalTime[] times = new LocalTime[2]; times[0] = startTime; times[1] = startTime.plusHours(exercise.getDuration()[0]).plusMinutes(exercise.getDuration()[1]); return times; }
[ "long getEstimatedBeginTime();", "public long getStartTime ();", "long getTimeStarted();", "TimePoint getStart();", "int getStartTimeMs();", "public long startTime()\n\t\t{\n\t\treturn t1;\n\t\t}", "public void timestep();", "double time(double start, double finish) {\n\t\treturn (finish - start) / 10...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Affichage d'un document PDF. Le fichier affiche est celui dont le flux NSData est dans la variable cngSession().lastPdfData()
public WOActionResults printAction() throws IOException, COSVisitorException { NSData pdfData = feveSession().getLastPdfData(); CktlDataResponse resp = new CktlDataResponse(); if (pdfData != null) { resp.setContent(pdfData, CktlDataResponse.MIME_PDF); resp.setFileName(feveSession().get...
[ "public File getPDF()\n\t{\n\t\treturn getPDF (null);\n\t}", "public Path getPdfPath() {\n return pdfFile;\n }", "public void pdfPubPD() throws FileNotFoundException, IOException, IOException, IOException {\r\n archivoPDF archivoPublic = actual.descargaPubPrac(); \r\n if (arc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add the image to one of the two queues according to which camera the image is sent from.
public synchronized void addImage(ImageClass image) { try { while (connections.size() == 0) { wait(); } } catch (InterruptedException e) { e.printStackTrace(); } if (image.getCameraId() == 0) queue.add(image); else queue2.add(image); notifyAll(); }
[ "private void add(BufferedImage image2) {\n\t\t\n\t}", "@Override\r\n public void onMessage(ByteBuffer message ) {\r\n // We have received a frame/Image so we just add it to our queue to be processed by ARcore\r\n // on Frame updates\r\n\r\n MirrorApp.framesQ.add(message.array());\r\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table v_bet_statistic
public boolean isDistinct() { return distinct; }
[ "private Statistic getStatistic(Transaction t) {\r\n\t\tStatistic statistic = new Statistic();\r\n\t\tstatistic.setAvg(BigDecimal.ONE);\r\n\t\tstatistic.setCount(1L);\r\n\t\tstatistic.setSum(t.getAmount());\r\n\t\tstatistic.setMax(t.getAmount());\r\n\t\tstatistic.setMin(t.getAmount());\r\n\t\tstatistic.setTimestamp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Displays a Toast on the screen
public void showToast(String message){ Context context = getApplicationContext(); Toast toast = Toast.makeText(context,message,Toast.LENGTH_SHORT); toast.show(); }
[ "public void showToast() {\n Context context = getApplicationContext();\n CharSequence text;\n final Toast toast;\n int duration = Toast.LENGTH_LONG;\n text = \"Not enough gold!\";\n\n toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Maps JTextComponent.setEditable(boolean) through queue
public void setEditable(final boolean b) { runMapping(new MapVoidAction("setEditable") { public void map() { ((JTextComponent)getSource()).setEditable(b); }});}
[ "public void setEditable(boolean e)\n\t{\n\t}", "public void setEditable(String editable);", "IPin setEditable(boolean editable);", "private void setTextFieldEditable(final boolean editable) {\n\t\tSwingUtilities.invokeLater(new Runnable(){\r\n\t\t\tpublic void run(){\r\n\t\t\t\tenterField.setEditable(editabl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field success is set (has been assigned a value) and false otherwise
public boolean isSetSuccess() { return this.success != null; }
[ "public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetSuccess() {\n return __isset_bit_vector.get(__SUCCESS_ISSET_ID);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
convert a repository ID to a scoped name
public static String idToScopedName( String id, boolean patchPrefix) { String scoped = ""; if( !id.startsWith("IDL:") || !id.endsWith( ":1.0")) { return null; } // strip "IDL:" and ":1.0") String base = id.substring( id.indexOf(':')+1, ...
[ "String getRepoId();", "public java.lang.String getRepositoryId() {\n java.lang.Object ref = \"\";\n if (idCase_ == 6) {\n ref = id_;\n }\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string message = 1;
public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000001); message_ = getDefaultInstance().getMessage(); onChanged(); return this; }
[ "public void setMessage(String message) {}", "void setMessage(String m);", "public void setMessage(final String message) {\n }", "void setMessage(String message) {\r\n this.message = message;\r\n }", "abstract public String getMessage();", "public void setMessage(String msg)\n {\n\tmes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Dumps the histogram of instance frequencies or sizes for the current object memory.
private void dumpHistogram(boolean ofCounts) { SortedSet sorted = new TreeSet(new HistogramEntry.Sorter(ofCounts)); sorted.addAll(histogram.values()); out.println(); out.println("Histogram of instance " + (ofCounts ? "count" : "size") + "s:" ); int total = 0; for (Iterat...
[ "private static void dump() {\n CPU.dump();\n Memory.dump();\n }", "public void printHeap() {\n\t\tSystem.out.print(\"(Process_ID,Burst_Time) : \");\n\t\tfor (int i = 0; i < heapSize; i++)\n\t\t\tSystem.out.print(\"(\" + data[i].pid + \",\" + data[i].btime + \")\");\n\n\t\tSystem.out.println();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string order_id = 1;
boolean hasOrderId();
[ "public void setOrderID(int x){\tthis.orderID = x;\t}", "public int getOrderID(){\r\n return localOrderID;\r\n }", "private void setOrderId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add Product into Order
@PostMapping("/add-product") public Object addProduct(@Valid @RequestBody AddProductDto dto, BindingResult errors) { if(errors.hasErrors()) return ResponseHandler.getResponse(errors, HttpStatus.BAD_REQUEST); Order updatedOrder = service.addProduct(dto); ...
[ "public void addProduct(Product product) {\n\r\n\t}", "void addProduct(Entity product);", "public void addProduct(Product product){\n products.add(product);\n }", "public void addOrderProduct(OrderProduct orderProduct) {\n orderProducts.add(orderProduct);\n }", "public void addProduct(Pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column x$statements_with_runtimes_in_95th_percentile.max_latency
public void setMax_latency(Long max_latency) { this.max_latency = max_latency; }
[ "public void setJdbcMaxWaitTime(final int value) {\n this.setParam(JDBC_MAX_WAIT_TIME, Integer.toString(value));\n }", "public void setThresholdMax(BigDecimal ThresholdMax) {\n\t\tset_Value(\"ThresholdMax\", ThresholdMax);\n\t}", "public void setTimeUpperBound(long timeUpperBound) {\n \t\tmTimeUpperB...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance using the specified XML node.
public XMLConfig(@NotNull Node node) { this.node = node; }
[ "public XmlNode(String identifier) {\r\n\t\tthis(identifier, null, null, null);\r\n\t}", "public XMLElementImpl(Node node)\n {\n if (!(node instanceof Element))\n {\n throw new IllegalArgumentException(\"The node should be an instance of Element\");\n }\n this.element = (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set timeout = 10s
public void TC_01_ImplicitWait() { driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); //step 01 driver.get("http://the-internet.herokuapp.com/dynamic_loading/2"); //step 02 driver.findElement(By.xpath("//*[@id='start']/button")).click(); //step 03 Assert.assertTrue(driver.findElement(...
[ "public void timeout() ;", "@Override\n public void setTimeout(long timeout) {\n\n }", "public void setTimeout(int timeout) { \r\n\r\n\tthis.timeout = timeout; \r\n\r\n\t}", "void setWaitTimeout(Long timeoutMS);", "public void setTimeout(int timeout)\n {\n }", "public void setTimeout...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column lt_google_adwords_report_ad_group.click_conversion_rate
public Double getClickConversionRate() { return clickConversionRate; }
[ "public int getRate()\n {\n if(fields != null) {\n return fields.getDistributionType();\n } else {\n return (int)rate;\n }\n }", "public Float getChangeRate() {\r\n return changeRate;\r\n }", "public double getConversion() {\n\t\treturn conversion;\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the BAA009 value for this PM_AC01View.
public String getBAA009() { return BAA009; }
[ "public long getValue011() {\n return value011_;\n }", "public double getValue012() {\n return value012_;\n }", "public String getAAC003() {\n return AAC003;\n }", "public double getValue012() {\n return value012_;\n }", "public String getP01() { return (this.p01 ==...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_a_greeting, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create By: Emin George Created On: 17/06/19
public interface UserMasterRepository extends CrudRepository<UserMaster, Integer> { @Query("select count(*) from UserMaster where ownerGroup = :ownerGroup") Integer getRowCountByOwnerGroup(@Param("ownerGroup") String ownerGroup); }
[ "public String getCreateBy() { return this.createBy; }", "public String getCreateBy() {\n return myCreateBy;\n }", "public String getCREATE_BY() {\r\n\t\treturn CREATE_BY;\r\n\t}", "@DISPID(149) //= 0x95. The runtime will prefer the VTID if present\r\n @VTID(20)\r\n int creator();", "@Column(upd...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
updates metadatat of all rules due to cleanups of all expired topics
private void updatePendingCount(long currentTime) { int rid; long[] ruleInfo; Browser browser = ruleList.browser(); while ((rid = browser.next()) >= 0) { // check every rule if (rid <= CANDIDATE_RULE) // skip nohit and candidate continue; ruleInfo ...
[ "private void invalidateRuleCache() {\n\t\tSystem.out.println(\"Invalidating rule cache...\");\n\t\tRuleDelegate.getInstance().invalidateCache();\n\t\tSystem.out.println(\"done\");\n\t}", "private native void deleteAllRules();", "public void destroyAllRules() {\n\t\tfor(Host host : getHosts()) {\n\t\t\tdestroyR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Seek in the named broadcast.
int libvlc_vlm_seek_media(libvlc_instance_t p_instance, String psz_name, float f_percentage);
[ "@Override\n public void onSeek(SmcAvPlayer device, long requestedPosition, int err) {\n if (err != Smc.SUCCESS) {\n // Error has occurred.\n return;\n }\n // Action successful, no further processing needed.\n }", "void onMediaSeekTo(long timeMs);", "private void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the name of the person to the new name given.
public void setName(String newName) { performAssertionsForNameInput(newName); mainLogger.log(Level.FINE, "New name: " + newName); name = newName.trim(); mainLogger.log(Level.FINE, "Trimmed new name: " + this.name); }
[ "public void setName(String name) {\n logger.debug(\"set name of person: \" + name);\n this.name = name;\n }", "public void setName(Person name){\n this.name = name;\n }", "public void setName(String newName) { name = newName; }", "public void setName(String newname) {\n \n th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Method used for Query
public String keyOut(String key) { String message = null; try { Context context = getContext(); FileInputStream fileInputStream = context.openFileInput(key); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileInputStream)); messag...
[ "@Override\n\tpublic void query() {\n\t\t\n\t}", "public abstract QueryCollection query();", "Query generateQuery();", "public void Query() {\n Query(75);\n }", "protected abstract String createQuery();", "public abstract Collection<String> query11();", "public abstract String getQueryByPK();"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns a copy of the set of the Relates_Inverse attribute.
public SET<IfcApprovalRelationship> getRelates_Inverse() { if(this.Relates_Inverse != null) return new SET<IfcApprovalRelationship>(this.Relates_Inverse); return null; }
[ "public RelationshipVector getReversedRelationship() {\n return toFrom;\n }", "public Vector getRelations() {\n return relations;\n }", "public I inverse();", "@Override // com.google.common.collect.ImmutableMultimap\n public ImmutableSetMultimap<V, K> inverse() {\n ImmutableSetM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Notify any registered observers that the currently reflected itemCount group items starting at groupPositionStart have been newly inserted. The group items previously located at groupPositionStart and beyond can now be found starting at position groupPositionStart + itemCount. This is a structural change event. Represe...
public void notifyGroupItemRangeInserted(int groupPositionStart, int itemCount) { notifyGroupItemRangeInserted(groupPositionStart, itemCount, mDefaultGroupsExpandedState); }
[ "public void onGroupExpand (int groupPosition) {\n \ttry{\n \t\t System.out.println(\"Group exapanding Listener => groupPosition = \" + groupPosition);\n \t}catch(Exception e){\n \t\tSystem.out.println(\" groupPosition Errrr +++ \" + e.getMessage());\n \t}\n }", "@Override\n\t\t\tpublic void o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
2019/8/28 19:31 Description: SayHello
@RpcApi public interface SayHello { /** * 测试方法 * @return 返回测试内容 */ String sayHello(); }
[ "public void sayHello() {\n System.out.println(String.format(\"Hello people !\"));\n }", "public void sayHi() {\n\t\tSystem.out.println(\"Hello my name is \" + name + \", and my id is:\" + id);\n\t}", "@Override\n\tpublic void sayHello() {\n\t\tSystem.out.println(\"Hallo Belajar Spirng\");\n\t}", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests Mark deletion as the Mark's author This tests sets a Mark's author to a mocked Verifier user that it then uses to delete it on the database. It then asserts that the number of objects on the database after this action has been reduced by one.
@Test @Transactional @WithMockUser(authorities = AuthorityRoles.VERIFIER, username = DBUserMocker.VERIFIER_USERNAME) public void deleteMarkAsVerifier() throws Exception { mark.grader(DBUserMocker.VERIFIER); // Initialize the database markService.save(mark); int databaseSizeB...
[ "@Test\n public void removeAuthor() {\n Author author = new Author();\n author.setFirst_name(\"Jane\");\n author.setLast_name(\"Doe\");\n author.setStreet(\"562 Deer Ln\");\n author.setCity(\"Greensdale\");\n author.setState(\"MI\");\n author.setPostal_code(\"8015...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column OSOADATA.T_ACCEPTED_CUSTOMER_INFO.MONEYTYPE
public void setMoneytype(String moneytype) { this.moneytype = moneytype == null ? null : moneytype.trim(); }
[ "public void setCustomerType(CustomerType ct) {\r\n customerType = ct;\r\n update();\r\n }", "public void updateCustomerType(CustomerType customerType);", "public void setEligibleCustomerType(BusinessEntityType eligibleCustomerType) {\n\t\tthis.eligibleCustomerType = eligibleCustomerType;\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
private Object onShowficarButton(ActionEvent e) { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Performs a deep copy on other.
public modifyAdjustOrderInfo_args(modifyAdjustOrderInfo_args other) { if (other.isSetParaMap()) { Map<String,String> __this__paraMap = new HashMap<String,String>(other.paraMap); this.paraMap = __this__paraMap; } }
[ "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n private void copyFrom(final _BeanImpl other, final boolean immutably) {\r\n if (other == null) {\r\n throw new IllegalArgumentException(\"other cannot be null\");\r\n }\r\n if (other.getClass() != getClass()) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected / renamed from: a
public int mo28452a(Point point, int i) { aiC(); QStoryboard adO = adO(); MSize surfaceSize = getSurfaceSize(); if (adO == null || surfaceSize == null) { return -1; } return C8419a.m24322a(adO, new VeMSize(surfaceSize.width, surfaceSize.height), point, i, this...
[ "protected void a() {}", "protected void a()\n\t{\n\t\tsuper.a();\n\t}", "protected void method_5557() {}", "protected abstract void mo3493a();", "@Override\n\tpublic void aamir() {\n\n\t}", "private void a() {\n }", "@Override\r\n\tpublic void a2() {\n\t\t\r\n\t}", "@Override\r\n public void pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test get long name.
@Test public void testGetLongName8() { assertEquals("VCF (LP)", ModuleType.VCFLP.getLongName()); }
[ "public String getLongName() {\r\n return longName;\r\n }", "public static String getNodeLongNameAttribute(Node node) {\n AttributeString longName = (AttributeString) Metric.getNodeAttribute(\n node, \"LongName\");\n if (longName == null) {\n return null;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.view_reference, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string person_mobile_number = 8;
public boolean hasPersonMobileNumber() { return ((bitField0_ & 0x00000080) == 0x00000080); }
[ "public void setPrimarycontactmobilenumber(java.lang.String param){\n \n this.localPrimarycontactmobilenumber=param;\n \n\n }", "com.ronrytest.protobuf.lib.String.StringEntity get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private
public void clearSampleDurationActual() { this.bitField0_ &= -17; this.sampleDurationActual_ = 0; }
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private InternalReflect() {\n\t\t\t// do nothing\n\t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
brightness value ranges from 1.0 to 1.0, with 0.0 as the normal level recommend value ranges[0.5 , 0.5]
public void setBrightness(float brightness){ this.brightness = brightness; }
[ "public float getBrightness(float par1)\n {\n return 0.5f;\n }", "private int calculateBrightness(int brightness) {\n float maxPercent = 100;\n int maxBrightness = 255;\n return (int) ((brightness / maxPercent) * maxBrightness);\n }", "@Override\r\n public float getBright...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
INTERNAL: Set a collection of the source to target field associations.
public void setSourceToTargetKeyFieldAssociations(Vector sourceToTargetKeyFieldAssociations) { setSourceToTargetKeyFields(new HashMap(sourceToTargetKeyFieldAssociations.size() + 1)); setTargetToSourceKeyFields(new HashMap(sourceToTargetKeyFieldAssociations.size() + 1)); for (Enumeration associat...
[ "public void setTargetRelatedContacts(entity.ABContactContact[] value);", "protected void initializeTargetForeignKeysToSourceKeys() throws DescriptorException {\n if (getTargetForeignKeyFields().isEmpty()) {\n if (shouldInitializeSelectionCriteria() || requiresDataModificationEvents() || getCont...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The VXLAN ID for the Traffic Mirror session. For more information about the VXLAN protocol, see . If you do not specify a VirtualNetworkId, an accountwide unique id is chosen at random.
public CreateTrafficMirrorSessionRequest withVirtualNetworkId(Integer virtualNetworkId) { setVirtualNetworkId(virtualNetworkId); return this; }
[ "com.google.protobuf.ByteString getVlanIdBytes();", "public long getVlanId() {\n return vlanId;\n }", "public String vpnPortId() {\n return identifier;\n }", "public long vlanId() { return vlanId; }", "public String getVmId() {\n return vmId;\n }", "@DISPID(64491) //= 0xfbeb....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string s2c_enterTips = 3;
boolean hasS2CEnterTips();
[ "private void initToolTips() {\n\t\tfieldPath.setToolTipText(\"path to file that can be read and write\");\n\t\tfieldHost.setToolTipText(\"existing hostname or IP adress of server\");\n\t\tfieldPort.setToolTipText(\"number between 1024 and 65535\");\n\t\tfieldLocktimeout.setToolTipText(\"number, 5000 minimum\");\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private Integer currentTab = 0;
public Game1ViewImpl() { initWidget(binder.createAndBindUi(this)); getElement().addClassName("playarea"); homeView = new HomeViewImpl(); playView = new PlayViewImpl(); leaderboardView = new LeaderboardViewImpl(); clubhouseView = new ClubhouseViewImpl(); configurationView = new Game1ConfigurationViewImp...
[ "public int getCurrentTab() {\n return currenttab;\n }", "int getTabType();", "public String getTabindex()\n {\n return (this.tabindex);\n }", "@Override\n public int getTabCount() {\n return tabCount;\n }", "public int getCurruentTabNumber(){\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a default stopwatch
public StopWatch() { super(); tryCreate(0, 0, 0); }
[ "public Stopwatch() {\n this.start = System.nanoTime();\n }", "public stopWatch()\n {\n start = System.nanoTime();\n }", "public StopWatch() {\n\t\tthis.id = \"\";\n\t}", "public Stopwatch(){\n\t\tthis.running = false;\n\t}", "protected SleepingStopwatch() {}", "public Stopwatch() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Bean property setter: description. A short description of the header.
public HeaderInfo setDescription(String value) { description = value; return this; }
[ "void setDescriptionProperty(String descriptionProperty);", "void setPropertyDescription(java.lang.String propertyDescription);", "public void setHeader(String header) {\n //this.header = header;\n }", "@Override\r\n public void setHeader(String name, String value) {\r\n }", "@Overri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getter method for getting the revenue and stops storage of this system
public ArrayList<ArrayList<Double>> getRevenueStopsStorage() { return this.revenueStopsStorage; }
[ "public java.lang.Double getRevenue() {\n return revenue;\n }", "public java.lang.Integer getCRevenue() {\n return CRevenue;\n }", "public double getRevenueForTheDay() {\n Map<Integer, Double> deliveryFeeMap = new HashMap<>();\n\n double totalRevenue = 0;\n\n for (List<Van> vanL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
distance between nounA and nounB (defined below)
public int distance(String nounA, String nounB) { //throws exception unless both noun are WordNet nouns if (!isNoun(nounA) || !isNoun(nounB)) throw new java.lang.IllegalArgumentException("Input is not a wordnet noun"); if (nounA.equalsIgnoreCase(nounB)) return 0; if (sap == null) sap = new SA...
[ "public int distance(String nounA, String nounB) {\n\tif (nounA == null || nounB == null || !isNoun(nounA) || !isNoun(nounB)) {\n\t throw new IllegalArgumentException(\"invalid nouns\");\n\t} else {\n\t return S.length(BST.get(nounA),BST.get(nounB));\n\t}\n }", "public int distance(String nounA, String n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value at index 38.
public V getValue38();
[ "int getValue282();", "int getValue298();", "int getValue074();", "int getValue046();", "public double getValue(int at){\r\n return lookup[at];\r\n }", "public int get(int index) {\n return values.get(index+1);\n }", "@Override\n\t\t\t\tpublic Integer get(int index) {\n\t\t\t\t\tretu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Increments the 'key' counter by 'amount', in a nonatomic way (although some caches may make it atomic, do not assume it is). Key is persisted for the given timout since creation.
public long increment(String key, int amount, int timeout);
[ "void incrCounter(String key, long amount);", "CompletableFuture<Void> incrCounterAsync(String key, long amount);", "@Override\n public void adjustCounter(byte[] key, long amount) {\n key.getClass();\n Preconditions.checkState(!this.closed, \"closed\");\n this.cursorTracker.poll();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Salva o objeto java na base
public DataEntity saveData(DataDTO data, DataSide side) throws BusinessException;
[ "public void salvar()\n {\n ArrayList<AbstractModel> elementos = obterElementos();\n \n elementos.add(this);\n \n try\n {\n FileOutputStream fout = new FileOutputStream(this.getClass().getName() + \".data\");\n ObjectOutputStream oos = new ObjectOut...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated int32 package_id = 5;
public java.util.List<java.lang.Integer> getPackageIdList() { return packageId_; }
[ "@java.lang.Override\n public long getPackageid(int index) {\n return packageid_.getLong(index);\n }", "private void clearPackageid() {\n bitField0_ = (bitField0_ & ~0x00000002);\n packageid_ = 0L;\n }", "public int getPackageVersionInt(){\n return 1;\n }", "java.lang.String ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find the _Fields constant that matches fieldId, or null if its not found.
public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // CONTEXT return CONTEXT; default: return null; } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // COMPANY_TAG_IDS\n return COMPANY_TAG_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
User cancelled the dialog
public void onClick(DialogInterface dialog, int id) { }
[ "protected void cancelDialog() {\n userInput = null;\n closeDialog();\n }", "@Override\n\t\t\tpublic void cancel() {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "public void cancel () {\n\t\tdialogObject.doCallback(null);\n\t}", "void cancelButtonPressed()\n\t{\n\t\tcloseDlg();\n\t}", "@Override\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
User: wangbaofeng Date: 8/6/15 Time: 2:10 PM
public interface RedisKeyPolicy { /** * put db result into @{code redisKeyValues} * * @param obj * @param redisEnabled * @param redisKeyValues * @param method, pass origin method here is to enable runtime config through annotation on method * * @see com.lufax.utility.cache.u...
[ "private Fecha()\n\t{\n\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\t Date date = new Date();\n\t\tfecha=dateFormat.format(date);\n\t\tDateFormat dateFormat2 = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\tDate date2 = new Date();\n\t\tymd = dateFormat2.format(date2);\n\t\tDate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Superadmin1 on 16/09/2017.
public interface IServices { @GET("/producto") ArrayList<Product> getProductList(); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Don't remove as FXMLLoader doesn't recognise default methods !
@Override public void setAutoScrollOnDragDesired(boolean val) { autoScrollOnDragDesired.set(val); }
[ "@FXML\r\n private void initialize() {\r\n \r\n }", "public void FxFXMLController()\n {\n }", "@FXML\n\tprivate void initialize() {\n\t\t\n }", "@FXML\n private void remove() {\n ViewsManager.getInstance().removeNotify();\n }", "public static void loadWithFXML() {\n\t\tloa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all the temp documents where documentName = &63; and documentYear = &63; and requestState = &63;.
@Override public List<TempDocument> findByTemDocumentByDocumentNameAndDocumentYearRequestState( long documentName, int documentYear, int requestState) throws SystemException { return findByTemDocumentByDocumentNameAndDocumentYearRequestState(documentName, documentYear, requestState, QueryUtil.ALL_POS, QueryUt...
[ "public java.util.List<vn.dtt.duongbien.dao.vrcb.model.TempDocument> findByTemDocumentByDocumentNameAndDocumentYearRequestState(\n\t\tlong documentName, int documentYear, int requestState)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public vn.dtt.duongbien.dao.vrcb.model.TempDocument findB...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds the dataId of the major with the highest starting salary for people of color.
public int findHighestPocSalary() { int dataID = 0; //TODO: use the others as examples return dataID; }
[ "public Long dbGetMaxIdFromEmployees();", "public int getMajorId() {\r\n return majorId;\r\n }", "private Long getMaxCarId() {\n\t\tif (cars.isEmpty()) {\n\t\t\treturn 0L;\n\t\t}\n\t\treturn Collections.max(cars.entrySet(), (entry1, entry2) -> (int) (entry1.getKey() - entry2.getKey())).getKey();\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets a flag indicating whether to enable a retention policy.
public void setEnabled(boolean enabled) { this.enabled = enabled; }
[ "public void setPolicyEnabled(boolean z) {\n set(\"KEY_POLICY_ENABLED\", z);\n }", "public Builder setPrivacypolicy(boolean value) {\n bitField0_ |= 0x00000080;\n privacypolicy_ = value;\n onChanged();\n return this;\n }", "@Deprecated\n public void setRet...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Busca los usuarios por email
List<Usuario> findByEmail(String email);
[ "@Override\n\tpublic List<Usuario> buscarUsuariosPorNombreOEmail(String nombre, String email) {\n\t\t\n\t\tList<Usuario> listaResultados = busquedaDAO.buscarUsuariosPorNombreOEmail(nombre, email);\n\t\t\n\t\treturn listaResultados;\n\t}", "public Usuario buscarUsuarioPorEmail(String email) {\n String sql =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Serialize the object to a byte array.
public static byte[] serialize(Object obj) throws SQLException { try { ByteArrayOutputStream out = new ByteArrayOutputStream(); ObjectOutputStream os = new ObjectOutputStream(out); os.writeObject(obj); return out.toByteArray(); } catch (Throwable e) { ...
[ "byte[] serialize(T object);", "private byte[] javaSerialize(Object object) throws IOException {\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(bytes);\n objectOutputStream.writeObject(object);\n objectO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a Black Mage character to the party.
public void addBlackMageToParty(String name, int health, int defense) { addToParty(new BlackMage(turns, name, health, defense)); }
[ "public static void bury(Character character) {\n deadPartyMembers.add(character);\n System.out.println(\"\\n\"+character.getName() + \" lost all the HealthPoints and got buried on the graveyard.\"+\"\\n\");\n }", "private void addBee(int armor, int degatColony) {\n\n\t\tBee bee = new Bee(armor);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a detached, initialised FortePaymentMethodsRecord
public FortePaymentMethodsRecord(org.jooq.types.UInteger recordId, java.lang.String kbAccountId, java.lang.String kbPaymentMethodId, java.lang.String token, java.lang.String ccFirstName, java.lang.String ccLastName, java.lang.String ccType, java.lang.String ccExpMonth, java.lang.String ccExpYear, java.lang.String ccNum...
[ "@Override\n\tpublic PaymentMethodType create(String Id) {\n\t\tPaymentMethodType paymentMethodType = new PaymentMethodTypeImpl();\n\n\t\tpaymentMethodType.setNew(true);\n\t\tpaymentMethodType.setPrimaryKey(Id);\n\n\t\treturn paymentMethodType;\n\t}", "Payment newPayment(Payment payment);", "public GetBasePayme...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
View a specified entry.
public static Optional<Error> onEntry_view(String[] args){ // View one specified entry try { // Extract ID from args int ID = Integer.parseInt(args[2]); // Check ID is valid if (RevisionEntry.loadEntry(ID).isPresent()) { // Load Revisi...
[ "WikiEntry selectByPrimaryKey(String entryId);", "public void newEntry(View view){\n\n showInputForm();\n hideSearchForm();\n }", "@Override\r\n\tpublic DisplayData displayOnEntry() \r\n\t{\n\t\t//Called when item is viewed.\r\n\t\t//=============================================================...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .dzhyun.KXian Data = 2;
public com.dzhyun.proto.DzhyunGupiaolianxu.KXian getData(int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessage(index); } }
[ "zzqg mo2820o();", "public void mo1381a(kn knVar) {\n }", "@Override\n\tpublic void yaz1() {\n\t\t\n\t}", "public void Kemarau()\n // ngurangin hp tumbuhan 10%, nambahin turn unit charging manusia 1, gerah ceritanya\n {\n SearchAttack();\n int j =0;\n for (int idx=0; idx<Xset...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Usage: java iu.pti.hbaseapp.BookDataLoader [table name] [column family] [qualifier] [book database dir]
public static void main(String[] args) throws Exception { Configuration conf = HBaseConfiguration.create(); String[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs(); if (otherArgs.length < 4) { System.err.println("Only " + otherArgs.length + " arguments supplied, required: 4"); Syst...
[ "public interface DataHandler {\r\n\t\r\n\t\r\n\t/**\r\n\t * Creates a HBase table.\r\n\t * @param tableName table name.\r\n\t * @param colFamily column family.\r\n\t */\r\n\tvoid createTable(String tableName,String... colFamily) throws IOException;\r\n\t\r\n\t/**\r\n\t * @param tableName \r\n\t * @param columnFa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / / / / / / / /
public void setLocalName(String localName) { /* 421 */ if (localName == null) { /* 422 */ throw new IllegalArgumentException("localName can not be null"); /* */ } /* 424 */ this.localName = localName; /* */ }
[ "private void calculatePaths() {\n\n\n }", "protected int snapBits(){return 9;}", "@Override\n public int getWidth(){\n return width - 10;\n }", "private static void EX5() {\n\t\t\r\n\t}", "abstract protected String roam();", "float iwdir(float pres);", "public static void main (String ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get cursor y position in pixels.
public int getCursorY() { return yMouse; }
[ "public int getCursorPosition() {\n return cursorPosition.y;\n }", "public static int mouseY() {\n\t\treturn window.height() - Mouse.getY();\n\t}", "protected int getMouseY() {\n\t\treturn (int) (MouseInfo.getPointerInfo().getLocation().getY() - frame\n\t\t\t\t.getLocation().getY());\n\t}", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
metodo constructor metodo constructor Date deseste metodo ingresara un mes y un dia
public Date(int month, int day){ switch(month){ case 1: this.month=JANUARY; break; case 2: this.month=FEBRUARY; break; case 3: this.month=MARCH; break; case 4: this.month=APRIL; break; case 5: this.month=MAY; break; case 6: this.month=JUNE; break; case 7: this...
[ "public MyDate(int day, int month, int year){\n if(year < 0){\n throw new IllegalArgumentException(\"Incorrect date! Illegal year!\");\n }\n if(month < 1 || month > 12 || day < 0 || year < 0){\n throw new IllegalArgumentException(\"Incorrect date! Illegal month!\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string password = 6;
public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; ...
[ "private String getPassWord(String m)\n{\n String l=m.substring(0,1);// first char provides the length of password\n int length=Integer.parseInt(l);// next length characters will be password\n return m.substring(1,(0+length+1));// the password is those many characters\n}", "public String getUser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A list of unique olympic games for displaying.
public static HashSet<Game> getGames() { return games; }
[ "@Override\n public List<BullCowGameObject> getAllGames() {\n List<BullCowGameObject> listOfGames = dao.getAllGames();\n for (BullCowGameObject game : listOfGames) {\n this.hideAnswer(game);\n }\n return listOfGames;\n }", "public ArrayList<Gioco> listOfGames(){\n\t\tt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
place phone call to company
public void placeCall_onClick(View view) { Intent intent = new Intent(Intent.ACTION_DIAL, Uri.fromParts("tel", "715-771-9110", null)); startActivity(intent); }
[ "void onCallNumberDirectly(String phoneNumber);", "public void makeACall(View view) {\n String phoneNumber = businessLoader.getPhoneNumber();\n Intent mIntent = new Intent(Intent.ACTION_CALL);\n mIntent.setData(Uri.parse(\"tel:\" + phoneNumber));\n\n // Here, thisActivity is the curren...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Display the text in a dialog box and asks the user to press OK.
public static void FYI(Component parent, String text) { JOptionPane.showInternalConfirmDialog(parent, text, "Info", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE); }
[ "void showTextDialog(String text);", "private void showDialogue() {\n TextField textField = new TextField(\"\", skin);\n TextField roundsField = new TextField(\"20\", skin);\n\n Dialog dialog =\n new Dialog(\"\", skin) {\n\n protected void result(Object object) {\n if (object.e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
browse all the entries
@FXML void browseAllButtonPressed(ActionEvent event) { getAllEntries(); }
[ "List<Entry> findAll();", "private void printAllEntries(){\r\n ArrayList<Entry> allEntries = reader.readEntries(\"src/entries.csv\");\r\n for(int i = 0; i<allEntries.size();i++){\r\n allEntries.get(i).print();\r\n }\r\n }", "public static void list() {\n\t\tList<Article> list ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
toString method calls toString method from Board Class and applies to instance Board board
public String toString() { return this.board.toString(); }
[ "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Board [board=\" + Arrays.toString(board) + \"]\";\r\n\t}", "@Override\n public String toString() {\n return this.boardString;\n }", "@Override\r\n \tpublic String toString(){\r\n \t\tif(board==null){\r\n \t\t\treturn \"null\";\r\n \t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void getAttacked(int dommage) { this.hp -= dommage; if(this.hp < 0) { this.hp = 0; } }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public long countMessageInTimeQuantum(String timeStart, String timeEnd, String account) { return md.countMessageInTimeQuantum(timeStart, timeEnd, account); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set this bit string ID.
public void setId(int ident) { this.id = ident; }
[ "public Builder setStringId(int value) {\n bitField0_ |= 0x00000001;\n stringId_ = value;\n \n return this;\n }", "public void setId(String string) {\n\t\t\n\t}", "private void setId(String str) {\n if (str != null) {\n this.bitField0_ |= 2;\n this.i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the number of children of this entry
public int getChildrenCount() { return 0; }
[ "public int numChildren() {\n return children.size();\n }", "public int getChildCount(){\n return children.size();\n }", "public int numChildren() {\n if (!isLeaf()) return children.size();\n else return 0;\n }", "public int getCountChildren(){\n\t\treturn children.size();\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will be used to convert from a byte array into an integer value that can be worked with as a human.
private int readHeaderValues(byte[] src) { //first we want to clear our global byte buffer HeaderValues.b.clear(); try { //now we want to try put the byte array into the byte buffer HeaderValues.b.put(src); } //since this will be used by multiple threads s...
[ "public static int convertToInt(byte[] array) {\n ByteBuffer buffer = ByteBuffer.wrap(array);\n return buffer.getInt();\n}", "private int byte_array_to_int(byte[] bytes) {\n int out = 0;\n\n for (int i = 0; i < bytes.length; i++) {\n int val = bytes[i];\n while (val < 0) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo para buscar proveedores
public void buscarProveedor() { int parametro = 0; String valor = ""; //Realizamos una verificacion sencilla para traer a los proveedores por num de documento. if (formProveedor.TxtNumeroDocumento.getText().length() > 0) { parametro = 1; valor = formProvee...
[ "public void opeGetListaProveedores() {// Imprime la lista de proveedores\n controllerProveedor.getProveedorIdNombre();\n this.opeGetListaProductoProv();\n\n }", "private void buscarProveedores(){\n Criterio c1 = obFP.crearCriterio(\"baja\", \"=\",0);\n proveedor = obFP.buscar(Prove...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns the entire result from the HTTP response.
public static String getResponseFromHttpUrl(URL url) throws IOException { HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); urlConnection.setRequestMethod("GET"); urlConnection.connect(); InputStream inputStream; try { inputStream = urlConnec...
[ "public String getResponse() {\n return(response);\n }", "public String getResponse()\n\t{\n\t\treturn responses.getResponse();\t\n\t}", "public byte[] getContent() {\n return (response == null) ? new byte[0] : response;\n }", "public String getResponse() {\n return response;\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by roach on 17/6/5.
public interface PermissionWithRoleMapper { List<Permission> getListByAdminId(Long adminId); List<Permission> getListByRoleId(Long roleId); boolean createByRoleId(@Param("roleId") Long roleId, @Param("permissions") List<Permission> permissions); boolean deleteByRoleId(Long roleId); Set<String> ...
[ "@Override\n public void extornar() {\n \n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n }", "protected void method_5557() {}", "protected void mo4791d() {\n }", "@Override\r\n\tpublic void hab...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Uses a hibernate criteria query to find a list of objects.
public List findByCriteria(final DetachedCriteria detachedCriteria) { return getHibernateTemplate().findByCriteria(detachedCriteria); }
[ "List<ENTITY> selectList(EntityCriteria criteria);", "@Override\n\tpublic List <?> listar(CriteriaQuery<? extends EntityApp> criteria) throws ExceptionApp {\n\t\ttry {\n\t\t\treturn hibernateSession.createQuery( criteria ).getResultList();\n\t\t} finally {\n\t\t\t// closeSession();\n\t\t}\n\t}", "@Override\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This will get the value from a field, for internal use only, Reduce code duplication
protected Object findFieldValue(Object obj, ClassProperty cp) { if (obj == null) throw new IllegalArgumentException("Object cannot be null"); if (cp == null) throw new IllegalArgumentException("ClassProperty cannot be null"); Object value; if (cp.isPublicField()) { ...
[ "public FieldValue getFieldValue(String field) {\n return this.fieldMap.get(field);\n }", "public abstract String get(final String field);", "protected String getField(String field) {\n\t return myData.get(field);\n\t}", "private Object GetValue(Field field, DB_BASIC object) {\n Object result = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Displays all available subjects, registered in the system.
public void showAllSubs(){ for(int i = 0; i < subjects.length; i++) System.out.printf("%1$"+15+"s", String.format("(%d)%s ", i+1, subjects[i])); System.out.println(); }
[ "private void subjectShow(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws IOException {\n\t\tint bjId = 0;\n\t\tif (request.getParameter(\"bjId\") == null\n\t\t\t\t|| \"\".equals(request.getParameter(\"bjId\"))) {\n\t\t} else {\n\t\t\tbjId = Integer.parseInt(request.getParameter(\"bjId\"));\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update the board on the server
private void updateBoard(int x,int y,String moveType,int nX,int nY) { board.update(x,y,moveType,nX,nY); LaserPiece aLaser = board.getALaser(); LaserPiece bLaser = board.getBLaser(); if(turn) board.fireLaser(aLaser.getX(), aLaser.getY(), aLaser.getOrientation()); else board.fireLa...
[ "public void update(QubicBoard board);", "@Override\r\n\tpublic void update(Board board) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void updateBoard(HttpServletRequest req) throws SQLException, ServletException {\n\r\n\t}", "private void UpdateGameBoard() {\n // update tiles\n for(int[] tile : Game...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Print the JARS but only the JARs, not the paths to them. And sort the list.
protected final void printJARS(final boolean md5) throws IOException, NoSuchAlgorithmException { heading("JAR listing"); final Map<String, String> jars = jarsOnClasspath(); for (String s : DiagnosticsEntryPoint.sortKeys(jars.keySet())) { File file = new File(jars.get(s)); boolean isFile =...
[ "private static void putMoreLikelyPluginJarsFirst(File pluginDir, File[] filesInLibUnderPluginDir) {\n String pluginDirName = pluginDir.getName();\n\n Arrays.parallelSort(filesInLibUnderPluginDir, (o1, o2) -> {\n String o2Name = o2.getName();\n String o1Name = o1.getName();\n\n boolean o2Starts...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets if quiz can be taken on practice mode or not
public void setPracticableMode(boolean isPracticable) { this.isPracticable = isPracticable; }
[ "public boolean isQuizMode() throws RemoteException;", "public void setCorrect(boolean value) {\n this.correct = value;\n }", "public abstract boolean isModeSettable(final String mode);", "private boolean isSavingAnswersAllowed() {\n Participation participation = participationService.findByUs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
private player generateBelowAverageRightFielder(int age, boolean redShirt, int year) { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
constructs a decimal signal with intrinsic range check
public Decimal(AbstractModule containingModule, String identifier, double minValue, double maxValue, Supplier<Double> intrinsicFunction, IoDirection ioDirection) throws SignalAlreadyExistsException{ super(containingModule, identifier, intrinsicFunction, ioDirection); this.wrapperValue = new DecimalVa...
[ "public DecimalRange () {\n }", "@Override NumberRange<?> createRange(final float min, final float max) {\n return NumberRange.create(DecimalFunctions.floatToDouble(min), true,\n DecimalFunctions.floatToDouble(max), true);\n }", "public DecimalDomain( BigD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Callback interface used to communicate evaluation results.
public interface MathJSResult { void onEvaluated(String value); }
[ "void evaluating();", "public void evaluate(){\n }", "public static interface EvaluationListener {\n\t\t\n\t\tvoid evaluationDone(EvaluationInstance evaluation, Status status);\n\t\t\n\t}", "abstract protected void evaluate();", "protected abstract T evaluate();", "public abstract T compute(Evaluation ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }